Browse Source

DJ seo

master
pengjun 2 years ago
parent
commit
e0a6e0da8a
  1. 1
      src/components/patientRegister/PatientRegisterList.vue
  2. 12
      src/components/patientRegister/patientRegisterQuery.vue

1
src/components/patientRegister/PatientRegisterList.vue

@ -864,6 +864,7 @@ export default {
this.patientRegister.query.startDate &&
this.patientRegister.query.endDate
) {
body.dateType = this.patientRegister.query.dateType
body.startDate = moment(this.patientRegister.query.startDate).format(
"yyyy-MM-DD"
);

12
src/components/patientRegister/patientRegisterQuery.vue

@ -4,7 +4,14 @@
<div
:style="'display: flex;flex-wrap: wrap;height: 80px;width: 1216px;background-color: #fff;border-radius: 8px;margin-bottom: 15px;align-items: center;padding: 10px;width:' + (window.pageWidth - (orgEnable == 'Y' ? 0 : 200) - 110 - 10) + 'px;'">
<div class="query">
<span class="spanClass">登记日期</span>
<el-select v-model="patientRegister.query.dateType" placeholder="请选择" style="width: 80px" size="small">
<el-option label="登记日期" :value="'1'" />
<el-option label="体检日期" :value="'2'" />
<el-option label="登记或体检" :value="'3'" />
</el-select>
<!-- dateType 1 登记2 体检3 体检或登记-->
<el-date-picker v-model="patientRegister.query.startDate" type="date" placeholder="起始日期" size="small"
style="width:90px;" value-format="yyyy-MM-dd" :picker-options="pickerOptions" />
<span class="spanClass"></span>
@ -104,7 +111,7 @@ export default {
pagePriv: {
routeUrlorPageName: 'patientRegister', //
privs: [] //
},
},
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now();
@ -143,6 +150,7 @@ export default {
let ldate = new Date();
this.patientRegister.query.startDate = ldate;
this.patientRegister.query.endDate = ldate;
this.patientRegister.query.dateType = '2'
},
//

Loading…
Cancel
Save