Browse Source

YT-1746PDA【物料隔离任务】支持修改目标库位。

intex_online20241228
zhang_li 1 month ago
parent
commit
be2eb3efd9
  1. 32
      src/pages/inventoryMove/job/inventoryMoveDetail.vue

32
src/pages/inventoryMove/job/inventoryMoveDetail.vue

@ -25,6 +25,9 @@
<view class="uni-flex u-col-center space-between padding_10" <view class="uni-flex u-col-center space-between padding_10"
style="background-color:ghostwhite; width: 100%; "> style="background-color:ghostwhite; width: 100%; ">
<view class=""> <view class="">
<locationCompare ref="locationCompare" title="目标库位" :recommendLocationCode="jobToLocationCode"
@getLocation='scanLocationCode' :locationAreaTypeList="toLocationAreaTypeList" v-if="businessTypeCode == 'OkToHold'">
</locationCompare>
</view> </view>
<view class=" uni-flex uni-row"> <view class=" uni-flex uni-row">
<button class="btn_single_commit" hover-class="btn_commit_after" @click="commit">提交</button> <button class="btn_single_commit" hover-class="btn_commit_after" @click="commit">提交</button>
@ -78,6 +81,7 @@
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue" import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
import detailInfoPopup from '@/pages/inventoryMove/coms/detailInfoPopup.vue' import detailInfoPopup from '@/pages/inventoryMove/coms/detailInfoPopup.vue'
import jobTop from '@/mycomponents/job/jobTop.vue' import jobTop from '@/mycomponents/job/jobTop.vue'
import locationCompare from '@/mycomponents/location/locationCompare.vue'
export default { export default {
@ -88,7 +92,8 @@
comInventoryDetailCard, comInventoryDetailCard,
winScanPackAndLocation, winScanPackAndLocation,
detailInfoPopup, detailInfoPopup,
jobTop jobTop,
locationCompare
}, },
data() { data() {
return { return {
@ -106,7 +111,8 @@
toInventoryStatus: '', toInventoryStatus: '',
jobStatus: "", jobStatus: "",
title: '', title: '',
toLocationAreaTypeList: [] toLocationAreaTypeList: [],
jobToLocationCode:''
}; };
}, },
props: { props: {
@ -238,6 +244,7 @@
that.toLocationAreaTypeList = getDirectoryItemArray(that.jobContent.toAreaTypes); that.toLocationAreaTypeList = getDirectoryItemArray(that.jobContent.toAreaTypes);
that.jobStatus = res.data.status that.jobStatus = res.data.status
that.subList = res.data.subList; that.subList = res.data.subList;
that.jobToLocationCode = that.subList[0].toLocationCode
that.detailSource = await getDataSource(that.subList) that.detailSource = await getDataSource(that.subList)
// //
var itemCodes = [] var itemCodes = []
@ -598,7 +605,7 @@
mask: true mask: true
}); });
var params = this.setParams() var params = this.setParams()
console.log("提交" + JSON.stringify(params)) console.log("提交",params)
inventoryMoveSubmit(params).then(res => { inventoryMoveSubmit(params).then(res => {
uni.hideLoading() uni.hideLoading()
if (res.data) { if (res.data) {
@ -723,7 +730,24 @@
navigateBack(1) navigateBack(1)
}) })
}, },
scanLocationCode(location, code) {
if (this.jobContent.allowModifyLocation == 'TRUE') {
// this.toLocationCode = code;
this.jobToLocationCode= code
this.toWarehouseCode= location.warehouseCode
} else {
if (code == this.jobToLocationCode) {
this.jobToLocationCode = code;
} else {
this.showErrorMessage("任务设置中不允许修改库位,扫描的库位【" + code + "】与推荐的库位【" + this.jobToLocationCode + "】不一致")
}
}
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
},
} }
} }

Loading…
Cancel
Save