|
@@ -33,7 +33,7 @@
|
|
<a-input-number
|
|
<a-input-number
|
|
id="expenseManagementEdit-name"
|
|
id="expenseManagementEdit-name"
|
|
v-model="form.settleAmount"
|
|
v-model="form.settleAmount"
|
|
- :precision="0"
|
|
|
|
|
|
+ :precision="2"
|
|
:min="0"
|
|
:min="0"
|
|
:max="999999"
|
|
:max="999999"
|
|
placeholder="请输入费用金额(0~999999)"
|
|
placeholder="请输入费用金额(0~999999)"
|
|
@@ -158,6 +158,10 @@ export default {
|
|
this.$message.warning('费用类型未选到第三级,请修改后再提交!')
|
|
this.$message.warning('费用类型未选到第三级,请修改后再提交!')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ if (this.form.settleAmount <= 0) {
|
|
|
|
+ this.$message.warning('费用金额必须大于0!')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
const form = JSON.parse(JSON.stringify(_this.form))
|
|
const form = JSON.parse(JSON.stringify(_this.form))
|
|
if (this.$route.params.id) {
|
|
if (this.$route.params.id) {
|
|
form.id = this.$route.params.id
|
|
form.id = this.$route.params.id
|