Browse Source

修改隔离转合格修改目标库位

hella_online_20240904
lijuncheng 2 months ago
parent
commit
6acb6c923a
  1. 26
      src/pages/inventoryMove/coms/comInventoryDetailCard.vue
  2. 12
      src/pages/inventoryMove/job/inventoryMoveDetail.vue

26
src/pages/inventoryMove/coms/comInventoryDetailCard.vue

@ -19,7 +19,7 @@
</uni-collapse>
<balance-qty-edit ref="qtyEdit" :settingParam="settingParam" :allowEditQty="allowEditQty" @confirm="confirm"
:allowEditStatus="true"></balance-qty-edit>
<win-scan-location ref="scanLocationCode" title="目标库位" @getLocation='getLocation'></win-scan-location>
<win-scan-location ref="scanLocationCode" :locationAreaTypeList="locationAreaTypeList" title="目标库位" @getLocation='getLocation'></win-scan-location>
<detail-info-popup ref="detailInfoPopup"></detail-info-popup>
<comMessage ref="message"></comMessage>
</view>
@ -71,13 +71,27 @@
type: Boolean,
default: false
},
locationAreaTypeList: {
type: Array,
default: []
}
},
watch: {
// dataContent: {
// handler(newName, oldName) {},
// immediate: true,
// deep: true
// }
dataContent: {
handler(newName, oldName) {
if (this.dataContent.subList.length > 0) {
this.$nextTick(res => {
setTimeout(() => {
if (this.$refs.collapse1) {
this.$refs.collapse1.resize();
}
}, 200)
})
}
},
immediate: true,
deep: true
}
},
mounted() {
if (this.detailOptions.length == 0) {

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

@ -13,7 +13,9 @@
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class="">
<comInventoryDetailCard :dataContent="item" :settingParam="jobContent" @remove="updateData"
@updateData='updateData' @openDetail="openDetail">
@updateData='updateData'
:locationAreaTypeList="toLocationAreaTypeList"
@openDetail="openDetail">
</comInventoryDetailCard>
</view>
</view>
@ -55,6 +57,10 @@
getScanCount,
calcHandleQty
} from '@/common/detail.js';
import {
getDirectoryItemArray,
} from '@/common/directory.js';
import {
goHome,
navigateBack,
@ -95,7 +101,8 @@
toLocationCode: '',
toInventoryStatus: '',
jobStatus: "",
title: ''
title: '',
toLocationAreaTypeList:[]
};
},
props: {
@ -220,6 +227,7 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
that.toLocationAreaTypeList = getDirectoryItemArray(that.jobContent.toAreaTypes);
that.jobStatus = res.data.status
that.subList = res.data.subList;
that.detailSource = getDataSource(that.subList)

Loading…
Cancel
Save