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. 21
      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> <uni-data-checkbox mode="tag" multiple v-model="state" :localdata="stateList"></uni-data-checkbox>
</view> </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;"> <view class="" style="margin-top: 30rpx; margin-left: 30rpx; margin-right: 30rpx;">
<button type="primary" size="default" @click="confirm">确认</button> <button type="primary" size="default" @click="confirm">确认</button>
</view> </view>
@ -72,7 +78,7 @@
type: Boolean, type: Boolean,
default: false default: false
}, },
isShowProductionLineCode: { isShowLocationArea: {
type: Boolean, type: Boolean,
default: false default: false
}, },
@ -88,7 +94,8 @@
checkedWaitModel: false, checkedWaitModel: false,
stateList: [], stateList: [],
state:[], state:[],
locationCode:"" locationCode:"",
locationAreaCode:""
} }
}, },
watch: { watch: {
@ -130,7 +137,7 @@
}, },
confirm() { confirm() {
this.$emit("onConfirmClick", this.locationCode,this.state) this.$emit("onConfirmClick", this.locationCode,this.state,this.locationAreaCode)
this.closeScanPopup(); this.closeScanPopup();
}, },

27
src/pages/query/item.vue

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

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

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

Loading…
Cancel
Save