From 4bdd0b1ef2aff1fd6f174b0f44a7248c0d2168f1 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期四, 26 十月 2023 14:13:56 +0800 Subject: [PATCH] tj --- src/views/system/charge/index.vue | 29 ++++++++++++++++------------- 1 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/views/system/charge/index.vue b/src/views/system/charge/index.vue index 535d6da..d9c3abf 100644 --- a/src/views/system/charge/index.vue +++ b/src/views/system/charge/index.vue @@ -107,7 +107,7 @@ adviceList: [], // 閬僵灞� loading: false, - disabled: "", + disabled: 1, isDisabled: false, // 缁戝畾鍗曢�夋寜閽� tjStatus: "0", @@ -158,7 +158,7 @@ submitFormchanck() { this.loading = true; getfindTj(this.form).then((response) => { - if (response.data) { + if (response.data != []) { this.tableData = response.data; this.tableData.forEach(item1 => { this.tjnumber = item1.tjNumber; @@ -194,6 +194,7 @@ }); } else { this.tableData = []; + this.disabled = 1 } this.loading = false; @@ -379,20 +380,22 @@ orderId: this.OrderId, }; getwater(data).then((res) => { - if (res.msg !="璇ヨ鍗曞凡浠樻 鏃犻』鍐嶄粯") { - this.mobanId = res.data.mobanId; - this.waterId = res.data.waterId; + if (res.msg != "璇ヨ鍗曞凡浠樻 鏃犻』鍐嶄粯") { this.$modal.msgSuccess("鎿嶄綔鎴愬姛"); - // this.radioChange(); - // this.submitFormchanck(); - const tjnumber = this.waterId; - const viewNum = this.mobanId; - const params = { viewNum, tjnumber }; - this.$tab.openPage("鏀舵灏忕エ", "/report/charge", params); - } else{ + this.disabled = 1 + if (res.data) { + this.mobanId = res.data.mobanId; + this.waterId = res.data.waterId; + const tjnumber = this.waterId; + const viewNum = this.mobanId; + const params = { viewNum, tjnumber }; + this.$tab.openPage("鏀舵灏忕エ", "/report/charge", params); + } + + } else { this.$message({ type: "warning ", - message: "鏌ヨ鍒版偍宸查��娆撅紝璇锋偍閲嶆柊棰勭害!", + message: "res.msg", }); } -- Gitblit v1.8.0