|
@ -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=[] |
|
|