From c7b33db117fd2893d7d1c93bf5d46e87d33e44d0 Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期一, 16 十二月 2024 16:08:51 +0800 Subject: [PATCH] 初审结果查询 --- src/views/system/Checkout/index.vue | 163 ++++++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 128 insertions(+), 35 deletions(-) diff --git a/src/views/system/Checkout/index.vue b/src/views/system/Checkout/index.vue index a2adf35..1be7779 100644 --- a/src/views/system/Checkout/index.vue +++ b/src/views/system/Checkout/index.vue @@ -33,8 +33,9 @@ clearable v-model="createTimeList" @change="dateChangebirthday1" - style="width: 240px" - value-format="yyyy-MM-dd" + :default-time="['00:00:00', '23:59:00']" + format="yyyy-MM-dd HH:mm" + value-format="yyyy-MM-dd HH:mm" type="daterange" range-separator="-" start-placeholder="寮�濮嬫棩鏈�" @@ -119,9 +120,10 @@ :show-overflow-tooltip="true" > <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> + <dict-tag + :options="dict.type.sys_user_sex" + :value="scope.row.tjCustomerSex" + /> </template> </el-table-column> <el-table-column @@ -250,7 +252,12 @@ </el-dialog> <!-- 娣诲姞鎴栦慨鏀逛綋妫�璁板綍瀵硅瘽妗� --> - <el-dialog :title="title" :visible.sync="open" width="660px"> + <el-dialog + :title="title" + :visible.sync="open" + width="660px" + :close-on-click-modal="false" + > <el-form :model="formIn" ref="queryForm" @@ -287,7 +294,8 @@ style="width: 116px" ref="inputName" v-model="formIn.tjCustomerSex" - /> + > + </el-input> </el-form-item> <el-form-item label="骞撮緞" prop="tjCustomerAge"> <el-input @@ -317,15 +325,19 @@ </el-table-column> <el-table-column label="瀹屾垚" prop="type" width="86" align="center"> <template slot-scope="scope"> - <el-checkbox v-model="scope.row.type" disabled></el-checkbox> + <el-checkbox + @change="handelcheckbox1(scope.row)" + v-model="scope.row.type" + :disabled="scope.row.leave" + ></el-checkbox> </template> </el-table-column> <el-table-column label="寮冩" prop="type2" width="86" align="center"> <template slot-scope="scope"> <el-checkbox - @change="handelcheckbox" + @change="handelcheckbox(scope.row)" v-model="scope.row.type2" - :disabled="leave" + :disabled="scope.row.leave" > <!-- <el-checkbox v-model="scope.row.type2"></el-checkbox> --> </el-checkbox> @@ -334,9 +346,9 @@ <el-table-column label="寤舵湡" prop="type3" width="86" align="center"> <template slot-scope="scope"> <el-checkbox - @change="handelcheck" + @change="handelcheck(scope.row)" v-model="scope.row.type3" - :disabled="leave" + :disabled="scope.row.leave" > </el-checkbox> </template> @@ -390,7 +402,9 @@ goOut, getPdf, goabandon, + getNewDateList, } from "@/api/hosp/order"; +import moment from "moment"; import { getwater } from "@/api/hosp/customer"; import ViewPdf from "@/components/ViewPdf"; import { projectGetList, getaddtTransition } from "@/api/system/tijian"; @@ -398,7 +412,7 @@ components: { ViewPdf, }, - dicts: ["dict_pay_type"], + dicts: ["dict_pay_type","sys_user_sex"], name: "Order", data() { return { @@ -406,7 +420,7 @@ leave: false, checked: false, radioId1: false, - createTimeList: "", + createTimeList: [], cusId: "", payType: "0", dialogVisible: false, @@ -435,6 +449,7 @@ // remarkId1: "", type: null, type1: null, + types: null, // 濂楅鎻愪氦鎸夐挳 confirm: false, list1: true, @@ -519,8 +534,9 @@ }; }, created() { - this.getNowTime(); - this.getList(); + // this.getNowTime(); + + this.getdate(); }, mounted() { this.$nextTick(() => { @@ -528,6 +544,15 @@ }); }, 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(); + }); + }, // / 澶勭悊榛樿閫変腑褰撳墠鏃ユ湡 getNowTime() { var curDate = new Date().getTime(); @@ -552,8 +577,17 @@ }, /** 鏌ヨ浣撴璁板綍鍒楄〃 */ getList() { - this.queryParams.djbeginTime = this.startTime[0]; - this.queryParams.djendTime = this.startTime[1]; + if (this.startTime) { + this.queryParams.djbeginTime = this.startTime[0]; + this.queryParams.djendTime = this.startTime[1]; + } else 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; getQianLiList(this.queryParams).then((response) => { this.orderList = response.data.list; @@ -637,18 +671,20 @@ }; this.resetForm("form"); }, - hb(){ - if (this.queryParams.tjNum != undefined) { + hb() { + if (this.queryParams.tjNum != undefined) { this.handleQuery(); } }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { - this.queryParams.pageNum = 1; - this.getList(); + this.queryParams.pageNum = 1; + this.getList(); }, /** 閲嶇疆鎸夐挳鎿嶄綔 */ resetQuery() { + this.createTimeList = []; + this.startTime = []; this.resetForm("queryForm"); this.handleQuery(); }, @@ -742,17 +778,56 @@ }); }, - handelcheckbox(val) { + handelcheckbox1(val) { // this.numberList.forEach(item => { // if(item.type2 === true){ // item.type3 = false // } // }) for (let i = 0; i <= this.numberList.length; i++) { - if (this.numberList[i].type2 === true) { - this.numberList[i].type3 = false; - this.tcShow = false; - return; + if (val.proId == this.numberList[i].proId) { + if (this.numberList[i].type === true) { + this.numberList[i].type3 = false; + this.numberList[i].type2 = false; + this.tcShow = false; + return; + } else { + return; + } + } + } + // this.type2 = val + // this.numberList.forEach(item => { + // if (item.type === true) { + // item.type2 = false; + // item.type3 = false; + // } else{ + // this.type2 = val + // if (this.type2 === true) { + // item.type = false + // item.type3 = false + // } + // } + // }) + }, + + handelcheckbox(val) { + // this.numberList.forEach(item => { + // if(item.type2 === true){ + // item.type3 = false + // } + // }) + + for (let i = 0; i <= this.numberList.length; i++) { + if (val.proId == this.numberList[i].proId) { + if (this.numberList[i].type2 === true) { + this.numberList[i].type3 = false; + this.numberList[i].type = false; + this.tcShow = false; + return; + } else { + return; + } } } // this.type2 = val @@ -780,10 +855,17 @@ // } // }) for (let i = 0; i <= this.numberList.length; i++) { - if (this.numberList[i].type3 === true) { - this.numberList[i].type2 = false; - this.tcShow = true; - return; + if (val.proId == this.numberList[i].proId) { + if (this.numberList[i].type3) { + if (this.numberList[i].type3 === true) { + this.numberList[i].type2 = false; + this.numberList[i].type = false; + this.tcShow = true; + return; + } + } else { + return; + } } } // this.numberList.forEach(item => { @@ -806,7 +888,9 @@ /** 绛剧鎸夐挳鎿嶄綔 */ handleDelete() { this.title = "绛剧鐧昏"; - this.List.forEach((item) => { + this.numberList = []; + let list = JSON.parse(JSON.stringify(this.List)) + list.forEach((item) => { this.formIn = item; if (this.formIn.tjCustomerSex === 0) { this.formIn.tjCustomerSex = "鐢�"; @@ -828,13 +912,14 @@ item.type = true; item.type2 = false; item.type3 = false; - this.leave = true; + item.leave = true; } else { - this.leave = false; + item.leave = false; } item = { type2: false, type3: false, + leave: false, }; }); this.open = true; @@ -852,13 +937,21 @@ } }); }, + // 纭寮冩 canaffirm() { this.List.forEach((item) => { this.tjNumber = item.tjNumber; }); this.numberList.forEach((element) => { - if (element.type2 === true) { + if (element.type === true) { + this.types = 1; + this.DataList.push({ + tjNumber: this.tjNumber, + type: this.types, + remarkId: element.remarkId, + }); + } else if (element.type2 === true) { this.type = 2; this.DataList.push({ tjNumber: this.tjNumber, -- Gitblit v1.8.0