|
|
|
@ -5,72 +5,65 @@ |
|
|
|
: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"> |
|
|
|
|
|
|
|
<el-select v-model="patientRegister.query.dateType" placeholder="请选择" style="width: 80px" size="small"> |
|
|
|
<el-select v-model="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" /> |
|
|
|
<el-date-picker v-model="query.startDate" type="date" placeholder="起始日期" size="small" style="width:90px;" |
|
|
|
value-format="yyyy-MM-dd" :picker-options="pickerOptions" /> |
|
|
|
<span class="spanClass">至</span> |
|
|
|
<el-date-picker v-model="patientRegister.query.endDate" type="date" placeholder="截止日期" size="small" |
|
|
|
style="width:90px;" value-format="yyyy-MM-dd" :picker-options="pickerOptions" /> |
|
|
|
<el-date-picker v-model="query.endDate" type="date" placeholder="截止日期" size="small" style="width:90px;" |
|
|
|
value-format="yyyy-MM-dd" :picker-options="pickerOptions" /> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span class="spanClass">连续扫码</span> |
|
|
|
<el-checkbox v-model="patientRegister.query.isSeries" size="small" true-label="Y" false-label="N" /> |
|
|
|
</div> |
|
|
|
<span class="spanClass">连续扫码</span> |
|
|
|
<el-checkbox v-model="query.isSeries" size="small" true-label="Y" false-label="N" /> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span class="spanClass">条码号</span> |
|
|
|
<el-input placeholder="条码号" v-model="patientRegister.query.patientRegisterNo" size="small" clearable |
|
|
|
style="width: 120px" /> |
|
|
|
<el-input placeholder="条码号" v-model="query.patientRegisterNo" size="small" clearable style="width: 120px" /> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span class="spanClass">档案号</span> |
|
|
|
<el-input placeholder="档案号" v-model="patientRegister.query.patientNo" size="small" clearable |
|
|
|
style="width: 80px" @input="changeValue" /> |
|
|
|
<el-input placeholder="档案号" v-model="query.patientNo" size="small" clearable style="width: 80px" |
|
|
|
@input="changeValue" /> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span class="spanClass">姓名</span> |
|
|
|
<el-input placeholder="姓名" v-model="patientRegister.query.patientName" size="small" clearable |
|
|
|
style="width: 60px" /> |
|
|
|
<el-input placeholder="姓名" v-model="query.patientName" size="small" clearable style="width: 60px" /> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span class="spanClass">检查条码</span> |
|
|
|
<el-input placeholder="检查条码" v-model="patientRegister.query.pacsNo" size="small" clearable |
|
|
|
style="width: 120px" /> |
|
|
|
<el-input placeholder="检查条码" v-model="query.pacsNo" size="small" clearable style="width: 120px" /> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span class="spanClass">检验条码</span> |
|
|
|
<el-input placeholder="检验条码" v-model="patientRegister.query.lisNo" size="small" clearable |
|
|
|
style="width: 120px" /> |
|
|
|
<el-input placeholder="检验条码" v-model="query.lisNo" size="small" clearable style="width: 120px" /> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span class="spanClass">性别</span> |
|
|
|
<el-select v-model="patientRegister.query.sex" placeholder="性别" style="width: 50px" size="small" clearable> |
|
|
|
<el-select v-model="query.sex" placeholder="性别" style="width: 50px" size="small" clearable> |
|
|
|
<el-option v-for="item in dict.sex" :key="item.id" :label="item.displayName" :value="item.id"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span class="spanClass">手机号</span> |
|
|
|
<el-input placeholder="手机号/电话" v-model="patientRegister.query.phone" size="small" clearable |
|
|
|
style="width: 100px" /> |
|
|
|
<el-input placeholder="手机号/电话" v-model="query.phone" size="small" clearable style="width: 100px" /> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span class="spanClass">身份证</span> |
|
|
|
<el-input placeholder="身份证" v-model="patientRegister.query.idCardNo" size="small" clearable |
|
|
|
style="width: 150px" /> |
|
|
|
<el-input placeholder="身份证" v-model="query.idCardNo" size="small" clearable style="width: 150px" /> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<el-tooltip class="item" effect="dark" content="单位作为查询条件" placement="top"> |
|
|
|
<el-checkbox v-model="patientRegister.query.customerOrgFlag"></el-checkbox> |
|
|
|
<el-checkbox v-model="query.customerOrgFlag"></el-checkbox> |
|
|
|
</el-tooltip> |
|
|
|
<el-input placeholder="请选择单位" v-model="patientRegister.query.customerOrgName" size="small" disabled |
|
|
|
style="width: 120px" /> |
|
|
|
<el-input placeholder="请选择单位" v-model="query.customerOrgName" size="small" disabled style="width: 120px" /> |
|
|
|
<!-- |
|
|
|
<el-cascader v-model="patientRegister.query.customerOrgId" :options="patientRegister.customerOrgTreeAll" |
|
|
|
<el-cascader v-model="query.customerOrgId" :options="patientRegister.customerOrgTreeAll" |
|
|
|
:props="{ checkStrictly: true, expandTrigger: 'hover', ...customerOrg.treeprops, }" placeholder="请选择单位" |
|
|
|
:show-all-levels="false" clearable :disabled="orgEnable == 'Y' ? false : true" size="small" |
|
|
|
style="width:120px;"> |
|
|
|
@ -79,45 +72,44 @@ |
|
|
|
</div> |
|
|
|
<div v-show="dispTimes" class="query"> |
|
|
|
<span class="spanClass">次数</span> |
|
|
|
<el-select v-model="patientRegister.query.customerOrgRegister" placeholder="次数" clearable |
|
|
|
@change="changeCustomerOrgRegister" style="width: 50px;" size="small" value-key="id"> |
|
|
|
<el-select v-model="query.customerOrgRegister" placeholder="次数" clearable @change="changeCustomerOrgRegister" |
|
|
|
style="width: 50px;" size="small" value-key="id"> |
|
|
|
<el-option v-for="item in customerOrgRegisterList" :key="item.id" :label="item.medicalTimes" :value="item">{{ |
|
|
|
item.medicalTimes + '次' }}</el-option> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
<div v-show="dispTimes" class="query"> |
|
|
|
<span class="spanClass">分组</span> |
|
|
|
<el-select v-model="patientRegister.query.customerOrgGroupIds" placeholder="请选择" clearable filterable |
|
|
|
style="width: 150px" size="small" multiple collapse-tags> |
|
|
|
<el-select v-model="query.customerOrgGroupIds" placeholder="请选择" clearable filterable style="width: 150px" |
|
|
|
size="small" multiple collapse-tags> |
|
|
|
<el-option v-for="item in dict.customerOrgGroup" :key="item.id" :label="item.displayName" :value="item.id" /> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span class="spanClass">体检类别</span> |
|
|
|
<el-select v-model="patientRegister.query.medicalTypeIds" placeholder="请选择" clearable filterable |
|
|
|
style="width: 170px" size="small" multiple collapse-tags> |
|
|
|
<el-select v-model="query.medicalTypeIds" placeholder="请选择" clearable filterable style="width: 170px" |
|
|
|
size="small" multiple collapse-tags> |
|
|
|
<el-option v-for="item in dict.medicalType" :key="item.id" :label="item.displayName" :value="item.id" /> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span class="spanClass">状态</span> |
|
|
|
<el-select v-model="patientRegister.query.completeFlags" placeholder="请选择" clearable style="width: 100px" |
|
|
|
size="small" multiple collapse-tags> |
|
|
|
<el-select v-model="query.completeFlags" placeholder="请选择" clearable style="width: 100px" size="small" multiple |
|
|
|
collapse-tags> |
|
|
|
<el-option v-for="item in dict.completeFlag" :key="item.id" :label="item.displayName" :value="item.id"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span class="spanClass">人员类别</span> |
|
|
|
<el-select v-model="patientRegister.query.personnelTypeIds" placeholder="请选择" clearable filterable |
|
|
|
style="width: 170px" size="small" multiple collapse-tags> |
|
|
|
<el-select v-model="query.personnelTypeIds" placeholder="请选择" clearable filterable style="width: 170px" |
|
|
|
size="small" multiple collapse-tags> |
|
|
|
<el-option v-for="item in dict.personnelType" :key="item.id" :label="item.displayName" :value="item.id" /> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span class="spanClass">表回收</span> |
|
|
|
<el-select v-model="patientRegister.query.isRecoverGuide" placeholder="请选择" clearable style="width: 80px" |
|
|
|
size="small" > |
|
|
|
<el-select v-model="query.isRecoverGuide" placeholder="请选择" clearable style="width: 80px" size="small"> |
|
|
|
<el-option label="未回收" value="N" /> |
|
|
|
<el-option label="已回收" value="Y" /> |
|
|
|
</el-select> |
|
|
|
@ -142,10 +134,11 @@ |
|
|
|
import { mapState } from "vuex"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import { getPagePriv, checkPagePriv, parsIcCardtoLocal, deepCopy } from '../../utlis/proFunc' |
|
|
|
import moment from "moment"; |
|
|
|
|
|
|
|
export default { |
|
|
|
components: {}, |
|
|
|
props: ["orgEnable"], |
|
|
|
props: ["orgEnable", "refParams"], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
pagePriv: { |
|
|
|
@ -154,6 +147,38 @@ export default { |
|
|
|
}, |
|
|
|
dialogVisible: false, |
|
|
|
customerOrgRegisterList: [], |
|
|
|
query: { //查询条件 |
|
|
|
queryType: '', // 条码号patientRegisterNo/档案号patientNo 等 排他查询 |
|
|
|
dateType: 'creationTime', //登记日期 |
|
|
|
dateRange: null, //日期范围 |
|
|
|
startDate: null, |
|
|
|
endDate: null, |
|
|
|
containRefuse: true, //包含弃检项目 |
|
|
|
times: 0, //触发查询次数 |
|
|
|
customerOrgId: "", //体检单位ID |
|
|
|
customerOrgTopId: "", //单位顶级ID |
|
|
|
customerOrgFlag: true, //单位作为查询条件 |
|
|
|
customerOrgRegister: { id: '' }, //单位体检次数 |
|
|
|
customerOrgGroupIds: [], //体检分组 |
|
|
|
checkAsbs: null, |
|
|
|
patientRegisterNo: '', |
|
|
|
pacsNo: '', |
|
|
|
lisNo: '', |
|
|
|
patientName: '', //姓名 |
|
|
|
sex: '', //性别 |
|
|
|
idCardNo: '', //身份证号 |
|
|
|
isReportPrint: '', // 报告是否打印 |
|
|
|
isSeries: 'N', |
|
|
|
isSmsComplete: "N", |
|
|
|
isPhoneComplete: "N", |
|
|
|
diagnosisLevelId: [], |
|
|
|
medicalTypeIds: [], |
|
|
|
completeFlags: [], |
|
|
|
medicalConclusionId: [], |
|
|
|
personnelTypeIds: [], |
|
|
|
isRecoverGuide: '', |
|
|
|
photo: '', // 参数控制 读身份证查询时,是否更新照片用 |
|
|
|
}, |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -162,23 +187,26 @@ export default { |
|
|
|
let userPriv = window.sessionStorage.getItem('userPriv') |
|
|
|
if (userPriv) this.pagePriv.privs = deepCopy(getPagePriv(this.pagePriv.routeUrlorPageName)) |
|
|
|
|
|
|
|
let ldate = new Date(); |
|
|
|
this.patientRegister.query.startDate = ldate; |
|
|
|
this.patientRegister.query.endDate = ldate; |
|
|
|
this.patientRegister.query.dateType = '2' |
|
|
|
let ldate = moment(new Date()).format('yyyy-MM-DD'); |
|
|
|
this.query.startDate = ldate; |
|
|
|
this.query.endDate = ldate; |
|
|
|
this.query.dateType = '2' |
|
|
|
}, |
|
|
|
|
|
|
|
//挂载完成 |
|
|
|
mounted() { |
|
|
|
this.init(this.patientRegister.query.customerOrgId) |
|
|
|
// 字典数据初始化 |
|
|
|
this.dictInit() |
|
|
|
|
|
|
|
// 触发回车事件 |
|
|
|
this.enterToQuery() |
|
|
|
}, |
|
|
|
|
|
|
|
computed: { |
|
|
|
...mapState(["pickerOptions", "window", "dict", "dataTransOpts", "patientRegister", "customerOrg"]), |
|
|
|
...mapState(["pickerOptions", "window", "dict", "dataTransOpts", "customerOrg"]), |
|
|
|
|
|
|
|
dispTimes() { |
|
|
|
return this.patientRegister.query.customerOrgFlag && this.patientRegister.query.customerOrgId && this.patientRegister.query.customerOrgId != this.dict.personOrgId |
|
|
|
return this.query.customerOrgFlag && this.query.customerOrgId && this.query.customerOrgId != this.dict.personOrgId |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
@ -186,54 +214,27 @@ export default { |
|
|
|
checkPagePriv, |
|
|
|
|
|
|
|
btnClear() { |
|
|
|
this.patientRegister.query.patientRegisterNo = '' |
|
|
|
this.patientRegister.query.patientNo = '' |
|
|
|
this.patientRegister.query.patientName = '' |
|
|
|
this.patientRegister.query.pacsNo = '' |
|
|
|
this.patientRegister.query.lisNo = '' |
|
|
|
this.patientRegister.query.sex = '' |
|
|
|
this.patientRegister.query.phone = '' |
|
|
|
this.patientRegister.query.idCardNo = '' |
|
|
|
|
|
|
|
this.patientRegister.query.medicalTypeIds = null |
|
|
|
this.patientRegister.query.completeFlags = null |
|
|
|
this.patientRegister.query.personnelTypeIds = null |
|
|
|
this.patientRegister.query.isRecoverGuide = null |
|
|
|
this.query.patientRegisterNo = '' |
|
|
|
this.query.patientNo = '' |
|
|
|
this.query.patientName = '' |
|
|
|
this.query.pacsNo = '' |
|
|
|
this.query.lisNo = '' |
|
|
|
this.query.sex = '' |
|
|
|
this.query.phone = '' |
|
|
|
this.query.idCardNo = '' |
|
|
|
|
|
|
|
this.query.medicalTypeIds = [] |
|
|
|
this.query.completeFlags = [] |
|
|
|
this.query.personnelTypeIds = [] |
|
|
|
this.query.isRecoverGuide = '' |
|
|
|
|
|
|
|
}, |
|
|
|
changeValue (e) { |
|
|
|
changeValue(e) { |
|
|
|
this.$forceUpdate() |
|
|
|
}, |
|
|
|
init(customerOrgId) { |
|
|
|
if (!customerOrgId || customerOrgId == this.dict.personOrgId) { |
|
|
|
this.patientRegister.query.customerOrgRegister = null |
|
|
|
this.customerOrgRegisterList = [] |
|
|
|
if (customerOrgId == this.dict.personOrgId) { |
|
|
|
let today = new Date() |
|
|
|
this.patientRegister.query.startDate = today |
|
|
|
this.patientRegister.query.endDate = today |
|
|
|
} |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
// 获取顶级ID |
|
|
|
getapi(`/api/app/customer-org/parent/${customerOrgId}`).then(res => { |
|
|
|
if (res.code > - 1) { |
|
|
|
this.patientRegister.query.CustomerOrgParentId = res.data |
|
|
|
return getapi(`/api/app/customerorgregister/getlistincustomerorgid?CustomerOrgId=${res.data}`) |
|
|
|
} |
|
|
|
}).then(res => { |
|
|
|
if (res && res.code > -1) { |
|
|
|
this.customerOrgRegisterList = res.data; |
|
|
|
if (res.data.length > 0) { |
|
|
|
this.patientRegister.query.customerOrgRegister = res.data[res.data.length - 1]; |
|
|
|
this.changeCustomerOrgRegister(res.data[res.data.length - 1]) |
|
|
|
} |
|
|
|
// this.patientRegister.query.times++ |
|
|
|
// console.log('this.patientRegister.query.customerOrgRegister',this.patientRegister.query.customerOrgRegister) |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
// 字典数据初始化 |
|
|
|
dictInit() { |
|
|
|
//体检类别 |
|
|
|
getapi("/api/app/medical-type/in-filter").then((res) => { |
|
|
|
if (res.code > -1) { |
|
|
|
@ -247,24 +248,65 @@ export default { |
|
|
|
this.dict.personnelType = res.data; |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
changeOrgId(customerOrgId) { |
|
|
|
if (!customerOrgId || customerOrgId == this.dict.personOrgId) { |
|
|
|
this.query.customerOrgRegister = null |
|
|
|
this.customerOrgRegisterList = [] |
|
|
|
if (customerOrgId == this.dict.personOrgId) { |
|
|
|
let today = new Date() |
|
|
|
this.query.startDate = today |
|
|
|
this.query.endDate = today |
|
|
|
} |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
this.query.customerOrgId = customerOrgId |
|
|
|
this.query.customerOrgName = this.refParams.customerOrgName |
|
|
|
|
|
|
|
// 获取顶级ID (优化无需获取顶级ID) |
|
|
|
if (this.refParams?.parentNodes.length > 1) { |
|
|
|
this.query.customerOrgTopId = this.refParams.parentNodes[1] |
|
|
|
} else { |
|
|
|
this.query.customerOrgTopId = customerOrgId |
|
|
|
} |
|
|
|
// getapi(`/api/app/customer-org/parent/${customerOrgId}`).then(res => { |
|
|
|
// if (res.code > - 1) { |
|
|
|
// = res.data |
|
|
|
// // 获取体检次数列表 |
|
|
|
// return getapi(`/api/app/customerorgregister/getlistincustomerorgid?CustomerOrgId=${this.query.customerOrgTopId}`) |
|
|
|
// } |
|
|
|
// }) |
|
|
|
getapi(`/api/app/customerorgregister/getlistincustomerorgid?CustomerOrgId=${this.query.customerOrgTopId}`) |
|
|
|
.then(res => { |
|
|
|
if (res && res.code > -1) { |
|
|
|
this.customerOrgRegisterList = res.data; |
|
|
|
if (res.data.length > 0) { |
|
|
|
this.query.customerOrgRegister = res.data[res.data.length - 1]; |
|
|
|
this.changeCustomerOrgRegister(res.data[res.data.length - 1]) |
|
|
|
} |
|
|
|
// this.query.times++ |
|
|
|
// console.log('this.query.customerOrgRegister',this.query.customerOrgRegister) |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//查询 |
|
|
|
btnQuery() { |
|
|
|
this.patientRegister.query.times++; |
|
|
|
console.log("this.patientRegister.query", this.patientRegister.query); |
|
|
|
btnQuery(queryType) { |
|
|
|
this.query.queryType = queryType |
|
|
|
this.$emit('triggerQuery', this.query) |
|
|
|
}, |
|
|
|
|
|
|
|
// 选择体检次数 |
|
|
|
changeCustomerOrgRegister(v) { |
|
|
|
// console.log('changeCustomerOrgRegister') |
|
|
|
this.patientRegister.query.startDate = new Date(v.beginTime) |
|
|
|
this.query.startDate = new Date(v.beginTime) |
|
|
|
if (v.isComplete == 'Y') { |
|
|
|
this.patientRegister.query.endDate = new Date(v.endTime) |
|
|
|
this.query.endDate = new Date(v.endTime) |
|
|
|
} else { |
|
|
|
this.patientRegister.query.endDate = new Date() |
|
|
|
this.query.endDate = new Date() |
|
|
|
} |
|
|
|
if (v && v.id) this.getCustomerOrgGroup(v.id) |
|
|
|
}, |
|
|
|
@ -272,7 +314,7 @@ export default { |
|
|
|
//获取体检次数下的分组 |
|
|
|
getCustomerOrgGroup(customerOrgRegisterId) { |
|
|
|
// console.log('getCustomerOrgGroup') |
|
|
|
this.patientRegister.query.customerOrgGroupIds = [] |
|
|
|
this.query.customerOrgGroupIds = [] |
|
|
|
this.dict.customerOrgGroup = [] |
|
|
|
// /api/app/customerorggroup/getlistinfilter?CustomerOrgRegisterId=${customerOrgRegisterId}` |
|
|
|
postapi('/api/app/CustomerOrgGroup/GetListForPatentRegisterByFilter', { customerOrgRegisterId }).then(res => { |
|
|
|
@ -290,7 +332,7 @@ export default { |
|
|
|
return |
|
|
|
} |
|
|
|
this.btnClear() |
|
|
|
|
|
|
|
|
|
|
|
this.$peisAPI.peopleIcCard().then(res => { |
|
|
|
console.log('peopleIcCard', res) |
|
|
|
let lres = JSON.parse(res) |
|
|
|
@ -303,13 +345,13 @@ export default { |
|
|
|
// this.form.nationId = idNos.nationId |
|
|
|
// this.form.idNo = idNos.IDCode |
|
|
|
// this.form.address = idNos.Address |
|
|
|
this.patientRegister.photo = 'data:image/bmp;base64,' + idNos.Photo //批量导入人员无照片,读身份证查询时,可以控制更新 |
|
|
|
this.query.photo = 'data:image/bmp;base64,' + idNos.Photo //批量导入人员无照片,读身份证查询时,可以控制更新 |
|
|
|
|
|
|
|
this.patientRegister.query.patientName = idNos.Name |
|
|
|
this.patientRegister.query.sex = idNos.sexId |
|
|
|
this.patientRegister.query.idCardNo = idNos.IDCode |
|
|
|
this.query.patientName = idNos.Name |
|
|
|
this.query.sex = idNos.sexId |
|
|
|
this.query.idCardNo = idNos.IDCode |
|
|
|
|
|
|
|
this.patientRegister.query.times++; |
|
|
|
this.query.times++; |
|
|
|
|
|
|
|
} else { |
|
|
|
this.$message.error({ showClose: true, message: lres.message }) |
|
|
|
@ -324,8 +366,8 @@ export default { |
|
|
|
onQueryByPacsNo(checkRequestNo) { |
|
|
|
postapi('/api/app/PatientRegister/GetPatientRegisterNoByCheckRequestNo', { checkRequestNo }).then(res => { |
|
|
|
if (res.code > 0) { |
|
|
|
this.patientRegister.query.patientRegisterNo = res.data.patientRegisterNo |
|
|
|
this.patientRegister.query.times++; |
|
|
|
this.query.patientRegisterNo = res.data.patientRegisterNo |
|
|
|
this.btnQuery("patientRegisterNo") |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
@ -334,13 +376,13 @@ export default { |
|
|
|
onQueryByLisNo(lisRequestNo) { |
|
|
|
postapi('/api/app/PatientRegister/GetPatientRegisterNoByLisRequestNo', { lisRequestNo }).then(res => { |
|
|
|
if (res.code > 0) { |
|
|
|
this.patientRegister.query.patientRegisterNo = res.data.patientRegisterNo |
|
|
|
this.patientRegister.query.times++; |
|
|
|
this.query.patientRegisterNo = res.data.patientRegisterNo |
|
|
|
this.btnQuery("patientRegisterNo") |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//回车替代查询 |
|
|
|
//回车替代查询(取消) |
|
|
|
enterToQuery() { |
|
|
|
// console.log('enterToTab'); |
|
|
|
this.$nextTick(() => { |
|
|
|
@ -359,11 +401,20 @@ export default { |
|
|
|
let placeholder = input.getAttribute('placeholder') |
|
|
|
switch (placeholder) { |
|
|
|
case '条码号': |
|
|
|
if (input.value) this.btnQuery('patientRegisterNo') |
|
|
|
input.select() |
|
|
|
break; |
|
|
|
case '档案号': |
|
|
|
if (input.value) this.btnQuery('patientNo') |
|
|
|
input.select() |
|
|
|
break; |
|
|
|
case '姓名': |
|
|
|
case '预约手机号': |
|
|
|
if (input.value) this.btnQuery('patientName') |
|
|
|
input.select() |
|
|
|
break; |
|
|
|
//case '预约手机号': |
|
|
|
case '身份证': |
|
|
|
if (input.value) this.patientRegister.query.times++; |
|
|
|
if (input.value) this.btnQuery('idCardNo') |
|
|
|
input.select() |
|
|
|
break; |
|
|
|
case '检查条码': |
|
|
|
@ -395,14 +446,16 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
watch: { |
|
|
|
"dataTransOpts.plus.PatientRegisterEditQuery": { |
|
|
|
"refParams.PatientRegisterQueryTimes": { |
|
|
|
// immediate: true, |
|
|
|
handler(newVal, oldVal) { |
|
|
|
console.log(`watch 体检单位切换 newVal:${newVal} oldVal:${oldVal} registerCheckId: ${this.patientRegister.query.customerOrgId}`); |
|
|
|
if (newVal != oldVal) this.init(this.patientRegister.query.customerOrgId) |
|
|
|
console.log(`watch 体检单位切换 newVal:${newVal} oldVal:${oldVal}`, `customerOrgId: ${this.refParams.customerOrgId}`); |
|
|
|
if (newVal != oldVal) this.changeOrgId(this.refParams.customerOrgId) |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|