|
|
|
@ -10,10 +10,9 @@ |
|
|
|
<div style="display:flex;"> |
|
|
|
<div> |
|
|
|
<span>登记日期:</span> |
|
|
|
<el-date-picker v-model="query.dateRange" type="daterange" align="right" unlink-panels range-separator="至" |
|
|
|
start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions" size="small" |
|
|
|
style="width: 240px"> |
|
|
|
</el-date-picker> |
|
|
|
<el-date-picker v-model="query.startDate" type="date" placeholder="起始日期" size="small" style="width:90px;"/> |
|
|
|
<span>至</span> |
|
|
|
<el-date-picker v-model="query.endDate" type="date" placeholder="截止日期" size="small" style="width:90px;"/> |
|
|
|
</div> |
|
|
|
<div style="margin-left:10px;"> |
|
|
|
<el-button type="primary" class="btnClass" @click="Query" size="small" style="width:95px;">查询</el-button> |
|
|
|
@ -253,6 +252,8 @@ export default { |
|
|
|
query: { |
|
|
|
chargeFlag: 'N', |
|
|
|
dateRange: null, |
|
|
|
startDate: null, |
|
|
|
endDate: null, |
|
|
|
patientRegisterNo: '', |
|
|
|
patientNo: '', |
|
|
|
invoiceNo: '', |
|
|
|
@ -369,13 +370,14 @@ export default { |
|
|
|
if (!this.query.invoiceNo) return; |
|
|
|
body = { invoiceNo: this.query.invoiceNo }; |
|
|
|
} else { |
|
|
|
if (this.query.dateRange) { |
|
|
|
body.startDate = moment(this.query.dateRange[0]).format('yyyy-MM-DD'); |
|
|
|
body.endDate = moment(this.query.dateRange[1]).format('yyyy-MM-DD'); |
|
|
|
if (this.query.startDate && this.query.endDate) { |
|
|
|
body.startDate = moment(this.query.startDate).format("yyyy-MM-DD") |
|
|
|
body.endDate = moment(this.query.endDate).format("yyyy-MM-DD") |
|
|
|
if(body.startDate > body.endDate){ |
|
|
|
this.$message.warning("起始日期不能大于截止日期,数据校验不通过!") |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
// if(this.query.patientName){ |
|
|
|
// body.patientName = this.query.patientName; |
|
|
|
// } |
|
|
|
} |
|
|
|
|
|
|
|
switch (this.query.chargeFlag) { |
|
|
|
@ -393,6 +395,12 @@ export default { |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
const loading = this.$loading({ |
|
|
|
lock: true, |
|
|
|
text: 'Loading', |
|
|
|
spinner: 'el-icon-loading', |
|
|
|
background: 'rgba(0, 0, 0, 0.7)' |
|
|
|
}); |
|
|
|
postapi(url, body).then(res => { |
|
|
|
if (res.code != - 1) { |
|
|
|
this.patientList = res.data.items; |
|
|
|
@ -402,6 +410,10 @@ export default { |
|
|
|
this.query.patientNo = this.patientList[0].patientNo; |
|
|
|
} |
|
|
|
} |
|
|
|
loading.close(); |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
loading.close(); |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
@ -1070,11 +1082,19 @@ export default { |
|
|
|
padding: 0px 0; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* 输入框相关设置*/ |
|
|
|
::v-deep .el-input__inner { |
|
|
|
text-align: left; |
|
|
|
padding-left: 5px; |
|
|
|
padding-left: 2px; |
|
|
|
padding-right: 15px; |
|
|
|
} |
|
|
|
::v-deep .el-input__icon{ |
|
|
|
width: 15px; /* 输入框下拉箭头或清除图标 默认 25 */ |
|
|
|
} |
|
|
|
|
|
|
|
::v-deep .el-icon-date:before { |
|
|
|
content: ""; /* 去掉日期控件前面的图标 */ |
|
|
|
} |
|
|
|
|
|
|
|
::v-deep input[type="number"]::-webkit-inner-spin-button, |
|
|
|
input[type="number"]::-webkit-outer-spin-button { |
|
|
|
|