修改预约查询页面

main
jinna 3 years ago
parent adca535f6f
commit f91d51370a
  1. 29
      src/views/booklist/index.vue

@ -21,7 +21,7 @@
</template> </template>
<template slot-scope="{row}" slot="menu"> <template slot-scope="{row}" slot="menu">
<el-button type="text" @click="handleRegister(row)" <el-button type="text" @click="handleRegister(row)"
:disabled="(row.details.find(item => item.apmStatus == 2) && row.apmDay > systemTime) ? false : true">预约报道</el-button> :disabled="(row.details.find(item => item.apmStatus == 2) && Date.parse(new Date(row.apmDay.substring(0,10) + ' 23:59:59')) > Date.parse(new Date(systemTime))) ? false : true">预约报道</el-button>
</template> </template>
</avue-crud> </avue-crud>
<el-drawer :wrapperClosable="false" :visible.sync="isRegister" :append-to-body="true" :direction="direction" class="my-info-dialog" <el-drawer :wrapperClosable="false" :visible.sync="isRegister" :append-to-body="true" :direction="direction" class="my-info-dialog"
@ -360,6 +360,7 @@ import {
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import print from "vue-print-nb"; import print from "vue-print-nb";
import { calcSex } from "../../util/util"; import { calcSex } from "../../util/util";
import { dateFormat } from "../../util/date";
import {Base64} from 'js-base64'; import {Base64} from 'js-base64';
export default { export default {
@ -405,6 +406,19 @@ export default {
searchLabelWidth: 100, searchLabelWidth: 100,
search: true search: true
}, },
{
label: "体检项目",
prop: "project",
type: "select",
hide: true,
search: true,
viewDisplay:false,
dicUrl:'/api/blade-system/dict-biz/get-hc-project',
props: {
label: 'dictValue',
value: 'dictValue'
},
},
{ {
label: "联系方式", label: "联系方式",
prop: "cupPhone", prop: "cupPhone",
@ -417,6 +431,7 @@ export default {
valueFormat: "yyyy-MM-dd", valueFormat: "yyyy-MM-dd",
search: true, search: true,
hide: true, hide: true,
searchValue:dateFormat(new Date())
}, },
{ {
label: "预约日期", label: "预约日期",
@ -507,8 +522,9 @@ export default {
beforeClose(done) { beforeClose(done) {
done(); done();
}, },
searchReset() { searchReset(params,done) {
this.query = {}; params.releaseTimeRange = dateFormat(new Date(),'yyyy-MM-dd');
this.query = params;
this.onLoad(this.page); this.onLoad(this.page);
}, },
searchChange(params, done) { searchChange(params, done) {
@ -530,7 +546,6 @@ export default {
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
onLoad(page, params = {}) { onLoad(page, params = {}) {
console.log(this.systemTime)
this.loading = true; this.loading = true;
const { releaseTimeRange, cupCardNo } = this.query; const { releaseTimeRange, cupCardNo } = this.query;
@ -538,6 +553,8 @@ export default {
...params, ...params,
...this.query ...this.query
}; };
console.log(this.query)
console.log(releaseTimeRange)
if (releaseTimeRange) { if (releaseTimeRange) {
values = { values = {
...values, ...values,
@ -545,8 +562,8 @@ export default {
endTime: releaseTimeRange, endTime: releaseTimeRange,
}; };
} else { } else {
values.startTime = ''; values.startTime = dateFormat(new Date(),'yyyy-MM-dd');
values.endTime = ''; values.endTime = dateFormat(new Date(),'yyyy-MM-dd');
} }
values.createDept = this.userInfo.dept_id; values.createDept = this.userInfo.dept_id;
values.cupCardNo = cupCardNo ? Base64.encode(cupCardNo) : ''; values.cupCardNo = cupCardNo ? Base64.encode(cupCardNo) : '';

Loading…
Cancel
Save