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

chargeDetailManagement.vue 72KB

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