Commit 8a6b52d2 authored by jingnan's avatar jingnan 👀

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

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