feat:新增配片单重复打开的缓存问题,已发货短信

This commit is contained in:
一休哥哥6666
2026-06-14 16:31:41 +08:00
parent 3af309d442
commit dfef98814b
3 changed files with 15 additions and 10 deletions

View File

@@ -190,6 +190,7 @@
append-to-body
destroy-on-close
custom-class="lens-order-form-dialog"
@closed="handleFormClosed"
>
<div slot="title" class="lens-dialog-header">
<div class="lens-dialog-title-wrap">
@@ -197,7 +198,7 @@
<p class="lens-dialog-subtitle">{{ formDialogSubtitle }}</p>
</div>
</div>
<el-form ref="form" :model="form" :rules="rules" label-width="110px" class="lens-order-form">
<el-form :key="formDialogKey" ref="form" :model="form" :rules="rules" label-width="110px" class="lens-order-form">
<section class="lens-form-section">
<div class="section-head">
<span class="section-index">01</span>
@@ -1079,6 +1080,7 @@ export default {
reason: [{ required: true, message: '请输入换货申请原因', trigger: 'blur' }]
},
formMode: 'create',
formDialogKey: 0,
selectedRow: null,
title: '',
open: false,
@@ -1237,6 +1239,7 @@ export default {
if (!this.tenantId && this.$store.getters.token) {
await this.$store.dispatch('GetInfo').catch(() => {})
}
this.reset()
this.initPage()
},
methods: {
@@ -1623,6 +1626,8 @@ export default {
},
cancel() {
this.open = false
},
handleFormClosed() {
this.reset()
},
handleProgressiveMultifocalChange(value) {
@@ -1680,11 +1685,9 @@ export default {
handleAdd() {
this.reset()
this.formMode = 'create'
this.open = true
this.title = '新增配片单'
this.$nextTick(() => {
this.resetForm('form')
})
this.formDialogKey += 1
this.open = true
},
normalizeOrderForm(form) {
if (!form) {
@@ -1777,6 +1780,7 @@ export default {
}
this.formMode = mode
this.title = title
this.formDialogKey += 1
this.open = true
this.$nextTick(() => {
if (lensId != null && !Number.isNaN(lensId)) {