pengjun 4 days ago
parent
commit
fe59095274
  1. 2
      src/components/doctorCheck/ButtonList.vue
  2. 25
      src/components/sumDoctorCheck/CheckDetails.vue
  3. 450
      src/views/fee-settings/Item.vue

2
src/components/doctorCheck/ButtonList.vue

@ -164,7 +164,7 @@
</div>
</el-dialog>
<el-dialog title="职业病" :visible.sync="dialogWin.OccDisease" width="800px" :close-on-click-modal="false"
<el-dialog title="职业病" :visible.sync="dialogWin.OccDisease" width="900px" :close-on-click-modal="false"
:append-to-body="true">
<OccDisease />
</el-dialog>

25
src/components/sumDoctorCheck/CheckDetails.vue

@ -66,14 +66,14 @@
</tr>
<tr style="text-align: center;" height="24">
<td width="200">项目</td>
<td width="270">本次结果</td>
<td width="270">上次结果</td>
<td width="270">上上次结果</td>
<td width="100">参考值</td>
<td width="100">警告参考值</td>
<td width="160">项目</td>
<td width="280">本次结果</td>
<td width="280">上次结果</td>
<td width="280">上上次结果</td>
<td width="110">参考范围</td>
<td width="110">警告范围</td>
<td width="80">单位</td>
<td width="50">提示</td>
<td width="60">提示</td>
</tr>
<tr height="24" v-for="(item3, index) in details.items" :key="index">
<td class="tdCellClass">{{ item3.itemName }}</td>
@ -88,7 +88,10 @@
<td align="center" class="tdCellClass">{{ item3.resultStatusName }}</td>
</tr>
<tr height="24">
<td colspan="8" class="tdCellClass" v-html="`小结:${mergeSummarys(details.summarys, 'summary')}`"></td>
<td class="tdCellClass">小结</td>
<td class="tdCellClassXJ" v-html="`${mergeSummarys(details.summarys, 'summary')}`"></td>
<td class="tdCellClassXJ" v-html="`${mergeSummarys(details.previousSummarys, 'summary')}`"></td>
<td class="tdCellClassXJ" v-html="`${mergeSummarys(details.previousTwoSummarys, 'summary')}`"></td>
</tr>
</table>
@ -226,6 +229,12 @@ export default {
padding: 0 5px;
}
.tdCellClassXJ {
padding: 0 5px;
color: black;
font-weight: 500;
}
::v-deep .el-table td.el-table__cell,
.el-table th.el-table__cell.is-leaf {
padding: 0;

450
src/views/fee-settings/Item.vue

@ -223,14 +223,14 @@
</div> -->
<el-dialog :title="title == 1 ? '新增' : '编辑'" :visible.sync="dialogVisible" width="800px"
:close-on-click-modal="false">
<el-form ref="form" :model="form" label-width="110px" :rules="rules">
<el-form ref="form" :model="form" label-width="80px" :rules="rules">
<el-row>
<el-col :span="10">
<el-form-item label="项目编号" prop="">
<el-input v-model="form.id" :disabled="true" size="small"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-col :span="10">
<el-form-item label="项目类别" prop="itemTypeId">
<el-cascader v-model="form.itemTypeId" :options="itemTypeId" popper-class="example" ref="itemTypeId"
@change="onchange" :props="{
@ -239,22 +239,16 @@
children: 'treeChildren',
checkStrictly: true,
expandTrigger: 'hover',
}" size="small"></el-cascader>
<!-- <el-select
v-model="form.itemTypeId"
placeholder="请选择"
style="width: 100%"
>
<el-option
v-for="item in itemTypeId"
:key="item.id"
:label="item.displayName"
:value="item.id"
>
</el-option>
</el-select> -->
}" size="small" style="width: 236px;"></el-cascader>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="启用" prop="">
<el-checkbox v-model="isActiveBox" @change="changeBox('isActive')" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="名称" prop="displayName">
<el-input v-model="form.displayName" ref="refinput" size="small"></el-input>
@ -265,11 +259,13 @@
<el-input v-model="form.englishShortName" size="small"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-col :span="8">
<el-form-item label="价格" prop="">
<el-input v-model="form.price" size="small"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<!-- <el-col :span="8">
<el-form-item label="价表项目编码" prop="">
<el-select
@ -287,7 +283,7 @@
</el-select>
</el-form-item>
</el-col> -->
<el-col :span="6">
<el-col :span="8">
<el-form-item label="单位" prop="">
<el-select v-model="form.unitId" placeholder="请选择" style="width: 100%" filterable size="small">
<el-option v-for="item in unitId" :key="item.id" :label="item.displayName" :value="item.id">
@ -303,14 +299,12 @@
>
</el-autocomplete> -->
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="生成小结" prop="">
<el-checkbox v-model="isProduceSummaryBox" @change="changeBox('isProduceSummary')" />
</el-form-item>
</el-col>
</el-col>
<el-col :span="8">
<el-form-item label="参考范围类型" prop="">
<el-form-item>
<template slot="label">
<span style="font-size: 12px;">参考范围类型</span>
</template>
<el-select v-model="form.referenceRangeTypeFlag" placeholder="请选择" style="width: 100%" size="small">
<el-option v-for="item in referenceRangeTypeFlag" :key="item.value" :label="item.label"
:value="item.value">
@ -320,25 +314,20 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="名称进入小结" prop="">
<el-form-item>
<template slot="label">
<span style="font-size: 12px;">名称进入小结</span>
</template>
<el-checkbox v-model="isNameIntoSummaryBox" @change="changeBox('isNameIntoSummary')" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="启用诊断函数" prop="">
<el-checkbox v-model="isDiagnosisFunctionBox" @change="changeBox('isDiagnosisFunction')" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="诊断函数" prop="">
<el-input v-model="form.diagnosisFunction" :disabled="disableddiagnosisFunction" size="small">
<el-button slot="append" icon="el-icon-more" v-if="isDiagnosisFunctionBox" @click="
(diagnosisFunctionBox = true),
(diagnosisFunctionText = form.diagnosisFunction)
" size="small"></el-button>
</el-input>
<el-form-item label="生成小结">
<el-checkbox v-model="isProduceSummaryBox" @change="changeBox('isProduceSummary')" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-row>
<el-form-item label="默认结果" prop="">
@ -352,7 +341,9 @@
</el-form-item>
</el-row>
</el-col>
<el-col :span="3">
</el-row>
<el-row>
<el-col :span="4">
<el-form-item label="是计算项目" prop="">
<el-checkbox v-model="isCalculationItemBox" @change="changeBox('isCalculationItem')" />
</el-form-item>
@ -367,12 +358,15 @@
</el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="输入结果校验" prop="">
<el-col :span="4">
<el-form-item>
<template slot="label">
<span style="font-size: 12px;">输入结果校验</span>
</template>
<el-input v-model="form.inputCheck" size="small"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-col :span="4">
<el-form-item label="仪器类别" prop="">
<el-select v-model="form.deviceTypeId" placeholder="请选择" size="small" @change="quckRusetform">
<el-option v-for="item in deviceTypeId" :key="item.id" :label="item.displayName" :value="item.id">
@ -380,8 +374,41 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="报告对比" prop="">
<el-checkbox v-model="form.isReportContrast" size="small" true-label="Y" false-label="N" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4">
<el-form-item>
<template slot="label">
<span style="font-size: 12px;">启用诊断函数</span>
</template>
<el-checkbox v-model="isDiagnosisFunctionBox" @change="changeBox('isDiagnosisFunction')" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="结果换行标志" prop="">
<el-form-item label="诊断函数" prop="">
<el-input v-model="form.diagnosisFunction" :disabled="disableddiagnosisFunction" size="small">
<el-button slot="append" icon="el-icon-more" v-if="isDiagnosisFunctionBox" @click="
(diagnosisFunctionBox = true),
(diagnosisFunctionText = form.diagnosisFunction)
" size="small"></el-button>
</el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="继续处理" prop="">
<el-checkbox v-model="isContinueProcessBox" @change="changeBox('isContinueProcess')" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<template slot="label">
<span style="font-size: 12px;">结果换行标志</span>
</template>
<el-select v-model="form.lineModeFlag" placeholder="请选择" style="width: 100%" size="small">
<el-option v-for="item in dict.lineModeFlag" :key="item.id" :label="item.displayName" :value="item.id">
</el-option>
@ -389,11 +416,9 @@
<!-- <el-input v-model="form.referenceRangeTypeFlag"></el-input> -->
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item label="继续处理" prop="">
<el-checkbox v-model="isContinueProcessBox" @change="changeBox('isContinueProcess')" />
</el-form-item>
</el-col>
</el-row>
<!-- <el-col :span="8">
<el-form-item label="项目结果模板" prop="resultTemplateTypeFlag">
<el-input v-model="form.resultTemplateTypeFlag"
@ -414,39 +439,37 @@
</el-select>
</el-form-item>
</el-col> -->
<el-col :span="3">
<el-form-item label="启用" prop="">
<el-checkbox v-model="isActiveBox" @change="changeBox('isActive')" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="报告对比" prop="">
<el-checkbox v-model="form.isReportContrast" size="small" true-label="Y" false-label="N"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4">
<el-form-item label="启用危急值函数" prop="isCriticalValueFunction">
<el-checkbox v-model="form.isCriticalValueFunction" size="small" true-label="Y" false-label="N"/>
</el-form-item>
<el-form-item prop="isCriticalValueFunction">
<template slot="label">
<span style="font-size: 11px;">启用危急值函数</span>
</template>
<el-checkbox v-model="form.isCriticalValueFunction" size="small" true-label="Y" false-label="N" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="危急值函数" prop="criticalValueFunction">
<el-input v-model="form.criticalValueFunction" disabled size="small">
<el-button slot="append" icon="el-icon-more" v-if="form.isCriticalValueFunction == 'Y'" @click="dialogCriticalValueFunction = true" size="small"></el-button>
<el-button slot="append" icon="el-icon-more" v-if="form.isCriticalValueFunction == 'Y'"
@click="dialogCriticalValueFunction = true" size="small"></el-button>
</el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="启用随访函数" prop="isFollowUpFunction">
<el-checkbox v-model="form.isFollowUpFunction" size="small" true-label="Y" false-label="N"/>
</el-form-item>
<el-form-item prop="isFollowUpFunction">
<template slot="label">
<span style="font-size: 12px;">启用随访函数</span>
</template>
<el-checkbox v-model="form.isFollowUpFunction" size="small" true-label="Y" false-label="N" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="随访函数" prop="followUpFunction">
<el-input v-model="form.followUpFunction" disabled size="small">
<el-button slot="append" icon="el-icon-more" v-if="form.isFollowUpFunction == 'Y'" @click="dialogFollowUpFunction = true" size="small"></el-button>
<el-button slot="append" icon="el-icon-more" v-if="form.isFollowUpFunction == 'Y'"
@click="dialogFollowUpFunction = true" size="small"></el-button>
</el-input>
</el-form-item>
</el-col>
@ -461,7 +484,7 @@
</el-col>
<el-col :span="7">
<el-form-item label="创建时间" label-width="70px">
<el-input :value="form.creationTime | dateFormat" disabled style="width: 90%" size="small"></el-input>
<el-input :value="form.creationTime | dateFormat" disabled size="small"></el-input>
</el-form-item>
</el-col>
<el-col :span="5">
@ -471,7 +494,7 @@
</el-col>
<el-col :span="7">
<el-form-item label="修改时间" label-width="70px">
<el-input :value="form.lastModificationTime | dateFormat" disabled style="width: 90%"
<el-input :value="form.lastModificationTime | dateFormat" disabled
size="small"></el-input>
</el-form-item>
</el-col>
@ -548,120 +571,120 @@
<!-- 结果模板弹框 -->
<el-dialog title="结果模板" :visible.sync="rurestdialogVisible" width="80%" :close-on-click-modal="false">
<el-tabs v-model="activeName" type="border-card">
<el-tab-pane label="结果模板" name="first">
<div style="display: flex">
<div style="width: 90%">
<el-table :data="reusttableData" @row-click="reustclick" row-key="id" highlight-current-row
style="width: 100%" :height="window.pageHeight < 600 ? 270 : window.pageHeight - 330" ref="reusttableData"
class="el-table__body-wrappers tbodys">
<!-- <el-table-column label="编号" prop="id"></el-table-column>
<el-tab-pane label="结果模板" name="first">
<div style="display: flex">
<div style="width: 90%">
<el-table :data="reusttableData" @row-click="reustclick" row-key="id" highlight-current-row
style="width: 100%" :height="window.pageHeight < 600 ? 270 : window.pageHeight - 330"
ref="reusttableData" class="el-table__body-wrappers tbodys">
<!-- <el-table-column label="编号" prop="id"></el-table-column>
<el-table-column label="项目编号" prop="itemId"></el-table-column> -->
<el-table-column label="结果" prop="result" width="300"></el-table-column>
<el-table-column label="诊断" width="200">
<template slot-scope="scope">
{{ dddw(diagnosisId, "id", scope.row.diagnosisId, "displayName") }}
</template>
</el-table-column>
<el-table-column label="小结前加名称" width="120">
<template slot-scope="scope">
<el-checkbox v-model="scope.row.isNameIntoSummary" true-label="Y" false-label="N" disabled />
</template>
</el-table-column>
<el-table-column label="结果状态" width="100">
<template slot-scope="scope">
{{ getChangeResult(scope.row.resultStatusId) }}
</template>
</el-table-column>
<el-table-column label="结果进入小结" width="120">
<template slot-scope="scope">
<el-checkbox v-model="scope.row.isResultIntoSummary" true-label="Y" false-label="N" disabled />
</template>
</el-table-column>
<el-table-column label="操作" align="center">
<template>
<el-tag class="moves" style="
<el-table-column label="结果" prop="result" width="300"></el-table-column>
<el-table-column label="诊断" width="200">
<template slot-scope="scope">
{{ dddw(diagnosisId, "id", scope.row.diagnosisId, "displayName") }}
</template>
</el-table-column>
<el-table-column label="小结前加名称" width="120">
<template slot-scope="scope">
<el-checkbox v-model="scope.row.isNameIntoSummary" true-label="Y" false-label="N" disabled />
</template>
</el-table-column>
<el-table-column label="结果状态" width="100">
<template slot-scope="scope">
{{ getChangeResult(scope.row.resultStatusId) }}
</template>
</el-table-column>
<el-table-column label="结果进入小结" width="120">
<template slot-scope="scope">
<el-checkbox v-model="scope.row.isResultIntoSummary" true-label="Y" false-label="N" disabled />
</template>
</el-table-column>
<el-table-column label="操作" align="center">
<template>
<el-tag class="moves" style="
cursor: move;
background-color: rgb(245, 245, 245);
border: none;
" draggable="true">
<i class="el-icon-d-caret" style="width: 1rem; height: 1rem; color: rgb(113, 113, 113)"></i>
</el-tag>
</template>
</el-table-column>
<el-table-column label="创建者" width="100">
<template slot-scope="scope">
{{ scope.row.creatorName }}
</template>
</el-table-column>
<el-table-column label="创建时间" width="200">
<template slot-scope="scope">
{{ scope.row.creationTime | dateFormat }}
</template>
</el-table-column>
<el-table-column label="修改者" width="100">
<template slot-scope="scope">
{{ scope.row.lastModifierName }}
</template>
</el-table-column>
<el-table-column label="修改时间" width="200">
<template slot-scope="scope">
{{ scope.row.lastModificationTime | dateFormat }}
</template>
</el-table-column>
</el-table>
</div>
<div style="margin-top: 5px; margin-left: 15px; width: 10%">
<el-button type="" @click="increase" class="commonbutton">添加</el-button>
<div style="margin-top: 5px">
<el-button type="" @click="resultediting" class="commonbutton">编辑</el-button>
</div>
<div style="margin-top: 5px">
<el-button type="" @click="delemtdelite" class="deleteButton">删除</el-button>
</div>
<div style="margin-top: 5px">
<el-button type="" @click="resulttopping" class="commonbutton">置顶</el-button>
</div>
<div style="margin-top: 5px">
<el-button type="" @click="resulttoppings" class="commonbutton">置底</el-button>
</div>
<div style="margin-top: 5px">
<el-button type="" :disabled="isshows" @click="assertions" class="commonbutton">排序</el-button>
</div>
<div style="margin-top: 5px">
<el-button type="" :disabled="isshows" @click="resultcancellation" class="commonbutton">取消</el-button>
</div>
<!-- <div style="margin-top: 5px">
<i class="el-icon-d-caret" style="width: 1rem; height: 1rem; color: rgb(113, 113, 113)"></i>
</el-tag>
</template>
</el-table-column>
<el-table-column label="创建者" width="100">
<template slot-scope="scope">
{{ scope.row.creatorName }}
</template>
</el-table-column>
<el-table-column label="创建时间" width="200">
<template slot-scope="scope">
{{ scope.row.creationTime | dateFormat }}
</template>
</el-table-column>
<el-table-column label="修改者" width="100">
<template slot-scope="scope">
{{ scope.row.lastModifierName }}
</template>
</el-table-column>
<el-table-column label="修改时间" width="200">
<template slot-scope="scope">
{{ scope.row.lastModificationTime | dateFormat }}
</template>
</el-table-column>
</el-table>
</div>
<div style="margin-top: 5px; margin-left: 15px; width: 10%">
<el-button type="" @click="increase" class="commonbutton">添加</el-button>
<div style="margin-top: 5px">
<el-button type="" @click="resultediting" class="commonbutton">编辑</el-button>
</div>
<div style="margin-top: 5px">
<el-button type="" @click="delemtdelite" class="deleteButton">删除</el-button>
</div>
<div style="margin-top: 5px">
<el-button type="" @click="resulttopping" class="commonbutton">置顶</el-button>
</div>
<div style="margin-top: 5px">
<el-button type="" @click="resulttoppings" class="commonbutton">置底</el-button>
</div>
<div style="margin-top: 5px">
<el-button type="" :disabled="isshows" @click="assertions" class="commonbutton">排序</el-button>
</div>
<div style="margin-top: 5px">
<el-button type="" :disabled="isshows" @click="resultcancellation" class="commonbutton">取消</el-button>
</div>
<!-- <div style="margin-top: 5px">
<el-button type="primary" @click="templatecategory"
>模板类别</el-button
>
</div> -->
<div style="margin-top: 5px; margin-bottom: 14px">
<el-button type="" @click="diagnosticmatching" class="commonbutton">诊断匹配</el-button>
<div style="margin-top: 5px; margin-bottom: 14px">
<el-button type="" @click="diagnosticmatching" class="commonbutton">诊断匹配</el-button>
</div>
</div>
</div>
</div>
</div>
</el-tab-pane>
<el-tab-pane label="词条类别" name="second">
<div style="display: flex">
<div style="flex:1;overflow: scroll;height:450px;" :style="'overflow: scroll;height:' + (window.pageHeight < 600 ? 270 : window.pageHeight - 330) + 'px;'">
<el-tree :data="menuInfoView" :props="treeprops"
node-key="bigtextResultTypeId" show-checkbox
default-expand-all
:default-checked-keys="defaultExpandedKeys" highlight-current ref="customerOrgTree" size="small"/>
</div>
<div style="margin-top: 5px; margin-left: 15px;">
<el-button type="" @click="saveEntry" class="commonbutton">保存</el-button>
</div>
</div>
</el-tab-pane>
</el-tabs>
</el-tab-pane>
<el-tab-pane label="词条类别" name="second">
<div style="display: flex">
<div style="flex:1;overflow: scroll;height:450px;"
:style="'overflow: scroll;height:' + (window.pageHeight < 600 ? 270 : window.pageHeight - 330) + 'px;'">
<el-tree :data="menuInfoView" :props="treeprops" node-key="bigtextResultTypeId" show-checkbox
default-expand-all :default-checked-keys="defaultExpandedKeys" highlight-current ref="customerOrgTree"
size="small" />
</div>
<div style="margin-top: 5px; margin-left: 15px;">
<el-button type="" @click="saveEntry" class="commonbutton">保存</el-button>
</div>
</div>
</el-tab-pane>
</el-tabs>
<el-divider></el-divider>
<span slot="footer" class="dialog-footer">
<el-button @click="
(rurestdialogVisible = false), (rusetform = {}), (curRows = {}),(activeName='first')
(rurestdialogVisible = false), (rusetform = {}), (curRows = {}), (activeName = 'first')
" class="difference"> </el-button>
<el-button type="primary" @click="
(rurestdialogVisible = false), (rusetform = {}), (curRows = {}),(activeName='first')
(rurestdialogVisible = false), (rusetform = {}), (curRows = {}), (activeName = 'first')
" class="commonbutton"> </el-button>
</span>
</el-dialog>
@ -692,7 +715,8 @@
<el-col :span="8">
<el-form-item label="诊断编号">
<el-select v-model="rusetform.diagnosisId" placeholder="请选择" filterable :filter-method="remoteMethod"
clearable @change="quckRusetforms" default-first-option size="small" popper-class="dddwSelect" :popper-append-to-body="false">
clearable @change="quckRusetforms" default-first-option size="small" popper-class="dddwSelect"
:popper-append-to-body="false">
<el-option v-for="item in quickAsb" :key="item.id" :label="item.displayName" :value="item.id">
</el-option>
</el-select>
@ -727,7 +751,7 @@
<el-button type="" @click="rusteronsubmit" class="commonbutton"> </el-button>
</span>
</el-dialog>
<!-- 参考范围弹框 -->
<el-dialog title="参考范围" :visible.sync="referencerangedialogVisible" width="80%" :close-on-click-modal="false">
<el-row>
@ -948,7 +972,8 @@
</span>
</el-dialog>
<!-- 危急值函数弹框 -->
<el-dialog title="危急值函数设置" :visible.sync="dialogCriticalValueFunction" width="90%" :close-on-click-modal="false" fullscreen>
<el-dialog title="危急值函数设置" :visible.sync="dialogCriticalValueFunction" width="90%" :close-on-click-modal="false"
fullscreen>
<el-form label-width="110px">
<el-row>
<el-col :span="24">
@ -960,7 +985,8 @@
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="(dialogCriticalValueFunction = false), (form.criticalValueFunction = '')" class="difference">
<el-button @click="(dialogCriticalValueFunction = false), (form.criticalValueFunction = '')"
class="difference">
</el-button>
<el-button type="primary" @click="dialogCriticalValueFunction = false" class="commonbutton"> </el-button>
</span>
@ -1022,7 +1048,7 @@ import {
import { unitlist, instrumentlist } from "@/request/systemapi";
import Sortable from "sortablejs";
import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { deepCopy, dddw, tcdate} from "../../utlis/proFunc";
import { deepCopy, dddw, tcdate } from "../../utlis/proFunc";
import ReferenceRange from "../../components/itemSet/ReferenceRange.vue";
import { mapState, mapActions } from "vuex";
export default {
@ -1153,11 +1179,11 @@ export default {
isActive: "",
lineModeFlag: '2',
deviceTypeId: null,
isCriticalValueFunction:'N',
criticalValueFunction:'',
isFollowUpFunction:'N',
followUpFunction:'',
isReportContrast:"N"
isCriticalValueFunction: 'N',
criticalValueFunction: '',
isFollowUpFunction: 'N',
followUpFunction: '',
isReportContrast: "N"
},
referenceRangeTypeFlag: [
{
@ -1391,8 +1417,8 @@ export default {
reference: [], //
resulttemp: [], //
disableddiagnosisFunction: true,
dialogFollowUpFunction:false, // 访
dialogCriticalValueFunction:false, //
dialogFollowUpFunction: false, // 访
dialogCriticalValueFunction: false, //
curRow: {},
diagnosisFunctionText: "",
calculationFunctionText: "",
@ -1409,16 +1435,16 @@ export default {
isshowes: true,
initItemTypeId: "",
deviceTypeId: [],
activeName:"first",
menuInfoView:[],
activeName: "first",
menuInfoView: [],
treeprops: {
label: "displayName", //displayName
value: "bigtextResultTypeId",
id: "bigtextResultTypeId",
children: "treeChildren",
checkStrictly: true
},
defaultExpandedKeys:[]
label: "displayName", //displayName
value: "bigtextResultTypeId",
id: "bigtextResultTypeId",
children: "treeChildren",
checkStrictly: true
},
defaultExpandedKeys: []
};
},
created() {
@ -2003,24 +2029,24 @@ export default {
}
);
},
saveEntry(){
let selectedNodes=this.$refs.customerOrgTree.getCheckedNodes()
let itemBigtextResultTypeIds=[]
for(let i=0;i<selectedNodes.length;i++){
if(!selectedNodes[i].treeChildren){
saveEntry() {
let selectedNodes = this.$refs.customerOrgTree.getCheckedNodes()
let itemBigtextResultTypeIds = []
for (let i = 0; i < selectedNodes.length; i++) {
if (!selectedNodes[i].treeChildren) {
itemBigtextResultTypeIds.push(selectedNodes[i].bigtextResultTypeId)
}
}
postapi("/api/app/item/CreateItemBigtextResultType",{
itemId:this.form.id,
itemBigtextResultTypeIds:itemBigtextResultTypeIds
}).then(
(res) => {
if (res.code != -1) {
this.$message.success("设置成功");
}
postapi("/api/app/item/CreateItemBigtextResultType", {
itemId: this.form.id,
itemBigtextResultTypeIds: itemBigtextResultTypeIds
}).then(
(res) => {
if (res.code != -1) {
this.$message.success("设置成功");
}
);
}
);
},
resulttemplate() {
let that = this;
@ -2029,7 +2055,7 @@ export default {
this.$message.warning("请选择操作的数据");
} else {
this.rurestdialogVisible = true;
if(this.$refs.customerOrgTree){
if (this.$refs.customerOrgTree) {
this.$refs.customerOrgTree.setCheckedKeys([]);
}
getapi(`/api/app/item-result-template/in-item-id/${this.form.id}`).then(
@ -2051,21 +2077,21 @@ export default {
}
}
);
postapi("/api/app/item/GetItemBigtextResultTypeByItemId",{
itemId:this.form.id
postapi("/api/app/item/GetItemBigtextResultTypeByItemId", {
itemId: this.form.id
}).then(
(res) => {
if (res.code != -1) {
let defaultExpandedKeys=[]
res.data.forEach((e)=>{
defaultExpandedKeys.push(e.itemBigtextResultTypeId)
let defaultExpandedKeys = []
res.data.forEach((e) => {
defaultExpandedKeys.push(e.itemBigtextResultTypeId)
})
this.defaultExpandedKeys = defaultExpandedKeys;
}
}
);
// //
// getapi("/api/app/item-type/by-code-all").then((res) => {
// this.resultitemtype = res.data;
@ -2582,7 +2608,7 @@ export default {
this.calculationFunctionText = "";
this.calculationFunctionBox = false;
},
//
Onsubmit() {
this.$refs.form.validate((v) => {

Loading…
Cancel
Save