|
|
|
@ -7,8 +7,7 @@ |
|
|
|
<el-table @body-scrolling="load" :data="tableData" border |
|
|
|
:height="window.pageHeight < 600 ? 248 : Math.floor(((window.pageHeight - 250) * 2) / 3)" |
|
|
|
highlight-current-row @row-click="rowClick" @row-dblclick="rowDblclick" size="small" row-key="id" |
|
|
|
@selection-change="handleSelectionChange" ref="info" id="info" |
|
|
|
:row-class-name="handleRowClassName"> |
|
|
|
@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)" |
|
|
|
@ -110,7 +109,14 @@ |
|
|
|
<el-tabs v-model="tabChoosed" style="margin-top: -22px;"> |
|
|
|
<!-- 给合项目 --> |
|
|
|
<el-tab-pane label="预览" name="1"> |
|
|
|
<PatientRegisterAsbItem /> |
|
|
|
<div style="overflow: scroll; width: 100%;height: 240px;"> |
|
|
|
<el-image :src="lisLabel"> |
|
|
|
<div slot="placeholder" class="image-slot"> |
|
|
|
加载中<span class="dot">...</span> |
|
|
|
</div> |
|
|
|
</el-image> |
|
|
|
</div> |
|
|
|
|
|
|
|
</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
</div> |
|
|
|
@ -132,7 +138,14 @@ |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '撤消申请')" class="listBtn"> |
|
|
|
<el-button type="" class="commonbutton" @click="btnUndoLis">撤消申请</el-button> |
|
|
|
</div> |
|
|
|
</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> |
|
|
|
<!--组件弹窗--> |
|
|
|
@ -149,6 +162,7 @@ |
|
|
|
import moment from "moment"; |
|
|
|
import { mapState, mapActions } from "vuex"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import { photoParse } from "../../utlis/proFunc" |
|
|
|
import Sortable from "sortablejs"; |
|
|
|
import FileSaver from 'file-saver'; |
|
|
|
import html2canvas from 'html2canvas'; |
|
|
|
@ -246,6 +260,8 @@ export default { |
|
|
|
|
|
|
|
oneClick: 0, // 1 表示行单击一次 |
|
|
|
DbClick: 0, // 1 表示行有单击第二次 |
|
|
|
|
|
|
|
lisLabel:'https://fuss10.elemecdn.com/1/8e/aeffeb4de74e2fde4bd74fc7b4486jpeg.jpeg', |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -259,7 +275,7 @@ export default { |
|
|
|
|
|
|
|
//挂载完成 |
|
|
|
mounted() { |
|
|
|
|
|
|
|
|
|
|
|
// 初始化可以拖动的列 |
|
|
|
this.headerCols = deepCopy(this.dropCol) |
|
|
|
this.dropCol = this.columnDrop(this.dropCol); |
|
|
|
@ -278,6 +294,10 @@ export default { |
|
|
|
"patientRegister", |
|
|
|
"customerOrg", |
|
|
|
]), |
|
|
|
|
|
|
|
peoplePhoto() { |
|
|
|
return photoParse(this.tableDataCurrentRow.photo) |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
...mapActions(["getCustomerOrgGroup", "getPatientRegisterAbs"]), |
|
|
|
@ -296,11 +316,22 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
// 全选 取消全选 |
|
|
|
btnChooseAll(type){ |
|
|
|
if(type == 1){ |
|
|
|
btnChooseAll(type) { |
|
|
|
if (type == 1) { |
|
|
|
// 全选 |
|
|
|
}else{ |
|
|
|
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(); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
@ -315,7 +346,7 @@ export default { |
|
|
|
setData(this, item, v) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handleSelectionChange(rows) { |
|
|
|
//this.multipleSelection = rows; |
|
|
|
@ -333,7 +364,7 @@ export default { |
|
|
|
this.multipleSelection = JSON.parse(JSON.stringify(rows)); |
|
|
|
}, |
|
|
|
|
|
|
|
//点击体检次数行 |
|
|
|
//点击体检次数行 |
|
|
|
rowClick(row) { |
|
|
|
if (this.oneClick == 0) { |
|
|
|
this.oneClick = 1; |
|
|
|
@ -422,7 +453,7 @@ export default { |
|
|
|
this.rowClick(row) |
|
|
|
this.btnEdit() |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//查询 |
|
|
|
async Query() { |
|
|
|
// 查询时,清掉明细数据 (滚动时不清) |
|
|
|
@ -563,24 +594,24 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 预览设置 |
|
|
|
btnPrintPre(){ |
|
|
|
btnPrintPre() { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 打印 |
|
|
|
btnPrint(){ |
|
|
|
btnPrint() { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 发送检验申请 |
|
|
|
btnSendLis(){ |
|
|
|
btnSendLis() { |
|
|
|
console.log('btnSendLis') |
|
|
|
}, |
|
|
|
|
|
|
|
// 撤消检验申请 |
|
|
|
btnUndoLis(){ |
|
|
|
btnUndoLis() { |
|
|
|
console.log('btnUndoLis') |
|
|
|
}, |
|
|
|
|
|
|
|
@ -651,7 +682,7 @@ export default { |
|
|
|
{ Name: "printer", Value: user }, |
|
|
|
{ Name: "hisLog", Value: "pic/hisLog.jpg" }, |
|
|
|
], |
|
|
|
BusinessCode:prId |
|
|
|
BusinessCode: prId |
|
|
|
}; |
|
|
|
|
|
|
|
if (isPreview) { |
|
|
|
@ -722,7 +753,7 @@ export default { |
|
|
|
.then(res => { |
|
|
|
if (JSON.parse(res).code < 0) { |
|
|
|
this.$message.warning({ showClose: true, message: JSON.parse(res).message }); |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
return postapi("/api/app/lisrequest/updatelisrequestisprint", { |
|
|
|
operateType: 1, |
|
|
|
patientRegisterId: prId, |
|
|
|
@ -730,7 +761,7 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
if(res && res.code < 0){ |
|
|
|
if (res && res.code < 0) { |
|
|
|
this.$message.error({ showClose: true, message: `${res.message}` }); |
|
|
|
} |
|
|
|
}) |
|
|
|
@ -757,7 +788,7 @@ export default { |
|
|
|
{ Name: "printer", Value: user }, |
|
|
|
{ Name: "hisLog", Value: "pic/hisLog.jpg" }, |
|
|
|
], |
|
|
|
BusinessCode:prId |
|
|
|
BusinessCode: prId |
|
|
|
}; |
|
|
|
|
|
|
|
if (isPreview) { |
|
|
|
@ -826,7 +857,7 @@ export default { |
|
|
|
.then(res => { |
|
|
|
if (JSON.parse(res).code < 0) { |
|
|
|
this.$message.warning({ showClose: true, message: JSON.parse(res).message }); |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
return postapi("/api/app/lisrequest/updatelisrequestisprint", { |
|
|
|
operateType: 1, |
|
|
|
patientRegisterId: prId, |
|
|
|
@ -834,7 +865,7 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
if(res && res.code < 0){ |
|
|
|
if (res && res.code < 0) { |
|
|
|
this.$message.error({ showClose: true, message: `${res.message}` }); |
|
|
|
} |
|
|
|
}) |
|
|
|
|