Browse Source

扫描叫料提交

hella_online_20240829
lijuncheng 4 months ago
parent
commit
0f4ba9cb62
  1. 12
      src/mycomponents/scan/winScanPackLevel.vue
  2. 8
      src/pages/issue/request/issueScanRequest.vue

12
src/mycomponents/scan/winScanPackLevel.vue

@ -22,7 +22,7 @@
优先级
</view>
<view style="width: 100%;">
<uni-data-select style="padding: 20rpx;" v-model="levelCode" :localdata="levelList" @change="change"
<uni-data-select style="padding: 20rpx;" v-model="priorityCode" :localdata="priorityList" @change="change"
:clear="false"></uni-data-select>
</view>
</view>
@ -65,9 +65,9 @@
data() {
return {
show: false,
levelList: [{
priorityList: [{
value: 0,
text: ""
text: ""
},
{
value: 1,
@ -75,10 +75,10 @@
},
{
value: 2,
text: ""
text: ""
},
],
levelCode: 1
priorityCode: 1
}
},
created() {
@ -121,7 +121,7 @@
getScanResult(result) {
if (result.success) {
result.levelCode =this.levelCode
result.priorityCode =this.priorityCode
this.$emit("getResult", result);
} else {
this.showMessage(result.message)

8
src/pages/issue/request/issueScanRequest.vue

@ -93,19 +93,18 @@
}, 400)
},
getScanResult(data){
getScanResult(result){
this.detailSource = {
subList:[]
}
var labelInfo = data.label;
var labelInfo = result.label;
var data = {
itemCode:labelInfo.itemCode,
location:labelInfo.location,
qty:labelInfo.qty,
uom:labelInfo.uom,
packUnit:labelInfo.packUnit,
levelCode:data.levelCode
packUnit:labelInfo.packUnit
};
this.detailSource.subList.push(data)
@ -113,6 +112,7 @@
this.detailSource.workStationCode=labelInfo.workStationCode;
this.detailSource.warehouseCode = labelInfo.warehouseCode;
this.detailSource.workshopCode = labelInfo.workshopCode;
this.detailSource.priority =result.priorityCode
this.submit();
},

Loading…
Cancel
Save