LtModal_20211025152816.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793
  1. <template>
  2. <div class="modal-container">
  3. <div class="cover"></div>
  4. <div class="modal-box">
  5. <div class="modal-title">
  6. <span class="title-l">{{title}}{{tip}}</span>
  7. <a class="close" @click="closeModal()">×</a>
  8. </div>
  9. <div class="modal-body">
  10. <el-form
  11. :model="form"
  12. :rules="rules"
  13. label-position="right"
  14. label-width="145px"
  15. ref="relationForm"
  16. >
  17. <div class="AddChemicalAndCommonMappingBox clearfix">
  18. <div class="titleBox clearfix">
  19. <p class="title">医院术语</p>
  20. <p class="title">标准术语</p>
  21. </div>
  22. <!-- 左边框中的内容 -->
  23. <div class="leftBox clearfix">
  24. <el-row>
  25. <el-col :span="16">
  26. <el-form-item :label="meal+':'" prop="hisName">
  27. <el-input
  28. v-model.trim="form.hisName"
  29. clearable
  30. style="minWidth: 240px"
  31. @input="onchange"
  32. @blur="onblur"
  33. ></el-input>
  34. </el-form-item>
  35. <el-form-item :label="meal+'预览:'">
  36. <span class="previewInfo" style="minWidth: 240px">{{form.hisName}}</span>
  37. </el-form-item>
  38. <el-form-item label="科室编码:" prop="hisCode" v-if="type==7">
  39. <el-input v-model.trim="form.hisCode" clearable style="minWidth: 240px"></el-input>
  40. </el-form-item>
  41. </el-col>
  42. <el-col :span="16" v-if="type == 2 || type == 1">
  43. <el-form-item :label="detail+':'" prop="hisDetailName">
  44. <el-input
  45. v-model.trim="form.hisDetailName"
  46. clearable
  47. style="minWidth: 240px"
  48. @input="onchange"
  49. @blur="onblur"
  50. @clear="clear"
  51. ></el-input>
  52. </el-form-item>
  53. <el-form-item :label="detail+'预览:'">
  54. <span class="previewInfo" style="minWidth: 240px">{{form.hisDetailName}}</span>
  55. </el-form-item>
  56. </el-col>
  57. </el-row>
  58. </div>
  59. <!-- 相互关联图标 -->
  60. <div class="midBox">
  61. <img class="midLogo" src="../../images/relation.png" alt />
  62. <p class="midTitle">相互关联</p>
  63. </div>
  64. <!-- 右边框中的内容 -->
  65. <div class="rightBox">
  66. <el-row>
  67. <el-col :span="16">
  68. <el-form-item :label="standard+':'" prop="searchText">
  69. <el-select
  70. style="width:100%;minWidth: 240px"
  71. v-model="form.searchText"
  72. filterable
  73. remote
  74. clearable
  75. :loading="showDrop"
  76. loading-text="加载中..."
  77. @change="changeWord"
  78. @focus="handleFocus"
  79. @visible-change="handleVisible"
  80. placeholder="搜索"
  81. :remote-method="searchTerms"
  82. reserve-keyword
  83. >
  84. <el-option
  85. v-for="item in uniqueNameList"
  86. :key="item.icd10Code"
  87. :label="searchType == 2 ? `${item.uniqueName}(${item.name})` : item.name"
  88. :value="searchType == 2 ? `${item.uniqueName}` : item"
  89. :title="searchType == 2 ? `${item.uniqueName}(${item.name})` : item.name"
  90. @click.native="handleChoose(searchType == 2 ? `${item.uniqueName}` : item.name,item.id)"
  91. ></el-option>
  92. </el-select>
  93. </el-form-item>
  94. <el-form-item v-if="tableData.length >0">
  95. <el-table
  96. :header-row-style="{height:'40px'}"
  97. :header-cell-style="{height:'40px',padding:'0'}"
  98. :row-class-name="tableRowClassName"
  99. :row-style="selectedstyle"
  100. :data="tableData"
  101. @row-click="btn"
  102. size="mini"
  103. :class="{tabs:uniqueNameList}"
  104. class="tab"
  105. >
  106. <el-table-column prop="name" :show-overflow-tooltip="true" label="词名"></el-table-column>
  107. <el-table-column prop="address" :show-overflow-tooltip="true" label="来源">
  108. <template slot-scope="scope">
  109. <span>{{scope.row.source == 1?'标准词匹配':scope.row.source == 2?'同义词匹配':scope.row.source == 5?'相似词匹配':''}}</span>
  110. </template>
  111. </el-table-column>
  112. </el-table>
  113. </el-form-item>
  114. <el-form-item :label="standard+'预览:'">
  115. <!-- <span class="previewInfo">{{!isEdit ? form.searchText.name : form.searchText}}</span> -->
  116. <span class="previewInfo" style="minWidth: 240px">{{form.searchText}}</span>
  117. </el-form-item>
  118. <el-form-item label="ICD编码:" v-if="type == 4">
  119. <span class="previewInfo" style="minWidth: 240px">{{form.icdCode}}</span>
  120. </el-form-item>
  121. <el-form-item :label="detail+':'" v-if="type == 12 || type == 13 || type == 6">
  122. <span class="previewInfo" style="minWidth: 240px">{{form.icdCode}}</span>
  123. </el-form-item>
  124. <el-form-item label="药品剂型:" v-if="type == 5">
  125. <el-select
  126. style="width:100%;minWidth: 240px"
  127. v-model="form.form"
  128. filterable
  129. remote
  130. clearable
  131. :loading="showDrop"
  132. loading-text="加载中..."
  133. @change="drugchangeWord"
  134. @focus="handleFocus"
  135. @visible-change="handleVisible"
  136. placeholder="搜索"
  137. :remote-method="searchDrug"
  138. reserve-keyword
  139. >
  140. <el-option
  141. v-for="item in drugList"
  142. :key="item.icd10Code"
  143. :label="item.name"
  144. :value="item"
  145. :title="item.name"
  146. ></el-option>
  147. </el-select>
  148. </el-form-item>
  149. </el-col>
  150. </el-row>
  151. </div>
  152. </div>
  153. </el-form>
  154. </div>
  155. <div class="mapList">
  156. 已关联标准术语:
  157. <span v-for="item in mapList" :key="item.id">
  158. <span v-if="item.uniqueName">{{item.uniqueName}}&nbsp;&nbsp;{{item.form}}{{item.hisCode}};</span>
  159. </span>
  160. </div>
  161. <div class="modal-footer">
  162. <button class="confirm btns" :disabled="saveDisable" @click="submitForm">确定</button>
  163. <button class="cancel btns" @click="closeModal">取消</button>
  164. </div>
  165. </div>
  166. </div>
  167. </template>
  168. <script>
  169. import api from '@api/icss.js';
  170. import config from '@api/config.js';
  171. import utils from '@api/utils.js';
  172. export default {
  173. name: 'lt-modal',
  174. props: ['modalVisiable', 'meal', 'detail', 'standard', 'type', 'data', 'tip'],
  175. data() {
  176. return {
  177. form: {
  178. searchText: '', //搜索字段
  179. hisName: '',
  180. icdCode: '',
  181. hisDetailName: '',
  182. formConceptId: '',
  183. conceptId: '',
  184. form: '',
  185. hisCode: '',
  186. source: ''
  187. },
  188. showDrop: false, //下拉框显示文字
  189. saveDisable: false, //保存按钮禁止点击
  190. uniqueNameList: [],
  191. rules: {
  192. hisName: [
  193. { required: true, message: '请输入' + this.meal, trigger: 'change' },
  194. { max: 80, message: this.meal + '最多80字', trigger: 'change' }
  195. ],
  196. searchText: [
  197. { required: true, message: '请选择' + this.meal, trigger: 'change' }
  198. ]
  199. },
  200. isEdit: false,
  201. editId: '',
  202. drugList: [],
  203. tableData: [],
  204. mapList: [],
  205. getIndex: 6,
  206. ty: this.type,
  207. searchType: '',
  208. title: '添加'
  209. };
  210. },
  211. created() {
  212. console.log(detail);
  213. if (this.type == 1) {
  214. this.ty = 2; // 1-化验大项、2-化验小项
  215. }
  216. //修改
  217. if (JSON.stringify(this.data) != '{}') {
  218. this.title = '修改';
  219. this.isEdit = true;
  220. this.editId = this.data.id;
  221. this.form.hisName = this.data.hisName;
  222. this.form.hisDetailName = this.data.hisDetailName;
  223. this.form.searchText = this.data.uniqueName;
  224. this.form.icdCode = this.data.code;
  225. this.form.conceptId = this.data.conceptId;
  226. this.form.formConceptId = this.data.formConceptId;
  227. this.form.form = this.data.form;
  228. this.form.source = this.data.source;
  229. this.form.hisCode = this.data.hisCode;
  230. let name;
  231. if (
  232. this.data.hisName !== '' &&
  233. this.data.hisDetailName === '' &&
  234. this.type == 1
  235. ) {
  236. this.ty = 1; // 1-化验大项、2-化验小项
  237. this.searchType = 1;
  238. name = this.data.hisName;
  239. } else if (
  240. this.data.hisName !== '' &&
  241. this.data.hisDetailName !== '' &&
  242. this.type == 1
  243. ) {
  244. this.ty = 2;
  245. this.searchType = 2;
  246. name = this.data.hisDetailName;
  247. }
  248. this.getTermMatching(this.ty, name);
  249. this.getRelatedMapping();
  250. }
  251. },
  252. methods: {
  253. selectedstyle({ row, rowIndex }) {
  254. if (this.getIndex === rowIndex) {
  255. return {
  256. 'background-color': '#EBEEF5',
  257. color: '#48C5D7'
  258. };
  259. }
  260. },
  261. tableRowClassName({ row, rowIndex }) {
  262. row.index = rowIndex;
  263. },
  264. btn(row) {
  265. const { hisName, hisDetailName } = this.form;
  266. if (hisName !== '' && hisDetailName === '' && this.type == 1) {
  267. this.ty = 1;
  268. } else if (hisName !== '' && hisDetailName !== '' && this.type == 1) {
  269. this.ty = 2;
  270. }
  271. console.log(this.ty)
  272. this.searchType = this.ty;
  273. if (this.getIndex == row.index) {
  274. this.getIndex = 6;
  275. this.form.searchText = '';
  276. this.form.conceptId = '';
  277. this.form.icdCode = '';
  278. this.form.source = '';
  279. } else {
  280. this.getIndex = row.index;
  281. this.form.searchText = row.name;
  282. this.form.conceptId = row.id;
  283. this.form.icdCode = row.code;
  284. this.form.source = row.source;
  285. }
  286. },
  287. handleChoose(val, id) {
  288. this.form.conceptId = id;
  289. this.form.searchTextPre = val;
  290. this.form.searchText = val;
  291. },
  292. // 搜索列表
  293. searchTerms(query) {
  294. if (!query) {
  295. this.uniqueNameList = [];
  296. return;
  297. }
  298. const { hisName, hisDetailName } = this.form;
  299. if (hisName !== '' && hisDetailName === '' && this.type == 1) {
  300. this.ty = 1;
  301. } else if (hisName !== '' && hisDetailName !== '' && this.type == 1) {
  302. this.ty = 2;
  303. }
  304. this.searchType = this.ty;
  305. this.showDrop = true;
  306. let params = {
  307. type: this.ty ? this.ty : this.type,
  308. inputStr: query,
  309. sex: 3,
  310. age: 0
  311. };
  312. api.retrievalSearch(params).then(res => {
  313. this.showDrop = false;
  314. if (res.data.code === '0') {
  315. if (this.ty == 2) {
  316. this.uniqueNameList = res.data.data.lisDetailNames;
  317. } else {
  318. this.uniqueNameList = res.data.data.nameList;
  319. }
  320. }
  321. });
  322. },
  323. searchDrug(query) {
  324. if (!query) {
  325. this.drugList = [];
  326. return;
  327. }
  328. this.showDrop = true;
  329. let params = {
  330. type: 15,
  331. inputStr: query,
  332. sex: 3,
  333. age: 0
  334. };
  335. api.retrievalSearch(params).then(res => {
  336. this.showDrop = false;
  337. if (res.data.code === '0') {
  338. this.drugList = res.data.data.nameList;
  339. }
  340. });
  341. },
  342. onchange() {
  343. this.getRelatedMapping();
  344. },
  345. getRelatedMapping() {
  346. const { hisName, hisDetailName } = this.form;
  347. let params = {
  348. type: this.type,
  349. hisDetailName: hisDetailName,
  350. hisName: hisName
  351. };
  352. api.getRelatedMapping(params).then(res => {
  353. this.showDrop = false;
  354. if (res.data.code === '0') {
  355. this.mapList = res.data.data;
  356. }
  357. });
  358. },
  359. changeWord(newValue) {
  360. this.form.searchText = newValue.name;
  361. this.form.icdCode = newValue.code;
  362. this.form.conceptId = newValue.id;
  363. this.getIndex = 6;
  364. },
  365. drugchangeWord(newValue) {
  366. this.form.formConceptId = newValue.id;
  367. this.form.form = newValue.name;
  368. },
  369. handleVisible(flag) {
  370. if (!flag) {
  371. this.uniqueNameList = [];
  372. }
  373. },
  374. // 获取焦点
  375. handleFocus() {},
  376. onblur() {
  377. let type, name;
  378. if (this.type == 1) {
  379. const { hisName, hisDetailName } = this.form;
  380. type = 1; // 1-化验大项、2-化验小项
  381. name = hisName;
  382. if (hisName !== '' && hisDetailName !== '') {
  383. type = 2;
  384. name = hisDetailName;
  385. }
  386. }
  387. this.getTermMatching(type, name);
  388. },
  389. clear(){
  390. const { hisName, hisDetailName } = this.form;
  391. this.getTermMatching(1, hisName);
  392. },
  393. getTermMatching(type, name) {
  394. let params = {
  395. type: type ? type : this.type,
  396. inputStr: name ? name : this.form.hisName
  397. };
  398. api.getTermMatching(params).then(res => {
  399. this.showDrop = false;
  400. if (res.data.code === '0') {
  401. this.tableData = res.data.data;
  402. this.getIndex = 6;
  403. }
  404. });
  405. },
  406. // 建立关联-参数处理
  407. submitForm() {
  408. this.$refs.relationForm.validate(valid => {
  409. if (valid) {
  410. const {
  411. searchText,
  412. hisName,
  413. hisDetailName,
  414. icdCode,
  415. conceptId,
  416. formConceptId,
  417. source,
  418. hisCode
  419. } = this.form;
  420. // 当标准术语是套餐时,细项必须为空
  421. if (this.searchType === 1 && hisDetailName !== '') {
  422. this.warning('医院术语与标准术语类型不匹配,请修改');
  423. return;
  424. }
  425. // 当标准术语是细项时,医院术语套餐和细项均不能为空
  426. if (this.searchType === 2) {
  427. if (hisName === '') {
  428. this.warning('医院术语与标准术语类型不匹配,请修改');
  429. return;
  430. } else if (hisDetailName === '') {
  431. this.warning('医院术语与标准术语类型不匹配,请修改');
  432. return;
  433. }
  434. }
  435. let params = {
  436. hisName: hisName,
  437. uniqueName: searchText,
  438. hisDetailName: hisDetailName,
  439. type: this.type,
  440. conceptId: conceptId,
  441. formConceptId: formConceptId,
  442. hisCode: hisCode,
  443. source: source ? source : 1
  444. };
  445. this.showSaveDialog(params);
  446. } else {
  447. console.log('error submit!!');
  448. return false;
  449. }
  450. });
  451. },
  452. // 建立关联-映射关系是否已存在
  453. showSaveDialog(params) {
  454. this.saveDisable = true; //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
  455. api
  456. .diseaseIsExistRecord(params)
  457. .then(res => {
  458. if (!res.data.data) {
  459. // 不存在,创建新的关联
  460. // 如果是编辑时,需要携带id
  461. if (this.isEdit) {
  462. params = { ...params, id: this.editId };
  463. }
  464. this.saveLisMapping(params, '保存成功', 'success');
  465. } else {
  466. // 已存在,提示修改
  467. this.warning('该条关联已存在,无法添加');
  468. this.saveDisable = false;
  469. }
  470. })
  471. .catch(err => {
  472. if (err.code === '900010001') {
  473. return false;
  474. }
  475. this.warning(err);
  476. });
  477. },
  478. // 初始化表单数据
  479. initForm() {
  480. this.form.hisName = '';
  481. this.form.searchText = '';
  482. this.form.icdCode = '';
  483. this.form.hisDetailName = '';
  484. this.form.form = '';
  485. this.form.conceptId = '';
  486. this.form.source = '';
  487. },
  488. // 映射关系不存在-建立关联
  489. saveLisMapping(params, msg, type) {
  490. api.saveOrUpdateDiseaseRecord(params).then(res => {
  491. if (res.data.code === '0') {
  492. this.warning(res.data.msg || msg, type);
  493. this.initForm();
  494. this.$emit('func', 'updata');
  495. } else {
  496. this.warning(res.data.msg);
  497. }
  498. this.saveDisable = false;
  499. });
  500. },
  501. // 关联已存在模态框
  502. showConfirmDialog(msg, resolve) {
  503. this.$alert(msg, '提示', {
  504. // customClass: 'confirmRealation',
  505. confirmButtonText: '是',
  506. // cancelButtonText: '否',
  507. // cancelButtonClass: 'cancelButton',
  508. type: 'warning'
  509. })
  510. .then(() => {
  511. resolve();
  512. })
  513. .catch(() => {
  514. this.saveDisable = false;
  515. this.warning('建立失败', 'error');
  516. });
  517. },
  518. warning(msg, type) {
  519. this.$message({
  520. showClose: true,
  521. message: msg,
  522. type: type || 'warning',
  523. duration: '1000'
  524. });
  525. },
  526. closeModal() {
  527. this.$emit('func', 'close');
  528. }
  529. }
  530. };
  531. </script>
  532. <style lang="less" scoped>
  533. .modal-container {
  534. position: fixed;
  535. top: 0;
  536. left: 0;
  537. width: 100%;
  538. height: 100%;
  539. z-index: 21;
  540. .cover {
  541. background: #000;
  542. opacity: 0.2;
  543. width: 100%;
  544. height: 100%;
  545. }
  546. .modal-box {
  547. width: 950px;
  548. background: #fff;
  549. position: absolute;
  550. top: 50%;
  551. left: 50%;
  552. transform: translate(-50%, -50%);
  553. .modal-title {
  554. height: 40px;
  555. background: #e3eaf4;
  556. .close {
  557. float: right;
  558. margin: 3px 13px 0 0;
  559. font-size: 22px;
  560. color: #979797;
  561. cursor: pointer;
  562. }
  563. }
  564. .btns {
  565. display: inline-block;
  566. width: 70px;
  567. height: 34px;
  568. line-height: 34px;
  569. background: #48c5d7;
  570. border-radius: 4px;
  571. color: #fff;
  572. text-align: center;
  573. cursor: pointer;
  574. outline: none;
  575. border: none;
  576. }
  577. .cancel {
  578. background: #fff;
  579. color: #48c5d7;
  580. border: 1px #48c5d7 solid;
  581. margin-left: 40px;
  582. }
  583. .modal-body {
  584. padding: 34px 22px;
  585. }
  586. .modal-footer {
  587. margin-bottom: 60px;
  588. width: 100%;
  589. text-align: center;
  590. }
  591. }
  592. }
  593. .tab {
  594. max-width: 240px;
  595. min-width: 240px;
  596. // position: absolute;
  597. // top: 0;
  598. z-index: 999;
  599. margin-bottom: 15px;
  600. margin-top: -18px;
  601. }
  602. // .tabs {
  603. // max-width: 240px;
  604. // min-width: 240px;
  605. // position: absolute;
  606. // top: 0;
  607. // left: 250px;
  608. // }
  609. .mapList {
  610. padding: 0 20px 20px;
  611. font-size: 14px;
  612. line-height: 24px;
  613. & span {
  614. padding: 0 3px;
  615. }
  616. }
  617. .el-select-dropdown__list,
  618. .el-select-dropdown__item {
  619. width: 219px;
  620. cursor: pointer;
  621. }
  622. .el-dropdown-menu__item:focus,
  623. .el-checkbox__input.is-checked + .el-checkbox__label,
  624. .el-dropdown-menu__item:not(.is-disabled):hover,
  625. .el-button--text,
  626. .el-date-table td.today span,
  627. .el-radio__input.is-checked + .el-radio__label,
  628. .el-pagination.is-background .el-pager li:not(.disabled):hover,
  629. .el-select-dropdown__item.selected {
  630. font-size: 14px;
  631. padding: 0 20px;
  632. position: relative;
  633. white-space: nowrap;
  634. overflow: hidden;
  635. text-overflow: ellipsis;
  636. color: #606266;
  637. height: 34px;
  638. line-height: 34px;
  639. -webkit-box-sizing: border-box;
  640. box-sizing: border-box;
  641. width: 219px;
  642. cursor: pointer;
  643. }
  644. /deep/ .el-form-item__error {
  645. width: 150px;
  646. }
  647. /*********新增编辑***********/
  648. .topBack {
  649. top: 0;
  650. }
  651. .titleBox {
  652. padding: 0 0 10px 0px;
  653. }
  654. /deep/.el-table th {
  655. background: #f7f7f7;
  656. }
  657. /deep/ .el-table td,
  658. .el-table th.is-leaf {
  659. border-bottom: none;
  660. }
  661. .title-l {
  662. font-size: 14px;
  663. line-height: 40px;
  664. margin-left: 10px;
  665. }
  666. .title {
  667. width: 50%;
  668. float: left;
  669. font-size: 14px;
  670. }
  671. .leftBox,
  672. .midBox,
  673. .rightBox {
  674. width: 380px;
  675. float: left;
  676. height: 248px;
  677. font-size: 14px;
  678. }
  679. .midBox {
  680. width: 6%;
  681. padding: 50px 0 0 0;
  682. text-align: center;
  683. }
  684. .midTitle {
  685. width: 40px;
  686. margin: 0 auto;
  687. }
  688. .midLogo {
  689. margin: 0 auto;
  690. }
  691. .leftBox,
  692. .rightBox {
  693. border: 1px solid #dcdfe6;
  694. padding: 20px 10px;
  695. }
  696. .rightBox {
  697. padding-right: 33px;
  698. height: 248px;
  699. overflow-y: auto;
  700. }
  701. .itemLabel {
  702. width: 100%;
  703. min-height: 50px;
  704. line-height: 50px;
  705. position: relative;
  706. }
  707. .itemLabelName,
  708. .searchInput,
  709. .searchName {
  710. float: left;
  711. color: #606266;
  712. }
  713. .itemLabelName {
  714. width: 150px;
  715. }
  716. .isRequired::before {
  717. content: '*';
  718. color: red;
  719. }
  720. .searchInput,
  721. .mealNameItem {
  722. padding: 0 5px;
  723. }
  724. .searchInput,
  725. .searchName {
  726. display: inline-block;
  727. height: 32px;
  728. line-height: 32px;
  729. border: 1px solid #a9a9a9;
  730. margin: 8px 0 0 0;
  731. }
  732. .searchName {
  733. text-align: center;
  734. border-left: none;
  735. cursor: pointer;
  736. padding: 0 12px;
  737. font-size: 16px;
  738. }
  739. .itemList {
  740. position: absolute;
  741. background: #fff;
  742. width: 162px;
  743. max-height: 150px;
  744. border: 1px solid #a9a9a9;
  745. left: 150px;
  746. top: 42px;
  747. z-index: 2;
  748. overflow-y: auto;
  749. }
  750. .itemList {
  751. width: calc(100% - 131px);
  752. }
  753. .mealNameItem {
  754. height: 30px;
  755. line-height: 30px;
  756. font-size: 14px;
  757. cursor: pointer;
  758. }
  759. .mealNameItem:hover {
  760. background: #f5f7fa;
  761. }
  762. .previewInfo {
  763. padding-left: 4px;
  764. display: inline-block;
  765. margin-top: 8px;
  766. // width: calc(100% - 160px);s
  767. line-height: 24px;
  768. overflow: hidden;
  769. word-wrap: break-word;
  770. word-break: break-all;
  771. }
  772. .sumbit {
  773. position: absolute;
  774. display: inline-block;
  775. width: 80px;
  776. height: 30px;
  777. line-height: 30px;
  778. border: 1px solid #a9a9a9;
  779. text-align: center;
  780. right: 100px;
  781. }
  782. .confirmRealation {
  783. .cancelButton {
  784. border: 1px solid #a9a9a9;
  785. span {
  786. color: #606266;
  787. }
  788. }
  789. }
  790. </style>