Browse Source

修改装配完工收货校验

hella_online_20240829
lijuncheng 5 months ago
parent
commit
b9c4169441
  1. 12
      src/api/request2.js
  2. 2
      src/mycomponents/scan/winComScanFg.vue
  3. 16
      src/pages/productReceipt/job/fgProductReceiptDetail.vue

12
src/api/request2.js

@ -4137,3 +4137,15 @@ export function getPackageLabel(packageCode) {
data: params, data: params,
}); });
} }
/**
* 装配收货mes码是否已经完工
* @param {*}
*/
export function isCheckMesCode(code) {
return request({
url: baseApi + "/wms/productreceipt-detailb/getCheckWhetherItExists?remark="+code,
method: "get",
data: {},
});
}

2
src/mycomponents/scan/winComScanFg.vue

@ -197,8 +197,10 @@
let batch = content.substr(lengthMat + 8, 3); let batch = content.substr(lengthMat + 8, 3);
let order = content.substr(-8); let order = content.substr(-8);
if (itemCode != partNumber) { if (itemCode != partNumber) {
that.clear();
throw new Error("解析错误:扫描物料号【" + itemCode + "】与查询物料号【" + partNumber + throw new Error("解析错误:扫描物料号【" + itemCode + "】与查询物料号【" + partNumber +
"】不一致") "】不一致")
} }
let scanResult = { let scanResult = {

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

@ -78,7 +78,8 @@
productReceiptJobsubmit, productReceiptJobsubmit,
getPrintProductReceiptList, getPrintProductReceiptList,
getBalanceToPackage, getBalanceToPackage,
batchPrintingLable batchPrintingLable,
isCheckMesCode
} from '@/api/request2.js'; } from '@/api/request2.js';
import { import {
goHome, goHome,
@ -245,8 +246,11 @@
}, },
getScanResult(result) { getScanResult(result) {
//TODO
let that = this; let that = this;
//TODO
//mes
isCheckMesCode(result.content).then(res=>{
if(res.data){
if (that.detailSource.length > 0) { if (that.detailSource.length > 0) {
let item = that.detailSource[0]; // let item = that.detailSource[0]; //
result.uom = item.uom; result.uom = item.uom;
@ -281,6 +285,11 @@
}, 500) }, 500)
} }
} }
}
}).catch(error=>{
this.showErrorMessage(error)
})
}, },
calcFgQty() { calcFgQty() {
@ -448,7 +457,9 @@
} }
} }
}else { }else {
if(!subitem.handleQty){
subitem.handleQty=subitem.qty subitem.handleQty=subitem.qty
}
subitem.scaned = true subitem.scaned = true
this.submitJob(); this.submitJob();
} }
@ -508,7 +519,6 @@
res.outsideItemCode = res.itemCode res.outsideItemCode = res.itemCode
res.outsideProduceDate = res.productDate res.outsideProduceDate = res.productDate
res.outsideSerialNumber = res.order res.outsideSerialNumber = res.order
res.lowerLim=res.content
}) })
}else { }else {
detail.fgList=[] detail.fgList=[]

Loading…
Cancel
Save