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

outpatientChargesManagement.vue 126KB

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