Browse Source

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

hella_online_20240829
lijuncheng 3 months ago
parent
commit
92942ea474
  1. 6
      src/mycomponents/scan/winScanPack.vue
  2. 8
      src/mycomponents/scan/winScanPackAndLocation.vue
  3. 4
      src/pages/pointPutawayJob/index.vue
  4. 14
      src/pages/productPutaway/job/productPutawayDetail.vue
  5. 16
      src/pages/productReceipt/job/productReceiptDetail.vue
  6. 19
      src/pages/purchaseReceipt/job/receiptDetail.vue
  7. 5
      src/pages/putaway/job/putawayDetail.vue

6
src/mycomponents/scan/winScanPack.vue

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

8
src/mycomponents/scan/winScanPackAndLocation.vue

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

4
src/pages/pointPutawayJob/index.vue

@ -33,7 +33,7 @@
<u-td>{{cur.batch}}</u-td> <u-td>{{cur.batch}}</u-td>
<u-td>{{cur.packingNumber}}</u-td> <u-td>{{cur.packingNumber}}</u-td>
<u-td>{{cur.packUnit}}</u-td> <u-td>{{cur.packUnit}}</u-td>
<u-td>{{cur.packQty}}</u-td> <u-td>{{cur.qty}}</u-td>
<u-td>{{cur.uom}}</u-td> <u-td>{{cur.uom}}</u-td>
</u-tr> </u-tr>
</u-table> </u-table>
@ -221,7 +221,7 @@
<td>${cur.batch}</td> <td>${cur.batch}</td>
<td>${cur.packingNumber}</td> <td>${cur.packingNumber}</td>
<td>${cur.packUnit}</td> <td>${cur.packUnit}</td>
<td>${cur.packQty}</td> <td>${cur.qty}</td>
<td>${cur.uom}</td> <td>${cur.uom}</td>
</tr> </tr>
` `

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

@ -115,13 +115,15 @@
isCheckLocation: false, isCheckLocation: false,
switchCode: "", switchCode: "",
scanedPackingNumber: '', scanedPackingNumber: '',
hintTitle:"" hintTitle:"",
status:''
}; };
}, },
onLoad(option) { onLoad(option) {
this.id = option.id; this.id = option.id;
this.type = option.type; this.type = option.type;
this.scanedPackingNumber = option.scaned || ''; this.scanedPackingNumber = option.scaned || '';
this.status = option.status || ''
if (this.type == 'predict') { if (this.type == 'predict') {
this.switchCode = "SemiPutawayLocationCodeValidate" this.switchCode = "SemiPutawayLocationCodeValidate"
this.hintTitle="预生产上架" this.hintTitle="预生产上架"
@ -131,9 +133,12 @@
this.hintTitle="成品入库" this.hintTitle="成品入库"
updateTitle("成品入库详情"); updateTitle("成品入库详情");
} }
},
onShow(){
if (this.id != undefined) { if (this.id != undefined) {
// //
if (option.status == "1") { if (this.status == "1") {
this.receive((callback => { this.receive((callback => {
this.getDetail(); this.getDetail();
})); }));
@ -214,6 +219,7 @@
if (this.scanedPackingNumber && this.scanedPackingNumber == s if (this.scanedPackingNumber && this.scanedPackingNumber == s
.packingNumber) { .packingNumber) {
s.scaned = true s.scaned = true
s.cancleScanedHiht = true
// s.handleQty =s.qty // s.handleQty =s.qty
this.openScanPopupSimulate(s) this.openScanPopupSimulate(s)
} }
@ -299,6 +305,7 @@
}, },
getScanResult(result) { getScanResult(result) {
try { try {
var packingNumber = result.balance.packingNumber; var packingNumber = result.balance.packingNumber;
var batch = result.balance.batch; var batch = result.balance.batch;
@ -320,7 +327,8 @@
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【" + result this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【" + result
.fromLocationCode + "】不在列表中") .fromLocationCode + "】不在列表中")
} else { } else {
if (itemDetail.scaned) {
if (!itemDetail.cancleScanedHiht&&itemDetail.scaned) {
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【" + result this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【" + result
.fromLocationCode + "】已经扫描") .fromLocationCode + "】已经扫描")
} else { } else {

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

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

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

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

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

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

Loading…
Cancel
Save