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