Browse Source

发料申请添加优先级

hella_online_20240829
zhang_li 4 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> @confirm="confirmWareHouse"></u-select>
</view> </view>
</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='split_line'></view>
<view class="uni-flex uni-row padding title u-col-center"> <view class="uni-flex uni-row padding title u-col-center">
<text>位置</text> <text>位置</text>
@ -67,6 +80,7 @@
</view> </view>
</view> </view>
<view class='split_line'></view> <view class='split_line'></view>
</view> </view>
</view> </view>
</view> </view>
@ -136,7 +150,21 @@
maxlength: 10, maxlength: 10,
stdPackInfo: undefined, stdPackInfo: undefined,
wareHouseList: [], wareHouseList: [],
showWareHouse: false showWareHouse: false,
priorityList: [{
value: 0,
text: "低"
},
{
value: 1,
text: "中"
},
{
value: 2,
text: "高"
},
],
priority:1,//
} }
}, },
props: { props: {
@ -207,6 +235,7 @@
this.itemCode = "请扫描物料信息"; this.itemCode = "请扫描物料信息";
this.rawLocationCode = "" this.rawLocationCode = ""
this.positionInfo = "请选择位置" this.positionInfo = "请选择位置"
this.priority = ''
this.fromWarehouseCode = "请选择仓库代码" this.fromWarehouseCode = "请选择仓库代码"
this.workshopCode = "" // this.workshopCode = "" //
this.workShopName = "" this.workShopName = ""
@ -241,6 +270,10 @@
}, },
confirm() { confirm() {
if (this.priority === '') {
this.showErrorMessage("请输入优先级", "priority")
return
}
if (this.positionInfo == "请选择位置") { if (this.positionInfo == "请选择位置") {
this.showErrorMessage("请选择位置") this.showErrorMessage("请选择位置")
return return
@ -286,6 +319,7 @@
fgLocationCode: this.fgLocationCode, fgLocationCode: this.fgLocationCode,
fromWarehouseCode: this.fromWarehouseCode, fromWarehouseCode: this.fromWarehouseCode,
toWarehouseCode: this.fromWarehouseCode, toWarehouseCode: this.fromWarehouseCode,
priority : this.priority,
itemCode: this.itemCode, itemCode: this.itemCode,
itemName: this.itemName, itemName: this.itemName,
uom: this.uom, uom: this.uom,

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

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

Loading…
Cancel
Save