Browse Source

补料记录修改物料类型校验

wms3.0_pda
lijuncheng 10 months ago
parent
commit
9f285314e1
  1. 3
      pages/issue/coms/comIssueRequestPopup.vue
  2. 2
      pages/query/container.vue
  3. 2
      pages/query/item.vue
  4. 2
      pages/query/item_copy.vue
  5. 22
      pages/repleinsh/coms/comRepleinshRequestPopup.vue
  6. 7
      pages/repleinsh/record/repleinshRecord.vue
  7. 2
      pages/unPlanned/coms/comReceiptRequestPopup.vue

3
pages/issue/coms/comIssueRequestPopup.vue

@ -163,7 +163,7 @@
if (this.isModifiedPosition) { if (this.isModifiedPosition) {
this.isModifiedPosition = false this.isModifiedPosition = false
} else { } else {
this.itemCode = ""; this.itemCode = "请扫描物料信息";
this.show = false this.show = false
this.uom = "" this.uom = ""
this.qty = 0; this.qty = 0;
@ -321,7 +321,6 @@
this.uom =scanResult.uom this.uom =scanResult.uom
this.stdPackInfo = scanResult.package; this.stdPackInfo = scanResult.package;
this.numberFocus = true this.numberFocus = true
} }
} }
} }

2
pages/query/container.vue

@ -27,7 +27,7 @@
<win-scan-button @goScan='openScanPopup' v-if="containerNumber!=''"></win-scan-button> <win-scan-button @goScan='openScanPopup' v-if="containerNumber!=''"></win-scan-button>
<win-scan-item ref="scanPopup" title='器具代码' @getScanCode='getScanCode'> <win-scan-item ref="scanPopup" title='器具代码' @getScanResult='getScanCode'>
</win-scan-item> </win-scan-item>
<show-modal ref="modal"></show-modal> <show-modal ref="modal"></show-modal>
<comMessage ref="comMessage"></comMessage> <comMessage ref="comMessage"></comMessage>

2
pages/query/item.vue

@ -27,7 +27,7 @@
</my-paging> </my-paging>
<win-scan-button @goScan='openScanPopup' v-if="itemCode!=''"></win-scan-button> <win-scan-button @goScan='openScanPopup' v-if="itemCode!=''"></win-scan-button>
<win-scan-item ref="scanPopup" title='物料代码' @getScanCode='getScanCode'> <win-scan-item ref="scanPopup" title='物料代码' @getScanResult='getScanCode'>
</win-scan-item> </win-scan-item>
<comMessage ref="comMessage"></comMessage> <comMessage ref="comMessage"></comMessage>
</view> </view>

2
pages/query/item_copy.vue

@ -42,7 +42,7 @@
</view> </view>
<win-scan-button @goScan='openScanPopup' v-if="itemCode!=''"></win-scan-button> <win-scan-button @goScan='openScanPopup' v-if="itemCode!=''"></win-scan-button>
<win-scan-item ref="scanPopup" title='物料代码' @getScanCode='getScanCode'> <win-scan-item ref="scanPopup" title='物料代码' @getScanResult='getScanCode'>
</win-scan-item> </win-scan-item>
<comMessage ref="comMessage"></comMessage> <comMessage ref="comMessage"></comMessage>
</view> </view>

22
pages/repleinsh/coms/comRepleinshRequestPopup.vue

@ -64,7 +64,7 @@
</view> </view>
</view> </view>
</uni-popup> </uni-popup>
<win-scan-item ref="scanPopup" title='物料代码' @getScanResult='getScanCode'> <win-scan-item ref="scanPopup" title='物料代码' @getScanResult='getItemScanResult' :itemCodeTypeList="itemCodeTypeList">
</win-scan-item> </win-scan-item>
<win-scan-location ref="scanLocationPopup" title='目标库位' @getLocation='getLocationCode' <win-scan-location ref="scanLocationPopup" title='目标库位' @getLocation='getLocationCode'
@ -115,7 +115,6 @@
rawLocationCode: "", rawLocationCode: "",
fgLocationCode: "", fgLocationCode: "",
itemCodeFocus: false, itemCodeFocus: false,
isCheckItemCode: false,
counQty: undefined, counQty: undefined,
editPosition: true, editPosition: true,
numberFocus: false, numberFocus: false,
@ -169,7 +168,6 @@
this.qty = 0; this.qty = 0;
this.itemCode = '请扫描物料信息' this.itemCode = '请扫描物料信息'
this.toLocationCode = '请扫目标库位' this.toLocationCode = '请扫目标库位'
this.isCheckItemCode =false;
this.counQty =undefined; this.counQty =undefined;
this.numberFocus = false this.numberFocus = false
this.$refs.popup.open('bottom'); this.$refs.popup.open('bottom');
@ -216,7 +214,7 @@
return return
} }
if (this.itemCode == "" || !this.isCheckItemCode) { if (this.itemCode == "请扫描物料信息") {
this.showErrorMessage("请输入物料", "itemCode") this.showErrorMessage("请输入物料", "itemCode")
return return
} }
@ -242,7 +240,6 @@
if (res.data != null && res.data.list.length > 0) { if (res.data != null && res.data.list.length > 0) {
this.itemCode = res.data.list[0].code; this.itemCode = res.data.list[0].code;
this.itemName = res.data.list[0].name this.itemName = res.data.list[0].name
this.isCheckItemCode = true;
this.numberFocus = true this.numberFocus = true
this.uom = res.data.list[0].uom this.uom = res.data.list[0].uom
} else { } else {
@ -276,14 +273,12 @@
this.closeRequestPopup(); this.closeRequestPopup();
}, },
getScanCode(code, scanResult) { getItemScanResult(code, scanResult) {
if (code == "") { this.itemCode = code;
this.showErrorMessage('物料号不能为空') this.itemName = scanResult.name
return; this.uom =scanResult.uom
}
this.itemCode = "";
this.checkItemCode(code)
this.stdPackInfo = scanResult.package; this.stdPackInfo = scanResult.package;
this.numberFocus = true
}, },
getLocationCode(location, code) { getLocationCode(location, code) {
@ -304,8 +299,7 @@
} }
}) })
if (type == "itemCode") { if (type == "itemCode") {
this.itemCode = "" this.itemCode = "请扫描物料信息"
this.isCheckItemCode = false;
} }
}) })
}, },

7
pages/repleinsh/record/repleinshRecord.vue

@ -33,7 +33,8 @@
<win-scan-button @goScan='openScanPopup'></win-scan-button> <win-scan-button @goScan='openScanPopup'></win-scan-button>
</view> </view>
<com-repleinsh-request-popup ref="comRepleinshRequestPopup" :toLocationTypeList="tolocationTypeList" <com-repleinsh-request-popup ref="comRepleinshRequestPopup" :toLocationTypeList="tolocationTypeList"
@confirm='requestConfirm'> @confirm='requestConfirm'
:itemCodeTypeList="itemCodeTypeList">
</com-repleinsh-request-popup> </com-repleinsh-request-popup>
<win-scan-button v-if='detailSource.length>0' @goScan='openScanDetailPopup'></win-scan-button> <win-scan-button v-if='detailSource.length>0' @goScan='openScanDetailPopup'></win-scan-button>
<com-scan-issue-pack ref="comScanIssuePack" @closeScan='closeScan' @updateData='updateData'> <com-scan-issue-pack ref="comScanIssuePack" @closeScan='closeScan' @updateData='updateData'>
@ -125,7 +126,8 @@
businessType: {}, businessType: {},
requestList: [], requestList: [],
managementList: [], managementList: [],
dataContent: {} dataContent: {},
itemCodeTypeList:[]
}; };
}, },
onLoad(option) { onLoad(option) {
@ -133,6 +135,7 @@
getBusinessType(typeCode, res => { getBusinessType(typeCode, res => {
if (res.success) { if (res.success) {
this.businessType = res.businessType; this.businessType = res.businessType;
this.itemCodeTypeList = res.itemCodeTypeList;
this.fromlocationTypeList = res.fromlocationTypeList; this.fromlocationTypeList = res.fromlocationTypeList;
this.tolocationTypeList = res.tolocationTypeList; this.tolocationTypeList = res.tolocationTypeList;
this.showRequestPopup(); this.showRequestPopup();

2
pages/unPlanned/coms/comReceiptRequestPopup.vue

@ -68,7 +68,7 @@
</view> </view>
</view> </view>
</uni-popup> </uni-popup>
<win-scan-item ref="itemPopup" title='物料代码' @getScanResult='getItemScanResult'> <win-scan-item ref="itemPopup" title='物料代码' @getScanResult='getItemScanResult' :itemCodeTypeList="itemCodeTypeList">
</win-scan-item> </win-scan-item>
<winScanLocation ref="locationPopup" title="库位代码" @getLocation='getLocationCode'></winScanLocation> <winScanLocation ref="locationPopup" title="库位代码" @getLocation='getLocationCode'></winScanLocation>
<comMessage ref="comMessage"></comMessage> <comMessage ref="comMessage"></comMessage>

Loading…
Cancel
Save