Browse Source

修改提交

wms3.0_pda
lijuncheng 1 year ago
parent
commit
1f865ff733
  1. 10
      pages/count/job/countDetail.vue
  2. 10
      pages/count/record/countRecord.vue
  3. 8
      pages/customerReturn/job/returnDetail.vue
  4. 8
      pages/customerReturn/record/returnRecord.vue
  5. 8
      pages/deliver/job/deliverDetail.vue
  6. 8
      pages/deliver/record/deliverRecord.vue
  7. 2
      pages/issue/coms/comIssueDetailCard.vue
  8. 3
      pages/issue/job/issueDetail.vue
  9. 8
      pages/package/record/mergePackageRecord.vue
  10. 8
      pages/package/record/overPackageRecord.vue
  11. 8
      pages/package/record/splitPackageRecord.vue
  12. 8
      pages/productDismantle/job/productDismantleDetail.vue
  13. 8
      pages/productDismantle/record/productDismantleRecord.vue
  14. 8
      pages/productPutaway/job/productPutawayDetail.vue
  15. 8
      pages/productPutaway/record/productPutawayRecord.vue
  16. 8
      pages/productReceipt/job/productReceiptDetail.vue
  17. 8
      pages/productReceipt/record/productReceiptRecord.vue
  18. 8
      pages/productionReceipt/job/productionReceiptDetail.vue
  19. 8
      pages/productionReceipt/record/productionReceiptRecord.vue
  20. 40
      pages/productionReturn/job/returnDetail.vue
  21. 9
      pages/purchaseReceipt/job/receiptDetail.vue
  22. 6
      pages/putaway/job/putawayDetail.vue
  23. 138
      pages/repleinsh/job/repleinshDetail.vue
  24. 8
      pages/scrap/job/scrapJobDetail.vue
  25. 8
      pages/supplierDeliver/record/supplierDeliverRecordDetail.vue
  26. 8
      pages/transfer/coms/comTransferRecord.vue
  27. 8
      pages/unPlanned/job/receiptJobDetail.vue

10
pages/count/job/countDetail.vue

@ -443,8 +443,14 @@
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.fromLocationCode = code this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationInfo = location; this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },

10
pages/count/record/countRecord.vue

@ -367,8 +367,14 @@
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.fromLocationCode = code this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.fromLocationInfo = location; this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },

8
pages/customerReturn/job/returnDetail.vue

