|
|
|
@ -11,15 +11,46 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-table :data="tableData" border |
|
|
|
<el-table :data="tableData" border v-if="mode=='10'" |
|
|
|
:height="window.pageHeight < 600 ? 405 : (window.pageHeight - 195)" |
|
|
|
highlight-current-row size="small" > |
|
|
|
<el-table-column type="index" label="序号" width="40" align="center"/> |
|
|
|
<el-table-column prop="importState" label="导入状态" min-width="80"/> |
|
|
|
<el-table-column prop="importDes" label="导入描述" min-width="150"/> |
|
|
|
<el-table-column prop="importState" label="导入状态" min-width="80"/> |
|
|
|
<el-table-column prop="importDes" label="导入描述" min-width="150"/> |
|
|
|
<el-table-column v-for="(item,index) in importCols" :key="`col${index}`" :prop="item.dispLabel" align="center" |
|
|
|
:label="item.dataLabel || item.dispLabel" min-width="100"/> |
|
|
|
</el-table> |
|
|
|
<el-table :data="tableData" border v-if="mode=='20'" |
|
|
|
:height="window.pageHeight < 600 ? 405 : (window.pageHeight - 195)" |
|
|
|
highlight-current-row size="small" > |
|
|
|
<el-table-column type="index" label="序号" width="40" align="center"/> |
|
|
|
<el-table-column prop="importState" label="导入状态" min-width="80"/> |
|
|
|
<el-table-column prop="importDes" label="导入描述" min-width="150"/> |
|
|
|
<el-table-column prop="patientNo" align="center" label="档案号" min-width="80"/> |
|
|
|
<el-table-column prop="medicalTimes" align="center" label="体检次数" min-width="80"/> |
|
|
|
<el-table-column prop="patientName" align="center" label="姓名" min-width="80"/> |
|
|
|
<el-table-column prop="sexId" align="center" label="性别" min-width="40"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ dddw(dict.sex, "id", scope.row.sexId, "displayName") }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="birthDate" align="center" label="出生日期" min-width="80"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ scope.row.birthDate ? moment(new Date(scope.row.birthDate)).format('yyyy-MM-DD'):'' }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="age" align="center" label="年龄" min-width="40"/> |
|
|
|
<el-table-column prop="customerOrgParentName" align="center" label="单位" min-width="150"/> |
|
|
|
<el-table-column prop="customerOrgName" align="center" label="部门" min-width="120"/> |
|
|
|
<el-table-column prop="telephone" align="center" label="电话" min-width="100"/> |
|
|
|
<el-table-column prop="mobileTelephone" align="center" label="手机" min-width="100"/> |
|
|
|
<el-table-column prop="creatorName" align="center" label="登记人员" min-width="80"/> |
|
|
|
<el-table-column prop="creationTime" align="center" label="登记日期" min-width="80"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ scope.row.birthDate ? moment(new Date(scope.row.creationTime)).format('yyyy-MM-DD'):'' }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
|
|
|
|
@ -304,14 +335,21 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="birthDate" align="center" label="出生日期" min-width="80"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ moment(new Date(scope.row.birthDate)).format('yyyy-MM-DD') }}</div> |
|
|
|
<div>{{ scope.row.birthDate ? moment(new Date(scope.row.birthDate)).format('yyyy-MM-DD'):'' }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="age" align="center" label="年龄" min-width="40"/> |
|
|
|
<el-table-column prop="customerOrgParentName" align="center" label="单位" min-width="150"/> |
|
|
|
<el-table-column prop="customerOrgName" align="center" label="部门" min-width="120"/> |
|
|
|
<el-table-column prop="telephone" align="center" label="电话" min-width="100"/> |
|
|
|
<el-table-column prop="mobileTelephone" align="center" label="手机" min-width="100"/> |
|
|
|
<el-table-column prop="mobileTelephone" align="center" label="手机" min-width="100"/> |
|
|
|
<el-table-column prop="creatorName" align="center" label="登记人员" min-width="80"/> |
|
|
|
<el-table-column prop="creationTime" align="center" label="登记日期" min-width="80"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ scope.row.birthDate ? moment(new Date(scope.row.creationTime)).format('yyyy-MM-DD'):'' }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<!-- |
|
|
|
"patientRegisterNo": "T4724", |
|
|
|
"patientId": "3a0eeeeb-55b6-86d7-a578-a9c9e332e7ed", |
|
|
|
@ -1397,7 +1435,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//确定从档案中导入数据 |
|
|
|
btnImportFromDataBase(){ |
|
|
|
async btnImportFromDataBase(){ |
|
|
|
let customerOrgIds = [] |
|
|
|
let customerOrgId = "" |
|
|
|
if(this.newCustomerOrgFlag){ |
|
|
|
@ -1416,7 +1454,51 @@ export default { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
let body = { |
|
|
|
customerOrgRegisterId:this.customerOrgRegister.id, |
|
|
|
customerOrgGroupId:this.curGroup.id, |
|
|
|
completeFlag:this.dataImportOpts.completeFlag, |
|
|
|
payTypeFlag:this.payTypeFlag, |
|
|
|
organizationUnitId:this.peisid, |
|
|
|
} |
|
|
|
// { |
|
|
|
// "patientRegisterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", |
|
|
|
// "customerOrgId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", |
|
|
|
// "customerOrgRegisterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", |
|
|
|
// "customerOrgGroupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", |
|
|
|
// "completeFlag": "string", |
|
|
|
// "payTypeFlag": "string", |
|
|
|
// "organizationUnitId": "3fa85f64-5717-4562-b3fc-2c963f66afa6" |
|
|
|
// } |
|
|
|
this.elProgress.display = true |
|
|
|
this.elProgress.percentage = 0 |
|
|
|
for(let i=0;i<this.prList.length;i++){ |
|
|
|
this.elProgress.percentage = Math.floor(((i + 1) * 100) / this.prList.length); |
|
|
|
if(!this.prList[i].choosed) continue |
|
|
|
|
|
|
|
body.patientRegisterId = this.prList[i].id |
|
|
|
body.customerOrgId = this.newCustomerOrgFlag ? customerOrgId:this.prList[i].customerOrgId |
|
|
|
|
|
|
|
try { |
|
|
|
let res = await postapi('/api/app/patientregister/createpatientregisterhistory',body) |
|
|
|
if(res.code != -1){ |
|
|
|
if(res.data.code != -1){ |
|
|
|
this.tableData.push(Object.assign({importState:'导入成功'},this.prList[i])) |
|
|
|
}else{ |
|
|
|
this.tableData.push(Object.assign({importState:'导入失败',importDes:res.data.msg},this.prList[i])) |
|
|
|
} |
|
|
|
}else{ |
|
|
|
this.tableData.push(Object.assign({importState:'导入失败',importDes:res.message},this.prList[i])) |
|
|
|
} |
|
|
|
} catch (error) { |
|
|
|
this.tableData.push(Object.assign({importState:'导入失败',importDes:res.message},this.prList[i])) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.elProgress.display = false |
|
|
|
this.seq = -1 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|