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

prescriptionTable.vue 24KB

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