@ -305,8 +305,14 @@
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code this.toLocationCode = code
this.toLocationInfo = location; this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },
commit() { commit() {

8
pages/customerReturn/record/returnRecord.vue

@ -243,8 +243,14 @@
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code this.toLocationCode = code
this.toLocationCode = location; this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },

8
pages/deliver/job/deliverDetail.vue

@ -311,8 +311,14 @@
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code this.toLocationCode = code
this.toLocationInfo = location; this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },
commit() { commit() {

8
pages/deliver/record/deliverRecord.vue

@ -254,8 +254,14 @@
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code this.toLocationCode = code
this.toLocationCode = location; this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },

2
pages/issue/coms/comIssueDetailCard.vue

@ -16,7 +16,7 @@
<view> <view>
<view class="uni-flex uni-row space-between"> <view class="uni-flex uni-row space-between">
<!-- 推荐库位 --> <!-- 推荐库位 -->
<location :locationCode="loacation.FromLocationCode"> <location :locationCode="loacation.fromLocationCode">
</location> </location>
</view> </view>
<view v-for="(batch,index) in loacation.Batchs"> <view v-for="(batch,index) in loacation.Batchs">

3
pages/issue/job/issueDetail.vue

@ -36,7 +36,6 @@
updateTitle, updateTitle,
getRemoveOption, getRemoveOption,
getISODateTime, getISODateTime,
getDirectoryItemArray getDirectoryItemArray
} from '@/common/basic.js'; } from '@/common/basic.js';
@ -135,6 +134,7 @@
mask: true mask: true
}); });
getIssueJobDetail(that.id).then(res => { getIssueJobDetail(that.id).then(res => {
debugger
uni.hideLoading(); uni.hideLoading();
if (res.data == null) { if (res.data == null) {
that.showMessage('未获取到详情'); that.showMessage('未获取到详情');
@ -146,7 +146,6 @@
// that.fromLocationCode = that.subList[0].FromLocationCode // that.fromLocationCode = that.subList[0].FromLocationCode
// that.toLocationCode = that.subList[0].toLocationCode // that.toLocationCode = that.subList[0].toLocationCode
// that.tolocationTypeList = getDirectoryItemArray(that.jobContent.toLocationTypes) // that.tolocationTypeList = getDirectoryItemArray(that.jobContent.toLocationTypes)
updateTitle(this.jobContent.number);
that.resizeCollapse(); that.resizeCollapse();
uni.hideLoading(); uni.hideLoading();
} else { } else {

8
pages/package/record/mergePackageRecord.vue

@ -224,8 +224,14 @@
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code this.toLocationCode = code
this.toLocationCode = location; this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },

8
pages/package/record/overPackageRecord.vue

@ -248,8 +248,14 @@
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code this.toLocationCode = code
this.toLocationCode = location; this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },

8
pages/package/record/splitPackageRecord.vue

@ -248,8 +248,14 @@
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code this.toLocationCode = code
this.toLocationCode = location; this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },

8
pages/productDismantle/job/productDismantleDetail.vue

@ -306,8 +306,14 @@
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code this.toLocationCode = code
this.toLocationInfo = location; this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },
commit() { commit() {

8
pages/productDismantle/record/productDismantleRecord.vue

@ -222,8 +222,14 @@
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code this.toLocationCode = code
this.toLocationCode = location; this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },

8
pages/productPutaway/job/productPutawayDetail.vue

@ -339,8 +339,14 @@
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code this.toLocationCode = code
this.toLocationInfo = location; this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },
commit() { commit() {

8
pages/productPutaway/record/productPutawayRecord.vue

@ -225,8 +225,14 @@
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code this.toLocationCode = code
this.toLocationCode = location; this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },

8
pages/productReceipt/job/productReceiptDetail.vue

@ -283,8 +283,14 @@
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code this.toLocationCode = code
this.toLocationInfo = location; this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },
async commit() { async commit() {

8
pages/productReceipt/record/productReceiptRecord.vue

@ -208,8 +208,14 @@
// }, // },
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code this.toLocationCode = code
this.toLocationCode = location; this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },

8
pages/productionReceipt/job/productionReceiptDetail.vue

@ -297,8 +297,14 @@
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code this.toLocationCode = code
this.toLocationInfo = location; this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },
commit() { commit() {

8
pages/productionReceipt/record/productionReceiptRecord.vue

@ -215,8 +215,14 @@
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code this.toLocationCode = code
this.toLocationCode = location; this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },

40
pages/productionReturn/job/returnDetail.vue

@ -287,21 +287,35 @@
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code this.toLocationCode = code
this.toLocationInfo = location; this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },
commit() { commit() {
if (this.toLocationCode == "") { this.scanCount = getScanCount(this.subList);
this.showMessage("请扫描目标库位") if (this.scanCount == 0) {
this.showErrorMessage("扫描数为0,请先扫描")
return; return;
} }
// if (!this.checkLocation()) {
return
}
//
if (this.scanCount == this.subList.length) {
this.submitJob();
} else if (this.scanCount < this.subList.length) {
//
if (this.jobContent.allowPartialComplete == "TRUE") { if (this.jobContent.allowPartialComplete == "TRUE") {
//
this.submitJob(); this.submitJob();
} else { } else {
this.scanCount = getScanCount(this.subList); //
if (this.scanCount < this.subList.length) {
this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交<br>' + "已经扫描[" + this.scanCount + this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交<br>' + "已经扫描[" + this.scanCount +
"]箱总共[" + this "]箱总共[" + this
.subList.length + "]箱", res => { .subList.length + "]箱", res => {
@ -309,8 +323,6 @@
this.openScanPopup(); this.openScanPopup();
} }
}); });
} else {
this.submitJob();
} }
} }
}, },
@ -378,6 +390,18 @@
return this.jobContent; return this.jobContent;
}, },
checkLocation() {
var isPass = true;
if (this.toLocationCode == "") {
this.showMessageHint('请扫描收货库位', callback => {
this.$refs.comScanLocation.showLocation();
})
return isPass = false;
}
return isPass;
},
showMessage(message) { showMessage(message) {
setTimeout(r => { setTimeout(r => {
this.scanPopupLoseFocus(); this.scanPopupLoseFocus();

9
pages/purchaseReceipt/job/receiptDetail.vue

@ -258,15 +258,14 @@
commit() { commit() {
this.scanCount = this.getScanCount(); this.scanCount = this.getScanCount();
//
if (!this.checkLocation()) {
return
}
if( this.scanCount==0){ if( this.scanCount==0){
this.showErrorMessage("扫描数为0,请先扫描") this.showErrorMessage("扫描数为0,请先扫描")
return; return;
} }
//
if (!this.checkLocation()) {
return
}
console.log("校验通过") console.log("校验通过")

6
pages/putaway/job/putawayDetail.vue

@ -349,13 +349,13 @@
commit() { commit() {
this.scanCount = getScanCount(this.subList); this.scanCount = getScanCount(this.subList);
if (!this.checkLocation()) {
return
}
if (this.scanCount == 0) { if (this.scanCount == 0) {
this.showErrorMessage("扫描数为0,请先扫描") this.showErrorMessage("扫描数为0,请先扫描")
return; return;
} }
if (!this.checkLocation()) {
return
}
// //
if (this.scanCount == this.subList.length) { if (this.scanCount == this.subList.length) {

138
pages/repleinsh/job/repleinshDetail.vue

@ -5,7 +5,8 @@
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> <view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class=""> <view class="">
<com-detail-card :dataContent="item" :index="index" :settingParam="jobContent" <com-detail-card :dataContent="item" :index="index" :settingParam="jobContent"
@remove="updateData" @updateData="updateData" @openDetail="openDetail"> @remove="updateData" @updateData="updateData" @openDetail="openDetail"
:locationTypeList='tolocationTypeList'>
</com-detail-card> </com-detail-card>
</view> </view>
<u-line /> <u-line />
@ -14,7 +15,7 @@
</view> </view>
<requiredLocation ref='comScanLocation' title="目标库位" :locationCode="toLocationCode" <requiredLocation ref='comScanLocation' title="目标库位" :locationCode="toLocationCode"
@getLocation='getToLocationCode' :isShowEdit="jobContent.allowModifyLocation == 1" @getLocation='scanLocationCode' :isShowEdit="jobContent.allowModifyLocation == 'TRUE'"
:locationTypeList="tolocationTypeList"></requiredLocation> :locationTypeList="tolocationTypeList"></requiredLocation>
<view class="page-footer"> <view class="page-footer">
@ -285,7 +286,11 @@
']不一致,是否继续上架?', res => { ']不一致,是否继续上架?', res => {
if (res) { if (res) {
itemDetail.scaned = true; itemDetail.scaned = true;
itemDetail.handleQty = Number(result.label.qty); itemDetail.handleQty = Number(result.label.qty)>Number(result.balance.qty)?Number(result.balance.qty):Number(result.label.qty);
itemDetail.balance = result.balance;
itemDetail.balance.balanceQty = result.balance.qty;
itemDetail.balance.stdPackQty =result.package.stdPackQty
itemDetail.balance.stdPackUnit =result.package.stdPackUnit
this.calcHandleQty(); this.calcHandleQty();
} else { } else {
this.scanPopupGetFocus(); this.scanPopupGetFocus();
@ -293,7 +298,11 @@
}); });
} else { } else {
itemDetail.scaned = true; itemDetail.scaned = true;
itemDetail.handleQty = Number(result.label.qty); itemDetail.handleQty = Number(result.label.qty)>Number(result.balance.qty)?Number(result.balance.qty):Number(result.label.qty);
itemDetail.balance = result.balance;
itemDetail.balance.balanceQty = result.balance.qty;
itemDetail.balance.stdPackQty =result.package.stdPackQty
itemDetail.balance.stdPackUnit =result.package.stdPackUnit
this.calcHandleQty(); this.calcHandleQty();
} }
} }
@ -305,8 +314,14 @@
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位["+code+"]", res => {
this.toLocationCode = code this.toLocationCode = code
this.toLocationInfo = location; this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },
openDetail(item) { openDetail(item) {
@ -314,53 +329,78 @@
}, },
commit() { commit() {
if (this.toLocationCode == "") { this.scanCount = getScanCount(this.subList);
this.showMessage("请先选择目标库位") if (this.scanCount == 0) {
this.showErrorMessage("扫描数为0,请先扫描")
return; return;
} }
//
if (!this.checkLocation()) {
return
}
// //
if (this.scanCount == this.subList.length) {
this.submitJob();
} else if (this.scanCount < this.subList.length) {
//
if (this.jobContent.allowPartialComplete == "TRUE") { if (this.jobContent.allowPartialComplete == "TRUE") {
//
this.submitJob(); this.submitJob();
} else { } else {
this.scanCount = getScanCount(this.subList); //
if (this.scanCount < this.subList.length) {
this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交<br>' + "已经扫描[" + this.scanCount + this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交<br>' + "已经扫描[" + this.scanCount +
"]箱总共[" + this.subList.length + "]箱", res => { "]箱总共[" + this
.subList.length + "]箱", res => {
if (res) { if (res) {
this.openScanPopup(); this.openScanPopup();
} }
}); });
} else {
this.submitJob();
} }
} }
}, },
async submitJob() { submitJob() {
uni.showLoading({ uni.showLoading({
title: "提交中....", title: "提交中....",
mask: true mask: true
}); });
//null,,
if (this.toLocationCode == null || this.toLocationCode == "") {
var params = this.setParams(false)
console.log("提交参数", JSON.stringify(params));
// repleinshJobSubmit( params).then(res => {
// if (res.data) {
// this.showCommitSuccessMessage("<br>" + res.data, )
// } else {
// this.showErrorMessage(""+res.msg)
// }
// uni.hideLoading()
// }).catch(error => {
// uni.hideLoading()
// this.showErrorMessage(error)
// })
} else {
var itemCodes = [] var itemCodes = []
this.detailSource.forEach(item => { this.detailSource.forEach(item => {
itemCodes.push(item.itemCode) itemCodes.push(item.itemCode)
}) })
//
getManagementPrecisions(itemCodes,this.toLocationCode, res => { getManagementPrecisions(itemCodes, this.toLocationCode, res => {
if (res.success) { if (res.success) {
this.managementList = res.list; this.managementList = res.list;
var params = this.setParams(); var params = this.setParams(true)
console.log("提交参数",JSON.stringify(params)); console.log("提交参数", JSON.stringify(params));
// repleinshJobSubmit(this.id, params).then(res => {
// uni.hideLoading()
// if (res.data) {
// var hint = res.data.Number;
// this.showCommitSuccessMessage("" + hint)
// repleinshJobSubmit( params).then(res => {
// if (res.data) {
// this.showCommitSuccessMessage("<br>" + res.data, )
// } else { // } else {
// this.showErrorMessage("") // this.showErrorMessage(""+res.msg)
// } // }
// uni.hideLoading()
// }).catch(error => { // }).catch(error => {
// uni.hideLoading() // uni.hideLoading()
// this.showErrorMessage(error) // this.showErrorMessage(error)
@ -370,10 +410,32 @@
this.showErrorMessage(res.message); this.showErrorMessage(res.message);
} }
}); });
}
}, },
setParams() { checkLocation() {
var isPass = true;
if (this.toLocationCode == "") {
this.showMessageHint('请扫描收货库位', callback => {
this.$refs.comScanLocation.showLocation();
})
return isPass = false;
}
return isPass;
},
showMessageHint(hint, callback) {
this.$refs.comMessage.showErrorMessage(hint, res => {
if (res) {
callback()
}
});
},
setParams(queryModel) {
var subList = [] var subList = []
var createTime = getCurrDateTime(); var createTime = getCurrDateTime();
var creator = this.$store.state.user.id var creator = this.$store.state.user.id
@ -381,17 +443,35 @@
this.detailSource.forEach(item => { this.detailSource.forEach(item => {
item.subList.forEach(detail => { item.subList.forEach(detail => {
if (detail.scaned) { if (detail.scaned) {
var subItem = {};
Object.assign(subItem, detail)
if (queryModel) {
var info = getPackingNumberAndBatch(this.managementList, detail.itemCode, var info = getPackingNumberAndBatch(this.managementList, detail.itemCode,
detail.packingNumber, detail.batch); detail.packingNumber, detail.batch);
detail.toPackingNumber =info.packingNumber; subItem.package ="" ;
detail.toBatch =info.batch; subItem.balance ="" ;
subList.push(detail) subItem.toPackingNumber = info.packingNumber;;
subItem.toContainerNumber = subItem.containerNumber
subItem.toBatch = info.batch;
subItem.toInventoryStatus = subItem.inventoryStatus
subItem.toLocationCode = this.toLocationCode
} else {
subItem.package ="" ;
subItem.balance ="" ;
subItem.toPackingNumber = subItem.packingNumber;
subItem.toContainerNumber = subItem.containerNumber
subItem.toBatch = subItem.toBatch;
subItem.toInventoryStatus = subItem.inventoryStatus
subItem.toLocationCode = ""
}
subList.push(subItem)
} }
}) })
}) })
this.jobContent.subList = subList this.jobContent.subList = subList
this.jobContent.createTime = createTime; this.jobContent.createTime = createTime;
this.jobContent.creator =creator; this.jobContent.creator = creator;
return this.jobContent; return this.jobContent;
}, },

8
pages/scrap/job/scrapJobDetail.vue

@ -249,8 +249,14 @@
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code this.toLocationCode = code
this.toLocationInfo = location; this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },
async commit() { async commit() {

8
pages/supplierDeliver/record/supplierDeliverRecordDetail.vue

@ -194,8 +194,14 @@
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code this.toLocationCode = code
this.toLocationInfo = location; this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },

8
pages/transfer/coms/comTransferRecord.vue

@ -234,8 +234,14 @@
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code this.toLocationCode = code
this.toLocationCode = location; this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },

8
pages/unPlanned/job/receiptJobDetail.vue

@ -282,8 +282,14 @@
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code this.toLocationCode = code
this.toLocationInfo = location; this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
}, },
async commit() { async commit() {

Loading…
Cancel
Save