|
|
|
@ -583,9 +583,10 @@ export default { |
|
|
|
{ dispLabel: '检查类别', val: 'ocCheckTypeName' }, |
|
|
|
{ dispLabel: '接害因素', val: 'poisons' }, |
|
|
|
{ dispLabel: '备注', val: 'remark' }, |
|
|
|
{ dispLabel: '介绍人', val: 'salesman' }, |
|
|
|
{ dispLabel: '支付方式', val: 'payTypeFlag' }, |
|
|
|
], |
|
|
|
|
|
|
|
masterCols:{}, // 批量导入必填的项目 |
|
|
|
|
|
|
|
tableData: [], //导入数据状态显示 |
|
|
|
|
|
|
|
@ -674,6 +675,22 @@ export default { |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// 获取系统参数 -- 人员登记必填列 |
|
|
|
postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: 'patient_register_required_field' }) |
|
|
|
.then(res => { |
|
|
|
if (res.code > -1) { |
|
|
|
try { |
|
|
|
this.masterCols = JSON.parse(res.data) |
|
|
|
} catch (error) { |
|
|
|
console.error(error) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
.finally(() => { |
|
|
|
this.masterCols.patientName = "姓名" |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//清空进度数据数据 |
|
|
|
@ -1251,6 +1268,13 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 导入必填项验证 |
|
|
|
checkValide(body){ |
|
|
|
let msg = '' |
|
|
|
// personnelTypeName,medicalTypeName,salesman |
|
|
|
return msg |
|
|
|
}, |
|
|
|
|
|
|
|
//导入进行时 |
|
|
|
// startRow : 从第几行开始导入,同名判断交互时,续接导入 |
|
|
|
// startRowNameType : 续接导入的第1行,执行 同名判断模式, 3.不提示,按新人导入(前端不用管) |
|
|
|
@ -1267,6 +1291,13 @@ export default { |
|
|
|
if (i == startRow) body.nameType = startRowNameType |
|
|
|
console.log(`this.choosedData[${i}],startRowNameType,body`) |
|
|
|
|
|
|
|
// 判断是否必填: |
|
|
|
let msg = checkValide(body) |
|
|
|
if(msg){ |
|
|
|
this.tableData.push(Object.assign({ importState: '导入失败', importDes: msg }, this.choosedData[i])) |
|
|
|
continue |
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
// 同一人判断 |
|
|
|
if (this.choosedSameMan.patientNo) { |
|
|
|
|