diff --git a/src/pages/xinrui/storage/settings/PeifenBarrelPrint.vue b/src/pages/xinrui/storage/settings/PeifenBarrelPrint.vue index aa7b16c..e6b41ea 100644 --- a/src/pages/xinrui/storage/settings/PeifenBarrelPrint.vue +++ b/src/pages/xinrui/storage/settings/PeifenBarrelPrint.vue @@ -145,12 +145,15 @@ export default { this.val3 = this.$store.getters.materObj.material_name }, created () { - this._getDictInfo('quality_scode') - this._getDictInfo('ivt_level') - this._getDictInfo('is_active') - this._getDictInfo('sch_area_type') + this.initDrop() }, methods: { + initDrop () { + this._getDictInfo('quality_scode') + this._getDictInfo('ivt_level') + this._getDictInfo('is_active') + this._getDictInfo('sch_area_type') + }, handleChange (e, type) { if (type) { this._queryInfoByPF(e) @@ -286,6 +289,7 @@ export default { if (res.code === '1') { this.toast(res.desc) Object.assign(this.$data, this.$options.data()) + this.initDrop() } else { this.Dialog(res.desc) } @@ -316,6 +320,7 @@ export default { }) } Object.assign(this.$data, this.$options.data()) + this.initDrop() if (this.$route.query.id !== '' && this.$route.query.id !== undefined) { this._updateWorkStatus() }