|
@@ -43,8 +43,9 @@
|
|
|
<el-button v-hasPermission="`acquisitionManagement.acquisitionPay.add`" v-if="btnStatus.status5"
|
|
|
@click="goToPage(5)" class="btn_css">去结算</el-button>
|
|
|
<el-button v-hasPermission="`acquisitionManagement.acquisitionWeight.weight`"
|
|
|
- v-if="btnStatus.status2||btnStatus.status3||btnStatus.status4||btnStatus.status5" @click="goToPage(6)" v-show="toPageData.qualityInspectionManagement.confirm != '1'" class="btn_css">去称皮重
|
|
|
+ v-if="btnStatus.status2||btnStatus.status3||btnStatus.status4||btnStatus.status5" @click="goToPage(6)" class="btn_css">去称皮重
|
|
|
</el-button>
|
|
|
+ <!-- v-show="toPageData.qualityInspectionManagement.confirm != '1'" -->
|
|
|
<el-button @click="cancel" class="btn" >关闭</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
@@ -616,81 +617,39 @@
|
|
|
this.isOpenCodeGun = false
|
|
|
},
|
|
|
goToPage(type) {
|
|
|
+ var _saomadata = {}
|
|
|
+ _saomadata.cangid = this.cangid
|
|
|
+ _saomadata.id = this.toPageData.qualityInspectionManagement.id
|
|
|
+ _saomadata.warehouseName = this.toPageData.qualityInspectionManagement.warehouseName
|
|
|
+ _saomadata.managementType = this.toPageData.qualityInspectionManagement.managementType//贸易入库1 收购入库3
|
|
|
this.barCode = ''
|
|
|
let _url = ''
|
|
|
if (type === 1) {
|
|
|
-// this.toPageData
|
|
|
+ _saomadata.type = 1
|
|
|
+ localStorage.setItem("saoma_data",JSON.stringify(_saomadata))
|
|
|
this.$router.push({
|
|
|
- name: 'inspectInfo',
|
|
|
- query: {
|
|
|
- type: 3,
|
|
|
- cangid: this.cangid,
|
|
|
- id: this.toPageData.qualityInspectionManagement.id,
|
|
|
- warehouseName: this.toPageData.qualityInspectionManagement.warehouseName,
|
|
|
- count: 0,
|
|
|
- warehouseNo: 0,
|
|
|
- allowEdit:this.toPageData.warehouseBaseInfo.allowEdit,
|
|
|
- status:this.toPageData.status
|
|
|
- },
|
|
|
+ name: 'inspectionManagementNew'
|
|
|
})
|
|
|
} else if (type === 2) {
|
|
|
- this.$router.push({
|
|
|
- name: 'inspectInfo',
|
|
|
- query: {
|
|
|
- type: 5,
|
|
|
- cangid: this.cangid,
|
|
|
- id: this.toPageData.qualityInspectionManagement.id,
|
|
|
- warehouseName: this.toPageData.qualityInspectionManagement.warehouseName,
|
|
|
- count: 0,
|
|
|
- warehouseNo: 0,
|
|
|
- allowEdit:this.toPageData.warehouseBaseInfo.allowEdit,
|
|
|
- status:this.toPageData.status
|
|
|
- },
|
|
|
+ _saomadata.type = 2
|
|
|
+ localStorage.setItem("saoma_data",JSON.stringify(_saomadata))
|
|
|
+ this.$router.push({
|
|
|
+ name: 'inspectionManagementNew'
|
|
|
})
|
|
|
} else if (type === 3) {
|
|
|
+ _saomadata.type = 3
|
|
|
+ localStorage.setItem("saoma_data",JSON.stringify(_saomadata))
|
|
|
this.$router.push({
|
|
|
- name: 'inspectInfo',
|
|
|
- query: {
|
|
|
- type: 4,
|
|
|
- cangid: this.cangid,
|
|
|
- id: this.toPageData.qualityInspectionManagement.id,
|
|
|
- warehouseName: this.toPageData.qualityInspectionManagement.warehouseName,
|
|
|
- count: 0,
|
|
|
- warehouseNo: 0,
|
|
|
- allowEdit:this.toPageData.warehouseBaseInfo.allowEdit,
|
|
|
- status:this.toPageData.status
|
|
|
- },
|
|
|
+ name: 'inspectionManagementNew'
|
|
|
})
|
|
|
} else if (type === 4) {
|
|
|
+ _saomadata.typeNo = 1
|
|
|
+ _saomadata.monitorUrl1 = this.toPageData.warehouseBaseInfo.monitorUrl1
|
|
|
+ _saomadata.monitorUrl2 = this.toPageData.warehouseBaseInfo.monitorUrl2
|
|
|
+ _saomadata.allowEdit = this.toPageData.warehouseBaseInfo.allowEdit
|
|
|
+ localStorage.setItem("saoma_data",JSON.stringify(_saomadata))
|
|
|
this.$router.push({
|
|
|
- name: 'weightCheck',
|
|
|
- query: {
|
|
|
- tpyeNo: 1,
|
|
|
- id: this.toPageData.id,
|
|
|
- number: this.toPageData.number,
|
|
|
- binNumber: this.toPageData.binNumber,
|
|
|
- customer: this.toPageData.customer,
|
|
|
- storageNumber: this.toPageData.storageNumber,
|
|
|
- carNumber: this.toPageData.carNumber,
|
|
|
- boxNo: this.toPageData.qualityInspectionManagement.boxNo,
|
|
|
- boxNoOther: this.toPageData.qualityInspectionManagement.boxNoOther,
|
|
|
- titleNo: this.toPageData.qualityInspectionManagement.titleNo,
|
|
|
- titleNoOther: this.toPageData.qualityInspectionManagement.titleNoOther,
|
|
|
- goodsName: this.toPageData.goodsName,
|
|
|
- grossWeight: this.toPageData.grossWeight,
|
|
|
- tare: this.toPageData.tare,
|
|
|
- netWeight: this.toPageData.netWeight,
|
|
|
- relationId: this.toPageData.relationId,
|
|
|
- warehouseId: this.cangid,
|
|
|
- monitorUrl1: this.toPageData.warehouseBaseInfo.monitorUrl1,
|
|
|
- monitorUrl2: this.toPageData.warehouseBaseInfo.monitorUrl2,
|
|
|
- allowEdit: this.toPageData.warehouseBaseInfo.allowEdit,
|
|
|
- cangid: this.cangid,
|
|
|
- warehouseName: this.toPageData.qualityInspectionManagement.warehouseName,
|
|
|
- paramType: this.toPageData.qualityInspectionManagement.paramType,
|
|
|
- customerNumberCard: this.toPageData.customerNumberCard,
|
|
|
- automaticWeightAcquisition: this.toPageData.automaticWeightAcquisition
|
|
|
- },
|
|
|
+ name: 'newWeighingManagement'
|
|
|
})
|
|
|
} else if (type === 5) {
|
|
|
localStorage.setItem('paymentManagementReturn', false)
|
|
@@ -702,35 +661,13 @@
|
|
|
},
|
|
|
})
|
|
|
} else if (type === 6) {
|
|
|
+ _saomadata.typeNo = 2
|
|
|
+ _saomadata.monitorUrl1 = this.toPageData.warehouseBaseInfo.monitorUrl1
|
|
|
+ _saomadata.monitorUrl2 = this.toPageData.warehouseBaseInfo.monitorUrl2
|
|
|
+ _saomadata.allowEdit = this.toPageData.warehouseBaseInfo.allowEdit
|
|
|
+ localStorage.setItem("saoma_data",JSON.stringify(_saomadata))
|
|
|
this.$router.push({
|
|
|
- name: 'weightCheck',
|
|
|
- query: {
|
|
|
- tpyeNo: 2,
|
|
|
- id: this.toPageData.id,
|
|
|
- number: this.toPageData.number,
|
|
|
- binNumber: this.toPageData.binNumber,
|
|
|
- customer: this.toPageData.customer,
|
|
|
- storageNumber: this.toPageData.storageNumber,
|
|
|
- carNumber: this.toPageData.carNumber,
|
|
|
- boxNo: this.toPageData.qualityInspectionManagement.boxNo,
|
|
|
- boxNoOther: this.toPageData.qualityInspectionManagement.boxNoOther,
|
|
|
- titleNo: this.toPageData.qualityInspectionManagement.titleNo,
|
|
|
- titleNoOther: this.toPageData.qualityInspectionManagement.titleNoOther,
|
|
|
- goodsName: this.toPageData.goodsName,
|
|
|
- grossWeight: this.toPageData.grossWeight,
|
|
|
- tare: this.toPageData.tare,
|
|
|
- netWeight: this.toPageData.netWeight,
|
|
|
- relationId: this.toPageData.relationId,
|
|
|
- warehouseId: this.cangid,
|
|
|
- monitorUrl1: this.toPageData.warehouseBaseInfo.monitorUrl1,
|
|
|
- monitorUrl2: this.toPageData.warehouseBaseInfo.monitorUrl2,
|
|
|
- allowEdit: this.toPageData.warehouseBaseInfo.allowEdit,
|
|
|
- cangid: this.cangid,
|
|
|
- warehouseName: this.toPageData.qualityInspectionManagement.warehouseName,
|
|
|
- paramType: this.toPageData.qualityInspectionManagement.paramType,
|
|
|
- customerNumberCard: this.toPageData.customerNumberCard,
|
|
|
- automaticWeightAcquisition: this.toPageData.automaticWeightAcquisition
|
|
|
- },
|
|
|
+ name: 'newWeighingManagement',
|
|
|
})
|
|
|
}
|
|
|
this.smAlert = false
|