From 40888fc40fa089ebec0ab5090640e05450808ebb Mon Sep 17 00:00:00 2001 From: sunzehua Date: Mon, 3 Jul 2023 14:47:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/components/selectView.vue | 7 +- src/views/main/BookingLedger/detail/index.vue | 2 +- .../detail/modules/basicInfo.vue | 1 + .../BookingLedger/detail/modules/preOrder.vue | 141 ++++++++++++++---- .../BookingLedger/list/modules/formLabel.vue | 3 +- 5 files changed, 119 insertions(+), 35 deletions(-) diff --git a/src/views/main/BookingLedger/detail/components/selectView.vue b/src/views/main/BookingLedger/detail/components/selectView.vue index 806662a..d3ec9f9 100644 --- a/src/views/main/BookingLedger/detail/components/selectView.vue +++ b/src/views/main/BookingLedger/detail/components/selectView.vue @@ -11,9 +11,10 @@ :filter-option="!this.openSearch ? filterOption : false" :dropdownMatchSelectWidth="false" :showArrow="!this.openSearch ? true : true" - :open="open" + :open="open && !disabled" optionLabelProp="label" :notFoundContent="inLoading ? '加载中...' : '暂无数据'" + :disabled="disabled" @focus="getSelectFirst" @blur="getSelectBlur" @select="selectOption" @@ -111,6 +112,10 @@ export default { isCopy: { type: Boolean, default: true + }, + disabled: { + type: Boolean, + default: false } }, data() { diff --git a/src/views/main/BookingLedger/detail/index.vue b/src/views/main/BookingLedger/detail/index.vue index 4ea6307..abc733a 100644 --- a/src/views/main/BookingLedger/detail/index.vue +++ b/src/views/main/BookingLedger/detail/index.vue @@ -698,7 +698,7 @@ export default { }, 500) this.$forceUpdate() } else if (Object.keys(this.historyData).includes(newId)) { - this.id = !this.$route.query.isCopy ? this.$route.query.id : 0 + this.id = this.$route.query.id const $data = JSON.parse(JSON.stringify(this.historyData[newId])) this.isCopy = this.$route.query.isCopy this.excuteRules = $data.excuteRules diff --git a/src/views/main/BookingLedger/detail/modules/basicInfo.vue b/src/views/main/BookingLedger/detail/modules/basicInfo.vue index bbd329d..f1aa092 100644 --- a/src/views/main/BookingLedger/detail/modules/basicInfo.vue +++ b/src/views/main/BookingLedger/detail/modules/basicInfo.vue @@ -420,6 +420,7 @@ > 删除 - - 发送 - - + > + 刷新 +