|
|
|
@ -3,10 +3,10 @@ |
|
|
|
<div style="width: 95%"> |
|
|
|
<el-card> |
|
|
|
<div class="publiccss">组合项目</div> |
|
|
|
<div style="display: flex;margin-top:15px;"> |
|
|
|
<div style="display: flex;margin-top:7px;"> |
|
|
|
<div style="width: 15%;"> |
|
|
|
<div> |
|
|
|
<el-select v-model="department" placeholder="请选择" filterable :filter-method="remoteMethodes" default-first-option @change="quckDepartments" clearable> |
|
|
|
<el-select v-model="department" placeholder="请选择项目类别" filterable :filter-method="remoteMethodes" default-first-option @change="quckDepartments" clearable> |
|
|
|
<el-option |
|
|
|
v-for="item in quckDepartment" |
|
|
|
:key="item.id" |
|
|
|
@ -16,7 +16,7 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
<div style=" margin-top: 20px"> |
|
|
|
<div :style="'margin-top: 10px;overflow: scroll;border: 1px solid;height:'+ (window.pageHeight < 600 ? 410 : window.pageHeight - 200) + 'px;'"> |
|
|
|
<el-tree |
|
|
|
:data="itemTypeId" |
|
|
|
:props="treeprops" |
|
|
|
@ -28,17 +28,18 @@ |
|
|
|
></el-tree> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div style="width:85%;"> |
|
|
|
<div style="width:85%;margin-left:5px;"> |
|
|
|
<el-table |
|
|
|
:data="tableData" |
|
|
|
style="width: 100%;" |
|
|
|
row-key="id" |
|
|
|
:height="window.pageHeight < 600 ? 695 : window.pageHeight - 415" |
|
|
|
:height="window.pageHeight < 668 ? 200:(window.pageHeight - 120 - 358)" |
|
|
|
class="el-table__body-wrapper tbody" |
|
|
|
@row-click="rowick" |
|
|
|
highlight-current-row |
|
|
|
:row-style="{ height: '40px' }" |
|
|
|
ref="tableData" |
|
|
|
border |
|
|
|
> |
|
|
|
<el-table-column prop="id" label="编号" width="320"> |
|
|
|
</el-table-column> |
|
|
|
@ -83,10 +84,10 @@ |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<!-- table页 --> |
|
|
|
<el-tabs v-model="activeName"> |
|
|
|
<el-tabs v-model="activeName" size="small"> |
|
|
|
<el-tab-pane label="项目明细" name="first"> |
|
|
|
<div> |
|
|
|
<span style="margin-top: 10px; padding: 5px; margin-left: 19.8%" |
|
|
|
<span style="margin-top: 10px; padding: 5px; margin-left: 11.7%" |
|
|
|
>项目类别</span |
|
|
|
> |
|
|
|
<el-select |
|
|
|
@ -104,7 +105,7 @@ |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<span style="margin-left: 10%; padding: 5px">搜索选择</span> |
|
|
|
<span style="margin-left: 18.5%; padding: 5px">搜索选择</span> |
|
|
|
<el-select |
|
|
|
value-key="id" |
|
|
|
@change="selectitem" |
|
|
|
@ -136,19 +137,18 @@ |
|
|
|
> |
|
|
|
<div>{{ item.displayName }}</div> |
|
|
|
</div> --> |
|
|
|
<el-table :data="leftdata" :height="400" @row-dblclick="dbClickChoosedAsb" |
|
|
|
@selection-change="handleSelectionChange" size="small"> |
|
|
|
<el-table-column type="selection" align="center" /> |
|
|
|
<el-table :data="leftdata" :height="window.pageHeight < 668 ? 200:(window.pageHeight - 115 - 358)" @row-dblclick="dbClickChoosedAsb" border @selection-change="handleSelectionChange" @row-click="chooseAsbItem" highlight-current-row> |
|
|
|
<el-table-column type="index" align="center" label="序号"/> |
|
|
|
<el-table-column prop="displayName" label="未选项目" /> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div class="Selectbutton"> |
|
|
|
<!-- <div style="margin-top: 18px"> |
|
|
|
<el-button @click="addall" style="width:100%;" |
|
|
|
<div style=""> |
|
|
|
<el-button @click="addall" style="width:111px;" |
|
|
|
>全添加<i class="el-icon-caret-right"></i |
|
|
|
><i class="el-icon-caret-right"></i |
|
|
|
></el-button> |
|
|
|
</div> --> |
|
|
|
</div> |
|
|
|
<!-- <div style="margin-top: 18px"> |
|
|
|
<el-button @click="addobj" style="width: 111px" |
|
|
|
>添加<i class="el-icon-caret-right"></i> |
|
|
|
@ -159,22 +159,22 @@ |
|
|
|
>移去<i class="el-icon-caret-left"></i> |
|
|
|
</el-button> |
|
|
|
</div> --> |
|
|
|
<div style=""> |
|
|
|
<div style="margin-top: 18px"> |
|
|
|
<el-button @click="addAbs" style="width: 111px" |
|
|
|
>添加<i class="el-icon-caret-right"></i> |
|
|
|
</el-button> |
|
|
|
</div> |
|
|
|
<div style="margin-top: 35px"> |
|
|
|
<div style="margin-top: 18px"> |
|
|
|
<el-button @click="delAbs" style="width: 111px" |
|
|
|
>移除<i class="el-icon-caret-left"></i> |
|
|
|
</el-button> |
|
|
|
</div> |
|
|
|
<!-- <div style="margin-top: 18px"> |
|
|
|
<el-button @click="allclear" style="width:100%;" |
|
|
|
>全移去<i class="el-icon-caret-left"></i |
|
|
|
<div style="margin-top: 18px"> |
|
|
|
<el-button @click="allclear" style="width:111px;" |
|
|
|
>全移除<i class="el-icon-caret-left"></i |
|
|
|
><i class="el-icon-caret-left"></i> |
|
|
|
</el-button> |
|
|
|
</div> --> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="mainleftbox"> |
|
|
|
<!-- <div class="weixuan">已选项目</div> |
|
|
|
@ -187,35 +187,56 @@ |
|
|
|
> |
|
|
|
<div>{{ item.displayName }}</div> |
|
|
|
</div> --> |
|
|
|
<el-table :data="rightdata" height="400" width="100%" @row-dblclick="removeAbs" |
|
|
|
@selection-change="selecteditems" size="small"> |
|
|
|
<el-table-column type="selection" align="center" /> |
|
|
|
<el-table :data="rightdata" :height="window.pageHeight < 668 ? 200:(window.pageHeight - 115 - 358)" width="100%" @row-dblclick="removeAbs" border |
|
|
|
@selection-change="selecteditems" @row-click="removeAsbItem" highlight-current-row> |
|
|
|
<el-table-column type="index" align="center" label="序号"/> |
|
|
|
<el-table-column label="已选项目" prop="displayName" /> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="confirmcancellation"> |
|
|
|
<el-button type="" :disabled="isdislob" @click="Onsubmit">确定</el-button> |
|
|
|
<el-button type="" :disabled="isdislob">取消</el-button> |
|
|
|
</div> |
|
|
|
</el-tab-pane> |
|
|
|
<!-- 指引单信息 --> |
|
|
|
<el-tab-pane label="指引信息" name="second"> |
|
|
|
<div style="display: flex; width: 100%"> |
|
|
|
<div style="width: 90%"> |
|
|
|
<el-table |
|
|
|
:data="guidanceinformationdata" |
|
|
|
<el-form ref="guidanceinformation" :rules="guidelinesRules" :model="formdata"> |
|
|
|
<el-table |
|
|
|
:data="formdata.guidanceinformationdata" |
|
|
|
style="width: 100%" |
|
|
|
highlight-current-row |
|
|
|
@row-click="guiderow" |
|
|
|
:row-class-name="tableRowClassName" |
|
|
|
:height="window.pageHeight < 668 ? 200:(window.pageHeight - 70 - 358)" |
|
|
|
ref="guidanceinformationdata" |
|
|
|
class="guidelines" |
|
|
|
> |
|
|
|
<el-table-column prop="guide" label="指引信息" width="180"> |
|
|
|
<el-table-column label="体检中心" width="200"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-form-item :prop="'guidanceinformationdata.' + scope.$index + '.organizationUnitId'" :rules="guidelinesRules.organizationUnitId"> |
|
|
|
<el-select v-model="scope.row.organizationUnitId" size="small"> |
|
|
|
<el-option v-for="item in organizationUnitdata" :key="item.id" :label="item.displayName" :value="item.id" /> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="forSexId" label="性别" width="180"> |
|
|
|
<el-table-column label="性别" width="200"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-form-item :prop="'guidanceinformationdata.' + scope.$index + '.forSexId'" :rules="guidelinesRules.forSexId"> |
|
|
|
<el-select v-model="scope.row.forSexId" size="small"> |
|
|
|
<el-option v-for="item in forsexdata" :key="item.id" :label="item.displayName" :value="item.id" /> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="address" label="地址"> |
|
|
|
<el-table-column label="指引信息"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-form-item :prop="'guidanceinformationdata.' + scope.$index + '.guide'" :rules="guidelinesRules.guide"> |
|
|
|
<el-input v-model="scope.row.guide" required size="small" /> |
|
|
|
</el-form-item> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-button |
|
|
|
@ -223,7 +244,7 @@ |
|
|
|
@click="createabulletbox" |
|
|
|
style="margin-top: 50px; margin-left: 30px" |
|
|
|
class="commonbutton" |
|
|
|
>创建</el-button |
|
|
|
>新增</el-button |
|
|
|
> |
|
|
|
<div style="margin-top: 10px; margin-left: 30px"> |
|
|
|
<el-button |
|
|
|
@ -233,6 +254,14 @@ |
|
|
|
>删除</el-button |
|
|
|
> |
|
|
|
</div> |
|
|
|
<div style="margin-top: 10px; margin-left: 30px"> |
|
|
|
<el-button |
|
|
|
type="" |
|
|
|
@click="saveguidelines" |
|
|
|
class="commonbutton" |
|
|
|
>保存</el-button |
|
|
|
> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 科室改为体检中心 --> |
|
|
|
@ -264,7 +293,7 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="项目类别" prop="itemTypeId"> |
|
|
|
<el-select v-model="form.itemTypeId" placeholder="请选择"> |
|
|
|
<!-- <el-select v-model="form.itemTypeId" placeholder="请选择"> |
|
|
|
<el-option |
|
|
|
v-for="item in itemTypeId" |
|
|
|
:key="item.id" |
|
|
|
@ -272,7 +301,16 @@ |
|
|
|
:value="item.id" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> --> |
|
|
|
<el-cascader |
|
|
|
v-model="form.itemTypeId" |
|
|
|
:options="itemTypeId" |
|
|
|
:props="{ |
|
|
|
value: 'id', |
|
|
|
label: 'displayName', |
|
|
|
children: 'treeChildren' |
|
|
|
}"> |
|
|
|
</el-cascader> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
@ -280,16 +318,17 @@ |
|
|
|
<el-input |
|
|
|
v-model="form.displayName" |
|
|
|
ref="refinput" |
|
|
|
@input="$event=> changeUpdate($event)" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="简称" prop="shortName"> |
|
|
|
<el-form-item label="简称" prop=""> |
|
|
|
<el-input v-model="form.shortName"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="适用性别" prop="forSexId"> |
|
|
|
<el-form-item label="适用性别" prop=""> |
|
|
|
<el-select v-model="form.forSexId" placeholder="请选择"> |
|
|
|
<el-option |
|
|
|
v-for="item in forSexId" |
|
|
|
@ -302,12 +341,12 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="价格" prop="price"> |
|
|
|
<el-form-item label="价格" prop=""> |
|
|
|
<el-input v-model="form.price" type="number"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="仪器类别" prop="deviceTypeId"> |
|
|
|
<el-form-item label="仪器类别" prop=""> |
|
|
|
<el-select v-model="form.deviceTypeId" placeholder="请选择"> |
|
|
|
<el-option |
|
|
|
v-for="item in deviceTypeId" |
|
|
|
@ -338,7 +377,7 @@ |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item |
|
|
|
label="项目结果合并" |
|
|
|
prop="isItemResultMerger" |
|
|
|
prop="" |
|
|
|
label-width="110px" |
|
|
|
> |
|
|
|
<!-- <el-select |
|
|
|
@ -357,7 +396,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item label="餐前项目" prop="isBeforeEat"> |
|
|
|
<el-form-item label="餐前项目" prop=""> |
|
|
|
<!-- <el-select v-model="form.isBeforeEat" placeholder="请选择"> |
|
|
|
<el-option |
|
|
|
v-for="item in isBeforeEat" |
|
|
|
@ -397,7 +436,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item label="启用诊断" prop="isDiagnosisFunction"> |
|
|
|
<el-form-item label="启用诊断" prop=""> |
|
|
|
<!-- <el-select |
|
|
|
v-model="form.isDiagnosisFunction" |
|
|
|
placeholder="请选择" |
|
|
|
@ -414,7 +453,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="诊断函数" prop="diagnosisFunction"> |
|
|
|
<el-form-item label="诊断函数" prop=""> |
|
|
|
<el-input |
|
|
|
v-model="form.diagnosisFunction" |
|
|
|
:disabled="disableddiagnosisFunction" |
|
|
|
@ -426,7 +465,7 @@ |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item |
|
|
|
label="函数处理完毕" |
|
|
|
prop="isContinueProcess" |
|
|
|
prop="" |
|
|
|
label-width="110px" |
|
|
|
> |
|
|
|
<!-- <el-select |
|
|
|
@ -445,12 +484,12 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="候诊时间" prop="queueTime"> |
|
|
|
<el-form-item label="候诊时间" prop=""> |
|
|
|
<el-input v-model="form.queueTime" type="nember"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item label="体检报告" prop="isPictureRotate"> |
|
|
|
<el-form-item label="体检报告" prop=""> |
|
|
|
<!-- <el-select |
|
|
|
v-model="form.isPictureRotate" |
|
|
|
placeholder="请选择" |
|
|
|
@ -467,7 +506,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item label="检查项目" prop="isCheck"> |
|
|
|
<el-form-item label="检查项目" prop=""> |
|
|
|
<!-- <el-select v-model="form.isCheck" placeholder="请选择"> |
|
|
|
<el-option |
|
|
|
v-for="item in isCheck" |
|
|
|
@ -481,7 +520,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item label="启用" prop="isActive"> |
|
|
|
<el-form-item label="启用" prop=""> |
|
|
|
<!-- <el-select v-model="form.isActive" placeholder="请选择"> |
|
|
|
<el-option |
|
|
|
v-for="item in isActive" |
|
|
|
@ -562,7 +601,7 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<!-- <el-col :span="12"> |
|
|
|
<el-form-item label="组合项目" prop="asbitemId"> |
|
|
|
<el-select v-model="guideform.asbitemId" placeholder="请选择"> |
|
|
|
<el-option |
|
|
|
@ -574,7 +613,7 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> --> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="适用性别" prop="forSexId"> |
|
|
|
<el-select v-model="guideform.forSexId" placeholder="请选择"> |
|
|
|
@ -588,12 +627,11 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="指引内容" prop="guide"> |
|
|
|
<el-input |
|
|
|
v-model="guideform.guide" |
|
|
|
placeholder="请输入内容" |
|
|
|
style="width: 60%" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
@ -615,7 +653,7 @@ |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="诊断函数"> |
|
|
|
<el-input type="textarea" v-model="diagnosisFunctionText"></el-input> |
|
|
|
<el-input type="textarea" v-model="diagnosisFunctionText" :autosize="{ minRows: 12, maxRows: 12}"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
@ -626,7 +664,7 @@ |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
<!-- 按钮区域 --> |
|
|
|
<div style="margin-left: 10px; margin-top: 5%"> |
|
|
|
<div style="margin-left: 10px; margin-top: 3%"> |
|
|
|
<el-button type="" @click="addll" class="commonbutton">新增</el-button> |
|
|
|
<div style="margin-top: 10px"> |
|
|
|
<el-button type="" @click="editpopup" class="commonbutton" |
|
|
|
@ -664,6 +702,12 @@ |
|
|
|
>取消</el-button |
|
|
|
> |
|
|
|
</div> |
|
|
|
<div style="margin-top: 10px"> |
|
|
|
<el-button type="" :disabled="isdislob" @click="Onsubmit" class="commonbutton">确定项目</el-button> |
|
|
|
</div> |
|
|
|
<div style="margin-top: 10px"> |
|
|
|
<el-button type="" :disabled="isdislob" @click="projectCancellation" class="commonbutton">取消项目</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -672,11 +716,9 @@ import { mapState } from "vuex"; |
|
|
|
import Sortable from "sortablejs"; |
|
|
|
import { getapi, postapi, deletapi } from "@/api/api"; |
|
|
|
import { examinationgender, instrumentlist } from "@/request/systemapi"; |
|
|
|
import { |
|
|
|
getporjectlists |
|
|
|
} from "@/request/commonapi"; |
|
|
|
import { deepCopy,objCopy} from "../../utlis/proFunc"; |
|
|
|
import { |
|
|
|
getporjectlists, |
|
|
|
groupsandlist, |
|
|
|
projectlist, |
|
|
|
invoicetypelist, |
|
|
|
@ -723,7 +765,9 @@ export default { |
|
|
|
}, //指引信息的数据对象 |
|
|
|
organizationUnitdata: [], //体检中心 |
|
|
|
guidetitledialogVisible: false, |
|
|
|
guidanceinformationdata: [], |
|
|
|
formdata:{ |
|
|
|
guidanceinformationdata: [] |
|
|
|
}, |
|
|
|
activeName: "first", |
|
|
|
isdislob: true, |
|
|
|
filetelists: [], |
|
|
|
@ -792,22 +836,22 @@ export default { |
|
|
|
form: { |
|
|
|
displayName: "", |
|
|
|
shortName: "", |
|
|
|
forSexId: "", |
|
|
|
forSexId: "U", |
|
|
|
itemTypeId: "", |
|
|
|
price: "", |
|
|
|
deviceTypeId: "", |
|
|
|
price: "0", |
|
|
|
deviceTypeId: null, |
|
|
|
invoiceItemTypeId: "", |
|
|
|
isItemResultMerger: "", |
|
|
|
isBeforeEat: "", |
|
|
|
isItemResultMerger: "N", |
|
|
|
isBeforeEat: "N", |
|
|
|
clinicalMeaning: "", |
|
|
|
defaultResult: "", |
|
|
|
queueTime: "", |
|
|
|
isDiagnosisFunction: "", |
|
|
|
defaultResult: "未见异常", |
|
|
|
queueTime: "0", |
|
|
|
isDiagnosisFunction: "N", |
|
|
|
diagnosisFunction: "", |
|
|
|
isContinueProcess: "", |
|
|
|
isPictureRotate: "", |
|
|
|
isCheck: "", |
|
|
|
isActive: "", |
|
|
|
isContinueProcess: "N", |
|
|
|
isPictureRotate: "N", |
|
|
|
isCheck: "N", |
|
|
|
isActive: "Y", |
|
|
|
isActiveBox:true, |
|
|
|
isBeforeEatBox:false, |
|
|
|
isCheckBox:false, |
|
|
|
@ -960,23 +1004,53 @@ export default { |
|
|
|
diagnosisFunctionBox:false, |
|
|
|
diagnosisFunctionText:"", |
|
|
|
disableddiagnosisFunction:true, |
|
|
|
initfiletelists:[] |
|
|
|
initfiletelists:[], |
|
|
|
initItemTypeId:"", |
|
|
|
guidelinesRules:{ |
|
|
|
organizationUnitId: [ |
|
|
|
{ required: true, message: "请选择体检中心", trigger: "change" }, |
|
|
|
], |
|
|
|
forSexId: [ |
|
|
|
{ required: true, message: "请选择性别", trigger: "change" }, |
|
|
|
], |
|
|
|
guide: [ |
|
|
|
{ required: true, message: "请输入指引信息", trigger: "blur" }, |
|
|
|
] |
|
|
|
} |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.getlist(); |
|
|
|
// this.getlist(); |
|
|
|
this.gitprojectcategory(); |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.rowDrop(); |
|
|
|
this.gitfleslist(); |
|
|
|
this.getobtainguidance(); |
|
|
|
this.typeid() |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapState(["window"]), |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
removeAsbItem(row){ |
|
|
|
this.ary2=[row] |
|
|
|
}, |
|
|
|
chooseAsbItem(row){ |
|
|
|
this.ary1=[row] |
|
|
|
}, |
|
|
|
changeUpdate(e){ |
|
|
|
this.$delete(this.form,'displayName') |
|
|
|
this.$set(this.form,'displayName',e) |
|
|
|
}, |
|
|
|
projectCancellation(){ |
|
|
|
if(this.form.id==undefined || this.form.id==""){ |
|
|
|
this.$message.warning('请选择组合项目') |
|
|
|
this.isdislob=true |
|
|
|
}else{ |
|
|
|
this.rowick(this.form) |
|
|
|
this.isdislob=true |
|
|
|
} |
|
|
|
}, |
|
|
|
remoteMethods(keyWords) { |
|
|
|
if (keyWords) { |
|
|
|
this.filetelists = []; |
|
|
|
@ -1026,13 +1100,25 @@ export default { |
|
|
|
typeid() { |
|
|
|
projectlist().then((res) => { |
|
|
|
this.itemTypeId = res.data; |
|
|
|
this.itemTypeId=this.formatData(this.itemTypeId) |
|
|
|
console.log(this.itemTypeId) |
|
|
|
}); |
|
|
|
}, |
|
|
|
formatData(dataList){ |
|
|
|
for(let i=0;i<dataList.length;i++){ |
|
|
|
if(dataList[i].treeChildren.length<1){ |
|
|
|
dataList[i].treeChildren=undefined |
|
|
|
}else{ |
|
|
|
this.formatData(dataList[i].treeChildren) |
|
|
|
} |
|
|
|
} |
|
|
|
return dataList |
|
|
|
}, |
|
|
|
treeclick(data) { |
|
|
|
this.initItemTypeId=data.id |
|
|
|
getapi(`/api/app/asbitem/in-item-type/${data.id}`).then((res) => { |
|
|
|
this.tableData = res.data; |
|
|
|
console.log(res.data, "ress"); |
|
|
|
// this.getlist(); |
|
|
|
this.initTableData=[...res.data] |
|
|
|
}); |
|
|
|
}, |
|
|
|
remoteMethodes(keyWords) { |
|
|
|
@ -1056,6 +1142,7 @@ export default { |
|
|
|
this.quckDepartment.forEach(item=>{ |
|
|
|
if(e==item.id){ |
|
|
|
currentKey=item.itemTypeId |
|
|
|
this.initItemTypeId=item.itemTypeId |
|
|
|
} |
|
|
|
}) |
|
|
|
this.$refs['itemType'].setCurrentKey(currentKey) |
|
|
|
@ -1097,19 +1184,29 @@ export default { |
|
|
|
guiderow(row) { |
|
|
|
this.guideform = row; |
|
|
|
}, |
|
|
|
tableRowClassName({ row, rowIndex }) { |
|
|
|
row.index = rowIndex; |
|
|
|
}, |
|
|
|
//指引信息删除 |
|
|
|
deleteguidelines() { |
|
|
|
console.log(this.guideform.asbitemId); |
|
|
|
if (this.guideform.asbitemId == "") { |
|
|
|
if(this.curRow.id==undefined || this.curRow.id==""){ |
|
|
|
this.$message.warning("请先选择组合项目") |
|
|
|
}else{ |
|
|
|
if (this.guideform.asbitemId == "" || this.guideform.asbitemId==undefined) { |
|
|
|
this.$message.warning("请选择删除的数据"); |
|
|
|
} else { |
|
|
|
deletapi( |
|
|
|
`/api/app/asbitem-guide?OrganizationUnitId=${this.guideform.organizationUnitId}&AsbitemId=${this.guideform.AsbitemId}&ForSexId=${this.guideform.forSexId}` |
|
|
|
).then((res) => { |
|
|
|
this.$message.warning(res.message); |
|
|
|
console.log(res); |
|
|
|
}); |
|
|
|
console.log(this.guideform); |
|
|
|
this.$confirm("此操作确定后将永久删除该记录, 是否继续?", "提示", { |
|
|
|
confirmButtonText: "是", |
|
|
|
cancelButtonText: "否", |
|
|
|
type: "warning", |
|
|
|
}).then(() => { |
|
|
|
this.formdata.guidanceinformationdata.splice(this.guideform.index, 1); |
|
|
|
}).catch((err) => { |
|
|
|
if(err == 'cancel'){ |
|
|
|
this.$message.info("已取消删除"); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
//确定新增或者修改指引ruleForm |
|
|
|
@ -1143,17 +1240,59 @@ export default { |
|
|
|
}, |
|
|
|
//创建弹框 |
|
|
|
createabulletbox() { |
|
|
|
this.guidetitledialogVisible = true; |
|
|
|
this.guideform = {}; |
|
|
|
this.guidetitle = 1; |
|
|
|
this.publicapi(); |
|
|
|
// this.guidetitledialogVisible = true; |
|
|
|
// this.guideform = {}; |
|
|
|
// this.guidetitle = 1; |
|
|
|
// this.publicapi(); |
|
|
|
console.log(this.curRow.id) |
|
|
|
if(this.curRow.id==undefined || this.curRow.id==""){ |
|
|
|
this.$message.warning("请先选择组合项目") |
|
|
|
}else{ |
|
|
|
this.formdata.guidanceinformationdata.push({ |
|
|
|
organizationUnitId: "", |
|
|
|
asbitemId:this.curRow.id, |
|
|
|
forSexId: "", |
|
|
|
guide: "", |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
saveguidelines(){ |
|
|
|
this.$refs["guidanceinformation"].validate((valid, fields) => { |
|
|
|
if (!valid){ |
|
|
|
this.$message.warning(fields[Object.keys(fields)[0]][0].message); |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
if(this.curRow.id==undefined || this.curRow.id==""){ |
|
|
|
this.$message.warning("请先选择组合项目") |
|
|
|
}else{ |
|
|
|
let sampleGroupId = this.curRow.id; |
|
|
|
let sdate = []; |
|
|
|
this.formdata.guidanceinformationdata.forEach((element) => { |
|
|
|
sdate.push({ organizationUnitId: element.organizationUnitId, forSexId: element.forSexId,guide:element.guide }); |
|
|
|
}); |
|
|
|
postapi("/api/app/asbitemguide/createasbitemguidemany", { |
|
|
|
asbitemId:sampleGroupId, |
|
|
|
deatils:sdate |
|
|
|
}).then((res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
this.$message.success("保存成功"); |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
//获取指引信息guidanceinformationdata |
|
|
|
getobtainguidance() { |
|
|
|
getapi("/api/app/asbitem-guide").then((res) => { |
|
|
|
this.guidanceinformationdata = res.data; |
|
|
|
console.log(res, "指引信息"); |
|
|
|
getobtainguidance(e) { |
|
|
|
if(e!=undefined || e!=""){ |
|
|
|
getapi( `/api/app/asbitemguide/getlistinasbitemid?AsbitemId=${e}`).then((res) => { |
|
|
|
if(res.data!=-1){ |
|
|
|
this.formdata.guidanceinformationdata = [...res.data]; |
|
|
|
} |
|
|
|
}); |
|
|
|
}else{ |
|
|
|
this.$message.warning("请先选择组合项目") |
|
|
|
} |
|
|
|
}, |
|
|
|
//获取项目 |
|
|
|
gitfleslist() { |
|
|
|
@ -1170,15 +1309,30 @@ export default { |
|
|
|
}, |
|
|
|
//搜索选择 |
|
|
|
selectitem(v) { |
|
|
|
console.log(v) |
|
|
|
this.itemid = v.id; |
|
|
|
this.rightdata.forEach((item) => { |
|
|
|
if (v.id = item.id) { |
|
|
|
this.$message.warning("已有该项目"); |
|
|
|
} else { |
|
|
|
this.rightdata.push({ displayName: v.displayName,id:v.id }); |
|
|
|
if(v){ |
|
|
|
this.itemid = v.id; |
|
|
|
// this.rightdata.forEach((item) => { |
|
|
|
// if (v.id === item.id) { |
|
|
|
// this.$message.warning("已有该项目"); |
|
|
|
// } else { |
|
|
|
// this.rightdata.push({ displayName: v.displayName,id:v.id }); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
if(this.rightdata.length<1){ |
|
|
|
this.rightdata.push({ displayName: v.displayName,id:v.id }); |
|
|
|
this.isdislob=false |
|
|
|
}else{ |
|
|
|
for(let i=0;i<this.rightdata.length;i++){ |
|
|
|
if(v.id===this.rightdata[i].id){ |
|
|
|
return this.$message.warning("已有该项目"); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
this.rightdata.push({ displayName: v.displayName,id:v.id }); |
|
|
|
this.isdislob=false |
|
|
|
} |
|
|
|
}else{ |
|
|
|
this.remoteMethods() |
|
|
|
} |
|
|
|
}, |
|
|
|
Onsubmit() { |
|
|
|
let sampleGroupId = this.form.id; |
|
|
|
@ -1196,12 +1350,24 @@ export default { |
|
|
|
// sdate.push(sss); |
|
|
|
// }); |
|
|
|
// sdate.push(sss); |
|
|
|
postapi("/api/app/asbitem-detail/many", sdate).then((res) => { |
|
|
|
if (res.code!=-1) { |
|
|
|
this.$message.success("操作成功"); |
|
|
|
this.isdislob = true; |
|
|
|
} |
|
|
|
}); |
|
|
|
console.log({ |
|
|
|
asbitemI:sampleGroupId, |
|
|
|
details:sdate |
|
|
|
}) |
|
|
|
if(sampleGroupId== undefined || sampleGroupId==""){ |
|
|
|
this.$message.warning("请选择组合项目"); |
|
|
|
this.isdislob=true |
|
|
|
}else{ |
|
|
|
postapi("/api/app/asbitemdetail/createasbitemdetailmany", { |
|
|
|
asbitemId:sampleGroupId, |
|
|
|
details:sdate |
|
|
|
}).then((res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
this.$message.success("操作成功"); |
|
|
|
this.isdislob = true; |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
// console.log(sdate); |
|
|
|
// if (sampleGroupId == undefined) { |
|
|
|
// this.$message.warning("请选择列表"); |
|
|
|
@ -1291,22 +1457,26 @@ export default { |
|
|
|
}, |
|
|
|
//q全移去 |
|
|
|
allclear() { |
|
|
|
this.isdislob = false; |
|
|
|
if (this.rightdata.length > 0) { |
|
|
|
this.ary1 = this.rightdata; |
|
|
|
this.ary2 = this.leftdata; |
|
|
|
this.updatedate(); |
|
|
|
this.rightdata = []; |
|
|
|
this.rightdata.forEach(item=>{ |
|
|
|
this.leftdata.push(item); |
|
|
|
}) |
|
|
|
this.rightdata=[] |
|
|
|
this.isdislob = false; |
|
|
|
}else{ |
|
|
|
this.$message.warning('没有可移除的项目') |
|
|
|
} |
|
|
|
}, |
|
|
|
//全添加 |
|
|
|
addall() { |
|
|
|
this.isdislob = false; |
|
|
|
if (this.leftdata.length > 0) { |
|
|
|
this.ary1 = this.leftdata; |
|
|
|
this.ary2 = this.rightdata; |
|
|
|
this.updatedate(); |
|
|
|
this.leftdata = []; |
|
|
|
this.leftdata.forEach(item=>{ |
|
|
|
this.rightdata.push(item); |
|
|
|
}) |
|
|
|
this.leftdata=[] |
|
|
|
this.isdislob = false; |
|
|
|
}else{ |
|
|
|
this.$message.warning('没有可添加的项目') |
|
|
|
} |
|
|
|
}, |
|
|
|
//左侧双击事件 |
|
|
|
@ -1327,6 +1497,11 @@ export default { |
|
|
|
this.projectid = res.data; |
|
|
|
this.initprojectid=[...res.data] |
|
|
|
}); |
|
|
|
groupsandlist(this.pages).then((res) => { |
|
|
|
this.initTableData = [...res.data.items]; |
|
|
|
this.quckDepartment=res.data.items; |
|
|
|
console.log(res); |
|
|
|
}); |
|
|
|
}, |
|
|
|
//ary1 需要追加的数据 ary2目标数组 |
|
|
|
updatedate() { |
|
|
|
@ -1346,14 +1521,14 @@ export default { |
|
|
|
}, |
|
|
|
//项目类别选择 |
|
|
|
ischangs(v) { |
|
|
|
console.log(v); |
|
|
|
|
|
|
|
//`/api/app/diagnosis/in-item-type/${v}`3a0c50b9-9621-61b7-fc93-1cfab1ec0478 |
|
|
|
if(v){ |
|
|
|
getapi(`/api/app/item/in-item-type/${v}`).then((res) => { |
|
|
|
console.log(res); |
|
|
|
this.leftdata = res.data; |
|
|
|
let bq=[] |
|
|
|
bq = res.data.filter(item => !this.rightdata.some(ele=>ele.id === item.id)); |
|
|
|
this.leftdata = [...bq]; |
|
|
|
}); |
|
|
|
}else{ |
|
|
|
this.remoteMethod() |
|
|
|
} |
|
|
|
}, |
|
|
|
bindidclose() { |
|
|
|
@ -1414,7 +1589,7 @@ export default { |
|
|
|
} else { |
|
|
|
samplesetlow(this.form.id, 2).then((res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
this.getlist(); |
|
|
|
this.getItemIdList(); |
|
|
|
this.$message.success("操作成功"); |
|
|
|
} |
|
|
|
}); |
|
|
|
@ -1429,7 +1604,7 @@ export default { |
|
|
|
samplesetlow(this.form.id, 1).then((res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
this.$message.success("操作成功"); |
|
|
|
this.getlist(); |
|
|
|
this.getItemIdList(); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
@ -1447,10 +1622,11 @@ export default { |
|
|
|
}).then(() => { |
|
|
|
deletescombinationprojectid(this.form.id).then((res) => { |
|
|
|
console.log(res); |
|
|
|
if (res.code == 1) { |
|
|
|
if (res.code!=-1) { |
|
|
|
this.$message.success("删除成功"); |
|
|
|
this.getlist(); |
|
|
|
this.form = {}; |
|
|
|
this.getItemIdList(); |
|
|
|
Object.assign(this.$data.form, this.$options.data().form) |
|
|
|
this.curRow=this.$options.data().curRow |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
@ -1472,6 +1648,7 @@ export default { |
|
|
|
this.$refs.ruleForm.resetFields() |
|
|
|
} |
|
|
|
asbitemgetid(this.form.id).then((res) => { |
|
|
|
this.form=res.data |
|
|
|
if (res.data.isItemResultMerger == 'Y') { |
|
|
|
this.form.isItemResultMergerBox = true; |
|
|
|
} else { |
|
|
|
@ -1507,9 +1684,7 @@ export default { |
|
|
|
} else { |
|
|
|
this.form.isActiveBox = false; |
|
|
|
} |
|
|
|
objCopy(res.data, this.form); |
|
|
|
}); |
|
|
|
console.log(this.form) |
|
|
|
//性别 |
|
|
|
// examinationgender().then((res) => { |
|
|
|
// this.forSexId = res.data; |
|
|
|
@ -1519,9 +1694,9 @@ export default { |
|
|
|
this.forSexId = res.data; |
|
|
|
}); |
|
|
|
//项目类别 |
|
|
|
projectlist().then((res) => { |
|
|
|
this.itemTypeId = res.data; |
|
|
|
}); |
|
|
|
// projectlist().then((res) => { |
|
|
|
// this.itemTypeId = res.data; |
|
|
|
// }); |
|
|
|
//仪器类别 |
|
|
|
instrumentlist().then((res) => { |
|
|
|
this.deviceTypeId = res.data.items; |
|
|
|
@ -1559,10 +1734,14 @@ export default { |
|
|
|
isActive: this.form.isActive, |
|
|
|
}; |
|
|
|
newcombination(obj).then((res) => { |
|
|
|
if(res.data!=-1){ |
|
|
|
if(res.code!=-1){ |
|
|
|
this.$message.success("新增成功"); |
|
|
|
this.getlist(); |
|
|
|
this.getItemIdList(); |
|
|
|
this.dialogVisible = false; |
|
|
|
this.$nextTick(()=>{ |
|
|
|
this.$refs['tableData'].setCurrentRow(res.data); |
|
|
|
this.rowick(res.data) |
|
|
|
}) |
|
|
|
} |
|
|
|
}); |
|
|
|
} else if (this.title == 2) { |
|
|
|
@ -1602,15 +1781,25 @@ export default { |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
getItemIdList(){ |
|
|
|
getapi(`/api/app/asbitem/in-item-type/${this.initItemTypeId}`).then((res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
this.tableData = res.data; |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
//新增弹框 |
|
|
|
addll() { |
|
|
|
this.dialogVisible = true; |
|
|
|
if(this.initItemTypeId==undefined || this.initItemTypeId==""){ |
|
|
|
this.$message.warning("请选择项目类别") |
|
|
|
}else{ |
|
|
|
this.dialogVisible = true; |
|
|
|
this.title = 1; |
|
|
|
if (this.$refs.ruleForm !== undefined){ |
|
|
|
this.$refs.ruleForm.resetFields() |
|
|
|
} |
|
|
|
Object.assign(this.$data.form, this.$options.data().form) |
|
|
|
console.log(this.form) |
|
|
|
this.form.itemTypeId=this.initItemTypeId |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs.refinput.focus(); |
|
|
|
}); |
|
|
|
@ -1620,10 +1809,10 @@ export default { |
|
|
|
this.forSexId = res.data; |
|
|
|
console.log(this.forSexId); |
|
|
|
}); |
|
|
|
//项目类别 |
|
|
|
projectlist().then((res) => { |
|
|
|
this.itemTypeId = res.data; |
|
|
|
}); |
|
|
|
// //项目类别 |
|
|
|
// projectlist().then((res) => { |
|
|
|
// this.itemTypeId = res.data; |
|
|
|
// }); |
|
|
|
//仪器类别 |
|
|
|
instrumentlist().then((res) => { |
|
|
|
this.deviceTypeId = res.data.items; |
|
|
|
@ -1632,8 +1821,10 @@ export default { |
|
|
|
invoicetypelist().then((res) => { |
|
|
|
this.invoiceItemTypeId = res.data.items; |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
rowick(row) { |
|
|
|
this.curRow={...row} |
|
|
|
asbitemgetid(row.id).then((res) => { |
|
|
|
this.curRow = { ...res.data }; |
|
|
|
this.form = res.data; |
|
|
|
@ -1645,12 +1836,13 @@ export default { |
|
|
|
this.rightdata = [...res.data]; |
|
|
|
getapi(`/api/app/item/in-item-type/${row.itemTypeId}`).then((res) => { |
|
|
|
// this.leftdata = [...res.data]; |
|
|
|
let dq=res.data |
|
|
|
let bq=[] |
|
|
|
bq = res.data.filter(item => !this.rightdata.some(ele=>ele.id === item.id)); |
|
|
|
this.leftdata = [...bq]; |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.getobtainguidance(this.curRow.id); |
|
|
|
this.publicapi() |
|
|
|
}, |
|
|
|
getlist() { |
|
|
|
groupsandlist(this.pages).then((res) => { |
|
|
|
@ -1680,11 +1872,9 @@ export default { |
|
|
|
padding: 0; |
|
|
|
} |
|
|
|
.mainleftbox { |
|
|
|
width: 200px; |
|
|
|
height: 240px; |
|
|
|
width: 300px; |
|
|
|
border: 1px solid #ccc; |
|
|
|
margin-left: 3%; |
|
|
|
overflow-y: scroll; |
|
|
|
} |
|
|
|
.Selectbutton { |
|
|
|
margin-left: 3%; |
|
|
|
@ -1696,7 +1886,7 @@ export default { |
|
|
|
.mainbox { |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
margin-top: 20px; |
|
|
|
margin-top: 5px; |
|
|
|
} |
|
|
|
.weixuan { |
|
|
|
text-align: center; |
|
|
|
@ -1705,7 +1895,6 @@ export default { |
|
|
|
} |
|
|
|
.leftbox { |
|
|
|
width: 200px; |
|
|
|
height: 240px; |
|
|
|
border: 1px solid #ccc; |
|
|
|
} |
|
|
|
.instrumentcategory { |
|
|
|
@ -1761,10 +1950,16 @@ export default { |
|
|
|
:deep .el-input-group__append { |
|
|
|
padding: 0 11px; |
|
|
|
} |
|
|
|
:deep .el-tabs__header{ |
|
|
|
margin-bottom: 5px; |
|
|
|
} |
|
|
|
.my-el-form-item :deep .el-form-item__content{ |
|
|
|
line-height: 0!important; |
|
|
|
} |
|
|
|
.my-el-form-item :deep .el-input__icon{ |
|
|
|
line-height: 0!important; |
|
|
|
} |
|
|
|
.guidelines :deep .el-form-item{ |
|
|
|
margin-bottom: 0; |
|
|
|
} |
|
|
|
</style> |