From ac6766c11f8a2b8de903b58c13a8f206fa01dccd Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期五, 15 三月 2024 17:56:32 +0800 Subject: [PATCH] qxtj --- src/views/system/circle/index.vue | 30 ++++++++++++++++++++++++++---- 1 files changed, 26 insertions(+), 4 deletions(-) diff --git a/src/views/system/circle/index.vue b/src/views/system/circle/index.vue index 62034aa..8afe0fe 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,27 @@ }; }, created() { - this.getNowTime(); + // this.getNowTime(); this.getList(); 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") + ];; + }); + }, dialogVisibles() { this.$message.error("璇疯繛鎺ユ嫧鍙峰櫒锛�"); }, @@ -561,6 +577,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; -- Gitblit v1.8.0