LtModal.vue 22 KB

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