Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-uniapp into master_hella

hella_online_20240829
陈薪名 3 months ago
parent
commit
025261565f
  1. 10
      src/mycomponents/scan/winScanPack.vue
  2. 12
      src/mycomponents/scan/winScanPackAndLocation.vue
  3. 14
      src/pages/productPutaway/job/productPutawayDetail.vue
  4. 16
      src/pages/productReceipt/job/productReceiptDetail.vue
  5. 19
      src/pages/purchaseReceipt/job/receiptDetail.vue
  6. 5
      src/pages/putaway/job/putawayDetail.vue

10
src/mycomponents/scan/winScanPack.vue

@ -73,15 +73,19 @@
},
scanClick() {
this.$refs.comscan.clickScanMsg();
if(this.$refs.comscan){
this.$refs.comscan.clickScanMsg();
}
},
cancelClick() {
this.$refs.comscan.clearScanValue();
if(this.$refs.comscan){
this.$refs.comscan.clearScanValue();
}
},
getScanResult(result) {
if (result.success) {
this.$emit("getResult", result);
} else {

12
src/mycomponents/scan/winScanPackAndLocation.vue

@ -201,8 +201,8 @@
if(timer){
clearTimeout(timer)
}
// this.$refs.comscansimulate.setItemCodeSimulate(item.copyContent)
// this.$refs.comscansimulate.clickScanMsg();
this.$refs.comscansimulate.setItemCodeSimulate(item.copyContent)
this.$refs.comscansimulate.clickScanMsg();
}, 500)
@ -385,7 +385,9 @@
//
countCallBack(datas) {
this.$refs.comscan.clear();
if(this.$refs.comscan){
this.$refs.comscan.clear();
}
//
let data = {
label: this.scanResult.label,
@ -399,7 +401,9 @@
},
packCallBack(item) {
this.$refs.comscan.clear();
if(this.$refs.comscan){
this.$refs.comscan.clear();
}
//
let data = {
label: this.scanResult.label,

14
src/pages/productPutaway/job/productPutawayDetail.vue

@ -114,13 +114,15 @@
type: "",
isCheckLocation: false,
switchCode: "",
scanedPackingNumber: ''
scanedPackingNumber: '',
status:''
};
},
onLoad(option) {
this.id = option.id;
this.type = option.type;
this.scanedPackingNumber = option.scaned || '';
this.status = option.status || ''
if (this.type == 'predict') {
this.switchCode = "SemiPutawayLocationCodeValidate"
updateTitle("预生产上架任务");
@ -128,9 +130,12 @@
this.switchCode = "FgPutawayLocationCodeValidate"
updateTitle("装配上架任务");
}
},
onShow(){
if (this.id != undefined) {
//
if (option.status == "1") {
if (this.status == "1") {
this.receive((callback => {
this.getDetail();
}));
@ -211,6 +216,7 @@
if (this.scanedPackingNumber && this.scanedPackingNumber == s
.packingNumber) {
s.scaned = true
s.cancleScanedHiht = true
// s.handleQty =s.qty
this.openScanPopupSimulate(s)
}
@ -296,6 +302,7 @@
},
getScanResult(result) {
try {
var packingNumber = result.balance.packingNumber;
var batch = result.balance.batch;
@ -317,7 +324,8 @@
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【" + result
.fromLocationCode + "】不在列表中")
} else {
if (itemDetail.scaned) {
if (!itemDetail.cancleScanedHiht&&itemDetail.scaned) {
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【" + result
.fromLocationCode + "】已经扫描")
} else {

16
src/pages/productReceipt/job/productReceiptDetail.vue

@ -134,16 +134,20 @@
managementList: [],
jobStatus: "",
jobToLocationCode: "",
scanedPackingNumber: ''
scanedPackingNumber: '',
status:''
};
},
onLoad(option) {
this.id = option.id;
this.scanedPackingNumber = option.scaned || '';
this.status = option.status || ''
},
onShow(){
if (this.id != undefined) {
//
if (option.status == "1") {
if (this.status == "1") {
this.receive((callback => {
this.getDetail();
}));
@ -224,6 +228,9 @@
if (this.scanedPackingNumber && this.scanedPackingNumber == s
.packingNumber){
s.scaned = true
s.cancleScanedHiht = true
s.copyContent = "HMQ;V1.0;I" + s.itemCode + ";P" + s.packingNumber + ";B" + s.batch + ";Q" + s.qty
this.$refs.scanPopup.simulateScan(s);
// s.handleQty =s.qty
}
@ -240,6 +247,7 @@
},
getScanResult(result) {
let label = result.label;
var packingNumber = label.packingNumber;
var batch = label.batch;
@ -256,7 +264,7 @@
if (itemDetail == undefined) {
this.showErrorMessage("箱码[" + packingNumber + "]" + "批次[" + batch + "]不在任务列表中")
} else {
if (itemDetail.scaned) {
if (!itemDetail.cancleScanedHiht&&itemDetail.scaned) {
this.showErrorMessage("箱码[" + packingNumber + "]" + "批次[" + batch + "]已经扫描")
} else {
itemDetail.scaned = true;

19
src/pages/purchaseReceipt/job/receiptDetail.vue

@ -133,7 +133,8 @@
jobStatus: "",
isAllReceived: false,
operation: '',
scanedPackingNumber: ''
scanedPackingNumber: '',
status:''
};
},
@ -142,9 +143,13 @@
this.id = option.id;
this.scanedPackingNumber = option.scaned || '';
this.operation = option.operation;
this.status = option.status;
},
onShow(){
if (this.id != undefined) {
//
if (option.status == "1") {
if (this.status == "1") {
this.receive((callback => {
this.getDetail();
}));
@ -230,6 +235,9 @@
.scanedPackingNumber == s
.packingNumber) {
s.scaned = true
s.cancleScanedHiht = true
s.copyContent = "HPQ;V1.0;I" + s.itemCode + ";P" + s.packingNumber + ";B" + s.batch + ";Q" + s.qty
this.$refs.scanPopup.simulateScan(s);
}
})
@ -247,6 +255,7 @@
getScanResult(result) {
try {
var itemCode = result.label.itemCode;
var detail = this.detailSource.find(r => r.itemCode == itemCode);
@ -260,7 +269,7 @@
if (itemDetail.length == 0) {
this.showErrorMessage("物料【" + itemCode + "】、托码【" + containerNumber + "】不在列表中")
} else {
if (itemDetail[0].scaned) {
if (!itemDetail[0].cancleScanedHiht&&itemDetail[0].scaned) {
this.showErrorMessage("物料【" + itemCode + "】、托码【" + containerNumber + "】已经扫描")
} else {
itemDetail.forEach(item => {
@ -307,7 +316,7 @@
if (isExit == undefined) {
this.showMessage("箱码【" + packingNumber + "】、批次【" + batch + "】不在列表中")
} else {
if (isExit.scaned) {
if (!isExit.cancleScanedHiht&&isExit.scaned) {
this.showMessage("箱码【" + packingNumber + "】已经扫描")
} else {
isExit.scaned = true
@ -325,7 +334,7 @@
scanedLength++;
}
})
if (itemDetail.scaned && scanedLength == itemDetail.packList.length) {
if (!itemDetail.cancleScanedHiht&&itemDetail.scaned && scanedLength == itemDetail.packList.length) {
this.showMessage("箱码【" + packingNumber + "】已经扫描")
} else {
itemDetail.scaned = true;

5
src/pages/putaway/job/putawayDetail.vue

@ -204,6 +204,7 @@
if (this.scanedPackingNumber && this.scanedPackingNumber == s
.packingNumber) {
s.scaned = true
s.cancleScanedHiht = true
s.packList.forEach(item=>item.scaned = true)
s.inventoryStatus = s.inspectResult; //
this.openScanPopupSimulate(s)
@ -345,7 +346,7 @@
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【" + result
.fromLocationCode + "】不在列表中")
} else {
if (isExit.scaned) {
if (!isExit.cancleScanedHiht&&isExit.scaned) {
this.showMessage("箱码【" + packingNumber + "】已经扫描")
} else {
isExit.scaned = true
@ -372,7 +373,7 @@
//
itemDetail.fromInventoryStatus = result.balance.inventoryStatus;
if (itemDetail.scaned && scanedLength == itemDetail.packList.length) {
if (!itemDetail.cancleScanedHiht&&itemDetail.scaned && scanedLength == itemDetail.packList.length) {
this.showMessage("箱码【" + packingNumber + "】已经扫描")
} else {
itemDetail.scaned = true;

Loading…
Cancel
Save