Browse Source

库点费用货源添加校验

zhongtianhaoyuan 2 years ago
parent
commit
b25e5691f4
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/views/profitable/cashout.vue

+ 7 - 0
src/views/profitable/cashout.vue

@@ -510,6 +510,13 @@
         }
         if(this.deptBudgetList.purpose=='合同费用'&&this.deptBudgetList.type=='非粮款'||this.deptBudgetList.purpose=='库点费用'&&this.deptBudgetList.flag!="是"){
           for (let i = 0; i < this.feeDetailsDistributions.length; i++) {
+            if(!this.feeDetailsDistributions[i].goodsSource){
+              this.$message({
+                message: '货源不能为空!',
+                type: 'warning',
+              })
+              return
+            }
             if(!this.feeDetailsDistributions[i].distributionMoney&&this.mode!="暂不分配"){
               this.$message({
                 message: '分配金额不能为空!',