12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682 |
- <template>
- <div style="min-height:100%" ref="viewBox">
- <crumbs :title="title" :param="$route.params" linkTo="ZskDiagBase"></crumbs>
- <div class="contents">
- <el-form
- :inline="true"
- ref="form"
- :label-position="labelPosition"
- class="add-new-form"
- label-width="100px"
- :model="form"
- :rules="rules"
- >
- <div class="content">
- <el-form-item label="疾病名称:" class="item" prop="conceptId" :rules="rules.conceptId">
- <el-select
- clearable
- remote
- filterable
- :remote-method="searchDiag"
- v-model.trim="form.conceptId"
- >
- <el-option
- v-for="item in conceptList"
- :key="item.conceptId"
- :label="item.conceptName"
- :value="item.conceptId"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="诊断依据描述:" prop="description" class="item">
- <el-input
- class="inps"
- maxlength="200"
- placeholder="请输入诊断依据描述"
- v-model.trim="form.description"
- ></el-input>
- </el-form-item>
- </div>
- <div class="content content-2">
- <div class="content-2-header">
- <p class="title1">
- <span class="star">*</span>诊断依据内容
- </p>
- <p class="title2">注:1、选择诊断依据类型后才能展示基础依据类型。2、医学内容可输入升高、降低、阴性、阳性等~</p>
- </div>
- <el-table
- size="mini"
- :span-method="dataSpanMethod"
- :data="form.klDiagnoseTypeVO"
- border
- ref="tableList"
- style="min-height: 200px"
- height="calc(100vh - 450px)"
- :header-cell-style="{background:'#E3EAF4'}"
- >
- <el-table-column label="依据" width="100" fixed>
- <template slot="header" slot-scope="scope">
- <span class="name">依据</span>
- </template>
- <template slot-scope="scope">
- <el-form-item>
- <img
- src="../../images/icon-copy.png"
- height="18"
- width="18"
- class="icon"
- @click="copyDiag(scope.row.depart_id,scope.$index)"
- />
- <img
- src="../../images/icon-add.png"
- height="18"
- width="18"
- class="icon"
- @click="addDiag(scope.row.depart_id)"
- />
- <img
- src="../../images/icon-delete.png"
- height="18"
- width="18"
- class="icon"
- @click="delDiag(scope.row.depart_id,scope.$index)"
- v-show="dest.length>1"
- />
- </el-form-item>
- </template>
- </el-table-column>
- <el-table-column label="诊断依据类型" width="130">
- <template slot="header" slot-scope="scope">
- <span class="star">*</span>
- <span class="name">诊断依据类型</span>
- </template>
- <template slot-scope="scope">
- <el-form-item
- class="is-request"
- :prop="'klDiagnoseTypeVO.'+scope.$index+'.conditionType'"
- :rules="rules.conditionType"
- >
- <el-select
- ref="aa"
- v-model="form.klDiagnoseTypeVO[scope.$index].conditionType"
- @change="(val)=>basTypeChange(val,scope.$index)"
- >
- <el-option
- v-for="item in baseTypes"
- :key="item.ruleType"
- :label="item.name"
- :value="item.ruleType"
- ></el-option>
- </el-select>
- </el-form-item>
- </template>
- </el-table-column>
- <el-table-column label="组" width="130">
- <template slot="header" slot-scope="scope">
- <span class="star">*</span>
- <span class="name">组</span>
- </template>
- <template slot-scope="scope">
- <el-form-item>
- <img
- src="../../images/icon-add.png"
- height="18"
- width="18"
- class="icon"
- @click="addGroup(scope.$index)"
- />
- <img
- src="../../images/icon-delete.png"
- height="18"
- width="18"
- class="icon"
- @click="delGroup(scope.row.depart_id,scope.$index)"
- v-show="isMax(scope.row.depart_id)"
- />
- </el-form-item>
- </template>
- </el-table-column>
- <el-table-column label="符合条件数量" width="150">
- <template slot="header" slot-scope="scope">
- <span class="star">*</span>
- <span class="name">符合条件数量</span>
- </template>
- <template slot-scope="scope">
- <el-form-item
- :prop="'klDiagnoseTypeVO.'+scope.$index+'.groupVO.'+0+'.fitNo'"
- :rules="rules.fitNo"
- >
- <el-select v-model="scope.row.groupVO[0].fitNo">
- <el-option
- v-for="item in numArr[scope.$index].num[0]"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </template>
- </el-table-column>
- <el-table-column v-for="(v,i) in columns" :width="v.width" :key="i">
- <template slot="header" slot-scope="scope">
- <span class="star" v-if="v.istar">*</span>
- <span class="name">{{v.title}}</span>
- </template>
- <template slot-scope="scope">
- <div v-for="(item,index) in scope.row.groupVO" :key="index">
- <div v-for="(items,i) in item.klDiagnoseDetail" :key="i">
- <div v-if="v.title == '基础依据'">
- <el-form-item>
- <img
- src="../../images/icon-add.png"
- height="18"
- width="18"
- class="icon"
- @click="addRule(scope.row,scope.$index,index)"
- />
- <img
- src="../../images/icon-delete.png"
- height="18"
- width="18"
- class="icon"
- @click="delRule(scope.row,scope.$index,index,i)"
- v-show="item.klDiagnoseDetail.length>1"
- />
- </el-form-item>
- </div>
- <div class="box-2" v-if="v.title == '基础依据名称'">
- <el-form-item
- :prop="'klDiagnoseTypeVO.' +
- scope.$index +
- '.groupVO.' +
- index +
- '.klDiagnoseDetail.'+i+'.basDescription'"
- :rules="rules.basDescription"
- >
- <el-input
- class="inp-name"
- placeholder="请输入基础依据名称"
- maxlength="100"
- v-model.trim="items.basDescription"
- ></el-input>
- </el-form-item>
- </div>
- <div class="box-2" v-if="v.title == '基础依据类型'">
- <el-form-item
- :prop="'klDiagnoseTypeVO.' +
- scope.$index +
- '.groupVO.' +
- index +
- '.klDiagnoseDetail.'+i+'.basType'"
- :rules="rules.basType"
- >
- <el-select
- v-model="items.basType"
- @change="(val)=>baseTermTypeChange(val,scope.$index,index,i)"
- >
- <el-option
- v-for="item in baseTermTypeList"
- :key="item.id"
- :label="item.name"
- :value="item.type"
- ></el-option>
- </el-select>
- </el-form-item>
- </div>
- <el-form-item
- :prop="'klDiagnoseTypeVO.' +
- scope.$index +
- '.groupVO.' +
- index +
- '.klDiagnoseDetail.'+i+'.basLibType'"
- v-if="!items.basNameType && v.title == '基础依据术语类型'"
- :rules="rules.basLibType"
- >
- <el-select
- v-model="items.basLibType"
- @change="(val)=>basLibTypeChange(val,scope.$index,index,i)"
- >
- <el-option
- v-for="item in items.basLibTypeList"
- :key="item.id"
- :label="item.name"
- :value="Number(item.code)"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item v-if="items.basNameType && v.title == '基础依据术语类型'">
- <el-input disabled v-model="items.basTypeName"></el-input>
- </el-form-item>
- <div
- v-if="v.title == '医学标准术语'"
- class="box-2"
- :class="items.basType===3 || items.basType===4? 'tmall' : 'taobao'"
- >
- <el-form-item
- v-if="items.basType==1 || items.basType==2 || items.basType==''"
- :prop="'klDiagnoseTypeVO.' +
- scope.$index +
- '.groupVO.' +
- index +
- '.klDiagnoseDetail.'+i+'.basConceptId'"
- :rules="rules.subConceptId"
- >
- <el-select
- clearable
- remote
- filterable
- :remote-method="(val)=>searchConcept(val,scope.$index,index,i)"
- v-model.trim="items.basConceptId"
- @change="(val)=>conceptChange(val,scope.$index,index,i)"
- >
- <el-option
- v-for="item in items.conceptList"
- :key="item.conceptId"
- :label="item.conceptName"
- :value="item.conceptId"
- ></el-option>
- </el-select>
- </el-form-item>
- </div>
- <div class="last-box" v-if="v.title == '依据具体内容'">
- <el-form-item
- :prop="'klDiagnoseTypeVO.' +
- scope.$index +
- '.groupVO.' +
- index +
- '.klDiagnoseDetail.'+i+'.dataType'"
- v-if="items.basType===2&&!items.onlyNumType&&!items.onlyTxtType"
- :rules="rules.dataType"
- >
- <el-select
- class="box-1"
- :class="items.basType===2&&!items.onlyNumType&&!items.onlyTxtType? 'taobao' : 'tmall'"
- v-model="items.dataType"
- @change="(val)=>dataTypeChange(val,scope.$index,index,i)"
- placeholder="请选择"
- size="small"
- >
- <el-option
- v-for="item in dataTypes"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- v-if="(!items.onlyNumType&&items.dataType==='1')||items.onlyNumType"
- label="最大值:"
- label-width="60px"
- >
- <div class="last-box-1">
- <el-form-item
- :prop="'klDiagnoseTypeVO.' +
- scope.$index +
- '.groupVO.' +
- index +
- '.klDiagnoseDetail.'+i+'.maxOperator'"
- :rules="[
- {
- validator: (rule, value, callback) => {
- maxOperator(items, rule, value, callback);
- },
- trigger: ['change']
- }
- ]"
- >
- <el-select
- v-model="items.maxOperator"
- placeholder="请选择"
- size="small"
- clearable
- >
- <el-option
- v-for="item in operMaxList"
- :key="item.key"
- :label="item.name"
- :value="item.key"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- class="num"
- :prop="'klDiagnoseTypeVO.' +
- scope.$index +
- '.groupVO.' +
- index +
- '.klDiagnoseDetail.'+i+'.maxVal'"
- :rules="[
- {
- validator: (rule, value, callback) => {
- maxVal(items, rule, value, callback);
- },
- trigger: ['blur']
- }
- ]"
- >
- <el-input v-model="items.maxVal" placeholder="填写数值"></el-input>
- </el-form-item>
- <el-form-item prop="minUnit">
- <el-input v-model.trim="items.maxUnit" placeholder="填写单位"></el-input>
- </el-form-item>
- </div>
- </el-form-item>
- <el-form-item
- v-if="(!items.onlyNumType&&items.dataType==='1')||items.onlyNumType"
- label="最小值:"
- label-width="60px"
- >
- <div class="last-box-1 last-box-s">
- <el-form-item
- :prop="'klDiagnoseTypeVO.' +
- scope.$index +
- '.groupVO.' +
- index +
- '.klDiagnoseDetail.'+i+'.minOperator'"
- :rules="[
- {
- validator: (rule, value, callback) => {
- minOperator(items, rule, value, callback);
- },
- trigger: ['change']
- }
- ]"
- >
- <el-select
- v-model="items.minOperator"
- placeholder="请选择"
- size="small"
- clearable
- >
- <el-option
- v-for="item in operMinList"
- :key="item.key"
- :label="item.name"
- :value="item.key"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- class="minnum"
- :prop="'klDiagnoseTypeVO.' +
- scope.$index +
- '.groupVO.' +
- index +
- '.klDiagnoseDetail.'+i+'.minVal'"
- :rules="[
- {
- validator: (rule, value, callback) => {
- minVal(items, rule, value, callback);
- },
- trigger: ['blur']
- }
- ]"
- >
- <el-input v-model="items.minVal" placeholder="填写数值"></el-input>
- </el-form-item>
- <el-form-item prop="minUnit">
- <el-input v-model.trim="items.minUnit" placeholder="填写单位"></el-input>
- </el-form-item>
- </div>
- </el-form-item>
- <div>
- <el-form-item
- :prop="'klDiagnoseTypeVO.' +
- scope.$index +
- '.groupVO.' +
- index +
- '.klDiagnoseDetail.'+i+'.eqValue'"
- v-if="items.basType===4 || items.basType===3"
- maxlength="200"
- label="正则表达式:"
- class="discDesc"
- :rules="[
- {
- required: true,
- message: '请输入正则表达式',
- trigger: 'blur'
- },
- ]"
- >
- <el-input class="inp" placeholder="请输入正则表达式" v-model.trim="items.eqValue"></el-input>
- </el-form-item>
- </div>
- <div>
- <el-form-item
- :prop="'klDiagnoseTypeVO.' +
- scope.$index +
- '.groupVO.' +
- index +
- '.klDiagnoseDetail.'+i+'.eqValue'"
- maxlength="200"
- v-if="(!items.onlyNumType&&!items.basNameType&&(items.basType===2 || items.basType===1)&&items.dataType==='2')||items.onlyTxtType"
- label="医学内容:"
- class="discDesc"
- :rules="[
- {
- required: true,
- message: '请输入医学内容',
- trigger: 'blur'
- }
-
- ]"
- >
- <el-input v-model.trim="items.eqValue" class="inp" placeholder="请输入医学内容"></el-input>
- </el-form-item>
- </div>
- </div>
- </div>
- </div>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </el-form>
- <div class="Butn">
- <el-button class="disclButn" size="small" type="primary" @click="confirm">确定</el-button>
- </div>
- </div>
- </div>
- </template>
- <script type="text/javascript">
- import util from '../../api/utils.js';
- import api from '@api/zskDiagBase.js';
- import { tableRules } from './rules';
- export default {
- name: 'AddZskDiagBase',
- data() {
- return {
- columns: [
- { title: '基础依据', width: 90, istar: true },
- { title: '基础依据名称', width: 160, istar: true },
- { title: '基础依据类型', width: 130, istar: true },
- { title: '基础依据术语类型', width: 160, istar: true },
- { title: '医学标准术语', width: 130, istar: true },
- { title: '依据具体内容', width: 850 }
- ],
- dicts: {},
- baseTypes: [], //诊断数据类型
- baseTermTypeList: [], //基础依据类型
- basLibTypeList: [], //基础术语依据类型
- numTypes: '', //只有数值类型的类型id
- labelPosition: 'left',
- isCopy: false,
- title: '诊断依据维护-添加诊断依据',
- conceptName: '',
- conceptList: [],
- conceptList: [],
- form: {
- description: '',
- conceptId: '',
- klDiagnoseTypeVO: [
- {
- conditionType: '',
- depart_id: 0,
- groupVO: [
- {
- baseGroup: '',
- conditionGroup: '',
- fitNo: '',
- klDiagnoseDetail: [
- {
- dataType: '',
- basNameType: false,
- onlyNumType: false,
- onlyTxtType: false,
- basTypeName: '',
- basConceptId: '',
- basDescription: '',
- basLename: '',
- basLibName: '',
- basLibType: null,
- basType: '',
- eqOperator: '',
- eqUnit: '',
- eqValue: '',
- maxOperator: '',
- maxUnit: '',
- maxVal: '',
- minOperator: '',
- minUnit: '',
- minVal: ''
- }
- ]
- }
- ]
- }
- ]
- },
- id: null,
- rules: tableRules,
- dataTypes: [
- { id: '1', name: '数值类型' },
- { id: '2', name: '文本类型' }
- ],
- operMaxList: [
- { name: '<=', key: '<=' },
- { name: '<', key: '<' }
- ],
- operMinList: [
- { name: '>', key: '>' },
- { name: '>=', key: '>=' }
- ],
- basType: '',
- dataType: '',
- spanArr: [],
- list: [], //提交数据数组,
- i: 1,
- onshow: true
- };
- },
- created() {
- const param = this.$route.params;
- this.baseTypes = JSON.parse(localStorage.getItem('zskDiagList') || '[]');
- this.dicts = JSON.parse(localStorage.getItem('zskDiagDicts') || '{}');
- let info = param.data;
- if (info) {
- this.id = info.id;
- this.isCopy = param.copy;
- this.title =
- '诊断依据维护-' + (this.isCopy ? '复制' : '修改') + '诊断依据';
- this.conceptList = [
- { conceptId: info.conceptId, conceptName: info.conceptName }
- ];
- for (let i = 0; i < info.klDiagnoseTypeVO.length; i++) {
- info.klDiagnoseTypeVO[i].depart_id = i;
- }
- this.form = Object.assign({}, this.form, this.formatData(info));
- if (this.isCopy) {
- this.conceptList = [];
- delete this.form.conceptName;
- delete this.form.conceptId;
- delete this.form.description;
- delete this.form.id;
- }
- var index2 = this.baseTypes.findIndex(
- item => item.ruleType === this.form.klDiagnoseTypeVO[0].conditionType
- );
- this.baseTermTypeList = this.baseTypes[index2].subMenuList;
- for (let i = 0; i < this.form.klDiagnoseTypeVO.length; i++) {
- for (let j = 0; j < this.form.klDiagnoseTypeVO[i].groupVO.length; j++) {
- for (
- let k = 0;
- k <
- this.form.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail.length;
- k++
- ) {
- var index2 = this.baseTermTypeList.findIndex(
- item =>
- item.type ===
- this.form.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail[k]
- .basType
- );
- this.form.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail[
- k
- ].basLibTypeList = this.baseTermTypeList[index2].subMenuList;
- this.form.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail[
- k
- ].conceptList = [
- {
- conceptName: this.form.klDiagnoseTypeVO[i].groupVO[j]
- .klDiagnoseDetail[k].basLibName,
- conceptId: this.form.klDiagnoseTypeVO[i].groupVO[j]
- .klDiagnoseDetail[k].basConceptId
- }
- ];
- if (
- this.form.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail[k]
- .maxOperator ||
- this.form.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail[k]
- .minOperator
- ) {
- this.form.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail[
- k
- ].dataType = '1';
- } else if (
- this.form.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail[k]
- .eqValue
- ) {
- this.form.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail[
- k
- ].dataType = '2';
- }
- if (
- this.form.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail[k]
- .basType == 3 ||
- this.form.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail[k]
- .basType == 4
- ) {
- this.form.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail[
- k
- ].basTypeName = this.form.klDiagnoseTypeVO[i].groupVO[
- j
- ].klDiagnoseDetail[k].basLibTypeList[0].name;
- this.form.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail[
- k
- ].basNameType = true;
- } else {
- this.form.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail[
- k
- ].basTypeName = '';
- this.form.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail[
- k
- ].basNameType = false;
- }
- const onlyNum = this.dicts['onlyNum'] || '&';
- const onlyTxt = this.dicts['onlyTxt'] || '&';
- const codes = onlyNum + ',';
- const code = onlyTxt + ',';
- let type = this.form.klDiagnoseTypeVO[i].groupVO[j]
- .klDiagnoseDetail[k].basLibType;
- let a = this.form.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail[k]
- .basLibType;
- this.form.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail[
- k
- ].onlyNumType = type && codes.indexOf(a + ',') > -1;
- this.form.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail[
- k
- ].onlyTxtType = type && code.indexOf(a + ',') > -1;
- }
- }
- }
- this.i = this.form.klDiagnoseTypeVO.slice(-1)[0].depart_id + 1;
- }
- },
- computed: {
- numArr() {
- let arr = [];
- let num = [];
- for (let i = 0; i < this.form.klDiagnoseTypeVO.length; i++) {
- arr.push({ num: [] });
- for (let j = 0; j < this.form.klDiagnoseTypeVO[i].groupVO.length; j++) {
- arr[i].num.push([]);
- for (
- let k = 0;
- k <
- this.form.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail.length;
- k++
- ) {
- arr[i].num[j].push({ id: k + 1, name: k + 1 });
- }
- }
- }
- return arr;
- },
- dest() {
- const formData = JSON.parse(JSON.stringify(this.form));
- let map = {},
- dest = [];
- for (let i = 0; i < formData.klDiagnoseTypeVO.length; i++) {
- let ai = formData.klDiagnoseTypeVO[i];
- if (!map[ai.depart_id]) {
- dest.push({
- depart_id: ai.depart_id,
- conditionType: ai.conditionType,
- groupVO: ai.groupVO
- });
- map[ai.depart_id] = ai;
- } else {
- for (let j = 0; j < dest.length; j++) {
- var dj = dest[j];
- if (dj.depart_id == ai.depart_id) {
- dj.groupVO = dj.groupVO.concat(ai.groupVO);
- break;
- }
- }
- }
- }
- return dest;
- }
- },
- // mounted() {
- // this.onscroll();
- // },
- methods: {
- // onscroll() {
- // this.$nextTick(function() {
- // // 监听当前组件的滚动事件
- // this.box = this.$refs.tableList.bodyWrapper;
- // this.box.addEventListener(
- // 'scroll',
- // () => {
- // // select组件层级太高,滚动隐藏
- // if (this.$refs.tableList.bodyWrapper.scrollLeft > 0) {
- // console.log(this.$refs.aa.handleClose)
- // // this.$refs.aa.handleClose()
- // // this.$refs.aa.blur()
- // // const SELECTWRAP_BODY = document.body; // body
- // // const SELECTWRAP_DOWNALL = document.querySelectorAll(
- // // '.el-select-dropdown'
- // // ); // select下拉框
- // // SELECTWRAP_BODY.click();
- // // SELECTWRAP_DOWNALL.forEach(item => {
- // // item.blur();
- // // });
- // }
- // },
- // false
- // );
- // });
- // },
- // 最大值 选择rule
- maxOperator(items, rule, value, callback) {
- const { maxVal, minOperator, minVal } = items;
- const val = value + minOperator + minVal + maxVal;
- if (!val || (!value && maxVal !== '')) {
- callback(new Error('最大值和最小值至少完整填写一个,单位不必填'));
- } else {
- callback();
- }
- },
- // 最大值 数值rule
- maxVal(items, rule, value, callback) {
- const { maxOperator, minOperator, minVal } = items;
- const val = value + maxOperator + minOperator + minVal;
- const isNum = /^(\-|\+)?\d+(\.\d+)?$/.test(value);
- if (!val || (value == '' && maxOperator)) {
- callback(new Error('最大值和最小值至少完整填写一个,单位不必填'));
- } else if (value !== '' && !isNum) {
- callback(new Error('只能输入数字'));
- } else {
- callback();
- }
- },
- // 最小值 选择rule
- minOperator(items, rule, value, callback) {
- const { maxVal, maxOperator, minVal } = items;
- const val = value + maxVal + maxOperator + minVal;
- if (!val || (!value && minVal !== '')) {
- callback(new Error('最大值和最小值至少完整填写一个,单位不必填'));
- } else {
- callback();
- }
- },
- // 最小值 数值rule
- minVal(items, rule, value, callback) {
- const { maxVal, minOperator, maxOperator } = items;
- const val = value + maxVal + minOperator + maxOperator;
- const isNum = /^(\-|\+)?\d+(\.\d+)?$/.test(value);
- if (!val || (value == '' && minOperator)) {
- callback(new Error('最大值和最小值至少完整填写一个,单位不必填'));
- } else if (value !== '' && !isNum) {
- callback(new Error('只能输入数字'));
- } else {
- callback();
- }
- },
- isMax(id) {
- const typeNum = this.form.klDiagnoseTypeVO.filter(
- item => item.depart_id === id
- ).length;
- return typeNum > 1;
- },
- getData(data) {
- let arr = data;
- let str = [];
- let newArr = [];
- arr.filter((value, index, array) => {
- if (value.groupVO.length > 1 && value.groupVO.length != 0) {
- for (let j = 0; j < value.groupVO.length; j++) {
- var db = {
- conditionType: value.conditionType,
- depart_id: value.depart_id,
- groupVO: [value.groupVO[j]]
- };
- str.push(db);
- }
- value.groupVO = [];
- arr.splice(index, 1);
- arr.splice(index, 0, ...str);
- newArr = str;
- } else {
- newArr = arr;
- }
- });
- // console.log(newArr)
- // this.$set(this, 'form.klDiagnoseTypeVO', newArr);
- this.getSpanArr(newArr);
- },
- getSpanArr(data) {
- this.spanArr = [];
- for (var i = 0; i < data.length; i++) {
- if (i === 0) {
- this.spanArr.push(1);
- this.pos = 0;
- } else {
- if (data[i].depart_id === data[i - 1].depart_id) {
- this.spanArr[this.pos] += 1;
- this.spanArr.push(0);
- } else {
- this.spanArr.push(1);
- this.pos = i;
- }
- }
- }
- },
- dataSpanMethod({ row, column, rowIndex, columnIndex }) {
- if (columnIndex === 0 || columnIndex === 1) {
- //合并行的行为只在第一列进行
- const _row = this.spanArr[rowIndex];
- const _col = _row > 0 ? 1 : 0;
- return {
- rowspan: _row,
- colspan: _col
- };
- }
- },
- getInitData() {
- return {
- conditionType: '',
- depart_id: this.i++,
- groupVO: [
- {
- baseGroup: '',
- conditionGroup: '',
- fitNo: '',
- klDiagnoseDetail: [
- {
- dataType: '',
- basNameType: false,
- onlyNumType: false,
- onlyTxtType: false,
- basTypeName: '',
- basConceptId: '',
- basDescription: '',
- basLename: '',
- basLibName: '',
- basLibType: null,
- basType: '',
- eqOperator: '',
- eqUnit: '',
- eqValue: '',
- maxOperator: '',
- maxUnit: '',
- maxVal: '',
- minOperator: '',
- minUnit: '',
- minVal: ''
- }
- ]
- }
- ]
- };
- },
- //新增依据
- addDiag(id) {
- let temp = this.getInitData();
- var i = -1;
- this.form.klDiagnoseTypeVO.forEach((item, inx) => {
- if (item.depart_id == id) {
- i = inx;
- }
- });
- this.$nextTick(() => {
- this.$refs.tableList.bodyWrapper.scrollLeft = 0;
- // this.$refs.form.clearValidate();
- });
- this.form.klDiagnoseTypeVO.splice(i + 1, 0, temp);
- },
- //复制依据
- copyDiag(id, inx) {
- this.i++;
- const formData = JSON.parse(JSON.stringify(this.form));
- let map = {},
- dest = [];
- for (let i = 0; i < formData.klDiagnoseTypeVO.length; i++) {
- let ai = formData.klDiagnoseTypeVO[i];
- if (!map[ai.depart_id]) {
- dest.push({
- depart_id: ai.depart_id,
- conditionType: ai.conditionType,
- groupVO: ai.groupVO
- });
- map[ai.depart_id] = ai;
- } else {
- for (let j = 0; j < dest.length; j++) {
- var dj = dest[j];
- if (dj.depart_id == ai.depart_id) {
- dj.groupVO = dj.groupVO.concat(ai.groupVO);
- break;
- }
- }
- }
- }
- var index = dest.findIndex(item => {
- return item.depart_id == id;
- });
- dest.splice(index + 1, 0, JSON.parse(JSON.stringify(dest[index])));
- dest.forEach((item, i) => {
- item.depart_id = i;
- });
- this.form.klDiagnoseTypeVO = dest;
- },
- //删除依据
- delDiag(id, inx) {
- this.form.klDiagnoseTypeVO = this.form.klDiagnoseTypeVO.filter(
- item => item.depart_id !== id
- );
- this.form.klDiagnoseTypeVO.forEach((item, index) => {
- if (item.depart_id > id) {
- item.depart_id = item.depart_id - 1;
- }
- });
- },
- //新增组
- addGroup(i) {
- const temp = {
- baseGroup: '',
- conditionGroup: '',
- fitNo: '',
- klDiagnoseDetail: [
- {
- dataType: '',
- basNameType: false,
- onlyNumType: false,
- onlyTxtType: false,
- basTypeName: '',
- basConceptId: '',
- basDescription: '',
- basLename: '',
- basLibName: '',
- basLibType: null,
- basType: '',
- eqOperator: '',
- eqUnit: '',
- eqValue: '',
- maxOperator: '',
- maxUnit: '',
- maxVal: '',
- minOperator: '',
- minUnit: '',
- minVal: ''
- }
- ]
- };
- this.form.klDiagnoseTypeVO[i].groupVO.splice(i + 1, 0, temp);
- },
- delGroup(id, i) {
- this.form.klDiagnoseTypeVO.splice(i, 1);
- },
- //新增基础依据
- addRule(row, index, i) {
- let temp = {
- dataType: '',
- basNameType: false,
- basTypeName: '',
- basConceptId: '',
- basDescription: '',
- basLename: '',
- basLibName: '',
- basLibType: null,
- basType: '',
- eqOperator: '',
- eqUnit: '',
- eqValue: '',
- maxOperator: '',
- maxUnit: '',
- maxVal: '',
- minOperator: '',
- minUnit: '',
- minVal: '',
- dataType: ''
- };
- this.form.klDiagnoseTypeVO[index].groupVO[i].klDiagnoseDetail.push(temp);
- },
- delRule(row, inx, index, i) {
- if (
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail
- .length == 1
- ) {
- return;
- } else {
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail.splice(
- i,
- 1
- );
- }
- },
- //诊断依据类型修改
- basTypeChange(val, inx) {
- if (!val) {
- this.baseTermTypeList = [];
- return;
- }
- var index2 = this.baseTypes.findIndex(item => item.ruleType === val);
- this.baseTermTypeList = this.baseTypes[index2].subMenuList;
- },
- //基础依据类型修改
- baseTermTypeChange(val, inx, index, i) {
- if (!val) {
- return;
- }
- this.basType = val;
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].basType = val;
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].basLibType = '';
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].dataType = '';
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].conceptList = [];
- this.clearConcept(val, inx, index, i); //清空医学标准术语
- this.clearNumText(val, inx, index, i); //清空数值、医学内容
- var index2 = this.baseTermTypeList.findIndex(item => item.type === val);
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].basLibTypeList = this.baseTermTypeList[index2].subMenuList;
- this.form.klDiagnoseTypeVO[inx].groupVO[
- index
- ].baseTermTypeList = this.baseTermTypeList;
- if (val == 3 || val == 4) {
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].basTypeName = this.form.klDiagnoseTypeVO[inx].groupVO[
- index
- ].klDiagnoseDetail[i].basLibTypeList[0].name;
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].basNameType = true;
- this.$refs['form'].clearValidate([
- 'klDiagnoseTypeVO.' +
- inx +
- '.groupVO.' +
- index +
- '.klDiagnoseDetail.' +
- i +
- '.basLibType'
- ]);
- } else {
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].basTypeName = '';
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].basNameType = false;
- }
- },
- //基础依据术语类型修改
- basLibTypeChange(val, inx, index, i) {
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].basLibType = val;
- // this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- // i
- // ].dataType = '';
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].conceptList = [];
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].basConceptId = '';
- if ((this.numTypes + ',').indexOf(val + ',') > -1) {
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].dataType = '1';
- } else {
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].dataType = '';
- }
- const onlyNum = this.dicts['onlyNum'] || '&';
- const onlyTxt = this.dicts['onlyTxt'] || '&';
- const codes = onlyNum + ',';
- const code = onlyTxt + ',';
- let type = this.form.klDiagnoseTypeVO[inx].groupVO[index]
- .klDiagnoseDetail[i].basLibType;
- let a = this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[i]
- .basLibType;
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].onlyNumType = type && codes.indexOf(a + ',') > -1;
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].onlyTxtType = type && code.indexOf(a + ',') > -1;
- // this.clearConcept(val, inx, index, i);
- // this.clearNumText(val, inx, index, i);
- },
- //医学标准术语
- conceptChange(val, inx, index, i) {
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].basConceptId = val;
- if (val) {
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].basLibName = this.form.klDiagnoseTypeVO[inx].groupVO[
- index
- ].klDiagnoseDetail[i].conceptList.find(
- it => it.conceptId === val
- ).conceptName;
- } else {
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].basLibName = '';
- }
- },
- searchConcept(val, inx, index, i) {
- const formData = JSON.parse(JSON.stringify(this.form));
- const param = {
- excludedConceptIds: [
- formData.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[i]
- .basType
- ],
- libType:
- formData.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[i]
- .basLibType,
- name: val
- };
- api
- .searchConcept(param)
- .then(res => {
- if (res.data.code == '0') {
- const data = res.data.data;
- this.$nextTick(() => {
- // dom元素更新后执行,因此这里能正确打印更改之后的值
- formData.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].conceptList = data; // 改变了的值
- });
- this.form = formData;
- }
- })
- .catch(error => {
- console.log(error);
- });
- },
- dataTypeChange(val, inx, index, i) {
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].dataType = val;
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].eqOperator = val === '2' ? '=' : '';
- },
- clearConcept(val, inx, index, i) {
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].basConceptId = '';
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].basLibName = '';
- this.conceptList = [];
- },
- clearNumText(val, inx, index, i) {
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].maxOperator = '';
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].maxVal = '';
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].maxUnit = '';
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].minOperator = '';
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].minVal = '';
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].minUnit = '';
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].eqValue = '';
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].eqOperator = '';
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].onlyNumType = false;
- this.form.klDiagnoseTypeVO[inx].groupVO[index].klDiagnoseDetail[
- i
- ].onlyTxtType = false;
- },
- formatData(data) {
- //转换字段名
- let str = JSON.stringify(data)
- .replace(/byIdDTO/g, 'groupVO')
- .replace(/klDiagnoseByIdDTO/g, 'klDiagnoseDetail');
- //console.log(JSON.parse(str))
- return JSON.parse(str);
- },
- searchDiag(val) {
- const param = {
- diseaseName: val
- };
- api
- .searchDiag(param)
- .then(res => {
- if (res.data.code == '0') {
- const data = res.data.data;
- this.conceptList = data;
- }
- })
- .catch(error => {
- console.log(error);
- });
- },
- setInitGroupData() {
- let temp = this.getInitData();
- this.form.klDiagnoseTypeVO = [temp];
- },
- setRules() {
- let that = this;
- let list = this.form.klDiagnoseTypeVO;
- if (list && list.length > 0) {
- list.forEach((item, i) => {
- let list1 = list[i].groupVO;
- list1.forEach((it, x) => {
- let list2 = list1[x].klDiagnoseDetail;
- list2.forEach((t, j) => {
- let grandeObj = this.form.klDiagnoseTypeVO[i].groupVO[x]
- .klDiagnoseDetail[j];
- if (grandeObj) {
- const keyTxt =
- 'klDiagnoseTypeVO.' +
- i +
- '.groupVO.' +
- x +
- '.klDiagnoseDetail.' +
- j;
- that.rules[keyTxt + '.dataType'] = [
- {
- required: true,
- message: '请选择类型',
- trigger: ['change']
- }
- ];
- that.rules[keyTxt + '.maxOperator'] = [
- {
- validator: (rule, value, callback) => {
- const { maxVal, minOperator, minVal } = grandeObj;
- const val = value + minOperator + minVal + maxVal;
- if (!val || (!value && maxVal !== '')) {
- callback(
- new Error(
- '最大值和最小值至少完整填写一个,单位不必填'
- )
- );
- } else {
- callback();
- }
- },
- trigger: 'change'
- }
- ];
- that.rules[keyTxt + '.minOperator'] = [
- {
- validator: (rule, value, callback) => {
- const { maxVal, maxOperator, minVal } = grandeObj;
- const val = value + maxOperator + minVal + maxVal;
- if (!val || (!value && minVal !== '')) {
- callback(
- new Error(
- '最大值和最小值至少完整填写一个,单位不必填'
- )
- );
- } else {
- callback();
- }
- },
- trigger: 'change'
- }
- ];
- that.rules[keyTxt + '.maxVal'] = [
- {
- validator: (rule, value, callback) => {
- const { maxOperator, minOperator, minVal } = grandeObj;
- const val = value + maxOperator + minVal + minOperator;
- const isNum = /^(\-|\+)?\d+(\.\d+)?$/.test(value);
- if (!val || (value === '' && maxOperator)) {
- callback(
- new Error(
- '最大值和最小值至少完整填写一个,单位不必填'
- )
- );
- } else if (value !== '' && !isNum) {
- callback(new Error('只能输入数字'));
- } else {
- callback();
- }
- },
- trigger: 'blur'
- }
- ];
- that.rules[keyTxt + '.minVal'] = [
- {
- validator: (rule, value, callback) => {
- const { maxVal, minOperator, maxOperator } = grandeObj;
- const val = value + maxOperator + maxVal + minOperator;
- const isNum = /^(\-|\+)?\d+(\.\d+)?$/.test(value);
- if (!val || (value === '' && minOperator)) {
- callback(
- new Error(
- '最大值和最小值至少完整填写一个,单位不必填'
- )
- );
- } else if (value !== '' && !isNum) {
- callback(new Error('只能输入数字'));
- } else {
- callback();
- }
- },
- trigger: 'blur'
- }
- ];
- }
- });
- });
- });
- }
- },
- saveDiagBase(params) {
- api.saveDiagBase(params).then(res => {
- if (res.data.code == 0) {
- this.$message({
- message: '操作成功',
- type: 'success'
- });
- this.$router.push({
- name: 'ZskDiagBase',
- params: this.$route.params
- });
- } else {
- this.$message({
- message: res.data.msg,
- type: 'warning'
- });
- }
- });
- },
- validateForms(callBack) {
- this.$refs['form'].validate(valid => {
- if (valid) {
- callBack();
- } else {
- return false;
- }
- });
- },
- confirm() {
- const formData = JSON.parse(JSON.stringify(this.form));
- const _this = this;
- for (let i = 0; i < formData.klDiagnoseTypeVO.length; i++) {
- for (let j = 0; j < formData.klDiagnoseTypeVO[i].groupVO.length; j++) {
- delete formData.klDiagnoseTypeVO[i].groupVO[j].baseTermTypeList;
- for (
- let k = 0;
- k < formData.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail.length;
- k++
- ) {
- delete formData.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail[k]
- .basLibTypeList;
- delete formData.klDiagnoseTypeVO[i].groupVO[j].klDiagnoseDetail[k]
- .conceptList;
- }
- }
- }
- let map = {},
- dest = [];
- for (let i = 0; i < formData.klDiagnoseTypeVO.length; i++) {
- let ai = formData.klDiagnoseTypeVO[i];
- if (!map[ai.depart_id]) {
- dest.push({
- depart_id: ai.depart_id,
- conditionType: ai.conditionType,
- groupVO: ai.groupVO
- });
- map[ai.depart_id] = ai;
- } else {
- for (let j = 0; j < dest.length; j++) {
- var dj = dest[j];
- if (dj.depart_id == ai.depart_id) {
- dj.groupVO = dj.groupVO.concat(ai.groupVO);
- break;
- }
- }
- }
- }
- formData.klDiagnoseTypeVO = dest;
- this.validateForms(function() {
- let params = formData;
- _this.saveDiagBase(params);
- });
- }
- },
- watch: {
- form: {
- handler: function(newQuestion, oldQuestion) {
- this.getData(this.form.klDiagnoseTypeVO);
- },
- deep: true,
- immediate: true
- }
- }
- };
- </script>
- <style lang="less" scoped>
- @import '../../less/admin.less';
- .contents {
- height: 100%;
- .content {
- background: #fff;
- padding: 20px 20px;
- color: #545455;
- min-width: 980px;
- position: relative;
- .tip-text {
- color: #f56c6c;
- margin-left: 10px;
- }
- .conceptItem {
- padding: 0 10px;
- cursor: pointer;
- height: 32px;
- line-height: 32px;
- &:hover {
- background: #ebedf1;
- }
- }
- .el-table--scrollable-y .el-table__body-wrapper {
- height: calc(100vh - 370px);
- }
- /deep/ .el-input {
- height: 30px;
- line-height: 30px;
- .el-input__inner {
- height: 30px;
- line-height: 30px;
- font-size: 12px;
- }
- }
- .inps {
- width: 500px !important;
- font-size: 14px;
- /deep/ .el-input__inner {
- width: 500px !important;
- font-size: 14px;
- }
- }
- .item {
- /deep/.el-form-item__label {
- font-size: 14px;
- }
- /deep/.el-input__inner {
- font-size: 14px;
- }
- }
- }
- .content-2 {
- margin-top: 10px;
- padding: 20px 20px;
- height: calc(100vh - 370px);
- .cell {
- overflow: initial;
- }
- .content-2-header {
- padding: 20px 0;
- .title1 {
- font-size: 14px;
- font-weight: 400;
- color: #333333;
- line-height: 20px;
- }
- .title2 {
- font-size: 12px;
- font-weight: 400;
- color: #ff545b;
- line-height: 17px;
- }
- }
- .el-form-item {
- margin-bottom: 10px;
- margin-right: 0;
- }
- .discDesc {
- margin-bottom: 20px;
- /deep/ .el-form-item__error {
- top: 38px;
- left: 100px !important;
- white-space: nowrap;
- }
- }
- .el-popper[x-placement^='bottom'] {
- width: 100px !important;
- }
- .disclButn {
- position: absolute;
- right: calc(50% - 60px);
- bottom: 10px;
- }
- .el-table .cell.el-tooltip {
- position: relative;
- }
- .box-2 {
- position: relative;
- .tips {
- left: 3px;
- }
- }
- .box-3 {
- position: relative;
- }
- .tips {
- width: 12px;
- height: 12px;
- position: absolute;
- left: 15px;
- top: 15px;
- }
- .title {
- position: absolute;
- z-index: -1;
- }
- .last-box {
- display: flex;
- height: 50px;
- margin-bottom: 10px;
- position: relative;
- /deep/ .el-input,
- .el-input__inner {
- width: 85px;
- font-size: 12px;
- margin-right: 15px;
- }
- /deep/ .el-form-item__content {
- position: inherit !important;
- }
- .last-box-1 {
- display: flex;
- /deep/ .el-form-item__error {
- top: 38px;
- left: 10px;
- white-space: nowrap;
- width: 360px;
- }
- }
- .last-box-s {
- position: absolute;
- /deep/ .el-form-item__error {
- top: 38px;
- left: 0px;
- white-space: nowrap;
- width: 260px;
- }
- }
- /deep/ .el-form-item__error {
- top: 38px;
- left: 10px;
- white-space: nowrap;
- }
- /deep/ .inp {
- width: 600px !important;
- .el-input__inner {
- width: 600px !important;
- }
- }
- .el-form-item {
- margin: 0;
- overflow: hidden;
- display: flex;
- }
- }
- .tmall {
- visibility: hidden;
- height: 60px;
- }
- .medical {
- margin-right: 26px;
- }
- .group {
- border-bottom: 1px solid red;
- padding: 30px 0;
- .group-row {
- padding: 10px 0;
- border-bottom: 1px solid red;
- }
- }
- .group:last-child {
- border-bottom: none;
- }
- .icon {
- padding: 0 3px;
- cursor: pointer;
- }
- .star {
- color: #ff545b;
- }
- }
- .Butn {
- display: flex;
- justify-content: center;
- background: #fff;
- .el-button {
- margin: 15px 0;
- }
- }
- .name {
- font-size: 14px;
- font-weight: 400;
- color: #333333;
- line-height: 20px;
- }
- }
- </style>
|