Browse Source

label seo

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

5
src/components/patientRegister/PatientLis.vue

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

30
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) {
@ -137,7 +129,7 @@ export default {
}
if (isPreview) {
this.pacsPrint(this.chooseRows[0].pacsRequestId,"0004",isPreview)
this.pacsPrint(this.chooseRows[0].registerCheckId,"0004",isPreview)
return
}
@ -145,11 +137,7 @@ export default {
for (let i = 0; i < this.chooseRows.length; i++) {
let e = this.chooseRows[i];
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) {
console.log(`打印条码或更新条码打印状态失败,原因:${error}`)
this.$message.warning({ showClose: true, message: `打印条码或更新条码打印状态失败,原因:${error}`})
@ -171,7 +159,6 @@ export default {
preViewCanPrint: "N",
Parameters: [
{ Name: "printer", Value: user },
{ Name: "hisLog", Value: "pic/hisLog.jpg" },
],
BusinessCode: pacsRequestId
};
@ -185,7 +172,7 @@ export default {
}
})
.catch((err) => {
console.log('打印检条码错误', err)
console.log('打印检条码错误', err)
this.$message.warning({ showClose: true, message: `${err}` });
});
@ -195,15 +182,8 @@ export default {
let Jres = JSON.parse(lres)
if(Jres.code < 0){
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) {
err = `${error}`

66
src/components/patientRegister/PatientRegisterList.vue

@ -1132,7 +1132,7 @@ export default {
BusinessCode: row.id
};
// console.log('this.$peisAPI.print', toOutShell)
console.log('this.$peisAPI.print', toOutShell)
if (isPreview) {
/*
postapi(
@ -1248,24 +1248,6 @@ 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) {
@ -1277,52 +1259,10 @@ 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) {
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) => {
@ -1332,14 +1272,12 @@ export default {
}
},
//
btnExport(elId) {
// HTML
// let table = document.getElementById(elId); //.cloneNode(true)
this.$nextTick(() => {
let refsTable = this.$refs[elId] //.cloneNode(true) true
// let refsTable = this.$refs[elId] //.cloneNode(true) true
let table = document.getElementById(elId)
// console.log('table,refsTable', table, refsTable)

Loading…
Cancel
Save