From 2d1cc07e5be9d226d23dc172031a3971ea43528f Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期五, 08 三月 2024 15:50:38 +0800 Subject: [PATCH] qxtj --- src/views/doctor/check/index.vue | 44 +++++++++++++++++++++++++++++++++++++++----- 1 files changed, 39 insertions(+), 5 deletions(-) diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue index 8f6ff14..696ba8a 100644 --- a/src/views/doctor/check/index.vue +++ b/src/views/doctor/check/index.vue @@ -22,7 +22,8 @@ v-model="queryParams.tjNumber" style="width: 240px" placeholder="璇疯緭鍏ヤ綋妫�鍙�" - @blur="submitForm" + clearable + @blur="hb" @keyup.enter.native="submitForm" ></el-input> </el-form-item> @@ -406,9 +407,9 @@ <table style=" width: 96%; - height:70px + height:70px; margin: 10px 10px; - margin-bottom:10px + margin-bottom:10px; border: 1px solid #dfe6ec; border-collapse: collapse; font-size:16px @@ -1105,6 +1106,11 @@ type: "", name: null, }, + queryParam: { + page: 1, + pageSize: 1000, + + }, rules: { hzType: [ { required: true, message: "浼氳瘖绉戝涓哄繀濉」", trigger: "change" }, @@ -1140,7 +1146,7 @@ methods: { /** 鏌ヨ鐢ㄦ埛鍒楄〃 */ getListUser() { - listUser(this.addDateRange(this.queryParams, this.dateRange)).then( + listUser(this.addDateRange(this.queryParam, this.dateRange)).then( (response) => { this.userList = response.rows; this.userList.forEach((element) => { @@ -1315,11 +1321,36 @@ } }); }, + hb() { + if (this.queryParams.tjNumber != "") { + this.submitForm(); + } + }, // 鎼滅储 submitForm() { this.queryParams.page = 1; - this.getList(); + this.loading = true; + this.queryParams.type = this.tjStatus; + getProList(this.queryParams).then((response) => { + if (response.code == 200) { + this.loading = false; + if (response.data) { + if (response.data.date) { + this.tableList = response.data.date; + this.queryParams.tjNumber ="" + } else { + this.tableList = response.data.customers; + this.queryParams.tjNumber ="" + } + this.total = response.data.total; + } else { + this.tableList = []; + } + } + }); + + // this.loading = true; // (this.queryParams = { // page: 1, @@ -1351,6 +1382,9 @@ resetQuery() { this.resetForm("tableList"); this.submitForm(); + this.$nextTick(() => { + this.$refs.inputName.focus(); + }); }, Changeapplyfor(row) { -- Gitblit v1.8.0