Browse Source

bigText

master
pengjun 1 year ago
parent
commit
c615bb9d15
  1. 20
      src/components/doctorCheck/CheckItemList.vue
  2. 89
      src/components/doctorCheck/CheckPicture.vue
  3. 18
      src/components/doctorCheck/PacsTemplate.vue
  4. 4
      src/views/common-settings/BigtextResultType.vue
  5. 2
      src/views/doctorCheck/doctorCheck.vue
  6. 10
      src/views/fee-settings/ResultSetting.vue

20
src/components/doctorCheck/CheckItemList.vue

@ -85,7 +85,8 @@
</el-dialog> </el-dialog>
<!--Pacs结果录入模版--> <!--Pacs结果录入模版-->
<el-dialog :title="'Pacs结果录入模版 -- ' + doctorCheck.asbitemName" :visible.sync="dialogWin.PacsTemplate" fullscreen :close-on-click-modal="false">
<el-dialog :title="'Pacs结果录入模版 -- ' + doctorCheck.asbitemName" :visible.sync="dialogWin.PacsTemplate" fullscreen
:close-on-click-modal="false">
<PacsTemplate :refParams="pacsParams" :refFuncOther="handlePacsResult" /> <PacsTemplate :refParams="pacsParams" :refFuncOther="handlePacsResult" />
</el-dialog> </el-dialog>
</div> </div>
@ -145,7 +146,12 @@ export default {
userId: '', userId: '',
// pacs // pacs
pacsParams: {},
pacsParams: {
row: {},
index: 0,
result: '',
summary: ''
},
}; };
}, },
@ -416,17 +422,19 @@ export default {
// pacs // pacs
btnPacsResult(row, index) { btnPacsResult(row, index) {
let result = row.result
let summary = '' let summary = ''
this.doctorCheck.checkSummaryList.forEach((e,i) => {
this.doctorCheck.checkSummaryList.forEach((e, i) => {
summary += e.summary summary += e.summary
}); });
// console.log('row, index,summary', row, index,summary)
this.pacsParams = { this.pacsParams = {
row,index,summary
row, index, result, summary
} }
console.log('this.pacsParams ', this.pacsParams )
this.dialogWin.PacsTemplate = true this.dialogWin.PacsTemplate = true
}, },

89
src/components/doctorCheck/CheckPicture.vue

@ -71,15 +71,43 @@
:closePicUpload="closePicUpload" /> :closePicUpload="closePicUpload" />
</el-dialog> </el-dialog>
<el-dialog title="Dcm查看" :visible.sync="dialogDcm" :close-on-click-modal="false" fullscreen>
<el-dialog title="Dcm查看" :visible.sync="dialogDcm" :close-on-click-modal="false" fullscreen @close="iframeSrc = ''">
<div style="display: flex;"> <div style="display: flex;">
<div> <div>
<iframe :src="iframeSrc" height="600" width="800"></iframe>
<iframe :src="iframeSrc" :height="window.pageHeight - 85" :width="window.pageWidth - 260"></iframe>
</div>
<div style="width: 240px;margin-left: 2px;">
<div style="margin-top: 5px;">
<span style="color: #232748;">检查结果</span>
<el-input style="width: 100%;border: 1px solid #232748;" type="textarea" v-model="pacsParams.result"
:disabled="doctorBtnDisabled('save')" placeholder="请输入描述"
:autosize="{ minRows: Math.floor((window.pageHeight - 350) / 24), maxRows: 20 }" />
</div>
<div style="margin-top: 5px;">
<span style="color: #232748;">检查结论</span>
<el-input style="width: 100%;border: 1px solid #232748;" type="textarea" v-model="pacsParams.summary"
:disabled="doctorBtnDisabled('save')" placeholder="请输入结论" :autosize="{ minRows: 8, maxRows: 8 }" />
</div>
<div style="display: flex;justify-content: space-between;margin-top: 10px;">
<div></div>
<div>
<!--
<el-button type="primary" @click="btnTest" class="commonbutton">测试</el-button>
-->
<el-button type="primary" @click="btnChooseBigtext" :disabled="doctorBtnDisabled('save')"
class="commonbutton">选择描述</el-button>
<el-button type="primary" @click="btnOkBigtext" :disabled="doctorBtnDisabled('save')"
class="commonbutton">保存结果</el-button>
</div>
</div>
</div> </div>
<div></div>
</div> </div>
</el-dialog> </el-dialog>
<!--Pacs结果录入模版-->
<el-dialog :title="'Pacs结果录入模版 -- ' + doctorCheck.asbitemName" :visible.sync="dialogWin.PacsTemplate" fullscreen
:close-on-click-modal="false">
<PacsTemplate :refParams="pacsParams" :refFuncOther="handlePacsResult" />
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
@ -90,12 +118,13 @@ import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { getPagePriv, checkPagePriv, deepCopy, arrayExistObj } from "../../utlis/proFunc"; import { getPagePriv, checkPagePriv, deepCopy, arrayExistObj } from "../../utlis/proFunc";
import { hadoopGet, hadoopPost, hadoopPut, hadoopDel } from "../../api/hadoopApi" import { hadoopGet, hadoopPost, hadoopPut, hadoopDel } from "../../api/hadoopApi"
import CheckPictureUpload from "./CheckPictureUpload.vue"; import CheckPictureUpload from "./CheckPictureUpload.vue";
import PacsTemplate from "./PacsTemplate.vue";
export default { export default {
components: { components: {
CheckPictureUpload,
CheckPictureUpload, PacsTemplate
}, },
props: ["doctorBtnDisabled"],
props: ["doctorBtnDisabled", "save"],
data() { data() {
return { return {
sysConfig: {}, // sysConfig: {}, //
@ -105,6 +134,14 @@ export default {
}, },
dialogDcm: false, dialogDcm: false,
iframeSrc: '', iframeSrc: '',
pacsParams: {
row: {},
index: 0,
result: '',
summary: ''
},
checkPictures: [ checkPictures: [
// { // {
// id: "1", // id: "1",
@ -146,6 +183,7 @@ export default {
...mapState([ ...mapState([
"window", "window",
"dict", "dict",
"dialogWin",
"dataTransOpts", "dataTransOpts",
"doctorCheck", "doctorCheck",
"patientRegister", "patientRegister",
@ -303,12 +341,49 @@ export default {
// Dcm // Dcm
btnBrowseDcm() { btnBrowseDcm() {
this.pacsParams.result = this.doctorCheck.checkItemList[0].result
let summary = ''
this.doctorCheck.checkSummaryList.forEach(e => {
summary += e.summary
});
this.pacsParams.summary = summary
this.pacsParams.row = deepCopy(this.doctorCheck.checkItemList[0])
this.pacsParams.index = 0
console.log('pacsParams', this.pacsParams)
this.iframeSrc = `${this.sysConfig.dcmViewers}/?mrn=24071610696`
this.iframeSrc = `${this.sysConfig.dcmViewers}/?mrn=${this.doctorCheck.checkRequestNo}`
this.dialogDcm = true this.dialogDcm = true
}, },
//
btnChooseBigtext() {
console.log('this.pacsParams', this.pacsParams)
this.dialogWin.PacsTemplate = true
},
//
btnOkBigtext() {
console.log('this.pacsParams', this.pacsParams)
this.doctorCheck.checkItemList[0].result = this.pacsParams.result
this.doctorCheck.checkSummaryList = [{
id: Math.random(),
registerCheckId: this.doctorCheck.RegisterCheckEdit.id,
summary: this.pacsParams.summary,
summaryFlag: 'N',
}]
this.save()
this.dialogDcm = false
},
// pacs
handlePacsResult(row, index, pacsResult) {
Object.assign(this.pacsParams, pacsResult)
},
// Dcm // Dcm
btnBrowseDcmBak() { btnBrowseDcmBak() {
if (!this.doctorCheck.RegisterCheckId) { if (!this.doctorCheck.RegisterCheckId) {

18
src/components/doctorCheck/PacsTemplate.vue

@ -102,7 +102,7 @@ export default {
...mapState(["window", "dialogWin"]), ...mapState(["window", "dialogWin"]),
mainHeight() { mainHeight() {
return this.window.pageHeight - 78;
return this.window.pageHeight - 118;
}, },
tableHeight() { tableHeight() {
@ -127,7 +127,7 @@ export default {
init() { init() {
this.btnClear() this.btnClear()
this.description = [] this.description = []
this.result = this.refParams.row.result
this.result = this.refParams.result || ''
this.summary = this.refParams.summary || '' this.summary = this.refParams.summary || ''
}, },
@ -326,6 +326,20 @@ export default {
"refParams.row.itemId"(newVal, oldVal) { "refParams.row.itemId"(newVal, oldVal) {
if (newVal != oldVal) this.init(); if (newVal != oldVal) this.init();
}, },
"refParams.result"(newVal, oldVal) {
if (newVal != oldVal){
console.log("refParams.result",newVal, oldVal)
this.result = newVal
}
},
"refParams.summary"(newVal, oldVal) {
if (newVal != oldVal){
console.log("refParams.summary",newVal, oldVal)
this.summary = newVal
}
},
}, },
}; };
</script> </script>

4
src/views/common-settings/BigtextResultType.vue

@ -102,7 +102,7 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item label="项目类别" prop="itemTypeId"> <el-form-item label="项目类别" prop="itemTypeId">
<el-cascader ref="depref" @change="itemTypeIdchang" :show-all-levels="false" <el-cascader ref="depref" @change="itemTypeIdchang" :show-all-levels="false"
v-model="form.itemTypeId" :options="itemtypes" :props="{
v-model="form.itemTypeId" :options="itemtypes" filterable :props="{
checkStrictly: true, checkStrictly: true,
children: 'treeChildren', children: 'treeChildren',
label: 'displayName', label: 'displayName',
@ -430,6 +430,8 @@ export default {
// Object.assign(this.$data.form, this.$options.data().form); // Object.assign(this.$data.form, this.$options.data().form);
this.form = this.$options.data().form; this.form = this.$options.data().form;
this.form.parentId = this.row.bigtextResultTypeId; this.form.parentId = this.row.bigtextResultTypeId;
this.form.itemTypeId = this.row.itemTypeId;
this.dialogVisible = true; this.dialogVisible = true;
if (this.$refs.ruleForm !== undefined) { if (this.$refs.ruleForm !== undefined) {
this.$refs.ruleForm.resetFields(); this.$refs.ruleForm.resetFields();

2
src/views/doctorCheck/doctorCheck.vue

@ -38,7 +38,7 @@
</div> </div>
<div v-if="isCheckPicture" class="demo-image__preview" <div v-if="isCheckPicture" class="demo-image__preview"
:style="'margin-top: 2px;margin-left: 2px;height:110px;width:' + (window.pageWidth - 200 - 110 - 45 - 2) + 'px;'"> :style="'margin-top: 2px;margin-left: 2px;height:110px;width:' + (window.pageWidth - 200 - 110 - 45 - 2) + 'px;'">
<CheckPicture :doctorBtnDisabled="doctorBtnDisabled" />
<CheckPicture :doctorBtnDisabled="doctorBtnDisabled" :save="save"/>
</div> </div>
<div :style="'margin-top: 2px;margin-left: 2px;width:' + (window.pageWidth - 200 - 110 - 15 - 2) + 'px;'"> <div :style="'margin-top: 2px;margin-left: 2px;width:' + (window.pageWidth - 200 - 110 - 15 - 2) + 'px;'">

10
src/views/fee-settings/ResultSetting.vue

@ -266,7 +266,7 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item label="词条模板" prop="bigtextResultTemplateId"> <el-form-item label="词条模板" prop="bigtextResultTemplateId">
<el-cascader v-model="formCon.bigtextResultTemplateId" :options="pacsTemplateTree" popper-class="example" <el-cascader v-model="formCon.bigtextResultTemplateId" :options="pacsTemplateTree" popper-class="example"
ref="bigtextResultTemplateIds" @change="changeTemplate" :props="{
ref="bigtextResultTemplateIds" @change="changeTemplateCon" :props="{
value: 'id', value: 'id',
label: 'displayName', label: 'displayName',
children: 'children', children: 'children',
@ -653,6 +653,14 @@ export default {
} }
}, },
changeTemplateCon(v) {
if (v) {
this.formCon.bigtextResultTemplateId = v[v.length - 1]
} else {
this.formCon.bigtextResultTemplateId = null
}
},
bindidclose() { bindidclose() {
this.form = this.$options.data().form; this.form = this.$options.data().form;
}, },

Loading…
Cancel
Save