Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

prescriptionTable.vue 24KB

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