prescriptionTable.vue 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. <template>
  2. <div class="prescriptionTable">
  3. <el-table v-if="activeType == 1" :data="prescription.advices" border style="width: 99%;"
  4. :row-style="{ color: '#303133' }"
  5. :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
  6. <el-table-column align="center" prop="day" width="70" label="序号">
  7. <template slot-scope="scope">
  8. <div style="display:flex;align-items:center;">
  9. <el-input v-model="scope.row.groupno" placeholder=""></el-input>
  10. </div>
  11. </template>
  12. </el-table-column>
  13. <el-table-column align="center" prop="drug_name" label="名称">
  14. <template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span>
  15. </template>
  16. </el-table-column>
  17. <el-table-column align="center" prop="single_dose" width="120" label="单次用量">
  18. <template slot-scope="scope">
  19. <div style="display:flex;align-items:center;">
  20. <el-input v-model="scope.row.single_dose" @input="getAllChange(scope)"
  21. style="width:50%;"></el-input>
  22. <!-- <div>{{scope.row.single_dose_unit}}</div> -->
  23. <el-select v-model="scope.row.single_dose_unit" placeholder="请选择" style="width:50%;"
  24. @change="getAllChange(scope)">
  25. <el-option :label="scope.row.drug.min_unit" :value="scope.row.drug.min_unit"></el-option>
  26. <el-option :label="scope.row.drug.dose_unit"
  27. v-if="scope.row.drug.dose_unit != scope.row.drug.min_unit"
  28. :value="scope.row.drug.dose_unit"></el-option>
  29. </el-select>
  30. </div>
  31. </template>
  32. </el-table-column>
  33. <el-table-column align="center" prop="delivery_way" width="100" label="用法">
  34. <template slot-scope="scope">
  35. <el-select v-model="scope.row.delivery_way" placeholder="请选择">
  36. <el-option
  37. v-for="(item,index) in drugways"
  38. :key="index"
  39. :label="item.name"
  40. :value="item.name">
  41. </el-option>
  42. </el-select>
  43. </template>
  44. </el-table-column>
  45. <el-table-column align="center" prop="execution_frequency" width="100" label="频率">
  46. <template slot-scope="scope">
  47. <el-select v-model="scope.row.execution_frequency" placeholder="请选择" @change="getAllChange(scope)">
  48. <el-option
  49. v-for="item,index in efs"
  50. :key="index"
  51. :label="item.name"
  52. :value="item.name">
  53. </el-option>
  54. </el-select>
  55. </template>
  56. </el-table-column>
  57. <el-table-column align="center" prop="day" width="70" label="天数">
  58. <template slot-scope="scope">
  59. <div style="display:flex;align-items:center;">
  60. <el-input v-model="scope.row.day" @input="getAllChange(scope)" placeholder=""></el-input>
  61. {{'天'}}
  62. </div>
  63. </template>
  64. </el-table-column>
  65. <el-table-column align="center" prop="prescribing_number" width="120" label="总量">
  66. <template slot-scope="scope">
  67. <div style="display:flex;align-items:center;">
  68. <el-input v-model="scope.row.prescribing_number" @input="changePrescribingNumber(scope)"
  69. style="width:50%" placeholder=""></el-input>
  70. <!-- <div> {{scope.row.prescribing_number_unit}}</div> -->
  71. <el-select v-model="scope.row.prescribing_number_unit" placeholder="请选择" style="width:50%;"
  72. @change="getPrescribingNumberUnit(scope)">
  73. <el-option :label="scope.row.drug.min_unit" :value="scope.row.drug.min_unit"></el-option>
  74. <el-option :label="scope.row.drug.max_unit"
  75. v-if="scope.row.drug.min_unit != scope.row.drug.max_unit"
  76. :value="scope.row.drug.max_unit"></el-option>
  77. </el-select>
  78. </div>
  79. </template>
  80. </el-table-column>
  81. <el-table-column align="center" prop="retail_price" width="80" label="单价">
  82. <template slot-scope="scope">
  83. <div style="display:flex;align-items:center;">
  84. <el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>
  85. <div>{{'元'}}</div>
  86. </div>
  87. </template>
  88. </el-table-column>
  89. <el-table-column align="center" prop="hosp_appr_flag" width="100" label="医院审批标志">
  90. <template slot-scope="scope">
  91. <el-select v-model="scope.row.hosp_appr_flag" placeholder="请选择">
  92. <el-option label="审批通过" value="1"></el-option>
  93. <el-option label="无须审批" value="3"></el-option>
  94. <el-option label="审批不通过" value="2"></el-option>
  95. </el-select>
  96. </template>
  97. </el-table-column>
  98. <el-table-column align="center" prop="remark" width="50" label="备注">
  99. <template slot-scope="scope">
  100. <el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder=""></el-input>
  101. </template>
  102. </el-table-column>
  103. <el-table-column align="center" width="40" prop="name" label="操作">
  104. <template slot-scope="scope">
  105. <i class="el-icon-delete" @click="deleteDrug(scope.$index, scope.row)"></i>
  106. </template>
  107. </el-table-column>
  108. </el-table>
  109. <el-table v-if="activeType == 2" :data="prescription.project" border style="width: 99%;"
  110. :row-style="{ color: '#303133' }"
  111. :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
  112. <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
  113. <el-table-column align="center" prop="project_name" label="名称">
  114. <template slot-scope="scope"><span :title="scope.row.project_name">{{ scope.row.project_name }}</span>
  115. </template>
  116. </el-table-column>
  117. <el-table-column align="center" prop="statistical_classification" width="100" label="组">
  118. <template slot-scope="scope">{{scope.row.type ==
  119. 2?getGroup(scope.row.statistical_classification):'耗材'}}
  120. </template>
  121. </el-table-column>
  122. <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
  123. <template slot-scope="scope">
  124. <div style="display:flex;align-items:center;">
  125. <el-input v-model="scope.row.single_dose" @input="getProjectSingleDose(scope)"
  126. placeholder=""></el-input>
  127. <div>{{scope.row.unit}}</div>
  128. </div>
  129. </template>
  130. </el-table-column>
  131. <el-table-column align="center" prop="delivery_way" width="80" label="用法">
  132. <template slot-scope="scope">
  133. <el-autocomplete
  134. style="width:100%;"
  135. class="inline-input"
  136. v-model="scope.row.delivery_way"
  137. :fetch-suggestions="querySearch2"
  138. placeholder="请输入内容"
  139. ></el-autocomplete>
  140. </template>
  141. </el-table-column>
  142. <el-table-column align="center" prop="execution_frequency" width="80" label="频率">
  143. <template slot-scope="scope">
  144. <el-input v-model="scope.row.execution_frequency" @input="getProjectSingleDose(scope)"
  145. placeholder=""></el-input>
  146. </template>
  147. </el-table-column>
  148. <el-table-column align="center" prop="number_days" width="70" label="天数">
  149. <template slot-scope="scope">
  150. <div style="display:flex;align-items:center;">
  151. <el-input v-model="scope.row.number_days" @input="getProjectSingleDose(scope)"
  152. placeholder=""></el-input>
  153. <div>{{'天'}}</div>
  154. </div>
  155. </template>
  156. </el-table-column>
  157. <el-table-column align="center" prop="total" width="70" label="总量">
  158. <template slot-scope="scope">
  159. <div style="display:flex;align-items:center;">
  160. <el-input v-model="scope.row.total" style="width:60%" placeholder=""></el-input>
  161. <div>{{scope.row.unit}}</div>
  162. </div>
  163. </template>
  164. </el-table-column>
  165. <el-table-column align="center" prop="name" width="70" label="单价">
  166. <template slot-scope="scope">
  167. <div style="display:flex;align-items:center;">
  168. <el-input v-model="scope.row.price" placeholder="" readonly></el-input>
  169. <div>{{'元'}}</div>
  170. </div>
  171. </template>
  172. </el-table-column>
  173. <el-table-column align="center" prop="name" width="50" label="备注">
  174. <template slot-scope="scope">
  175. <el-input v-model="scope.row.remark" :title="scope.row.remark"></el-input>
  176. </template>
  177. </el-table-column>
  178. <el-table-column align="center" width="40" prop="name" label="操作">
  179. <template slot-scope="scope">
  180. <i class="el-icon-delete" @click="deleteProject(scope.row,scope.$index)"></i>
  181. </template>
  182. </el-table-column>
  183. </el-table>
  184. <div class="additionalBox">
  185. <div class="additionalOne" v-for="(item,index) in prescription.addition" :key="index">
  186. <span :title="item.item_name">{{item.item_name}}</span>
  187. <el-input v-model="item.price" placeholder="" style="width:50px;"></el-input>
  188. <el-input v-model="item.count" placeholder="" style="width:50px;"></el-input>
  189. <i class="el-icon-delete deleteIcon" @click="delAddition(index,item)"></i>
  190. </div>
  191. </div>
  192. </div>
  193. </template>
  194. <script>
  195. import { getDictionaryDataConfig } from '@/utils/data'
  196. import { delHisAddition, delHisAdvice, delHisProject, getInitData } from '@/api/his/his'
  197. export default {
  198. props: {
  199. preDrugs: Array,
  200. activeType: Number,
  201. addtions_charge: Array,
  202. prescription: {
  203. type: Object,
  204. default: function() {
  205. return {
  206. name: '',
  207. advices: [],
  208. project: [],
  209. drugways: [],
  210. efs: []
  211. }
  212. }
  213. }
  214. },
  215. data() {
  216. return {
  217. advices: [],
  218. tableData: [],
  219. newoptions: [{
  220. value: '1',
  221. label: '1'
  222. }, {
  223. value: '2',
  224. label: '2'
  225. }, {
  226. value: '3',
  227. label: '3'
  228. }, {
  229. value: '4',
  230. label: '4'
  231. }, {
  232. value: '5',
  233. label: '5'
  234. }],
  235. value: '1',
  236. input: 1,
  237. efs: [],
  238. drugways: []
  239. }
  240. },
  241. methods: {
  242. createFilter(queryString) {
  243. return (restaurant) => {
  244. return (restaurant.name.toLowerCase().indexOf(queryString.toLowerCase()) === 0)
  245. }
  246. },
  247. querySearch2(queryString, cb) {
  248. var restaurants = this.getDictionaryDataConfig('system', 'project_use')
  249. restaurants.map(item => {
  250. item.value = item.name
  251. })
  252. var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants
  253. // 调用 callback 返回建议列表的数据
  254. cb(results)
  255. },
  256. delAddition(index, addition) {
  257. if (this.prescription.order_status == 2) {
  258. this.$message.error('该处方已经结算,无法删除')
  259. return
  260. }
  261. this.$confirm('附加费删除后不可恢复,是否确认删除', '删除', {
  262. confirmButtonText: '确 定',
  263. cancelButtonText: '取 消',
  264. type: 'warning'
  265. }).then(() => {
  266. this.$nextTick(function() {
  267. if (addition.id == 0) {
  268. this.prescription.addition.splice(index, 1)
  269. } else {
  270. let params = {
  271. 'id': addition.id
  272. }
  273. delHisAddition(params).then(response => {
  274. if (response.data.state == 0) {
  275. this.$message.error(response.data.msg)
  276. return false
  277. } else {
  278. var temp2 = this.deepClone(this.prescription.addition)
  279. temp2.splice(index, 1)
  280. this.prescription.addition = temp2
  281. this.$message.success(response.data.data.msg)
  282. }
  283. })
  284. }
  285. })
  286. })
  287. .catch(() => {
  288. })
  289. },
  290. getInitData() {
  291. getInitData().then(response => {
  292. if (response.data.state == 0) {
  293. this.$message.error(response.data.msg)
  294. return false
  295. } else {
  296. this.drugways = response.data.data.drugways
  297. this.efs = response.data.data.efs
  298. }
  299. })
  300. }, deleteDrug: function(index, row) {
  301. if (this.prescription.order_status == 2) {
  302. this.$message.error('该处方已经结算,无法删除')
  303. return
  304. }
  305. this.$confirm('药品删除后不可恢复,是否确认删除', '删除', {
  306. confirmButtonText: '确 定',
  307. cancelButtonText: '取 消',
  308. type: 'warning'
  309. }).then(() => {
  310. this.$nextTick(function() {
  311. if (row.advice_id == 0) {
  312. this.prescription.advices.splice(index, 1)
  313. } else {
  314. let params = {
  315. 'id': row.advice_id
  316. }
  317. delHisAdvice(params).then(response => {
  318. if (response.data.state == 0) {
  319. this.$message.error(response.data.msg)
  320. return false
  321. } else {
  322. var temp2 = this.deepClone(this.prescription.advices)
  323. temp2.splice(index, 1)
  324. this.prescription.advices = temp2
  325. this.$message.success(response.data.data.msg)
  326. }
  327. })
  328. }
  329. })
  330. })
  331. .catch(() => {
  332. })
  333. }, deepClone(source) {
  334. if (!source && typeof source !== 'object') {
  335. throw new Error('error arguments', 'shallowClone')
  336. }
  337. const targetObj = source.constructor === Array ? [] : {}
  338. Object.keys(source).forEach((keys) => {
  339. if (source[keys] && typeof source[keys] === 'object') {
  340. targetObj[keys] = this.deepClone(source[keys])
  341. } else {
  342. targetObj[keys] = source[keys]
  343. }
  344. })
  345. return targetObj
  346. },
  347. setNewData: function(data) {
  348. this.prescription = data
  349. // this.prescription.advices = data.advices
  350. },
  351. getDictionaryDataConfig(module, filed_name) {
  352. return getDictionaryDataConfig(module, filed_name)
  353. },
  354. getGroup(id) {
  355. var name = ''
  356. var statistics_category = getDictionaryDataConfig('system', 'statistics_category')
  357. console.log('2235', statistics_category)
  358. for (let i = 0; i < statistics_category.length; i++) {
  359. if (id == statistics_category[i].id) {
  360. name = statistics_category[i].name
  361. }
  362. }
  363. return name
  364. },
  365. deleteProject(row, i) {
  366. if (this.prescription.order_status == 2) {
  367. this.$message.error('该处方已经结算,无法删除')
  368. return
  369. }
  370. this.$confirm('项目删除后不可恢复,是否确认删除', '删除', {
  371. confirmButtonText: '确 定',
  372. cancelButtonText: '取 消',
  373. type: 'warning'
  374. }).then(() => {
  375. if (row.id == 0) {
  376. this.prescription.project.splice(i, 1)
  377. } else {
  378. let params = {
  379. 'id': row.id
  380. }
  381. delHisProject(params).then(response => {
  382. if (response.data.state == 0) {
  383. this.$message.error(response.data.msg)
  384. return false
  385. } else {
  386. for (let i = 0; i < this.prescription.project.length; i++) {
  387. if (this.prescription.project[i].id == row.id) {
  388. this.prescription.project.splice(i, 1)
  389. }
  390. }
  391. this.$message.success(response.data.data.msg)
  392. }
  393. })
  394. }
  395. })
  396. .catch(() => {
  397. })
  398. },
  399. getAllChange(scope) {
  400. if (scope.row.drug.min_unit == scope.row.single_dose_unit) {
  401. if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
  402. console.log(1)
  403. scope.row.prescribing_number = scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)
  404. } else {
  405. console.log(12)
  406. scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1)) * (scope.row.day ? scope.row.day : 1) / scope.row.drug.min_number)
  407. }
  408. } else {
  409. if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
  410. console.log(123)
  411. scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose)
  412. } else {
  413. console.log(1234)
  414. scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose / scope.row.drug.min_number)
  415. }
  416. }
  417. if (scope.row.prescribing_number == 0) {
  418. scope.row.prescribing_number = 1
  419. }
  420. if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
  421. // scope.row.retail_price = scope.row.drug.min_number / scope.row.retail_price
  422. if (scope.row.prescribing_number > scope.row.drug.total) {
  423. this.$message.error(scope.row.drug_name + '库存不足')
  424. }
  425. } else {
  426. if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total) {
  427. this.$message.error(scope.row.drug_name + '库存不足')
  428. }
  429. // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
  430. }
  431. },
  432. getPrescribingNumberUnit(scope) {
  433. console.log('scope',scope)
  434. // if(scope.row.drug.min_unit == scope.row.single_dose_unit){
  435. // if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
  436. // scope.row.prescribing_number = scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day
  437. // }else{
  438. // scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency)) * scope.row.day / scope.row.drug.min_number)
  439. // }
  440. // }else{
  441. // if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
  442. // scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day) / scope.row.drug.dose)
  443. // }else{
  444. // scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day) / scope.row.drug.dose / scope.row.drug.min_number)
  445. // }
  446. // }
  447. // if(scope.row.prescribing_number == 0){
  448. // scope.row.prescribing_number = 1
  449. // }
  450. if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
  451. scope.row.retail_price = scope.row.drug.min_price
  452. // if (scope.row.prescribing_number > scope.row.drug.total) {
  453. // this.$message.error(scope.row.drug_name + '库存不足')
  454. // }
  455. } else {
  456. // if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total) {
  457. // this.$message.error(scope.row.drug_name + '库存不足')
  458. // }
  459. scope.row.retail_price = scope.row.drug.retail_price
  460. }
  461. },
  462. changePrescribingNumber(scope) {
  463. if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
  464. if (parseInt(scope.row.prescribing_number) > scope.row.drug.total) {
  465. this.$message.error(scope.row.drug_name + '库存不足')
  466. }
  467. } else {
  468. if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total) {
  469. this.$message.error(scope.row.drug_name + '库存不足')
  470. }
  471. }
  472. },
  473. getProjectSingleDose(scope) {
  474. this.prescription.project[scope.$index].total = scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.number_days ? scope.row.number_days : 1)
  475. if (this.prescription.project[scope.$index].total == 0) {
  476. this.prescription.project[scope.$index].total = 1
  477. }
  478. },
  479. getProjectDay(scope) {
  480. this.prescription.project[scope.$index].total = scope.row.single_dose * scope.row.number_days
  481. if (this.prescription.project[scope.$index].total == 0) {
  482. this.prescription.project[scope.$index].total = 1
  483. }
  484. },
  485. getNum(execution_frequency) {
  486. let arr = [
  487. { name: '立即执行', count: 1 },
  488. { name: '透析时', count: 1 },
  489. { name: '透析1h一次', count: 1 },
  490. { name: '透析2h一次', count: 1 },
  491. { name: '透析3h一次', count: 1 },
  492. { name: '每日一次', count: 1 },
  493. { name: '每日两次', count: 2 },
  494. { name: '每日三次', count: 3 },
  495. { name: '每晚一次', count: 1 },
  496. { name: '每晚', count: 1 },
  497. { name: '上机前', count: 1 },
  498. { name: '下机前', count: 1 },
  499. { name: '透析后立即', count: 1 },
  500. { name: '持续使用', count: 1 },
  501. { name: '临时开药', count: 1 },
  502. { name: '临睡前', count: 1 },
  503. { name: '隔日一次', count: 1 },
  504. { name: '隔三日一次', count: 1 },
  505. { name: '每二小时一次', count: 12 },
  506. { name: '每四小时一次', count: 6 },
  507. { name: '每六小时一次', count: 4 },
  508. { name: '每八小时一次', count: 3 }
  509. ]
  510. let num = ''
  511. arr.map(item => {
  512. if (item.name == execution_frequency) {
  513. num = item.count
  514. }
  515. })
  516. if (num == '') {
  517. num = 1
  518. }
  519. return num
  520. }
  521. }, mounted() {
  522. this.getInitData()
  523. },
  524. watch: {
  525. 'prescription.advices': {
  526. handler(newVal, oldVal) {
  527. },
  528. deep: true
  529. }
  530. // "prescription.project":{
  531. // handler(newVal,oldVal){
  532. // newVal.map((item,index) => {
  533. // if(item.single_dose != oldVal[index].single_dose || item.number_days != oldVal[index].number_days){
  534. // item.total = item.single_dose * item.number_days
  535. // }
  536. // })
  537. // },
  538. // deep:true
  539. // }
  540. }
  541. }
  542. </script>
  543. <style lang="scss">
  544. .prescriptionTable {
  545. .el-input__inner {
  546. padding: 0 5px;
  547. }
  548. .additionalBox {
  549. margin-top: 20px;
  550. display: flex;
  551. flex-wrap: wrap;
  552. .additionalOne {
  553. margin-right: 20px;
  554. margin-bottom: 10px;
  555. display: flex;
  556. align-items: center;
  557. > span {
  558. white-space: nowrap;
  559. overflow: hidden;
  560. text-overflow: ellipsis;
  561. width: 80px;
  562. display: inline-block;
  563. font-size: 14px;
  564. }
  565. }
  566. .deleteIcon {
  567. color: red;
  568. margin-left: 5px;
  569. }
  570. }
  571. .el-table th .cell, .el-table td .cell {
  572. padding: 0 2px;
  573. white-space: pre-line;
  574. }
  575. .el-icon-delete {
  576. color: red;
  577. }
  578. }
  579. </style>