From 0303c170c6ff96ad5b2da77e54d6f9c8fd461470 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期二, 26 三月 2024 10:47:32 +0800 Subject: [PATCH] qxtj --- src/views/system/circle/index.vue | 42 ++++++++++++++++++++++++++++++++++++------ 1 files changed, 36 insertions(+), 6 deletions(-) diff --git a/src/views/system/circle/index.vue b/src/views/system/circle/index.vue index 62034aa..fa8f375 100644 --- a/src/views/system/circle/index.vue +++ b/src/views/system/circle/index.vue @@ -2,12 +2,12 @@ <div class="app-container"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form-item label="濮撳悕" prop="name"> - <el-input ref="inputName" v-model="queryParams.name" placeholder="璇疯緭鍏ュ鍚�" style="width: 100px" + <el-input v-model="queryParams.name" placeholder="璇疯緭鍏ュ鍚�" style="width: 100px" @keyup.enter.native="handleQuery" /> </el-form-item> <el-form-item label="浣撴鍙�" prop="tjNum"> <el-input style="width: 170px" v-model="queryParams.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable - @keyup.enter.native="handleQuery" /> + @keyup.enter.native="handleQuery" @blur="hb" ref="inputName" /> </el-form-item> <el-form-item label="鐧昏鏃堕棿" prop="createTimeList"> <el-date-picker v-model="createTimeList" type="datetimerange" align="right" :picker-options="pickerOptions" @@ -58,6 +58,7 @@ <template slot-scope="scope"> <span v-if="scope.row.tjCustomerSex == '0'">鐢�</span> <span v-if="scope.row.tjCustomerSex == '1'">濂�</span> + <span v-if="scope.row.tjCustomerSex == '2'">鏈煡</span> </template> </el-table-column> <el-table-column label="骞撮緞" align="center" prop="tjCustomerAge" height="10px" width="60px" @@ -233,7 +234,8 @@ var inpArr = document.getElementsByTagName("input"), result = ""; import print from "print-js"; -import { getsendEmail, getsendMessage } from "@/api/hosp/order"; +import { getsendEmail, getsendMessage, getNewDateList } from "@/api/hosp/order"; +import moment from "moment"; import { listSendTemplate, } from "@/api/hosp/sendTemplate"; @@ -390,13 +392,28 @@ }; }, created() { - this.getNowTime(); - this.getList(); + // this.getNowTime(); + this.Company(); this.getListEmer(); this.getDictListEmer(); + this.getdate(); + }, + mounted() { + this.$nextTick(() => { + this.$refs.inputName.focus(); + }); }, methods: { + getdate() { + getNewDateList().then((res) => { + this.createTimeList = [ + moment(res.data).format("YYYY-MM-DD 00:00:00"), + moment(res.data).format("YYYY-MM-DD 23:59:00") + ];; + this.getList(); + }); + }, dialogVisibles() { this.$message.error("璇疯繛鎺ユ嫧鍙峰櫒锛�"); }, @@ -474,8 +491,14 @@ }, /** 鏌ヨ浣撴璁板綍鍒楄〃 */ getList() { - this.queryParams.djbeginTime = this.createTimeList[0]; + if( this.createTimeList){ + this.queryParams.djbeginTime = this.createTimeList[0]; this.queryParams.djendTime = this.createTimeList[1]; + }else if(this.createTimeList == null){ + this.queryParams.djbeginTime = null; + this.queryParams.djendTime = null; + } + this.loading = true; getWenJuanList(this.queryParams).then((response) => { this.orderList = response.data.list; @@ -561,6 +584,12 @@ this.queryParams.pageNum = 1; this.getList(); }, + hb() { + console.log(this.queryParams.tjNum); + if (this.queryParams.tjNum != undefined) { + this.handleQuery(); + } + }, handleQuerys() { this.emerc = true; this.queryParam.pageNum = 1; @@ -568,6 +597,7 @@ }, /** 閲嶇疆鎸夐挳鎿嶄綔 */ resetQuery() { + this.createTimeList = [] this.resetForm("queryForm"); this.handleQuery(); }, -- Gitblit v1.8.0