|
@@ -1441,6 +1441,73 @@ const handleClickInjuryinfo = row => {
|
|
|
const result = await response.json();
|
|
|
// 你可以根据 result 做后续处理
|
|
|
if (result && result.code === 1 && result.data && result.data.code === 200 && result.data.data.infcode == '0') {
|
|
|
+ //调用addOrEditTSiPatInfo接口
|
|
|
+ try {
|
|
|
+ const responseThree = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/addOrEditTSiPatInfo', {
|
|
|
+ method: 'POST',
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/json',
|
|
|
+ },
|
|
|
+ body: JSON.stringify({
|
|
|
+ pat_no:patient.value.inpatientNo,//住院号/门诊号
|
|
|
+ times:patient.value.admissTimes,//住院次数/门诊次数
|
|
|
+ ledger_sn:patient.value.ledger_sn,//账页号(门诊固定为0)
|
|
|
+ psn_no: patient.value.readCardResult.data.output.psn_no,//人员编号
|
|
|
+ //insutype,//险种类型
|
|
|
+ med_type: patient.value.medType,//医疗类别
|
|
|
+ insuplc_admdvs:patient.value.readCardResult.data.output.insu_admdvs,//参保地医保区划,可通过【1101】人员信息获取交易取得
|
|
|
+ //psn_type,
|
|
|
+ //psn_insu_stas,
|
|
|
+ //psn_insu_date,
|
|
|
+ //paus_insu_date,
|
|
|
+ //cvlserv_flag,
|
|
|
+ //emp_name,
|
|
|
+ //psn_idet_type,//人员身份类别
|
|
|
+ //psn_type_lv,
|
|
|
+ //mdtrt_id,//就诊ID 新增
|
|
|
+ //setl_id,
|
|
|
+ //medins_setl_id,
|
|
|
+ //psn_cert_type,//人员证件类型
|
|
|
+ //certno,//证件号码
|
|
|
+ //psn_name,//人员姓名
|
|
|
+ //gend,//性别
|
|
|
+ //naty,//民族
|
|
|
+ //brdy,//出生日期
|
|
|
+ //age,//年龄
|
|
|
+ //fulamt_ownpay_amt,
|
|
|
+ //overlmt_amt,
|
|
|
+ //preselfpay_amt,
|
|
|
+ //inscp_scp_amt,
|
|
|
+ create_datetime: getCurrentDateTimeForCreate(),//创建时间2025-05-06 17:45:12.743
|
|
|
+ //visit_datetime,
|
|
|
+ //adm_reg_msgid,
|
|
|
+ //setl_msgid,
|
|
|
+ //rvk_setl_msgid,
|
|
|
+ //dise_code,
|
|
|
+ //dise_name,
|
|
|
+ //balc,//个人账户余额
|
|
|
+ //insuplc_admdvs_name
|
|
|
+ }),
|
|
|
+ });
|
|
|
+ const resultThree = await responseThree.json();
|
|
|
+ if (!(resultThree && resultThree.code === 1)) {
|
|
|
+ ElMessage({
|
|
|
+ message: '工伤患者信息表保存失败',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2500,
|
|
|
+ showClose: true,
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ } catch (e) {
|
|
|
+ ElMessage({
|
|
|
+ message: '工伤患者信息表保存接口异常',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2500,
|
|
|
+ showClose: true,
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
//调用addWorkInjuryInterfaceLog接口
|
|
|
try {
|
|
|
const responseTwo = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/addWorkInjuryInterfaceLog', {
|
|
@@ -1713,6 +1780,22 @@ function getCurrentDateTimeStr() {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
+// 获取当前时间,格式为YYYY-MM-DD HH:mm:ss.SSS
|
|
|
+function getCurrentDateTimeForCreate() {
|
|
|
+ const now = new Date();
|
|
|
+ const pad = (n) => n < 10 ? '0' + n : n;
|
|
|
+ const pad3 = (n) => n < 10 ? '00' + n : n < 100 ? '0' + n : n;
|
|
|
+ return (
|
|
|
+ now.getFullYear().toString() + '-' +
|
|
|
+ pad(now.getMonth() + 1) + '-' +
|
|
|
+ pad(now.getDate()) + ' ' +
|
|
|
+ pad(now.getHours()) + ':' +
|
|
|
+ pad(now.getMinutes()) + ':' +
|
|
|
+ pad(now.getSeconds()) + '.' +
|
|
|
+ pad3(now.getMilliseconds())
|
|
|
+ );
|
|
|
+}
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
getPsnCertTypes().then(res => {
|
|
|
psnCertTypes.value = res;
|