Browse Source

label seo

master
pengjun 2 years ago
parent
commit
7f5592bee1
  1. 5
      src/components/patientRegister/PatientLis.vue
  2. 32
      src/components/patientRegister/PatientPacsRequest.vue
  3. 70
      src/components/patientRegister/PatientRegisterList.vue

5
src/components/patientRegister/PatientLis.vue

@ -19,7 +19,7 @@
<div v-if="dropCol[index].prop == 'sn'"> <div v-if="dropCol[index].prop == 'sn'">
{{ scope.$index + 1 }} {{ scope.$index + 1 }}
</div> </div>
<div v-else-if="dropCol[index].prop == 'completeFlag'">
<div v-else-if="dropCol[index].prop == 'completeFlag'" :style="`color: ${setPrStatusColor(scope.row.isAudit, scope.row.completeFlag)}`">
{{ dddw(dict.completeFlag, "id", scope.row.completeFlag, "displayName") }} {{ dddw(dict.completeFlag, "id", scope.row.completeFlag, "displayName") }}
</div> </div>
<div v-else-if="dropCol[index].prop == 'guidePrintTimes'"> <div v-else-if="dropCol[index].prop == 'guidePrintTimes'">
@ -126,6 +126,7 @@
import moment from "moment"; import moment from "moment";
import { mapState, mapActions } from "vuex"; import { mapState, mapActions } from "vuex";
import { getapi, postapi, putapi, deletapi } from "@/api/api"; import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { setPrStatusColor } from "../../utlis/proFunc"
import Sortable from "sortablejs"; import Sortable from "sortablejs";
@ -246,7 +247,7 @@ export default {
]), ]),
}, },
methods: { methods: {
moment, dddw, deepCopy, checkPagePriv,
moment, dddw, deepCopy, checkPagePriv,setPrStatusColor,
// //
handleRowClassName({ row, rowIndex }) { handleRowClassName({ row, rowIndex }) {

32
src/components/patientRegister/PatientPacsRequest.vue

@ -116,14 +116,6 @@ export default {
}, },
//
async btnLisRequest(isRequest) {
if (this.chooseRows.length == 0) {
this.$message.warning({ showClose: true, message: "请先选择要操作的条码记录!" })
return
}
console.log('btnLisRequest',isRequest)
},
// //
async btnPacsPrint(isPreview) { async btnPacsPrint(isPreview) {
@ -137,7 +129,7 @@ export default {
} }
if (isPreview) { if (isPreview) {
this.pacsPrint(this.chooseRows[0].pacsRequestId,"0004",isPreview)
this.pacsPrint(this.chooseRows[0].registerCheckId,"0004",isPreview)
return return
} }
@ -145,11 +137,7 @@ export default {
for (let i = 0; i < this.chooseRows.length; i++) { for (let i = 0; i < this.chooseRows.length; i++) {
let e = this.chooseRows[i]; let e = this.chooseRows[i];
try { try {
let err = await this.pacsPrint(e.pacsRequestId,"0004",isPreview)
if(!err){
let lfind = arrayExistObj(this.dataTransOpts.tableM.pacs_request,"lisRequestId",e.lisRequestId)
if(lfind > -1) this.dataTransOpts.tableM.pacs_request[lfind].isPrint = "Y"
}
await this.pacsPrint(e.registerCheckId,"0004",isPreview)
} catch (error) { } catch (error) {
console.log(`打印条码或更新条码打印状态失败,原因:${error}`) console.log(`打印条码或更新条码打印状态失败,原因:${error}`)
this.$message.warning({ showClose: true, message: `打印条码或更新条码打印状态失败,原因:${error}`}) this.$message.warning({ showClose: true, message: `打印条码或更新条码打印状态失败,原因:${error}`})
@ -170,8 +158,7 @@ export default {
IsUploadPdf: 'N', IsUploadPdf: 'N',
preViewCanPrint: "N", preViewCanPrint: "N",
Parameters: [ Parameters: [
{ Name: "printer", Value: user },
{ Name: "hisLog", Value: "pic/hisLog.jpg" },
{ Name: "printer", Value: user },
], ],
BusinessCode: pacsRequestId BusinessCode: pacsRequestId
}; };
@ -185,7 +172,7 @@ export default {
} }
}) })
.catch((err) => { .catch((err) => {
console.log('打印检条码错误', err)
console.log('打印检条码错误', err)
this.$message.warning({ showClose: true, message: `${err}` }); this.$message.warning({ showClose: true, message: `${err}` });
}); });
@ -195,15 +182,8 @@ export default {
let Jres = JSON.parse(lres) let Jres = JSON.parse(lres)
if(Jres.code < 0){ if(Jres.code < 0){
err = Jres.message err = Jres.message
console.log('打印检验条码错误', err)
this.$message.error({ showClose: true, message: `打印检验条码错误 ${err}` });
}else{
//
// let res = await postapi('/api/app/lisrequest/updatelisrequestisprint',{});
// if(res.code < 0){
// err = res.message
// this.$message.error({ showClose: true, message: ` ${err}` });
// }
console.log('打印检查条码错误', err)
this.$message.error({ showClose: true, message: `打印检查条码错误 ${err}` });
} }
} catch (error) { } catch (error) {
err = `${error}` err = `${error}`

70
src/components/patientRegister/PatientRegisterList.vue

@ -1132,7 +1132,7 @@ export default {
BusinessCode: row.id BusinessCode: row.id
}; };
// console.log('this.$peisAPI.print', toOutShell)
console.log('this.$peisAPI.print', toOutShell)
if (isPreview) { if (isPreview) {
/* /*
postapi( postapi(
@ -1247,25 +1247,7 @@ export default {
BusinessCode: row.id BusinessCode: row.id
}; };
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);
});
*/
if (isPreview) {
this.$peisAPI.printPre(JSON.stringify(toOutShell)) this.$peisAPI.printPre(JSON.stringify(toOutShell))
.then(res => { .then(res => {
if (JSON.parse(res).code < 0) { if (JSON.parse(res).code < 0) {
@ -1276,53 +1258,11 @@ export default {
// console.log('pacs', err) // console.log('pacs', err)
this.$message.warning({ showClose: true, message: `${err}` }); 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);
});
*/
} else {
this.$peisAPI.print(JSON.stringify(toOutShell)) this.$peisAPI.print(JSON.stringify(toOutShell))
.then(res => { .then(res => {
if (JSON.parse(res).code < 0) { if (JSON.parse(res).code < 0) {
this.$message.warning({ showClose: true, message: JSON.parse(res).message }); this.$message.warning({ showClose: true, message: JSON.parse(res).message });
} else {
return postapi("/api/app/lisrequest/updatelisrequestisprint", {
operateType: 1,
patientRegisterId: row.id,
});
}
})
.then(res => {
if (res && res.code < 0) {
this.$message.error({ showClose: true, message: `${res.message}` });
} }
}) })
.catch((err) => { .catch((err) => {
@ -1332,14 +1272,12 @@ export default {
} }
}, },
// //
btnExport(elId) { btnExport(elId) {
// HTML // HTML
// let table = document.getElementById(elId); //.cloneNode(true) // let table = document.getElementById(elId); //.cloneNode(true)
this.$nextTick(() => { this.$nextTick(() => {
let refsTable = this.$refs[elId] //.cloneNode(true) true
// let refsTable = this.$refs[elId] //.cloneNode(true) true
let table = document.getElementById(elId) let table = document.getElementById(elId)
// console.log('table,refsTable', table, refsTable) // console.log('table,refsTable', table, refsTable)

Loading…
Cancel
Save