多组织仓位
This commit is contained in:
@@ -269,7 +269,6 @@ export default {
|
||||
subStockCode: this.cwcode,
|
||||
details: []
|
||||
};
|
||||
console.log(this.dataList, '=this.dataList=');
|
||||
this.dataList.forEach((it) => {
|
||||
if (it.details && it.details.length > 0) {
|
||||
it.details.forEach((k) => {
|
||||
@@ -280,16 +279,19 @@ export default {
|
||||
qty: k.qty,
|
||||
subStockCode: k.subStockCode,
|
||||
serialNumbers: k.itxlhlist,
|
||||
remark: k.remark
|
||||
remark: k.remark,
|
||||
twoSerialNumbers:k.twoSerialNumbers.filter(Boolean)
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
console.log('入库回退下架1', this.dataList, formdata);
|
||||
// console.log('入库回退下架1', this.dataList, formdata);
|
||||
// formData.details.twoSerialNumbers = formData?.details?.twoSerialNumbers?.length && formData?.details?.twoSerialNumbers.filter(Boolean);
|
||||
if (this.requestStatus) {
|
||||
return false;
|
||||
}
|
||||
this.requestStatus = true;
|
||||
|
||||
this.$api.post('/BackRecord/OffShelf', formdata).then((res) => {
|
||||
if (res.status == 200) {
|
||||
uni.showToast({
|
||||
@@ -474,6 +476,7 @@ export default {
|
||||
it.subStockCode = res.data.subStockCode;
|
||||
it.boxId = it.boxId;
|
||||
it.remark = '';
|
||||
it.twoSerialNumbers = it.twoSerialNumbers ? it.twoSerialNumbers : []
|
||||
});
|
||||
this.dataList = [res.data].concat(this.dataList);
|
||||
|
||||
@@ -608,8 +611,11 @@ export default {
|
||||
this.xlhVal = res.data.serialNumber;
|
||||
// 缓存序列号
|
||||
this.xlhstrList.push(res.data.serialNumber);
|
||||
|
||||
console.log(this.dataList,'=this.dataList=')
|
||||
//缓存2件装序列号
|
||||
if(res.data.isTwo==2) {
|
||||
this.dataList[indexobj.objectIndex].details[indexobj.detailIndex].twoSerialNumbers.push(res.data.twoSerialNumber);
|
||||
this.twoData.push(res.data.twoSerialNumber)
|
||||
}
|
||||
uni.showToast({
|
||||
|
||||
Reference in New Issue
Block a user