|
|
|
@ -2,12 +2,12 @@ |
|
|
|
<div> |
|
|
|
<!--组件主体--> |
|
|
|
<div style="display: flex"> |
|
|
|
<div :style="'width:' + (window.pageWidth - 200 - 145) + 'px;'"> |
|
|
|
<div :style="'width:' + (window.pageWidth - 200 - 35) + 'px;'"> |
|
|
|
<div> |
|
|
|
<el-table @body-scrolling="load" :data="tableData" border highlight-current-row |
|
|
|
:height="window.pageHeight < 600 ? 238 : Math.floor((window.pageHeight - 243) * 2 / 3)" @row-click="rowClick" |
|
|
|
size="small" row-key="id" @selection-change="handleSelectionChange" ref="info" id="info" |
|
|
|
:row-class-name="handleRowClassName"> |
|
|
|
<el-table @body-scrolling="load" :data="tableData" border |
|
|
|
:height="window.pageHeight < 600 ? 210 : Math.floor(((window.pageHeight - 250) * 3) / 5)" |
|
|
|
highlight-current-row @row-click="rowClick" size="small" row-key="id" |
|
|
|
@selection-change="handleSelectionChange" ref="info" id="info" :row-class-name="handleRowClassName"> |
|
|
|
<!-- 取消勾选,改为选中 |
|
|
|
<el-table-column type="selection" width="40" show-overflow-tooltip/> |
|
|
|
:height="window.pageHeight < 600 ? 202 : Math.floor(((window.pageHeight - 302) * 2) / 3)" |
|
|
|
@ -108,47 +108,11 @@ |
|
|
|
<!-- 给合项目 基本信息 --> |
|
|
|
<el-tabs v-model="tabChoosed" style="margin-top: -22px;"> |
|
|
|
<!-- 给合项目 --> |
|
|
|
<el-tab-pane label="预览" name="1"> |
|
|
|
<embed :src="lisLabel" type="application/pdf" width="100%" :style="`margin-top: ${-LocalConfig.lisLabel.MarginTop}px;`" |
|
|
|
:height="(window.pageHeight < 600 ? 119 : Math.floor((window.pageHeight - 243) / 3)) + Number(LocalConfig.lisLabel.MarginTop)" /> |
|
|
|
<el-tab-pane label="检验条码" name="1"> |
|
|
|
<PatientLisRequest /> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
</div> |
|
|
|
<div style="margin-left: 5px;"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '全选')" class="listBtn"> |
|
|
|
<el-button type="success" class="commonbutton" @click="btnChooseAll(1)">全选</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '取消全选')" class="listBtn"> |
|
|
|
<el-button type="success" class="commonbutton" @click="btnChooseAll(0)">取消全选</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '预览设置')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnPrintPre">预览设置</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '打印')" class="listBtn"> |
|
|
|
<el-button type="danger" class="commonbutton" @click="btnPrint">打印</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '发送申请')" class="listBtn"> |
|
|
|
<el-button type="" class="commonbutton" @click="btnSendLis">发送申请</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '撤消申请')" class="listBtn"> |
|
|
|
<el-button type="" class="commonbutton" @click="btnUndoLis">撤消申请</el-button> |
|
|
|
</div> |
|
|
|
<div style="margin-top: 5px;"> |
|
|
|
<el-image style="width: 110px; height: 115px;" :src="peoplePhoto"> |
|
|
|
<div slot="placeholder" class="image-slot"> |
|
|
|
加载中<span class="dot">...</span> |
|
|
|
</div> |
|
|
|
</el-image> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!--组件弹窗--> |
|
|
|
<div> |
|
|
|
<!-- 通用进度条 --> |
|
|
|
<el-dialog title="数据处理中……" :visible.sync="elProgress.display" width="600px" height="400" :show-close="false" |
|
|
|
:close-on-click-modal="false" :append-to-body="true"> |
|
|
|
<ElProgressOCX /> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -156,10 +120,9 @@ |
|
|
|
import moment from "moment"; |
|
|
|
import { mapState, mapActions } from "vuex"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import { photoParse } from "../../utlis/proApi" |
|
|
|
import Sortable from "sortablejs"; |
|
|
|
import FileSaver from 'file-saver'; |
|
|
|
import html2canvas from 'html2canvas'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { |
|
|
|
getPagePriv, checkPagePriv, |
|
|
|
@ -168,13 +131,11 @@ import { |
|
|
|
} from "../../utlis/proFunc"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import ElProgressOCX from "../../components/report/ElProgressOCX.vue"; |
|
|
|
|
|
|
|
import PatientLisRequest from "./PatientLisRequest.vue"; |
|
|
|
|
|
|
|
export default { |
|
|
|
components: { |
|
|
|
ElProgressOCX, |
|
|
|
PatientLisRequest, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
@ -192,6 +153,7 @@ export default { |
|
|
|
multipleSelection: [], //选中的数据列表 |
|
|
|
|
|
|
|
tabChoosed: "1", |
|
|
|
|
|
|
|
rClickRow: null, //右击的行 |
|
|
|
rClickColumn: null, //右击的列(预留) |
|
|
|
|
|
|
|
@ -208,14 +170,7 @@ export default { |
|
|
|
{ label: "姓名", prop: "patientName", minWidth: 80, align: "center" }, |
|
|
|
{ label: "性别", prop: "sexId", minWidth: 55, align: "center" }, |
|
|
|
{ label: "年龄", prop: "age", minWidth: 55, align: "center" }, |
|
|
|
|
|
|
|
{ label: "颜色", prop: "lisrequest", minWidth: 120, align: "center" }, |
|
|
|
{ label: "容器", prop: "lisrequest", minWidth: 120, align: "center" }, |
|
|
|
{ label: "项目分组", prop: "lisrequest", minWidth: 120, align: "center" }, |
|
|
|
{ label: "申请项目", prop: "lisrequest", minWidth: 120, align: "center" }, |
|
|
|
{ label: "检验码号", prop: "lisrequest", minWidth: 120, align: "center" }, |
|
|
|
|
|
|
|
{ label: "人员条码号", prop: "patientRegisterNo", minWidth: 150, align: "center" }, |
|
|
|
{ label: "条码号", prop: "patientRegisterNo", minWidth: 150, align: "center" }, |
|
|
|
{ label: "档案号", prop: "patientNo", minWidth: 100, align: "center" }, |
|
|
|
{ label: "体检次数", prop: "medicalTimes", minWidth: 80, align: "center" }, |
|
|
|
{ label: "分组/套餐", prop: "groupPack", minWidth: 150, align: "center" }, |
|
|
|
@ -248,17 +203,6 @@ export default { |
|
|
|
maxResultCount: 100, |
|
|
|
}, |
|
|
|
loadOptsInit: {}, |
|
|
|
|
|
|
|
oneClick: 0, // 1 表示行单击一次 |
|
|
|
DbClick: 0, // 1 表示行有单击第二次 |
|
|
|
|
|
|
|
printPre: 0, |
|
|
|
lisLabel: '', // data:application/pdf;base64, |
|
|
|
LocalConfig: { |
|
|
|
lisLabel: { |
|
|
|
MarginTop: 56, // 预览上移像素 px |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -268,17 +212,10 @@ export default { |
|
|
|
if (userPriv) this.pagePriv.privs = deepCopy(getPagePriv(this.pagePriv.routeUrlorPageName)) |
|
|
|
|
|
|
|
this.loadOptsInit = Object.assign({}, this.loadOpts) |
|
|
|
let LocalConfig = window.localStorage.getItem("LocalConfig") || null |
|
|
|
try { |
|
|
|
this.LocalConfig = JSON.parse(LocalConfig) || this.LocalConfig |
|
|
|
} catch (error) { |
|
|
|
console.log('window.localStorage.getItem("LocalConfig")', error) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//挂载完成 |
|
|
|
mounted() { |
|
|
|
|
|
|
|
// 初始化可以拖动的列 |
|
|
|
this.headerCols = deepCopy(this.dropCol) |
|
|
|
this.dropCol = this.columnDrop(this.dropCol); |
|
|
|
@ -297,18 +234,6 @@ export default { |
|
|
|
"patientRegister", |
|
|
|
"customerOrg", |
|
|
|
]), |
|
|
|
|
|
|
|
// 照片显示 |
|
|
|
peoplePhoto() { |
|
|
|
return photoParse(this.tableDataCurrentRow.photo) |
|
|
|
}, |
|
|
|
|
|
|
|
// 表体高度 |
|
|
|
tableHeight() { |
|
|
|
let fixHeight = this.window.pageHeight < 600 ? 600 : this.window.pageHeight |
|
|
|
return Math.floor((fixHeight - 243) * 2 / 3) |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
moment, dddw, deepCopy, checkPagePriv, |
|
|
|
@ -325,26 +250,6 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 全选 取消全选 |
|
|
|
btnChooseAll(type) { |
|
|
|
if (type == 1) { |
|
|
|
// 全选 |
|
|
|
this.tableData.forEach(e => { |
|
|
|
e.choosed = true; |
|
|
|
e.highLightBg = "selected"; |
|
|
|
}); |
|
|
|
|
|
|
|
this.multipleSelection = deepCopy(this.tableData) |
|
|
|
} else { |
|
|
|
this.tableData.forEach(e => { |
|
|
|
e.choosed = false; |
|
|
|
e.highLightBg = ""; |
|
|
|
}); |
|
|
|
this.multipleSelection = [] |
|
|
|
this.$refs['info'].setCurrentRow(); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 行选择 |
|
|
|
rowSelected(rows) { |
|
|
|
rows.forEach((e) => { |
|
|
|
@ -356,8 +261,6 @@ export default { |
|
|
|
setData(this, item, v) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handleSelectionChange(rows) { |
|
|
|
//this.multipleSelection = rows; |
|
|
|
//console.log('this.multipleSelection',this.multipleSelection) |
|
|
|
@ -376,89 +279,8 @@ export default { |
|
|
|
|
|
|
|
//点击体检次数行 |
|
|
|
rowClick(row) { |
|
|
|
/* |
|
|
|
if (this.oneClick == 0) { |
|
|
|
this.oneClick = 1; |
|
|
|
} else { |
|
|
|
this.DbClick = 1; |
|
|
|
} |
|
|
|
|
|
|
|
//双击事件 |
|
|
|
if (this.DbClick == 1) { //第一次点击的节点和第二次点击的节点id相同 |
|
|
|
this.rowClickRetrieve(row) |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
setTimeout(() => { //300ms内没有第二次点击,执行单击事件 |
|
|
|
if (this.oneClick == 1 && this.DbClick == 0) this.rowClickRetrieve(row) |
|
|
|
}, 300) |
|
|
|
*/ |
|
|
|
this.rowClickRetrieve(row) |
|
|
|
}, |
|
|
|
|
|
|
|
rowClickRetrieve(row) { |
|
|
|
this.oneClick = 0; |
|
|
|
this.DbClick = 0; |
|
|
|
|
|
|
|
// 按住了shift键 |
|
|
|
if (this.window.shift) { |
|
|
|
//清除所有选择 |
|
|
|
this.tableData.forEach((e, index) => { |
|
|
|
e.choosed = false; |
|
|
|
e.index = index; |
|
|
|
}); |
|
|
|
|
|
|
|
if (this.startPoint == -1) { |
|
|
|
this.tableData[row.index].choosed = true; |
|
|
|
this.startPoint = row.index; |
|
|
|
} else { |
|
|
|
if (this.startPoint > row.index) { |
|
|
|
for (let i = row.index; i <= this.startPoint; i++) { |
|
|
|
this.tableData[i].choosed = true; |
|
|
|
} |
|
|
|
} else if (this.startPoint <= row.index) { |
|
|
|
for (let i = this.startPoint; i <= row.index; i++) { |
|
|
|
this.tableData[i].choosed = true; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (this.window.ctrl) { // 按住了ctrl 键 |
|
|
|
this.tableData[row.index].choosed = true; |
|
|
|
if (this.startPoint == -1) { |
|
|
|
this.startPoint = row.index; |
|
|
|
} |
|
|
|
} else { |
|
|
|
// 未按住了ctrl 、shift 键 |
|
|
|
//清除所有选择 |
|
|
|
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); |
|
|
|
|
|
|
|
this.tableData[row.index].choosed = true; |
|
|
|
this.startPoint = row.index; |
|
|
|
} |
|
|
|
|
|
|
|
//选中了多个点编辑时,排序最前的作为当前选中的 |
|
|
|
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) { |
|
|
|
lfind = i |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (lfind > -1) { |
|
|
|
// 弹出编辑框,只有在编辑框显示时,才去触发获取数据 |
|
|
|
this.dataTransOpts.tableS.patient_register.id = this.tableData[lfind].id |
|
|
|
this.tableDataCurrentRow = deepCopy(this.tableData[lfind]) |
|
|
|
//触发条码预览 |
|
|
|
if (this.$peisAPI) this.lisPrint(this.dataTransOpts.tableS.patient_register.id, "0002", "Y", "Y") |
|
|
|
} |
|
|
|
this.dataTransOpts.tableS.patient_register = deepCopy(row) |
|
|
|
this.dataTransOpts.refresh.lis_request.M++ //触发条码 |
|
|
|
}, |
|
|
|
|
|
|
|
//查询 |
|
|
|
@ -468,7 +290,7 @@ export default { |
|
|
|
this.tableDataCurrentRow = {} // 清除选择 |
|
|
|
this.tableData = [] |
|
|
|
setTimeout(() => { |
|
|
|
this.dataTransOpts.refresh.register_check_asbitem.M++ //触发所选组合项目刷新 |
|
|
|
this.dataTransOpts.refresh.lis_request.M++ //触发所选组合项目刷新 |
|
|
|
}, 10); |
|
|
|
|
|
|
|
this.loadOpts = Object.assign(this.loadOpts, this.loadOptsInit) |
|
|
|
@ -481,7 +303,6 @@ export default { |
|
|
|
await this.getPrList() |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 获取列表数据 |
|
|
|
async getPrList() { |
|
|
|
|
|
|
|
@ -524,12 +345,8 @@ export default { |
|
|
|
this.patientRegister.query.startDate && |
|
|
|
this.patientRegister.query.endDate |
|
|
|
) { |
|
|
|
body.startDate = moment(this.patientRegister.query.startDate).format( |
|
|
|
"yyyy-MM-DD" |
|
|
|
); |
|
|
|
body.endDate = moment(this.patientRegister.query.endDate).format( |
|
|
|
"yyyy-MM-DD" |
|
|
|
); |
|
|
|
body.startDate = moment(this.patientRegister.query.startDate).format("yyyy-MM-DD"); |
|
|
|
body.endDate = moment(this.patientRegister.query.endDate).format("yyyy-MM-DD"); |
|
|
|
if (body.startDate > body.endDate) { |
|
|
|
this.$message.warning({ showClose: true, message: "起始日期不能大于截止日期,数据校验不通过!" }); |
|
|
|
return; |
|
|
|
@ -550,11 +367,11 @@ export default { |
|
|
|
patientRegisterNo: this.patientRegister.query.patientRegisterNo, |
|
|
|
}; |
|
|
|
|
|
|
|
console.log("/api/app/LisRequest/GetListInFilter", body); |
|
|
|
// /api/app/patientregister/getlistinfilter |
|
|
|
console.log("/api/app/patientregister/getlistinfilter", body); |
|
|
|
|
|
|
|
postapi("/api/app/patientregister/getlistinfilter", body) |
|
|
|
.then(res => { |
|
|
|
if (res.code != -1) { |
|
|
|
if (res.code > -1) { |
|
|
|
// 刷新最大记录数 |
|
|
|
this.loadOpts.totalCount = res.data.totalCount |
|
|
|
let curLoad = res.data.items |
|
|
|
@ -602,28 +419,6 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 预览设置 |
|
|
|
btnPrintPre() { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 打印 |
|
|
|
btnPrint() { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 发送检验申请 |
|
|
|
btnSendLis() { |
|
|
|
console.log('btnSendLis') |
|
|
|
}, |
|
|
|
|
|
|
|
// 撤消检验申请 |
|
|
|
btnUndoLis() { |
|
|
|
console.log('btnUndoLis') |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//检验申请 |
|
|
|
async lisRequest(prId) { |
|
|
|
let isPrintLisRequest = false; |
|
|
|
@ -645,7 +440,6 @@ export default { |
|
|
|
return; |
|
|
|
} |
|
|
|
if (res.code > -1) { |
|
|
|
// this.$message.info("发送检验申请成功!"); |
|
|
|
isPrintLisRequest = true; |
|
|
|
} |
|
|
|
|
|
|
|
@ -673,7 +467,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//检验条码打印 |
|
|
|
lisPrint(prId, ReportCode, isPreview, IsUploadPdf) { |
|
|
|
lisPrint(prId, ReportCode, isPreview) { |
|
|
|
if (!this.$peisAPI) { |
|
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }); |
|
|
|
return; |
|
|
|
@ -685,7 +479,7 @@ export default { |
|
|
|
ReportCode, |
|
|
|
token, |
|
|
|
isBuildImage: 'N', |
|
|
|
IsUploadPdf, |
|
|
|
IsUploadPdf: 'N', |
|
|
|
preViewCanPrint: "N", |
|
|
|
Parameters: [ |
|
|
|
{ Name: "printer", Value: user }, |
|
|
|
@ -695,13 +489,29 @@ export default { |
|
|
|
}; |
|
|
|
|
|
|
|
if (isPreview) { |
|
|
|
/* |
|
|
|
postapi( |
|
|
|
`/api/app/printreport/getlisrequestreport?PatientRegisterId=${prId}` |
|
|
|
) |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
toOutShell.ReportTable = { lisRequest: res.data }; |
|
|
|
console.log( |
|
|
|
"JSON.stringify(toOutShell)", |
|
|
|
JSON.stringify(toOutShell) |
|
|
|
); |
|
|
|
return this.$peisAPI.printPre(JSON.stringify(toOutShell)); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
this.$message.warning(err); |
|
|
|
}); |
|
|
|
*/ |
|
|
|
this.$peisAPI.printPre(JSON.stringify(toOutShell)) |
|
|
|
.then(res => { |
|
|
|
let lres = JSON.parse(res) |
|
|
|
if (lres.code < 0) { |
|
|
|
console.log('this.$peisAPI.printPre', res) |
|
|
|
if (JSON.parse(res).code < 0) { |
|
|
|
this.$message.warning({ showClose: true, message: JSON.parse(res).message }); |
|
|
|
} else if (IsUploadPdf == 'Y') { |
|
|
|
this.lisLabel = 'data:application/pdf;base64,' + lres.data |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
@ -710,7 +520,39 @@ export default { |
|
|
|
}); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
/* |
|
|
|
postapi( |
|
|
|
`/api/app/printreport/getlisrequestreport?PatientRegisterId=${prId}` |
|
|
|
) |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
toOutShell.ReportTable = { lisRequest: res.data }; |
|
|
|
console.log( |
|
|
|
"JSON.stringify(toOutShell)", |
|
|
|
JSON.stringify(toOutShell) |
|
|
|
); |
|
|
|
return this.$peisAPI.print(JSON.stringify(toOutShell)); |
|
|
|
} |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
//console.log("res", res); |
|
|
|
if (JSON.parse(res).code >= 0) { |
|
|
|
//更新打印状态 /api/app/lisrequest/updatelisrequestisprint |
|
|
|
// { |
|
|
|
// "operateType": 0, 操作类型(1.按PatientRegisterId 2.按LisRequestId) |
|
|
|
// "patientRegisterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", |
|
|
|
// "lisRequestId": "3fa85f64-5717-4562-b3fc-2c963f66afa6" |
|
|
|
// } |
|
|
|
return postapi("/api/app/lisrequest/updatelisrequestisprint", { |
|
|
|
operateType: 1, |
|
|
|
patientRegisterId: prId, |
|
|
|
}); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
this.$message.warning(err); |
|
|
|
}); |
|
|
|
*/ |
|
|
|
this.$peisAPI.print(JSON.stringify(toOutShell)) |
|
|
|
.then(res => { |
|
|
|
if (JSON.parse(res).code < 0) { |
|
|
|
@ -737,7 +579,7 @@ export default { |
|
|
|
//pacs条码打印 |
|
|
|
pacsPrint(prId, ReportCode, isPreview) { |
|
|
|
if (!this.$peisAPI) { |
|
|
|
this.$message.info("此功能,需要在壳客户端才可运行!"); |
|
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }); |
|
|
|
return; |
|
|
|
} |
|
|
|
let token = window.sessionStorage.getItem("token"); |
|
|
|
@ -756,6 +598,24 @@ export default { |
|
|
|
}; |
|
|
|
|
|
|
|
if (isPreview) { |
|
|
|
/* |
|
|
|
postapi( |
|
|
|
`/api/app/printreport/getpacsnoreport?PatientRegisterId=${prId}` |
|
|
|
) |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
toOutShell.ReportTable = { lisRequest: res.data }; |
|
|
|
console.log( |
|
|
|
"JSON.stringify(toOutShell)", |
|
|
|
JSON.stringify(toOutShell) |
|
|
|
); |
|
|
|
return this.$peisAPI.printPre(JSON.stringify(toOutShell)); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
this.$message.warning(err); |
|
|
|
}); |
|
|
|
*/ |
|
|
|
this.$peisAPI.printPre(JSON.stringify(toOutShell)) |
|
|
|
.then(res => { |
|
|
|
if (JSON.parse(res).code < 0) { |
|
|
|
@ -767,6 +627,38 @@ export default { |
|
|
|
this.$message.warning({ showClose: true, message: `${err}` }); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
/* |
|
|
|
postapi( |
|
|
|
`/api/app/printreport/getpacsnoreport?PatientRegisterId=${prId}` |
|
|
|
) |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
toOutShell.ReportTable = { lisRequest: res.data }; |
|
|
|
console.log( |
|
|
|
"JSON.stringify(toOutShell)", |
|
|
|
JSON.stringify(toOutShell) |
|
|
|
); |
|
|
|
return this.$peisAPI.print(JSON.stringify(toOutShell)); |
|
|
|
} |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
if (JSON.parse(res).code >= 0) { |
|
|
|
//更新打印状态 /api/app/lisrequest/updatelisrequestisprint |
|
|
|
// { |
|
|
|
// "operateType": 0, 操作类型(1.按PatientRegisterId 2.按LisRequestId) |
|
|
|
// "patientRegisterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", |
|
|
|
// "lisRequestId": "3fa85f64-5717-4562-b3fc-2c963f66afa6" |
|
|
|
// } |
|
|
|
return postapi("/api/app/lisrequest/updatelisrequestisprint", { |
|
|
|
operateType: 1, |
|
|
|
patientRegisterId: prId, |
|
|
|
}); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
this.$message.warning(err); |
|
|
|
}); |
|
|
|
*/ |
|
|
|
this.$peisAPI.print(JSON.stringify(toOutShell)) |
|
|
|
.then(res => { |
|
|
|
if (JSON.parse(res).code < 0) { |
|
|
|
|