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

outpatientChargesManagement.vue 27KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789
  1. <template>
  2. <div class="main-contain outpatientChargesManagement">
  3. <div class="position">
  4. <bread-crumb :crumbs='crumbs'></bread-crumb>
  5. </div>
  6. <div class="app-container" style="display:flex;flex: 1;padding: 20px 20px 0px 20px;">
  7. <div class="mainLeft">
  8. <!--<div class="mainCell" style="justify-content: space-between;">-->
  9. <!--<p>未就诊:<span>1</span>人</p>-->
  10. <!--<p>已就诊:<span>0</span>人</p>-->
  11. <!--</div>-->
  12. <!--<div class="mainCell">-->
  13. <!--<el-radio-group v-model="radio" @change="changeRadio">-->
  14. <!--<el-radio :label=1>未就诊</el-radio>-->
  15. <!--<el-radio :label=2>已就诊</el-radio>-->
  16. <!--<el-radio :label=3>全部</el-radio>-->
  17. <!--</el-radio-group>-->
  18. <!--</div>-->
  19. <div class="mainCell" style="margin-bottom:10px;">
  20. <el-input size="small" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
  21. <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary" @click="searchAction">
  22. 搜索
  23. </el-button>
  24. </div>
  25. <div style="flex:1;overflow-y:auto;">
  26. <el-table :data="patientTableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
  27. :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
  28. highlight-current-row ref="tab"
  29. @current-change="handleCurrentChange">
  30. <el-table-column align="center" prop="name" label="患者姓名">
  31. <template slot-scope="scope">{{scope.row.patients?scope.row.patients.name:''}}</template>
  32. </el-table-column>
  33. <el-table-column align="center" prop="name" label="就诊号" width="90">
  34. <template slot-scope="scope">{{ scope.row.his_patient ?scope.row.his_patient.number:''}}</template>
  35. </el-table-column>
  36. </el-table>
  37. </div>
  38. </div>
  39. <div class="mainRight">
  40. <div class="mainCell" style="margin-bottom:10px;flex-direction: row-reverse;">
  41. <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">打印处置单</el-button>
  42. <el-button size="small" @click="open(2)" type="primary">打印治疗单</el-button>
  43. <el-button size="small" @click="open(3)" type="primary">打印</el-button>
  44. <el-button v-loading="loadingone" size="small"
  45. @click="open(6)"
  46. type="primary">挂号
  47. </el-button>
  48. <el-button v-loading="loadingtwo" v-if="this.info.prescription_status == 1" size="small"
  49. @click="open(4)"
  50. type="primary">收费
  51. </el-button>
  52. <el-button size="small" @click="open(5)" type="primary" v-if="this.info && this.info.prescription_status == 3">退费</el-button>
  53. </div>
  54. <div class="mainCenter">
  55. <el-tabs class="settlementTabs" v-model="activeName" @tab-click="handleClick">
  56. <el-tab-pane label="日结" name="first">
  57. <div style="display:flex;height:100%;">
  58. <div class="centerLeft">
  59. <div class="tabsBox">
  60. <!--<el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>-->
  61. <el-tabs class="preTabs" v-model="editableTabsValue" type="card" @tab-click="tabclickEvent">
  62. <el-tab-pane
  63. v-for="(item, index) in prescriptions"
  64. :key="index"
  65. :label="item.name"
  66. :name="item.name"
  67. >
  68. </el-tab-pane>
  69. <div class="RP">
  70. Rp
  71. <el-date-picker
  72. v-model="record_date"
  73. type="date"
  74. @change="changeDate"
  75. format="yyyy-MM-dd"
  76. value-format="yyyy-MM-dd"
  77. placeholder="选择日期">
  78. </el-date-picker>
  79. </div>
  80. <prescription-table ref="prescription_tables"
  81. :prescription="curPrescriptions"></prescription-table>
  82. </el-tabs>
  83. </div>
  84. <div class="costBox">
  85. <span>当前处方总费用:<span style="color:red;">{{ total}}元</span></span>
  86. <span v-if="this.curPrescriptions.order_status == 1">待结算</span>
  87. <span v-if="this.curPrescriptions.order_status == 2">已结算</span>
  88. <span v-if="this.curPrescriptions.order_status == 3">已退费</span>
  89. </div>
  90. </div>
  91. <div class="centerRight">
  92. <p class="centerRightTitle">人员信息</p>
  93. <div style="display:flex;justify-content: space-between;line-height:30px;">
  94. <span style="font-size:14px;">人员编码:{{patientInfo.dialysis_no}}</span>
  95. <span style="font-size:14px;">日期:{{record_date}}</span>
  96. </div>
  97. <ul class="basicUl">
  98. <li style="width:50%;">姓名:{{patientInfo.name}}</li>
  99. <li style="width:50%;">性别:{{patientInfo.gender == 1 ? '男' : '女' }}</li>
  100. <li style="width:50%;">年龄:{{patientInfo.age }}</li>
  101. <li style="width:50%;">身高:{{patientInfo.height?patientInfo.height:''}}</li>
  102. <li style="width:50%;">体重:{{patientInfo.weight?patientInfo.weight:''}}</li>
  103. <li style="width:50%;">电话:{{patientInfo.phone}}</li>
  104. <li style="width:100%;">地址:{{patientInfo.home_address}}</li>
  105. <li style="width:100%;">过敏史及其他病史:{{info.sick_history}}</li>
  106. </ul>
  107. <p class="centerRightTitle">诊断信息</p>
  108. <div style="display:flex;justify-content: space-between;line-height:30px;">
  109. <span style="font-size:14px;">门诊编号:{{ hisPatientInfo.number}}</span>
  110. </div>
  111. <ul class="basicUl">
  112. <li style="width:50%;">医生:{{ info.doctor }}</li>
  113. <li style="width:50%;">科室:{{ info.departments }}</li>
  114. <li style="width:50%;">总费用:{{ getTotal() }}</li>
  115. <li style="width:100%;">判断结果:{{info.diagnosis}}</li>
  116. <li style="width:100%;">是否有传染病:</li>
  117. <li style="width:100%;">血压:</li>
  118. </ul>
  119. </div>
  120. </div>
  121. </el-tab-pane>
  122. <!--<el-tab-pane label="月结" name="second">-->
  123. <!--<div style="display:flex;height:100%;">-->
  124. <!--<div class="centerLeft">-->
  125. <!--<div class="tabsBox">-->
  126. <!--&lt;!&ndash;<el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>&ndash;&gt;-->
  127. <!--<el-tabs class="preTabs" v-model="editableTabsValue" type="card" closable>-->
  128. <!--<el-tab-pane-->
  129. <!--v-for="(item, index) in editableTabs"-->
  130. <!--:key="index"-->
  131. <!--:label="item.title"-->
  132. <!--:name="item.name"-->
  133. <!--&gt;-->
  134. <!--<div class="RP">-->
  135. <!--Rp-->
  136. <!--<el-date-picker-->
  137. <!--style="width:420px;"-->
  138. <!--v-model="value1"-->
  139. <!--type="daterange"-->
  140. <!--range-separator="至"-->
  141. <!--start-placeholder="开始日期"-->
  142. <!--end-placeholder="结束日期">-->
  143. <!--</el-date-picker>-->
  144. <!--</div>-->
  145. <!--<prescription-table :preTableData='preTableData'></prescription-table>-->
  146. <!--</el-tab-pane>-->
  147. <!--&lt;!&ndash;<el-tab-pane name="more" closable><span slot="label"><i class="el-icon-plus" @click="addTab"></i></span></el-tab-pane>&ndash;&gt;-->
  148. <!--</el-tabs>-->
  149. <!--</div>-->
  150. <!--<div class="costBox">-->
  151. <!--<span>处方编号:2134348971237883</span>-->
  152. <!--<span>当前处方总费用:<span style="color:red;">{{ total }}元</span></span>-->
  153. <!--<span>{{ state }}</span>-->
  154. <!--</div>-->
  155. <!--</div>-->
  156. <!--<div class="centerRight">-->
  157. <!--<p class="centerRightTitle">人员信息</p>-->
  158. <!--<div style="display:flex;justify-content: space-between;line-height:30px;">-->
  159. <!--<span style="font-size:14px;">人员编码:</span>-->
  160. <!--<span style="font-size:14px;">日期:{{start_time}}</span>-->
  161. <!--</div>-->
  162. <!--<ul class="basicUl">-->
  163. <!--<li style="width:50%;">姓名:{{ patientInfo.name }}</li>-->
  164. <!--<li style="width:50%;">性别:{{ patientInfo && patientInfo.gend == 1 ? '男' : "女" }}</li>-->
  165. <!--<li style="width:50%;">年龄:{{ patientInfo.age }}</li>-->
  166. <!--<li style="width:50%;">身高:</li>-->
  167. <!--<li style="width:50%;">体重:</li>-->
  168. <!--<li style="width:50%;">电话:</li>-->
  169. <!--<li style="width:100%;">地址:</li>-->
  170. <!--<li style="width:100%;">过敏史:</li>-->
  171. <!--</ul>-->
  172. <!--<p class="centerRightTitle">诊断信息</p>-->
  173. <!--<div style="display:flex;justify-content: space-between;line-height:30px;">-->
  174. <!--<span style="font-size:14px;">门诊编号:676273816287361</span>-->
  175. <!--</div>-->
  176. <!--<ul class="basicUl">-->
  177. <!--<li style="width:50%;">医生:{{ doctor.name }}</li>-->
  178. <!--<li style="width:50%;">科室:{{ doctor.department }}</li>-->
  179. <!--<li style="width:100%;">费用:{{ doctor.total }}元</li>-->
  180. <!--<li style="width:100%;">判断结果:</li>-->
  181. <!--<li style="width:100%;">是否有传染病:</li>-->
  182. <!--<li style="width:100%;">血压:</li>-->
  183. <!--</ul>-->
  184. <!--</div>-->
  185. <!--</div>-->
  186. <!--</el-tab-pane>-->
  187. </el-tabs>
  188. </div>
  189. </div>
  190. </div>
  191. <!--<additionalCharges ref='additionalCharges'></additionalCharges>-->
  192. </div>
  193. </template>
  194. <script>
  195. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  196. import noCharge from './components/noCharge'
  197. import charged from './components/charged'
  198. import medicalInsuranceRefund from './components/medicalInsuranceRefund'
  199. import prescriptionTable from './components/prescriptionTable'
  200. import additionalCharges from './components/additionalCharges'
  201. import { getPatientInformation, getPatientList } from '@/api/project/project'
  202. import { getPatientInfo, getSchedulePatientList, register, upload,Refund } from '@/api/his/his'
  203. const moment = require('moment')
  204. export default {
  205. components: {
  206. BreadCrumb,
  207. noCharge,
  208. charged,
  209. medicalInsuranceRefund,
  210. prescriptionTable,
  211. additionalCharges
  212. },
  213. data() {
  214. return {
  215. crumbs: [
  216. { path: false, name: '门诊收费' },
  217. { path: false, name: '门诊收费管理' }
  218. ],
  219. activeName: 'first',
  220. info: {},
  221. curPrescriptions: {},
  222. prescriptions: [],
  223. record_date: '',
  224. tableData: [],
  225. editableTabsValue: '1',
  226. loadingone: false,
  227. editableTabs: [{
  228. title: '处方1',
  229. name: '1'
  230. }],
  231. tabIndex: 1,
  232. hisPatientInfo: {},
  233. loadingtwo: false,
  234. patientTableData: [{
  235. name: '杨美英',
  236. mdtrt_id: '1709946'
  237. }],
  238. patientInfo: { id: 0 },
  239. doctor: {},
  240. total: 0,
  241. state: '未收费',
  242. radio: 1,
  243. radioStatus: 1,
  244. search_input: '',
  245. start_time: moment().locale('zh-cn').format('YYYY-MM-DD')
  246. }
  247. },
  248. created() {
  249. var nowDate = new Date()
  250. var nowYear = nowDate.getFullYear()
  251. var nowMonth = nowDate.getMonth() + 1
  252. var nowDay = nowDate.getDate()
  253. this.record_date =
  254. nowYear +
  255. '-' +
  256. (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
  257. '-' +
  258. (nowDay < 10 ? '0' + nowDay : nowDay)
  259. //获取患者信息
  260. this.getPatientList()
  261. },
  262. methods: {
  263. changeDate(val) {
  264. if (this.patientInfo.id == 0) {
  265. this.$message.error('请先选择患者')
  266. return
  267. }
  268. let params = {
  269. 'record_date': val,
  270. 'patient_id': this.patientInfo.id
  271. }
  272. getPatientInfo(params).then(response => {
  273. if (response.data.state == 0) {
  274. this.$message.error(response.data.msg)
  275. return false
  276. } else {
  277. this.patientInfo = response.data.data.xt_info
  278. this.hisPatientInfo = response.data.data.his_info
  279. this.info = response.data.data.info
  280. this.prescriptions = []
  281. for (let i = 0; i < response.data.data.prescription.length; i++) {
  282. var prescription = response.data.data.prescription[i]
  283. let tempAdvice = []
  284. let tempProject = []
  285. for (let b = 0; b < prescription.advices.length; b++) {
  286. let obj = {
  287. advice_id: prescription.advices[b].id,
  288. drug_name: prescription.advices[b].advice_name,
  289. single_dose: prescription.advices[b].single_dose,
  290. delivery_way: prescription.advices[b].delivery_way,
  291. execution_frequency: prescription.advices[b].execution_frequency,
  292. retail_price: prescription.advices[b].price.toString(),
  293. remark: prescription.advices[b].remark,
  294. prescribing_number: prescription.advices[b].prescribing_number.toString(),
  295. single_dose_unit: prescription.advices[b].single_dose_unit,
  296. prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
  297. min_unit: prescription.advices[b].single_dose_unit,
  298. medical_insurance_number: prescription.advices[b].med_list_codg
  299. }
  300. tempAdvice.push(obj)
  301. }
  302. for (let b = 0; b < prescription.project.length; b++) {
  303. console.log(prescription.project[b].project.project_name)
  304. let obj = {
  305. id: prescription.project[b].id,
  306. project_id: prescription.project[b].project.id,
  307. project_name: prescription.project[b].project.project_name,
  308. statistical_classification: prescription.project[b].statistical_classification,
  309. single_dose: prescription.project[b].single_dose,
  310. delivery_way: prescription.project[b].delivery_way,
  311. execution_frequency: prescription.project[b].execution_frequency,
  312. number_days: prescription.project[b].day,
  313. total: prescription.project[b].count.toString(),
  314. price: prescription.project[b].price,
  315. remark: prescription.project[b].remark,
  316. medical_code: prescription.project[b].project.medical_code
  317. }
  318. tempProject.push(obj)
  319. }
  320. let index = i + 1
  321. let obj = {
  322. id: prescription.id,
  323. name: '处方' + index,
  324. advices: tempAdvice,
  325. project: tempProject,
  326. type: response.data.data.prescription[i].type,
  327. order_status: response.data.data.prescription[i].order_status
  328. }
  329. this.prescriptions.push(obj)
  330. this.curPrescriptions = this.prescriptions[0]
  331. this.total = 0
  332. this.total = this.getTotalOne()
  333. }
  334. }
  335. })
  336. },
  337. handleClick() {
  338. },
  339. searchAction() {
  340. },
  341. tabclickEvent(val) {
  342. for (let i = 0; i < this.prescriptions.length; i++) {
  343. if (this.prescriptions[i].name == val.name) {
  344. this.curPrescriptions = {}
  345. var temp = this.deepClone(this.prescriptions[i])
  346. this.curPrescriptions = temp
  347. }
  348. }
  349. console.log(this.curPrescriptions)
  350. this.total = 0
  351. this.total = this.getTotalOne()
  352. console.log(this.total)
  353. }, deepClone(source) {
  354. if (!source && typeof source !== 'object') {
  355. throw new Error('error arguments', 'shallowClone')
  356. }
  357. const targetObj = source.constructor === Array ? [] : {}
  358. Object.keys(source).forEach((keys) => {
  359. if (source[keys] && typeof source[keys] === 'object') {
  360. targetObj[keys] = this.deepClone(source[keys])
  361. } else {
  362. targetObj[keys] = source[keys]
  363. }
  364. })
  365. return targetObj
  366. },getTotalOne(){
  367. var total = 0
  368. if(this.curPrescriptions.type == 1) {
  369. if (this.curPrescriptions.advices != null) {
  370. for (let a = 0; a < this.curPrescriptions.advices.length; a++) {
  371. console.log(this.curPrescriptions.advices[a].retail_price)
  372. console.log(this.curPrescriptions.advices[a].prescribing_number)
  373. total = total + this.curPrescriptions.advices[a].retail_price * this.curPrescriptions.advices[a].prescribing_number
  374. }
  375. }
  376. return total
  377. }else{
  378. var total = 0
  379. if (this.curPrescriptions.project != null) {
  380. for (let b = 0; b < this.curPrescriptions.project.length; b++) {
  381. console.log(this.curPrescriptions.project[b].price )
  382. console.log(this.curPrescriptions.project[b].total )
  383. total = total + this.curPrescriptions.project[b].price * this.curPrescriptions.project[b].total
  384. }
  385. }
  386. return total
  387. }
  388. },
  389. getTotal() {
  390. var total = 0
  391. for (let i = 0; i < this.prescriptions.length; i++) {
  392. if (this.prescriptions[i].advices != null) {
  393. for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
  394. total = total + this.prescriptions[i].advices[a].retail_price * this.prescriptions[i].advices[a].prescribing_number
  395. }
  396. }
  397. if (this.prescriptions[i].project != null) {
  398. for (let b = 0; b < this.prescriptions[i].project.length; b++) {
  399. total = total + this.prescriptions[i].project[b].price * this.prescriptions[i].project[b].total
  400. }
  401. }
  402. }
  403. return total
  404. },
  405. moreState(tab, event) {
  406. if (tab == 'more') {
  407. return false
  408. }
  409. },
  410. open(index) {
  411. if (index == 1) {
  412. } else if (index == 2) {
  413. } else if (index == 4) {
  414. let params = {
  415. 'id': this.patientInfo.id,
  416. 'record_time': this.record_date
  417. }
  418. this.loadingtwo = true
  419. upload(params).then(response => {
  420. if (response.data.state == 0) {
  421. this.$message.error(response.data.msg)
  422. this.loadingtwo = false
  423. return false
  424. } else {
  425. this.loadingtwo = false
  426. }
  427. })
  428. this.state = '已收费'
  429. this.$message({ message: '收费成功', type: 'success' })
  430. } else if (index == 5) {
  431. let params = {
  432. 'id': this.patientInfo.id,
  433. 'record_time': this.record_date
  434. }
  435. Refund(params).then(response => {
  436. if (response.data.state == 0) {
  437. this.$message.error(response.data.msg)
  438. this.loadingtwo = false
  439. return false
  440. } else {
  441. this.loadingtwo = false
  442. }
  443. })
  444. this.$message({ message: '退费成功', type: 'success' })
  445. } else if (index == 6) {
  446. if (this.patientInfo.id == 0) {
  447. this.$message.error('请先选择要挂号的病人')
  448. return
  449. }
  450. let params = {
  451. 'id': this.patientInfo.id,
  452. 'record_time': this.record_date
  453. }
  454. this.loadingone = true
  455. register(params).then(response => {
  456. if (response.data.state == 0) {
  457. this.$message.error(response.data.msg)
  458. this.loadingone = false
  459. return false
  460. } else {
  461. this.loadingone = false
  462. var his_info = response.data.data.his_info
  463. this.hisPatientInfo = his_info
  464. }
  465. })
  466. }
  467. },
  468. choosePatient() {
  469. console.log(id)
  470. this.radioStatus = id
  471. this.getPatientList()
  472. },
  473. changeRadio(id) {
  474. console.log(id)
  475. this.radioStatus = id
  476. this.getPatientList()
  477. },
  478. //患者列表
  479. getPatientList() {
  480. let params = {
  481. 'record_date': this.record_date
  482. }
  483. getSchedulePatientList(params).then(response => {
  484. if (response.data.state == 0) {
  485. this.$message.error(response.data.msg)
  486. return false
  487. } else {
  488. this.patientTableData = []
  489. for (let i = 0; i < response.data.data.list.length; i++) {
  490. if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
  491. this.patientTableData.push(response.data.data.list[i])
  492. }
  493. }
  494. }
  495. })
  496. },
  497. unique(arr) {
  498. const res = new Map()
  499. return arr.filter((arr) => !res.has(arr.id_card_no) && res.set(arr.id_card_no, 1))
  500. },
  501. handleCurrentChange(val) {
  502. console.log('val', val)
  503. this.getPatientInformation(val.patients.id)
  504. },
  505. //获取患者的基本信息
  506. getPatientInformation(id) {
  507. let params = {
  508. 'record_date': this.record_date,
  509. 'patient_id': id
  510. }
  511. getPatientInfo(params).then(response => {
  512. if (response.data.state == 0) {
  513. this.$message.error(response.data.msg)
  514. return false
  515. } else {
  516. this.patientInfo = response.data.data.xt_info
  517. this.hisPatientInfo = response.data.data.his_info
  518. this.info = response.data.data.info
  519. this.prescriptions = []
  520. for (let i = 0; i < response.data.data.prescription.length; i++) {
  521. var prescription = response.data.data.prescription[i]
  522. let tempAdvice = []
  523. let tempProject = []
  524. for (let b = 0; b < prescription.advices.length; b++) {
  525. let obj = {
  526. advice_id: prescription.advices[b].id,
  527. drug_name: prescription.advices[b].advice_name,
  528. single_dose: prescription.advices[b].single_dose,
  529. delivery_way: prescription.advices[b].delivery_way,
  530. execution_frequency: prescription.advices[b].execution_frequency,
  531. retail_price: prescription.advices[b].price.toString(),
  532. remark: prescription.advices[b].remark,
  533. prescribing_number: prescription.advices[b].prescribing_number.toString(),
  534. single_dose_unit: prescription.advices[b].single_dose_unit,
  535. prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
  536. min_unit: prescription.advices[b].single_dose_unit,
  537. medical_insurance_number: prescription.advices[b].med_list_codg
  538. }
  539. tempAdvice.push(obj)
  540. }
  541. for (let b = 0; b < prescription.project.length; b++) {
  542. console.log(prescription.project[b].project.project_name)
  543. let obj = {
  544. id: prescription.project[b].id,
  545. project_id: prescription.project[b].project.id,
  546. project_name: prescription.project[b].project.project_name,
  547. statistical_classification: prescription.project[b].statistical_classification,
  548. single_dose: prescription.project[b].single_dose,
  549. delivery_way: prescription.project[b].delivery_way,
  550. execution_frequency: prescription.project[b].execution_frequency,
  551. number_days: prescription.project[b].day,
  552. total: prescription.project[b].count.toString(),
  553. price: prescription.project[b].price,
  554. remark: prescription.project[b].remark,
  555. medical_code: prescription.project[b].project.medical_code
  556. }
  557. tempProject.push(obj)
  558. }
  559. let index = i + 1
  560. let obj = {
  561. id: prescription.id,
  562. name: '处方' + index,
  563. advices: tempAdvice,
  564. project: tempProject,
  565. order_status:response.data.data.prescription[i].order_status,
  566. type: response.data.data.prescription[i].type
  567. }
  568. this.prescriptions.push(obj)
  569. this.curPrescriptions = this.prescriptions[0]
  570. this.total = 0
  571. this.total = this.getTotalOne()
  572. console.log(this.total)
  573. }
  574. }
  575. })
  576. }
  577. }
  578. }
  579. </script>
  580. <style lang="scss" scoped>
  581. .app-container {
  582. height: 100%;
  583. }
  584. .outpatientChargesManagement {
  585. height: 100%;
  586. display: flex;
  587. flex-direction: column;
  588. .mainLeft {
  589. width: 200px;
  590. height: 100%;
  591. display: flex;
  592. flex-direction: column;
  593. .el-radio {
  594. margin-right: 5px;
  595. }
  596. }
  597. .mainCell {
  598. height: 36px;
  599. display: flex;
  600. align-items: center;
  601. }
  602. .mainRight {
  603. margin-left: 20px;
  604. flex: 1;
  605. height: 100%;
  606. display: flex;
  607. flex-direction: column;
  608. overflow-y: auto;
  609. .cellSpan {
  610. min-width: 80px;
  611. display: inline-block;
  612. margin-right: 10px;
  613. }
  614. }
  615. .tabsBox {
  616. position: relative;
  617. height: 90%;
  618. overflow-y: auto;
  619. margin-bottom: 60px;
  620. .el-tabs__item {
  621. padding: 0 10px;
  622. }
  623. }
  624. .addTab {
  625. position: absolute;
  626. right: 0;
  627. top: 6px;
  628. z-index: 20;
  629. }
  630. .mainCenter {
  631. display: flex;
  632. flex: 1;
  633. }
  634. .costBox {
  635. width: 100%;
  636. height: 60px;
  637. background: #fff;
  638. position: absolute;
  639. bottom: 0;
  640. display: flex;
  641. align-items: center;
  642. justify-content: space-between;
  643. }
  644. .centerLeft {
  645. flex: 1;
  646. display: flex;
  647. flex-direction: column;
  648. position: relative;
  649. height: 100%;
  650. }
  651. .settlementTabs {
  652. flex: 1;
  653. .el-tab-pane {
  654. height: 100%;
  655. }
  656. .el-tabs__content {
  657. height: 100%;
  658. }
  659. }
  660. .centerRight {
  661. width: 300px;
  662. margin-left: 5px;
  663. display: flex;
  664. flex-direction: column;
  665. }
  666. .RP {
  667. color: #409EFF;
  668. font-size: 20px;
  669. margin-bottom: 5px;
  670. }
  671. .centerRightTitle {
  672. color: #409EFF;
  673. padding-top: 10px;;
  674. }
  675. .basicUl {
  676. border-top: 1px solid #e5e5e5;
  677. border-left: 1px solid #e5e5e5;
  678. display: flex;
  679. flex-wrap: wrap;
  680. li {
  681. border-bottom: 1px solid #e5e5e5;
  682. border-right: 1px solid #e5e5e5;
  683. width: 100%;
  684. height: 38px;
  685. line-height: 38px;
  686. text-indent: 5px;
  687. font-size: 14px;
  688. }
  689. }
  690. }
  691. </style>
  692. <style lang="scss">
  693. #tab-more {
  694. .el-icon-close {
  695. display: none;
  696. }
  697. }
  698. .settlementTabs {
  699. .el-tabs__content {
  700. height: 90%;
  701. }
  702. }
  703. </style>