| | |
| | | <el-input v-model="queryParams.tjNumber" placeholder="请输入体检号" clearable @keyup.enter.native="handleQuery" /> |
| | | </el-form-item> --> |
| | | <el-form-item label="登记时间" prop="createTimeList"> |
| | | <el-date-picker clearable v-model="queryParams.createTimeList" :default-time="['00:00:00', '23:59:00']" |
| | | <el-date-picker clearable v-model="createTimeList" :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="开始日期" end-placeholder="结束日期" |
| | |
| | | url: "", |
| | | flag: true, |
| | | tempId: null, |
| | | createTimeList:[], |
| | | bill: null, |
| | | Treedata: [], |
| | | defaultProps: { |
| | |
| | | }, |
| | | created() { |
| | | // this.getNowTime(); |
| | | this.getList(); |
| | | |
| | | this.getListEmer(); |
| | | this.getdate(); |
| | | }, |
| | | methods: { |
| | | getdate() { |
| | | getNewDateList().then((res) => { |
| | | this.queryParams.createTimeList = [ |
| | | 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() { |
| | |
| | | var threeDays = curDate - dayNum; |
| | | var sDay = this.getLocalTime(threeDays); |
| | | var end = this.getLocalTime(curDate); |
| | | this.queryParams.createTimeList = [sDay, end]; |
| | | this.createTimeList = [sDay, end]; |
| | | }, |
| | | add0(m) { |
| | | return m < 10 ? "0" + m : m; |
| | |
| | | /** 查询体检记录列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | if (this.createTimeList) { |
| | | this.queryParams.createTime = this.createTimeList[0]; |
| | | this.queryParams.finishTime = this.createTimeList[1]; |
| | | } else { |
| | | this.queryParams.createTime = null; |
| | | this.queryParams.finishTime = null; |
| | | } |
| | | listOrder(this.queryParams).then((response) => { |
| | | this.orderList = response.rows; |
| | | response.rows.forEach((item, index) => { |
| | |
| | | }, |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.createTimeList =[] |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | }, |