Browse Source

原料直发

dev_pda
李俊城 2 years ago
parent
commit
498ef365ba
  1. 110
      fe/PDA/pages/store/deliverRaw.vue

110
fe/PDA/pages/store/deliverRaw.vue

@ -48,8 +48,8 @@
<win-scan-by-pack ref="scanPopup" @getScanResult='getScanResult'> <win-scan-by-pack ref="scanPopup" @getScanResult='getScanResult'>
</win-scan-by-pack> </win-scan-by-pack>
<com-balance ref="balanceItems" @selectedItem='selectedBalanceItem'></com-balance> <com-balance ref="balanceItems" @selectedItem='selectedBalanceItem'></com-balance>
<com-message ref="comMessage" @afterCloseScanMessage='closeScanMessage' <com-message ref="comMessage" @afterCloseScanMessage='closeScanMessage' @afterRescanMessage='afterRescan'
@afterRescanMessage='afterRescan' @afterCloseCommitMessage='closeCommitMessage'></com-message> @afterCloseCommitMessage='closeCommitMessage'></com-message>
</view> </view>
</view> </view>
</template> </template>
@ -251,35 +251,80 @@
addLabel(item, balanceItem) { addLabel(item, balanceItem) {
let label = this.currentLabel; let label = this.currentLabel;
label.qty = balanceItem.qty; // label.qty = balanceItem.qty;
label.uom = balanceItem.uom; // label.uom = balanceItem.uom;
label.locationCode = balanceItem.locationCode; // label.locationCode = balanceItem.locationCode;
label.locationGroup = balanceItem.locationGroup; // label.locationGroup = balanceItem.locationGroup;
label.locationArea = balanceItem.locationArea; // label.locationArea = balanceItem.locationArea;
label.locationErpCode = balanceItem.locationErpCode; // label.locationErpCode = balanceItem.locationErpCode;
label.warehouseCode = balanceItem.warehouseCode; // label.warehouseCode = balanceItem.warehouseCode;
label.status = balanceItem.status; // label.status = balanceItem.status;
// label.fromPackingCode = balanceItem.packingCode;
// label.fromContainerCode = balanceItem.containerCode;
// label.fromLot = balanceItem.lot;
// label.fromLocationCode = balanceItem.locationCode;
// label.fromLocationGroup = balanceItem.locationGroup;
// label.fromLocationArea = balanceItem.locationArea;
// label.fromLocationErpCode = balanceItem.locationErpCode;
// label.fromWarehouseCode = balanceItem.warehouseCode;
// label.fromStatus = balanceItem.status;
// label.toContainerCode = this.currentLabel.containerCode;
// label.toPackingCode = this.currentLabel.packingCode;
// label.toLot = this.currentLabel.lot;
// label.toWarehouseCode = localStorage.warehouseCode;
// label.toStatus = balanceItem.status;
// item.supplierBatch = balanceItem.supplierBatch;
// item.arriveDate = balanceItem.arriveDate;
// item.produceDate = balanceItem.produceDate;
// item.expireDate = balanceItem.expireDate;
//================================================
label.stdPackQty = balanceItem.stdPackQty;
label.fromPackingCode = balanceItem.packingCode; label.fromPackingCode = balanceItem.packingCode;
label.toPackingCode = this.currentLabel.packingCode;
label.fromContainerCode = balanceItem.containerCode; label.fromContainerCode = balanceItem.containerCode;
label.toContainerCode = this.currentLabel.containerCode;
label.fromLot = balanceItem.lot; label.fromLot = balanceItem.lot;
label.toLot = this.currentLabel.lot;
label.supplierBatch = balanceItem.supplierBatch;
label.arriveDate = balanceItem.arriveDate;
label.produceDate = balanceItem.produceDate;
label.expireDate = balanceItem.expireDate;
label.fromLocationCode = balanceItem.locationCode; label.fromLocationCode = balanceItem.locationCode;
label.fromLocationGroup = balanceItem.locationGroup;
label.fromLocationArea = balanceItem.locationArea; label.fromLocationArea = balanceItem.locationArea;
label.fromLocationGroup = balanceItem.locationGroup;
label.fromLocationErpCode = balanceItem.locationErpCode; label.fromLocationErpCode = balanceItem.locationErpCode;
label.fromWarehouseCode = balanceItem.warehouseCode; label.fromWarehouseCode = balanceItem.warehouseCode;
label.fromStatus = balanceItem.status; label.fromStatus = balanceItem.status;
label.toContainerCode = this.currentLabel.containerCode;
label.toPackingCode = this.currentLabel.packingCode;
label.toLot = this.currentLabel.lot;
label.toWarehouseCode = localStorage.warehouseCode;
label.toStatus = balanceItem.status; label.toStatus = balanceItem.status;
// item.supplierBatch = balanceItem.supplierBatch; label.toWarehouseCode = localStorage.warehouseCode;
// item.arriveDate = balanceItem.arriveDate; label.locationCode =balanceItem.locationCode;
// item.produceDate = balanceItem.produceDate;
// item.expireDate = balanceItem.expireDate; label.recommendContainerCode = balanceItem.containerCode;
label.recommendPackingCode = balanceItem.packingCode;
label.recommendSupplierBatch = balanceItem.supplierBatch;
label.recommendArriveDate = balanceItem.arriveDate;
label.recommendProduceDate = balanceItem.produceDate;
label.recommendExpireDate = balanceItem.expireDate;
label.recommendLot = balanceItem.lot;
label.recommendFromLocationCode = balanceItem.locationCode;
label.recommendFromLocationArea = balanceItem.locationArea;
label.recommendFromLocationGroup = balanceItem.locationGroup;
label.recommendFromLocationErpCode = balanceItem.locationErpCode;
label.recommendFromWarehouseCode = localStorage.warehouseCode;
label.uom = balanceItem.uom;
label.recommendQty = balanceItem.qty;
label.handledContainerCode = this.currentLabel.containerCode;
label.handledPackingCode = this.currentLabel.packingCode;
label.handledSupplierBatch = "string",
label.handledArriveDate = balanceItem.arriveDate;
label.handledProduceDate = balanceItem.produceDate;
label.handledExpireDate = balanceItem.expireDate;
label.handledLot = this.currentLabel.lot;
label.handledFromWarehouseCode = localStorage.warehouseCode,
label.handledQty = balanceItem.qty,
item.labelList.unshift(label) item.labelList.unshift(label)
}, },
@ -365,16 +410,15 @@
customerAddressCode: that.customerAddress.customerAddressCode, customerAddressCode: that.customerAddress.customerAddressCode,
deliverTime: getISODateTime(), deliverTime: getISODateTime(),
deliverRequestType: 3, deliverRequestType: 3,
toLocationCode: that.toLocation.code, // toLocationCode: that.toLocation.code,
toLocationArea: that.toLocation.areaCode, // toLocationArea: that.toLocation.areaCode,
toLocationGroup: that.toLocation.locationGroupCode, // toLocationGroup: that.toLocation.locationGroupCode,
toLocationErpCode: that.toLocation.erpLocationCode, // toLocationErpCode: that.toLocation.erpLocationCode,
jobNumber: '', jobNumber: '',
deliverPlanNumber: '', deliverPlanNumber: '',
deliverRequestNumber: '', deliverRequestNumber: '',
worker: localStorage.userName, worker: localStorage.userName,
warehouseCode: localStorage.warehouseCode, warehouseCode: localStorage.warehouseCode,
company: localStorage.company,
details: [] details: []
} }
@ -384,6 +428,12 @@
r.toLocationGroup = that.toLocation.locationGroupCode; r.toLocationGroup = that.toLocation.locationGroupCode;
r.toLocationArea = that.toLocation.areaCode; r.toLocationArea = that.toLocation.areaCode;
r.toLocationErpCode = that.toLocation.erpLocationCode; r.toLocationErpCode = that.toLocation.erpLocationCode;
// =======================================
r.handledFromLocationCode = that.toLocation.code;
r.handledFromLocationArea = that.toLocation.areaCode;
r.handledFromLocationGroup = that.toLocation.locationGroupCode;
r.handledFromLocationErpCode = that.toLocation.erpLocationCode;
r.worker = localStorage.userName r.worker = localStorage.userName
item.details.push(r); item.details.push(r);
}) })
@ -418,15 +468,15 @@
this.customerCode = ''; this.customerCode = '';
that.clearCustomerAddress(); that.clearCustomerAddress();
}, },
openScanPopup() { openScanPopup() {
this.$refs.scanPopup.openScanPopup() this.$refs.scanPopup.openScanPopup()
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}, },
showMessage(message) { showMessage(message) {
this.$refs.comMessage.showMessage(message); this.$refs.comMessage.showMessage(message);
}, },

Loading…
Cancel
Save