|
|
@ -61,7 +61,7 @@ |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="5"> |
|
|
<el-col :span="5"> |
|
|
<el-form-item label="姓名" prop="patientName"> |
|
|
<el-form-item label="姓名" prop="patientName"> |
|
|
<el-input id="patientName" v-model="form.patientName" @change="Query(form.patientName)" size="small" |
|
|
|
|
|
|
|
|
<el-input id="patientName" v-model="form.patientName" @change="changePatientName" size="small" |
|
|
autocomplete="off"></el-input> |
|
|
autocomplete="off"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
@ -330,47 +330,47 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="2"> |
|
|
<el-col :span="2"> |
|
|
<el-form-item label="普速"> |
|
|
<el-form-item label="普速"> |
|
|
<el-checkbox v-model="form.qztlIsCw" true-label="Y" false-label="N" disabled/> |
|
|
|
|
|
|
|
|
<el-checkbox v-model="form.qztlIsCw" true-label="Y" false-label="N" disabled /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="2"> |
|
|
<el-col :span="2"> |
|
|
<el-form-item label="从业"> |
|
|
<el-form-item label="从业"> |
|
|
<el-checkbox v-model="form.qztlIsCy" true-label="Y" false-label="N" disabled/> |
|
|
|
|
|
|
|
|
<el-checkbox v-model="form.qztlIsCy" true-label="Y" false-label="N" disabled /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="2"> |
|
|
<el-col :span="2"> |
|
|
<el-form-item label="高铁"> |
|
|
<el-form-item label="高铁"> |
|
|
<el-checkbox v-model="form.qztlIsGt" true-label="Y" false-label="N" disabled/> |
|
|
|
|
|
|
|
|
<el-checkbox v-model="form.qztlIsGt" true-label="Y" false-label="N" disabled /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="2"> |
|
|
<el-col :span="2"> |
|
|
<el-form-item label="行车"> |
|
|
<el-form-item label="行车"> |
|
|
<el-checkbox v-model="form.qztlIsMain" true-label="Y" false-label="N" disabled/> |
|
|
|
|
|
|
|
|
<el-checkbox v-model="form.qztlIsMain" true-label="Y" false-label="N" disabled /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="2"> |
|
|
<el-col :span="2"> |
|
|
<el-form-item label="职害"> |
|
|
<el-form-item label="职害"> |
|
|
<el-checkbox v-model="form.qztlIsWh" true-label="Y" false-label="N" disabled/> |
|
|
|
|
|
|
|
|
<el-checkbox v-model="form.qztlIsWh" true-label="Y" false-label="N" disabled /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="2"> |
|
|
<el-col :span="2"> |
|
|
<el-form-item label="复检"> |
|
|
<el-form-item label="复检"> |
|
|
<el-checkbox v-model="form.qztlIsFj" true-label="Y" false-label="N" disabled/> |
|
|
|
|
|
|
|
|
<el-checkbox v-model="form.qztlIsFj" true-label="Y" false-label="N" disabled /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="2"> |
|
|
<el-col :span="2"> |
|
|
<el-form-item label="导入"> |
|
|
<el-form-item label="导入"> |
|
|
<el-checkbox v-model="form.isQztlImport" true-label="Y" false-label="N" disabled/> |
|
|
|
|
|
|
|
|
<el-checkbox v-model="form.isQztlImport" true-label="Y" false-label="N" disabled /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="2"> |
|
|
<el-col :span="2"> |
|
|
<el-form-item label="上传"> |
|
|
<el-form-item label="上传"> |
|
|
<el-checkbox v-model="form.uploadQztlFlag" true-label="Y" false-label="N" disabled/> |
|
|
|
|
|
|
|
|
<el-checkbox v-model="form.uploadQztlFlag" true-label="Y" false-label="N" disabled /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="4"> |
|
|
<el-col :span="4"> |
|
|
<el-form-item label="计划" prop="planuserid"> |
|
|
<el-form-item label="计划" prop="planuserid"> |
|
|
<el-input v-model="form.planuserid" size="small" disabled/> |
|
|
|
|
|
|
|
|
<el-input v-model="form.planuserid" size="small" disabled /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
@ -596,7 +596,7 @@ import { getTreeNode } from "../../utlis/tree" |
|
|
import { |
|
|
import { |
|
|
getPagePriv, checkPagePriv, objCopy, setNull, dddw, checkIDCode, parseID, |
|
|
getPagePriv, checkPagePriv, objCopy, setNull, dddw, checkIDCode, parseID, |
|
|
birthdayToAge, ageToBirthday, deepCopy, arrayFilter, arrayReduce, parsIcCardtoLocal, |
|
|
birthdayToAge, ageToBirthday, deepCopy, arrayFilter, arrayReduce, parsIcCardtoLocal, |
|
|
arrayExistObj |
|
|
|
|
|
|
|
|
arrayExistObj, isValidMobileNumber |
|
|
} from "../../utlis/proFunc"; |
|
|
} from "../../utlis/proFunc"; |
|
|
import { getTreePids } from "../../utlis/tree"; |
|
|
import { getTreePids } from "../../utlis/tree"; |
|
|
import { photoParse, savePeoplePhoto, } from "../../utlis/proApi"; |
|
|
import { photoParse, savePeoplePhoto, } from "../../utlis/proApi"; |
|
|
@ -623,8 +623,14 @@ export default { |
|
|
// isDoctor: '0:标准人员登记/1:医生诊台登记(可修改单位)' |
|
|
// isDoctor: '0:标准人员登记/1:医生诊台登记(可修改单位)' |
|
|
props: ['isDoctor', 'patientRegisterId', 'editTimes', 'refreshRegister', 'refFuncSetData'], |
|
|
props: ['isDoctor', 'patientRegisterId', 'editTimes', 'refreshRegister', 'refFuncSetData'], |
|
|
data() { |
|
|
data() { |
|
|
|
|
|
var validateMobileTelephone = (rule, value, callback) => { |
|
|
|
|
|
if (value) { |
|
|
|
|
|
if (!isValidMobileNumber(value)) callback(new Error('请填写正确的手机号!')); |
|
|
|
|
|
} else { |
|
|
|
|
|
callback(); |
|
|
|
|
|
} |
|
|
|
|
|
}; |
|
|
return { |
|
|
return { |
|
|
|
|
|
|
|
|
pagePriv: { |
|
|
pagePriv: { |
|
|
routeUrlorPageName: 'PatientRegisterEdit', //当前页面归属路由或归属页面权限名称 |
|
|
routeUrlorPageName: 'PatientRegisterEdit', //当前页面归属路由或归属页面权限名称 |
|
|
privs: [] // 页面权限 |
|
|
privs: [] // 页面权限 |
|
|
@ -634,6 +640,7 @@ export default { |
|
|
editMode: 'standard', //standard/qztl 人员登记组件版本 |
|
|
editMode: 'standard', //standard/qztl 人员登记组件版本 |
|
|
editHeight: 0, // 相较与标准版,选组合项目组件,减少高度 |
|
|
editHeight: 0, // 相较与标准版,选组合项目组件,减少高度 |
|
|
immediateToHisCharge: true, // 人员登记保存后,立即发送收费申请 |
|
|
immediateToHisCharge: true, // 人员登记保存后,立即发送收费申请 |
|
|
|
|
|
findPatientByName: true, // 人员登记,启有人名查询 |
|
|
printGuideLabel: ["guide", "pacs", "lis"], // 保存后打印指引单与条码 |
|
|
printGuideLabel: ["guide", "pacs", "lis"], // 保存后打印指引单与条码 |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
@ -732,6 +739,9 @@ export default { |
|
|
medicalCenterId: [ |
|
|
medicalCenterId: [ |
|
|
{ required: true, message: "请填写体检中心", trigger: "blur" }, |
|
|
{ required: true, message: "请填写体检中心", trigger: "blur" }, |
|
|
], |
|
|
], |
|
|
|
|
|
mobileTelephone: [ |
|
|
|
|
|
{ validator: validateMobileTelephone, trigger: 'blur' } |
|
|
|
|
|
], |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
dialogVisible: false, |
|
|
dialogVisible: false, |
|
|
@ -761,7 +771,7 @@ export default { |
|
|
dialogOrg: false, |
|
|
dialogOrg: false, |
|
|
|
|
|
|
|
|
printing: false, // 是否打印中,控制一次只能有一个任务 |
|
|
printing: false, // 是否打印中,控制一次只能有一个任务 |
|
|
completeFlag:'0', // 默认预登记,首次正式登记或者预登记转正式登记,提示打印条码与指引单 |
|
|
|
|
|
|
|
|
completeFlag: '0', // 默认预登记,首次正式登记或者预登记转正式登记,提示打印条码与指引单 |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -775,7 +785,16 @@ export default { |
|
|
if (LocalConfig && LocalConfig.patientRegister) { |
|
|
if (LocalConfig && LocalConfig.patientRegister) { |
|
|
if (LocalConfig.patientRegister.edit) this.LocalConfig.patientRegister.edit = LocalConfig.patientRegister.edit |
|
|
if (LocalConfig.patientRegister.edit) this.LocalConfig.patientRegister.edit = LocalConfig.patientRegister.edit |
|
|
if (LocalConfig.patientRegister.editHeight) this.LocalConfig.patientRegister.editHeight = LocalConfig.patientRegister.editHeight |
|
|
if (LocalConfig.patientRegister.editHeight) this.LocalConfig.patientRegister.editHeight = LocalConfig.patientRegister.editHeight |
|
|
if (LocalConfig.patientRegister.immediateToHisCharge) this.LocalConfig.patientRegister.immediateToHisCharge = LocalConfig.patientRegister.immediateToHisCharge |
|
|
|
|
|
|
|
|
if (LocalConfig.patientRegister.immediateToHisCharge) { |
|
|
|
|
|
this.LocalConfig.patientRegister.immediateToHisCharge = true |
|
|
|
|
|
} else { |
|
|
|
|
|
this.LocalConfig.patientRegister.immediateToHisCharge = false |
|
|
|
|
|
} |
|
|
|
|
|
if (LocalConfig.patientRegister.findPatientByName) { |
|
|
|
|
|
this.LocalConfig.patientRegister.findPatientByName = true |
|
|
|
|
|
} else { |
|
|
|
|
|
this.LocalConfig.patientRegister.findPatientByName = false |
|
|
|
|
|
} |
|
|
if (LocalConfig.patientRegister.printGuideLabel) this.LocalConfig.patientRegister.printGuideLabel = deepCopy(LocalConfig.patientRegister.printGuideLabel) |
|
|
if (LocalConfig.patientRegister.printGuideLabel) this.LocalConfig.patientRegister.printGuideLabel = deepCopy(LocalConfig.patientRegister.printGuideLabel) |
|
|
} |
|
|
} |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
@ -1275,6 +1294,13 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 输入名字时,查重 |
|
|
|
|
|
changePatientName() { |
|
|
|
|
|
console.log('this.LocalConfig.patientRegister.findPatientByName', this.LocalConfig.patientRegister.findPatientByName) |
|
|
|
|
|
if (this.LocalConfig.patientRegister.findPatientByName) { |
|
|
|
|
|
this.Query(this.form.patientName) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
// //分组改变时触发 |
|
|
// //分组改变时触发 |
|
|
changeCustomerOrgGroupId() { |
|
|
changeCustomerOrgGroupId() { |
|
|
this.prAsbOpraOpts.prAsbGroup++ |
|
|
this.prAsbOpraOpts.prAsbGroup++ |
|
|
@ -1392,7 +1418,7 @@ export default { |
|
|
|
|
|
|
|
|
let body = deepCopy(this.form); |
|
|
let body = deepCopy(this.form); |
|
|
// // console.log('this.form',this.form) |
|
|
// // console.log('this.form',this.form) |
|
|
console.log('body',this.form,body) |
|
|
|
|
|
|
|
|
console.log('body', this.form, body) |
|
|
if (this.form.birthDate) { |
|
|
if (this.form.birthDate) { |
|
|
try { |
|
|
try { |
|
|
body.birthDate = moment(new Date(this.form.birthDate)).format("yyyy-MM-DD") |
|
|
body.birthDate = moment(new Date(this.form.birthDate)).format("yyyy-MM-DD") |
|
|
@ -1512,7 +1538,7 @@ export default { |
|
|
|
|
|
|
|
|
await this.labelPrint(false) // 先打条码,这样指引单上才有条码数据 |
|
|
await this.labelPrint(false) // 先打条码,这样指引单上才有条码数据 |
|
|
|
|
|
|
|
|
if(this.LocalConfig.patientRegister.printGuideLabel.indexOf('guide') > -1) await this.guidePrint('0001', false) |
|
|
|
|
|
|
|
|
if (this.LocalConfig.patientRegister.printGuideLabel.indexOf('guide') > -1) await this.guidePrint('0001', false) |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
// this.$message.info({ showClose: true, message: error }); |
|
|
// this.$message.info({ showClose: true, message: error }); |
|
|
console.log(error) |
|
|
console.log(error) |
|
|
@ -1659,7 +1685,7 @@ export default { |
|
|
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!" }); |
|
|
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!" }); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
if(this.form.completeFlag == '0'){ |
|
|
|
|
|
|
|
|
if (this.form.completeFlag == '0') { |
|
|
this.$message.info({ showClose: true, message: "预登记人员,不可执行此操作!" }); |
|
|
this.$message.info({ showClose: true, message: "预登记人员,不可执行此操作!" }); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
@ -1785,7 +1811,7 @@ export default { |
|
|
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!" }); |
|
|
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!" }); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
if(this.form.completeFlag == '0'){ |
|
|
|
|
|
|
|
|
if (this.form.completeFlag == '0') { |
|
|
this.$message.info({ showClose: true, message: "预登记人员,不可执行此操作!" }); |
|
|
this.$message.info({ showClose: true, message: "预登记人员,不可执行此操作!" }); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
@ -1810,10 +1836,10 @@ export default { |
|
|
this.printing = true |
|
|
this.printing = true |
|
|
try { |
|
|
try { |
|
|
// lis条码打印 |
|
|
// lis条码打印 |
|
|
if(this.LocalConfig.patientRegister.printGuideLabel.indexOf('lis') > -1) await this.lisPrint('0002', isPreview, toOutShell) |
|
|
|
|
|
|
|
|
if (this.LocalConfig.patientRegister.printGuideLabel.indexOf('lis') > -1) await this.lisPrint('0002', isPreview, toOutShell) |
|
|
|
|
|
|
|
|
// pacs条码打印 |
|
|
// pacs条码打印 |
|
|
if(this.LocalConfig.patientRegister.printGuideLabel.indexOf('pacs') > -1) await this.pacsPrint('0004', isPreview, toOutShell) |
|
|
|
|
|
|
|
|
if (this.LocalConfig.patientRegister.printGuideLabel.indexOf('pacs') > -1) await this.pacsPrint('0004', isPreview, toOutShell) |
|
|
|
|
|
|
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
console.log(error) |
|
|
console.log(error) |
|
|
@ -1901,7 +1927,7 @@ export default { |
|
|
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!" }); |
|
|
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!" }); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
if(this.form.completeFlag == '0'){ |
|
|
|
|
|
|
|
|
if (this.form.completeFlag == '0') { |
|
|
this.$message.info({ showClose: true, message: "预登记人员,不可执行此操作!" }); |
|
|
this.$message.info({ showClose: true, message: "预登记人员,不可执行此操作!" }); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
@ -2057,9 +2083,9 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 显示职业病 |
|
|
// 显示职业病 |
|
|
btnOcc(){ |
|
|
|
|
|
if(!this.form.id){ |
|
|
|
|
|
this.$message.warning({showClose:true,message:'人员信息尚未保存!'}) |
|
|
|
|
|
|
|
|
btnOcc() { |
|
|
|
|
|
if (!this.form.id) { |
|
|
|
|
|
this.$message.warning({ showClose: true, message: '人员信息尚未保存!' }) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
this.dataTransOpts.plus.OccDisease++ |
|
|
this.dataTransOpts.plus.OccDisease++ |
|
|
|