yaoyao 2 жил өмнө
parent
commit
9a5a941ab5

+ 5 - 1
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/InvoicedAndSettled.vue

@@ -77,7 +77,7 @@
           </el-form>
           <span slot="footer" class="dialog-footer">
           <el-button  size="small" @click="dialogVisiblebalance = false">取消</el-button>
-          <el-button type="primary" size="small" @click="balanceSumbit">确实</el-button>
+          <el-button type="primary" size="small" @click="balanceSumbit">确定</el-button>
         </span>
       </el-dialog>
 
@@ -435,6 +435,10 @@ export default {
             });
         },
         balanceSumbit() {
+            if (!this.form.settlementAmount || this.form.settlementAmount <= 0) {
+                this.$message.error('请输入金额')
+                return
+            }
             this.$api.task
                 .batchBxBalance({...this.openBalanceDetail,
                 otherFeevalue:this.formDetail.otherFeevalue,

+ 4 - 0
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/InvoicingUnsettled.vue

@@ -563,6 +563,10 @@ export default {
       this.dialogVisible=false
     }, 
     balanceSumbit() {
+      if (!this.form.settlementAmount || this.form.settlementAmount <= 0) {
+        this.$message.error('请输入金额')
+        return
+      }
       this.$api.task
         .batchBxBalance({...this.openBalanceDetail,
           otherFeevalue:this.formDetail.otherFeevalue,

+ 4 - 0
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/InvoicedAndSettled.vue

@@ -409,6 +409,10 @@ export default {
             });
         },
         balanceSumbit() {
+            if (!this.form.settlementAmount || this.form.settlementAmount <= 0) {
+                this.$message.error('请输入金额')
+                return
+            }
             this.$api.task
                 .batchBxBalance({...this.openBalanceDetail,
                 otherFeevalue:this.formDetail.otherFeevalue,

+ 4 - 0
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/InvoicingUnsettled.vue

@@ -531,6 +531,10 @@ export default {
         },
 
         balanceSumbit() {
+            if (!this.form.settlementAmount || this.form.settlementAmount <= 0) {
+                this.$message.error('请输入金额')
+                return
+            }
             this.$api.task
                 // .batchBxBalance({
                 .noBatchBxBalance({