zhongtianhaoyuan 3 år sedan
förälder
incheckning
7d8f30e084
1 ändrade filer med 7 tillägg och 1 borttagningar
  1. 7 1
      src/views/houseSelfCollect/newWeighingManagement.vue

+ 7 - 1
src/views/houseSelfCollect/newWeighingManagement.vue

@@ -402,6 +402,9 @@
       },
       WarehousingType(num) {
         this.inWarehouseType = num
+        if(this.inWarehouseType == 1 && this.status == 2){
+          this.status = 1
+        }
         this.getList()
       },
       setVal(data) {
@@ -768,6 +771,9 @@ this.deptBudgetTotal = this.carList.length
           this.tpyeNo = '2'
           this.information = '皮重'
         }
+        if(this.tpyeNo == 2 && this.inWarehouseType == 1){//贸易入库不能二次称皮重(没有已称皮重按钮)
+          this.status = 1 //手动更改未称皮重状态
+        }
         this.getList()
       },
       setCurrent(row) {
@@ -775,7 +781,7 @@ this.deptBudgetTotal = this.carList.length
       },
       handleCurrentChange(val) {
         this.submitAllow = false
-        if(this.tpyeNo == 2 && this.status == 1 && val.qualityInspectionManagement.confirm == 0){
+          if(this.tpyeNo == 2 && this.status == 1 && val && val.qualityInspectionManagement.confirm == 0){
            this.submitAllow = true
            this.$message({
               message: '该条质检信息未确认',