Browse Source

修改合格退料提交成功后清除数据

wms3.0_pda
lijuncheng 10 months ago
parent
commit
be30b32855
  1. 16
      mycomponents/scan/winScanPackAndPosition.vue
  2. 7
      pages/productionReturn/record/returnToStore.vue

16
mycomponents/scan/winScanPackAndPosition.vue

@ -94,7 +94,6 @@
}, },
methods: { methods: {
openScanPopup() { openScanPopup() {
if (this.positionList.length == 0) { if (this.positionList.length == 0) {
uni.showLoading({ uni.showLoading({
title: "数据加载中....", title: "数据加载中....",
@ -112,6 +111,21 @@
this.$refs.popup.open('bottom'); this.$refs.popup.open('bottom');
}, },
initData(){
this.positionInfo= "请选择位置";
this.positionList = [];
this.productionLineCode = '';
this.rawLocationCode = "";
this.fgLocationCode = "";
this.workshopCode = "";
this.workStationCode ="";
this.workShopName = "";
this.productionLineName="";
this.workStationName="";
this.show = false;
this.isEditPosition = true
},
closeScanPopup() { closeScanPopup() {
this.$refs.popup.close(); this.$refs.popup.close();
this.$emit("close", ''); this.$emit("close", '');

7
pages/productionReturn/record/returnToStore.vue

@ -15,7 +15,7 @@
<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="">
<comReturnRecord :dataContent="item" :index="index" @removeItem="removeItem(index,item)" <comReturnRecord :dataContent="item" :index="index" @removeItem="removeItem(index,item)"
:isShowFromLocation="false" :isShowFromLocation="true"
@updateData="updateData" @removePack="removePack"> @updateData="updateData" @removePack="removePack">
</comReturnRecord> </comReturnRecord>
</view> </view>
@ -215,6 +215,7 @@
let newDetail = this.createDetailInfo(label, pack); let newDetail = this.createDetailInfo(label, pack);
newDetail.toLocationCode = toLocation.code; newDetail.toLocationCode = toLocation.code;
newDetail.fromLocationCode = this.rawLocationCode; newDetail.fromLocationCode = this.rawLocationCode;
newDetail.locationCode = this.rawLocationCode;
newDetail.toWarehouseCode = toLocation.warehouseCode; newDetail.toWarehouseCode = toLocation.warehouseCode;
itemp.subList.push(newDetail); itemp.subList.push(newDetail);
this.detailSource.push(itemp) this.detailSource.push(itemp)
@ -390,7 +391,6 @@
this.showErrorMessage("没有要提交的数据,请先扫描") this.showErrorMessage("没有要提交的数据,请先扫描")
} }
}, },
setFromPrecisionStrategParams() { setFromPrecisionStrategParams() {
@ -480,7 +480,7 @@
submitItem.productionlineCode = this.productionLineCode; submitItem.productionlineCode = this.productionLineCode;
submitItem.workStationCode = this.workStationCode; submitItem.workStationCode = this.workStationCode;
submitItem.qty = detail.handleQty!=0?detail.handleQty:detail.qty; submitItem.qty = detail.handleQty;
subList.push(submitItem) subList.push(submitItem)
} }
}) })
@ -533,6 +533,7 @@
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
this.clearData(); this.clearData();
this.$refs.scanPopup.initData();
}) })
}, },
clearData() { clearData() {

Loading…
Cancel
Save