Commit 8a6b52d2 authored by jingnan's avatar jingnan 👀

入库确认编辑库位不刷新界面

parent 725c573d
......@@ -8,7 +8,7 @@
<div class="warehouse-select">
<el-select
v-if="basicData||scope.row.storageZoneId"
v-model="selectVal"
:value="value"
:loading="tableColumnSelect"
size="small"
placeholder="请选择库位"
......@@ -38,6 +38,10 @@ export default {
scope: {
type: Object,
default: () => null
},
value: {
type: [String, Number],
default: ''
}
},
data() {
......@@ -59,14 +63,20 @@ export default {
val && (this.storageZoneId = val.storageZoneId)
}
},
value: {
immediate: true,
handler(val) {
this.selectVal = val
}
},
'scope.row': {
immediate: true,
deep: true,
handler: function(val) {
const targetInventory = this.$utils.getTargetJobResponses(val, 'JobResponseInEntry')
if (targetInventory && targetInventory.extWorkUnit) {
this.selectVal = targetInventory.extWorkUnit.extcode
}
// const targetInventory = this.$utils.getTargetJobResponses(val, 'JobResponseInEntry')
// if (targetInventory && targetInventory.extWorkUnit) {
// this.selectVal = targetInventory.extWorkUnit.extcode
// }
if (!this.basicData && val.storageZoneId) {
this.storageZoneId = val.storageZoneId
}
......@@ -129,12 +139,13 @@ export default {
}
},
save(v) {
this.selectVal = v
if (!this.selectVal) this.$utils.showMessageWarning('请选择库位')
this.$emit('save', this.selectVal)
// 适配验收入库确认批量签审
if (this.scope.row.subTypeName === 'InStorageRecallItem' || this.scope.row.subTypeName === 'InStoragePurchaseItem' || this.scope.row.subTypeName === 'InStorageExpireItem') {
const resValue = this.selectVal
this.$emit('input', resValue)
this.$emit('input', resValue.split('+')[1])
this.setParams(resValue, this.scope.row)
}
},
......
......@@ -39,11 +39,11 @@ export default {
created() {
},
mounted() {
this.$bus.$on('refreshBatchSignDetails', () => {
this.$nextTick(() => {
this.$refs.applyTable && this.$refs.applyTable.$refs.asCom.getData()
})
})
// this.$bus.$on('refreshBatchSignDetails', () => {
// this.$nextTick(() => {
// this.$refs.applyTable && this.$refs.applyTable.$refs.asCom.getData()
// })
// })
},
// 组件方法
methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment