|
|
@ -422,6 +422,7 @@ |
|
|
<div v-show="checkPagePriv(pagePriv.privs, '复制新增')" class="btn"> |
|
|
<div v-show="checkPagePriv(pagePriv.privs, '复制新增')" class="btn"> |
|
|
<el-button type="primary" class="commonbutton" @click="rdCopy">复制新增</el-button> |
|
|
<el-button type="primary" class="commonbutton" @click="rdCopy">复制新增</el-button> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '保存')" class="btn"> |
|
|
<div v-show="checkPagePriv(pagePriv.privs, '保存')" class="btn"> |
|
|
<el-button type="success" class="commonbutton" @click="btnSubmit('form', true)">保存</el-button> |
|
|
<el-button type="success" class="commonbutton" @click="btnSubmit('form', true)">保存</el-button> |
|
|
</div> |
|
|
</div> |
|
|
@ -751,6 +752,7 @@ export default { |
|
|
dialogOrg: false, |
|
|
dialogOrg: false, |
|
|
|
|
|
|
|
|
printing: false, // 是否打印中,控制一次只能有一个任务 |
|
|
printing: false, // 是否打印中,控制一次只能有一个任务 |
|
|
|
|
|
completeFlag:'0', // 默认预登记,首次正式登记或者预登记转正式登记,提示打印条码与指引单 |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -950,9 +952,6 @@ export default { |
|
|
this.dialogOrg = false |
|
|
this.dialogOrg = false |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取登记信息 初始form表单数据 |
|
|
// 获取登记信息 初始form表单数据 |
|
|
async initFormData(patientRegisterId) { |
|
|
async initFormData(patientRegisterId) { |
|
|
this.peisid = window.sessionStorage.getItem('peisid'); |
|
|
this.peisid = window.sessionStorage.getItem('peisid'); |
|
|
@ -976,12 +975,14 @@ export default { |
|
|
this.form.customerOrgParentId = customerOrgParentId //体检父单位 |
|
|
this.form.customerOrgParentId = customerOrgParentId //体检父单位 |
|
|
this.form.customerOrgName = customerOrgName |
|
|
this.form.customerOrgName = customerOrgName |
|
|
this.handleFormData() |
|
|
this.handleFormData() |
|
|
|
|
|
this.completeFlag = '0' |
|
|
} else { |
|
|
} else { |
|
|
// let res = await getapi(`/api/app/patient-register/${patientRegisterId}`) |
|
|
// let res = await getapi(`/api/app/patient-register/${patientRegisterId}`) |
|
|
postapi('/api/app/patientregister/getinfoorpatient', { patientRegisterId }).then(res => { |
|
|
postapi('/api/app/patientregister/getinfoorpatient', { patientRegisterId }).then(res => { |
|
|
if (res.code > -1) { |
|
|
if (res.code > -1) { |
|
|
// this.form = res.data 这种方式,会造成 checkbox 值变化不响应,故取消 |
|
|
// this.form = res.data 这种方式,会造成 checkbox 值变化不响应,故取消 |
|
|
this.form = res.data |
|
|
this.form = res.data |
|
|
|
|
|
this.completeFlag = this.form.completeFlag |
|
|
this.handleFormData() |
|
|
this.handleFormData() |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
@ -1484,13 +1485,13 @@ export default { |
|
|
//一般读身份证照片时,会出现这种情况 |
|
|
//一般读身份证照片时,会出现这种情况 |
|
|
if (this.peoplePhoto && this.peoplePhoto.indexOf("data:image") > -1) await savePeoplePhoto(res.data.id, this.peoplePhoto); |
|
|
if (this.peoplePhoto && this.peoplePhoto.indexOf("data:image") > -1) await savePeoplePhoto(res.data.id, this.peoplePhoto); |
|
|
|
|
|
|
|
|
// 保存即发送收费申请 |
|
|
|
|
|
if (this.LocalConfig.patientRegister.immediateToHisCharge) { |
|
|
|
|
|
|
|
|
// 保存即发送收费申请 正式登记的才发送申请 |
|
|
|
|
|
if (this.form.completeFlag != '0' && this.LocalConfig.patientRegister.immediateToHisCharge) { |
|
|
await this.immediateToHisCharge(this.form.id) |
|
|
await this.immediateToHisCharge(this.form.id) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 新增保存时,提示是否打条码 (预登记一般不打条码) |
|
|
|
|
|
if (!body.id && this.form.completeFlag != '0') { |
|
|
|
|
|
|
|
|
// 首次正式登记或者预登记转正式登记,提示打印条码与指引单 |
|
|
|
|
|
if (this.completeFlag == '0' && this.form.completeFlag != '0') { |
|
|
if (Array.isArray(this.LocalConfig.patientRegister.printGuideLabel) && this.LocalConfig.patientRegister.printGuideLabel.length > 0) { |
|
|
if (Array.isArray(this.LocalConfig.patientRegister.printGuideLabel) && this.LocalConfig.patientRegister.printGuideLabel.length > 0) { |
|
|
this.$confirm("是否打印 指引单、检验条码及 Pacs 条码?", "提示", { |
|
|
this.$confirm("是否打印 指引单、检验条码及 Pacs 条码?", "提示", { |
|
|
confirmButtonText: "是", |
|
|
confirmButtonText: "是", |
|
|
@ -1509,9 +1510,12 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
.catch((err) => { |
|
|
.catch((err) => { |
|
|
// if (err == "cancel") { |
|
|
|
|
|
// this.$message.info({ showClose: true, message: "已取消操作" }); |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
if (err != "cancel") { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
.finally(() => { |
|
|
|
|
|
this.completeFlag = this.form.completeFlag |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|