Browse Source

发料申请添加优先级

hella_online_20240829
zhang_li 2 months ago
parent
commit
ec4b1771a8
  1. 38
      src/pages/issue/coms/comIssueRequestPopup.vue
  2. 4
      src/pages/issue/request/issueRequestCreate.vue

38
src/pages/issue/coms/comIssueRequestPopup.vue

@ -23,7 +23,20 @@
@confirm="confirmWareHouse"></u-select>
</view>
</view>
<view class='split_line'></view>
<view class="uni-flex uni-row" style="align-items: center;
background-color: #fff;
margin-right: 20rpx;
border-radius: 8rpx;
">
<view class="uni-center" style="width: 25%; font-size: 32rpx; ">
优先级
</view>
<view style="width: 100%;">
<uni-data-select style="padding: 20rpx;" v-model="priority" :localdata="priorityList"
:clear="false"></uni-data-select>
</view>
</view>
<view class='split_line'></view>
<view class="uni-flex uni-row padding title u-col-center">
<text>位置</text>
@ -67,6 +80,7 @@
</view>
</view>
<view class='split_line'></view>
</view>
</view>
</view>
@ -136,7 +150,21 @@
maxlength: 10,
stdPackInfo: undefined,
wareHouseList: [],
showWareHouse: false
showWareHouse: false,
priorityList: [{
value: 0,
text: "低"
},
{
value: 1,
text: "中"
},
{
value: 2,
text: "高"
},
],
priority:1,//
}
},
props: {
@ -207,6 +235,7 @@
this.itemCode = "请扫描物料信息";
this.rawLocationCode = ""
this.positionInfo = "请选择位置"
this.priority = ''
this.fromWarehouseCode = "请选择仓库代码"
this.workshopCode = "" //
this.workShopName = ""
@ -241,6 +270,10 @@
},
confirm() {
if (this.priority === '') {
this.showErrorMessage("请输入优先级", "priority")
return
}
if (this.positionInfo == "请选择位置") {
this.showErrorMessage("请选择位置")
return
@ -286,6 +319,7 @@
fgLocationCode: this.fgLocationCode,
fromWarehouseCode: this.fromWarehouseCode,
toWarehouseCode: this.fromWarehouseCode,
priority : this.priority,
itemCode: this.itemCode,
itemName: this.itemName,
uom: this.uom,

4
src/pages/issue/request/issueRequestCreate.vue

@ -107,7 +107,6 @@
//
requestConfirm(action, item) {
if (this.detailSource.subList.length == 0) {
this.detailSource = {
workshopCode: item.workshopCode,
@ -119,6 +118,7 @@
toLocationCode: item.rawLocationCode,
fromWarehouseCode:item.fromWarehouseCode,
useOnTheWay:this.useOnTheWay,
priority : item.priority,
totalQty: 0,
subList: []
}
@ -153,7 +153,7 @@
qty: item.qty,
uom: item.uom
}
this.detailSource.priority =item.priority
this.detailSource.subList.push(subItem)
} else {

Loading…
Cancel
Save