pengjun 1 year ago
parent
commit
40980bf85b
  1. 14
      src/components/common/LocalConfig.vue
  2. 28
      src/components/doctorCheck/CheckItemList.vue
  3. 22
      src/components/doctorCheck/CheckPicture.vue
  4. 4
      src/components/doctorCheck/PacsTemplate.vue
  5. 12
      src/components/doctorCheck/RegisterCheckEdit.vue
  6. 4
      src/views/doctorCheck/doctorCheck.vue

14
src/components/common/LocalConfig.vue

@ -83,12 +83,21 @@
<el-tab-pane label="医生诊台"> <el-tab-pane label="医生诊台">
<el-form label-width="100px" size="medium"> <el-form label-width="100px" size="medium">
<el-row> <el-row>
<el-col :span="12">
<el-col :span="6">
<el-form-item label="是否显示图片"> <el-form-item label="是否显示图片">
<el-checkbox v-model="LocalConfig.doctorCheck.isCheckPicture" size="small" /> <el-checkbox v-model="LocalConfig.doctorCheck.isCheckPicture" size="small" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-col :span="6">
<el-form-item label="采集卡图类别">
<el-select v-model="LocalConfig.doctorCheck.pictureFileType" placeholder="采集卡图类别" clearable filterable
size="small" >
<el-option label="0 - 非报告图" value="0" />
<el-option label="1 - 报告图片" value="1" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="pacs分类"> <el-form-item label="pacs分类">
<el-select v-model="LocalConfig.doctorCheck.pacsType" placeholder="pacs分类" clearable filterable <el-select v-model="LocalConfig.doctorCheck.pacsType" placeholder="pacs分类" clearable filterable
size="small" > size="small" >
@ -168,6 +177,7 @@ export default {
}, },
doctorCheck: { // doctorCheck: { //
isCheckPicture: false, // isCheckPicture: false, //
pictureFileType:'0',
pacsType:'image', pacsType:'image',
isQueue: 'N', // isQueue: 'N', //
queueRoom: '', // queueRoom: '', //

28
src/components/doctorCheck/CheckItemList.vue

@ -363,7 +363,11 @@ export default {
}, },
symbols: [], // symbols: [], //
splitSymbols: [";", "、"], // splitSymbols: [";", "、"], //
userInfo: {
operatorType: "0",
userId: "", userId: "",
user: "",
},
// pacs // pacs
pacsParams: { pacsParams: {
@ -374,7 +378,7 @@ export default {
result: "", result: "",
summary: "", summary: "",
}, },
curRow:{}
curRow: {},
}; };
}, },
@ -385,8 +389,9 @@ export default {
// //
mounted() { mounted() {
this.checkItemList(this.dataTransOpts.tableS.register_check.id); this.checkItemList(this.dataTransOpts.tableS.register_check.id);
this.userId = window.sessionStorage.getItem("userId");
this.userInfo.operatorType = window.sessionStorage.getItem("operatorType") || '0';
this.userInfo.userId = window.sessionStorage.getItem("userId")||null;
this.userInfo.user = window.sessionStorage.getItem("user")||null;
}, },
computed: { computed: {
@ -477,11 +482,11 @@ export default {
itemId: row.itemId, itemId: row.itemId,
}).then((res) => { }).then((res) => {
if (res.code != -1) { if (res.code != -1) {
this.previousResults=true
this.previousResults = true;
this.gridData = res.data; this.gridData = res.data;
this.$nextTick(() => { this.$nextTick(() => {
this.initEcharts(); this.initEcharts();
})
});
} }
}); });
}, },
@ -490,8 +495,8 @@ export default {
let xAxisData = []; let xAxisData = [];
for (let i = 0; i < this.gridData.length; i++) { for (let i = 0; i < this.gridData.length; i++) {
if (this.gridData[i].checkDate) { if (this.gridData[i].checkDate) {
xAxisData.push(this.gridData[i].checkDate)
yAxisData.push(this.gridData[i].itemResult)
xAxisData.push(this.gridData[i].checkDate);
yAxisData.push(this.gridData[i].itemResult);
} }
} }
let myChart = echarts.init(this.$refs.chart1); let myChart = echarts.init(this.$refs.chart1);
@ -542,10 +547,10 @@ export default {
}, },
], ],
}; };
myChart.setOption(option1)
myChart.setOption(option1);
}, },
resultsclose() { resultsclose() {
this.activeName="first"
this.activeName = "first";
}, },
// chartTabs(tab) { // chartTabs(tab) {
// if (tab.name == "second") { // if (tab.name == "second") {
@ -902,7 +907,10 @@ export default {
}); });
} }
if (this.doctorCheck.RegisterCheckEdit.completeFlag == "0") { if (this.doctorCheck.RegisterCheckEdit.completeFlag == "0") {
this.doctorCheck.RegisterCheckEdit.checkDoctorId = this.userId;
//
if(this.userInfo.operatorType == '1' || this.userInfo.operatorType == '3'){
this.doctorCheck.RegisterCheckEdit.checkDoctorId = this.userInfo.userId;
}
this.doctorCheck.RegisterCheckEdit.checkDate = new Date(); this.doctorCheck.RegisterCheckEdit.checkDate = new Date();
} }
return getapi( return getapi(

22
src/components/doctorCheck/CheckPicture.vue

@ -51,17 +51,27 @@
</el-image> </el-image>
</div> </div>
<div style="display: flex"> <div style="display: flex">
<div style="margin: -6px 0 0 1px">
<div style="margin: -6px 2px 0 1px">
<el-tooltip content="是否打印" placement="bottom" effect="light">
<el-checkbox v-model="item.isPrintTrans" @change="btnSavePic" <el-checkbox v-model="item.isPrintTrans" @change="btnSavePic"
:disabled="doctorBtnDisabled('btnSavePic')"></el-checkbox> :disabled="doctorBtnDisabled('btnSavePic')"></el-checkbox>
</el-tooltip>
</div> </div>
<!--
<div style="font-size: 12px; margin: -2px 0 0 1px">打印</div> <div style="font-size: 12px; margin: -2px 0 0 1px">打印</div>
<div style="font-size: 15px; margin: -5px 0 0 2px">
-->
<div style="font-size: 15px; margin: -5px 2px 0 2px">
<el-tooltip content="保存后,图片将按序号从小到大排序" placement="bottom" effect="light"> <el-tooltip content="保存后,图片将按序号从小到大排序" placement="bottom" effect="light">
<input placeholder="排序" v-model="item.displayOrder" @onkeyup="validateInteger(e, index)" <input placeholder="排序" v-model="item.displayOrder" @onkeyup="validateInteger(e, index)"
style="width: 30px" :disabled="doctorBtnDisabled('btnSavePic')" /> style="width: 30px" :disabled="doctorBtnDisabled('btnSavePic')" />
</el-tooltip> </el-tooltip>
</div> </div>
<div style="margin: -6px 0 0 2px">
<el-tooltip content="是否报告图片" placement="bottom" effect="light">
<el-checkbox v-model="item.pictureFileType" @change="btnSavePic" true-label="1" false-label="0"
:disabled="doctorBtnDisabled('btnSavePic')"></el-checkbox>
</el-tooltip>
</div>
</div> </div>
</div> </div>
</div> </div>
@ -229,6 +239,7 @@ export default {
// //
dialogWinCutPic: false, dialogWinCutPic: false,
cutPicParam: {}, cutPicParam: {},
pictureFileType:'0'
}; };
}, },
@ -238,6 +249,8 @@ export default {
if (userPriv) this.pagePriv.privs = deepCopy(getPagePriv(this.pagePriv.routeUrlorPageName)) if (userPriv) this.pagePriv.privs = deepCopy(getPagePriv(this.pagePriv.routeUrlorPageName))
this.sysConfig = JSON.parse(window.sessionStorage.getItem('sysConfig')) this.sysConfig = JSON.parse(window.sessionStorage.getItem('sysConfig'))
// console.log('this.sysConfig checkPictures', this.sysConfig) // console.log('this.sysConfig checkPictures', this.sysConfig)
let LocalConfig = JSON.parse(window.localStorage.getItem("LocalConfig") || null)
if (LocalConfig && LocalConfig.doctorCheck && LocalConfig.doctorCheck.pictureFileType) this.pictureFileType = LocalConfig.doctorCheck.pictureFileType
}, },
// //
@ -363,7 +376,6 @@ export default {
// FilePath: // FilePath:
// Image // Image
// ImageFormat // ImageFormat
let baseHead = 'data:image/jpeg;base64,' let baseHead = 'data:image/jpeg;base64,'
switch (item.ImageFormat) { switch (item.ImageFormat) {
case 'png': case 'png':
@ -384,7 +396,8 @@ export default {
fileName, fileName,
localPathName: item.FilePath, localPathName: item.FilePath,
pictureBaseStr: baseHead + item.Image pictureBaseStr: baseHead + item.Image
}]
}],
pictureFileType:this.pictureFileType
} }
try { try {
//await postapi('/api/app/RegisterCheckPicture/InstrumentMapping', body) //await postapi('/api/app/RegisterCheckPicture/InstrumentMapping', body)
@ -658,6 +671,7 @@ export default {
let item = { let item = {
registerCheckId: e.registerCheckId, registerCheckId: e.registerCheckId,
pictureFilename: e.pictureFilename, pictureFilename: e.pictureFilename,
pictureFileType: e.pictureFileType
}; };
if (e.id) item.registerCheckPictureId = e.id; if (e.id) item.registerCheckPictureId = e.id;
if (e.isPrintTrans) { if (e.isPrintTrans) {

4
src/components/doctorCheck/PacsTemplate.vue

@ -211,7 +211,7 @@ export default {
// //
mounted() { mounted() {
// //
this.getPacsTemplateTree();
this.init(); this.init();
}, },
@ -225,6 +225,8 @@ export default {
this.tabPosition = this.tabPosition =
this.doctorCheck.checkItemList.length > 5 ? "left" : "top"; this.doctorCheck.checkItemList.length > 5 ? "left" : "top";
console.log("init"); console.log("init");
this.getPacsTemplateTree();
}, },
// tab // tab

12
src/components/doctorCheck/RegisterCheckEdit.vue

@ -14,12 +14,12 @@
</div> </div>
<div> <div>
<span class="query">操作者</span> <span class="query">操作者</span>
<el-input v-model="doctorCheck.RegisterCheckEdit.LastModifierId" size="small" style="width: 80px" disabled />
<el-input v-model="doctorCheck.RegisterCheckEdit.lastModifierName" size="small" style="width: 80px" disabled />
</div> </div>
<div> <div>
<span class="query">操作日期</span> <span class="query">操作日期</span>
<el-input <el-input
:value="doctorCheck.RegisterCheckEdit.LastModificationTime ? lmoment(doctorCheck.RegisterCheckEdit.LastModificationTime, 'yyyy-MM-DD') : ''"
:value="doctorCheck.RegisterCheckEdit.lastModificationTime ? lmoment(doctorCheck.RegisterCheckEdit.lastModificationTime, 'yyyy-MM-DD') : ''"
style="width: 90px" size="small" disabled></el-input> style="width: 90px" size="small" disabled></el-input>
</div> </div>
<div> <div>
@ -55,9 +55,7 @@ export default {
computed: { computed: {
...mapState(["window", "dataTransOpts", "dict", "doctorCheck", "patientRegister", "customerOrg"]), ...mapState(["window", "dataTransOpts", "dict", "doctorCheck", "patientRegister", "customerOrg"]),
lmoment(date, forMat) {
return moment(new Date(date)).format(forMat);
},
}, },
methods: { methods: {
// //
@ -71,6 +69,10 @@ export default {
}) })
}, },
lmoment(date, forMat) {
return moment(new Date(date)).format(forMat);
},
// //
// getRegisterCheck(id){ // getRegisterCheck(id){
// if(id){ // if(id){

4
src/views/doctorCheck/doctorCheck.vue

@ -600,6 +600,10 @@ export default {
let checkDate = this.doctorCheck.RegisterCheckEdit.checkDate || new Date(); let checkDate = this.doctorCheck.RegisterCheckEdit.checkDate || new Date();
checkDate = moment(new Date(checkDate)).format('yyyy-MM-DD HH:mm:ss'); //yyyy-MM-DD HH:mm:ss checkDate = moment(new Date(checkDate)).format('yyyy-MM-DD HH:mm:ss'); //yyyy-MM-DD HH:mm:ss
let checkDoctorId = this.doctorCheck.RegisterCheckEdit.checkDoctorId || null; let checkDoctorId = this.doctorCheck.RegisterCheckEdit.checkDoctorId || null;
if(!checkDoctorId){
this.$message.warning({ showClose: true, message: '检查医生不能为空,请选择检查医生!' })
return
}
let registerCheckId = this.doctorCheck.RegisterCheckEdit.id let registerCheckId = this.doctorCheck.RegisterCheckEdit.id
// //
let registerCheckItems = [] let registerCheckItems = []

Loading…
Cancel
Save