LtModal.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792
  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)"
  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}};</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 === '') {
  271. this.ty = 1;
  272. } else if (hisName !== '' && hisDetailName !== '') {
  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) {
  290. this.form.searchTextPre = val;
  291. this.form.searchText = val;
  292. },
  293. // 搜索列表
  294. searchTerms(query) {
  295. if (!query) {
  296. this.uniqueNameList = [];
  297. return;
  298. }
  299. const { hisName, hisDetailName } = this.form;
  300. if (hisName !== '' && hisDetailName === '') {
  301. this.ty = 1;
  302. } else if (hisName !== '' && hisDetailName !== '') {
  303. this.ty = 2;
  304. }
  305. this.searchType = this.ty;
  306. this.showDrop = true;
  307. let params = {
  308. type: this.ty ? this.ty : this.type,
  309. inputStr: query,
  310. sex: 3,
  311. age: 0
  312. };
  313. api.retrievalSearch(params).then(res => {
  314. this.showDrop = false;
  315. if (res.data.code === '0') {
  316. if (this.ty == 2) {
  317. this.uniqueNameList = res.data.data.lisDetailNames;
  318. } else {
  319. this.uniqueNameList = res.data.data.nameList;
  320. }
  321. }
  322. });
  323. },
  324. searchDrug(query) {
  325. if (!query) {
  326. this.drugList = [];
  327. return;
  328. }
  329. this.showDrop = true;
  330. let params = {
  331. type: 15,
  332. inputStr: query,
  333. sex: 3,
  334. age: 0
  335. };
  336. api.retrievalSearch(params).then(res => {
  337. this.showDrop = false;
  338. if (res.data.code === '0') {
  339. this.drugList = res.data.data.nameList;
  340. }
  341. });
  342. },
  343. onchange() {
  344. this.getRelatedMapping();
  345. },
  346. getRelatedMapping() {
  347. const { hisName, hisDetailName } = this.form;
  348. let params = {
  349. type: this.type,
  350. hisDetailName: hisDetailName,
  351. hisName: hisName,
  352. hospitalId: this.hospitalId
  353. };
  354. api.getRelatedMapping(params).then(res => {
  355. this.showDrop = false;
  356. if (res.data.code === '0') {
  357. this.mapList = res.data.data;
  358. }
  359. });
  360. },
  361. changeWord(newValue) {
  362. this.form.searchText = newValue.name;
  363. this.form.icdCode = newValue.code;
  364. this.form.conceptId = newValue.id;
  365. this.getIndex = 6;
  366. },
  367. drugchangeWord(newValue) {
  368. this.form.formConceptId = newValue.id;
  369. this.form.form = newValue.name;
  370. },
  371. handleVisible(flag) {
  372. if (!flag) {
  373. this.uniqueNameList = [];
  374. }
  375. },
  376. // 获取焦点
  377. handleFocus() {},
  378. onblur() {
  379. let type, name;
  380. const { hisName, hisDetailName } = this.form;
  381. if (this.type == 1) {
  382. type = 1; // 1-化验大项、2-化验小项
  383. name = hisName;
  384. if (hisName !== '' && hisDetailName !== '') {
  385. type = 2;
  386. name = hisDetailName;
  387. }
  388. }
  389. this.getTermMatching(type, name);
  390. },
  391. getTermMatching(type, name) {
  392. let params = {
  393. type: type ? type : this.type,
  394. inputStr: name ? name : this.form.hisName
  395. };
  396. api.getTermMatching(params).then(res => {
  397. this.showDrop = false;
  398. if (res.data.code === '0') {
  399. this.tableData = res.data.data;
  400. this.getIndex = 6;
  401. }
  402. });
  403. },
  404. // 建立关联-参数处理
  405. submitForm() {
  406. this.$refs.relationForm.validate(valid => {
  407. if (valid) {
  408. const {
  409. searchText,
  410. hisName,
  411. hisDetailName,
  412. icdCode,
  413. conceptId,
  414. formConceptId,
  415. hisCode,
  416. source
  417. } = this.form;
  418. // 当标准术语是套餐时,细项必须为空
  419. console.log(this.searchType);
  420. if (this.searchType === 1 && hisDetailName !== '') {
  421. this.warning('医院术语与标准术语类型不匹配,请修改');
  422. return;
  423. }
  424. // 当标准术语是细项时,医院术语套餐和细项均不能为空
  425. if (this.searchType === 2) {
  426. if (hisName === '') {
  427. this.warning('医院术语与标准术语类型不匹配,请修改');
  428. return;
  429. } else if (hisDetailName === '') {
  430. this.warning('医院术语与标准术语类型不匹配,请修改');
  431. return;
  432. }
  433. }
  434. let params = {
  435. hisName: hisName,
  436. uniqueName: searchText,
  437. hisDetailName: hisDetailName,
  438. type: this.type,
  439. conceptId: conceptId,
  440. formConceptId: formConceptId,
  441. hospitalId: this.hospitalId,
  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: -62px;
  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>