From 1d7a460b0fbc460ffcf3dd94864f2f3adf4369b2 Mon Sep 17 00:00:00 2001 From: wwl <xchao828@163.com> Date: 星期四, 21 八月 2025 14:21:00 +0800 Subject: [PATCH] 富文本 --- src/views/system/refund/index.vue | 22 ++++++---- src/views/system/charge/index.vue | 88 +++++++++++++++++++++++--------------------- src/views/hosp/hosp/index.vue | 6 +- 3 files changed, 62 insertions(+), 54 deletions(-) diff --git a/src/views/hosp/hosp/index.vue b/src/views/hosp/hosp/index.vue index a8af97f..2dc5a02 100644 --- a/src/views/hosp/hosp/index.vue +++ b/src/views/hosp/hosp/index.vue @@ -192,7 +192,7 @@ orgList: [], title: "", open: false, - apiKey: '3ceaxd5ckw4te35xj38vj3p5rmmeyv0x8pq2yrr92rwdiqzp', // 鏇挎崲涓烘偍鐨� TinyMCE API 瀵嗛挜 + apiKey: '3ceaxd5ckw4te35xj38vj3p5rmmeyv0x8pq2yrr92rwdiqzp', editorInit: { height: 200, menubar: false, @@ -237,7 +237,7 @@ orderNum: null, }, form: { - introduction: '<p>璇疯緭鍏ュ尰闄㈢畝浠�...</p>', // 榛樿鍊� + introduction: '', // 榛樿鍊� }, rules: { hospAreaName: [ @@ -367,7 +367,7 @@ updateByName: null, imgbase64: null, deleted: null, - introduction: '<p>璇疯緭鍏ュ尰闄㈢畝浠�...</p>', // 閲嶇疆鏃舵仮澶嶉粯璁ゅ�� + introduction: '', // 閲嶇疆鏃舵仮澶嶉粯璁ゅ�� }; this.resetForm("form"); }, diff --git a/src/views/system/charge/index.vue b/src/views/system/charge/index.vue index e1cc8b4..997ba78 100644 --- a/src/views/system/charge/index.vue +++ b/src/views/system/charge/index.vue @@ -292,51 +292,55 @@ this.submitFormchanck(); } }, - submitFormchanck() { - this.loading = true; - getfindTj(this.form).then((response) => { - if (response.data != []) { - this.tableData = response.data; - this.tableData.forEach((item1) => { - this.tjnumber = item1.tjNumber; - }); - if (this.tableData.length != 0) { - this.$nextTick(() => { - this.$refs.multipleTable.toggleRowSelection( - this.tableData[0], - true - ); - }); - } else { - this.$refs.multipleTable.clearSelection(); - } - this.tableData.forEach((item) => { - if (item.isAdditionCollectFees === "N") { - item.isAdditionCollectFees = "鍚�"; - } else { - item.isAdditionCollectFees = "鏄�"; - } - if (item.tjType === "2") { - item.tjType = "涓汉"; - } else { - item.tjType = "鍥㈤槦"; - } - if (item.sex === "0") { - item.sex = "鐢�"; - } else if (item.sex === "1") { - item.sex = "濂�"; - } else { - item.sex = "鏈煡"; - } + submitFormchanck() { + this.loading = true; + getfindTj(this.form) + .then((response) => { + if (response.data != []) { + this.tableData = response.data; + this.tableData.forEach((item1) => { + this.tjnumber = item1.tjNumber; + }); + if (this.tableData.length != 0) { + this.$nextTick(() => { + this.$refs.multipleTable.toggleRowSelection( + this.tableData[0], + true + ); }); } else { - this.tableData = []; - this.disabled = 1; + this.$refs.multipleTable.clearSelection(); } - - this.loading = false; - }); - }, + this.tableData.forEach((item) => { + if (item.isAdditionCollectFees === "N") { + item.isAdditionCollectFees = "鍚�"; + } else { + item.isAdditionCollectFees = "鏄�"; + } + if (item.tjType === "2") { + item.tjType = "涓汉"; + } else { + item.tjType = "鍥㈤槦"; + } + if (item.sex === "0") { + item.sex = "鐢�"; + } else if (item.sex === "1") { + item.sex = "濂�"; + } else { + item.sex = "鏈煡"; + } + }); + } else { + this.tableData = []; + this.disabled = 1; + } + this.loading = false; + }) + .catch((error) => { + console.error("Error:", error); + this.loading = false; + }); +}, //閲嶇疆鎸夐挳 resetQuery() { this.$tab.refreshPage(); diff --git a/src/views/system/refund/index.vue b/src/views/system/refund/index.vue index 5c48c30..7a0de96 100644 --- a/src/views/system/refund/index.vue +++ b/src/views/system/refund/index.vue @@ -207,11 +207,12 @@ } }, /** 鎼滅储鎿嶄綔 */ - handle() { - this.loading = true; - getTjRefundList2(this.form).then((response) => { - if( response.data){ - this.customerList = response.data; + handle() { + this.loading = true; + getTjRefundList2(this.form) + .then((response) => { + if (response.data) { + this.customerList = response.data; this.customerList.forEach((item1) => { this.tjnumber = item1.tjNumber; }); @@ -239,10 +240,13 @@ }); this.total = response.total; this.loading = false; - } - - }); - }, + } + }) + .catch((error) => { + console.error("閿欒:", error); + this.loading = false; + }); +}, //閲嶇疆鎸夐挳 resetQuery() { -- Gitblit v1.8.0