瀏覽代碼

库点费用货源添加校验

zhongtianhaoyuan 2 年之前
父節點
當前提交
b25e5691f4
共有 1 個文件被更改,包括 7 次插入0 次删除
  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!="是"){
         if(this.deptBudgetList.purpose=='合同费用'&&this.deptBudgetList.type=='非粮款'||this.deptBudgetList.purpose=='库点费用'&&this.deptBudgetList.flag!="是"){
           for (let i = 0; i < this.feeDetailsDistributions.length; i++) {
           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!="暂不分配"){
             if(!this.feeDetailsDistributions[i].distributionMoney&&this.mode!="暂不分配"){
               this.$message({
               this.$message({
                 message: '分配金额不能为空!',
                 message: '分配金额不能为空!',