123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475 |
- <template>
- <div>
- <crumbs
- :title="minTitle"
- :param="$route.params"
- linkTo="BasicTermsMaintenance"
- ></crumbs>
- <div class="contents">
- <div class="content">
- <h3>添加术语:</h3>
- <p class="titl">医学标准术语:</p>
- <table class="deptbox" v-if="id == ''">
- <tr>
- <td class="ind">序号</td>
- <td>
- 医学标准术语
- <span class="necess">*</span>
- </td>
- <td>拼音</td>
- <td>
- 术语类型
- <span class="necess">*</span>
- </td>
- <td class="desc">说明</td>
- </tr>
- <tr>
- <td class="ind">1</td>
- <td
- :title="
- data.libName && data.libName.length > 9 ? data.libName : ''
- "
- >
- <!-- 修改时标准词不能修改,修改了会当做新增处理 4-17 -->
- <p v-if="id">{{ data.libName }}</p>
- <!-- 4-18 需求变更 -->
- <input
- v-else
- type="text"
- v-model.trim="data.libName"
- placeholder="请输入术语"
- maxlength="70"
- @blur="handleBlur(1)"
- />
- <SimilarListDrag
- :searchType="searchType"
- :similarList="similarList"
- isShow="true"
- @closeTable="closeTable"
- ></SimilarListDrag>
- </td>
- <td>
- <input
- type="text"
- v-model.trim="data.spell"
- placeholder="请输入拼音"
- maxlength="50"
- @input="handlePinyin($event, 1)"
- />
- </td>
- <td>
- <!-- <el-select v-if="!id" v-model="data.type" filterable placeholder="请选择" size="small" @change="selectType">
- <el-option
- v-for="item in typeList"
- :key="item.id"
- :label="item.name"
- :value="item.name">
- </el-option>
- </el-select>-->
- <template v-if="!id">
- <el-select
- v-model="data.type"
- filterable
- clearable
- popper-class="horizontal-drop"
- placeholder="请选择"
- @clear="clearDataCi"
- size="small"
- @change="selectType"
- >
- <el-option-group v-for="group in options" :key="group.label">
- <el-option
- v-for="item in group.options"
- :key="item.id"
- :label="item.name"
- :value="item.name"
- ></el-option>
- </el-option-group>
- </el-select>
- </template>
- <span v-else>{{ data.type }}</span>
- </td>
- <td class="desc">
- <input
- v-model.trim="data.remark"
- placeholder="请输入术语说明"
- maxlength="120"
- />
- </td>
- </tr>
- </table>
- <div class="deptboxChange" v-else>
- <table class="deptbox deptboxTable">
- <tr>
- <td class="ind">序号</td>
- <td class="desc">医学标准术语</td>
- <td>拼音</td>
- <td>术语类型</td>
- <td class="desc">说明</td>
- <td class="descs">术语性质</td>
- <td v-if="id">操作</td>
- </tr>
- <tr v-for="(item, index) in allwords" :key="index">
- <td class="ind">{{ index + 1 }}</td>
- <td
- :title="
- item.libName && item.libName.length > 9 ? item.libName : ''
- "
- >
- <!-- 使用原生input,输入限制 -->
- <!-- <el-input v-model="item.name" placeholder="请输入术语" maxlength="30" size="small" @input.native="handleInput(2,index)"></el-input> -->
- <input
- type="text"
- v-model.trim="item.libName"
- :title="item.name"
- placeholder="请输入术语"
- maxlength="70"
- @blur="handleBlur(2, index, 99)"
- />
- <SimilarListDrag
- :searchType="searchType"
- :similarList="similarList"
- :isShow="index === searchIndex"
- @closeTable="closeTable"
- ></SimilarListDrag>
- </td>
- <!-- <td v-if="!item.isEdit">
- {{item.spell}}
- </td>
- <td v-else>-->
- <td>
- <input
- type="text"
- v-model.trim="item.spell"
- placeholder="请输入拼音"
- maxlength="50"
- @input="handlePinyin($event, 2, index)"
- class="spell"
- />
- </td>
- <td>
- <template v-if="index == 0 && copy">
- <el-select
- v-model="data.type"
- filterable
- popper-class="horizontal-drop"
- placeholder="请选择"
- size="small"
- @clear="clearDataCi"
- @change="selectType"
- >
- <el-option-group
- v-for="group in options"
- :key="group.label"
- >
- <el-option
- v-for="item in group.options"
- :key="item.id"
- :label="item.name"
- :value="item.name"
- ></el-option>
- </el-option-group>
- </el-select>
- </template>
- <span v-else>{{ data.type }}</span>
- </td>
- <td class="desc">
- <input
- v-model.trim="item.remark"
- placeholder="请输入术语说明"
- maxlength="120"
- />
- </td>
- <td class="desc">
- {{ item.isConcept == 1 ? "医学标准术语" : "同义词" }}
- </td>
- <td v-if="id">
- <span class="displayColor" v-if="item.isConcept == 1"
- >删除</span
- >
- <span @click="deleLine(index, 55, item)" class="delete" v-else
- >删除</span
- >
- </td>
- </tr>
- <tr @click="addSpan(55)">
- <td colspan="7" class="addSpan">+</td>
- </tr>
- </table>
- <div class="actionDo"></div>
- </div>
- <p class="titl" v-if="id == ''">同义词:</p>
- <table class="deptbox" v-if="id == ''">
- <tr>
- <td class="ind">序号</td>
- <td>医学标准术语</td>
- <td>拼音</td>
- <td>术语类型</td>
- <td class="desc">说明</td>
- <td v-if="id">操作</td>
- </tr>
- <tr v-for="(item, index) in synonymous" :key="index">
- <td class="ind">{{ index + 1 }}</td>
- <td
- :title="
- item.libName && item.libName.length > 9 ? item.libName : ''
- "
- >
- <!-- 使用原生input,输入限制 -->
- <!-- <el-input v-model="item.name" placeholder="请输入术语" maxlength="30" size="small" @input.native="handleInput(2,index)"></el-input> -->
- <input
- type="text"
- v-model.trim="item.libName"
- placeholder="请输入术语"
- maxlength="70"
- @blur="handleBlur(2, index)"
- />
- <SimilarListDrag
- :searchType="searchType"
- :similarList="similarList"
- :isShow="index === searchIndex"
- @closeTable="closeTable"
- ></SimilarListDrag>
- </td>
- <td>
- <input
- type="text"
- v-model.trim="item.spell"
- placeholder="请输入拼音"
- maxlength="50"
- @input="handlePinyin($event, 3, index)"
- />
- </td>
- <td>{{ data.type }}</td>
- <td class="desc">
- <input
- v-model.trim="item.remark"
- placeholder="请输入术语说明"
- maxlength="120"
- />
- </td>
- <td v-if="id">
- <span @click="deleLine(index, 1, item)" class="delete">删除</span>
- </td>
- </tr>
- <tr @click="addSpan">
- <td :colspan="colspan" class="addSpan">+</td>
- </tr>
- </table>
- <div class="moreInfo" v-if="showMore == 1">
- <p>更多信息:</p>
- <el-form label-width="150px">
- <el-form-item label="性别:">
- <el-select v-model="sexType">
- <el-option
- v-for="(it, i) in sex"
- :key="i"
- :label="it.name"
- :value="it.value"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="年龄:" class="ages is-required">
- <el-input
- v-model.number="minAge"
- type="number"
- @input="inputAge"
- ></el-input>
- <span class="ageLine">~</span>
- <el-input
- v-model.number="maxAge"
- type="number"
- @input="inputAge"
- ></el-input>
- </el-form-item>
- <el-form-item
- v-if="data.type == '实验室检查子项目'"
- label="参考范围"
- class="ages"
- >
- <el-radio-group v-model="radio" @change="changeRadio">
- <el-radio :label="1">数值内容</el-radio>
- <el-radio :label="2">文本内容</el-radio>
- </el-radio-group>
- </el-form-item>
- <el-form-item
- v-if="
- data.type == '实验室检查子项目' &&
- (radio == 1 || klLisVO.minValue || klLisVO.maxValue)
- "
- class="ages"
- >
- <el-input
- v-model.trim="klLisVO.minValue"
- type="number"
- @input="inputAge"
- ></el-input>
- <span class="ageLine">~</span>
- <el-input
- v-model.trim="klLisVO.maxValue"
- type="number"
- @input="inputAge"
- ></el-input>
- <el-input
- class="inp"
- v-model.trim="klLisVO.unit"
- placeholder="输入单位"
- maxlength="6"
- type="text"
- @input="inputAge"
- ></el-input>
- </el-form-item>
- <el-form-item
- v-if="
- data.type == '实验室检查子项目' &&
- (radio == 2 || klLisVO.qualitative != '')
- "
- class="ages tips"
- >
- <div-editable
- class="divBox"
- v-if="hackReset"
- v-model="klLisVO.qualitative"
- :Maincontent="'Maincontent'"
- title="请输入"
- ></div-editable>
- <span class="titles"
- >注:输入结果内容以顿号隔开,例如:阴性、阳性</span
- >
- </el-form-item>
- <div
- v-if="
- data.type == '实验室检查子项目' &&
- (radio == 1 || klLisVO.minValue || klLisVO.maxValue)
- "
- style="
- width: 300px;
- display: inlne;
- position: relative;
- right: -530px;
- top: -40px;
- "
- >
- <span style="margin-right: 15px">范围</span>
- <el-select v-model="klLisVO.type">
- <el-option
- v-for="(it, i) in range"
- :key="i"
- :label="it.name"
- :value="it.value"
- ></el-option>
- </el-select>
- </div>
- <el-form-item label="科室:" v-if="dioType" class="marT">
- <el-select v-model="dept">
- <!-- <el-option v-for="(it,i) in deptList" :label="it.name" :value="it.name"></el-option> -->
- <el-option-group
- v-for="group in deptListArr"
- :key="group.label"
- >
- <el-option
- v-for="item in group.deptList"
- :key="item.id"
- :label="item.name"
- :value="item.name"
- ></el-option>
- </el-option-group>
- </el-select>
- </el-form-item>
- <el-form-item label="归属类型:" v-if="dioType" class="marT">
- <el-select v-model="dioType">
- <el-option
- v-for="(it, i) in dioTypeList"
- :key="i"
- :label="it.name"
- :value="it.val"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- label="药品类型:"
- v-if="data.type == '药品通用名'"
- class="marT is-required"
- >
- <el-select v-model="klDrugVO.drug">
- <el-option
- v-for="(it, i) in drugTypeList"
- :key="i"
- :label="it.name"
- :value="it.val"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- label="药品级别:"
- v-if="data.type == '药品通用名'"
- class="marT is-required"
- >
- <el-select v-model="klDrugVO.drugGrade">
- <el-option
- v-for="item in drugGradeList"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- label="药品分类:"
- v-if="data.type == '药品通用名'"
- class="marT is-required"
- >
- <div-editable
- class="divBox"
- v-if="hackReset"
- v-model="klDrugVO.drugC"
- :Maincontent="'drugC'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- label="危急标识:"
- v-if="
- data.type == '辅助检查项目' || data.type == '辅助检查子项目'
- "
- class="marT"
- >
- <el-radio-group v-model="klPacsVO.emergencySign">
- <el-radio :label="1">是</el-radio>
- <el-radio :label="0">否</el-radio>
- </el-radio-group>
- </el-form-item>
- <el-form-item
- label="方法:"
- v-if="
- data.type == '辅助检查项目' || data.type == '辅助检查子项目'
- "
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klPacsVO.checkMethod"
- :Maincontent="'checkMethod'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- label="检查技术:"
- v-if="
- data.type == '辅助检查项目' || data.type == '辅助检查子项目'
- "
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klPacsVO.checkSkillful"
- :Maincontent="'checkSkillful'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- label="项目定义:"
- v-if="
- data.type == '辅助检查项目' || data.type == '辅助检查子项目'
- "
- class="marT"
- >
- <el-input
- class="txt"
- type="textarea"
- :autosize="{ minRows: 1, maxRows: 3 }"
- v-model.trim="klPacsVO.definition"
- placeholder="请输入"
- maxlength="500"
- ></el-input>
- </el-form-item>
- <el-form-item
- label="检查目的:"
- v-if="
- data.type == '辅助检查项目' || data.type == '辅助检查子项目'
- "
- class="marT"
- >
- <el-input
- type="textarea"
- :autosize="{ minRows: 1, maxRows: 3 }"
- v-model.trim="klPacsVO.checkObjective"
- placeholder="请输入"
- maxlength="500"
- ></el-input>
- </el-form-item>
- <el-form-item
- label="禁忌症和局限性:"
- v-if="
- data.type == '辅助检查项目' || data.type == '辅助检查子项目'
- "
- class="marT"
- >
- <el-input
- type="textarea"
- :autosize="{ minRows: 1, maxRows: 3 }"
- v-model.trim="klPacsVO.condLimit"
- placeholder="请输入"
- maxlength="500"
- ></el-input>
- </el-form-item>
- <el-form-item
- label="适应症:"
- v-if="
- data.type == '辅助检查项目' || data.type == '辅助检查子项目'
- "
- class="marT"
- >
- <el-input
- type="textarea"
- :autosize="{ minRows: 1, maxRows: 3 }"
- v-model.trim="klPacsVO.interventional"
- placeholder="请输入"
- maxlength="500"
- ></el-input>
- </el-form-item>
- <el-form-item
- label="检查前准备:"
- v-if="
- data.type == '辅助检查项目' || data.type == '辅助检查子项目'
- "
- class="marT"
- >
- <el-input
- type="textarea"
- :autosize="{ minRows: 1, maxRows: 3 }"
- v-model.trim="klPacsVO.checkPrepare"
- placeholder="请输入"
- maxlength="500"
- ></el-input>
- </el-form-item>
- <el-form-item
- v-if="data.type == '症状'"
- label="阳性症状:"
- prop="description"
- class="marT"
- >
- <el-radio v-model="klSymptomVO.isPositive" :label="1"
- >是</el-radio
- >
- <el-radio v-model="klSymptomVO.isPositive" :label="0"
- >否</el-radio
- >
- </el-form-item>
- <el-form-item
- v-if="data.type == '症状'"
- label="英文名称:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klSymptomVO.enName"
- :Maincontent="'enNamekl'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- v-if="data.type == '症状'"
- label="就诊科室:"
- prop="description"
- class="marT"
- >
- <searchTerm
- v-if="hackReset"
- :refbool.sync="klSymptomVO.deptList"
- :id="id"
- :type="115"
- ></searchTerm>
- </el-form-item>
- <el-form-item
- v-if="data.type == '症状'"
- label="发病部位:"
- prop="description"
- class="marT"
- >
- <searchTerm
- v-if="hackReset"
- :refbool.sync="klSymptomVO.partList"
- :id="id"
- :type="122"
- ></searchTerm>
- </el-form-item>
- <el-form-item
- v-if="data.type == '症状'"
- label="常见伴随症状:"
- prop="description"
- class="marT"
- >
- <searchTerm
- v-if="hackReset"
- :refbool.sync="klSymptomVO.conSymptomList"
- :id="id"
- :type="103"
- ></searchTerm>
- </el-form-item>
- <el-form-item
- v-if="data.type == '症状'"
- label="性质:"
- prop="description"
- class="marT"
- >
- <searchTerm
- v-if="hackReset"
- :refbool.sync="klSymptomVO.natureList"
- :id="id"
- :type="126"
- ></searchTerm>
- </el-form-item>
- <el-form-item
- v-if="data.type == '症状'"
- label="缓解因素:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klSymptomVO.mitigatingFac"
- :Maincontent="'mitigatingFac'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- v-if="data.type == '症状'"
- label="加重因素:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klSymptomVO.aggravateFac"
- :Maincontent="'aggravateFac'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- v-if="data.type == '症状'"
- label="通俗解释:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klSymptomVO.commonExplain"
- :Maincontent="'commonExplain'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- v-if="data.type == '症状'"
- label="定义:"
- prop="description"
- class="marT"
- >
- <el-input
- type="textarea"
- :autosize="{ minRows: 1, maxRows: 3 }"
- v-model.trim="klSymptomVO.definition"
- placeholder="请输入"
- maxlength="500"
- ></el-input>
- </el-form-item>
- <el-form-item
- v-if="data.type == '症状'"
- label="症状起因:"
- prop="description"
- class="marT"
- >
- <el-input
- type="textarea"
- :autosize="{ minRows: 1, maxRows: 3 }"
- v-model.trim="klSymptomVO.cause"
- placeholder="请输入"
- maxlength="500"
- ></el-input>
- </el-form-item>
- <el-form-item
- v-if="data.type == '症状'"
- label="常见疾病:"
- prop="description"
- class="marT"
- >
- <el-input
- type="textarea"
- :autosize="{ minRows: 1, maxRows: 3 }"
- v-model.trim="klSymptomVO.commonDis"
- placeholder="请输入"
- maxlength="500"
- ></el-input>
- </el-form-item>
- <el-form-item
- v-if="data.type == '症状'"
- label="预防措施:"
- prop="description"
- class="marT"
- >
- <el-input
- type="textarea"
- :autosize="{ minRows: 1, maxRows: 3 }"
- v-model.trim="klSymptomVO.preMeasures"
- placeholder="请输入"
- maxlength="500"
- ></el-input>
- </el-form-item>
- <el-form-item
- v-if="data.type == '症状'"
- label="饮食禁忌:"
- prop="description"
- class="marT"
- >
- <el-input
- type="textarea"
- :autosize="{ minRows: 1, maxRows: 3 }"
- v-model.trim="klSymptomVO.foodProhibition"
- placeholder="请输入"
- maxlength="500"
- ></el-input>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病'"
- label="ICD10医保版:"
- prop="description"
- class="marT description"
- >
- <el-input
- v-model.trim="klDiseaseVO.icd10Code"
- maxlength="30"
- placeholder="请输入编码"
- ></el-input>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病'"
- label="ICD10国临版:"
- prop="description"
- class="marT description"
- >
- <el-row>
- <el-col :span="5"
- ><el-input
- @blur="handleBlurGuo"
- v-model.trim="klDiseaseVO.guoname"
- maxlength="70"
- placeholder="请输入名称"
- ></el-input
- ></el-col>
- <el-col :span="5"
- ><el-input
- v-model.trim="klDiseaseVO.guospell"
- maxlength="70"
- placeholder="请输入拼音"
- ></el-input
- ></el-col>
- <el-col :span="5"
- ><el-input
- v-model.trim="klDiseaseVO.guocode"
- maxlength="30"
- placeholder="请输入编码"
- ></el-input
- ></el-col>
- </el-row>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病'"
- label="发病率:"
- prop="description"
- class="marT description"
- >
- <el-input
- v-model.trim="klDiseaseVO.incidence"
- type="number"
- oninput="if(value.length>6)value=value.slice(0,6)"
- placeholder="请输入"
- ></el-input>
- </el-form-item>
- <el-form-item
- label="遗传性:"
- v-if="data.type == '疾病'"
- class="marT"
- >
- <el-radio-group v-model="klDiseaseVO.isHeredity">
- <el-radio :label="1">是</el-radio>
- <el-radio :label="0">否</el-radio>
- </el-radio-group>
- </el-form-item>
- <el-form-item
- label="常见病:"
- v-if="data.type == '疾病'"
- class="marT"
- >
- <el-radio-group v-model="klDiseaseVO.isCommonDis">
- <el-radio :label="1">是</el-radio>
- <el-radio :label="0">否</el-radio>
- </el-radio-group>
- </el-form-item>
- <el-form-item
- label="传染性:"
- v-if="data.type == '疾病'"
- class="marT"
- >
- <el-radio-group v-model="klDiseaseVO.isInfect">
- <el-radio :label="1">是</el-radio>
- <el-radio :label="0">否</el-radio>
- </el-radio-group>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病' && klDiseaseVO.isInfect === 1"
- label="传染病分类:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klDiseaseVO.infectClassification"
- :Maincontent="'infectClassification'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病' && klDiseaseVO.isInfect === 1"
- label="传染病上报时限:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klDiseaseVO.infectDeadline"
- :Maincontent="'infectDeadline'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- label="疾病就诊科室:"
- v-if="data.type == '疾病'"
- class="marT"
- >
- <searchTerm
- v-if="hackReset"
- :refbool.sync="klDiseaseVO.deptList"
- :id="id"
- :type="115"
- ></searchTerm>
- </el-form-item>
- <el-form-item
- label="疾病发病部位:"
- v-if="data.type == '疾病'"
- class="marT"
- >
- <searchTerm
- v-if="hackReset"
- :refbool.sync="klDiseaseVO.partList"
- :id="id"
- :type="122"
- ></searchTerm>
- </el-form-item>
- <el-form-item
- label="疾病系统分类:"
- v-if="data.type == '疾病'"
- class="marT"
- >
- <searchTerm
- v-if="hackReset"
- :refbool.sync="klDiseaseVO.systemTypeList"
- :id="id"
- :type="307"
- ></searchTerm>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病'"
- label="肿瘤/细胞类型:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klDiseaseVO.tumorCellType"
- :Maincontent="'tumorCellType'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病'"
- label="形态学分类代码:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klDiseaseVO.morphology"
- :Maincontent="'morphology'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病'"
- label="英文名称:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klDiseaseVO.enName"
- :Maincontent="'enNamej'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病'"
- label="英文简称:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klDiseaseVO.enNameSimple"
- :Maincontent="'enNameSimple'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病'"
- label="疾病简称:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klDiseaseVO.nameSimple"
- :Maincontent="'nameSimple'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病'"
- label="好发人群:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klDiseaseVO.vulCrowd"
- :Maincontent="'vulCrowd'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病'"
- label="好发地区:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klDiseaseVO.vulArea"
- :Maincontent="'vulArea'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病'"
- label="病程:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klDiseaseVO.course"
- :Maincontent="'course'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病'"
- label="危害性:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klDiseaseVO.pernicious"
- :Maincontent="'pernicious'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病'"
- label="治愈性:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klDiseaseVO.healing"
- :Maincontent="'healing'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病'"
- label="诱因:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klDiseaseVO.inducement"
- :Maincontent="'inducement'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病'"
- label="疾病分型:"
- prop="description"
- class="marT"
- >
- <el-input
- v-model.trim="klDiseaseVO.disType"
- maxlength="500"
- placeholder="请输入"
- :autosize="{ minRows: 1, maxRows: 3 }"
- type="textarea"
- ></el-input>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病'"
- label="并发症:"
- prop="description"
- class="marT"
- >
- <el-input
- v-model.trim="klDiseaseVO.complication"
- maxlength="500"
- placeholder="请输入"
- :autosize="{ minRows: 1, maxRows: 3 }"
- type="textarea"
- ></el-input>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病'"
- label="临床分类:"
- prop="description"
- class="marT"
- >
- <el-input
- v-model.trim="klDiseaseVO.clinicType"
- maxlength="500"
- placeholder="请输入"
- :autosize="{ minRows: 1, maxRows: 3 }"
- type="textarea"
- ></el-input>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病'"
- label="病因:"
- prop="description"
- class="marT"
- >
- <el-input
- v-model.trim="klDiseaseVO.pathogeny"
- maxlength="500"
- placeholder="请输入"
- :autosize="{ minRows: 1, maxRows: 3 }"
- type="textarea"
- ></el-input>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病'"
- label="危险因素:"
- prop="description"
- class="marT"
- >
- <el-input
- v-model.trim="klDiseaseVO.hazard"
- maxlength="500"
- placeholder="请输入"
- :autosize="{ minRows: 1, maxRows: 3 }"
- type="textarea"
- ></el-input>
- </el-form-item>
- <el-form-item
- v-if="data.type == '疾病'"
- label="饮食禁忌:"
- prop="description"
- class="marT"
- >
- <el-input
- v-model.trim="klDiseaseVO.foodProhibition"
- maxlength="500"
- placeholder="请输入"
- :autosize="{ minRows: 1, maxRows: 3 }"
- type="textarea"
- ></el-input>
- </el-form-item>
- <el-form-item
- v-if="
- data.type == '实验室检查套餐' || data.type == '实验室检查子项目'
- "
- label="英文缩写:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klLisVO.enName"
- :Maincontent="'enName'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- v-if="
- data.type == '实验室检查套餐' || data.type == '实验室检查子项目'
- "
- label="所属类别:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klLisVO.category"
- :Maincontent="'category'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- v-if="
- data.type == '实验室检查套餐' || data.type == '实验室检查子项目'
- "
- label="检查标本:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klLisVO.checkSpecimen"
- :Maincontent="'checkSpecimen'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- v-if="
- data.type == '实验室检查套餐' || data.type == '实验室检查子项目'
- "
- label="临床意义:"
- prop="description"
- class="marT"
- >
- <el-input
- v-model.trim="klLisVO.clinicalSig"
- maxlength="500"
- placeholder="请输入"
- :autosize="{ minRows: 1, maxRows: 3 }"
- type="textarea"
- ></el-input>
- </el-form-item>
- <el-form-item
- v-if="
- data.type == '实验室检查套餐' || data.type == '实验室检查子项目'
- "
- label="影响因素:"
- prop="description"
- class="marT"
- >
- <el-input
- v-model.trim="klLisVO.influenceFac"
- maxlength="500"
- placeholder="请输入"
- :autosize="{ minRows: 1, maxRows: 3 }"
- type="textarea"
- ></el-input>
- </el-form-item>
- <el-form-item
- v-if="
- data.type == '实验室检查套餐' || data.type == '实验室检查子项目'
- "
- label="检查方法:"
- prop="description"
- class="marT"
- >
- <el-input
- v-model.trim="klLisVO.checkMethod"
- maxlength="500"
- placeholder="请输入"
- :autosize="{ minRows: 1, maxRows: 3 }"
- type="textarea"
- ></el-input>
- </el-form-item>
- <el-form-item
- v-if="data.type == '体格检查结果'"
- label="科室:"
- prop="description"
- class="marT"
- >
- <searchTerm
- v-if="hackReset"
- :refbool.sync="klVitalResultVO.deptList"
- :id="id"
- :type="115"
- ></searchTerm>
- </el-form-item>
- <el-form-item
- v-if="data.type == '体格检查结果'"
- label="部位:"
- prop="description"
- class="marT"
- >
- <searchTerm
- v-if="hackReset"
- :refbool.sync="klVitalResultVO.partList"
- :id="id"
- :type="122"
- ></searchTerm>
- </el-form-item>
- <el-form-item
- v-if="data.type == '体格检查结果'"
- label="不适宜人群:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klVitalResultVO.suitablePopNo"
- :Maincontent="'Maincontent1'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- v-if="data.type == '体格检查结果'"
- label="操作方法:"
- prop="description"
- class="marT"
- >
- <el-input
- v-model.trim="klVitalResultVO.checkMethod"
- maxlength="500"
- placeholder="请输入"
- :autosize="{ minRows: 1, maxRows: 3 }"
- type="textarea"
- ></el-input>
- </el-form-item>
- <el-form-item
- v-if="data.type == '手术和操作'"
- label="级别分类:"
- prop="description"
- class="marT"
- >
- <el-select
- v-model="klOperationVO.operationLevel"
- placeholder="请选择"
- >
- <el-option
- v-for="item in operationLevelList"
- :key="item.id"
- :label="item.label"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- v-if="data.type == '手术和操作'"
- label="手术操作代码:"
- prop="description"
- class="marT"
- >
- <div-editable
- v-if="hackReset"
- v-model="klOperationVO.operationCode"
- :Maincontent="'Maincontent'"
- title="请输入"
- ></div-editable>
- </el-form-item>
- <el-form-item
- v-if="data.type == '中医疾病'"
- label="代码:"
- class="marT"
- >
- <el-input
- style="width: 300px"
- v-model.trim="klTcmDiseaseVO.code"
- maxlength="30"
- placeholder="请输入"
- ></el-input>
- </el-form-item>
- <el-form-item
- v-if="data.type == '中医证候'"
- label="代码:"
- class="marT"
- >
- <el-input
- style="width: 300px"
- v-model.trim="klTcmSyndromeVO.code"
- maxlength="30"
- placeholder="请输入"
- ></el-input>
- </el-form-item>
- <!-- <el-form-item
- v-if="data.type=='症状'"
- label="填写单患者界面展示通俗内容:"
- prop="description"
- class="marT description"
- >
- <span class="necess">*</span>
- <el-input v-model.trim="description" maxlength="7" placeholder="请输入填写单患者界面展示通俗内容"></el-input>
- </el-form-item>-->
- <!-- <el-form-item v-if="data.type=='症状'" label="医学教育说明:" prop="explains" class="marT">
- <el-input
- type="textarea"
- v-model.trim="explains"
- maxlength="100"
- style="width: 500px;"
- :rows="4"
- ></el-input>
- </el-form-item>-->
- </el-form>
- </div>
- <div class="btn">
- <el-button
- type="primary"
- :disabled="saveDisable"
- @click="handleConfirm"
- >确 定</el-button
- >
- </div>
- </div>
- </div>
- </div>
- </template>
- <script type="text/javascript">
- import DivEditable from "./DivEditable";
- import searchTerm from "./searchTerm";
- import api from "@api/knowledgeTree.js";
- import pinyin from "../../js/Convert_Pinyin.js";
- import utils from "@api/utils.js";
- import SimilarListDrag from "./SimilarListDrag";
- export default {
- name: "AddMedicalName",
- data() {
- return {
- radio: 1,
- minTitle: "基础术语维护-添加",
- hackReset: true,
- drugGradeList: [
- //药品级别相关数据
- { label: "非限制使用级", value: 0 },
- { label: "限制使用级", value: 1 },
- { label: "特殊使用级", value: 2 },
- ],
- data: {
- libName: "",
- type: "",
- libType: "",
- remark: "",
- isConcept: 1,
- spell: "",
- libId: "",
- isHasCommon: "",
- },
- klDrugVO: {
- drug: "",
- drugC: "",
- drugGrade: "", //药品级别
- },
- klOperationVO: {
- conceptId: null,
- remark: null,
- operationLevel: 0, //手术级别
- operationCode: "", //手术操作码
- },
- klVitalResultVO: {
- conceptId: null,
- remark: null,
- deptList: [], //科室
- partList: [], //部位
- suitablePopNo: "", //不适宜人群
- checkMethod: "", //操作方法
- },
- klPacsVO: {
- checkMethod: "", //检查方法
- definition: "", //项目定义
- checkObjective: "", //检查目的
- checkSkillful: "", //检查技术
- condLimit: "", //禁忌症和局限性
- interventional: "", //适应症
- emergencySign: 0, //危急标识(0:不危急,1:危急)
- checkPrepare: "", //检查前准备
- remark: "", //备注
- },
- klLisVO: {
- minValue: null, //最小值
- maxValue: null, //最大值
- unit: "",
- checkSpecimen: "", //检查标本
- checkMethod: "", //检查方法
- influenceFac: "", //影响因素
- clinicalSig: "", //临床意义
- qualitative: "", //定性(阴、阳性)
- category: "", //所属类别
- enName: "", //英文名称
- remark: "", //备注
- type: 1,
- },
- klSymptomVO: {
- isPositive: 1,
- enName: "", //英文名称
- definition: "", //定义
- chWestern: "", //中西医症状(0:通用,1:西,2:中)
- mitigatingFac: "", //缓解因素
- aggravateFac: "", //加重因素
- cause: "", //症状起因
- commonDis: "", //常见疾病
- preMeasures: "", //预防措施
- foodProhibition: "", //饮食禁忌
- commonExplain: "", //通俗解释
- remark: "", //备注
- deptList: [], //科室列表
- partList: [], //发病部位
- conSymptomList: [], //常见伴随症状
- natureList: [], //性质
- },
- klDiseaseVO: {
- icd10Code: "", //ICD10编号
- guoname: "", //国临版名称
- guocode: "", //国临版编码
- guospell: "", //国临版拼音
- course: "", //病程
- inducement: "", //诱因
- foodProhibition: "", //饮食禁忌
- hazard: "", //危险因素
- healing: "", //治愈性
- pernicious: "", //危害性
- clinicType: "", //临床分类
- vulArea: "", //好发地区
- vulCrowd: "", //好发人群
- incidence: "", //发病率
- isInfect: 0, //是否传染(0:否,1:是)
- complication: "", //并发症
- pathogeny: "", //病因
- disType: "", //疾病分型
- chWestern: "", //中西医疾病(0:通用,1:西,2:中)
- isCommonDis: 1, //是否常见病(0:否,1:是)
- isHeredity: 0, //是否遗传(0:否,1:是)
- nameSimple: "", //简称
- enNameSimple: "", //英文简称
- enName: "", //英文名称
- remark: "", //备注
- tumorCellType: "", //肿瘤细胞类型
- morphology: "", //形态学分类代码
- deptList: [], //科室列表
- partList: [], //部位列表
- systemTypeList: [], //疾病系统分类列表
- infectClassification: "", //传染病分类
- infectDeadline: "", //传染病上报时限
- },
- klTcmDiseaseVO: {
- code: "",
- },
- klTcmSyndromeVO: {
- code: "",
- },
- operationLevelList: [
- {
- id: "0",
- label: "0",
- },
- {
- id: "1",
- label: "1",
- },
- {
- id: "2",
- label: "2",
- },
- {
- id: "3",
- label: "3",
- },
- {
- id: "4",
- label: "4",
- },
- ],
- typeList: [],
- id: "",
- synonymous: [], //同义词
- singleword: [],
- allwords: [], //标准词和同义词
- colspan: 5,
- colspans: 6,
- currentPage: 1,
- pageSize: 10,
- tmpSynonymous: [],
- sexType: 3,
- maxAge: 200,
- minAge: 0,
- maxValue: null,
- minValue: null,
- showMore: "",
- sex: [
- {
- name: "通用",
- value: 3,
- },
- {
- name: "男",
- value: 1,
- },
- {
- name: "女",
- value: 2,
- },
- ],
- range: [
- {
- name: "内",
- value: 1,
- },
- {
- name: "外",
- value: 2,
- },
- ],
- unfit: false, //点确认时是否弹提示,
- guounfix: false, //国临版名称是否符合要求
- saveDisable: false, //保存按钮禁止点击
- options: [],
- copy: null,
- drugTypeList: [
- { val: 0, name: "西药" },
- { val: 1, name: "中成药" },
- ], //药品类型
- drug: "",
- dioTypeList: [], //更多信息-类型
- dioType: "", //默认展示一类
- deptList: [], //更多信息-科室
- deptListArr: [], //科室信息分组
- dept: "", //默认展示全科
- similarList: [], //相似词列表
- searchIndex: -1, //展示哪个的同义词
- searchType: "",
- description: "",
- explains: "",
- composing: false,
- critical: "", //危急标识
- conceptList: [],
- };
- },
- created() {
- this.getTypeList();
- const id = this.$route.params.id;
- const libType = this.$route.params.libType;
- const copy = this.$route.params.copy || "";
- this.copy = copy;
- if (id) {
- this.minTitle = copy ? "基础术语维护-复制" : "基础术语维护-修改";
- this.id = id;
- this.colspan = 5;
- this.getDetail(id, libType);
- }
- },
- methods: {
- changeRadio() {
- this.klLisVO.maxValue = null;
- this.klLisVO.minValue = null;
- this.klLisVO.qualitative = "";
- this.klLisVO.unit = "";
- },
- //获取科室
- searchConcept(val) {
- const param = {
- excludedConceptIds: [],
- libType: "115",
- name: val,
- };
- api
- .searchConcept(param)
- .then((res) => {
- if (res.data.code == "0") {
- const data = res.data.data;
- this.conceptList = data;
- }
- })
- .catch((error) => {
- console.log(error);
- });
- },
- clearDataCi() {
- this.data.libType = "";
- },
- dragAdd(ev) {
- utils.dragBox("dragModalWrap", "dragModalTitle", "add");
- },
- dragDel() {
- utils.dragBox("dragModalWrap", "dragModalTitle", "del");
- },
- closeTable() {
- this.searchType = "";
- this.similarList = [];
- },
- // 诊断类型下--更多信息-类型
- getDioType(flag) {
- api.getknowledgeList().then((res) => {
- const data = res.data;
- if (data.code == 0) {
- this.dioTypeList = data.data[2];
- // 修改时无需赋值
- if (!flag) {
- this.dioType = this.dioTypeList[0].val;
- }
- }
- });
- },
- // 诊断类型下--更多信息-科室
- getDdeptList(conptId) {
- api.getDeptList({ type: 1 }).then((res) => {
- const data = res.data;
- if (data.code == 0) {
- this.deptList = data.data;
- if (!conptId) {
- this.dept = "全科"; //默认展示全科
- } else {
- // 科室id转成name显示
- this.deptList.map((v, i) => {
- if (v.conceptId == conptId) {
- this.dept = v.name;
- }
- });
- }
- const total = this.deptList.length;
- const average = parseInt(total / 3);
- const mod = total % 3; //余数
- const firstGroup = this.deptList.slice(0, average);
- let secGroup = [];
- let thirdGroup = [];
- let tempArr = [];
- if (mod == 2) {
- secGroup = this.deptList.slice(average, average * 2 + 1);
- thirdGroup = this.deptList.slice(average * 2 + 1, total);
- } else {
- secGroup = this.deptList.slice(average, average * 2);
- thirdGroup = this.deptList.slice(average * 2, total);
- }
- tempArr.push(
- { label: 1, deptList: firstGroup },
- { label: 2, deptList: secGroup },
- { label: 3, deptList: thirdGroup }
- );
- this.deptListArr = tempArr;
- }
- });
- },
- reViewData(data) {
- let tmpObj = [
- {
- isConcept: data.isConcept,
- libName: data.libName,
- remark: data.remark,
- spell: data.spell,
- type: data.typeName,
- conceptId: this.copy ? "" : data.conceptId,
- libId: this.copy ? "" : data.libId,
- isHasCommon: data.isHasCommon,
- synonymName: data.synonymName,
- status: data.status,
- libType: data.libType,
- },
- ];
- for (let i = 0; i < data.klConceptSub.length; i++) {
- let tmp = data.klConceptSub[i];
- tmp.libName = tmp.synonymName;
- tmp.type = tmp.typeName;
- tmp.libType = tmp.libType;
- }
- data.libName = tmpObj;
- data.otherNames = data.klConceptSub;
- return data;
- },
- getDetail(ids, libType) {
- if (ids) {
- api
- .getBaseConceptAll({ conceptId: ids, libType: libType })
- .then((res) => {
- const result = res.data;
- let redata = this.reViewData(result.data);
- if (result.code == 0) {
- this.data = redata.libName[0];
- this.klOperationVO = redata.klOperationDTO
- ? redata.klOperationDTO
- : this.klOperationVO;
- this.klVitalResultVO = redata.klVitalResultDTO
- ? redata.klVitalResultDTO
- : this.klVitalResultVO;
- this.klPacsVO = redata.klPacsDTO
- ? redata.klPacsDTO
- : this.klPacsVO;
- this.klLisVO = redata.klLisDTO ? redata.klLisDTO : this.klLisVO;
- this.klSymptomVO = redata.klSymptomDTO
- ? redata.klSymptomDTO
- : this.klSymptomVO;
- this.klDiseaseVO = redata.klDiseaseDTO
- ? redata.klDiseaseDTO
- : this.klDiseaseVO;
- this.radio = this.klLisVO.qualitative == "" ? 1 : 2;
- this.klTcmDiseaseVO = redata.klTcmDiseaseDTO
- ? redata.klTcmDiseaseDTO
- : this.klTcmDiseaseVO;
- this.klTcmSyndromeVO = redata.klTcmSyndromeDTO
- ? redata.klTcmSyndromeDTO
- : this.klTcmSyndromeVO;
- this.klDrugVO = redata.klDrugDTO
- ? redata.klDrugDTO
- : this.klDrugVO;
- this.singleword = redata.libName;
- this.synonymous = redata.otherNames;
- this.allwords = redata.libName.concat(redata.otherNames);
- this.showMore = redata.isHasCommon; //是否支持通用扩展
- this.maxAge = redata.maxAge;
- this.minAge = redata.minAge;
- this.maxValue = redata.maxVal;
- this.minValue = redata.minVal;
- this.description = redata.description;
- this.explains = redata.explains;
- this.drug = redata.drug;
- this.drugC = redata.drugC;
- // console.log("redata.drugC:", redata.drugC);
- // console.log("sexType:", result.data.sexType);
- this.sexType = result.data.sexType;
- if (type == "诊断") {
- this.dioType = redata.classify || "Ⅰ"; //类型,默认展示Ⅰ类
- const deptConptId = redata.deptId;
- this.getDioType(true);
- this.getDdeptList(deptConptId);
- }
- // this.sexType = result.data.sexType;
- // let sexType = redata.sexType;
- // this.sex.map((v, i) => {
- // if (v.value == sexType) {
- // this.sexType = v.name;
- // }
- // });
- } else {
- this.$message({
- message: result.msg,
- type: "warning",
- });
- }
- });
- }
- },
- getTypeList() {
- api
- .baseTypeGetPage({ name: "", size: 1000 })
- .then((res) => {
- const data = res.data;
- if (data.code == 0) {
- let types = data.data.records;
- this.typeList = types;
- // 类型改成平铺
- this.options.push({ label: 1, options: types });
- // this.typeList = data.data;
- /*if (types.length > 0) {
- const total = types.length;
- const average = parseInt(total / 3);
- const mod = total % 3; //余数
- const firstGroup = types.slice(0, average);
- let secGroup = [];
- let thirdGroup = [];
- if (mod == 2) {
- secGroup = types.slice(average, average * 2 + 1);
- thirdGroup = types.slice(average * 2 + 1, total);
- } else {
- secGroup = types.slice(average, average * 2);
- thirdGroup = types.slice(average * 2, total);
- }
- this.options.push(
- { label: 1, options: firstGroup },
- { label: 2, options: secGroup },
- { label: 3, options: thirdGroup }
- );
- }*/
- } else {
- this.$message({
- message: data.msg,
- type: "warning",
- });
- }
- })
- .catch((error) => {
- console.log(error);
- });
- },
- handleBlurGuo() {
- const pattern = /[^0-9]/g;
- if (this.klDiseaseVO.guoname && !pattern.test(this.klDiseaseVO.guoname)) {
- this.$message({
- message: "无法输入纯数字,请输入正确数据!",
- type: "warning",
- });
- this.guounfix = true;
- } else {
- let data = this.klDiseaseVO;
- data.guospell = pinyin.getCamelChars(data.guoname);
- this.guounfix = false;
- }
- },
- handleBlur(type, index, flg) {
- // 不能为纯数字、纯字符、纯数字加字符 4-18
- // const pattern = /[^~@#$%^&*_\-+=,,.。::"“??”;;、!!0-9]/g;
- // 需求更改:不能为纯数字,其余均可输入 5-20
- const pattern = /[^0-9]/g;
- if (type == 1) {
- //标准词输入
- if (this.data.libName && !pattern.test(this.data.libName)) {
- this.$message({
- // message:'无法输入纯数字或者纯字符,请输入正确数据!',
- message: "无法输入纯数字,请输入正确数据!",
- type: "warning",
- });
- // this.data.libName = '';
- this.unfit = true;
- } else {
- let data = this.data;
- data.spell = pinyin.getCamelChars(data.libName);
- this.unfit = false;
- this.searchType = "standard";
- this.getSimilarList(this.data.libName);
- }
- } else if (type == 2) {
- // 修改时术语名称、拼音和类型均不能修改
- if (flg == 99) {
- // if(this.synonymous[index-1].name && !pattern.test(this.synonymous[index-1].name)){
- if (
- this.allwords[index].libName &&
- !pattern.test(this.allwords[index].libName)
- ) {
- this.$message({
- message: "无法输入纯数字,请输入正确数据!",
- type: "warning",
- });
- // this.synonymous[index-1].name = '';
- this.unfit = true;
- } else {
- // let current = this.synonymous[index-1];
- let current = this.allwords[index];
- current.spell = pinyin.getCamelChars(current.libName);
- this.unfit = false;
- this.searchType = "standard";
- this.searchIndex = index;
- this.getSimilarList(this.allwords[index].libName);
- }
- } else {
- if (
- this.synonymous[index].libName &&
- !pattern.test(this.synonymous[index].libName)
- ) {
- this.$message({
- message: "无法输入纯数字,请输入正确数据!",
- type: "warning",
- });
- // this.synonymous[index].name = '';
- this.unfit = true;
- } else {
- let current = this.synonymous[index];
- current.spell = pinyin.getCamelChars(current.libName);
- this.unfit = false;
- this.searchType = "similar";
- this.searchIndex = index;
- this.getSimilarList(current.libName);
- }
- }
- }
- },
- handlePinyin(e, flag, index) {
- //只能输入英文
- e.target.value = e.target.value.replace(/[^a-zA-Z]/g, "");
- // 解决输入数字不触发更新
- if (flag == 1) {
- //标准词
- this.data.spell = e.target.value;
- } else if (flag == 2) {
- //同义词-修改
- this.allwords[index].spell = e.target.value;
- } else if (flag == 3) {
- //同义词-新增
- this.synonymous[index].spell = e.target.value;
- }
- // e.target.value = e.target.value.replace(/[^a-zA-Z]/g,'');
- },
- getSimilarList(name) {
- //不知道还有没有用
- return;
- if (!name) {
- this.closeTable();
- return;
- }
- const param = {
- inputStr: name,
- };
- api.getSimilarList(param).then((res) => {
- this.similarList = res.data.data;
- });
- },
- addSpan(type) {
- let singleSpan = {
- libName: "",
- remark: "",
- isConcept: 0,
- isEdit: true,
- spell: null,
- };
- if (type == 55) {
- this.allwords.push(singleSpan);
- this.synonymous.push(singleSpan);
- } else {
- this.synonymous.push(singleSpan);
- }
- },
- warning(msg, type) {
- this.$message({
- showClose: true,
- message: msg,
- type: type || "warning",
- });
- },
- showConfirmDialog(msg, resolve) {
- this.$alert(msg, "提示", {
- confirmButtonText: "确定",
- type: "warning",
- })
- .then(() => {
- resolve();
- })
- .catch(() => {});
- },
- deleLine(index, type, item) {
- // 只在界面删除数据,待点确认 后参才真正删除
- if (type == 55) {
- const { libId } = item;
- if (libId) {
- api.clearConceptInfo({ libId }).then((res) => {
- const result = res.data;
- if (result.code == 0) {
- this.synonymous.splice(index - 1, 1);
- this.allwords.splice(index, 1);
- }
- });
- } else {
- this.synonymous.splice(index - 1, 1);
- this.allwords.splice(index, 1);
- }
- } else {
- this.synonymous.splice(index, 1);
- }
- },
- // 保存基础术语
- handleConfirm(flg) {
- // console.log(this.synonymous);
- if (!this.data.libName) {
- this.warning("请输入医学标准术语名称");
- return;
- }
- if (!this.data.libType && !this.unfit && !this.data.type) {
- this.warning("请选择术语类型");
- return;
- }
- if (this.guounfix) {
- this.warning("ICD10国临版名称不能为纯数字");
- return;
- }
- // 年龄为必填项--2019-6-5需求
- if (this.showMore == 1) {
- if ((!this.minAge && this.minAge !== 0) || !this.maxAge) {
- this.warning("年龄不能为空,区间为0-200");
- return;
- }
- if (
- this.minAge < 0 ||
- this.minAge > 200 ||
- this.maxAge < 0 ||
- this.maxAge > 200
- ) {
- this.warning("年龄必须是0-200");
- return;
- }
- if (this.minAge >= this.maxAge) {
- this.warning("年龄最小值应该小于最大值");
- return;
- }
- if (this.data.type == "实验室检查子项目") {
- if (
- this.minValue < 0 ||
- this.minValue > 99999 ||
- this.maxValue < 0 ||
- this.maxValue > 99999
- ) {
- this.warning("取值范围必须是0-99999切单位不能为空");
- return;
- }
- if (
- this.minValue &&
- this.maxValue &&
- this.minValue >= this.maxValue
- ) {
- this.warning("最小值应该小于最大值");
- return;
- }
- }
- }
- if (
- this.data.type == "药品通用名" &&
- (this.klDrugVO.drug === "" || this.klDrugVO.drug === null)
- ) {
- this.warning("请选择药品类型");
- return;
- }
- // 过滤同义词空数据
- let realData = [];
- if (this.id) {
- //修改用暂存的列表
- realData = this.synonymous.filter((item) => {
- return item.libName;
- });
- let tmpArr = [];
- for (let k = 0; k < realData.length; k++) {
- if (realData[k].isConcept == 1) {
- let tmpdata = JSON.parse(JSON.stringify(this.data));
- tmpArr.push(realData[k]);
- realData.splice(k, 1);
- tmpdata.isConcept = 0;
- realData.push(tmpdata);
- this.data = tmpArr[0];
- }
- }
- } else {
- realData = this.synonymous.filter((item) => {
- return item.libName;
- });
- }
- let detailList = [];
- for (let i = 0; i < realData.length; i++) {
- let obj = {};
- realData[i].synonymName = realData[i].libName;
- realData[i].conceptId = undefined;
- realData[i].status = undefined;
- realData[i].libType = this.data.libType;
- if (this.copy) {
- realData[i].libId = undefined;
- }
- // obj.isConcept=realData[i].isConcept
- // obj.remark=realData[i].remark
- // obj.spell=realData[i].spell
- detailList.push(realData[i]);
- // detailList.push(obj);
- }
- // 校验是否有名称全为数字
- const pattern = /[^0-9]/g;
- const tmpData = this.data.libName;
- if (tmpData && !tmpData.match(pattern)) {
- this.$message({
- message: "无法输入纯数字,请输入正确数据!",
- type: "warning",
- });
- return false;
- }
- for (let d = 0; d < detailList.length; d++) {
- let dname = detailList[d].name;
- // if(detailList[d].name && !pattern.test(detailList[d].name)){
- if (dname && !dname.match(pattern)) {
- if (!this.unfit) {
- //避免和失焦事件同事弹出
- this.$message({
- message: "无法输入纯数字,请输入正确数据!",
- type: "warning",
- });
- }
- this.unfit = false;
- return false;
- break;
- }
- }
- // if (this.data.type == '症状' && !this.description) {
- // this.warning('请输入填写单患者界面展示通俗内容');
- // return;
- // }
- let params;
- let sexCode = this.sexType;
- params =
- this.data.libType == 106
- ? {
- ...this.data,
- klOperationVO: this.klOperationVO,
- klConceptSub: detailList || [],
- sexType: sexCode,
- maxAge: this.maxAge,
- minAge: this.minAge,
- status: this.data.status || 1,
- }
- : this.data.libType == 105
- ? {
- ...this.data,
- klVitalResultVO: this.klVitalResultVO,
- klConceptSub: detailList || [],
- sexType: sexCode,
- maxAge: this.maxAge,
- minAge: this.minAge,
- status: this.data.status || 1,
- }
- : this.data.libType == 110 || this.data.libType == 109
- ? {
- ...this.data,
- klPacsVO: this.klPacsVO,
- klConceptSub: detailList || [],
- sexType: sexCode,
- maxAge: this.maxAge,
- minAge: this.minAge,
- status: this.data.status || 1,
- }
- : this.data.libType == 107
- ? {
- ...this.data,
- klLisVO: this.klLisVO,
- klConceptSub: detailList || [],
- sexType: sexCode,
- maxAge: this.maxAge,
- minAge: this.minAge,
- status: this.data.status || 1,
- }
- : this.data.libType == 108
- ? {
- ...this.data,
- klLisVO: this.klLisVO,
- klConceptSub: detailList || [],
- sexType: sexCode,
- maxAge: this.maxAge,
- minAge: this.minAge,
- status: this.data.status || 1,
- }
- : this.data.libType == 103
- ? {
- ...this.data,
- klSymptomVO: this.klSymptomVO,
- klConceptSub: detailList || [],
- sexType: sexCode,
- maxAge: this.maxAge,
- minAge: this.minAge,
- status: this.data.status || 1,
- }
- : this.data.libType == 100
- ? {
- ...this.data,
- klDiseaseVO: this.klDiseaseVO,
- klConceptSub: detailList || [],
- sexType: sexCode,
- maxAge: this.maxAge,
- minAge: this.minAge,
- status: this.data.status || 1,
- }
- : this.data.libType == 127
- ? {
- ...this.data,
- klTcmDiseaseVO: this.klTcmDiseaseVO,
- klConceptSub: detailList || [],
- sexType: sexCode,
- maxAge: this.maxAge,
- minAge: this.minAge,
- status: this.data.status || 1,
- }
- : this.data.libType == 128
- ? {
- ...this.data,
- klTcmSyndromeVO: this.klTcmSyndromeVO,
- klConceptSub: detailList || [],
- sexType: sexCode,
- maxAge: this.maxAge,
- minAge: this.minAge,
- status: this.data.status || 1,
- }
- : this.data.libType == 101
- ? {
- ...this.data,
- klDrugVO: this.klDrugVO,
- klConceptSub: detailList || [],
- sexType: sexCode,
- maxAge: this.maxAge,
- minAge: this.minAge,
- status: this.data.status || 1,
- }
- : {
- ...this.data,
- klConceptSub: detailList || [],
- status: this.data.status || 1,
- sexType: sexCode,
- maxAge: this.maxAge,
- minAge: this.minAge,
- };
- // console.log(params);
- // return false
- this.saveDisable = true; //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
- api.saveBaseConceptInfo(params).then((res) => {
- const result = res.data;
- if (result.code == 0) {
- this.warning(res.data.msg || "操作成功", "success");
- //返回带搜索条件的首页
- this.$router.push({
- name: "BasicTermsMaintenance",
- params: Object.assign({}, this.$route.params, { currentPage: 1 }),
- });
- } else {
- this.warning(res.data.msg);
- }
- this.saveDisable = false;
- });
- },
- inputAge() {
- // console.log("输入年龄")
- },
- destroyed() {
- this.hackReset = false; //销毁组件
- this.$nextTick(() => {
- this.hackReset = true; //重建组件
- });
- },
- selectType(e) {
- this.typeList.map((v, i) => {
- if (v.name == e) {
- // console.log(v.code);
- this.showMore = v.isHasCommon;
- this.data.libType = v.code;
- this.data.isHasCommon = v.isHasCommon;
- this.conceptList = [];
- this.destroyed();
- }
- });
- if (e == "诊断") {
- this.getDioType();
- this.getDdeptList();
- } else {
- this.dioType = "";
- this.dept = "";
- }
- },
- },
- components: {
- SimilarListDrag,
- DivEditable,
- searchTerm,
- },
- };
- </script>
- <style lang="less" scoped>
- @import "../../less/admin.less";
- table,
- tr,
- td {
- list-style: none;
- }
- /deep/ .radioWrap .el-radio {
- display: block;
- height: 41px;
- line-height: 41px;
- text-align: right;
- margin-left: 0;
- }
- /deep/ .moreInfo .el-form-item .el-form-item__label {
- width: 85px;
- text-align: left;
- }
- .txt {
- /deep/.el-textarea__inner {
- min-height: 40px;
- max-height: 73px;
- }
- }
- .tips {
- /deep/.el-form-item__content {
- display: flex;
- align-items: center;
- .divBox {
- flex: 1;
- }
- .titles {
- flex: 0.25;
- font-size: 14px;
- line-height: 20px;
- color: red;
- margin-left: 10px;
- }
- }
- }
- // 饿了么分组下拉
- el-select-dropdown {
- .el-scrollbar {
- /deep/.el-scrollbar__view {
- display: flex !important;
- max-width: 100% !important;
- /deep/.el-select-group__wrap {
- min-width: 160px !important;
- display: inline-block !important;
- vertical-align: top !important;
- }
- }
- }
- }
- .range {
- margin-top: 20px;
- }
- .el-select-group__wrap::after {
- background: #fff !important;
- }
- .displayColor {
- color: #ccc;
- cursor: not-allowed;
- }
- .delete {
- cursor: pointer;
- }
- .content {
- background: #fff;
- padding: 20px 20px 30px;
- color: #545455;
- }
- .titl {
- margin: 25px 0 10px;
- }
- input:focus {
- border-color: #48c5d7 !important;
- }
- .deptbox {
- // width: 100%;
- background: #fff;
- padding: 20px 10px 30px;
- font-size: 14px;
- text-align: left;
- border-collapse: collapse;
- > tr {
- height: 30px;
- text-align: center;
- td {
- width: 135px;
- border: 1px solid #666;
- padding: 5px;
- position: relative;
- }
- input {
- border: none;
- border: 1px solid #ccc;
- width: 100%;
- height: 30px;
- padding: 0 7px;
- box-sizing: border-box;
- border-radius: 4px;
- }
- .ind {
- width: 55px;
- }
- .desc {
- width: 280px;
- }
- .descs {
- width: 50px;
- }
- }
- .addSpan {
- text-align: center;
- cursor: pointer;
- }
- }
- .deptboxTable {
- width: 100%;
- }
- .deptboxChange {
- padding-right: 210px;
- position: relative;
- }
- .actionDo {
- width: 200px;
- position: absolute;
- top: 1px;
- right: 0;
- .btnWrap {
- height: 30px;
- }
- }
- .btn {
- text-align: right;
- margin-top: 20px;
- margin-bottom: 20px;
- }
- .necess {
- display: inline-block;
- vertical-align: middle;
- color: red;
- margin-left: 2px;
- }
- .moreInfo {
- border-top: 1px solid #c0c4cc;
- margin-top: 45px;
- p {
- margin: 15px 0;
- }
- }
- .spell {
- text-align: center;
- }
- /deep/.ages {
- margin-top: 20px;
- position: relative;
- .el-input {
- display: inline-block;
- width: auto;
- .el-input__inner {
- width: 80px;
- padding: 0 5px;
- text-align: center;
- }
- .el-input__inner::-webkit-outer-spin-button,
- .el-input__inner::-webkit-inner-spin-button {
- -webkit-appearance: none;
- }
- .el-input__inner[type="number"] {
- -moz-appearance: textfield;
- }
- }
- .ageLine {
- display: inline-block;
- margin: 0 35px;
- }
- .inp {
- margin-left: 20px;
- }
- }
- /deep/ .marT {
- margin-top: 20px;
- }
- /deep/.description {
- position: relative;
- .necess {
- position: absolute;
- left: -158px;
- z-index: 2;
- }
- .el-input__inner {
- width: 200px;
- height: 40px;
- line-height: 40px;
- // text-align: center;
- }
- }
- </style>
|