From b989da3c3a99fef9068c20ac55467d7ce25523af Mon Sep 17 00:00:00 2001 From: su1124 <1583764726@qq.com> Date: 星期五, 08 三月 2024 14:25:04 +0800 Subject: [PATCH] su --- src/views/system/bill/index.vue | 29 +++++++++++++++++++++++++++-- 1 files changed, 27 insertions(+), 2 deletions(-) diff --git a/src/views/system/bill/index.vue b/src/views/system/bill/index.vue index e9ea86d..e8576d4 100644 --- a/src/views/system/bill/index.vue +++ b/src/views/system/bill/index.vue @@ -10,7 +10,6 @@ > <el-form-item label="濮撳悕" prop="name"> <el-input - ref="inputName" v-model="queryParams.name" placeholder="璇疯緭鍏ュ鍚�" style="width: 100px" @@ -19,11 +18,13 @@ </el-form-item> <el-form-item label="浣撴鍙�" prop="tjNum"> <el-input + ref="inputName" style="width: 170px" v-model="queryParams.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable @keyup.enter.native="handleQuery" + @blur="hb" /> </el-form-item> <el-form-item label="鐧昏鏃堕棿" prop="createTimeList"> @@ -169,6 +170,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 @@ -466,7 +468,9 @@ hasReport, hasPrintCode, getOrderList, + getNewDateList } from "@/api/hosp/order"; +import moment from "moment"; import ViewPdf from "@/components/ViewPdf"; import { projectGetList, getOrder } from "@/api/system/tijian"; import { SubmitCompany, getCompany, queryCompany } from "@/api/team/tuanti"; @@ -630,11 +634,26 @@ }; }, created() { - this.getNowTime(); + // this.getNowTime(); this.getList(); this.Company(); + 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"), + ]; + console.log(this.createTimeList, 111); + }); + }, // / 澶勭悊榛樿閫変腑褰撳墠鏃ユ湡 getNowTime() { var curDate = new Date().getTime(); @@ -871,6 +890,12 @@ }; this.resetForm("form"); }, + hb(){ + console.log(this.queryParams.tjNum); + if (this.queryParams.tjNum != undefined) { + this.handleQuery(); + } + }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { this.queryParams.pageNum = 1; -- Gitblit v1.8.0