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

outpatientChargesManagement.vue 114KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270
  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. placeholder="选择开始时间"
  16. align="right"
  17. format="yyyy-MM-dd"
  18. value-format="yyyy-MM-dd">
  19. </el-date-picker>
  20. <!-- <div class="mainCell" style="justify-content: space-between;font-size:14px;">
  21. <p >未收费:<span style="color: red">{{cal_one}}</span>人</p>
  22. <p>已收费:<span style="color: red">{{cal_two}}</span>人</p>
  23. <p>已退费:<span style="color: red">{{cal_three}}</span>人</p>
  24. </div> -->
  25. <div class="mainCell">
  26. <el-radio-group v-model="radio" @change="changeRadio">
  27. <!-- <el-radio :label=1>未收费</el-radio>
  28. <el-radio :label=2>已收费</el-radio>
  29. <el-radio :label=3>已退费</el-radio>
  30. <el-radio :label=4>全部</el-radio> -->
  31. <el-radio :label=1>未收费<span
  32. style="color: red;margin-bottom:10px;display: inline-block;">{{ cal_one }}</span>人
  33. </el-radio>
  34. <el-radio :label=2>已收费<span
  35. style="color: red;margin-bottom:10px;display: inline-block;">{{ cal_two }}</span>人
  36. </el-radio>
  37. <!--<el-radio :label=3>已退费<span-->
  38. <!--style="color: red;margin-bottom:10px;display: inline-block;">{{cal_three}}</span>人-->
  39. <!--</el-radio>-->
  40. <!--<el-radio :label=4>全部</el-radio>-->
  41. </el-radio-group>
  42. </div>
  43. <div class="mainCell" style="margin-bottom:10px;">
  44. <el-input size="small" v-model.trim="search_input"
  45. class="filter-item"/>
  46. <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"
  47. @click="searchAction">
  48. 搜索
  49. </el-button>
  50. </div>
  51. <div>
  52. <el-table v-if="radio == 1" :data="patientTableData" :height="tableHeight" border
  53. style="width: 100%;"
  54. :row-style="{ color: '#303133' }"
  55. :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
  56. highlight-current-row ref="tab"
  57. @current-change="handleCurrentChange">
  58. <el-table-column align="center" prop="name" label="姓名" wdith='89'>
  59. <template slot-scope="scope">{{ scope.$index + 1 }}.{{ scope.row.name }}</template>
  60. </el-table-column>
  61. <el-table-column align="center" prop="name" label="就诊号" width="110">
  62. <template slot-scope="scope">{{ scope.row ? scope.row.number : '' }}
  63. </template>
  64. </el-table-column>
  65. </el-table>
  66. <el-table v-if="radio == 2" :data="chargePatientTableData" :height="tableHeight" border
  67. style="width: 100%;"
  68. :row-style="{ color: '#303133' }"
  69. :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
  70. highlight-current-row ref="tab"
  71. @current-change="handleCurrentChange">
  72. <el-table-column align="center" prop="name" label="姓名" wdith='89'>
  73. <template slot-scope="scope">{{ scope.row.name }}</template>
  74. </el-table-column>
  75. <el-table-column align="center" prop="name" label="就诊号" width="110">
  76. <template slot-scope="scope">{{ scope.row.his_number }}
  77. </template>
  78. </el-table-column>
  79. </el-table>
  80. </div>
  81. </div>
  82. <div class="mainRight">
  83. <div class="mainCell fixedCell" style="margin-bottom:10px;">
  84. <div>
  85. <el-button v-loading="loadingone" size="small"
  86. v-if="(this.activeName == 'third' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
  87. @click="open(2)"
  88. type="primary">出院
  89. </el-button>
  90. <el-button v-loading="loadingone" size="small"
  91. v-if="(this.activeName == 'third' &&this.hisPatientInfo.balance_accounts_type == 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
  92. @click="open(2)"
  93. type="primary">出院
  94. </el-button>
  95. <el-button
  96. size="small"
  97. @click="open(40)"
  98. type="primary">预结算
  99. </el-button>
  100. <el-button v-loading="loadingtwo"
  101. v-if="(this.activeName == 'third' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1) || (this.activeName != 'first' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1 && this.order.order_status == 1) || (this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1 && this.order.order_status == 3)"
  102. size="small"
  103. @click="open(3)"
  104. type="primary">收费
  105. </el-button>
  106. <el-button v-loading="loadingtwo"
  107. v-if="(this.activeName == 'third' &&this.hisPatientInfo.balance_accounts_type == 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1 && this.order.order_status != 2)"
  108. size="small"
  109. @click="open(3)"
  110. type="primary">收费
  111. </el-button>
  112. <el-button size="small" @click="open(4)" type="primary"
  113. v-if="this.activeName == 'third' &&this.hisPatientInfo.id > 0 && this.order.id > 0 && this.order.order_status == 2">
  114. 退费
  115. </el-button>
  116. <el-button v-if="this.activeName == 'third' &&this.order.order_status == 2" size="small" @click="open(5)"
  117. type="primary"
  118. >结算单
  119. </el-button>
  120. <el-button
  121. v-if="(this.activeName == 'third' &&this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1)"
  122. size="small" @click="open(6)" type="primary"
  123. >撤销出院
  124. </el-button>
  125. <el-button
  126. v-if="(this.activeName == 'third' &&this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
  127. size="small" @click="open(7)" type="primary"
  128. >撤销入院
  129. </el-button>
  130. </div>
  131. </div>
  132. <div class="mainCenter">
  133. <el-tabs class="settlementTabs" v-model="activeName" @tab-click="handleClick">
  134. <el-tab-pane label="结算" name="third">
  135. <div style="display:flex;height:100%;">
  136. <div class="centerLeft">
  137. <div class="tabsBox">
  138. <el-tabs class="preTabs" v-model="editSettletableTabsValue" type="border-card"
  139. @tab-click="tabclickEventThree">
  140. <el-tab-pane
  141. v-for="(item, index) in settle_prescriptions"
  142. :key="index"
  143. :label="item.name"
  144. :name="item.name">
  145. </el-tab-pane>
  146. <settle-prescription-table
  147. :prescription="curSettlePrescriptions"
  148. ></settle-prescription-table>
  149. </el-tabs>
  150. </div>
  151. <div class="costBox">
  152. <span>当前处方总费用:<span style="color:red;">{{ settle_total }}元</span></span>
  153. <span>医疗费总额:<span style="color:red;">{{
  154. order.medfee_sumamt ? order.medfee_sumamt.toFixed(2) : getSettleTotal() ? getSettleTotal() : ''
  155. }}元</span></span>
  156. <span>基金支付总额:<span
  157. style="color:red;">{{
  158. order.fund_pay_sumamt ? order.fund_pay_sumamt.toFixed(2) : ''
  159. }}元</span></span>
  160. <span>基本医疗保险统筹基金支出:<span
  161. style="color:red;">{{
  162. order.hifp_pay ? order.hifp_pay.toFixed(2) : ''
  163. }}元</span></span>
  164. <span>医疗救助基金支出:<span
  165. style="color:red;">{{
  166. order.maf_pay ? order.maf_pay.toFixed(2) : ''
  167. }}元</span></span>
  168. <span>个人账户支付金额:<span
  169. style="color:red;">{{
  170. order.acct_pay ? order.acct_pay.toFixed(2) : ''
  171. }}元</span></span>
  172. <span v-if="hisPatientInfo.balance_accounts_type != 2">个人支付金额:<span
  173. style="color:red;">{{
  174. order.psn_cash_pay ? order.psn_cash_pay.toFixed(2) : ''
  175. }}元</span></span>
  176. <span v-if="hisPatientInfo.balance_accounts_type == 2">个人支付金额:<span
  177. style="color:red;">{{
  178. order.medfee_sumamt.toFixed(2)
  179. }}元</span></span>
  180. <span>个人账户金额:<span
  181. style="color:red;">{{
  182. order.balc ? order.balc.toFixed(2) : ''
  183. }}元</span></span>
  184. </div>
  185. </div>
  186. </div>
  187. </el-tab-pane>
  188. </el-tabs>
  189. </div>
  190. </div>
  191. </div>
  192. <additionalCharges ref='additionalCharges' @click="addCharges"
  193. :addtions_charge="addtions_charge"></additionalCharges>
  194. <charge-dialog ref='charge' v-on:confirm="chargeConfirm" v-on:cancel="chargeCancel"></charge-dialog>
  195. <el-dialog
  196. class="centerDialog"
  197. width="900px"
  198. title="打印"
  199. :visible.sync="treatVisible">
  200. <treatPrint :paramsObj='paramsObj'></treatPrint>
  201. </el-dialog>
  202. <el-dialog
  203. class="centerDialog"
  204. width="1200px"
  205. title="打印"
  206. :visible.sync="statementVisible">
  207. <statementPrint ref="print" :paramsObj='orderObj'></statementPrint>
  208. </el-dialog>
  209. <el-dialog
  210. class="centerDialog"
  211. width="1200px"
  212. title="打印"
  213. :visible.sync="newStatementVisible">
  214. <new-statement-print-two :params-obj="newOrderObj"></new-statement-print-two>
  215. <!--<newStatementPrint ref="print" :paramsObj='newOrderObj'></newStatementPrint>-->
  216. </el-dialog>
  217. <el-dialog
  218. class="centerDialog"
  219. width="1200px"
  220. title="打印"
  221. :visible.sync="invoiceVisible">
  222. <invoice-print ref="print" :invoiceParams='invoiceParams'></invoice-print>
  223. </el-dialog>
  224. <el-dialog
  225. title="出院时间"
  226. :visible.sync="dialogVisible"
  227. width="30%"
  228. >
  229. <el-date-picker v-model="out_hospital_time" type="datetime" format="yyyy-MM-dd HH:mm:ss"
  230. value-format="yyyy-MM-dd HH:mm:ss"
  231. placeholder="请选择出院时间">
  232. </el-date-picker>
  233. <span slot="footer" class="dialog-footer">
  234. <el-button @click="dialogVisible = false">取 消</el-button>
  235. <el-button type="primary" @click="comfirmTime">确 定</el-button>
  236. </span>
  237. </el-dialog>
  238. </div>
  239. </template>
  240. <script>
  241. import axios from 'axios'
  242. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  243. import noCharge from './components/noCharge'
  244. import charged from './components/charged'
  245. import medicalInsuranceRefund from './components/medicalInsuranceRefund'
  246. import additionalCharges from './components/additionalCharges'
  247. import {
  248. getBaiLinRecord,
  249. getDayOrMonthHisPrescription,
  250. GetHisHospitalChargePatientInfo,
  251. GetHisHospitalChargePatientList,
  252. getInitData,
  253. HopitalunRefund,
  254. Inthopitaluncheck,
  255. Outhopitalcheck,
  256. Outhopitaluncheck,
  257. Settle
  258. } from '@/api/his/his'
  259. import { uParseTime } from '@/utils/tools'
  260. import RegisterDialog from './components/registerDialog'
  261. import treatPrint from './treatPrint'
  262. import statementPrint from './statementPrint'
  263. import ChargeDialog from './components/chargeDialog'
  264. import MonthPrescriptionTable from './components/monthPrescriptionTable'
  265. import ChargeMonthPrescriptionTable from './components/chargeMonthPrescriptionTable'
  266. import NewStatementPrintTwo from './newStatementPrintTwo'
  267. import RegisterDialog9504 from './components/registerDialog9504'
  268. import ChargePrescriptionTable from './components/ChargePrescriptionTable'
  269. import invoicePrint from './invoicePrint'
  270. import SettlePrescriptionTable from './components/settlePrescriptionTable'
  271. const moment = require('moment')
  272. export default {
  273. components: {
  274. SettlePrescriptionTable,
  275. ChargePrescriptionTable,
  276. RegisterDialog9504,
  277. NewStatementPrintTwo,
  278. ChargeMonthPrescriptionTable,
  279. MonthPrescriptionTable,
  280. ChargeDialog,
  281. RegisterDialog,
  282. BreadCrumb,
  283. noCharge,
  284. charged,
  285. medicalInsuranceRefund,
  286. additionalCharges,
  287. treatPrint,
  288. statementPrint,
  289. invoicePrint
  290. },
  291. data() {
  292. return {
  293. register: [
  294. { value: 11, label: '普通门诊' },
  295. // { value: 12, label: '门诊挂号' },
  296. // { value: 13, label: '急诊' },
  297. { value: 14, label: '门诊慢性病' }
  298. // { value: 15, label: '门诊统筹' },
  299. // { value: 16, label: '门诊慢性病' },
  300. // { value: 21, label: '普通住院' }
  301. ],
  302. loading: false,
  303. dise_loading: false,
  304. dialogVisible: false,
  305. sick_history: '',
  306. p_type: '',
  307. sick_type: '',
  308. diagnosis: '',
  309. isShowUpload: 1,
  310. isShowWithdrawUpload: 1,
  311. month_p_type: '',
  312. month_sick_type: '',
  313. month_diagnosis: '',
  314. key: '',
  315. other_start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
  316. other_end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
  317. curMonthPrescriptions: null,
  318. curSettlePrescriptions: null,
  319. month_total: 0,
  320. crumbs: [
  321. { path: false, name: '住院工作站' },
  322. { path: false, name: '住院收费管理' }
  323. ],
  324. current_index: 0,
  325. cal_one: '',
  326. cal_two: '',
  327. cal_three: '',
  328. tableHeight: '',
  329. fullHeight: document.documentElement.clientHeight,
  330. activeName: 'third',
  331. info: {},
  332. curPrescriptions: {},
  333. prescriptions: [],
  334. month_prescriptions: [],
  335. settle_prescriptions: [],
  336. settle_total: 0,
  337. record_date: '',
  338. tableData: [],
  339. editableTabsValue: '处方1',
  340. editSettletableTabsValue: '处方1',
  341. loadingone: false,
  342. editableTabs: [{
  343. title: '处方1',
  344. name: '1'
  345. }],
  346. tabIndex: 1,
  347. hisPatientInfo: {},
  348. loadingtwo: false,
  349. patientTableData: [{
  350. name: '杨美英',
  351. mdtrt_id: '1709946'
  352. }],
  353. patientInfo: { id: 0 },
  354. doctor: {},
  355. total: 0,
  356. state: '未收费',
  357. radio: 1,
  358. radioStatus: 1,
  359. search_input: '',
  360. start_time: moment().locale('zh-cn').format('YYYY-MM-DD'),
  361. patient_id: 0,
  362. prescription_id: 0,
  363. all_table_data: [],
  364. all_charge_table_data: [],
  365. manufacturers: [],
  366. hisPatientDatas: [],
  367. order: {},
  368. addtions_charge: [],
  369. treatVisible: false,
  370. orderObj: {},
  371. paramsObj: {},
  372. newOrderObj: {},
  373. statementVisible: false,
  374. newStatementVisible: false,
  375. chargePatientTableData: [],
  376. sick: [],
  377. diagnoses: [],
  378. department: [],
  379. invoiceVisible: false,
  380. invoiceParams: {},
  381. out_hospital_time: moment(new Date()).add('year',0).format("YYYY-MM-DD HH:mm:ss")
  382. }
  383. },
  384. created() {
  385. let tableHeight = document.body.clientHeight - 243
  386. this.tableHeight = tableHeight
  387. var nowDate = new Date()
  388. var nowYear = nowDate.getFullYear()
  389. var nowMonth = nowDate.getMonth() + 1
  390. var nowDay = nowDate.getDate()
  391. this.record_date =
  392. nowYear +
  393. '-' +
  394. (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
  395. '-' +
  396. (nowDay < 10 ? '0' + nowDay : nowDay)
  397. this.getInitData()
  398. //获取患者信息
  399. this.getPatientList()
  400. },
  401. methods: {
  402. comfirmTime() {
  403. var that = this
  404. let params = {
  405. 'id': this.hisPatientInfo.id,
  406. 'patient_id': this.patientInfo.id,
  407. 'admin_user_id': this.$store.getters.xt_user.user.id,
  408. 'record_time': this.record_date,
  409. 'out_time': this.out_hospital_time
  410. }
  411. if (this.hisPatientInfo.balance_accounts_type == 2) {
  412. Outhopitalcheck(params).then(response => {
  413. if (response.data.state == 0) {
  414. this.$message.error(response.data.msg)
  415. this.dialogVisible = false
  416. return false
  417. } else {
  418. this.dialogVisible = false
  419. this.$message.success('出院成功')
  420. this.changeRadioAndPatient(1)
  421. }
  422. })
  423. } else {
  424. axios.get('http://127.0.0.1:9532/zh/api/outhopitalcheck/get', {
  425. params: params
  426. })
  427. .then(function(response) {
  428. if (response.data.state == 0) {
  429. that.$message.error(response.data.msg)
  430. that.dialogVisible = false
  431. return false
  432. } else {
  433. if (response.data.data.failed_code == -10) {
  434. that.dialogVisible = false
  435. that.$confirm(response.data.data.msg, '医保错误信息', {
  436. confirmButtonText: '确 定',
  437. type: 'warning'
  438. }).then(() => {
  439. }).catch(() => {
  440. })
  441. } else {
  442. that.dialogVisible = false
  443. that.$message.success('出院成功')
  444. that.changeRadioAndPatient(1)
  445. }
  446. }
  447. })
  448. .catch(function(error) {
  449. })
  450. }
  451. },
  452. getTimes(time) {
  453. return uParseTime(time, '{y}-{m}-{d}')
  454. },
  455. changeTimeTwo() {
  456. this.getPatientList()
  457. },
  458. query() {
  459. if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
  460. var that = this
  461. axios.get('http://127.0.0.1:9532/api/org/info', {
  462. params: {}
  463. })
  464. .then(function(response) {
  465. if (response.data.state == 0) {
  466. that.$message.error(response.data.msg)
  467. return false
  468. } else {
  469. }
  470. })
  471. .catch(function(error) {
  472. })
  473. }
  474. },
  475. getDepartment(department_id) {
  476. for (let i = 0; i < this.department.length; i++) {
  477. if (this.department[i].id == department_id) {
  478. return this.department[i].name
  479. }
  480. }
  481. },
  482. querySearch2(queryString, cb) {
  483. var restaurants = this.other_sick
  484. restaurants.map(item => {
  485. item.value = item.name
  486. })
  487. var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants
  488. // 调用 callback 返回建议列表的数据
  489. cb(results)
  490. },
  491. changeTime(val) {
  492. let params = {
  493. patient_id: this.patientInfo.id,
  494. start_time: val,
  495. end_time: this.other_end_time,
  496. p_type: 1
  497. }
  498. getDayOrMonthHisPrescription(params).then(response => {
  499. if (response.data.state == 1) {
  500. this.month_prescriptions = []
  501. this.setMonthPrescription(response.data.data.day_prescription)
  502. this.curMonthPrescriptions = this.month_prescriptions[0]
  503. } else {
  504. this.$message.error(response.data.msg)
  505. }
  506. })
  507. },
  508. changeEndTime(val) {
  509. let params = {
  510. patient_id: this.patientInfo.id,
  511. start_time: this.other_start_time,
  512. end_time: val,
  513. p_type: 1
  514. }
  515. getDayOrMonthHisPrescription(params).then(response => {
  516. if (response.data.state == 1) {
  517. this.month_prescriptions = []
  518. this.setMonthPrescription(response.data.data.day_prescription)
  519. this.curMonthPrescriptions = this.month_prescriptions[0]
  520. } else {
  521. this.$message.error(response.data.msg)
  522. }
  523. })
  524. },
  525. chargeConfirm(form) {
  526. form['in_hospital_id'] = this.hisPatientInfo.id
  527. form['patient_id'] = this.patientInfo.id
  528. form['admin_user_id'] = this.$store.getters.xt_user.user.id
  529. form['order_id'] = this.order.id
  530. form['record_time'] = this.record_date
  531. // if (this.activeName == 'first') {
  532. // form['settle_accounts_type'] = 1
  533. //
  534. // } else {
  535. // form['start_time'] = this.other_start_time
  536. // form['end_time'] = this.other_end_time
  537. // form['settle_accounts_type'] = 2
  538. //
  539. // }
  540. if (this.hisPatientInfo.balance_accounts_type != 2) {
  541. var that = this
  542. axios.get('http://127.0.0.1:9532/zh/api/settle/get', {
  543. params: form,
  544. headers: {
  545. 'Permission': 5
  546. }
  547. })
  548. .then(function(response) {
  549. if (response.data.state == 0) {
  550. that.$message.error(response.data.msg)
  551. that.loadingtwo = false
  552. that.$refs.charge.hide()
  553. return false
  554. } else {
  555. if (response.data.data.failed_code == -10) {
  556. // that.$message.error(response.data.data.msg)
  557. that.$confirm(response.data.data.msg, '医保错误信息', {
  558. confirmButtonText: '确 定',
  559. type: 'warning'
  560. }).then(() => {
  561. }).catch(() => {
  562. })
  563. } else {
  564. that.changeRadioAndPatient(2)
  565. that.radio = 2
  566. that.$refs.charge.hide()
  567. that.loadingtwo = false
  568. that.state = '已收费'
  569. that.$message({ message: '收费成功', type: 'success', duration: 5000 })
  570. that.loadingtwo = false
  571. that.cal_one = this.cal_one - 1
  572. that.cal_two = this.cal_two + 1
  573. that.patientTableData.splice(this.current_index, 1)
  574. }
  575. }
  576. })
  577. .catch(function(error) {
  578. })
  579. } else {
  580. Settle(form).then(response => {
  581. if (response.data.state == 0) {
  582. this.$message.error(response.data.msg)
  583. this.loadingtwo = false
  584. this.$refs.charge.hide()
  585. return false
  586. } else {
  587. this.$refs.charge.hide()
  588. this.changeRadioAndPatient(2)
  589. this.loadingtwo = false
  590. this.state = '已收费'
  591. this.$message({ message: '收费成功', type: 'success' })
  592. this.$refs.charge.hide()
  593. this.loadingtwo = false
  594. }
  595. })
  596. }
  597. },
  598. chargeCancel() {
  599. this.$refs.charge.hide()
  600. },
  601. registerCancel() {
  602. this.$refs.register9504.hide()
  603. },
  604. cancel() {
  605. this.$refs.register.hide()
  606. },
  607. addCharges() {
  608. this.$refs.additionalCharges.show()
  609. },
  610. changeDate(val) {
  611. if (this.patientInfo.id == 0) {
  612. this.$message.error('请先选择患者')
  613. return
  614. }
  615. let params = {
  616. 'his_patient_id': val.his_patient.id,
  617. 'record_date': val,
  618. 'patient_id': this.patientInfo.id,
  619. 'type': this.radio,
  620. 'p_type': 1
  621. }
  622. GetHisHospitalChargePatientInfo(params).then(response => {
  623. if (response.data.state == 0) {
  624. this.$message.error(response.data.msg)
  625. return false
  626. } else {
  627. this.prescriptions = []
  628. this.month_prescriptions = []
  629. this.curPrescriptions = {}
  630. this.month_prescriptions = {}
  631. this.patientInfo = response.data.data.xt_info
  632. this.hisPatientInfo = response.data.data.his_info
  633. this.info = response.data.data.info
  634. this.order = response.data.data.order
  635. this.addtions_charge = response.data.data.addtions_charge
  636. // this.setMonthPrescription(response.data.data.month_prescriptions)
  637. for (let i = 0; i < response.data.data.prescription.length; i++) {
  638. var prescription = response.data.data.prescription[i]
  639. let tempAdvice = []
  640. let tempProject = []
  641. for (let b = 0; b < prescription.advices.length; b++) {
  642. 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
  643. let obj = {
  644. advice_id: prescription.advices[b].id,
  645. drug_name: prescription.advices[b].advice_name,
  646. single_dose: prescription.advices[b].single_dose,
  647. delivery_way: prescription.advices[b].delivery_way,
  648. execution_frequency: prescription.advices[b].execution_frequency,
  649. retail_price: prescription.advices[b].price,
  650. remark: prescription.advices[b].remark,
  651. day: prescription.advices[b].day,
  652. prescribing_number: prescription.advices[b].prescribing_number.toString(),
  653. single_dose_unit: prescription.advices[b].single_dose_unit,
  654. prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
  655. medical_insurance_number: prescription.advices[b].med_list_codg,
  656. code: prescription.advices[b].drug.medical_insurance_number,
  657. spec: spec,
  658. det_item_fee_sumamt: prescription.advices[b].order_info.det_item_fee_sumamt,
  659. name_id: prescription.advices[b].drug.manufacturer,
  660. fulamt_ownpay_amt: prescription.advices[b].order_info.fulamt_ownpay_amt,
  661. overlmt_amt: prescription.advices[b].order_info.overlmt_amt,
  662. preselfpay_amt: prescription.advices[b].order_info.preselfpay_amt,
  663. inscp_scp_amt: prescription.advices[b].order_info.inscp_scp_amt
  664. }
  665. tempAdvice.push(obj)
  666. }
  667. for (let b = 0; b < prescription.project.length; b++) {
  668. let obj = {
  669. id: prescription.project[b].id,
  670. project_id: prescription.project[b].project.id,
  671. single_dose: prescription.project[b].single_dose,
  672. delivery_way: prescription.project[b].delivery_way,
  673. execution_frequency: prescription.project[b].execution_frequency,
  674. number_days: prescription.project[b].day,
  675. total: prescription.project[b].count.toString(),
  676. price: prescription.project[b].price,
  677. remark: prescription.project[b].remark,
  678. // medical_code: prescription.project[b].project.medical_code,
  679. unit: prescription.project[b].unit,
  680. type: prescription.project[b].type,
  681. det_item_fee_sumamt: prescription.project[b].order_info.det_item_fee_sumamt,
  682. fulamt_ownpay_amt: prescription.project[b].order_info.fulamt_ownpay_amt,
  683. overlmt_amt: prescription.project[b].order_info.overlmt_amt,
  684. preselfpay_amt: prescription.project[b].order_info.preselfpay_amt,
  685. inscp_scp_amt: prescription.project[b].order_info.inscp_scp_amt
  686. }
  687. if (prescription.project[b].type == 2) {
  688. obj['statistical_classification'] = prescription.project[b].team.project_team
  689. obj['medical_code'] = prescription.project[b].project.medical_code
  690. obj['project_name'] = prescription.project[b].project.project_name
  691. obj['spec'] = ''
  692. obj['name_id'] = 0
  693. } else if (prescription.project[b].type == 3) {
  694. obj['statistical_classification'] = prescription.project[b].team.project_team
  695. obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
  696. obj['project_name'] = prescription.project[b].good_info.good_name
  697. obj['spec'] = prescription.project[b].good_info.specification_name
  698. obj['name_id'] = prescription.project[b].good_info.manufacturer
  699. }
  700. tempProject.push(obj)
  701. }
  702. let index = i + 1
  703. let obj = {
  704. id: prescription.id,
  705. name: '处方' + index,
  706. advices: tempAdvice,
  707. project: tempProject,
  708. type: prescription.type,
  709. order_status: prescription.order_status
  710. }
  711. this.prescriptions.push(obj)
  712. }
  713. this.curPrescriptions = this.prescriptions[0]
  714. this.total = 0
  715. this.total = this.getTotalOne()
  716. this.month_total = 0
  717. this.month_total = this.getMonthTotalOne()
  718. }
  719. })
  720. },
  721. getInitData() {
  722. getInitData().then(response => {
  723. if (response.data.state == 0) {
  724. this.$message.error(response.data.msg)
  725. return false
  726. } else {
  727. this.doctors = response.data.data.doctors
  728. this.department = response.data.data.department
  729. this.sick = response.data.data.sick
  730. this.diagnoses = response.data.data.diagnose
  731. this.manufacturers = response.data.data.manufacturers
  732. }
  733. })
  734. },
  735. getDayPatientList() {
  736. let params = {
  737. 'record_date': this.record_date
  738. }
  739. GetHisHospitalChargePatientList(params).then(response => {
  740. if (response.data.state == 0) {
  741. this.$message.error(response.data.msg)
  742. return false
  743. } else {
  744. if (response.data.data.list == null) {
  745. response.data.data.list = []
  746. }
  747. if (response.data.data.list_two == null) {
  748. response.data.data.list_two = []
  749. }
  750. this.patientTableData = []
  751. this.all_table_data = []
  752. this.hisPatientDatas = []
  753. this.all_charge_table_data = []
  754. let one_count = 0
  755. let two_count = 0
  756. let three_count = 0
  757. for (let i = 0; i < response.data.data.list.length; i++) {
  758. this.all_table_data.push(response.data.data.list[i])
  759. if (response.data.data.list[i].order.order_status == 0 || response.data.data.list[i].order.order_status == 1 || response.data.data.list[i].order.order_status == 3) {
  760. one_count = one_count + 1
  761. }
  762. if (response.data.data.list[i].order.order_status == 2) {
  763. two_count = two_count + 1
  764. }
  765. // if (response.data.data.list[i].order.order_status == 3) {
  766. // three_count = three_count + 1
  767. // }
  768. }
  769. this.hisPatientDatas = response.data.data.list_two
  770. this.cal_one = one_count
  771. this.cal_two = response.data.data.charge_list.length
  772. this.cal_three = three_count
  773. this.current_index = 0
  774. switch (this.radio) {
  775. case 1:
  776. this.patientTableData = []
  777. for (let i = 0; i < this.all_table_data.length; i++) {
  778. if (this.all_table_data[i].order.order_status == 0 || this.all_table_data[i].order.order_status == 1) {
  779. this.patientTableData.push(this.all_table_data[i])
  780. }
  781. }
  782. if (this.patientTableData.length > 0) {
  783. for (let i = 0; i < this.patientTableData.length; i++) {
  784. if (this.patientTableData[i].patient_id == this.patientInfo.id) {
  785. this.$refs.tab.setCurrentRow(this.patientTableData[i])
  786. this.getPatientInformation(this.patientTableData[i].patient_id, this.patientTableData[i].order.number, this.patientTableData[i].id)
  787. }
  788. }
  789. }
  790. break
  791. case 2:
  792. this.chargePatientTableData = []
  793. for (let i = 0; i < response.data.data.charge_list.length; i++) {
  794. let obj = {
  795. name: response.data.data.charge_list[i].patient.name,
  796. id: response.data.data.charge_list[i].patient.id,
  797. number: response.data.data.charge_list[i].number,
  798. his_patient_id: response.data.data.charge_list[i].his_patient.id,
  799. his_number: response.data.data.charge_list[i].mdtrt_id
  800. }
  801. this.chargePatientTableData.push(obj)
  802. }
  803. this.all_charge_table_data = this.chargePatientTableData
  804. if (this.chargePatientTableData.length > 0) {
  805. for (let i = 0; i < this.chargePatientTableData.length; i++) {
  806. if (this.chargePatientTableData[i].id == this.patientInfo.id) {
  807. this.$refs.tab.setCurrentRow(this.chargePatientTableData[i])
  808. this.getPatientInformation(this.chargePatientTableData[i].id, this.chargePatientTableData[i].number, this.chargePatientTableData[i].his_patient_id)
  809. }
  810. }
  811. }
  812. break
  813. // case 3:
  814. // this.patientTableData = []
  815. //
  816. // for (let i = 0; i < this.all_table_data.length; i++) {
  817. //
  818. // if (this.all_table_data[i].his_patient.order.order_status == 3) {
  819. // this.patientTableData.push(this.all_table_data[i])
  820. // }
  821. //
  822. // }
  823. // break
  824. // case 4:
  825. // this.patientTableData = []
  826. // this.patientTableData = this.all_table_data
  827. // break
  828. }
  829. }
  830. })
  831. },
  832. getMonthPatientList() {
  833. let params = {
  834. 'record_date': this.record_date
  835. }
  836. GetHisHospitalChargePatientList(params).then(response => {
  837. if (response.data.state == 0) {
  838. this.$message.error(response.data.msg)
  839. return false
  840. } else {
  841. if (response.data.data.list == null) {
  842. response.data.data.list = []
  843. }
  844. if (response.data.data.list_two == null) {
  845. response.data.data.list_two = []
  846. }
  847. this.patientTableData = []
  848. this.all_table_data = []
  849. this.hisPatientDatas = []
  850. let one_count = 0
  851. let two_count = 0
  852. let three_count = 0
  853. for (let i = 0; i < response.data.data.list_two.length; i++) {
  854. this.hisPatientDatas.push(response.data.data.list_two[i])
  855. if (response.data.data.list_two[i].order.order_status == 0 || response.data.data.list_two[i].order.order_status == 1 || response.data.data.list_two[i].order.order_status == 3) {
  856. one_count = one_count + 1
  857. }
  858. if (response.data.data.list_two[i].order.order_status == 2) {
  859. two_count = two_count + 1
  860. }
  861. // if (response.data.data.list_two[i].order.order_status == 3) {
  862. // three_count = three_count + 1
  863. // }
  864. }
  865. this.cal_one = one_count
  866. this.cal_two = response.data.data.charge_list.length
  867. // this.all_charge_table_data = response.data.data.charge_list
  868. this.cal_three = three_count
  869. this.current_index = 0
  870. switch (this.radio) {
  871. case 1:
  872. this.patientTableData = []
  873. for (let i = 0; i < this.hisPatientDatas.length; i++) {
  874. if (this.hisPatientDatas[i].order.order_status == 0 || this.hisPatientDatas[i].order.order_status == 1 || this.hisPatientDatas[i].order.order_status == 3) {
  875. this.patientTableData.push(this.hisPatientDatas[i])
  876. }
  877. }
  878. if (this.patientTableData.length > 0) {
  879. for (let i = 0; i < this.patientTableData.length; i++) {
  880. if (this.patientTableData[i].patient_id == this.patientInfo.id) {
  881. this.$refs.tab.setCurrentRow(this.patientTableData[i])
  882. this.getPatientInformation(this.patientTableData[i].patient_id, this.patientTableData[i].order.number, this.patientTableData[i].id)
  883. }
  884. }
  885. }
  886. break
  887. case 2:
  888. this.chargePatientTableData = []
  889. for (let i = 0; i < response.data.data.charge_list.length; i++) {
  890. let obj = {
  891. name: response.data.data.charge_list[i].patient.name,
  892. id: response.data.data.charge_list[i].patient.id,
  893. number: response.data.data.charge_list[i].number,
  894. his_patient_id: response.data.data.charge_list[i].his_patient.id,
  895. his_number: response.data.data.charge_list[i].mdtrt_id
  896. }
  897. this.chargePatientTableData.push(obj)
  898. }
  899. this.all_charge_table_data = this.chargePatientTableData
  900. for (let i = 0; i < this.chargePatientTableData.length; i++) {
  901. if (this.patientInfo.id == this.chargePatientTableData[i].id) {
  902. this.current_index = i
  903. this.$refs.tab.setCurrentRow(this.chargePatientTableData[i])
  904. this.getPatientInformation(this.chargePatientTableData[i].id, this.chargePatientTableData[i].number, this.chargePatientTableData[i].his_patient_id)
  905. }
  906. }
  907. break
  908. // case 3:
  909. // this.patientTableData = []
  910. // for (let i = 0; i < this.hisPatientDatas.length; i++) {
  911. // if (this.hisPatientDatas[i].order.order_status == 3) {
  912. // this.patientTableData.push(this.hisPatientDatas[i])
  913. // }
  914. // }
  915. // break
  916. case 4:
  917. this.patientTableData = []
  918. this.patientTableData = this.hisPatientDatas
  919. break
  920. }
  921. }
  922. })
  923. },
  924. handleClick() {
  925. // this.getPatientList()
  926. // if (this.activeName == 'first') {
  927. // // this.patientTableData = this.all_table_data
  928. // this.getDayPatientList()
  929. //
  930. // } else if (this.activeName == 'second') {
  931. // this.getMonthPatientList()
  932. // // this.getPatientList()
  933. //
  934. // // if (this.patientTableData.length > 0) {
  935. // // this.$refs.tab.setCurrentRow(this.patientTableData[0])
  936. // // this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].order.number)
  937. // // }
  938. //
  939. // } else {
  940. //
  941. // console.log(this.settle_prescriptions)
  942. // }
  943. },
  944. searchAction() {
  945. if (this.search_input.length == 0) {
  946. switch (this.radio) {
  947. case 1:
  948. this.patientTableData = this.all_table_data
  949. break
  950. case 2:
  951. this.chargePatientTableData = this.all_charge_table_data
  952. break
  953. }
  954. } else {
  955. switch (this.radio) {
  956. case 1:
  957. let arr3 = []
  958. for (let i = 0; i < this.all_table_data.length; i++) {
  959. console.log(this.all_table_data[i])
  960. console.log(this.all_table_data[i].name)
  961. console.log(this.all_table_data[i].his_number)
  962. if (this.all_table_data[i].name.indexOf(this.search_input) != -1) {
  963. arr3 = arr3.concat(this.all_table_data[i])
  964. }
  965. }
  966. this.patientTableData = arr3
  967. break
  968. case 2:
  969. let arr2 = []
  970. for (let i = 0; i < this.all_charge_table_data.length; i++) {
  971. console.log(this.all_charge_table_data[i].name)
  972. console.log(this.all_charge_table_data[i].his_number)
  973. if (this.all_charge_table_data[i].name.indexOf(this.search_input) != -1 ) {
  974. arr2 = arr2.concat(this.all_charge_table_data[i])
  975. }
  976. }
  977. this.chargePatientTableData = arr2
  978. break
  979. }
  980. }
  981. },
  982. tabclickEventTwo(val) {
  983. for (let i = 0; i < this.month_prescriptions.length; i++) {
  984. if (this.month_prescriptions[i].name == val.name) {
  985. this.curMonthPrescriptions = {}
  986. var temp = this.deepClone(this.month_prescriptions[i])
  987. this.curMonthPrescriptions = temp
  988. }
  989. }
  990. this.prescription_id = this.month_prescriptions.id
  991. this.month_total = 0
  992. this.month_total = this.getMonthTotalOne()
  993. },
  994. tabclickEventThree(val) {
  995. for (let i = 0; i < this.settle_prescriptions.length; i++) {
  996. if (this.settle_prescriptions[i].name == val.name) {
  997. this.curSettlePrescriptions = {}
  998. var temp = this.deepClone(this.settle_prescriptions[i])
  999. this.curSettlePrescriptions = temp
  1000. }
  1001. }
  1002. this.prescription_id = this.settle_prescriptions.id
  1003. this.settle_total = 0
  1004. this.settle_total = this.getSettleTotalOne()
  1005. },
  1006. tabclickEvent(val) {
  1007. console.log('val', val.name)
  1008. for (let i = 0; i < this.prescriptions.length; i++) {
  1009. if (this.prescriptions[i].name == val.name) {
  1010. this.curPrescriptions = {}
  1011. var temp = this.deepClone(this.prescriptions[i])
  1012. this.curPrescriptions = temp
  1013. }
  1014. }
  1015. console.log('9999', this.curPrescriptions)
  1016. this.prescription_id = this.curPrescriptions.id
  1017. this.total = 0
  1018. this.total = this.getTotalOne()
  1019. },
  1020. deepClone(source) {
  1021. if (!source && typeof source !== 'object') {
  1022. throw new Error('error arguments', 'shallowClone')
  1023. }
  1024. const targetObj = source.constructor === Array ? [] : {}
  1025. Object.keys(source).forEach((keys) => {
  1026. if (source[keys] && typeof source[keys] === 'object') {
  1027. targetObj[keys] = this.deepClone(source[keys])
  1028. } else {
  1029. targetObj[keys] = source[keys]
  1030. }
  1031. })
  1032. return targetObj
  1033. },
  1034. getTotalOne() {
  1035. var total = 0
  1036. if (this.curPrescriptions.type == 1) {
  1037. if (this.curPrescriptions.advices != null) {
  1038. for (let a = 0; a < this.curPrescriptions.advices.length; a++) {
  1039. total = parseFloat(total) + parseFloat(this.curPrescriptions.advices[a].retail_price * this.curPrescriptions.advices[a].prescribing_number)
  1040. }
  1041. }
  1042. } else {
  1043. if (this.curPrescriptions.project != null) {
  1044. for (let b = 0; b < this.curPrescriptions.project.length; b++) {
  1045. total = parseFloat(total) + parseFloat(this.curPrescriptions.project[b].price * this.curPrescriptions.project[b].total)
  1046. }
  1047. }
  1048. }
  1049. return total.toFixed(2)
  1050. },
  1051. getMonthTotalOne() {
  1052. var total = 0
  1053. if (this.curMonthPrescriptions.type == 1) {
  1054. if (this.curMonthPrescriptions.advices != null) {
  1055. for (let a = 0; a < this.curMonthPrescriptions.advices.length; a++) {
  1056. total = parseFloat(total) + parseFloat(this.curMonthPrescriptions.advices[a].retail_price * this.curMonthPrescriptions.advices[a].prescribing_number)
  1057. }
  1058. }
  1059. } else {
  1060. if (this.curMonthPrescriptions.project != null) {
  1061. for (let b = 0; b < this.curMonthPrescriptions.project.length; b++) {
  1062. total = parseFloat(total) + parseFloat(this.curMonthPrescriptions.project[b].price * this.curMonthPrescriptions.project[b].total)
  1063. }
  1064. }
  1065. }
  1066. return total.toFixed(2)
  1067. },
  1068. getSettleTotalOne() {
  1069. var total = 0
  1070. if (this.curSettlePrescriptions.type == 1) {
  1071. if (this.curSettlePrescriptions.advices != null) {
  1072. for (let a = 0; a < this.curSettlePrescriptions.advices.length; a++) {
  1073. total = parseFloat(total) + parseFloat(this.curSettlePrescriptions.advices[a].retail_price * this.curSettlePrescriptions.advices[a].prescribing_number)
  1074. }
  1075. }
  1076. } else {
  1077. if (this.curSettlePrescriptions.project != null) {
  1078. for (let b = 0; b < this.curSettlePrescriptions.project.length; b++) {
  1079. total = parseFloat(total) + parseFloat(this.curSettlePrescriptions.project[b].price * this.curSettlePrescriptions.project[b].total)
  1080. }
  1081. }
  1082. }
  1083. return total.toFixed(2)
  1084. },
  1085. getSettleTotal() {
  1086. var total = 0
  1087. for (let i = 0; i < this.settle_prescriptions.length; i++) {
  1088. if (this.settle_prescriptions[i].advices != null) {
  1089. for (let a = 0; a < this.settle_prescriptions[i].advices.length; a++) {
  1090. total = parseFloat(total) + parseFloat(this.settle_prescriptions[i].advices[a].retail_price * this.settle_prescriptions[i].advices[a].prescribing_number)
  1091. }
  1092. }
  1093. if (this.settle_prescriptions[i].project != null) {
  1094. for (let b = 0; b < this.settle_prescriptions[i].project.length; b++) {
  1095. total = parseFloat(total) + parseFloat(this.settle_prescriptions[i].project[b].price * this.settle_prescriptions[i].project[b].total)
  1096. }
  1097. }
  1098. }
  1099. return total.toFixed(2)
  1100. },
  1101. getTotal() {
  1102. var total = 0
  1103. for (let i = 0; i < this.prescriptions.length; i++) {
  1104. if (this.prescriptions[i].advices != null) {
  1105. for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
  1106. total = parseFloat(total) + parseFloat(this.prescriptions[i].advices[a].retail_price * this.prescriptions[i].advices[a].prescribing_number)
  1107. }
  1108. }
  1109. if (this.prescriptions[i].project != null) {
  1110. for (let b = 0; b < this.prescriptions[i].project.length; b++) {
  1111. total = parseFloat(total) + parseFloat(this.prescriptions[i].project[b].price * this.prescriptions[i].project[b].total)
  1112. }
  1113. }
  1114. }
  1115. return total.toFixed(2)
  1116. },
  1117. getTotalTwo() {
  1118. var total = 0
  1119. for (let i = 0; i < this.month_prescriptions.length; i++) {
  1120. if (this.month_prescriptions[i].advices != null) {
  1121. for (let a = 0; a < this.month_prescriptions[i].advices.length; a++) {
  1122. total = parseFloat(total) + parseFloat(this.month_prescriptions[i].advices[a].retail_price * this.month_prescriptions[i].advices[a].prescribing_number)
  1123. }
  1124. }
  1125. if (this.month_prescriptions[i].project != null) {
  1126. for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
  1127. total = parseFloat(total) + parseFloat(this.month_prescriptions[i].project[a].price * this.month_prescriptions[i].project[a].total)
  1128. }
  1129. }
  1130. }
  1131. return total.toFixed(2)
  1132. },
  1133. moreState(tab, event) {
  1134. if (tab == 'more') {
  1135. return false
  1136. }
  1137. },
  1138. formatJson(filterVal, jsonData) {
  1139. return jsonData.map(v => filterVal.map(j => v[j]))
  1140. },
  1141. open(index) {
  1142. if (index == 40) {
  1143. var form = {}
  1144. form['in_hospital_id'] = this.hisPatientInfo.id
  1145. form['patient_id'] = this.patientInfo.id
  1146. form['admin_user_id'] = this.$store.getters.xt_user.user.id
  1147. form['order_id'] = this.order.id
  1148. form['record_time'] = this.record_date
  1149. if (this.hisPatientInfo.balance_accounts_type != 2) {
  1150. var that = this
  1151. axios.get('http://127.0.0.1:9532/zh/api/presettle/get', {
  1152. params: form,
  1153. headers: {
  1154. 'Permission': 5
  1155. }
  1156. })
  1157. .then(function(response) {
  1158. if (response.data.state == 0) {
  1159. that.$message.error(response.data.msg)
  1160. return false
  1161. } else {
  1162. if (response.data.data.failed_code == -10) {
  1163. that.$confirm(response.data.data.msg, '医保错误信息', {
  1164. confirmButtonText: '确 定',
  1165. type: 'warning'
  1166. }).then(() => {
  1167. }).catch(() => {
  1168. })
  1169. } else {
  1170. if(response.data.data.order_way == 2){
  1171. that.$message({ message: '预结算成功', type: 'success', duration: 5000 })
  1172. var message = ""
  1173. var order = response.data.data.order
  1174. message = "总费用:" + order.medfee_sumamt+"元" + "\n"
  1175. + "基金支付总额:"+ order.fund_pay_sumamt+"元" + "\n"
  1176. + "基本医疗保险统筹基金支出:"+ order.hifp_pay+"元" + "\n"
  1177. + "医疗救助基金支出:" + order.maf_pay + "元"+ "\n"
  1178. + "个人账户支付金额" + order.acct_pay + "元" + "\n"
  1179. +"个人支付金额:" + order.psn_cash_pay + "元" +"\n"
  1180. + "个人账户金额:" + order.balc + "元"
  1181. that.$confirm(message, '预结算信息', {
  1182. confirmButtonText: '确 定',
  1183. type: 'info'
  1184. }).then(() => {
  1185. }).catch(() => {
  1186. })
  1187. }else{
  1188. that.changeRadioAndPatient(1)
  1189. that.$message({ message: '预结算成功', type: 'success', duration: 5000 })
  1190. }
  1191. }
  1192. }
  1193. })
  1194. .catch(function(error) {
  1195. })
  1196. }
  1197. }
  1198. if (index == 200) {
  1199. getBaiLinRecord().then(response => {
  1200. if (response.data.state == 0) {
  1201. this.$message.error(response.data.msg)
  1202. return false
  1203. } else {
  1204. let list = []
  1205. for (let b = 0; b < response.data.data.list.length; b++) {
  1206. let time = ''
  1207. if (response.data.data.list[b].setl_time != '') {
  1208. time = response.data.data.list[b].setl_time
  1209. } else {
  1210. time = this.getTimes(response.data.data.list[b].settle_accounts_date)
  1211. }
  1212. let obj = {
  1213. '就诊id': response.data.data.list[b].mdtrt_id,
  1214. '结算id': response.data.data.list[b].setl_id,
  1215. '姓名': response.data.data.list[b].patient.name,
  1216. '证件号码': response.data.data.list[b].patient.id_card_no,
  1217. '开始时间': this.getTimes(response.data.data.list[b].settle_accounts_date),
  1218. '结束时间': this.getTimes(response.data.data.list[b].settle_accounts_date),
  1219. '费用合计': response.data.data.list[b].medfee_sumamt,
  1220. '记账合计': response.data.data.list[b].fund_pay_sumamt,
  1221. '现金支付': response.data.data.list[b].psn_cash_pay,
  1222. '统筹支出': response.data.data.list[b].hifp_pay,
  1223. '大病': response.data.data.list[b].hifp_pay,
  1224. '大额': response.data.data.list[b].hifob_pay,
  1225. '医疗救助基金': response.data.data.list[b].maf_pay,
  1226. '先行自付金额': response.data.data.list[b].preselfpay_amt,
  1227. '超限价自费费用': response.data.data.list[b].overlmt_self_pay,
  1228. '全自费金额': response.data.data.list[b].fulamt_ownpay_amt,
  1229. '结算时间': time
  1230. }
  1231. list.push(obj)
  1232. }
  1233. import('@/vendor/Export2Excel').then(excel => {
  1234. const tHeader = ['就诊id', '结算id', '姓名', '证件号码', '开始时间', '结束时间', '费用合计', '记账合计', '现金支付', '统筹支出', '大病', '大额', '医疗救助基金', '先行自付金额', '超限价自费费用', '全自费金额', '结算时间']
  1235. const filterVal = ['就诊id', '结算id', '姓名', '证件号码', '开始时间', '结束时间', '费用合计', '记账合计', '现金支付', '统筹支出', '大病', '大额', '医疗救助基金', '先行自付金额', '超限价自费费用', '全自费金额', '结算时间']
  1236. const data = this.formatJson(filterVal, list)
  1237. excel.export_json_to_excel({
  1238. header: tHeader,
  1239. data,
  1240. filename: '核酸'
  1241. })
  1242. })
  1243. }
  1244. })
  1245. }
  1246. if (index == 2) { //出院
  1247. if (this.patientInfo.id == 0) {
  1248. this.$message({ message: '该选择要出院的患者', type: 'error' })
  1249. return
  1250. }
  1251. var that = this
  1252. this.$confirm('是否出院', '出院', {
  1253. confirmButtonText: '确 定',
  1254. cancelButtonText: '取 消',
  1255. type: 'warning'
  1256. }).then(() => {
  1257. this.dialogVisible = true
  1258. }).catch(() => {
  1259. })
  1260. } else if (index == 3) {
  1261. if (this.patientInfo.id == 0) {
  1262. this.$message({ message: '该选择要收费的患者', type: 'error' })
  1263. return
  1264. }
  1265. let ids = []
  1266. // if (this.activeName == 'first') {
  1267. for (let i = 0; i < this.settle_prescriptions.length; i++) {
  1268. for (let a = 0; a < this.settle_prescriptions[i].advices.length; a++) {
  1269. ids.push(this.settle_prescriptions[i].advices[a].id)
  1270. }
  1271. for (let a = 0; a < this.settle_prescriptions[i].project.length; a++) {
  1272. ids.push(this.settle_prescriptions[i].project[a].id)
  1273. }
  1274. }
  1275. if (ids.length == 0) {
  1276. this.$message.error('请先到医生工作站开处方再来结算')
  1277. return
  1278. }
  1279. this.$refs.charge.show(this.getSettleTotal(),this.order)
  1280. } else if (index == 4) {
  1281. if (this.hisPatientInfo.balance_accounts_type == 2) {
  1282. this.$confirm('是否退费', '退费', {
  1283. confirmButtonText: '确 定',
  1284. cancelButtonText: '取 消',
  1285. type: 'warning'
  1286. }).then(() => {
  1287. let params = {
  1288. 'order_id': this.order.id,
  1289. 'admin_user_id': this.$store.getters.xt_user.user.id
  1290. }
  1291. HopitalunRefund(params).then(response => {
  1292. if (response.data.state == 0) {
  1293. this.$message.error(response.data.msg)
  1294. return false
  1295. } else {
  1296. this.$message.success('退费成功')
  1297. this.changeRadioAndPatient(1)
  1298. this.loadingtwo = false
  1299. }
  1300. })
  1301. }).catch(() => {
  1302. })
  1303. } else {
  1304. var that = this
  1305. this.$confirm('是否退费', '退费', {
  1306. confirmButtonText: '确 定',
  1307. cancelButtonText: '取 消',
  1308. type: 'warning'
  1309. }).then(() => {
  1310. let params = {
  1311. 'order_id': this.order.id,
  1312. 'admin_user_id': this.$store.getters.xt_user.user.id
  1313. }
  1314. axios.get('http://127.0.0.1:9532/zh/api/refund', {
  1315. params: params
  1316. })
  1317. .then(function(response) {
  1318. if (response.data.state == 0) {
  1319. that.$message.error(response.data.msg)
  1320. that.loadingtwo = false
  1321. return false
  1322. } else {
  1323. if (response.data.data.failed_code == -10) {
  1324. // that.$message.error(response.data.data.msg)
  1325. that.$confirm(response.data.data.msg, '医保错误信息', {
  1326. confirmButtonText: '确 定',
  1327. type: 'warning'
  1328. }).then(() => {
  1329. }).catch(() => {
  1330. })
  1331. } else {
  1332. that.changeRadioAndPatient(1)
  1333. that.$message({ message: '退费成功', type: 'success', duration: 5000 })
  1334. that.loadingtwo = false
  1335. }
  1336. }
  1337. })
  1338. .catch(function(error) {
  1339. })
  1340. }).catch(() => {
  1341. })
  1342. }
  1343. } else if (index == 5) {
  1344. this.statementVisible = true
  1345. let obj = {
  1346. order_id: this.order.id
  1347. }
  1348. this.orderObj = obj
  1349. // this.$refs.print.getInfo(this.order.id)
  1350. } else if (index == 6) {
  1351. if (this.patientInfo.id == 0) {
  1352. this.$message({ message: '该选择要撤销出院的患者', type: 'error' })
  1353. return
  1354. }
  1355. if (this.hisPatientInfo.balance_accounts_type == 2) {
  1356. var that = this
  1357. this.$confirm('是否撤销出院', '撤销出院', {
  1358. confirmButtonText: '确 定',
  1359. cancelButtonText: '取 消',
  1360. type: 'warning'
  1361. }).then(() => {
  1362. let params = {
  1363. 'id': that.hisPatientInfo.id,
  1364. 'admin_user_id': this.$store.getters.xt_user.user.id
  1365. }
  1366. Outhopitaluncheck(params).then(response => {
  1367. if (response.data.state == 0) {
  1368. this.$message.error(response.data.msg)
  1369. return false
  1370. } else {
  1371. this.$message.success('撤销出院成功')
  1372. this.changeRadioAndPatient(1)
  1373. }
  1374. })
  1375. }).catch(() => {
  1376. })
  1377. } else {
  1378. var that = this
  1379. this.$confirm('是否撤销出院', '撤销出院', {
  1380. confirmButtonText: '确 定',
  1381. cancelButtonText: '取 消',
  1382. type: 'warning'
  1383. }).then(() => {
  1384. let params = {
  1385. 'id': that.hisPatientInfo.id,
  1386. 'admin_user_id': this.$store.getters.xt_user.user.id
  1387. }
  1388. axios.get('http://127.0.0.1:9532/zh/api/outhopitaluncheck/get', {
  1389. params: params
  1390. })
  1391. .then(function(response) {
  1392. if (response.data.state == 0) {
  1393. that.$message.error(response.data.msg)
  1394. return false
  1395. } else {
  1396. if (response.data.data.failed_code == -10) {
  1397. // that.$message.error(response.data.data.msg)
  1398. that.$confirm(response.data.data.msg, '医保错误信息', {
  1399. confirmButtonText: '确 定',
  1400. type: 'warning'
  1401. }).then(() => {
  1402. }).catch(() => {
  1403. })
  1404. } else {
  1405. that.changeRadioAndPatient(1)
  1406. that.$message({ message: '撤销出院成功', type: 'success', duration: 5000 })
  1407. }
  1408. }
  1409. })
  1410. .catch(function(error) {
  1411. })
  1412. }).catch(() => {
  1413. })
  1414. }
  1415. } else if (index == 7) {
  1416. if (this.patientInfo.id == 0) {
  1417. this.$message({ message: '该选择要撤销入院的患者', type: 'error' })
  1418. return
  1419. }
  1420. if (this.hisPatientInfo.balance_accounts_type == 2) {
  1421. var that = this
  1422. this.$confirm('是否撤销入院', '撤销入院', {
  1423. confirmButtonText: '确 定',
  1424. cancelButtonText: '取 消',
  1425. type: 'warning'
  1426. }).then(() => {
  1427. let params = {
  1428. 'id': that.hisPatientInfo.id,
  1429. 'admin_user_id': this.$store.getters.xt_user.user.id
  1430. }
  1431. Inthopitaluncheck(params).then(response => {
  1432. if (response.data.state == 0) {
  1433. this.$message.error(response.data.msg)
  1434. return false
  1435. } else {
  1436. this.$message.success('撤销入院成功')
  1437. this.changeRadioAndPatient(1)
  1438. }
  1439. })
  1440. }).catch(() => {
  1441. })
  1442. } else {
  1443. var that = this
  1444. this.$confirm('是否撤销入院', '撤销入院', {
  1445. confirmButtonText: '确 定',
  1446. cancelButtonText: '取 消',
  1447. type: 'warning'
  1448. }).then(() => {
  1449. let params = {
  1450. 'id': that.hisPatientInfo.id,
  1451. 'admin_user_id': this.$store.getters.xt_user.user.id
  1452. }
  1453. axios.get('http://127.0.0.1:9532/zh/api/inthopitaluncheck/get', {
  1454. params: params
  1455. })
  1456. .then(function(response) {
  1457. if (response.data.state == 0) {
  1458. that.$message.error(response.data.msg)
  1459. return false
  1460. } else {
  1461. if (response.data.data.failed_code == -10) {
  1462. // that.$message.error(response.data.data.msg)
  1463. that.$confirm(response.data.data.msg, '医保错误信息', {
  1464. confirmButtonText: '确 定',
  1465. type: 'warning'
  1466. }).then(() => {
  1467. }).catch(() => {
  1468. })
  1469. } else {
  1470. that.changeRadioAndPatient(1)
  1471. that.$message({ message: '撤销入院成功', type: 'success', duration: 5000 })
  1472. }
  1473. }
  1474. })
  1475. .catch(function(error) {
  1476. })
  1477. }).catch(() => {
  1478. })
  1479. }
  1480. } else if (index == 10) {
  1481. var that = this
  1482. this.$confirm('是否退号', '退号', {
  1483. confirmButtonText: '确 定',
  1484. cancelButtonText: '取 消',
  1485. type: 'warning'
  1486. }).then(() => {
  1487. let params = {
  1488. 'patient_id': this.patientInfo.id,
  1489. 'record_time': this.record_date,
  1490. 'org_id': this.$store.getters.xt_user.org_id,
  1491. 'admin_user_id': this.$store.getters.xt_user.user.id
  1492. }
  1493. axios.get('http://127.0.0.1:9532/api/refundnumber/post', {
  1494. params: params
  1495. })
  1496. .then(function(response) {
  1497. if (response.data.state == 0) {
  1498. that.$message.error(response.data.msg)
  1499. return false
  1500. } else {
  1501. if (response.data.data.failed_code == -10) {
  1502. // that.$message.error(response.data.data.msg)
  1503. that.$confirm(response.data.data.msg, '医保错误信息', {
  1504. confirmButtonText: '确 定',
  1505. type: 'warning'
  1506. }).then(() => {
  1507. }).catch(() => {
  1508. })
  1509. } else {
  1510. that.radio = 1
  1511. that.changeRadioAndPatient(1)
  1512. that.$message({ message: '退号成功', type: 'success', duration: 5000 })
  1513. }
  1514. }
  1515. })
  1516. .catch(function(error) {
  1517. })
  1518. }).catch(() => {
  1519. })
  1520. } else if (index == 11) {
  1521. let params = {
  1522. 'order_id': this.order.id,
  1523. 'number': this.order.number,
  1524. 'patient_id': this.patientInfo.id,
  1525. 'record_time': this.record_date,
  1526. 'org_id': this.$store.getters.xt_user.org_id
  1527. }
  1528. axios.get('http://127.0.0.1:9532/api/refunddetail/post', {
  1529. params: params
  1530. })
  1531. .then(function(response) {
  1532. if (response.data.state == 0) {
  1533. that.$message.error(response.data.msg)
  1534. that.loadingtwo = false
  1535. return false
  1536. } else {
  1537. // that.$message({ message: '退号成功', type: 'success' })
  1538. that.$message({ message: '退明细成功', type: 'success', duration: 5000 })
  1539. that.loadingtwo = false
  1540. }
  1541. })
  1542. .catch(function(error) {
  1543. })
  1544. } else if (index == 12) {
  1545. let params = {
  1546. 'name': '琥珀酸亚铁片',
  1547. 'codg': 'XB03AAH026A001010104942'
  1548. }
  1549. axios.get('http://127.0.0.1:9532/api/code/get', {
  1550. params: params
  1551. })
  1552. .then(function(response) {
  1553. if (response.data.state == 0) {
  1554. that.$message.error(response.data.msg)
  1555. that.loadingtwo = false
  1556. return false
  1557. } else {
  1558. that.loadingtwo = false
  1559. }
  1560. })
  1561. .catch(function(error) {
  1562. })
  1563. } else if (index == 13) {
  1564. let params = {
  1565. 'id': this.patientInfo.id,
  1566. 'record_time': this.record_date
  1567. }
  1568. axios.get('http://127.0.0.1:9532/api/record/put', {
  1569. params: params
  1570. })
  1571. .then(function(response) {
  1572. if (response.data.state == 0) {
  1573. that.$message.error(response.data.msg)
  1574. that.loadingtwo = false
  1575. return false
  1576. } else {
  1577. that.loadingtwo = false
  1578. }
  1579. })
  1580. .catch(function(error) {
  1581. })
  1582. } else if (index == 15) {
  1583. var that = this
  1584. if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
  1585. if (this.diagnosis.length || this.diagnosis == 0) {
  1586. that.$message.error('诊断不能为空,请选择诊断内容')
  1587. return
  1588. }
  1589. if (this.sick_type.length || this.sick_type == 0) {
  1590. that.$message.error('疾病类型不能为空,请选择疾病类型')
  1591. return
  1592. }
  1593. if (this.reg_type.length || this.reg_type == 0) {
  1594. that.$message.error('处方类型不能为空,请选择处方类型')
  1595. return
  1596. }
  1597. let params = {
  1598. 'id': that.patientInfo.id,
  1599. 'record_time': that.record_date,
  1600. 'diagnosis': that.diagnosis,
  1601. 'sick_type': that.sick_type,
  1602. 'reg_type': that.p_type
  1603. }
  1604. this.dise_loading = true
  1605. axios.get('http://127.0.0.1:9532/api/diag/upload', {
  1606. params: params
  1607. })
  1608. .then(function(response) {
  1609. if (response.data.state == 0) {
  1610. that.$message.error(response.data.msg)
  1611. that.dise_loading = false
  1612. return false
  1613. } else {
  1614. that.dise_loading = false
  1615. that.$message.success('上传成功')
  1616. }
  1617. })
  1618. .catch(function(error) {
  1619. })
  1620. }
  1621. } else if (index == 20) {
  1622. if (this.patientInfo.id == 0) {
  1623. this.$message({ message: '该选择要收费的患者', type: 'error' })
  1624. return
  1625. }
  1626. if (this.hisPatientInfo.id == 0) {
  1627. this.$message({ message: '该患者尚未挂号,请先挂号', type: 'error' })
  1628. return
  1629. }
  1630. let ids = []
  1631. for (let i = 0; i < this.settle_prescriptions.length; i++) {
  1632. for (let a = 0; a < this.settle_prescriptions[i].advices.length; a++) {
  1633. ids.push(this.settle_prescriptions[i].advices[a].id)
  1634. }
  1635. for (let a = 0; a < this.settle_prescriptions[i].project.length; a++) {
  1636. ids.push(this.settle_prescriptions[i].project[a].id)
  1637. }
  1638. }
  1639. if (ids.length == 0) {
  1640. this.$message.error('请先到医生工作站开处方再来结算')
  1641. return
  1642. }
  1643. var form = {}
  1644. form['id'] = this.patientInfo.id
  1645. form['record_time'] = this.record_date
  1646. form['admin_user_id'] = this.$store.getters.xt_user.user.id
  1647. form['org_id'] = this.$store.getters.xt_user.org_id
  1648. // if (this.activeName == 'first') {
  1649. // form['settle_accounts_type'] = 1
  1650. //
  1651. // } else {
  1652. // form['start_time'] = this.other_start_time
  1653. // form['end_time'] = this.other_end_time
  1654. // form['settle_accounts_type'] = 2
  1655. //
  1656. // }
  1657. this.loadingtwo = true
  1658. if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
  1659. var that = this
  1660. axios.get('http://127.0.0.1:9532/api/pre_upload/get', {
  1661. params: form
  1662. })
  1663. .then(function(response) {
  1664. if (response.data.state == 0) {
  1665. that.$message.error(response.data.msg)
  1666. that.loadingtwo = false
  1667. that.$refs.charge.hide()
  1668. return false
  1669. } else {
  1670. that.loadingtwo = false
  1671. that.state = '预结算'
  1672. that.$message({ message: '预结算成功', type: 'success' })
  1673. }
  1674. })
  1675. .catch(function(error) {
  1676. })
  1677. } else {
  1678. }
  1679. } else if (index == 21) {
  1680. if (this.patientInfo.id == 0) {
  1681. this.$message({ message: '该选择要收费的患者', type: 'error' })
  1682. return
  1683. }
  1684. if (this.hisPatientInfo.id == 0) {
  1685. this.$message({ message: '该患者尚未挂号,请先挂号', type: 'error' })
  1686. return
  1687. }
  1688. let ids = []
  1689. if (this.activeName == 'first') {
  1690. for (let i = 0; i < this.prescriptions.length; i++) {
  1691. for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
  1692. ids.push(this.prescriptions[i].advices[a].id)
  1693. }
  1694. for (let a = 0; a < this.prescriptions[i].project.length; a++) {
  1695. ids.push(this.prescriptions[i].project[a].id)
  1696. }
  1697. }
  1698. if (ids.length == 0) {
  1699. this.$message.error('请先到医生工作站开处方再来结算')
  1700. return
  1701. }
  1702. } else {
  1703. for (let i = 0; i < this.month_prescriptions.length; i++) {
  1704. for (let a = 0; a < this.month_prescriptions[i].advices.length; a++) {
  1705. ids.push(this.month_prescriptions[i].advices[a].id)
  1706. }
  1707. for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
  1708. ids.push(this.month_prescriptions[i].project[a].id)
  1709. }
  1710. }
  1711. if (ids.length == 0) {
  1712. this.$message.error('请先到医生工作站开处方再来结算')
  1713. return
  1714. }
  1715. }
  1716. if (this.activeName == 'first') {
  1717. this.$refs.charge.show(this.getTotal())
  1718. } else {
  1719. this.$refs.charge.show(this.getTotalTwo())
  1720. }
  1721. } else if (index == 8) {
  1722. var that = this
  1723. let params = {
  1724. 'in_hospital_id': that.hisPatientInfo.id,
  1725. 'id': that.patientInfo.id,
  1726. 'admin_user_id': that.$store.getters.xt_user.user.id,
  1727. 'record_time': that.record_date
  1728. }
  1729. if (this.activeName == 'first') {
  1730. params['settle_accounts_type'] = 1
  1731. } else {
  1732. params['start_time'] = that.other_start_time
  1733. params['end_time'] = that.other_end_time
  1734. params['settle_accounts_type'] = 2
  1735. }
  1736. axios.get('http://127.0.0.1:9532/zh/api/uploadinfo/get', {
  1737. params: params
  1738. })
  1739. .then(function(response) {
  1740. if (response.data.state == 0) {
  1741. that.$message.error(response.data.msg)
  1742. return false
  1743. } else {
  1744. if (response.data.data.failed_code == -10) {
  1745. // that.$message.error(response.data.data.msg)
  1746. that.$confirm(response.data.data.msg, '医保错误信息', {
  1747. confirmButtonText: '确 定',
  1748. type: 'warning'
  1749. }).then(() => {
  1750. }).catch(() => {
  1751. })
  1752. } else {
  1753. that.$message.success('上传明细成功')
  1754. that.changeRadioAndPatient(1)
  1755. }
  1756. }
  1757. })
  1758. .catch(function(error) {
  1759. })
  1760. } else if (index == 9) {
  1761. let settle_accounts_type = ''
  1762. if (this.activeName == 'first') {
  1763. settle_accounts_type = 1
  1764. } else {
  1765. settle_accounts_type = 2
  1766. }
  1767. var that = this
  1768. this.$confirm('是否撤销明细', '撤销明细', {
  1769. confirmButtonText: '确 定',
  1770. cancelButtonText: '取 消',
  1771. type: 'warning'
  1772. }).then(() => {
  1773. let params = {
  1774. 'settle_accounts_type': settle_accounts_type,
  1775. 'patient_id': that.patientInfo.id,
  1776. 'his_patient_id': that.hisPatientInfo.id,
  1777. 'record_time': that.record_date,
  1778. 'order_id': that.order.id,
  1779. 'admin_user_id': that.$store.getters.xt_user.user.id
  1780. }
  1781. axios.get('http://127.0.0.1:9532/zh/api/refunddetail', {
  1782. params: params
  1783. })
  1784. .then(function(response) {
  1785. if (response.data.state == 0) {
  1786. that.$message.error(response.data.msg)
  1787. that.loadingtwo = false
  1788. return false
  1789. } else {
  1790. if (response.data.data.failed_code == -10) {
  1791. // that.$message.error(response.data.data.msg)
  1792. that.$confirm(response.data.data.msg, '医保错误信息', {
  1793. confirmButtonText: '确 定',
  1794. type: 'warning'
  1795. }).then(() => {
  1796. }).catch(() => {
  1797. })
  1798. } else {
  1799. that.$message.success('撤销明细成功')
  1800. that.changeRadioAndPatient(1)
  1801. }
  1802. }
  1803. })
  1804. .catch(function(error) {
  1805. })
  1806. }).catch(() => {
  1807. })
  1808. } else if (index == 30) {
  1809. var that = this
  1810. let params = {
  1811. 'in_hospital_id': that.hisPatientInfo.id,
  1812. 'id': that.patientInfo.id,
  1813. 'admin_user_id': that.$store.getters.xt_user.user.id,
  1814. 'record_time': that.record_date
  1815. }
  1816. if (this.activeName == 'first') {
  1817. params['settle_accounts_type'] = 1
  1818. } else {
  1819. params['start_time'] = that.other_start_time
  1820. params['end_time'] = that.other_end_time
  1821. params['settle_accounts_type'] = 2
  1822. }
  1823. axios.get('http://127.0.0.1:9532/zh/api/uploadinfo/get', {
  1824. params: params
  1825. })
  1826. .then(function(response) {
  1827. if (response.data.state == 0) {
  1828. that.$message.error(response.data.msg)
  1829. return false
  1830. } else {
  1831. if (response.data.data.failed_code == -10) {
  1832. // that.$message.error(response.data.data.msg)
  1833. that.$confirm(response.data.data.msg, '医保错误信息', {
  1834. confirmButtonText: '确 定',
  1835. type: 'warning'
  1836. }).then(() => {
  1837. }).catch(() => {
  1838. })
  1839. } else {
  1840. that.$message.success('上传明细成功')
  1841. that.changeRadioAndPatient(1)
  1842. }
  1843. }
  1844. })
  1845. .catch(function(error) {
  1846. })
  1847. }
  1848. },
  1849. choosePatient() {
  1850. console.log(id)
  1851. this.radioStatus = id
  1852. this.getPatientList()
  1853. },
  1854. changeRadioAndPatient(id) {
  1855. // console.log(id)
  1856. // this.radioStatus = id
  1857. // this.getPatientList()
  1858. this.radio = id
  1859. let temp_id = id
  1860. let params = {
  1861. 'record_date': this.record_date
  1862. }
  1863. GetHisHospitalChargePatientList(params).then(response => {
  1864. if (response.data.state == 0) {
  1865. this.$message.error(response.data.msg)
  1866. return false
  1867. } else {
  1868. if (response.data.data.list == null) {
  1869. response.data.data.list = []
  1870. }
  1871. if (response.data.data.list_two == null) {
  1872. response.data.data.list_two = []
  1873. }
  1874. this.patientTableData = []
  1875. this.hisPatientDatas = []
  1876. this.all_table_data = []
  1877. let one_count = 0
  1878. let two_count = 0
  1879. let three_count = 0
  1880. for (let i = 0; i < response.data.data.list.length; i++) {
  1881. this.all_table_data.push(response.data.data.list[i])
  1882. if (response.data.data.list[i].order.order_status == 0 || response.data.data.list[i].order.order_status == 1 || response.data.data.list[i].order.order_status == 3) {
  1883. one_count = one_count + 1
  1884. }
  1885. }
  1886. this.cal_one = one_count
  1887. this.cal_two = response.data.data.charge_list.length
  1888. // this.all_charge_table_data = response.data.data.charge_list
  1889. this.cal_three = three_count
  1890. switch (temp_id) {
  1891. case 1:
  1892. this.patientTableData = []
  1893. for (let i = 0; i < this.all_table_data.length; i++) {
  1894. if (this.all_table_data[i].order.order_status == 0 || this.all_table_data[i].order.order_status == 1) {
  1895. this.patientTableData.push(this.all_table_data[i])
  1896. }
  1897. }
  1898. for (let i = 0; i < this.patientTableData.length; i++) {
  1899. if (this.patientInfo.id == this.patientTableData[i].patient_id) {
  1900. this.current_index = i
  1901. this.$refs.tab.setCurrentRow(this.patientTableData[i])
  1902. this.getPatientInformation(this.patientTableData[i].patient_id, this.patientTableData[i].order.number, this.patientTableData[i].id)
  1903. }
  1904. }
  1905. break
  1906. case 2:
  1907. this.chargePatientTableData = []
  1908. for (let i = 0; i < response.data.data.charge_list.length; i++) {
  1909. let obj = {
  1910. name: response.data.data.charge_list[i].patient.name,
  1911. id: response.data.data.charge_list[i].patient.id,
  1912. number: response.data.data.charge_list[i].number,
  1913. his_patient_id: response.data.data.charge_list[i].his_patient.id,
  1914. his_number: response.data.data.charge_list[i].mdtrt_id
  1915. }
  1916. this.chargePatientTableData.push(obj)
  1917. }
  1918. this.all_charge_table_data = this.chargePatientTableData
  1919. for (let i = 0; i < this.chargePatientTableData.length; i++) {
  1920. if (this.patientInfo.id == this.chargePatientTableData[i].id) {
  1921. this.current_index = i
  1922. this.$refs.tab.setCurrentRow(this.chargePatientTableData[i])
  1923. this.getPatientInformation(this.chargePatientTableData[i].id, this.chargePatientTableData[i].number, this.chargePatientTableData[i].his_patient_id)
  1924. }
  1925. }
  1926. break
  1927. // case 3:
  1928. // this.patientTableData = [];
  1929. //
  1930. // if (this.activeName == 'first') {
  1931. //
  1932. // for (let i = 0; i < this.all_table_data.length; i++) {
  1933. //
  1934. // if (this.all_table_data[i].his_patient.order.order_status == 3) {
  1935. // this.patientTableData.push(this.all_table_data[i])
  1936. // }
  1937. //
  1938. // }
  1939. // } else {
  1940. //
  1941. // for (let i = 0; i < this.hisPatientDatas.length; i++) {
  1942. //
  1943. // if (this.hisPatientDatas[i].his_patient.order.order_status == 3) {
  1944. // this.patientTableData.push(this.hisPatientDatas[i])
  1945. // }
  1946. //
  1947. // }
  1948. //
  1949. // }
  1950. // break;
  1951. // case 4:
  1952. // this.patientTableData = [];
  1953. // if (this.activeName == 'first') {
  1954. //
  1955. // this.patientTableData = this.all_table_data
  1956. // } else {
  1957. //
  1958. // this.patientTableData = this.hisPatientDatas
  1959. // }
  1960. // break
  1961. }
  1962. }
  1963. })
  1964. },
  1965. changeRadio(id) {
  1966. // console.log(id)
  1967. // this.radioStatus = id
  1968. // this.getPatientList()
  1969. let temp_id = id
  1970. let params = {
  1971. 'record_date': this.record_date
  1972. }
  1973. GetHisHospitalChargePatientList(params).then(response => {
  1974. if (response.data.state == 0) {
  1975. this.$message.error(response.data.msg)
  1976. return false
  1977. } else {
  1978. if (response.data.data.list == null) {
  1979. response.data.data.list = []
  1980. }
  1981. if (response.data.data.list_two == null) {
  1982. response.data.data.list_two = []
  1983. }
  1984. this.patientTableData = []
  1985. this.hisPatientDatas = []
  1986. this.all_table_data = []
  1987. let one_count = 0
  1988. let two_count = 0
  1989. let three_count = 0
  1990. if (this.activeName == 'first') { //日结
  1991. for (let i = 0; i < response.data.data.list.length; i++) {
  1992. this.all_table_data.push(response.data.data.list[i])
  1993. if (response.data.data.list[i].order.order_status == 0 || response.data.data.list[i].order.order_status == 1 || response.data.data.list[i].order.order_status == 3) {
  1994. one_count = one_count + 1
  1995. }
  1996. }
  1997. } else { //月结
  1998. for (let i = 0; i < response.data.data.list_two.length; i++) {
  1999. this.hisPatientDatas.push(response.data.data.list_two[i])
  2000. if (response.data.data.list_two[i].order.order_status == 0 || response.data.data.list_two[i].order.order_status == 1) {
  2001. one_count = one_count + 1
  2002. }
  2003. // if (response.data.data.list_two[i].his_patient.order.order_status == 2) {
  2004. // two_count = two_count + 1
  2005. // }
  2006. //
  2007. // if (response.data.data.list_two[i].his_patient.order.order_status == 3) {
  2008. // three_count = three_count + 1
  2009. // }
  2010. }
  2011. }
  2012. this.cal_one = one_count
  2013. this.cal_two = response.data.data.charge_list.length
  2014. // this.all_charge_table_data = response.data.data.charge_list
  2015. // this.cal_three = three_count;
  2016. switch (temp_id) {
  2017. case 1:
  2018. this.patientTableData = []
  2019. if (this.activeName == 'first') {
  2020. for (let i = 0; i < this.all_table_data.length; i++) {
  2021. if (this.all_table_data[i].order.order_status == 0 || this.all_table_data[i].order.order_status == 1) {
  2022. this.patientTableData.push(this.all_table_data[i])
  2023. }
  2024. }
  2025. } else {
  2026. for (let i = 0; i < this.hisPatientDatas.length; i++) {
  2027. if (this.hisPatientDatas[i].order.order_status == 0 || this.hisPatientDatas[i].order.order_status == 1) {
  2028. this.patientTableData.push(this.hisPatientDatas[i])
  2029. }
  2030. }
  2031. }
  2032. this.current_index = 0
  2033. this.$refs.tab.setCurrentRow(this.patientTableData[0])
  2034. this.getPatientInformation(this.patientTableData[0].patient_id, this.patientTableData[0].order.number, this.patientTableData[0].id)
  2035. break
  2036. case 2:
  2037. this.chargePatientTableData = []
  2038. for (let i = 0; i < response.data.data.charge_list.length; i++) {
  2039. let obj = {
  2040. name: response.data.data.charge_list[i].patient.name,
  2041. id: response.data.data.charge_list[i].patient.id,
  2042. number: response.data.data.charge_list[i].number,
  2043. his_patient_id: response.data.data.charge_list[i].his_patient.id,
  2044. his_number: response.data.data.charge_list[i].mdtrt_id
  2045. }
  2046. this.chargePatientTableData.push(obj)
  2047. }
  2048. this.all_charge_table_data = this.chargePatientTableData
  2049. this.current_index = 0
  2050. this.$refs.tab.setCurrentRow(this.chargePatientTableData[0])
  2051. this.getPatientInformation(this.chargePatientTableData[0].id, this.chargePatientTableData[0].number, this.chargePatientTableData[0].his_patient_id)
  2052. break
  2053. // case 3:
  2054. // this.patientTableData = [];
  2055. //
  2056. // if (this.activeName == 'first') {
  2057. //
  2058. // for (let i = 0; i < this.all_table_data.length; i++) {
  2059. //
  2060. // if (this.all_table_data[i].his_patient.order.order_status == 3) {
  2061. // this.patientTableData.push(this.all_table_data[i])
  2062. // }
  2063. //
  2064. // }
  2065. // } else {
  2066. //
  2067. // for (let i = 0; i < this.hisPatientDatas.length; i++) {
  2068. //
  2069. // if (this.hisPatientDatas[i].his_patient.order.order_status == 3) {
  2070. // this.patientTableData.push(this.hisPatientDatas[i])
  2071. // }
  2072. //
  2073. // }
  2074. //
  2075. // }
  2076. // break;
  2077. // case 4:
  2078. // this.patientTableData = [];
  2079. // if (this.activeName == 'first') {
  2080. //
  2081. // this.patientTableData = this.all_table_data
  2082. // } else {
  2083. //
  2084. // this.patientTableData = this.hisPatientDatas
  2085. // }
  2086. // break
  2087. }
  2088. }
  2089. })
  2090. },
  2091. formatDecimal(num, decimal) {
  2092. num = num.toString()
  2093. let index = num.indexOf('.')
  2094. if (index !== -1) {
  2095. num = num.substring(0, decimal + index + 1)
  2096. } else {
  2097. num = num.substring(0)
  2098. }
  2099. return parseFloat(num).toFixed(decimal)
  2100. },
  2101. //患者列表
  2102. getPatientList() {
  2103. let params = {
  2104. 'record_date': this.record_date
  2105. }
  2106. GetHisHospitalChargePatientList(params).then(response => {
  2107. if (response.data.state == 0) {
  2108. this.$message.error(response.data.msg)
  2109. return false
  2110. } else {
  2111. if (response.data.data.list == null) {
  2112. response.data.data.list = []
  2113. }
  2114. if (response.data.data.list_two == null) {
  2115. response.data.data.list_two = []
  2116. }
  2117. this.patientTableData = []
  2118. this.all_table_data = []
  2119. this.hisPatientDatas = []
  2120. let one_count = 0
  2121. let two_count = 0
  2122. let three_count = 0
  2123. for (let i = 0; i < response.data.data.list.length; i++) {
  2124. this.all_table_data.push(response.data.data.list[i])
  2125. if (response.data.data.list[i].order.order_status == 0 || response.data.data.list[i].order.order_status == 1 || response.data.data.list[i].order.order_status == 3) {
  2126. one_count = one_count + 1
  2127. }
  2128. }
  2129. this.hisPatientDatas = response.data.data.list_two
  2130. this.cal_one = one_count
  2131. this.cal_two = response.data.data.charge_list.length
  2132. // this.all_charge_table_data = response.data.data.charge_list
  2133. this.current_index = 0
  2134. switch (this.radio) {
  2135. case 1:
  2136. this.patientTableData = []
  2137. for (let i = 0; i < this.all_table_data.length; i++) {
  2138. if (this.all_table_data[i].order.order_status == 0 || this.all_table_data[i].order.order_status == 1 || this.all_table_data[i].order.order_status == 3) {
  2139. this.patientTableData.push(this.all_table_data[i])
  2140. }
  2141. }
  2142. this.$refs.tab.setCurrentRow(this.patientTableData[0])
  2143. this.getPatientInformation(this.patientTableData[0].patient_id, this.patientTableData[0].order.number, this.patientTableData[0].id)
  2144. break
  2145. case 2:
  2146. this.chargePatientTableData = []
  2147. for (let i = 0; i < response.data.data.charge_list.length; i++) {
  2148. let obj = {
  2149. name: response.data.data.charge_list[i].patient.name,
  2150. id: response.data.data.charge_list[i].patient.id,
  2151. number: response.data.data.charge_list[i].number,
  2152. his_patient_id: response.data.data.charge_list[i].his_patient.id,
  2153. his_number: response.data.data.charge_list[i].mdtrt_id
  2154. }
  2155. this.chargePatientTableData.push(obj)
  2156. }
  2157. this.all_charge_table_data = this.chargePatientTableData
  2158. this.$refs.tab.setCurrentRow(this.chargePatientTableData[0])
  2159. this.getPatientInformation(this.chargePatientTableData[0].id, this.chargePatientTableData[0].number, this.patientTableData[0].his_patient_id)
  2160. break
  2161. // case 3:
  2162. // this.patientTableData = [];
  2163. //
  2164. // for (let i = 0; i < this.all_table_data.length; i++) {
  2165. //
  2166. // if (this.all_table_data[i].his_patient.order.order_status == 3) {
  2167. // this.patientTableData.push(this.all_table_data[i])
  2168. // }
  2169. //
  2170. // }
  2171. // break;
  2172. // case 4:
  2173. // this.patientTableData = [];
  2174. // this.patientTableData = this.all_table_data;
  2175. // break
  2176. }
  2177. }
  2178. })
  2179. },
  2180. setMonthPrescription(month_prescriptions) {
  2181. this.month_prescriptions = []
  2182. let drug_month_prescriptions = {
  2183. advices: []
  2184. }
  2185. let drug_ids = []
  2186. let project_month_prescriptions = {
  2187. project: []
  2188. }
  2189. let project_ids = []
  2190. let addition_month_prescriptions = {
  2191. addition: []
  2192. }
  2193. let additions_ids = []
  2194. for (let i = 0; i < month_prescriptions.length; i++) {
  2195. if (month_prescriptions[i].type == 1) { //药品
  2196. for (let a = 0; a < month_prescriptions[i].advices.length; a++) {
  2197. let obj = {
  2198. id: month_prescriptions[i].advices[a].drug_id,
  2199. price: month_prescriptions[i].advices[a].price
  2200. }
  2201. drug_ids.push(obj)
  2202. // drug_ids.push(month_prescriptions[i].advices[a].drug_id)
  2203. drug_month_prescriptions.advices.push(month_prescriptions[i].advices[a])
  2204. }
  2205. } else if (month_prescriptions[i].type == 2) { //项目
  2206. for (let a = 0; a < month_prescriptions[i].project.length; a++) {
  2207. let obj = {
  2208. id: month_prescriptions[i].project[a].project_id,
  2209. price: month_prescriptions[i].project[a].price
  2210. }
  2211. project_ids.push(obj)
  2212. project_month_prescriptions.project.push(month_prescriptions[i].project[a])
  2213. }
  2214. }
  2215. }
  2216. drug_ids = this.unique_two(drug_ids)
  2217. project_ids = this.unique_two(project_ids)
  2218. additions_ids = this.unique_two(additions_ids)
  2219. let drugs = []
  2220. let projects = []
  2221. let additions = []
  2222. for (let i = 0; i < drug_ids.length; i++) {
  2223. let obj = {}
  2224. let count = 0
  2225. for (let a = 0; a < drug_month_prescriptions.advices.length; a++) {
  2226. if (drug_ids[i].price == drug_month_prescriptions.advices[a].price && drug_ids[i].id == drug_month_prescriptions.advices[a].drug_id) {
  2227. obj['drug_name'] = drug_month_prescriptions.advices[a].advice_name
  2228. obj['single_dose'] = drug_month_prescriptions.advices[a].single_dose
  2229. obj['delivery_way'] = drug_month_prescriptions.advices[a].delivery_way
  2230. obj['execution_frequency'] = drug_month_prescriptions.advices[a].execution_frequency
  2231. obj['day'] = drug_month_prescriptions.advices[a].day
  2232. // obj['prescribing_number'] = obj['prescribing_number'] + drug_month_prescriptions.advices[a].prescribing_number
  2233. obj['prescribing_number_unit'] = drug_month_prescriptions.advices[a].prescribing_number_unit
  2234. obj['medical_insurance_number'] = drug_month_prescriptions.advices[a].drug.medical_insurance_number
  2235. obj['id'] = drug_month_prescriptions.advices[a].drug_id
  2236. // obj['retail_price'] = obj['retail_price'] + drug_month_prescriptions.advices[a].drug.retail_price
  2237. obj['retail_price'] = parseFloat(drug_month_prescriptions.advices[a].price)
  2238. count = count + drug_month_prescriptions.advices[a].prescribing_number
  2239. }
  2240. }
  2241. obj['prescribing_number'] = count
  2242. drugs.push(obj)
  2243. }
  2244. for (let i = 0; i < project_ids.length; i++) {
  2245. let obj = {}
  2246. let count = 0
  2247. for (let a = 0; a < project_month_prescriptions.project.length; a++) {
  2248. if (project_ids[i].price == project_month_prescriptions.project[a].price && project_ids[i].id == project_month_prescriptions.project[a].project_id) {
  2249. if (project_month_prescriptions.project[a].type == 2) {
  2250. obj['statistical_classification'] = ''
  2251. obj['medical_code'] = project_month_prescriptions.project[a].project.medical_code
  2252. obj['project_name'] = project_month_prescriptions.project[a].project.project_name
  2253. obj['type'] = 2
  2254. } else if (project_month_prescriptions.project[a].type == 3) {
  2255. obj['statistical_classification'] = ''
  2256. obj['medical_code'] = project_month_prescriptions.project[a].good_info.medical_insurance_number
  2257. obj['project_name'] = project_month_prescriptions.project[a].good_info.good_name
  2258. obj['type'] = 3
  2259. }
  2260. // obj['project_name'] = project_month_prescriptions.project[a].project.project_name;
  2261. // obj['statistical_classification'] = project_month_prescriptions.project[a].project.statistical_classification;
  2262. obj['single_dose'] = project_month_prescriptions.project[a].single_dose
  2263. obj['delivery_way'] = project_month_prescriptions.project[a].delivery_way
  2264. obj['execution_frequency'] = project_month_prescriptions.project[a].execution_frequency
  2265. obj['number_days'] = project_month_prescriptions.project[a].day
  2266. // obj['medical_code'] = project_month_prescriptions.project[a].project.medical_code;
  2267. obj['unit'] = project_month_prescriptions.project[a].unit
  2268. obj['project_id'] = project_month_prescriptions.project[a].project_id
  2269. count = count + parseFloat(project_month_prescriptions.project[a].count)
  2270. // price = price + project_month_prescriptions.project[a].price
  2271. obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
  2272. }
  2273. }
  2274. obj['total'] = count
  2275. projects.push(obj)
  2276. }
  2277. let p1 = {
  2278. name: '处方' + 1,
  2279. advices: drugs,
  2280. project: [],
  2281. type: 1,
  2282. addition: additions
  2283. }
  2284. let p2 = {
  2285. name: '处方' + 2,
  2286. type: 2,
  2287. project: projects,
  2288. advices: [],
  2289. addition: []
  2290. }
  2291. this.month_prescriptions.push(p1)
  2292. this.month_prescriptions.push(p2)
  2293. this.curMonthPrescriptions = this.month_prescriptions[0]
  2294. },
  2295. setSettlePrescription(month_prescriptions) {
  2296. this.settle_prescriptions = []
  2297. let drug_month_prescriptions = {
  2298. advices: []
  2299. }
  2300. let drug_ids = []
  2301. let project_month_prescriptions = {
  2302. project: []
  2303. }
  2304. let project_ids = []
  2305. let addition_month_prescriptions = {
  2306. addition: []
  2307. }
  2308. let additions_ids = []
  2309. for (let i = 0; i < month_prescriptions.length; i++) {
  2310. if (month_prescriptions[i].type == 1) { //药品
  2311. for (let a = 0; a < month_prescriptions[i].advices.length; a++) {
  2312. let obj = {
  2313. id: month_prescriptions[i].advices[a].drug_id,
  2314. price: month_prescriptions[i].advices[a].price
  2315. }
  2316. drug_ids.push(obj)
  2317. // drug_ids.push(month_prescriptions[i].advices[a].drug_id)
  2318. drug_month_prescriptions.advices.push(month_prescriptions[i].advices[a])
  2319. }
  2320. } else if (month_prescriptions[i].type == 2) { //项目
  2321. for (let a = 0; a < month_prescriptions[i].project.length; a++) {
  2322. let obj = {
  2323. id: month_prescriptions[i].project[a].project_id,
  2324. price: month_prescriptions[i].project[a].price
  2325. }
  2326. project_ids.push(obj)
  2327. project_month_prescriptions.project.push(month_prescriptions[i].project[a])
  2328. }
  2329. }
  2330. }
  2331. drug_ids = this.unique_two(drug_ids)
  2332. project_ids = this.unique_two(project_ids)
  2333. additions_ids = this.unique_two(additions_ids)
  2334. let drugs = []
  2335. let projects = []
  2336. let additions = []
  2337. for (let i = 0; i < drug_ids.length; i++) {
  2338. let obj = {}
  2339. let count = 0
  2340. for (let a = 0; a < drug_month_prescriptions.advices.length; a++) {
  2341. if (drug_ids[i].price == drug_month_prescriptions.advices[a].price && drug_ids[i].id == drug_month_prescriptions.advices[a].drug_id) {
  2342. obj['drug_name'] = drug_month_prescriptions.advices[a].advice_name
  2343. obj['single_dose'] = drug_month_prescriptions.advices[a].single_dose
  2344. obj['delivery_way'] = drug_month_prescriptions.advices[a].delivery_way
  2345. obj['execution_frequency'] = drug_month_prescriptions.advices[a].execution_frequency
  2346. obj['day'] = drug_month_prescriptions.advices[a].day
  2347. // obj['prescribing_number'] = obj['prescribing_number'] + drug_month_prescriptions.advices[a].prescribing_number
  2348. obj['prescribing_number_unit'] = drug_month_prescriptions.advices[a].prescribing_number_unit
  2349. obj['medical_insurance_number'] = drug_month_prescriptions.advices[a].drug.medical_insurance_number
  2350. obj['id'] = drug_month_prescriptions.advices[a].drug_id
  2351. // obj['retail_price'] = obj['retail_price'] + drug_month_prescriptions.advices[a].drug.retail_price
  2352. obj['retail_price'] = parseFloat(drug_month_prescriptions.advices[a].price)
  2353. obj['code'] = drug_month_prescriptions.advices[a].drug.medical_insurance_number
  2354. obj['fulamt_ownpay_amt'] = drug_month_prescriptions.advices[a].order_info.fulamt_ownpay_amt
  2355. obj['overlmt_amt'] = drug_month_prescriptions.advices[a].order_info.overlmt_amt
  2356. obj['inscp_scp_amt'] = drug_month_prescriptions.advices[a].order_info.inscp_scp_amt
  2357. obj['preselfpay_amt'] = drug_month_prescriptions.advices[a].order_info.preselfpay_amt
  2358. count = count + drug_month_prescriptions.advices[a].prescribing_number
  2359. }
  2360. }
  2361. obj['prescribing_number'] = count
  2362. drugs.push(obj)
  2363. }
  2364. for (let i = 0; i < project_ids.length; i++) {
  2365. let obj = {}
  2366. let count = 0
  2367. for (let a = 0; a < project_month_prescriptions.project.length; a++) {
  2368. if (project_ids[i].price == project_month_prescriptions.project[a].price && project_ids[i].id == project_month_prescriptions.project[a].project_id) {
  2369. if (project_month_prescriptions.project[a].type == 2) {
  2370. obj['statistical_classification'] = ''
  2371. obj['medical_code'] = project_month_prescriptions.project[a].project.medical_code
  2372. obj['project_name'] = project_month_prescriptions.project[a].project.project_name
  2373. obj['type'] = 2
  2374. } else if (project_month_prescriptions.project[a].type == 3) {
  2375. obj['statistical_classification'] = ''
  2376. obj['medical_code'] = project_month_prescriptions.project[a].good_info.medical_insurance_number
  2377. obj['project_name'] = project_month_prescriptions.project[a].good_info.good_name
  2378. obj['type'] = 3
  2379. }
  2380. obj['fulamt_ownpay_amt'] = project_month_prescriptions.project[a].order_info.fulamt_ownpay_amt
  2381. obj['overlmt_amt'] = project_month_prescriptions.project[a].order_info.overlmt_amt
  2382. obj['inscp_scp_amt'] = project_month_prescriptions.project[a].order_info.inscp_scp_amt
  2383. obj['preselfpay_amt'] = project_month_prescriptions.project[a].order_info.preselfpay_amt
  2384. // obj['project_name'] = project_month_prescriptions.project[a].project.project_name;
  2385. // obj['statistical_classification'] = project_month_prescriptions.project[a].project.statistical_classification;
  2386. obj['single_dose'] = project_month_prescriptions.project[a].single_dose
  2387. obj['delivery_way'] = project_month_prescriptions.project[a].delivery_way
  2388. obj['execution_frequency'] = project_month_prescriptions.project[a].execution_frequency
  2389. obj['number_days'] = project_month_prescriptions.project[a].day
  2390. // obj['medical_code'] = project_month_prescriptions.project[a].project.medical_code;
  2391. obj['unit'] = project_month_prescriptions.project[a].unit
  2392. obj['project_id'] = project_month_prescriptions.project[a].project_id
  2393. count = count + parseFloat(project_month_prescriptions.project[a].count)
  2394. // price = price + project_month_prescriptions.project[a].price
  2395. obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
  2396. }
  2397. }
  2398. obj['total'] = count
  2399. projects.push(obj)
  2400. }
  2401. let p1 = {
  2402. name: '处方' + 1,
  2403. advices: drugs,
  2404. project: [],
  2405. type: 1,
  2406. addition: additions
  2407. }
  2408. let p2 = {
  2409. name: '处方' + 2,
  2410. type: 2,
  2411. project: projects,
  2412. advices: [],
  2413. addition: []
  2414. }
  2415. this.settle_prescriptions.push(p1)
  2416. this.settle_prescriptions.push(p2)
  2417. this.curSettlePrescriptions = this.settle_prescriptions[0]
  2418. },
  2419. unique_two(array) {
  2420. // res用来存储结果
  2421. var res = []
  2422. for (var i = 0, arrayLen = array.length; i < arrayLen; i++) {
  2423. for (var j = 0, resLen = res.length; j < resLen; j++) {
  2424. if (array[i].id === res[j].id && array[i].price === res[j].price) {
  2425. break
  2426. }
  2427. }
  2428. // 如果array[i]是唯一的,那么执行完循环,j等于resLen
  2429. if (j === resLen) {
  2430. res.push(array[i])
  2431. }
  2432. }
  2433. return res
  2434. },
  2435. unique(arr) {
  2436. const res = new Map()
  2437. return arr.filter((arr) => !res.has(arr.id_card_no) && res.set(arr.id_card_no, 1))
  2438. },
  2439. handleCurrentChange(val) {
  2440. this.curPrescriptions = {}
  2441. this.curMonthPrescriptions = {}
  2442. this.prescriptions = []
  2443. this.month_prescriptions = []
  2444. if (this.radio == 1) {
  2445. this.getPatientInformation(val.patient_id, val.order.number, val.id)
  2446. } else {
  2447. this.getPatientInformation(val.id, val.number, val.his_patient_id)
  2448. }
  2449. this.patient_id = val.id
  2450. for (let i = 0; i < this.patientTableData.length; i++) {
  2451. if (this.patientTableData[i].id == val.id) {
  2452. this.current_index = i
  2453. }
  2454. }
  2455. },
  2456. //获取患者的基本信息
  2457. getPatientInformation(id, batch_number, his_patient_id) {
  2458. let params = {
  2459. 'his_patient_id': his_patient_id,
  2460. 'record_date': this.record_date,
  2461. 'patient_id': id,
  2462. 'number': batch_number,
  2463. 'start_time': this.other_start_time,
  2464. 'end_time': this.other_end_time,
  2465. 'type': this.radio,
  2466. 'p_type': 1
  2467. }
  2468. this.loading = true
  2469. GetHisHospitalChargePatientInfo(params).then(response => {
  2470. if (response.data.state == 0) {
  2471. this.loading = false
  2472. this.$message.error(response.data.msg)
  2473. return false
  2474. } else {
  2475. this.prescriptions = []
  2476. this.month_prescriptions = []
  2477. this.curPrescriptions = {}
  2478. this.curMonthPrescriptions = {}
  2479. this.settle_prescriptions = []
  2480. this.curSettlePrescriptions = {}
  2481. this.loading = false
  2482. this.patientInfo = response.data.data.xt_info
  2483. this.hisPatientInfo = response.data.data.his_info
  2484. this.info = response.data.data.info
  2485. this.order = response.data.data.order
  2486. this.p_type = ''
  2487. this.sick_type = ''
  2488. this.diagnosis = ''
  2489. this.sick_history = ''
  2490. if (this.info.id > 0) {
  2491. this.p_type = this.info.register_type
  2492. this.sick_type = this.info.sick_type
  2493. this.diagnosis = this.info.diagnosis
  2494. this.sick_history = this.info.sick_history
  2495. if (this.info.register_type == 0) {
  2496. this.p_type = ''
  2497. }
  2498. if (this.info.sick_type == 0) {
  2499. this.sick_type = ''
  2500. }
  2501. if (this.info.diagnosis == 0) {
  2502. this.diagnosis = ''
  2503. }
  2504. } else {
  2505. this.p_type = ''
  2506. this.sick_type = ''
  2507. this.diagnosis = ''
  2508. this.sick_history = ''
  2509. }
  2510. this.addtions_charge = response.data.data.addtions_charge
  2511. this.setMonthPrescription(response.data.data.month_prescriptions)
  2512. this.setSettlePrescription(response.data.data.settle_prescriptions)
  2513. if (response.data.data.prescription.length > 0 && response.data.data.prescription[0].advices.length > 0) {
  2514. this.prescription_id = response.data.data.prescription[0].advices[0].prescription_id
  2515. } else {
  2516. this.prescription_id = 0
  2517. }
  2518. for (let i = 0; i < response.data.data.prescription.length; i++) {
  2519. var prescription = response.data.data.prescription[i]
  2520. let tempAdvice = []
  2521. let tempProject = []
  2522. let tempAddition = []
  2523. for (let b = 0; b < prescription.advices.length; b++) {
  2524. 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
  2525. let obj = {
  2526. advice_id: prescription.advices[b].id,
  2527. drug_name: prescription.advices[b].advice_name,
  2528. single_dose: prescription.advices[b].single_dose,
  2529. delivery_way: prescription.advices[b].delivery_way,
  2530. execution_frequency: prescription.advices[b].execution_frequency,
  2531. retail_price: prescription.advices[b].price.toString(),
  2532. remark: prescription.advices[b].remark,
  2533. day: prescription.advices[b].day,
  2534. prescribing_number: prescription.advices[b].prescribing_number.toString(),
  2535. single_dose_unit: prescription.advices[b].single_dose_unit,
  2536. prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
  2537. medical_insurance_number: prescription.advices[b].med_list_codg,
  2538. code: prescription.advices[b].drug.medical_insurance_number,
  2539. spec: spec,
  2540. det_item_fee_sumamt: prescription.advices[b].order_info.det_item_fee_sumamt,
  2541. name_id: prescription.advices[b].drug.manufacturer,
  2542. fulamt_ownpay_amt: prescription.advices[b].order_info.fulamt_ownpay_amt,
  2543. overlmt_amt: prescription.advices[b].order_info.overlmt_amt,
  2544. preselfpay_amt: prescription.advices[b].order_info.preselfpay_amt,
  2545. inscp_scp_amt: prescription.advices[b].order_info.inscp_scp_amt
  2546. }
  2547. tempAdvice.push(obj)
  2548. }
  2549. for (let b = 0; b < prescription.project.length; b++) {
  2550. let obj = {
  2551. id: prescription.project[b].id,
  2552. project_id: prescription.project[b].project.id,
  2553. // project_name: prescription.project[b].project.project_name,
  2554. // statistical_classification: prescription.project[b].project.statistical_classification,
  2555. single_dose: prescription.project[b].single_dose,
  2556. delivery_way: prescription.project[b].delivery_way,
  2557. execution_frequency: prescription.project[b].execution_frequency,
  2558. number_days: prescription.project[b].day,
  2559. total: prescription.project[b].count.toString(),
  2560. price: prescription.project[b].price,
  2561. remark: prescription.project[b].remark,
  2562. // medical_code: prescription.project[b].project.medical_code,
  2563. unit: prescription.project[b].project.unit,
  2564. type: prescription.project[b].type,
  2565. det_item_fee_sumamt: prescription.project[b].order_info.det_item_fee_sumamt,
  2566. fulamt_ownpay_amt: prescription.project[b].order_info.fulamt_ownpay_amt,
  2567. overlmt_amt: prescription.project[b].order_info.overlmt_amt,
  2568. preselfpay_amt: prescription.project[b].order_info.preselfpay_amt,
  2569. inscp_scp_amt: prescription.project[b].order_info.inscp_scp_amt
  2570. }
  2571. if (prescription.project[b].type == 2) {
  2572. obj['statistical_classification'] = prescription.project[b].team.project_team
  2573. obj['medical_code'] = prescription.project[b].project.medical_code
  2574. obj['project_name'] = prescription.project[b].project.project_name
  2575. obj['spec'] = ''
  2576. obj['name_id'] = 0
  2577. } else if (prescription.project[b].type == 3) {
  2578. obj['statistical_classification'] = prescription.project[b].team.project_team
  2579. obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
  2580. obj['project_name'] = prescription.project[b].good_info.good_name
  2581. obj['spec'] = prescription.project[b].good_info.specification_name
  2582. obj['name_id'] = prescription.project[b].good_info.manufacturer
  2583. }
  2584. tempProject.push(obj)
  2585. }
  2586. let index = i + 1
  2587. let obj = {
  2588. id: prescription.id,
  2589. name: '处方' + index,
  2590. advices: tempAdvice,
  2591. project: tempProject,
  2592. addition: tempAddition,
  2593. order_status: prescription.order_status,
  2594. type: prescription.type
  2595. }
  2596. this.prescriptions.push(obj)
  2597. for (let i = 0; i < this.prescriptions.length; i++) {
  2598. if (this.prescriptions[i].order_status != 4) {
  2599. this.isShowUpload = 2
  2600. }
  2601. }
  2602. }
  2603. if (this.prescriptions.length > 0) {
  2604. this.curPrescriptions = this.prescriptions[0]
  2605. } else {
  2606. this.curPrescriptions = {}
  2607. }
  2608. if (this.month_prescriptions.length > 0) {
  2609. this.curMonthPrescriptions = this.month_prescriptions[0]
  2610. } else {
  2611. this.curMonthPrescriptions = {}
  2612. }
  2613. this.total = 0
  2614. this.total = this.getTotalOne()
  2615. this.month_total = this.getMonthTotalOne()
  2616. this.settle_total = this.getSettleTotalOne()
  2617. }
  2618. })
  2619. },
  2620. invoicePrint(obj) {
  2621. console.log(this.hisPatientInfo)
  2622. let paramsObj = {
  2623. order_id: this.hisPatientInfo.id,
  2624. patient_id: this.hisPatientInfo.patient_id,
  2625. record_time: this.record_date,
  2626. name: this.hisPatientInfo.name,
  2627. gend: this.hisPatientInfo.gend,
  2628. setl_time: this.hisPatientInfo.out_hosptial_time
  2629. }
  2630. this.invoiceParams = paramsObj
  2631. this.invoiceVisible = true
  2632. }
  2633. },
  2634. mounted() {
  2635. const that = this
  2636. window.onresize = () => {
  2637. return (() => {
  2638. window.fullHeight = document.documentElement.clientHeight
  2639. that.fullHeight = window.fullHeight
  2640. })()
  2641. }
  2642. },
  2643. watch: {
  2644. fullHeight(val) {
  2645. if (!this.timer) {
  2646. this.fullHeight = val
  2647. let tableHeight = val - 243
  2648. this.tableHeight = tableHeight
  2649. this.timer = true
  2650. let that = this
  2651. setTimeout(function() {
  2652. that.timer = false
  2653. }, 400)
  2654. }
  2655. }
  2656. }
  2657. }
  2658. </script>
  2659. <style lang="scss" scoped>
  2660. .app-container {
  2661. height: 100%;
  2662. }
  2663. .outpatientChargesManagement {
  2664. height: 100%;
  2665. display: flex;
  2666. flex-direction: column;
  2667. .mainLeft {
  2668. width: 200px;
  2669. height: 100%;
  2670. display: flex;
  2671. flex-direction: column;
  2672. padding-top: 20px;
  2673. .el-radio {
  2674. margin-right: 5px;
  2675. }
  2676. }
  2677. .mainCell {
  2678. height: 36px;
  2679. display: flex;
  2680. align-items: center;
  2681. }
  2682. .fixedCell {
  2683. position: fixed;
  2684. z-index: 99;
  2685. right: 42px;
  2686. background: #fff;
  2687. display: flex;
  2688. justify-content: space-between;
  2689. }
  2690. .mainRight {
  2691. margin-left: 10px;
  2692. flex: 1;
  2693. height: 100%;
  2694. display: flex;
  2695. flex-direction: column;
  2696. overflow-y: auto;
  2697. .cellSpan {
  2698. min-width: 80px;
  2699. display: inline-block;
  2700. margin-right: 10px;
  2701. }
  2702. }
  2703. .tabsBox {
  2704. position: relative;
  2705. height: 90%;
  2706. overflow-y: auto;
  2707. margin-bottom: 60px;
  2708. .el-tabs__item {
  2709. padding: 0 10px;
  2710. }
  2711. }
  2712. .addTab {
  2713. position: absolute;
  2714. right: 6px;
  2715. top: 3px;
  2716. z-index: 20;
  2717. }
  2718. .mainCenter {
  2719. display: flex;
  2720. flex: 1;
  2721. height: 100%;
  2722. }
  2723. .costBox {
  2724. width: 100%;
  2725. height: 60px;
  2726. background: #fff;
  2727. position: absolute;
  2728. bottom: 0;
  2729. display: flex;
  2730. align-items: center;
  2731. justify-content: space-between;
  2732. }
  2733. .centerLeft {
  2734. flex: 1;
  2735. display: flex;
  2736. flex-direction: column;
  2737. position: relative;
  2738. }
  2739. .preTabs {
  2740. height: 100%;
  2741. display: flex;
  2742. flex-direction: column;
  2743. .el-tab-pane {
  2744. height: auto !important;
  2745. }
  2746. }
  2747. .settlementTabs {
  2748. flex: 1;
  2749. .el-tab-pane {
  2750. height: 100%;
  2751. }
  2752. .el-tabs__content {
  2753. height: 100%;
  2754. }
  2755. }
  2756. .centerRight {
  2757. width: 300px;
  2758. margin-left: 10px;
  2759. display: flex;
  2760. flex-direction: column;
  2761. overflow-y: auto;
  2762. }
  2763. .RP {
  2764. color: #409EFF;
  2765. font-size: 20px;
  2766. margin-bottom: 5px;
  2767. }
  2768. .centerRightTitle {
  2769. color: #409EFF;
  2770. }
  2771. .basicUl {
  2772. border-top: 1px solid #e5e5e5;
  2773. border-left: 1px solid #e5e5e5;
  2774. display: flex;
  2775. flex-wrap: wrap;
  2776. li {
  2777. border-bottom: 1px solid #e5e5e5;
  2778. border-right: 1px solid #e5e5e5;
  2779. width: 100%;
  2780. min-height: 38px;
  2781. /* line-height: 38px;
  2782. text-indent: 5px; */
  2783. font-size: 14px;
  2784. display: flex;
  2785. align-items: center;
  2786. padding: 5px;
  2787. box-sizing: border-box;
  2788. }
  2789. }
  2790. }
  2791. </style>
  2792. <style lang="scss">
  2793. #tab-more {
  2794. .el-icon-close {
  2795. display: none;
  2796. }
  2797. }
  2798. .settlementTabs {
  2799. .el-tabs__content {
  2800. height: 90%;
  2801. }
  2802. }
  2803. .preTabs {
  2804. .el-tabs__content {
  2805. flex: 1;
  2806. overflow-y: auto;
  2807. padding: 5px 0 5px 5px;
  2808. }
  2809. }
  2810. .centerDialog {
  2811. .el-dialog__body {
  2812. max-height: calc(100vh - 100px) !important;
  2813. padding: 0 20px;
  2814. }
  2815. }
  2816. </style>