Browse Source

库点费用添加申请人字段,毛重前添加质检状态已确认校验

mxx 3 năm trước cách đây
mục cha
commit
7203a92c59

+ 47 - 31
src/views/houseSelfCollect/weighingManagement.vue

@@ -410,37 +410,52 @@
         }
         this.getList()
       },
+      isConfirmQuality(val) {
+        if (val.qualityInspectionManagement.confirm == '1') return true;
+        return false
+      },
       weightCheck(row, num) {
         console.log(this.cangid)
-        this.$router.push({
-          path: 'weightCheck',
-          query: {
-            tpyeNo: num,
-            id: row.id,
-            number: row.number,
-            binNumber: row.binNumber,
-            customer: row.customer,
-            storageNumber: row.storageNumber,
-            carNumber: row.carNumber,
-            boxNo: row.qualityInspectionManagement.boxNo,
-            boxNoOther: row.qualityInspectionManagement.boxNoOther,
-            titleNo: row.qualityInspectionManagement.titleNo,
-            titleNoOther: row.qualityInspectionManagement.titleNoOther,
-            goodsName: row.goodsName,
-            grossWeight: row.grossWeight,
-            tare: row.tare,
-            netWeight: row.netWeight,
-            relationId: row.relationId,
-            warehouseId: this.warehouseId,
-            monitorUrl1: this.monitorUrl1,
-            monitorUrl2: this.monitorUrl2,
-            allowEdit: this.allowEdit,
-            cangid: this.cangid,
-            warehouseName: this.warehouseName,
-            paramType: row.qualityInspectionManagement.paramType,
-            customerNumberCard:row.customerNumberCard
-          },
-        })
+        debugger
+        // 质检是否是已确定状态
+        let _isGoweightCheck = this.isConfirmQuality(row)
+        if (_isGoweightCheck) {
+          this.$router.push({
+            path: 'weightCheck',
+            query: {
+              tpyeNo: num,
+              id: row.id,
+              number: row.number,
+              binNumber: row.binNumber,
+              customer: row.customer,
+              storageNumber: row.storageNumber,
+              carNumber: row.carNumber,
+              boxNo: row.qualityInspectionManagement.boxNo,
+              boxNoOther: row.qualityInspectionManagement.boxNoOther,
+              titleNo: row.qualityInspectionManagement.titleNo,
+              titleNoOther: row.qualityInspectionManagement.titleNoOther,
+              goodsName: row.goodsName,
+              grossWeight: row.grossWeight,
+              tare: row.tare,
+              netWeight: row.netWeight,
+              relationId: row.relationId,
+              warehouseId: this.warehouseId,
+              monitorUrl1: this.monitorUrl1,
+              monitorUrl2: this.monitorUrl2,
+              allowEdit: this.allowEdit,
+              cangid: this.cangid,
+              warehouseName: this.warehouseName,
+              paramType: row.qualityInspectionManagement.paramType,
+              customerNumberCard: row.customerNumberCard
+            },
+          })
+        } else {
+          this.$message({
+            message: '质检状态未确认,质检状态确认后称毛重!',
+            type: 'warning',
+          })
+        }
+
       },
       find() {
         this.getList()
@@ -723,7 +738,8 @@
     text-align: center;
     font-size: 20px;
   }
-  .show-excel{
-    opacity:0;
+
+  .show-excel {
+    opacity: 0;
   }
 </style>

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 534 - 555
src/views/warehouse/warehouselocation.vue


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác