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) {
this.isModifiedPosition = false
} else {
this.itemCode = "";
this.itemCode = "请扫描物料信息";
this.show = false
this.uom = ""
this.qty = 0;
@ -321,7 +321,6 @@
this.uom =scanResult.uom
this.stdPackInfo = scanResult.package;
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-item ref="scanPopup" title='器具代码' @getScanCode='getScanCode'>
<win-scan-item ref="scanPopup" title='器具代码' @getScanResult='getScanCode'>
</win-scan-item>
<show-modal ref="modal"></show-modal>
<comMessage ref="comMessage"></comMessage>

2
pages/query/item.vue

@ -27,7 +27,7 @@
</my-paging>
<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>
<comMessage ref="comMessage"></comMessage>
</view>

2
pages/query/item_copy.vue

@ -42,7 +42,7 @@
</view>
<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>
<comMessage ref="comMessage"></comMessage>
</view>

22
pages/repleinsh/coms/comRepleinshRequestPopup.vue

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

7
pages/repleinsh/record/repleinshRecord.vue

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

2
pages/unPlanned/coms/comReceiptRequestPopup.vue

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

Loading…
Cancel
Save