LtModal.vue 22 KB

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