Browse Source

补料去除包装规格提示

hella_online_20241011
lijuncheng 2 months ago
parent
commit
b3d81b8c99
  1. 13
      src/mycomponents/item/itemFilter.vue
  2. 27
      src/pages/query/item.vue
  3. 19
      src/pages/repleinsh/coms/comScanReplishPack.vue

13
src/mycomponents/item/itemFilter.vue

@ -17,6 +17,12 @@
库存状态 :
<uni-data-checkbox mode="tag" multiple v-model="state" :localdata="stateList"></uni-data-checkbox>
</view>
<view v-if="isShowLocationArea" class="uni-flex " style=" flex-direction: column; width: 100%;margin-top: 10rpx;">
<view class="" style="font-size: 35rpx; margin-bottom: 10rpx;">
库区
</view>
<uni-easyinput v-model="locationAreaCode" placeholder="请输入库区"></uni-easyinput>
</view>
<view class="" style="margin-top: 30rpx; margin-left: 30rpx; margin-right: 30rpx;">
<button type="primary" size="default" @click="confirm">确认</button>
</view>
@ -72,7 +78,7 @@
type: Boolean,
default: false
},
isShowProductionLineCode: {
isShowLocationArea: {
type: Boolean,
default: false
},
@ -88,7 +94,8 @@
checkedWaitModel: false,
stateList: [],
state:[],
locationCode:""
locationCode:"",
locationAreaCode:""
}
},
watch: {
@ -130,7 +137,7 @@
},
confirm() {
this.$emit("onConfirmClick", this.locationCode,this.state)
this.$emit("onConfirmClick", this.locationCode,this.state,this.locationAreaCode)
this.closeScanPopup();
},

27
src/pages/query/item.vue

@ -1,7 +1,9 @@
<!-- 基于z-paging封装个性化分页组件演示(vue) -->
<template>
<view class="uni-flex" style="flex-direction: column">
<itemFilter ref="filter" @onConfirmClick="confirm">
<itemFilter ref="filter"
:isShowLocationArea="true"
@onConfirmClick="confirm">
</itemFilter>
<view ref="topContent" class="top" >
<com-blank-view @goScan='openScanPopup' v-if="itemCode==''"></com-blank-view>
@ -88,7 +90,8 @@
locationCode: "",
inventoryStatus: "",
pageSize:10,
topHeight:115
topHeight:115,
locationAreaCode:""
}
},
//
@ -191,6 +194,14 @@
})
}
if (this.locationAreaCode) {
filters.push({
column: "areaCode",
action: "==",
value: this.locationAreaCode
})
}
if (this.inventoryStatus) {
filters.push({
column: "inventoryStatus",
@ -257,6 +268,14 @@
})
}
if (this.locationAreaCode) {
filters.push({
column: "areaCode",
action: "==",
value: this.locationAreaCode
})
}
if (this.inventoryStatus) {
filters.push({
column: "inventoryStatus",
@ -320,7 +339,6 @@
mask: true
});
this.loadingType = "loading";
if (type === "refresh") {
this.pageNo = 1;
@ -469,9 +487,10 @@
this.getContentByTab(index, this.pageNo, this.pageSize, "refresh")
},
confirm(locationCode, status) {
confirm(locationCode, status,locationAreaCode) {
if(this.itemCode){
this.locationCode = locationCode;
this.locationAreaCode=locationAreaCode;
if(status.length>0){
var arrayItems = status.join(',')
this.inventoryStatus = arrayItems

19
src/pages/repleinsh/coms/comScanReplishPack.vue

@ -255,16 +255,17 @@
});
return
}
if (result.package.packUnit !== item.packUnit) {
this.$refs.comMessage.showQuestionMessage(
`扫描物料包装【${result.package.packUnit}】与任务推荐包装规格【${item.packUnit}】不一致.是否要继续发料?`, res => {
if (res) {
this.getToLocationBalance(result)
}
});
} else {
this.getToLocationBalance(result)
}
// if (result.package.packUnit !== item.packUnit) {
// this.$refs.comMessage.showQuestionMessage(
// `${result.package.packUnit}${item.packUnit}.`, res => {
// if (res) {
// this.getToLocationBalance(result)
// }
// });
// } else {
// this.getToLocationBalance(result)
// }
}
},

Loading…
Cancel
Save