多组织仓位
This commit is contained in:
@@ -408,7 +408,8 @@ export default {
|
||||
materialNumber: k.materialNumber,
|
||||
qty: parseInt(k.qty ? k.qty : 0),
|
||||
serialNumbers: k.itxlhlist,
|
||||
remark: k.remark
|
||||
remark: k.remark,
|
||||
twoSerialNumbers:k.twoSerialNumbers ? k.twoSerialNumbers.filter(Boolean): []
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -418,7 +419,10 @@ export default {
|
||||
if (this.requestStatus) {
|
||||
return false;
|
||||
}
|
||||
|
||||
this.requestStatus = true;
|
||||
|
||||
// formData.details.twoSerialNumbers = formData?.details?.twoSerialNumbers?.length && formData?.details?.twoSerialNumbers?.filter(Boolean);
|
||||
this.$api.post('/BackRecord/OnShelf', formdata).then((res) => {
|
||||
if (res.status == 200) {
|
||||
uni.showToast({
|
||||
@@ -699,6 +703,7 @@ export default {
|
||||
this.xlhstrList.push(res.data.serialNumber);
|
||||
if(res.data.isTwo==2) {
|
||||
this.twoData.push(res.data.twoSerialNumber)
|
||||
this.dataList[0].details[findindx].twoSerialNumbers.push(res.data.twoSerialNumber);
|
||||
}
|
||||
uni.showToast({
|
||||
title: '获取成功',
|
||||
@@ -746,7 +751,8 @@ export default {
|
||||
materialNumber: res.data.materialNumber,
|
||||
specifications: res.data.specifications,
|
||||
materialName: res.data.materialName,
|
||||
remark: ''
|
||||
remark: '',
|
||||
twoSerialNumbers:[]
|
||||
};
|
||||
if (this.xlhOrggType == 'xlh') {
|
||||
this.dqBoxInfo.details = [];
|
||||
@@ -767,7 +773,9 @@ export default {
|
||||
materialNumber: res.data.materialNumber,
|
||||
specifications: res.data.specifications,
|
||||
materialName: res.data.materialName,
|
||||
remark: ''
|
||||
remark: '',
|
||||
twoSerialNumbers:[]
|
||||
|
||||
});
|
||||
this.itIndx = this.dataList[0].details.length - 1;
|
||||
}
|
||||
@@ -784,7 +792,9 @@ export default {
|
||||
materialNumber: res.data.materialNumber,
|
||||
specifications: res.data.specifications,
|
||||
materialName: res.data.materialName,
|
||||
remark: ''
|
||||
remark: '',
|
||||
twoSerialNumbers:[]
|
||||
|
||||
};
|
||||
this.itIndx = this.dataList[0].details.length;
|
||||
}
|
||||
@@ -796,6 +806,7 @@ export default {
|
||||
//缓存2件装序列号
|
||||
if(res.data.isTwo==2) {
|
||||
this.twoData.push(res.data.twoSerialNumber)
|
||||
this.dataList[0].details[this.itIndx].twoSerialNumbers.push(res.data.twoSerialNumber);
|
||||
}
|
||||
}
|
||||
if (this.xlhOrggType == 'ggxh') {
|
||||
@@ -883,6 +894,8 @@ export default {
|
||||
.then((res) => {
|
||||
if (res.status == 200) {
|
||||
if (res.data !== null) {
|
||||
console.log(this.cwcode,'=this.cwcode=')
|
||||
console.log(res.data.subStockCode ,'=res.data.subStockCode =')
|
||||
if (this.htfsType == '按产品回退' && this.cwcode !== res.data.subStockCode && res.data.subStockCode) {
|
||||
uni.showToast({
|
||||
title: '请扫描对应仓位内的箱号',
|
||||
@@ -1024,7 +1037,6 @@ export default {
|
||||
this.dataList[indexobj.objectIndex].details[indexobj.detailIndex].itxlhlist.push(this.xlhVal);
|
||||
} else {
|
||||
const indexsh = this.dataList.findIndex((obj) => obj.boxBillNo === res.data.boxBillNo);
|
||||
console.log(12, indexsh);
|
||||
if (indexsh !== -1) {
|
||||
const shwlidindex = this.dataList[indexsh].details.findIndex((obj) => obj.materialNumber === res.data.materialNumber);
|
||||
console.log(13, shwlidindex, this.dataList[indexsh].details);
|
||||
|
||||
Reference in New Issue
Block a user