Browse Source

扫描叫料提交

hella_online_20240829
lijuncheng 2 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>
<view style="width: 100%;"> <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> :clear="false"></uni-data-select>
</view> </view>
</view> </view>
@ -65,9 +65,9 @@
data() { data() {
return { return {
show: false, show: false,
levelList: [{ priorityList: [{
value: 0, value: 0,
text: "" text: ""
}, },
{ {
value: 1, value: 1,
@ -75,10 +75,10 @@
}, },
{ {
value: 2, value: 2,
text: "" text: ""
}, },
], ],
levelCode: 1 priorityCode: 1
} }
}, },
created() { created() {
@ -121,7 +121,7 @@
getScanResult(result) { getScanResult(result) {
if (result.success) { if (result.success) {
result.levelCode =this.levelCode result.priorityCode =this.priorityCode
this.$emit("getResult", result); this.$emit("getResult", result);
} else { } else {
this.showMessage(result.message) this.showMessage(result.message)

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

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

Loading…
Cancel
Save