|
@@ -410,37 +410,51 @@
|
|
|
}
|
|
|
this.getList()
|
|
|
},
|
|
|
+ isConfirmQuality(val) {
|
|
|
+ if (val.qualityInspectionManagement.confirm == '1'&&val.qualityInspectionManagement.warehouseName=='哈尔滨依兰库') 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>
|