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

chargeDetailManagement.vue 70KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946
  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: 10px 20px 0px 20px;">
  7. <div class="mainLeft">
  8. <el-date-picker
  9. v-model="record_date"
  10. prefix-icon="el-icon-date"
  11. @change="changeTimeTwo"
  12. :editable="false"
  13. style="width: 100%;"
  14. type="date"
  15. :picker-options="pickerOptions"
  16. placeholder="选择开始时间"
  17. align="right"
  18. format="yyyy-MM-dd"
  19. value-format="yyyy-MM-dd">
  20. </el-date-picker>
  21. <div class="mainCell">
  22. <el-radio-group v-model="schedule_type" @change="changeScheduleType">
  23. <el-radio :label="1">上午</el-radio>
  24. <el-radio :label="2">下午</el-radio>
  25. <el-radio :label="3">晚上</el-radio>
  26. <el-radio :label="0">全部</el-radio>
  27. </el-radio-group>
  28. </div>
  29. <div class="mainCell">
  30. <el-radio-group v-model="radio" @change="changeRadio">
  31. <el-radio :label=1>未上传<span
  32. style="color: red;margin-bottom:10px;display: inline-block;">{{ un_upload_num }}</span>人
  33. </el-radio>
  34. <el-radio :label=2>已上传<span
  35. style="color: red;margin-bottom:10px;display: inline-block;">{{ upload_num }}</span>人
  36. </el-radio>
  37. </el-radio-group>
  38. </div>
  39. <div class="mainCell" style="margin-bottom:10px;">
  40. <el-input size="small" v-model.trim="search_input"
  41. class="filter-item"/>
  42. <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"
  43. @click="searchAction">
  44. 搜索
  45. </el-button>
  46. </div>
  47. <div>
  48. <el-table :data="patientTableData" :height="tableHeight" border
  49. style="width: 100%;"
  50. :row-style="{ color: '#303133' }"
  51. :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
  52. highlight-current-row ref="tab"
  53. @current-change="handleCurrentChange">
  54. <el-table-column align="center" prop="name" label="姓名" wdith='89'>
  55. <template slot-scope="scope">{{ scope.$index + 1 }}.{{ scope.row.name }}</template>
  56. </el-table-column>
  57. <el-table-column align="center" prop="name" label="就诊号" width="110">
  58. <template slot-scope="scope">{{ scope.row ? scope.row.number : '' }}
  59. </template>
  60. </el-table-column>
  61. </el-table>
  62. </div>
  63. </div>
  64. <div class="mainRight">
  65. <div class="mainCell fixedCell" style="margin-bottom:10px;">
  66. <div v-if="activeName == 'first'">
  67. <el-button
  68. v-if="(this.radio == 1 && this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 )"
  69. size="small"
  70. @click="open(1)"
  71. type="primary">上传费用明细
  72. </el-button>
  73. <el-button
  74. v-if="(this.radio == 1 && this.hisPatientInfo.balance_accounts_type == 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 )"
  75. size="small"
  76. @click="open(1)"
  77. type="primary">上传费用明细
  78. </el-button>
  79. <el-button
  80. v-if="( this.radio == 2 &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
  81. size="small" @click="open(2)" type="primary"
  82. >撤销明细
  83. </el-button>
  84. <el-button
  85. v-if="( this.radio == 2 &&this.hisPatientInfo.balance_accounts_type == 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
  86. size="small" @click="open(2)" type="primary"
  87. >撤销明细
  88. </el-button>
  89. </div>
  90. <div v-if="activeName == 'second'">
  91. <el-button
  92. v-if="( this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 )"
  93. size="small"
  94. @click="open(1)"
  95. type="primary">上传费用明细
  96. </el-button>
  97. <el-button
  98. v-if="( this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
  99. size="small" @click="open(2)" type="primary"
  100. >撤销明细
  101. </el-button>
  102. </div>
  103. </div>
  104. <div class="mainCenter" v-loading="loading">
  105. <el-tabs class="settlementTabs" v-model="activeName" @tab-click="handleClick">
  106. <el-tab-pane label="日结" name="first">
  107. <div style="display:flex;height:100%;">
  108. <div class="centerLeft">
  109. <div class="tabsBox">
  110. <!--<el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>-->
  111. <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card"
  112. @tab-click="tabclickEvent">
  113. <el-tab-pane
  114. v-for="(item, index) in prescriptions"
  115. :key="index"
  116. :label="item.name"
  117. :name="item.name"
  118. >
  119. </el-tab-pane>
  120. <!--<div class="RP">-->
  121. <!--Rp-->
  122. <!--<el-date-picker-->
  123. <!--v-model="record_date"-->
  124. <!--type="date"-->
  125. <!--:clearable="false"-->
  126. <!--@change="changeDate"-->
  127. <!--format="yyyy-MM-dd"-->
  128. <!--value-format="yyyy-MM-dd"-->
  129. <!--placeholder="选择日期">-->
  130. <!--</el-date-picker>-->
  131. <!--</div>-->
  132. <!--<charge-prescription-table ref="prescription_tables"-->
  133. <!--:prescription="curPrescriptions"></charge-prescription-table>-->
  134. <!--<charge-prescription-table ref="prescription_tables" :prescription="curPrescriptions"></charge-prescription-table>-->
  135. <charge-prescription-table ref="prescription_tables"
  136. :manufacturers="manufacturers"
  137. :prescription="curPrescriptions"></charge-prescription-table>
  138. </el-tabs>
  139. </div>
  140. <div class="costBox">
  141. <span>当前处方总费用:<span style="color:red;">{{ total }}元</span></span>
  142. <span v-if="this.radio == 2&&this.hisPatientInfo.balance_accounts_type != 2">处方总价:<span style="color:red;">{{
  143. all_total + '元' + ' = 全自费总金额:' + fulamt_ownpay_amt + '元+' + '超限价总金额:' + overlmt_amt + '元+' + '先行自付金额:' + preselfpay_amt + '元+' + '符合正常范围总金额:' + inscp_scp_amt + '元'
  144. }}</span></span>
  145. <span v-if="this.radio == 2&&this.hisPatientInfo.balance_accounts_type == 2">处方总价:<span style="color:red;">{{
  146. all_total + '元' + ' = 全自费总金额:' + all_total + '元+' + '超限价总金额:' + overlmt_amt + '元+' + '先行自付金额:' + preselfpay_amt + '元+' + '符合正常范围总金额:' + inscp_scp_amt + '元'
  147. }}</span></span>
  148. <span v-if="this.radio == 1">处方总价:<span style="color:red;">{{ all_total }}元</span></span>
  149. <!-- <span v-if="this.curPrescriptions.order_status == 1">待结算</span>-->
  150. <!-- <span v-if="this.curPrescriptions.order_status == 2">已结算</span>-->
  151. <!-- <span v-if="this.curPrescriptions.order_status == 3">已退费</span>-->
  152. </div>
  153. </div>
  154. <!-- <div class="centerRight">-->
  155. <!-- <p class="centerRightTitle">人员信息</p>-->
  156. <!-- <div style="display:flex;justify-content: space-between;line-height:30px;">-->
  157. <!-- <span style="font-size:14px;">人员编码:{{ patientInfo.dialysis_no }}</span>-->
  158. <!-- <span style="font-size:14px;">日期:{{ record_date }}</span>-->
  159. <!-- </div>-->
  160. <!-- <ul class="basicUl">-->
  161. <!-- <li style="width:50%;">姓名:{{ patientInfo.name }}</li>-->
  162. <!-- <li style="width:50%;">性别:{{ patientInfo.gender == 1 ? '男' : '女' }}</li>-->
  163. <!-- <li style="width:50%;">年龄:{{ patientInfo.age }}</li>-->
  164. <!-- <li style="width:50%;">电话:{{ patientInfo.phone }}</li>-->
  165. <!-- &lt;!&ndash;<span>过敏病史:</span>&ndash;&gt;-->
  166. <!-- &lt;!&ndash;<el-autocomplete&ndash;&gt;-->
  167. <!-- &lt;!&ndash;style="width:100%;"&ndash;&gt;-->
  168. <!-- &lt;!&ndash;class="inline-input"&ndash;&gt;-->
  169. <!-- &lt;!&ndash;v-model="sick_history"&ndash;&gt;-->
  170. <!-- &lt;!&ndash;:fetch-suggestions="querySearch2"&ndash;&gt;-->
  171. <!-- &lt;!&ndash;placeholder="请输入内容"&ndash;&gt;-->
  172. <!-- &lt;!&ndash;&gt;</el-autocomplete>&ndash;&gt;-->
  173. <!-- &lt;!&ndash;<li style="width:100%;">地址:{{patientInfo.home_address}}</li>&ndash;&gt;-->
  174. <!-- &lt;!&ndash;<li style="width:100%;">过敏史及其他病史:{{info.sick_history}}</li>&ndash;&gt;-->
  175. <!-- </ul>-->
  176. <!-- <p class="centerRightTitle" style="padding-top: 10px;">诊断信息</p>-->
  177. <!-- <div style="display:flex;justify-content: space-between;line-height:30px;">-->
  178. <!-- <span style="font-size:14px;">住院编号:{{ hisPatientInfo.number }}</span>-->
  179. <!-- </div>-->
  180. <!-- <ul class="basicUl">-->
  181. <!-- <li style="width:50%;">医生:{{ info.doctor }}</li>-->
  182. <!-- <li style="width:50%;">科室:{{ info.departments }}</li>-->
  183. <!-- <li style="width:100%;">总费用:{{ getTotal() }}</li>-->
  184. <!-- <li style="width:100%;">判断结果:{{ info.diagnosis }}</li>-->
  185. <!-- <li style="width:100%;">是否有传染病:</li>-->
  186. <!-- <li style="width:100%;">血压:</li>-->
  187. <!-- </ul>-->
  188. <!-- </div>-->
  189. </div>
  190. </el-tab-pane>
  191. <el-tab-pane label="月结" name="second">
  192. <div style="display:flex;height:100%;">
  193. <div class="centerLeft">
  194. <div class="tabsBox">
  195. <!-- <el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button> -->
  196. <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card"
  197. @tab-click="tabclickEventTwo">
  198. <el-tab-pane
  199. v-for="(item, index) in month_prescriptions"
  200. :key="index"
  201. :label="item.name"
  202. :name="item.name">
  203. </el-tab-pane>
  204. <div class="RP">
  205. Rp
  206. <el-date-picker
  207. v-model="other_start_time"
  208. prefix-icon="el-icon-date"
  209. @change="changeTime"
  210. :editable="false"
  211. style="width: 150px;"
  212. type="date"
  213. placeholder="选择开始时间"
  214. align="right"
  215. format="yyyy-MM-dd"
  216. value-format="yyyy-MM-dd">
  217. </el-date-picker>
  218. <span class>-</span>
  219. <el-date-picker
  220. v-model="other_end_time"
  221. prefix-icon="el-icon-date"
  222. @change="changeEndTime"
  223. :editable="false"
  224. style="width: 150px;"
  225. type="date"
  226. placeholder="选择结束时间"
  227. align="right"
  228. format="yyyy-MM-dd"
  229. value-format="yyyy-MM-dd">
  230. </el-date-picker>
  231. <el-select v-model="month_is_upload" @change="changeMonthData"
  232. placeholder="请选择">
  233. <el-option
  234. v-for="item in upload_options"
  235. :key="item.value"
  236. :label="item.label"
  237. :value="item.value">
  238. </el-option>
  239. </el-select>
  240. </div>
  241. <!--<prescription-table :preTableData='preTableData'></prescription-table>-->
  242. <!--<month-prescription-table ref="prescription_tables"-->
  243. <!--:activeType="activeType" :prescription="curMonthPrescriptions"></month-prescription-table>-->
  244. <charge-month-prescription-table
  245. :prescription="curMonthPrescriptions"></charge-month-prescription-table>
  246. </el-tabs>
  247. </div>
  248. <div class="costBox">
  249. <span>当前处方总费用:<span style="color:red;">{{ month_total }}元</span></span>
  250. <span>处方总价:<span style="color:red;">{{ all_month_total }}元</span></span>
  251. <!--<span>{{ state }}</span>-->
  252. </div>
  253. </div>
  254. <!-- <div class="centerRight">-->
  255. <!-- <p class="centerRightTitle">人员信息</p>-->
  256. <!-- <div style="display:flex;justify-content: space-between;line-height:30px;">-->
  257. <!-- <span style="font-size:14px;">人员编码:{{ patientInfo.dialysis_no }}</span>-->
  258. <!-- <span style="font-size:14px;">日期:{{ record_date }}</span>-->
  259. <!-- </div>-->
  260. <!-- <ul class="basicUl">-->
  261. <!-- <li style="width:50%;">姓名:{{ patientInfo.name }}</li>-->
  262. <!-- <li style="width:50%;">性别:{{ patientInfo.gender == 1 ? '男' : '女' }}</li>-->
  263. <!-- <li style="width:50%;">年龄:{{ patientInfo.age }}</li>-->
  264. <!-- <li style="width:50%;">电话:{{ patientInfo.phone }}</li>-->
  265. <!-- <li style="width:100%;">过敏史及其他病史:{{ info.sick_history }}</li>-->
  266. <!-- </ul>-->
  267. <!-- <p class="centerRightTitle" style="padding-top: 10px;">诊断信息</p>-->
  268. <!-- <div style="display:flex;justify-content: space-between;line-height:30px;">-->
  269. <!-- <span style="font-size:14px;">门诊编号:{{ hisPatientInfo.number }}</span>-->
  270. <!-- </div>-->
  271. <!-- <ul class="basicUl">-->
  272. <!-- <li style="width:50%;">医生:{{ info.doctor }}</li>-->
  273. <!-- <li style="width:50%;">科室:{{ getDepartment(info.departments) }}</li>-->
  274. <!-- <li style="width:100%;" v-if="activeName == 'first'">总费用:{{ getTotal() }}</li>-->
  275. <!-- <li style="width:100%;" v-if="activeName == 'second'">总费用:{{ getTotalTwo() }}-->
  276. <!-- </li>-->
  277. <!-- <li style="width:100%;">判断结果:{{ info.diagnosis }}</li>-->
  278. <!-- &lt;!&ndash;<li style="width:100%;">是否有传染病:</li>&ndash;&gt;-->
  279. <!-- &lt;!&ndash;<li style="width:100%;">血压:</li>&ndash;&gt;-->
  280. <!-- </ul>-->
  281. <!-- </div>-->
  282. </div>
  283. </el-tab-pane>
  284. </el-tabs>
  285. </div>
  286. </div>
  287. </div>
  288. </div>
  289. </template>
  290. <script>
  291. import axios from 'axios'
  292. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  293. import noCharge from './components/noCharge'
  294. import charged from './components/charged'
  295. import medicalInsuranceRefund from './components/medicalInsuranceRefund'
  296. import additionalCharges from './components/additionalCharges'
  297. import { getHisHospitalDetailInfo, getHisHospitalDetailList, getMonthHisHospitalDetailInfo } from '@/api/his/his'
  298. import { upLoadChargeInfo,refundDetail } from '@/api/his/his_hospital'
  299. import { uParseTime } from '@/utils/tools'
  300. import RegisterDialog from './components/registerDialog'
  301. import treatPrint from './treatPrint'
  302. import statementPrint from './statementPrint'
  303. import ChargeDialog from './components/chargeDialog'
  304. import MonthPrescriptionTable from './components/monthPrescriptionTable'
  305. import ChargeMonthPrescriptionTable from './components/chargeMonthPrescriptionTable'
  306. import NewStatementPrintTwo from './newStatementPrintTwo'
  307. import RegisterDialog9504 from './components/registerDialog9504'
  308. import ChargePrescriptionTable from './components/ChargePrescriptionTable'
  309. import invoicePrint from './invoicePrint'
  310. import SettlePrescriptionTable from './components/settlePrescriptionTable'
  311. const moment = require('moment')
  312. export default {
  313. components: {
  314. SettlePrescriptionTable,
  315. ChargePrescriptionTable,
  316. RegisterDialog9504,
  317. NewStatementPrintTwo,
  318. ChargeMonthPrescriptionTable,
  319. MonthPrescriptionTable,
  320. ChargeDialog,
  321. RegisterDialog,
  322. BreadCrumb,
  323. noCharge,
  324. charged,
  325. medicalInsuranceRefund,
  326. additionalCharges,
  327. treatPrint,
  328. statementPrint,
  329. invoicePrint
  330. },
  331. data() {
  332. return {
  333. register: [
  334. { value: 11, label: '普通门诊' },
  335. // { value: 12, label: '门诊挂号' },
  336. // { value: 13, label: '急诊' },
  337. { value: 14, label: '门诊慢性病' }
  338. // { value: 15, label: '门诊统筹' },
  339. // { value: 16, label: '门诊慢性病' },
  340. // { value: 21, label: '普通住院' }
  341. ],
  342. upload_options: [
  343. { value: 0, label: '全部' },
  344. { value: 2, label: '已上传' },
  345. { value: 1, label: '未上传' }
  346. ],
  347. loading: false,
  348. dise_loading: false,
  349. month_is_upload: 0,
  350. sick_history: '',
  351. p_type: '',
  352. sick_type: '',
  353. diagnosis: '',
  354. isShowUpload: 1,
  355. isShowWithdrawUpload: 1,
  356. schedule_type: 0,
  357. month_p_type: '',
  358. month_sick_type: '',
  359. month_diagnosis: '',
  360. key: '',
  361. other_start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
  362. other_end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
  363. curMonthPrescriptions: null,
  364. curSettlePrescriptions: null,
  365. month_total: 0,
  366. crumbs: [
  367. { path: false, name: '住院工作站' },
  368. { path: false, name: '住院收费管理' }
  369. ],
  370. current_index: 0,
  371. un_upload_num: '',
  372. upload_num: '',
  373. tableHeight: '',
  374. fullHeight: document.documentElement.clientHeight,
  375. activeName: 'first',
  376. info: {},
  377. curPrescriptions: {},
  378. prescriptions: [],
  379. month_prescriptions: [],
  380. settle_prescriptions: [],
  381. settle_total: 0,
  382. all_total: 0,
  383. all_month_total: 0,
  384. record_date: '',
  385. tableData: [],
  386. editableTabsValue: '处方1',
  387. editSettletableTabsValue: '处方1',
  388. loadingone: false,
  389. editableTabs: [{
  390. title: '处方1',
  391. name: '1'
  392. }],
  393. tabIndex: 1,
  394. hisPatientInfo: {},
  395. loadingtwo: false,
  396. patientTableData: [{
  397. name: '杨美英',
  398. mdtrt_id: '1709946'
  399. }],
  400. patientInfo: { id: 0 },
  401. doctor: {},
  402. total: 0,
  403. state: '未收费',
  404. radio: 1,
  405. radioStatus: 1,
  406. search_input: '',
  407. start_time: moment().locale('zh-cn').format('YYYY-MM-DD'),
  408. patient_id: 0,
  409. prescription_id: 0,
  410. all_table_data: [],
  411. manufacturers: [],
  412. hisPatientDatas: [],
  413. order: {},
  414. addtions_charge: [],
  415. treatVisible: false,
  416. orderObj: {},
  417. paramsObj: {},
  418. newOrderObj: {},
  419. statementVisible: false,
  420. newStatementVisible: false,
  421. chargePatientTableData: [],
  422. sick: [],
  423. diagnoses: [],
  424. department: [],
  425. invoiceVisible: false,
  426. invoiceParams: {},
  427. fulamt_ownpay_amt: '',
  428. overlmt_amt: '',
  429. preselfpay_amt: '',
  430. inscp_scp_amt: ''
  431. }
  432. },
  433. created() {
  434. let tableHeight = document.body.clientHeight - 243
  435. this.tableHeight = tableHeight
  436. var nowDate = new Date()
  437. var nowYear = nowDate.getFullYear()
  438. var nowMonth = nowDate.getMonth() + 1
  439. var nowDay = nowDate.getDate()
  440. this.record_date =
  441. nowYear +
  442. '-' +
  443. (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
  444. '-' +
  445. (nowDay < 10 ? '0' + nowDay : nowDay)
  446. // this.getInitData()
  447. //获取患者信息
  448. this.getPatientList()
  449. },
  450. methods: {
  451. changeScheduleType() {
  452. this.getPatientList()
  453. },
  454. getMonthData() {
  455. this.loading = true
  456. let params = {
  457. 'id': this.hisPatientInfo.id,
  458. 'patient_id': this.hisPatientInfo.patient_id,
  459. 'start_time': this.other_start_time,
  460. 'end_time': this.other_end_time,
  461. 'is_upload': this.month_is_upload
  462. }
  463. getMonthHisHospitalDetailInfo(params).then(response => {
  464. if (response.data.state == 0) {
  465. this.loading = false
  466. this.$message.error(response.data.msg)
  467. return false
  468. } else {
  469. this.month_prescriptions = []
  470. this.curMonthPrescriptions = {}
  471. this.loading = false
  472. this.hisPatientInfo = response.data.data.his_info
  473. this.setMonthPrescription(response.data.data.month_prescriptions)
  474. this.month_total = this.getMonthTotalOne()
  475. this.all_month_total = this.getTotalTwo()
  476. }
  477. })
  478. },
  479. changeMonthData() {
  480. this.getMonthData()
  481. },
  482. getTimes(time) {
  483. return uParseTime(time, '{y}-{m}-{d}')
  484. },
  485. changeTimeTwo() {
  486. this.getPatientList()
  487. },
  488. changeTime(val) {
  489. this.getPatientInformation(this.hisPatientInfo.id, this.hisPatientInfo.patient_id)
  490. }, changeEndTime(val) {
  491. this.getPatientInformation(this.hisPatientInfo.id, this.hisPatientInfo.patient_id)
  492. },
  493. handleClick() {
  494. // this.getPatientList()
  495. if (this.activeName == 'first') {
  496. // this.patientTableData = this.all_table_data
  497. this.getDayPatientList()
  498. } else if (this.activeName == 'second') {
  499. this.getMonthPatientList()
  500. // this.getPatientList()
  501. // if (this.patientTableData.length > 0) {
  502. // this.$refs.tab.setCurrentRow(this.patientTableData[0])
  503. // this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].order.number)
  504. // }
  505. } else {
  506. console.log(this.settle_prescriptions)
  507. }
  508. },
  509. searchAction() {
  510. if (this.search_input.length == 0) {
  511. switch (this.radio) {
  512. case 1:
  513. this.patientTableData = this.all_table_data
  514. break
  515. case 2:
  516. this.patientTableData = this.all_table_data
  517. break
  518. }
  519. } else {
  520. switch (this.radio) {
  521. case 1:
  522. let arr3 = []
  523. for (let i = 0; i < this.all_table_data.length; i++) {
  524. if (this.all_table_data[i].name.indexOf(this.search_input) != -1) {
  525. arr3 = arr3.concat(this.all_table_data[i])
  526. }
  527. }
  528. this.patientTableData = arr3
  529. break
  530. case 2:
  531. let arr2 = []
  532. for (let i = 0; i < this.all_table_data.length; i++) {
  533. if (this.all_table_data[i].name.indexOf(this.search_input) != -1) {
  534. arr2 = arr2.concat(this.all_table_data[i])
  535. }
  536. }
  537. this.patientTableData = arr2
  538. break
  539. }
  540. }
  541. },
  542. tabclickEventTwo(val) {
  543. for (let i = 0; i < this.month_prescriptions.length; i++) {
  544. if (this.month_prescriptions[i].name == val.name) {
  545. this.curMonthPrescriptions = {}
  546. var temp = this.deepClone(this.month_prescriptions[i])
  547. this.curMonthPrescriptions = temp
  548. }
  549. }
  550. this.prescription_id = this.month_prescriptions.id
  551. this.month_total = 0
  552. this.month_total = this.getMonthTotalOne()
  553. },
  554. tabclickEventThree(val) {
  555. for (let i = 0; i < this.settle_prescriptions.length; i++) {
  556. if (this.settle_prescriptions[i].name == val.name) {
  557. this.curSettlePrescriptions = {}
  558. var temp = this.deepClone(this.settle_prescriptions[i])
  559. this.curSettlePrescriptions = temp
  560. }
  561. }
  562. this.prescription_id = this.settle_prescriptions.id
  563. this.settle_total = 0
  564. this.settle_total = this.getSettleTotalOne()
  565. },
  566. tabclickEvent(val) {
  567. console.log('val', val.name)
  568. for (let i = 0; i < this.prescriptions.length; i++) {
  569. if (this.prescriptions[i].name == val.name) {
  570. this.curPrescriptions = {}
  571. var temp = this.deepClone(this.prescriptions[i])
  572. this.curPrescriptions = temp
  573. }
  574. }
  575. console.log('9999', this.curPrescriptions)
  576. this.prescription_id = this.curPrescriptions.id
  577. this.total = 0
  578. this.total = this.getTotalOne()
  579. },
  580. deepClone(source) {
  581. if (!source && typeof source !== 'object') {
  582. throw new Error('error arguments', 'shallowClone')
  583. }
  584. const targetObj = source.constructor === Array ? [] : {}
  585. Object.keys(source).forEach((keys) => {
  586. if (source[keys] && typeof source[keys] === 'object') {
  587. targetObj[keys] = this.deepClone(source[keys])
  588. } else {
  589. targetObj[keys] = source[keys]
  590. }
  591. })
  592. return targetObj
  593. },
  594. getTotalOne() {
  595. var total = 0
  596. if (this.curPrescriptions.type == 1) {
  597. if (this.curPrescriptions.advices != null) {
  598. for (let a = 0; a < this.curPrescriptions.advices.length; a++) {
  599. total = parseFloat(total) + parseFloat(this.curPrescriptions.advices[a].retail_price * this.curPrescriptions.advices[a].prescribing_number)
  600. }
  601. }
  602. } else {
  603. if (this.curPrescriptions.project != null) {
  604. for (let b = 0; b < this.curPrescriptions.project.length; b++) {
  605. total = parseFloat(total) + parseFloat(this.curPrescriptions.project[b].price * this.curPrescriptions.project[b].total)
  606. }
  607. }
  608. }
  609. return total.toFixed(2)
  610. },
  611. getMonthTotalOne() {
  612. var total = 0
  613. if (this.curMonthPrescriptions.type == 1) {
  614. if (this.curMonthPrescriptions.advices != null) {
  615. for (let a = 0; a < this.curMonthPrescriptions.advices.length; a++) {
  616. total = parseFloat(total) + parseFloat(this.curMonthPrescriptions.advices[a].retail_price * this.curMonthPrescriptions.advices[a].prescribing_number)
  617. }
  618. }
  619. } else {
  620. if (this.curMonthPrescriptions.project != null) {
  621. for (let b = 0; b < this.curMonthPrescriptions.project.length; b++) {
  622. total = parseFloat(total) + parseFloat(this.curMonthPrescriptions.project[b].price * this.curMonthPrescriptions.project[b].total)
  623. }
  624. }
  625. }
  626. return total.toFixed(2)
  627. },
  628. getTotal() {
  629. var total = 0
  630. for (let i = 0; i < this.prescriptions.length; i++) {
  631. if (this.prescriptions[i].advices != null) {
  632. for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
  633. total = parseFloat(total) + parseFloat(this.prescriptions[i].advices[a].retail_price * this.prescriptions[i].advices[a].prescribing_number)
  634. }
  635. }
  636. if (this.prescriptions[i].project != null) {
  637. for (let b = 0; b < this.prescriptions[i].project.length; b++) {
  638. total = parseFloat(total) + parseFloat(this.prescriptions[i].project[b].price * this.prescriptions[i].project[b].total)
  639. }
  640. }
  641. }
  642. return total.toFixed(2)
  643. },
  644. getTotalTwo() {
  645. var total = 0
  646. for (let i = 0; i < this.month_prescriptions.length; i++) {
  647. if (this.month_prescriptions[i].advices != null) {
  648. for (let a = 0; a < this.month_prescriptions[i].advices.length; a++) {
  649. total = parseFloat(total) + parseFloat(this.month_prescriptions[i].advices[a].retail_price * this.month_prescriptions[i].advices[a].prescribing_number)
  650. }
  651. }
  652. if (this.month_prescriptions[i].project != null) {
  653. for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
  654. total = parseFloat(total) + parseFloat(this.month_prescriptions[i].project[a].price * this.month_prescriptions[i].project[a].total)
  655. }
  656. }
  657. }
  658. return total.toFixed(2)
  659. },
  660. moreState(tab, event) {
  661. if (tab == 'more') {
  662. return false
  663. }
  664. }, formatJson(filterVal, jsonData) {
  665. return jsonData.map(v => filterVal.map(j => v[j]))
  666. },
  667. open(index) {
  668. if (index == 2) {
  669. let settle_accounts_type = ''
  670. if (this.activeName == 'first') {
  671. settle_accounts_type = 1
  672. var that = this
  673. this.$confirm('是否撤销明细', '撤销明细', {
  674. confirmButtonText: '确 定',
  675. cancelButtonText: '取 消',
  676. type: 'warning'
  677. }).then(() => {
  678. if (that.hisPatientInfo.balance_accounts_type != 2){
  679. let params = {
  680. 'settle_accounts_type': settle_accounts_type,
  681. 'patient_id': that.hisPatientInfo.patient_id,
  682. 'his_patient_id': that.hisPatientInfo.id,
  683. 'record_time': that.record_date,
  684. 'admin_user_id': that.$store.getters.xt_user.user.id
  685. }
  686. axios.get('http://127.0.0.1:9532/zh/api/refunddetail', {
  687. params: params
  688. })
  689. .then(function(response) {
  690. if (response.data.state == 0) {
  691. that.$message.error(response.data.msg)
  692. that.loadingtwo = false
  693. return false
  694. } else {
  695. if (response.data.data.failed_code == -10) {
  696. // that.$message.error(response.data.data.msg)
  697. that.$confirm(response.data.data.msg, '医保错误信息', {
  698. confirmButtonText: '确 定',
  699. type: 'warning'
  700. }).then(() => {
  701. }).catch(() => {
  702. })
  703. } else {
  704. that.$message.success('撤销明细成功')
  705. that.radio = 1
  706. that.getPatientList()
  707. }
  708. }
  709. })
  710. .catch(function(error) {
  711. })
  712. }else{
  713. let params = {
  714. 'settle_accounts_type': settle_accounts_type,
  715. 'patient_id': that.hisPatientInfo.patient_id,
  716. 'his_patient_id': that.hisPatientInfo.id,
  717. 'record_time': that.record_date,
  718. 'admin_user_id': that.$store.getters.xt_user.user.id
  719. }
  720. refundDetail(params).then(response => {
  721. if (response.data.state == 0) {
  722. this.loading = false
  723. this.$message.error(response.data.msg)
  724. return false
  725. } else {
  726. that.$message.success('撤销明细成功')
  727. that.radio = 1
  728. that.getPatientList()
  729. }
  730. })
  731. }
  732. }).catch(() => {
  733. })
  734. } else {
  735. settle_accounts_type = 2
  736. var that = this
  737. this.$confirm('该操作会撤销此次入院后所有处方明细,是否继续操作?', '撤销明细', {
  738. confirmButtonText: '确 定',
  739. cancelButtonText: '取 消',
  740. type: 'warning'
  741. }).then(() => {
  742. let params = {
  743. 'settle_accounts_type': settle_accounts_type,
  744. 'patient_id': that.hisPatientInfo.patient_id,
  745. 'his_patient_id': that.hisPatientInfo.id,
  746. 'record_time': that.record_date,
  747. 'order_id': that.order.id,
  748. 'admin_user_id': that.$store.getters.xt_user.user.id
  749. }
  750. axios.get('http://127.0.0.1:9532/zh/api/refunddetail', {
  751. params: params
  752. })
  753. .then(function(response) {
  754. if (response.data.state == 0) {
  755. that.$message.error(response.data.msg)
  756. that.loadingtwo = false
  757. return false
  758. } else {
  759. if (response.data.data.failed_code == -10) {
  760. // that.$message.error(response.data.data.msg)
  761. that.$confirm(response.data.data.msg, '医保错误信息', {
  762. confirmButtonText: '确 定',
  763. type: 'warning'
  764. }).then(() => {
  765. }).catch(() => {
  766. })
  767. } else {
  768. that.$message.success('撤销明细成功')
  769. that.radio = 1
  770. that.getPatientList()
  771. }
  772. }
  773. })
  774. .catch(function(error) {
  775. })
  776. }).catch(() => {
  777. })
  778. }
  779. } else if (index == 1) {
  780. var that = this
  781. let params = {
  782. 'in_hospital_id': that.hisPatientInfo.id,
  783. 'id': that.hisPatientInfo.patient_id,
  784. 'admin_user_id': that.$store.getters.xt_user.user.id,
  785. 'record_time': that.record_date
  786. }
  787. if (this.activeName == 'first') {
  788. params['settle_accounts_type'] = 1
  789. } else {
  790. params['start_time'] = that.other_start_time
  791. params['end_time'] = that.other_end_time
  792. params['settle_accounts_type'] = 2
  793. }
  794. if (this.hisPatientInfo.balance_accounts_type != 2) {
  795. axios.get('http://127.0.0.1:9532/zh/api/uploadinfo/get', {
  796. params: params
  797. })
  798. .then(function(response) {
  799. if (response.data.state == 0) {
  800. that.$message.error(response.data.msg)
  801. return false
  802. } else {
  803. if (response.data.data.failed_code == -10) {
  804. // that.$message.error(response.data.data.msg)
  805. that.$confirm(response.data.data.msg, '医保错误信息', {
  806. confirmButtonText: '确 定',
  807. type: 'warning'
  808. }).then(() => {
  809. }).catch(() => {
  810. })
  811. } else {
  812. that.$message.success('上传明细成功')
  813. that.radio = 2
  814. that.changePatientInfo()
  815. }
  816. }
  817. })
  818. .catch(function(error) {
  819. })
  820. } else if (this.hisPatientInfo.balance_accounts_type == 2) {
  821. var that = this
  822. let params = {
  823. 'in_hospital_id': that.hisPatientInfo.id,
  824. 'id': that.hisPatientInfo.patient_id,
  825. 'admin_user_id': that.$store.getters.xt_user.user.id,
  826. 'record_time': that.record_date
  827. }
  828. if (this.activeName == 'first') {
  829. params['settle_accounts_type'] = 1
  830. } else {
  831. params['start_time'] = that.other_start_time
  832. params['end_time'] = that.other_end_time
  833. params['settle_accounts_type'] = 2
  834. }
  835. upLoadChargeInfo(params).then(response => {
  836. if (response.data.state == 0) {
  837. this.loading = false
  838. this.$message.error(response.data.msg)
  839. return false
  840. } else {
  841. that.$message.success('上传明细成功')
  842. that.radio = 2
  843. that.changePatientInfo()
  844. }
  845. })
  846. }
  847. }
  848. }, changePatientInfo() {
  849. let params = {
  850. 'record_date': this.record_date,
  851. 'sch_type': this.schedule_type
  852. }
  853. getHisHospitalDetailList(params).then(response => {
  854. if (response.data.state == 0) {
  855. this.$message.error(response.data.msg)
  856. return false
  857. } else {
  858. if (response.data.data.list == null) {
  859. response.data.data.list = []
  860. }
  861. if (response.data.data.list_two == null) {
  862. response.data.data.list_two = []
  863. }
  864. this.hisPatientInfo = {}
  865. this.curPrescriptions = {}
  866. this.curMonthPrescriptions = {}
  867. this.month_prescriptions = []
  868. this.prescriptions = []
  869. this.patientTableData = []
  870. this.upload_num = response.data.data.upload_num
  871. this.un_upload_num = response.data.data.un_upload_num
  872. switch (this.radio) {
  873. case 1:
  874. this.all_table_data = response.data.data.list
  875. this.patientTableData = response.data.data.list
  876. if (this.hisPatientInfo.id > 0) {
  877. for (let i = 0; i < this.patientTableData.length; i++) {
  878. if (this.hisPatientInfo.patient_id == this.patientTableData[i].patient_id) {
  879. this.current_index = i
  880. this.$refs.tab.setCurrentRow(this.patientTableData[i])
  881. this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].patient_id)
  882. }
  883. }
  884. } else {
  885. this.$refs.tab.setCurrentRow(this.patientTableData[0])
  886. this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].patient_id)
  887. }
  888. break
  889. case 2:
  890. this.all_table_data = response.data.data.list_two
  891. this.patientTableData = response.data.data.list_two
  892. if (this.hisPatientInfo.id > 0) {
  893. for (let i = 0; i < this.patientTableData.length; i++) {
  894. if (this.hisPatientInfo.patient_id == this.patientTableData[i].patient_id) {
  895. this.current_index = i
  896. this.$refs.tab.setCurrentRow(this.patientTableData[i])
  897. this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].patient_id)
  898. }
  899. }
  900. } else {
  901. this.$refs.tab.setCurrentRow(this.patientTableData[0])
  902. this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].patient_id)
  903. }
  904. break
  905. }
  906. }
  907. })
  908. },
  909. changeRadio(id) {
  910. // this.hisPatientInfo = null
  911. this.getPatientList()
  912. },
  913. formatDecimal(num, decimal) {
  914. num = num.toString()
  915. let index = num.indexOf('.')
  916. if (index !== -1) {
  917. num = num.substring(0, decimal + index + 1)
  918. } else {
  919. num = num.substring(0)
  920. }
  921. return parseFloat(num).toFixed(decimal)
  922. },
  923. //患者列表
  924. getPatientList() {
  925. let params = {
  926. 'record_date': this.record_date,
  927. 'sch_type': this.schedule_type
  928. }
  929. getHisHospitalDetailList(params).then(response => {
  930. if (response.data.state == 0) {
  931. this.$message.error(response.data.msg)
  932. return false
  933. } else {
  934. if (response.data.data.list == null) {
  935. response.data.data.list = []
  936. }
  937. if (response.data.data.list_two == null) {
  938. response.data.data.list_two = []
  939. }
  940. this.hisPatientInfo = {}
  941. this.curPrescriptions = {}
  942. this.curMonthPrescriptions = {}
  943. this.month_prescriptions = []
  944. this.prescriptions = []
  945. this.patientTableData = []
  946. this.upload_num = response.data.data.upload_num
  947. this.un_upload_num = response.data.data.un_upload_num
  948. switch (this.radio) {
  949. case 1:
  950. this.all_table_data = response.data.data.list
  951. this.patientTableData = response.data.data.list
  952. if (this.hisPatientInfo.id > 0) {
  953. for (let i = 0; i < this.patientTableData.length; i++) {
  954. if (this.hisPatientInfo.patient_id == this.patientTableData[i].patient_id) {
  955. this.current_index = i
  956. this.$refs.tab.setCurrentRow(this.patientTableData[i])
  957. this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].patient_id)
  958. }
  959. }
  960. } else {
  961. this.$refs.tab.setCurrentRow(this.patientTableData[0])
  962. this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].patient_id)
  963. }
  964. break
  965. case 2:
  966. this.all_table_data = response.data.data.list_two
  967. this.patientTableData = response.data.data.list_two
  968. if (this.hisPatientInfo.id > 0) {
  969. for (let i = 0; i < this.patientTableData.length; i++) {
  970. if (this.hisPatientInfo.patient_id == this.patientTableData[i].patient_id) {
  971. this.current_index = i
  972. this.$refs.tab.setCurrentRow(this.patientTableData[i])
  973. this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].patient_id)
  974. }
  975. }
  976. } else {
  977. this.$refs.tab.setCurrentRow(this.patientTableData[0])
  978. this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].patient_id)
  979. }
  980. break
  981. }
  982. }
  983. })
  984. },
  985. setMonthPrescription(month_prescriptions) {
  986. this.month_prescriptions = []
  987. let drug_month_prescriptions = {
  988. advices: []
  989. }
  990. let drug_ids = []
  991. let project_month_prescriptions = {
  992. project: []
  993. }
  994. let project_ids = []
  995. let addition_month_prescriptions = {
  996. addition: []
  997. }
  998. let additions_ids = []
  999. for (let i = 0; i < month_prescriptions.length; i++) {
  1000. if (month_prescriptions[i].type == 1) { //药品
  1001. for (let a = 0; a < month_prescriptions[i].advices.length; a++) {
  1002. let obj = {
  1003. id: month_prescriptions[i].advices[a].drug_id,
  1004. price: month_prescriptions[i].advices[a].price
  1005. }
  1006. drug_ids.push(obj)
  1007. // drug_ids.push(month_prescriptions[i].advices[a].drug_id)
  1008. drug_month_prescriptions.advices.push(month_prescriptions[i].advices[a])
  1009. }
  1010. } else if (month_prescriptions[i].type == 2) { //项目
  1011. for (let a = 0; a < month_prescriptions[i].project.length; a++) {
  1012. let obj = {
  1013. id: month_prescriptions[i].project[a].project_id,
  1014. price: month_prescriptions[i].project[a].price
  1015. }
  1016. project_ids.push(obj)
  1017. project_month_prescriptions.project.push(month_prescriptions[i].project[a])
  1018. }
  1019. }
  1020. }
  1021. drug_ids = this.unique_two(drug_ids)
  1022. project_ids = this.unique_two(project_ids)
  1023. additions_ids = this.unique_two(additions_ids)
  1024. let drugs = []
  1025. let projects = []
  1026. let additions = []
  1027. for (let i = 0; i < drug_ids.length; i++) {
  1028. let obj = {}
  1029. let count = 0
  1030. for (let a = 0; a < drug_month_prescriptions.advices.length; a++) {
  1031. if (drug_ids[i].price == drug_month_prescriptions.advices[a].price && drug_ids[i].id == drug_month_prescriptions.advices[a].drug_id) {
  1032. obj['drug_name'] = drug_month_prescriptions.advices[a].advice_name
  1033. obj['single_dose'] = drug_month_prescriptions.advices[a].single_dose
  1034. obj['delivery_way'] = drug_month_prescriptions.advices[a].delivery_way
  1035. obj['execution_frequency'] = drug_month_prescriptions.advices[a].execution_frequency
  1036. obj['day'] = drug_month_prescriptions.advices[a].day
  1037. // obj['prescribing_number'] = obj['prescribing_number'] + drug_month_prescriptions.advices[a].prescribing_number
  1038. obj['prescribing_number_unit'] = drug_month_prescriptions.advices[a].prescribing_number_unit
  1039. obj['medical_insurance_number'] = drug_month_prescriptions.advices[a].drug.medical_insurance_number
  1040. obj['id'] = drug_month_prescriptions.advices[a].drug_id
  1041. // obj['retail_price'] = obj['retail_price'] + drug_month_prescriptions.advices[a].drug.retail_price
  1042. obj['retail_price'] = parseFloat(drug_month_prescriptions.advices[a].price)
  1043. count = count + drug_month_prescriptions.advices[a].prescribing_number
  1044. }
  1045. }
  1046. obj['prescribing_number'] = count
  1047. drugs.push(obj)
  1048. }
  1049. for (let i = 0; i < project_ids.length; i++) {
  1050. let obj = {}
  1051. let count = 0
  1052. for (let a = 0; a < project_month_prescriptions.project.length; a++) {
  1053. if (project_ids[i].price == project_month_prescriptions.project[a].price && project_ids[i].id == project_month_prescriptions.project[a].project_id) {
  1054. if (project_month_prescriptions.project[a].type == 2) {
  1055. obj['statistical_classification'] = ''
  1056. obj['medical_code'] = project_month_prescriptions.project[a].project.medical_code
  1057. obj['project_name'] = project_month_prescriptions.project[a].project.project_name
  1058. obj['type'] = 2
  1059. } else if (project_month_prescriptions.project[a].type == 3) {
  1060. obj['statistical_classification'] = ''
  1061. obj['medical_code'] = project_month_prescriptions.project[a].good_info.medical_insurance_number
  1062. obj['project_name'] = project_month_prescriptions.project[a].good_info.good_name
  1063. obj['type'] = 3
  1064. }
  1065. // obj['project_name'] = project_month_prescriptions.project[a].project.project_name;
  1066. // obj['statistical_classification'] = project_month_prescriptions.project[a].project.statistical_classification;
  1067. obj['single_dose'] = project_month_prescriptions.project[a].single_dose
  1068. obj['delivery_way'] = project_month_prescriptions.project[a].delivery_way
  1069. obj['execution_frequency'] = project_month_prescriptions.project[a].execution_frequency
  1070. obj['number_days'] = project_month_prescriptions.project[a].day
  1071. // obj['medical_code'] = project_month_prescriptions.project[a].project.medical_code;
  1072. obj['unit'] = project_month_prescriptions.project[a].unit
  1073. obj['project_id'] = project_month_prescriptions.project[a].project_id
  1074. count = count + parseFloat(project_month_prescriptions.project[a].count)
  1075. // price = price + project_month_prescriptions.project[a].price
  1076. obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
  1077. }
  1078. }
  1079. obj['total'] = count
  1080. projects.push(obj)
  1081. }
  1082. let p1 = {
  1083. name: '处方' + 1,
  1084. advices: drugs,
  1085. project: [],
  1086. type: 1,
  1087. addition: additions
  1088. }
  1089. let p2 = {
  1090. name: '处方' + 2,
  1091. type: 2,
  1092. project: projects,
  1093. advices: [],
  1094. addition: []
  1095. }
  1096. this.month_prescriptions.push(p1)
  1097. this.month_prescriptions.push(p2)
  1098. this.curMonthPrescriptions = this.month_prescriptions[0]
  1099. },
  1100. unique_two(array) {
  1101. // res用来存储结果
  1102. var res = []
  1103. for (var i = 0, arrayLen = array.length; i < arrayLen; i++) {
  1104. for (var j = 0, resLen = res.length; j < resLen; j++) {
  1105. if (array[i].id === res[j].id && array[i].price === res[j].price) {
  1106. break
  1107. }
  1108. }
  1109. // 如果array[i]是唯一的,那么执行完循环,j等于resLen
  1110. if (j === resLen) {
  1111. res.push(array[i])
  1112. }
  1113. }
  1114. return res
  1115. },
  1116. unique(arr) {
  1117. const res = new Map()
  1118. return arr.filter((arr) => !res.has(arr.id_card_no) && res.set(arr.id_card_no, 1))
  1119. },
  1120. handleCurrentChange(val) {
  1121. this.getPatientInformation(val.id, val.patient_id)
  1122. },
  1123. //获取患者的基本信息
  1124. getPatientInformation(id, patient_id) {
  1125. let params = {
  1126. 'id': id,
  1127. 'record_date': this.record_date,
  1128. 'patient_id': patient_id,
  1129. 'start_time': this.other_start_time,
  1130. 'end_time': this.other_end_time,
  1131. 'is_upload': this.radio
  1132. }
  1133. this.loading = true
  1134. getHisHospitalDetailInfo(params).then(response => {
  1135. if (response.data.state == 0) {
  1136. this.loading = false
  1137. this.$message.error(response.data.msg)
  1138. return false
  1139. } else {
  1140. this.prescriptions = []
  1141. this.month_prescriptions = []
  1142. this.curPrescriptions = {}
  1143. this.curMonthPrescriptions = {}
  1144. this.loading = false
  1145. this.hisPatientInfo = response.data.data.his_info
  1146. this.setMonthPrescription(response.data.data.month_prescriptions)
  1147. for (let i = 0; i < response.data.data.prescription.length; i++) {
  1148. var prescription = response.data.data.prescription[i]
  1149. let tempAdvice = []
  1150. let tempProject = []
  1151. let tempAddition = []
  1152. for (let b = 0; b < prescription.advices.length; b++) {
  1153. let spec = prescription.advices[b].drug.dose + prescription.advices[b].drug.dose_unit + '*' + prescription.advices[b].drug.min_number + prescription.advices[b].drug.min_unit + '/' + prescription.advices[b].drug.max_unit
  1154. let obj = {
  1155. advice_id: prescription.advices[b].id,
  1156. drug_name: prescription.advices[b].advice_name,
  1157. single_dose: prescription.advices[b].single_dose,
  1158. delivery_way: prescription.advices[b].delivery_way,
  1159. execution_frequency: prescription.advices[b].execution_frequency,
  1160. retail_price: prescription.advices[b].price.toString(),
  1161. remark: prescription.advices[b].remark,
  1162. day: prescription.advices[b].day,
  1163. prescribing_number: prescription.advices[b].prescribing_number.toString(),
  1164. single_dose_unit: prescription.advices[b].single_dose_unit,
  1165. prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
  1166. medical_insurance_number: prescription.advices[b].med_list_codg,
  1167. spec: spec,
  1168. code: prescription.advices[b].drug.medical_insurance_number,
  1169. det_item_fee_sumamt: prescription.advices[b].order_info.det_item_fee_sumamt,
  1170. name_id: prescription.advices[b].drug.manufacturer,
  1171. fulamt_ownpay_amt: prescription.advices[b].order_info.fulamt_ownpay_amt,
  1172. overlmt_amt: prescription.advices[b].order_info.overlmt_amt,
  1173. preselfpay_amt: prescription.advices[b].order_info.preselfpay_amt,
  1174. inscp_scp_amt: prescription.advices[b].order_info.inscp_scp_amt,
  1175. execution_state: prescription.advices[b].execution_state
  1176. }
  1177. tempAdvice.push(obj)
  1178. }
  1179. for (let b = 0; b < prescription.project.length; b++) {
  1180. let obj = {
  1181. id: prescription.project[b].id,
  1182. project_id: prescription.project[b].project.id,
  1183. // project_name: prescription.project[b].project.project_name,
  1184. // statistical_classification: prescription.project[b].project.statistical_classification,
  1185. single_dose: prescription.project[b].single_dose,
  1186. delivery_way: prescription.project[b].delivery_way,
  1187. execution_frequency: prescription.project[b].execution_frequency,
  1188. number_days: prescription.project[b].day,
  1189. total: prescription.project[b].count.toString(),
  1190. price: prescription.project[b].price,
  1191. remark: prescription.project[b].remark,
  1192. // medical_code: prescription.project[b].project.medical_code,
  1193. unit: prescription.project[b].project.unit,
  1194. type: prescription.project[b].type,
  1195. det_item_fee_sumamt: prescription.project[b].order_info.det_item_fee_sumamt,
  1196. fulamt_ownpay_amt: prescription.project[b].order_info.fulamt_ownpay_amt,
  1197. overlmt_amt: prescription.project[b].order_info.overlmt_amt,
  1198. preselfpay_amt: prescription.project[b].order_info.preselfpay_amt,
  1199. inscp_scp_amt: prescription.project[b].order_info.inscp_scp_amt,
  1200. execution_state: prescription.project[b].execution_state
  1201. }
  1202. if (prescription.project[b].type == 2) {
  1203. obj['statistical_classification'] = prescription.project[b].team.project_team
  1204. obj['medical_code'] = prescription.project[b].project.medical_code
  1205. obj['project_name'] = prescription.project[b].project.project_name
  1206. obj['spec'] = ''
  1207. obj['name_id'] = 0
  1208. } else if (prescription.project[b].type == 3) {
  1209. obj['statistical_classification'] = prescription.project[b].team.project_team
  1210. obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
  1211. obj['project_name'] = prescription.project[b].good_info.good_name
  1212. obj['spec'] = prescription.project[b].good_info.specification_name
  1213. obj['name_id'] = prescription.project[b].good_info.manufacturer
  1214. }
  1215. tempProject.push(obj)
  1216. }
  1217. let index = i + 1
  1218. let obj = {
  1219. id: prescription.id,
  1220. name: '处方' + index,
  1221. advices: tempAdvice,
  1222. project: tempProject,
  1223. addition: tempAddition,
  1224. order_status: prescription.order_status,
  1225. type: prescription.type
  1226. }
  1227. this.prescriptions.push(obj)
  1228. for (let i = 0; i < this.prescriptions.length; i++) {
  1229. if (this.prescriptions[i].order_status != 4) {
  1230. this.isShowUpload = 2
  1231. }
  1232. }
  1233. }
  1234. if (this.prescriptions.length > 0) {
  1235. this.curPrescriptions = this.prescriptions[0]
  1236. } else {
  1237. this.curPrescriptions = {}
  1238. }
  1239. if (this.month_prescriptions.length > 0) {
  1240. this.curMonthPrescriptions = this.month_prescriptions[0]
  1241. } else {
  1242. this.curMonthPrescriptions = {}
  1243. }
  1244. this.total = 0
  1245. this.total = this.getTotalOne()
  1246. this.month_total = this.getMonthTotalOne()
  1247. this.all_total = this.getTotal()
  1248. this.all_month_total = this.getTotalTwo()
  1249. this.fulamt_ownpay_amt = this.getFulamtOwnpayAmtTotal()
  1250. this.overlmt_amt = this.getOverlmtAmtTotal()
  1251. this.preselfpay_amt = this.getPreselfpayAmtTotal()
  1252. this.inscp_scp_amt = this.getInscpScpAmtTotal()
  1253. }
  1254. })
  1255. }, getFulamtOwnpayAmtTotal() {
  1256. var total = 0
  1257. for (let i = 0; i < this.prescriptions.length; i++) {
  1258. if (this.prescriptions[i].advices != null) {
  1259. for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
  1260. total = parseFloat(total) + parseFloat(this.prescriptions[i].advices[a].fulamt_ownpay_amt)
  1261. }
  1262. }
  1263. if (this.prescriptions[i].project != null) {
  1264. for (let b = 0; b < this.prescriptions[i].project.length; b++) {
  1265. total = parseFloat(total) + parseFloat(this.prescriptions[i].project[b].fulamt_ownpay_amt)
  1266. }
  1267. }
  1268. }
  1269. return total.toFixed(2)
  1270. }, getOverlmtAmtTotal() {
  1271. var total = 0
  1272. for (let i = 0; i < this.prescriptions.length; i++) {
  1273. if (this.prescriptions[i].advices != null) {
  1274. for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
  1275. total = parseFloat(total) + parseFloat(this.prescriptions[i].advices[a].overlmt_amt)
  1276. }
  1277. }
  1278. if (this.prescriptions[i].project != null) {
  1279. for (let b = 0; b < this.prescriptions[i].project.length; b++) {
  1280. total = parseFloat(total) + parseFloat(this.prescriptions[i].project[b].overlmt_amt)
  1281. }
  1282. }
  1283. }
  1284. return total.toFixed(2)
  1285. }, getPreselfpayAmtTotal() {
  1286. var total = 0
  1287. for (let i = 0; i < this.prescriptions.length; i++) {
  1288. if (this.prescriptions[i].advices != null) {
  1289. for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
  1290. total = parseFloat(total) + parseFloat(this.prescriptions[i].advices[a].preselfpay_amt)
  1291. }
  1292. }
  1293. if (this.prescriptions[i].project != null) {
  1294. for (let b = 0; b < this.prescriptions[i].project.length; b++) {
  1295. total = parseFloat(total) + parseFloat(this.prescriptions[i].project[b].preselfpay_amt)
  1296. }
  1297. }
  1298. }
  1299. return total.toFixed(2)
  1300. }, getInscpScpAmtTotal() {
  1301. var total = 0
  1302. for (let i = 0; i < this.prescriptions.length; i++) {
  1303. if (this.prescriptions[i].advices != null) {
  1304. for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
  1305. total = parseFloat(total) + parseFloat(this.prescriptions[i].advices[a].inscp_scp_amt)
  1306. }
  1307. }
  1308. if (this.prescriptions[i].project != null) {
  1309. for (let b = 0; b < this.prescriptions[i].project.length; b++) {
  1310. total = parseFloat(total) + parseFloat(this.prescriptions[i].project[b].inscp_scp_amt)
  1311. }
  1312. }
  1313. }
  1314. return total.toFixed(2)
  1315. },
  1316. sz_open(index) {
  1317. switch (index) {
  1318. case 1:
  1319. this.$refs.register9504.show()
  1320. break
  1321. case 2:
  1322. var that = this
  1323. if (this.activeName == 'first') {
  1324. this.settle_accounts_type = 1
  1325. } else {
  1326. this.settle_accounts_type = 2
  1327. this.start_time = this.other_start_time
  1328. this.end_time = this.other_end_time
  1329. this.settle_accounts_type = 2
  1330. }
  1331. let params = {
  1332. 'patient_id': this.patientInfo.id,
  1333. 'record_time': this.record_date,
  1334. 'settle_accounts_type': this.settle_accounts_type,
  1335. 'admin_user_id': this.$store.getters.xt_user.user.id
  1336. }
  1337. axios.get('http://127.0.0.1:9532/sz/api/upload/get', {
  1338. params: params,
  1339. headers: {
  1340. 'Permission': 5
  1341. }
  1342. })
  1343. .then(function(response) {
  1344. if (response.data.state == 0) {
  1345. that.$message.error(response.data.msg)
  1346. return false
  1347. } else {
  1348. if (response.data.data.failed_code == -10) {
  1349. // that.$message.error(response.data.data.msg)
  1350. that.$confirm(response.data.data.msg, '医保错误信息', {
  1351. confirmButtonText: '确 定',
  1352. type: 'warning'
  1353. }).then(() => {
  1354. }).catch(() => {
  1355. })
  1356. } else {
  1357. that.changeRadioAndPatient(1)
  1358. that.$message({ message: '预结算成功', type: 'success' })
  1359. }
  1360. }
  1361. })
  1362. .catch(function(error) {
  1363. })
  1364. break
  1365. case 3:
  1366. if (this.activeName == 'first') {
  1367. this.$refs.charge.show(this.getTotal())
  1368. } else {
  1369. this.$refs.charge.show(this.getTotalTwo())
  1370. }
  1371. break
  1372. case 4:
  1373. break
  1374. case 5:
  1375. var that = this
  1376. this.$confirm('是否退费', '退费', {
  1377. confirmButtonText: '确 定',
  1378. cancelButtonText: '取 消',
  1379. type: 'warning'
  1380. }).then(() => {
  1381. axios.get('http://127.0.0.1:9532/sz/api/refund/get', {
  1382. params: {
  1383. order_id: this.order.id,
  1384. record_time: this.record_date,
  1385. admin_user_id: this.$store.getters.xt_user.user.id,
  1386. patient_id: this.patientInfo.id
  1387. }
  1388. })
  1389. .then(function(response) {
  1390. if (response.data.state == 0) {
  1391. that.$message.error(response.data.msg)
  1392. return false
  1393. } else {
  1394. if (response.data.data.failed_code == -10) {
  1395. // that.$message.error(response.data.data.msg)
  1396. that.$confirm(response.data.data.msg, '医保错误信息', {
  1397. confirmButtonText: '确 定',
  1398. type: 'warning'
  1399. }).then(() => {
  1400. }).catch(() => {
  1401. })
  1402. } else {
  1403. that.changeRadioAndPatient(1)
  1404. that.$message({ message: '退费成功', type: 'success' })
  1405. }
  1406. }
  1407. })
  1408. .catch(function(error) {
  1409. })
  1410. }).catch(() => {
  1411. })
  1412. break
  1413. case 6:
  1414. var that = this
  1415. axios.get('http://127.0.0.1:9532/sz/api/settle/query', {
  1416. params: {
  1417. order_id: this.order.id,
  1418. record_time: this.record_date,
  1419. admin_user_id: this.$store.getters.xt_user.user.id,
  1420. patient_id: this.patientInfo.id
  1421. }
  1422. })
  1423. .then(function(response) {
  1424. if (response.data.state == 0) {
  1425. // that.$message.error(response.data.msg);
  1426. return false
  1427. } else {
  1428. if (response.data.data.failed_code == -10) {
  1429. // that.$message.error(response.data.data.msg)
  1430. that.$confirm(response.data.data.msg, '医保错误信息', {
  1431. confirmButtonText: '确 定',
  1432. type: 'warning'
  1433. }).then(() => {
  1434. }).catch(() => {
  1435. })
  1436. } else {
  1437. that.$message({ message: '查询成功', type: 'success' })
  1438. }
  1439. }
  1440. })
  1441. .catch(function(error) {
  1442. })
  1443. break
  1444. case 7:
  1445. var that = this
  1446. axios.get('http://127.0.0.1:9532/sz/api/detail/cancel', {
  1447. params: {
  1448. order_id: this.order.id,
  1449. record_time: this.record_date,
  1450. admin_user_id: this.$store.getters.xt_user.user.id,
  1451. patient_id: this.patientInfo.id
  1452. }
  1453. })
  1454. .then(function(response) {
  1455. if (response.data.state == 0) {
  1456. that.$message.error(response.data.msg)
  1457. return false
  1458. } else {
  1459. if (response.data.data.failed_code == -10) {
  1460. // that.$message.error(response.data.data.msg)
  1461. that.$confirm(response.data.data.msg, '医保错误信息', {
  1462. confirmButtonText: '确 定',
  1463. type: 'warning'
  1464. }).then(() => {
  1465. }).catch(() => {
  1466. })
  1467. } else {
  1468. that.$message({ message: '明细撤销成功', type: 'success' })
  1469. }
  1470. }
  1471. })
  1472. .catch(function(error) {
  1473. })
  1474. break
  1475. case 10:
  1476. this.newStatementVisible = true
  1477. let obj = {
  1478. record_time: this.record_date,
  1479. patient_id: this.patient_id,
  1480. prescription_id: this.prescription_id,
  1481. order_id: this.order.id,
  1482. admin_user_id: this.$store.getters.xt_user.user.id
  1483. }
  1484. this.newOrderObj = obj
  1485. // this.$refs.print.getInfo(this.order.id)
  1486. break
  1487. case 11:
  1488. var that = this
  1489. this.$confirm('是否退号', '退号', {
  1490. confirmButtonText: '确 定',
  1491. cancelButtonText: '取 消',
  1492. type: 'warning'
  1493. }).then(() => {
  1494. axios.get('http://127.0.0.1:9532/sz/api/refundnumber/get', {
  1495. params: {
  1496. order_id: this.order.id,
  1497. record_time: this.record_date,
  1498. admin_user_id: this.$store.getters.xt_user.user.id,
  1499. patient_id: this.hisPatientInfo.patient_id
  1500. }
  1501. })
  1502. .then(function(response) {
  1503. if (response.data.state == 0) {
  1504. that.$message.error(response.data.msg)
  1505. return false
  1506. } else {
  1507. if (response.data.data.failed_code == -10) {
  1508. // that.$message.error(response.data.data.msg)
  1509. that.$confirm(response.data.data.msg, '医保错误信息', {
  1510. confirmButtonText: '确 定',
  1511. type: 'warning'
  1512. }).then(() => {
  1513. }).catch(() => {
  1514. })
  1515. } else {
  1516. that.changeRadioAndPatient(1)
  1517. that.$message({ message: '退号成功', type: 'success' })
  1518. }
  1519. }
  1520. })
  1521. .catch(function(error) {
  1522. })
  1523. }).catch(() => {
  1524. })
  1525. break
  1526. }
  1527. }
  1528. },
  1529. mounted() {
  1530. const that = this
  1531. window.onresize = () => {
  1532. return (() => {
  1533. window.fullHeight = document.documentElement.clientHeight
  1534. that.fullHeight = window.fullHeight
  1535. })()
  1536. }
  1537. },
  1538. watch: {
  1539. fullHeight(val) {
  1540. if (!this.timer) {
  1541. this.fullHeight = val
  1542. let tableHeight = val - 243
  1543. this.tableHeight = tableHeight
  1544. this.timer = true
  1545. let that = this
  1546. setTimeout(function() {
  1547. that.timer = false
  1548. }, 400)
  1549. }
  1550. }
  1551. }
  1552. }
  1553. </script>
  1554. <style lang="scss" scoped>
  1555. .app-container {
  1556. height: 100%;
  1557. }
  1558. .outpatientChargesManagement {
  1559. height: 100%;
  1560. display: flex;
  1561. flex-direction: column;
  1562. .mainLeft {
  1563. width: 200px;
  1564. height: 100%;
  1565. display: flex;
  1566. flex-direction: column;
  1567. padding-top: 20px;
  1568. .el-radio {
  1569. margin-right: 5px;
  1570. }
  1571. }
  1572. .mainCell {
  1573. height: 36px;
  1574. display: flex;
  1575. align-items: center;
  1576. }
  1577. .fixedCell {
  1578. position: fixed;
  1579. z-index: 99;
  1580. right: 42px;
  1581. background: #fff;
  1582. display: flex;
  1583. justify-content: space-between;
  1584. }
  1585. .mainRight {
  1586. margin-left: 10px;
  1587. flex: 1;
  1588. height: 100%;
  1589. display: flex;
  1590. flex-direction: column;
  1591. overflow-y: auto;
  1592. .cellSpan {
  1593. min-width: 80px;
  1594. display: inline-block;
  1595. margin-right: 10px;
  1596. }
  1597. }
  1598. .tabsBox {
  1599. position: relative;
  1600. height: 90%;
  1601. overflow-y: auto;
  1602. margin-bottom: 60px;
  1603. .el-tabs__item {
  1604. padding: 0 10px;
  1605. }
  1606. }
  1607. .addTab {
  1608. position: absolute;
  1609. right: 6px;
  1610. top: 3px;
  1611. z-index: 20;
  1612. }
  1613. .mainCenter {
  1614. display: flex;
  1615. flex: 1;
  1616. height: 100%;
  1617. }
  1618. .costBox {
  1619. width: 100%;
  1620. height: 60px;
  1621. background: #fff;
  1622. position: absolute;
  1623. bottom: 0;
  1624. display: flex;
  1625. align-items: center;
  1626. justify-content: space-between;
  1627. }
  1628. .centerLeft {
  1629. flex: 1;
  1630. display: flex;
  1631. flex-direction: column;
  1632. position: relative;
  1633. }
  1634. .preTabs {
  1635. height: 100%;
  1636. display: flex;
  1637. flex-direction: column;
  1638. .el-tab-pane {
  1639. height: auto !important;
  1640. }
  1641. }
  1642. .settlementTabs {
  1643. flex: 1;
  1644. .el-tab-pane {
  1645. height: 100%;
  1646. }
  1647. .el-tabs__content {
  1648. height: 100%;
  1649. }
  1650. }
  1651. .centerRight {
  1652. width: 300px;
  1653. margin-left: 10px;
  1654. display: flex;
  1655. flex-direction: column;
  1656. overflow-y: auto;
  1657. }
  1658. .RP {
  1659. color: #409EFF;
  1660. font-size: 20px;
  1661. margin-bottom: 5px;
  1662. }
  1663. .centerRightTitle {
  1664. color: #409EFF;
  1665. }
  1666. .basicUl {
  1667. border-top: 1px solid #e5e5e5;
  1668. border-left: 1px solid #e5e5e5;
  1669. display: flex;
  1670. flex-wrap: wrap;
  1671. li {
  1672. border-bottom: 1px solid #e5e5e5;
  1673. border-right: 1px solid #e5e5e5;
  1674. width: 100%;
  1675. min-height: 38px;
  1676. /* line-height: 38px;
  1677. text-indent: 5px; */
  1678. font-size: 14px;
  1679. display: flex;
  1680. align-items: center;
  1681. padding: 5px;
  1682. box-sizing: border-box;
  1683. }
  1684. }
  1685. }
  1686. </style>
  1687. <style lang="scss">
  1688. #tab-more {
  1689. .el-icon-close {
  1690. display: none;
  1691. }
  1692. }
  1693. .settlementTabs {
  1694. .el-tabs__content {
  1695. height: 90%;
  1696. }
  1697. }
  1698. .preTabs {
  1699. .el-tabs__content {
  1700. flex: 1;
  1701. overflow-y: auto;
  1702. padding: 5px 0 5px 5px;
  1703. }
  1704. }
  1705. .centerDialog {
  1706. .el-dialog__body {
  1707. max-height: calc(100vh - 100px) !important;
  1708. padding: 0 20px;
  1709. }
  1710. }
  1711. </style>