Ver Fonte

Merge branch 'master' of http://47.100.3.209:3000/gdc/yiliangyiyun-pc

ccjgmwz há 3 anos atrás
pai
commit
5f0edd5257

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

@@ -410,37 +410,51 @@
         }
         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
-          },
-        })
+        // 质检是否是已确定状态
+        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 +737,8 @@
     text-align: center;
     font-size: 20px;
   }
-  .show-excel{
-    opacity:0;
+
+  .show-excel {
+    opacity: 0;
   }
 </style>

+ 14 - 0
src/views/warehouse/warehouseManagementAdd.vue

@@ -379,6 +379,20 @@
             })
             return
           }
+          if (!this.deptBudgetList.addressUrl) {
+            this.$message({
+              message: '附件不能为空!',
+              type: 'warning',
+            })
+            return
+          }
+           if (!this.deptBudgetList.warehousePositioning) {
+            this.$message({
+              message: '仓库定位不能为空!',
+              type: 'warning',
+            })
+            return
+          }
 
           if (this.totalStorage <= 0) {
             this.$message({

+ 19 - 1
src/views/warehouse/warehouseManagementEdit.vue

@@ -479,7 +479,11 @@
             // if(this.deptBudgetList.addressUrl){
             //   this.fileList =  this._getFileList(this.deptBudgetList.addressUrl)
             // }
-            this.addressUrls = this.deptBudgetList.addressUrl.split(',')
+            if(this.deptBudgetList.addressUrl){
+              this.addressUrls = this.deptBudgetList.addressUrl.split(',')
+            }else{
+                this.addressUrls = []
+            }
             this.deptBudgetList.otherPersonPhone = this.deptBudgetList.otherPersonPhone.split(',')
             this.addressUrls.pop()
           })
@@ -557,6 +561,20 @@
           })
           return
         }
+        if (!this.deptBudgetList.addressUrl) {
+          this.$message({
+            message: '附件不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+          if (!this.deptBudgetList.warehousePositioning) {
+          this.$message({
+            message: '仓库定位不能为空!',
+            type: 'warning',
+          })
+          return
+        }
         if (this.warehouseType == 1) {
           if (this.totalStorage <= 0) {
             this.$message({

Diff do ficheiro suprimidas por serem muito extensas
+ 542 - 555
src/views/warehouse/warehouselocation.vue


Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff