|
|
@@ -8,7 +8,9 @@
|
|
|
<el-form label-width="120px">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="入库单:">
|
|
|
- <span>{{ isIds?infoData?.bizNos?.toString():infoData?.bizNo}}</span>
|
|
|
+ <span>{{
|
|
|
+ isIds ? infoData?.bizNos?.toString() : infoData?.bizNo
|
|
|
+ }}</span>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
@@ -867,6 +869,9 @@
|
|
|
this.$message.error('请先完成包装和物料质检');
|
|
|
}
|
|
|
},
|
|
|
+ getTableValue() {
|
|
|
+ return this.packingList;
|
|
|
+ },
|
|
|
// 选择质检结果改变质检状态
|
|
|
changeWrapStatus(resultValue, row, type) {
|
|
|
console.log(resultValue);
|
|
|
@@ -1008,10 +1013,10 @@
|
|
|
async _getInfo(id) {
|
|
|
if (!id) return;
|
|
|
let res = null;
|
|
|
- let resAll=null;
|
|
|
+ let resAll = null;
|
|
|
if (this.isInterior) {
|
|
|
res = await storageApi.getInboundDetailsById(id);
|
|
|
- }else if (this.isIds) {
|
|
|
+ } else if (this.isIds) {
|
|
|
resAll = await storageApi.getInboundDetailsByIds(id);
|
|
|
} else {
|
|
|
res = await storageApi.getInfoBySourceBizNo(id);
|
|
|
@@ -1020,18 +1025,17 @@
|
|
|
if (this.isIds) {
|
|
|
this.infoData = resAll[0];
|
|
|
this.extInfo = resAll[0].extInfo;
|
|
|
- res=resAll[0]
|
|
|
- res['bizNos']=resAll.map(item=>item.bizNo)
|
|
|
- res.outInDetailList=resAll.map(item=>item.outInDetailList[0])
|
|
|
+ res = resAll[0];
|
|
|
+ res['bizNos'] = resAll.map((item) => item.bizNo);
|
|
|
+ res.outInDetailList = resAll.map((item) => item.outInDetailList[0]);
|
|
|
} else {
|
|
|
this.infoData = res;
|
|
|
this.extInfo = res.extInfo;
|
|
|
-
|
|
|
}
|
|
|
this.productList = res.outInDetailList.map(
|
|
|
(productItem, productIndex) => {
|
|
|
- if(this.isIds){
|
|
|
- productItem['bizNo']=res.bizNos[productIndex]
|
|
|
+ if (this.isIds) {
|
|
|
+ productItem['bizNo'] = res.bizNos[productIndex];
|
|
|
}
|
|
|
return {
|
|
|
...productItem,
|