|
|
|
@ -22,7 +22,8 @@ |
|
|
|
</div> |
|
|
|
<div v-else-if="dropCol[index].prop == 'completeFlag'" |
|
|
|
:style="`color: ${setColor(scope.row.isAudit, scope.row.completeFlag)}`"> |
|
|
|
{{ scope.row.isAudit == 'Y' ? "已审核" : dddw(dict.completeFlag, "id", scope.row.completeFlag, "displayName") }} |
|
|
|
{{ scope.row.isAudit == 'Y' ? "已审核" : dddw(dict.completeFlag, "id", scope.row.completeFlag, |
|
|
|
"displayName") }} |
|
|
|
</div> |
|
|
|
<div v-else-if="dropCol[index].prop == 'guidePrintTimes'"> |
|
|
|
<i class="el-icon-printer" v-if="scope.row.guidePrintTimes > 0" style="font-size: 20px; color: green" /> |
|
|
|
@ -366,7 +367,7 @@ export default { |
|
|
|
// 扩展定义表格行样式 |
|
|
|
handleRowClassName({ row, rowIndex }) { |
|
|
|
// highLightBg 为 'selected'的高亮 |
|
|
|
//console.log(rowIndex, row) |
|
|
|
//// console.log(rowIndex, row) |
|
|
|
//return row.highLightBg == 'selected' ? 'high-light-bg' : ''; |
|
|
|
if (row.choosed) { |
|
|
|
return "current-row"; |
|
|
|
@ -451,7 +452,7 @@ export default { |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
toOutShell.ReportTable = res.data; |
|
|
|
console.log( |
|
|
|
// console.log( |
|
|
|
"JSON.stringify(toOutShell)", |
|
|
|
JSON.stringify(toOutShell) |
|
|
|
); |
|
|
|
@ -459,13 +460,13 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
console.log('this.$peisAPI.printPre', res) |
|
|
|
// console.log('this.$peisAPI.printPre', res) |
|
|
|
if (JSON.parse(res).code < 0) { |
|
|
|
this.$message.warning(JSON.parse(res).message); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
console.log('打印指引单', err) |
|
|
|
// console.log('打印指引单', err) |
|
|
|
this.$message.warning({ showClose: true, message: err }); |
|
|
|
}); |
|
|
|
*/ |
|
|
|
@ -477,7 +478,7 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
console.log('打印指引单', err) |
|
|
|
// console.log('打印指引单', err) |
|
|
|
this.$message.warning({ showClose: true, message: `${err}` }); |
|
|
|
}); |
|
|
|
|
|
|
|
@ -493,7 +494,7 @@ export default { |
|
|
|
if (resPrintData.code == -1) continue |
|
|
|
toOutShell.ReportTable = resPrintData.data |
|
|
|
resPeisAPI = await this.$peisAPI.print(JSON.stringify(toOutShell)); |
|
|
|
console.log('壳返回结果', resPeisAPI) |
|
|
|
// console.log('壳返回结果', resPeisAPI) |
|
|
|
if (JSON.parse(resPeisAPI).code < 0) continue |
|
|
|
resPrintTimes = await postapi("/api/app/patientregister/updatepatientregisterguideprinttimesmany", [this.multipleSelection[i].id]); |
|
|
|
if (resPrintTimes.code == -1) continue |
|
|
|
@ -522,7 +523,7 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
} catch (error) { |
|
|
|
console.log('打印指引单', error) |
|
|
|
// console.log('打印指引单', error) |
|
|
|
this.$message.warning({ showClose: true, message: `${error}` }); |
|
|
|
} |
|
|
|
|
|
|
|
@ -537,7 +538,7 @@ export default { |
|
|
|
|
|
|
|
handleSelectionChange(rows) { |
|
|
|
//this.multipleSelection = rows; |
|
|
|
//console.log('this.multipleSelection',this.multipleSelection) |
|
|
|
//// console.log('this.multipleSelection',this.multipleSelection) |
|
|
|
|
|
|
|
rows.forEach((item) => { |
|
|
|
item.highLightBg = "selected"; |
|
|
|
@ -591,20 +592,20 @@ export default { |
|
|
|
} else { |
|
|
|
// 未按住了ctrl 、shift 键 |
|
|
|
//清除所有选择 |
|
|
|
console.log("清除所有选择"); |
|
|
|
// console.log("清除所有选择"); |
|
|
|
this.tableData.forEach((e, index) => { |
|
|
|
e.choosed = false; |
|
|
|
e.index = index; |
|
|
|
}); |
|
|
|
console.log(this.tableData, row.index); |
|
|
|
console.log(this.tableData[row.index].choosed); |
|
|
|
// console.log(this.tableData, row.index); |
|
|
|
// console.log(this.tableData[row.index].choosed); |
|
|
|
|
|
|
|
this.tableData[row.index].choosed = true; |
|
|
|
this.startPoint = row.index; |
|
|
|
} |
|
|
|
|
|
|
|
//选中了多个点编辑时,排序最前的作为当前选中的 |
|
|
|
console.log('row.index <= this.startPoint', row.index, this.startPoint) |
|
|
|
// console.log('row.index <= this.startPoint', row.index, this.startPoint) |
|
|
|
let lfind = -1 |
|
|
|
for (let i = 0; i < this.tableData.length; i++) { |
|
|
|
if (this.tableData[i].choosed) { |
|
|
|
@ -653,7 +654,7 @@ export default { |
|
|
|
|
|
|
|
//刷新或添加列表数据 |
|
|
|
refreshRegister(patientRegister) { |
|
|
|
console.log('编辑/新增的 form :', patientRegister) |
|
|
|
// console.log('编辑/新增的 form :', patientRegister) |
|
|
|
}, |
|
|
|
|
|
|
|
//批量正式登记 |
|
|
|
@ -678,7 +679,7 @@ export default { |
|
|
|
postapi('/api/app/patientregister/updatepatientregistercompleteflagormedicalstartdate', body) |
|
|
|
.then(res => { |
|
|
|
if (res.code != -1) { |
|
|
|
console.log('操作成功!') |
|
|
|
// console.log('操作成功!') |
|
|
|
patientRegisterIds.forEach(e => { |
|
|
|
let lfind = arrayExistObj(this.tableData, 'id', e) |
|
|
|
if (lfind > -1) this.tableData[lfind].completeFlag = completeFlag |
|
|
|
@ -697,7 +698,7 @@ export default { |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要操作的记录" }); |
|
|
|
return; |
|
|
|
} |
|
|
|
//console.log(this.patientRegister.patientRegisterRd,this.tableData) |
|
|
|
//// console.log(this.patientRegister.patientRegisterRd,this.tableData) |
|
|
|
|
|
|
|
// 触发数据刷新 |
|
|
|
this.dataTransOpts.refresh.patient_register.S++ //触发人员信息刷新(会同时刷新组合项目) |
|
|
|
@ -717,7 +718,7 @@ export default { |
|
|
|
if (!id) return |
|
|
|
this.dataTransOpts.tableS.patient_register.id = id |
|
|
|
|
|
|
|
let res = await postapi(`/api/app/patientregister/getinfoorpatient?PatientRegisterId=${this.dataTransOpts.tableS.patient_register.id}`) |
|
|
|
let res = await postapi('/api/app/patientregister/getinfoorpatient', { patientRegisterId: this.dataTransOpts.tableS.patient_register.id }) |
|
|
|
if (res.code != 1) return |
|
|
|
let currentRow = res.data |
|
|
|
|
|
|
|
@ -778,14 +779,14 @@ export default { |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
//console.log('{patientRegisterIds}',{patientRegisterIds}) |
|
|
|
return postapi(`/api/app/patient-register/delete-many`, { |
|
|
|
//// console.log('{patientRegisterIds}',{patientRegisterIds}) |
|
|
|
return postapi(`/ api / app / patient - register / delete -many`, { |
|
|
|
patientRegisterIds, |
|
|
|
}); |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
console.log("操作成功"); |
|
|
|
// console.log("操作成功"); |
|
|
|
this.dataTransOpts.tableS.patient_register.id = '' |
|
|
|
setTimeout(() => { |
|
|
|
this.dataTransOpts.refresh.register_check_asbitem.M++ |
|
|
|
@ -827,14 +828,14 @@ export default { |
|
|
|
async getPrList() { |
|
|
|
|
|
|
|
if (this.loadOpts.skipCount != 0 && this.loadOpts.skipCount * this.loadOpts.maxResultCount >= this.loadOpts.totalCount) return |
|
|
|
console.log('getPrList', this.loadOpts) |
|
|
|
// console.log('getPrList', this.loadOpts) |
|
|
|
|
|
|
|
let body = { |
|
|
|
skipCount: this.loadOpts.skipCount, |
|
|
|
maxResultCount: this.loadOpts.maxResultCount |
|
|
|
}; |
|
|
|
|
|
|
|
console.log(`this.patientRegister.query`, this.patientRegister.query); |
|
|
|
// console.log(`this.patientRegister.query`, this.patientRegister.query); |
|
|
|
if (this.patientRegister.query.customerOrgFlag) { |
|
|
|
// if (this.patientRegister.query.CustomerOrgParentId) { |
|
|
|
// body.customerOrgId = this.patientRegister.query.CustomerOrgParentId; |
|
|
|
@ -891,7 +892,7 @@ export default { |
|
|
|
patientRegisterNo: this.patientRegister.query.patientRegisterNo, |
|
|
|
}; |
|
|
|
|
|
|
|
console.log("/api/app/patientregister/getlistinfilter", body); |
|
|
|
// console.log("/api/app/patientregister/getlistinfilter", body); |
|
|
|
|
|
|
|
postapi("/api/app/patientregister/getlistinfilter", body) |
|
|
|
.then(res => { |
|
|
|
@ -924,13 +925,13 @@ export default { |
|
|
|
//滚动加载数据 |
|
|
|
scrollFull() { |
|
|
|
this.dom = this.$refs['info'].bodyWrapper |
|
|
|
console.log('this.dom', this.dom) |
|
|
|
// console.log('this.dom', this.dom) |
|
|
|
|
|
|
|
this.dom.addEventListener('scroll', async () => { |
|
|
|
// console.log('scrollTop',this.dom.scrollTop,'clientHeight',this.dom.clientHeight,'scrollHeight',this.dom.scrollHeight); |
|
|
|
// // console.log('scrollTop',this.dom.scrollTop,'clientHeight',this.dom.clientHeight,'scrollHeight',this.dom.scrollHeight); |
|
|
|
if (this.dom.scrollTop + this.dom.clientHeight + 20 > this.dom.scrollHeight && !this.lazyLoading) { |
|
|
|
// 获取到的不是全部数据 当滚动到底部 |
|
|
|
console.log('scrollTop', this.dom.scrollTop, 'clientHeight', this.dom.clientHeight, 'scrollHeight', this.dom.scrollHeight); |
|
|
|
// console.log('scrollTop', this.dom.scrollTop, 'clientHeight', this.dom.clientHeight, 'scrollHeight', this.dom.scrollHeight); |
|
|
|
if ((Number(this.loadOpts.skipCount) + 1) * Number(this.loadOpts.maxResultCount) >= Number(this.loadOpts.totalCount)) { |
|
|
|
this.lazyLoading = false |
|
|
|
} else { |
|
|
|
@ -946,10 +947,10 @@ export default { |
|
|
|
onCellRightClick(row, column) { |
|
|
|
this.rClickRow = { ...row }; //右击的行记录 |
|
|
|
this.rClickColumn = { ...column }; //右击的列(预留) |
|
|
|
console.log(row, column.property); |
|
|
|
// console.log(row, column.property); |
|
|
|
}, |
|
|
|
onContextmenu(event) { |
|
|
|
//console.log('onContextmenu',event); |
|
|
|
//// console.log('onContextmenu',event); |
|
|
|
if (!this.rClickRow) return false; |
|
|
|
let row = { ...this.rClickRow }; |
|
|
|
let items = [] //菜单项 |
|
|
|
@ -1061,13 +1062,8 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
res = await postapi( |
|
|
|
`/api/app/lisrequest/setlisrequest?PatientRegisterId=${prId}` |
|
|
|
); |
|
|
|
console.log( |
|
|
|
`/api/app/lisrequest/setlisrequest?PatientRegisterId=${prId}`, |
|
|
|
res |
|
|
|
); |
|
|
|
res = await postapi(`/ api / app / lisrequest / setlisrequest ? PatientRegisterId = ${ prId }`); |
|
|
|
// console.log(`/ api / app / lisrequest / setlisrequest ? PatientRegisterId = ${ prId }`,res); |
|
|
|
} catch (error) { |
|
|
|
return; |
|
|
|
} |
|
|
|
@ -1121,16 +1117,16 @@ export default { |
|
|
|
BusinessCode: prId |
|
|
|
}; |
|
|
|
|
|
|
|
console.log('this.$peisAPI.print', toOutShell) |
|
|
|
// console.log('this.$peisAPI.print', toOutShell) |
|
|
|
if (isPreview) { |
|
|
|
/* |
|
|
|
postapi( |
|
|
|
`/api/app/printreport/getlisrequestreport?PatientRegisterId=${prId}` |
|
|
|
`/ api / app / printreport / getlisrequestreport ? PatientRegisterId = ${ prId }` |
|
|
|
) |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
toOutShell.ReportTable = { lisRequest: res.data }; |
|
|
|
console.log( |
|
|
|
// console.log( |
|
|
|
"JSON.stringify(toOutShell)", |
|
|
|
JSON.stringify(toOutShell) |
|
|
|
); |
|
|
|
@ -1143,25 +1139,25 @@ export default { |
|
|
|
*/ |
|
|
|
this.$peisAPI.printPre(JSON.stringify(toOutShell)) |
|
|
|
.then(res => { |
|
|
|
console.log('this.$peisAPI.printPre', res) |
|
|
|
// console.log('this.$peisAPI.printPre', res) |
|
|
|
if (JSON.parse(res).code < 0) { |
|
|
|
this.$message.warning({ showClose: true, message: JSON.parse(res).message }); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
console.log('打印检验条码错误', err) |
|
|
|
this.$message.warning({ showClose: true, message: `${err}` }); |
|
|
|
// console.log('打印检验条码错误', err) |
|
|
|
this.$message.warning({ showClose: true, message: `${ err }` }); |
|
|
|
}); |
|
|
|
|
|
|
|
} else { |
|
|
|
/* |
|
|
|
postapi( |
|
|
|
`/api/app/printreport/getlisrequestreport?PatientRegisterId=${prId}` |
|
|
|
`/ api / app / printreport / getlisrequestreport ? PatientRegisterId = ${ prId }` |
|
|
|
) |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
toOutShell.ReportTable = { lisRequest: res.data }; |
|
|
|
console.log( |
|
|
|
// console.log( |
|
|
|
"JSON.stringify(toOutShell)", |
|
|
|
JSON.stringify(toOutShell) |
|
|
|
); |
|
|
|
@ -1169,7 +1165,7 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
//console.log("res", res); |
|
|
|
//// console.log("res", res); |
|
|
|
if (JSON.parse(res).code >= 0) { |
|
|
|
//更新打印状态 /api/app/lisrequest/updatelisrequestisprint |
|
|
|
// { |
|
|
|
@ -1200,12 +1196,12 @@ export default { |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
if (res && res.code < 0) { |
|
|
|
this.$message.error({ showClose: true, message: `${res.message}` }); |
|
|
|
this.$message.error({ showClose: true, message: `${ res.message }` }); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
console.log('打印检验条码错误', err) |
|
|
|
this.$message.error({ showClose: true, message: `${err}` }); |
|
|
|
// console.log('打印检验条码错误', err) |
|
|
|
this.$message.error({ showClose: true, message: `${ err }` }); |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -1234,12 +1230,12 @@ export default { |
|
|
|
if (isPreview) { |
|
|
|
/* |
|
|
|
postapi( |
|
|
|
`/api/app/printreport/getpacsnoreport?PatientRegisterId=${prId}` |
|
|
|
`/ api / app / printreport / getpacsnoreport ? PatientRegisterId = ${ prId }` |
|
|
|
) |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
toOutShell.ReportTable = { lisRequest: res.data }; |
|
|
|
console.log( |
|
|
|
// console.log( |
|
|
|
"JSON.stringify(toOutShell)", |
|
|
|
JSON.stringify(toOutShell) |
|
|
|
); |
|
|
|
@ -1257,18 +1253,18 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
console.log('打印pacs条码错误', err) |
|
|
|
this.$message.warning({ showClose: true, message: `${err}` }); |
|
|
|
// console.log('打印pacs条码错误', err) |
|
|
|
this.$message.warning({ showClose: true, message: `${ err }` }); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
/* |
|
|
|
postapi( |
|
|
|
`/api/app/printreport/getpacsnoreport?PatientRegisterId=${prId}` |
|
|
|
`/ api / app / printreport / getpacsnoreport ? PatientRegisterId = ${ prId }` |
|
|
|
) |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
toOutShell.ReportTable = { lisRequest: res.data }; |
|
|
|
console.log( |
|
|
|
// console.log( |
|
|
|
"JSON.stringify(toOutShell)", |
|
|
|
JSON.stringify(toOutShell) |
|
|
|
); |
|
|
|
@ -1306,12 +1302,12 @@ export default { |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
if (res && res.code < 0) { |
|
|
|
this.$message.error({ showClose: true, message: `${res.message}` }); |
|
|
|
this.$message.error({ showClose: true, message: `${ res.message }` }); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
console.log('打印pacs条码错误', err) |
|
|
|
this.$message.error({ showClose: true, message: `${err}` }); |
|
|
|
// console.log('打印pacs条码错误', err) |
|
|
|
this.$message.error({ showClose: true, message: `${ err }` }); |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -1324,7 +1320,7 @@ export default { |
|
|
|
delay: 0, |
|
|
|
// 元素被选中 |
|
|
|
onChoose: function (/**Event*/ evt) { |
|
|
|
//console.log('onChoose',evt,evt.oldIndex) |
|
|
|
//// console.log('onChoose',evt,evt.oldIndex) |
|
|
|
evt.oldIndex; // element index within parent |
|
|
|
}, |
|
|
|
|
|
|
|
@ -1335,7 +1331,7 @@ export default { |
|
|
|
|
|
|
|
// 开始拖拽的时候 |
|
|
|
onStart: function (/**Event*/ evt) { |
|
|
|
//console.log('onStart',evt,evt.oldIndex) |
|
|
|
//// console.log('onStart',evt,evt.oldIndex) |
|
|
|
evt.oldIndex; // element index within parent |
|
|
|
}, |
|
|
|
onEnd: (evt) => { |
|
|
|
@ -1344,7 +1340,7 @@ export default { |
|
|
|
dropCol.splice(evt.oldIndex, 1); |
|
|
|
dropCol.splice(evt.newIndex, 0, oldItem); |
|
|
|
} |
|
|
|
//console.log(this.headerCols, oldItem, dropCol); |
|
|
|
//// console.log(this.headerCols, oldItem, dropCol); |
|
|
|
}, |
|
|
|
}); |
|
|
|
return dropCol; |
|
|
|
@ -1357,7 +1353,7 @@ export default { |
|
|
|
this.$nextTick(() => { |
|
|
|
let refsTable = this.$refs[elId] //.cloneNode(true) true |
|
|
|
let table = document.getElementById(elId) |
|
|
|
console.log('table,refsTable', table, refsTable) |
|
|
|
// console.log('table,refsTable', table, refsTable) |
|
|
|
|
|
|
|
let tableData = table.innerHTML |
|
|
|
let fileName = moment(new Date()).format('yyyyMMDDHHmmss') |
|
|
|
@ -1398,7 +1394,7 @@ export default { |
|
|
|
// immediate: true, // 立即执行 |
|
|
|
// deep: true, // 深度监听复杂类型内变化 |
|
|
|
handler(newVal, oldVal) { |
|
|
|
//console.log('watch:patientRegister.query.customerOrgId:',newVal,oldVal) |
|
|
|
//// console.log('watch:patientRegister.query.customerOrgId:',newVal,oldVal) |
|
|
|
// 单位变化时,清除当前列表信息 |
|
|
|
if (newVal && newVal != oldVal) { |
|
|
|
this.tableData = [] |
|
|
|
@ -1418,7 +1414,7 @@ export default { |
|
|
|
//新增后,触发赋值 |
|
|
|
// "patientRegister.patientRegisterRd.id"(newVal, oldVal) { |
|
|
|
// if (newVal != oldVal) { |
|
|
|
// //console.log('patientRegister.patientRegisterRd.customerOrgId',this.patientRegister.patientRegisterRd.customerOrgId) |
|
|
|
// //// console.log('patientRegister.patientRegisterRd.customerOrgId',this.patientRegister.patientRegisterRd.customerOrgId) |
|
|
|
// objCopy(this.patientRegister.patientRegisterRd, this.form); |
|
|
|
// } |
|
|
|
// }, |
|
|
|
|