|
|
@ -61,7 +61,7 @@ |
|
|
<!-- 身份证、档案号、条码号、电话/手机、工卡号 加连接串防科学计数--> |
|
|
<!-- 身份证、档案号、条码号、电话/手机、工卡号 加连接串防科学计数--> |
|
|
<div v-else> |
|
|
<div v-else> |
|
|
{{ (tecCols.includes(dragCol[index]?.prop) ? '\u200C' : '') + |
|
|
{{ (tecCols.includes(dragCol[index]?.prop) ? '\u200C' : '') + |
|
|
String(scope.row[dragCol[index]?.prop] ||'') }} |
|
|
|
|
|
|
|
|
String(scope.row[dragCol[index]?.prop] || '') }} |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
@ -92,49 +92,67 @@ |
|
|
</div> |
|
|
</div> |
|
|
<!--按钮--> |
|
|
<!--按钮--> |
|
|
<div style="margin-left: 10px; "> |
|
|
<div style="margin-left: 10px; "> |
|
|
<div class="listBtn"> |
|
|
|
|
|
|
|
|
<div class="listBtn" v-show="checkPagePriv(pagePriv.privs, '预览报告')"> |
|
|
<el-button type="primary" class="commonbutton" @click="btnReport(true)">预览报告</el-button> |
|
|
<el-button type="primary" class="commonbutton" @click="btnReport(true)">预览报告</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div class="listBtn"> |
|
|
|
|
|
|
|
|
<div class="listBtn" v-show="checkPagePriv(pagePriv.privs, '打印报告')"> |
|
|
<el-button type="primary" class="commonbutton" @click="btnReport(false)">打印报告</el-button> |
|
|
<el-button type="primary" class="commonbutton" @click="btnReport(false)">打印报告</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div class="listBtn"> |
|
|
|
|
|
|
|
|
<div class="listBtn" v-show="checkPagePriv(pagePriv.privs, '领取报告')"> |
|
|
<el-button type="primary" class="commonbutton" @click="btnGetReport('Y')">领取报告</el-button> |
|
|
<el-button type="primary" class="commonbutton" @click="btnGetReport('Y')">领取报告</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div class="listBtn"> |
|
|
|
|
|
<el-button type="primary" class="commonbutton" @click="btnUpReport">上传Web</el-button> |
|
|
|
|
|
|
|
|
<div class="listBtn" v-show="checkPagePriv(pagePriv.privs, '上传报告')"> |
|
|
|
|
|
<el-tooltip content="完成总检的人员方可上传体检报告" placement="top"> |
|
|
|
|
|
<el-button type="primary" class="commonbutton" @click="btnUpReport">上传报告</el-button> |
|
|
|
|
|
</el-tooltip> |
|
|
</div> |
|
|
</div> |
|
|
<div class="listBtn"> |
|
|
|
|
|
|
|
|
<div class="listBtn" v-show="checkPagePriv(pagePriv.privs, '单位预约备单')"> |
|
|
|
|
|
<el-tooltip content="未完成总检的单位人员方可上传至单位预约备单" placement="top"> |
|
|
|
|
|
<el-button type="primary" class="commonbutton" @click="btnUpBooking">单位预约备单</el-button> |
|
|
|
|
|
</el-tooltip> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="listBtn" v-show="checkPagePriv(pagePriv.privs, '历次结果')"> |
|
|
<el-button type="primary" class="commonbutton" @click="btnCheckHistory">历次结果</el-button> |
|
|
<el-button type="primary" class="commonbutton" @click="btnCheckHistory">历次结果</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div class="listBtn"> |
|
|
|
|
|
|
|
|
<div class="listBtn" |
|
|
|
|
|
v-show="checkPagePriv(pagePriv.privs, '导入检查结果') || checkPagePriv(pagePriv.privs, '导入检验结果') || checkPagePriv(pagePriv.privs, '导入迪安结果')"> |
|
|
<el-dropdown @command="btnImportResult"> |
|
|
<el-dropdown @command="btnImportResult"> |
|
|
<el-button type="primary" class="commonbutton"> |
|
|
<el-button type="primary" class="commonbutton"> |
|
|
导入结果<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
导入结果<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
</el-button> |
|
|
</el-button> |
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
<el-dropdown-item command="pacs">导入检查结果</el-dropdown-item> |
|
|
|
|
|
<el-dropdown-item command="lis">导入检验结果</el-dropdown-item> |
|
|
|
|
|
<el-dropdown-item command="diAn">导入迪安结果</el-dropdown-item> |
|
|
|
|
|
|
|
|
<el-dropdown-item command="pacs" |
|
|
|
|
|
v-show="checkPagePriv(pagePriv.privs, '导入检查结果')">导入检查结果</el-dropdown-item> |
|
|
|
|
|
<el-dropdown-item command="lis" |
|
|
|
|
|
v-show="checkPagePriv(pagePriv.privs, '导入检验结果')">导入检验结果</el-dropdown-item> |
|
|
|
|
|
<el-dropdown-item command="diAn" |
|
|
|
|
|
v-show="checkPagePriv(pagePriv.privs, '导入迪安结果')">导入迪安结果</el-dropdown-item> |
|
|
</el-dropdown-menu> |
|
|
</el-dropdown-menu> |
|
|
</el-dropdown> |
|
|
</el-dropdown> |
|
|
</div> |
|
|
</div> |
|
|
<div class="listBtn"> |
|
|
|
|
|
|
|
|
<div class="listBtn" |
|
|
|
|
|
v-show="checkPagePriv(pagePriv.privs, '人员信息导出') || checkPagePriv(pagePriv.privs, '导出Zip') || checkPagePriv(pagePriv.privs, '导出Jpg') || checkPagePriv(pagePriv.privs, '导出 pdf 报告') || checkPagePriv(pagePriv.privs, '推送检后信息')"> |
|
|
<el-dropdown @command="btnExportComm"> |
|
|
<el-dropdown @command="btnExportComm"> |
|
|
<el-button type="primary" class="commonbutton"> |
|
|
<el-button type="primary" class="commonbutton"> |
|
|
导出/推送<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
导出/推送<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
</el-button> |
|
|
</el-button> |
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
<el-dropdown-item command="exp" @click="btnExport('report_tjbg')">人员信息导出</el-dropdown-item> |
|
|
|
|
|
<el-dropdown-item command="zip" @click="exportZip">导出Zip</el-dropdown-item> |
|
|
|
|
|
<el-dropdown-item command="jpg" @click="exportJpg">导出Jpg</el-dropdown-item> |
|
|
|
|
|
<el-dropdown-item command="pdf" @click="btnReportExport(false)">导出 pdf 报告</el-dropdown-item> |
|
|
|
|
|
<el-dropdown-item command="tsjh" @click="upTsjh">推送检后信息</el-dropdown-item> |
|
|
|
|
|
|
|
|
<el-dropdown-item command="exp" @click="btnExport('report_tjbg')" |
|
|
|
|
|
v-show="checkPagePriv(pagePriv.privs, '人员信息导出')">人员信息导出</el-dropdown-item> |
|
|
|
|
|
<el-dropdown-item command="zip" @click="exportZip" |
|
|
|
|
|
v-show="checkPagePriv(pagePriv.privs, '导出Zip')">导出Zip</el-dropdown-item> |
|
|
|
|
|
<el-dropdown-item command="jpg" @click="exportJpg" |
|
|
|
|
|
v-show="checkPagePriv(pagePriv.privs, '导出Jpg')">导出Jpg</el-dropdown-item> |
|
|
|
|
|
<el-dropdown-item command="pdf" @click="btnReportExport(false)" |
|
|
|
|
|
v-show="checkPagePriv(pagePriv.privs, '导出 pdf 报告')">导出 pdf 报告</el-dropdown-item> |
|
|
|
|
|
<el-dropdown-item command="tsjh" @click="upTsjh" |
|
|
|
|
|
v-show="checkPagePriv(pagePriv.privs, '推送检后信息')">推送检后信息</el-dropdown-item> |
|
|
</el-dropdown-menu> |
|
|
</el-dropdown-menu> |
|
|
</el-dropdown> |
|
|
</el-dropdown> |
|
|
</div> |
|
|
</div> |
|
|
<div class="listBtn"> |
|
|
<div class="listBtn"> |
|
|
<el-button type="primary" class="commonbutton" @click="previewCusGrant">知情同意书</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" class="commonbutton" v-show="checkPagePriv(pagePriv.privs, '知情同意书')" |
|
|
|
|
|
@click="previewCusGrant">知情同意书</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div class="listBtn" v-if="false"> |
|
|
<div class="listBtn" v-if="false"> |
|
|
<el-button type="primary" class="commonbutton" @click="btnTest">test</el-button> |
|
|
<el-button type="primary" class="commonbutton" @click="btnTest">test</el-button> |
|
|
@ -211,7 +229,7 @@ import Sortable from "sortablejs"; |
|
|
import FileSaver from 'file-saver'; |
|
|
import FileSaver from 'file-saver'; |
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
import { |
|
|
import { |
|
|
tcdate, |
|
|
|
|
|
|
|
|
getPagePriv, checkPagePriv, tcdate, |
|
|
dddw, deepCopy, |
|
|
dddw, deepCopy, |
|
|
objCopy, |
|
|
objCopy, |
|
|
arrayReduce, |
|
|
arrayReduce, |
|
|
@ -239,10 +257,15 @@ export default { |
|
|
RegisterCheckStatus, |
|
|
RegisterCheckStatus, |
|
|
PatientRegisterAsbItem, UTable, UTableColumn, |
|
|
PatientRegisterAsbItem, UTable, UTableColumn, |
|
|
SumAsbItemStatus, |
|
|
SumAsbItemStatus, |
|
|
ElProgressOCX, CheckDetails, SumItemsType, SumItems, OccDisease, ImageTextReport,PreviewCusGrant3 |
|
|
|
|
|
|
|
|
ElProgressOCX, CheckDetails, SumItemsType, SumItems, OccDisease, ImageTextReport, PreviewCusGrant3 |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
pagePriv: { |
|
|
|
|
|
routeUrlorPageName: 'PatientRegisterEdit', //当前页面归属路由或归属页面权限名称 |
|
|
|
|
|
privs: [] // 页面权限 |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
patient_register_query_idno: 'Y', //身份证排他 |
|
|
patient_register_query_idno: 'Y', //身份证排他 |
|
|
patient_register_query_name: 'N', //姓名排他 |
|
|
patient_register_query_name: 'N', //姓名排他 |
|
|
dialogVisible: false, |
|
|
dialogVisible: false, |
|
|
@ -391,6 +414,9 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
created() { |
|
|
created() { |
|
|
|
|
|
//获取用户当前页面的权限 |
|
|
|
|
|
let userPriv = window.sessionStorage.getItem('userPriv') |
|
|
|
|
|
if (userPriv) this.pagePriv.privs = deepCopy(getPagePriv(this.pagePriv.routeUrlorPageName)) |
|
|
|
|
|
|
|
|
this.loadOptsInit = Object.assign({}, this.loadOpts) |
|
|
this.loadOptsInit = Object.assign({}, this.loadOpts) |
|
|
this.tableDatas = [] |
|
|
this.tableDatas = [] |
|
|
@ -421,10 +447,10 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
...mapState(["window", "dict", "elProgress","dialogWin"]), |
|
|
|
|
|
|
|
|
...mapState(["window", "dict", "elProgress", "dialogWin"]), |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
dddw, setPrStatusColor, |
|
|
|
|
|
|
|
|
dddw, setPrStatusColor, checkPagePriv, |
|
|
|
|
|
|
|
|
// 强制将单元格值转换为字符串 |
|
|
// 强制将单元格值转换为字符串 |
|
|
// forceStringFormatter(row, column, cellValue) { |
|
|
// forceStringFormatter(row, column, cellValue) { |
|
|
@ -660,24 +686,27 @@ export default { |
|
|
let items = [] |
|
|
let items = [] |
|
|
|
|
|
|
|
|
//取消领取报告 |
|
|
//取消领取报告 |
|
|
items.push({ |
|
|
|
|
|
label: '取消领取报告', |
|
|
|
|
|
onClick: () => { |
|
|
|
|
|
this.canselGetReport(); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
if (checkPagePriv(pagePriv.privs, '取消领取报告')) { |
|
|
|
|
|
items.push({ |
|
|
|
|
|
label: '取消领取报告', |
|
|
|
|
|
onClick: () => { |
|
|
|
|
|
this.canselGetReport(); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 右击菜单显示 |
|
|
// 右击菜单显示 |
|
|
this.$contextmenu({ |
|
|
|
|
|
items, |
|
|
|
|
|
event, |
|
|
|
|
|
x: event.clientX, |
|
|
|
|
|
y: event.clientY, |
|
|
|
|
|
customClass: "custom-class", |
|
|
|
|
|
zIndex: 3, |
|
|
|
|
|
minWidth: 80, |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (items.length > 0) { |
|
|
|
|
|
this.$contextmenu({ |
|
|
|
|
|
items, |
|
|
|
|
|
event, |
|
|
|
|
|
x: event.clientX, |
|
|
|
|
|
y: event.clientY, |
|
|
|
|
|
customClass: "custom-class", |
|
|
|
|
|
zIndex: 3, |
|
|
|
|
|
minWidth: 80, |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return false; |
|
|
return false; |
|
|
}, |
|
|
}, |
|
|
@ -1342,14 +1371,44 @@ export default { |
|
|
e.isUpload = "Y"; |
|
|
e.isUpload = "Y"; |
|
|
// console.log('btnUpReport success', JSON.parse(res)) |
|
|
// console.log('btnUpReport success', JSON.parse(res)) |
|
|
} |
|
|
} |
|
|
} else { |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
console.error("error", error); |
|
|
|
|
|
this.$message.warning({ showClose: true, message: error }); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
this.elProgress.display = false; |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.warning({ showClose: true, message: "请勾选择记录!" }); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//单位预约备单 |
|
|
|
|
|
async btnUpBooking() { |
|
|
|
|
|
if ( |
|
|
|
|
|
this.checkedRows && |
|
|
|
|
|
this.checkedRows.length > 0 |
|
|
|
|
|
) { |
|
|
|
|
|
this.elProgress.display = true; |
|
|
|
|
|
this.elProgress.percentage = 0; |
|
|
|
|
|
|
|
|
|
|
|
for (let i = 0; i < this.checkedRows.length; i++) { |
|
|
|
|
|
let e = this.checkedRows[i]; |
|
|
|
|
|
this.elProgress.percentage = Math.floor( |
|
|
|
|
|
((i + 1) * 100) / this.checkedRows.length |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// 调上传接口 |
|
|
|
|
|
try { |
|
|
|
|
|
if (e.completeFlag != "3" && e.customerOrgName != '个人体检') { |
|
|
let patientRegisterId = e.patientRegisterId; |
|
|
let patientRegisterId = e.patientRegisterId; |
|
|
let res2 = await postapi( |
|
|
let res2 = await postapi( |
|
|
"/api/app/TransToWebPeis/TransPatientRegisterByPatientRegisterId", |
|
|
"/api/app/TransToWebPeis/TransPatientRegisterByPatientRegisterId", |
|
|
{ patientRegisterId } |
|
|
{ patientRegisterId } |
|
|
); |
|
|
); |
|
|
if (res2.code == -1) { |
|
|
if (res2.code == -1) { |
|
|
console.log("TransToWebPeis err", res2); |
|
|
|
|
|
|
|
|
console.error("TransToWebPeis err", res2); |
|
|
} else { |
|
|
} else { |
|
|
// 上传成功 ,更新备单状态 |
|
|
// 上传成功 ,更新备单状态 |
|
|
e.isUploadAppoint = "Y"; |
|
|
e.isUploadAppoint = "Y"; |
|
|
|