소스 검색

库点费用货源添加校验

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!="是"){
           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: '分配金额不能为空!',