|
|
|
@ -9,12 +9,12 @@ |
|
|
|
<el-option v-for="item in thirdInterfaces" :key="item.id" :label="item.displayName" :value="item.id" /> |
|
|
|
</el-select> |
|
|
|
--> |
|
|
|
<el-date-picker v-model="query.startDate" type="date" placeholder="起始日期" size="small" |
|
|
|
style="width:90px;" value-format="yyyy-MM-dd" :picker-options="{disabledDate:false,shortcuts:pickerOptions.shortcuts}" /> |
|
|
|
<el-date-picker v-model="query.startDate" type="date" placeholder="起始日期" size="small" style="width:90px;" |
|
|
|
value-format="yyyy-MM-dd" :picker-options="{ disabledDate: false, shortcuts: pickerOptions.shortcuts }" /> |
|
|
|
<span class="spanClass">至</span> |
|
|
|
<el-date-picker v-model="query.endDate" type="date" placeholder="截止日期" size="small" |
|
|
|
style="width:90px;" value-format="yyyy-MM-dd" :picker-options="{disabledDate:false,shortcuts:pickerOptions.shortcuts}"/> |
|
|
|
</div> |
|
|
|
<el-date-picker v-model="query.endDate" type="date" placeholder="截止日期" size="small" style="width:90px;" |
|
|
|
value-format="yyyy-MM-dd" :picker-options="{ disabledDate: false, shortcuts: pickerOptions.shortcuts }" /> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span class="spanClass">检索关键字</span> |
|
|
|
<el-input placeholder="姓名、电话、身份证号" v-model="query.keyWord" size="small" clearable style="width: 200px" /> |
|
|
|
@ -22,59 +22,61 @@ |
|
|
|
<div class="query"> |
|
|
|
<span class="spanClass">状态</span> |
|
|
|
<el-select v-model="query.medicalStatus" placeholder="请选择" clearable style="width: 80px" size="small"> |
|
|
|
<el-option v-for="item in localDict.medicalStatus" :key="item.value" :label="item.label" :value="item.value"> |
|
|
|
<el-option v-for="item in localDict.medicalStatus" :key="item.value" :label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div style="margin-top: -38px;width: 160px;"> |
|
|
|
<div> |
|
|
|
<el-button @click="peopleIcCard" size="small" class="commonbutton" style="width:160px;font-size: 14px;">读身份证</el-button> |
|
|
|
<el-button @click="peopleIcCard" size="small" class="commonbutton" |
|
|
|
style="width:160px;font-size: 14px;">读身份证</el-button> |
|
|
|
</div> |
|
|
|
<div style="display: flex;"> |
|
|
|
<el-button size="small" class="commonbutton" @click="btnQuery" style="margin-top: 6px; width:60px;">查询</el-button> |
|
|
|
|
|
|
|
<el-button @click="handleExport" size="small" class="commonbutton" style="margin-top: 6px; width:100px;" |
|
|
|
>导出excel</el-button |
|
|
|
> |
|
|
|
</div> |
|
|
|
<el-button size="small" class="commonbutton" @click="btnQuery" |
|
|
|
style="margin-top: 6px; width:60px;">查询</el-button> |
|
|
|
|
|
|
|
<el-button @click="handleExport" size="small" class="commonbutton" |
|
|
|
style="margin-top: 6px; width:100px;">导出excel</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-table :data="tableData" border style="width: 100%" row-key="id" height="430" highlight-current-row |
|
|
|
size="small" @row-click="rowClick" ref="webBooking" id="webBookingMzak"> |
|
|
|
size="small" @row-click="rowClick" ref="webBooking" id="webBookingMzak"> |
|
|
|
<el-table-column label="序号" type="index" width="40" align="center" /> |
|
|
|
<el-table-column label="部门名称" width="150" prop="departmentName" align="center" /> |
|
|
|
<el-table-column label="子部门" width="150" prop="childCompanyName" align="center" /> |
|
|
|
<el-table-column label="岗位" width="100" prop="positionName" align="center" /> |
|
|
|
<el-table-column label="子部门" width="150" prop="childCompanyName" align="center" /> |
|
|
|
<el-table-column label="岗位" width="100" prop="positionName" align="center" /> |
|
|
|
<el-table-column label="姓名" width="80" prop="patientName" align="center" /> |
|
|
|
<el-table-column label="身份证号" width="150" prop="idNo" align="center" /> |
|
|
|
<el-table-column label="预约时间" width="150" prop="bookingDate" align="center" /> |
|
|
|
<el-table-column label="手机号" width="130" prop="phone" align="center" /> |
|
|
|
<el-table-column label="性别" width="40" prop="sexId" align="center" /> |
|
|
|
<el-table-column label="年龄" width="40" prop="age" align="center" /> |
|
|
|
<el-table-column label="单位" width="150" prop="customerOrgId" align="center" /> |
|
|
|
<el-table-column label="单位" width="150" prop="customerOrgId" align="center" /> |
|
|
|
<el-table-column label="单位体检次数" width="150" prop="customerOrgRegisterId" align="center" /> |
|
|
|
<el-table-column label="分组/套餐" width="120" prop="customerOrgGroupId" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ scope.row.customerOrgGroupId ? scope.row.customerOrgGroupId : scope.row.medicalPackageName }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="预约编号" width="120" prop="thirdBookingId" align="center" /> |
|
|
|
<el-table-column label="状态" width="50" prop="medicalStatus" align="center" > |
|
|
|
<el-table-column label="状态" width="50" prop="medicalStatus" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ dddw(localDict.medicalStatus,'value',scope.row.medicalStatus,'label') }} |
|
|
|
{{ dddw(localDict.medicalStatus, 'value', scope.row.medicalStatus, 'label') }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
<div style="margin-top: 10px; display: flex;justify-content: space-between;"> |
|
|
|
<div style="margin: -8px 0 0 0; font-size: 12px;"> |
|
|
|
{{ asbDesc }} |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-button v-if="false" @click="btnTest">测试</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
@ -87,10 +89,11 @@ |
|
|
|
<script> |
|
|
|
import { mapState } from "vuex"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import { dddw, deepCopy } from "../../utlis/proFunc"; |
|
|
|
import { dddw, deepCopy, parsIcCardtoLocal } from "../../utlis/proFunc"; |
|
|
|
import moment from "moment"; |
|
|
|
import { exportToExcel } from "../../utlis/Export2Excel"; |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
components: { |
|
|
|
|
|
|
|
@ -108,17 +111,17 @@ export default { |
|
|
|
appointStartDate: "", |
|
|
|
appointStopDate: "", |
|
|
|
completeFlag: "0", |
|
|
|
keyWord:'', |
|
|
|
startDate:'', |
|
|
|
endDate:'', |
|
|
|
medicalStatus:'0' |
|
|
|
keyWord: '', |
|
|
|
startDate: '', |
|
|
|
endDate: '', |
|
|
|
medicalStatus: '0' |
|
|
|
}, |
|
|
|
asbDesc: '', //所选套餐描述 |
|
|
|
localDict:{ |
|
|
|
medicalStatus:[ |
|
|
|
{label:'未开始',value:'0'}, // 0未开始 1已登记 2已完成 |
|
|
|
{label:'已登记',value:'1'}, |
|
|
|
{label:'已完成',value:'2'}, |
|
|
|
localDict: { |
|
|
|
medicalStatus: [ |
|
|
|
{ label: '未开始', value: '0' }, // 0未开始 1已登记 2已完成 |
|
|
|
{ label: '已登记', value: '1' }, |
|
|
|
{ label: '已完成', value: '2' }, |
|
|
|
] |
|
|
|
} |
|
|
|
}; |
|
|
|
@ -157,13 +160,13 @@ export default { |
|
|
|
dddw, |
|
|
|
funMounted() { |
|
|
|
this.dictInit() |
|
|
|
// .then(res => { |
|
|
|
// //this.btnQuery() |
|
|
|
// }) |
|
|
|
// .then(res => { |
|
|
|
// //this.btnQuery() |
|
|
|
// }) |
|
|
|
}, |
|
|
|
|
|
|
|
//数据初始化 |
|
|
|
dictInit() { |
|
|
|
dictInit() { |
|
|
|
|
|
|
|
// return new Promise((resolve, reject) => { |
|
|
|
// let curDate = moment(new Date()).format('YYYY-MM-DD') |
|
|
|
@ -288,7 +291,7 @@ export default { |
|
|
|
// // e.standTotal = e.amount * e.standardPrice |
|
|
|
// e.total = e.amount * e.chargePrice |
|
|
|
// }); |
|
|
|
|
|
|
|
|
|
|
|
// this.tableDataDetails = res.data |
|
|
|
// } |
|
|
|
// }) |
|
|
|
@ -304,14 +307,14 @@ export default { |
|
|
|
if (!this.currRowData.thirdBookingId) { |
|
|
|
this.$message.warning({ showClose: true, message: "请选择预约的记录" }) |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.dataTransOpts.tableS.appoint_patient_register = this.dataTrans(this.currRowData) |
|
|
|
// this.dataTransOpts.tableM.appoint_register_asbitem = deepCopy(this.tableDataDetails) |
|
|
|
this.dialogWin.WebBookingMzak = false |
|
|
|
}, |
|
|
|
|
|
|
|
dataTrans(curRow){ |
|
|
|
dataTrans(curRow) { |
|
|
|
// { // 标准数据 |
|
|
|
// "appointPatientRegisterId": "string", |
|
|
|
// "personId": "string", |
|
|
|
@ -353,9 +356,9 @@ export default { |
|
|
|
// "customerOrgRegisterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", |
|
|
|
// "customerOrgId": "3fa85f64-5717-4562-b3fc-2c963f66afa6" |
|
|
|
// } |
|
|
|
let ret = Object.assign({},curRow,{ |
|
|
|
mobileTelephone:curRow.phone, |
|
|
|
personName:curRow.patientName |
|
|
|
let ret = Object.assign({}, curRow, { |
|
|
|
mobileTelephone: curRow.phone, |
|
|
|
personName: curRow.patientName |
|
|
|
}) |
|
|
|
return ret |
|
|
|
|
|
|
|
|