浏览代码

Merge branch 'master' of http://git.zthymaoyi.com/gdc/yiliangyiyun-pc

mxx 3 年之前
父节点
当前提交
8eb4480fde

+ 30 - 0
src/views/houseSelfCollect/customerManagementAdd.vue

@@ -329,6 +329,36 @@
           })
       },
       commit() {
+        if (!this.imageUrl1) {
+          this.$message({
+            message: '请上传身份证正面',
+            type: 'warning',
+          })
+          return
+        }
+          if (!this.imageUrl2) {
+          this.$message({
+            message: '请上传身份证反面',
+            type: 'warning',
+          })
+          return
+        }
+          if (!this.imageUrl3) {
+          this.$message({
+            message: '请上传银行卡正面',
+            type: 'warning',
+          })
+          return
+        }
+          if (!this.imageUrl4) {
+          this.$message({
+            message: '请上传银行卡反面',
+            type: 'warning',
+          })
+          return
+        }
+
+
         // 验证码校验
         GetCustomerCodeJY({
             phone: this.customerList.customerPhone,

+ 1 - 1
src/views/houseSelfCollect/inspectInfo.vue

@@ -171,7 +171,7 @@
         purchasePriceList: [],
         id: '',
         imgUrl:"",
-        printData:[],
+        printData:{},
       }
     },
     activated() {

+ 1 - 0
src/views/houseSelfCollect/paymentManagement.vue

@@ -341,6 +341,7 @@ export default {
         searchKeyWord: this.searchKeyWord,
         searchType: this.searchType,
         warehouseName: this.warehouseName,
+        managementType : 1 
       })
         .toPromise()
         .then((response) => {

+ 91 - 92
src/views/houseSelfCollect/settlement.vue

@@ -427,7 +427,6 @@ export default {
   },
   methods: {
     closeDialog(){
-      debugger
       html2canvas(this.$refs.saveImg.$el).then((canvas) => {
         let dataURL = canvas.toDataURL('image/png')
         this.imgUrl = dataURL
@@ -579,106 +578,106 @@ export default {
           return chineseStr;
         },
     print() {
-      //  if (!this.paymentList.buckleWeightRatio) {
-      //     this.$message({
-      //       message: '扣重比不能为空',
-      //       type: 'warning',
-      //     })
-      //     return
-      //   }
-      //   if (this.paymentList.buckleWeightRatio < 0 || this.paymentList.buckleWeightRatio > 2) {
-      //     this.$message({
-      //       message: '扣重比输入错误',
-      //       type: 'warning',
-      //     })
-      //     return
-      //   }
+       if (!this.paymentList.buckleWeightRatio) {
+          this.$message({
+            message: '扣重比不能为空',
+            type: 'warning',
+          })
+          return
+        }
+        if (this.paymentList.buckleWeightRatio < 0 || this.paymentList.buckleWeightRatio > 2) {
+          this.$message({
+            message: '扣重比输入错误',
+            type: 'warning',
+          })
+          return
+        }
 
-      //   if (this.paymentList.weighingSubsidy < 0 || this.paymentList.weighingSubsidy > 100000) {
-      //     this.$message({
-      //       message: '称重补助范围应在0-100000内',
-      //       type: 'warning',
-      //     })
-      //     return
-      //   }
+        if (this.paymentList.weighingSubsidy < 0 || this.paymentList.weighingSubsidy > 100000) {
+          this.$message({
+            message: '称重补助范围应在0-100000内',
+            type: 'warning',
+          })
+          return
+        }
      
-      //   if (this.paymentList.weighingDeduction < 0 || this.paymentList.weighingDeduction > 100000) {
-      //     this.$message({
-      //       message: '称重扣款范围应在0-100000内',
-      //       type: 'warning',
-      //     })
-      //     return
-      //   }
+        if (this.paymentList.weighingDeduction < 0 || this.paymentList.weighingDeduction > 100000) {
+          this.$message({
+            message: '称重扣款范围应在0-100000内',
+            type: 'warning',
+          })
+          return
+        }
         
-      //   if (this.paymentList.freightSubsidy < 0 || this.paymentList.freightSubsidy > 100000) {
-      //     this.$message({
-      //       message: '运费补助范围应在0-100000内',
-      //       type: 'warning',
-      //     })
-      //     return
-      //   }
+        if (this.paymentList.freightSubsidy < 0 || this.paymentList.freightSubsidy > 100000) {
+          this.$message({
+            message: '运费补助范围应在0-100000内',
+            type: 'warning',
+          })
+          return
+        }
      
-      //   if (this.paymentList.freightDeduction < 0 || this.paymentList.freightDeduction > 100000) {
-      //     this.$message({
-      //       message: '运费扣款范围应在0-100000内',
-      //       type: 'warning',
-      //     })
-      //     return
-      //   }
+        if (this.paymentList.freightDeduction < 0 || this.paymentList.freightDeduction > 100000) {
+          this.$message({
+            message: '运费扣款范围应在0-100000内',
+            type: 'warning',
+          })
+          return
+        }
       
-      //   if (this.paymentList.unloadSubsidy < 0 || this.paymentList.unloadSubsidy > 100000) {
-      //     this.$message({
-      //       message: '卸车补助范围应在0-100000内',
-      //       type: 'warning',
-      //     })
-      //     return
-      //   }
+        if (this.paymentList.unloadSubsidy < 0 || this.paymentList.unloadSubsidy > 100000) {
+          this.$message({
+            message: '卸车补助范围应在0-100000内',
+            type: 'warning',
+          })
+          return
+        }
       
-      //   if (this.paymentList.unloadDeduction < 0 || this.paymentList.unloadDeduction > 100000) {
-      //     this.$message({
-      //       message: '卸车扣款范围应在0-100000内',
-      //       type: 'warning',
-      //     })
-      //     return
-      //   }
+        if (this.paymentList.unloadDeduction < 0 || this.paymentList.unloadDeduction > 100000) {
+          this.$message({
+            message: '卸车扣款范围应在0-100000内',
+            type: 'warning',
+          })
+          return
+        }
        
-      //   if (this.paymentList.otherSubsidy < 0 || this.paymentList.unloadDeduction > 100000) {
-      //     this.$message({
-      //       message: '其他补助范围应在0-100000内',
-      //       type: 'warning',
-      //     })
-      //     return
-      //   }
+        if (this.paymentList.otherSubsidy < 0 || this.paymentList.unloadDeduction > 100000) {
+          this.$message({
+            message: '其他补助范围应在0-100000内',
+            type: 'warning',
+          })
+          return
+        }
        
-      //   if (this.paymentList.qualityDeduction < 0 || this.paymentList.qualityDeduction > 100000) {
-      //     this.$message({
-      //       message: '质量扣款范围应在0-100000内',
-      //       type: 'warning',
-      //     })
-      //     return
-      //   }
+        if (this.paymentList.qualityDeduction < 0 || this.paymentList.qualityDeduction > 100000) {
+          this.$message({
+            message: '质量扣款范围应在0-100000内',
+            type: 'warning',
+          })
+          return
+        }
       
-      //   if (this.paymentList.otherDeduction < 0 || this.paymentList.otherDeduction > 100000) {
-      //     this.$message({
-      //       message: '其他扣款范围应在0-100000内',
-      //       type: 'warning',
-      //     })
-      //     return
-      //   }
-      //   if (this.paymentList.actualPayment < 0 || this.paymentList.otherDeduction > 100000) {
-      //     this.$message({
-      //       message: '实际付款范围应在0-100000内',
-      //       type: 'warning',
-      //     })
-      //     return
-      //   }
-      //   if (this.paymentList.remarks.length > 20) {
-      //     this.$message({
-      //       message: '记事字数应在0-20个字',
-      //       type: 'warning',
-      //     })
-      //     return
-      //   }
+        if (this.paymentList.otherDeduction < 0 || this.paymentList.otherDeduction > 100000) {
+          this.$message({
+            message: '其他扣款范围应在0-100000内',
+            type: 'warning',
+          })
+          return
+        }
+        if (this.paymentList.actualPayment < 0 || this.paymentList.otherDeduction > 100000) {
+          this.$message({
+            message: '实际付款范围应在0-100000内',
+            type: 'warning',
+          })
+          return
+        }
+        if (this.paymentList.remarks.length > 20) {
+          this.$message({
+            message: '记事字数应在0-20个字',
+            type: 'warning',
+          })
+          return
+        }
 
       this.paymentList.id=this.$route.query.id 
       this.paymentList.settlementClerk =  sessionStorage.getItem('ws-pf_staffName')