LtModal.vue 21 KB

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