newDoctorAdvice.vue 108KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs"></bread-crumb>
  5. <div>
  6. <el-button
  7. size="small"
  8. icon="el-icon-printer"
  9. :disabled="selecting_schs.length == 0"
  10. @click="signPrintAction"
  11. type="primary"
  12. style="margin-right:10"
  13. >标签打印
  14. </el-button>
  15. <el-button
  16. size="small"
  17. icon="el-icon-printer"
  18. :disabled="selecting_schs.length == 0"
  19. @click="batchPrintAction"
  20. type="primary"
  21. >医嘱打印
  22. </el-button>
  23. </div>
  24. </div>
  25. <div class="app-container">
  26. <div class="filter-container">
  27. <div style="display: flex;">
  28. <div style="flex: 1;">
  29. <el-autocomplete
  30. class="checkSearch"
  31. popper-class="my-autocomplete"
  32. v-model.trim="listQuery.keyword"
  33. :fetch-suggestions="querySearchAsync"
  34. :trigger-on-focus="false"
  35. placeholder="患者姓名"
  36. @select="handleSelect"
  37. >
  38. <i class="el-icon-search el-input__icon" slot="suffix"></i>
  39. <template slot-scope="{ item }">
  40. <div class="name">{{ item.name }}</div>
  41. </template>
  42. </el-autocomplete>
  43. <el-button type="primary" @click="toSeach">搜索</el-button>
  44. <el-input style="width:200px" placeholder="请输入药品名称" v-model="keyword"></el-input>
  45. <el-button type="primary" @click="toSeachOne">搜索</el-button>
  46. </div>
  47. <div style="flex: 1;text-align: right;">
  48. <el-button type="primary" size="small" @click="toStatic" v-if="org_id!=9671 && org_id!=10340">药品统计</el-button>
  49. <el-button type="primary" size="small" @click="toStaticOne" v-if="org_id == 9671 || org_id==10340">药品统计</el-button>
  50. <el-button type="primary" size="small" @click="toStaticThree">药品月统计</el-button>
  51. <el-button type="primary" size="small" @click="toStaticTwo">耗材统计</el-button>
  52. <el-button type="primary" size="small" @click="toStaticFour">耗材月统计</el-button>
  53. </div>
  54. </div>
  55. </div>
  56. <!-- <div class="filter-container">
  57. <el-input style="width:200px" placeholder="请输入药品名称" v-model="keyword"></el-input>
  58. <el-button type="primary" @click="toSeachOne">搜索</el-button>
  59. </div> -->
  60. <div class="cell clearfix">
  61. <label class="title">
  62. <span class="name">日期查询:</span>
  63. </label>
  64. <el-date-picker
  65. v-model="time"
  66. prefix-icon="el-icon-date"
  67. @change="changeTime"
  68. :editable="false"
  69. style="width: 180px;margin-right: 10px;"
  70. type="date"
  71. placeholder="选择日期时间"
  72. align="right"
  73. format="yyyy-MM-dd"
  74. value-format="timestamp"
  75. ></el-date-picker>
  76. <label class="title">
  77. <span class="name">排序:</span>
  78. </label>
  79. <el-select v-model="sort" placeholder="请选择" @change="selectSortType">
  80. <el-option
  81. v-for="item in options"
  82. :key="item.name"
  83. :label="item.name"
  84. :value="item.id"
  85. >
  86. </el-option>
  87. </el-select>
  88. </div>
  89. <!-- <div class="cell clearfix">
  90. <label class="title">
  91. <span class="name">排序:</span>
  92. </label>
  93. <el-select v-model="sort" placeholder="请选择" @change="selectSortType">
  94. <el-option
  95. v-for="item in options"
  96. :key="item.name"
  97. :label="item.name"
  98. :value="item.id"
  99. >
  100. </el-option>
  101. </el-select>
  102. </div> -->
  103. <div class="cell clearfix">
  104. <label class="title"> <span class="name">排班班次</span> : </label>
  105. <div class="time">
  106. <ul class>
  107. <li
  108. :class="item.value == schedulType ? 'active' : ''"
  109. @click="selectSchedulType(item.value)"
  110. v-for="item in schedulArr"
  111. :key="item.value"
  112. >
  113. {{ item.label }}
  114. </li>
  115. </ul>
  116. </div>
  117. </div>
  118. <div class="cell clearfix">
  119. <label class="title"><span class="name">收费状态</span> : </label>
  120. <div class="time">
  121. <ul class>
  122. <li
  123. :class="item.id == costType ? 'active' : ''"
  124. @click="selectCostType(item.id)"
  125. v-for="item in costArr"
  126. :key="item.id"
  127. >
  128. {{ item.name }}
  129. </li>
  130. </ul>
  131. </div>
  132. </div>
  133. <div class="cell clearfix">
  134. <label class="title"><span class="name">分区</span> : </label>
  135. <div class="time">
  136. <ul class>
  137. <li
  138. :class="item.id == partitionType ? 'active' : ''"
  139. @click="selectPartitionType(item.id)"
  140. v-for="item in partitionArr"
  141. :key="item.id"
  142. >
  143. {{ item.name }}
  144. </li>
  145. </ul>
  146. </div>
  147. </div>
  148. <div class="cell clearfix">
  149. <label class="title"> <span class="name">给药途径</span> : </label>
  150. <div class="time">
  151. <ul class>
  152. <li
  153. :class="item.id == delivery_way ? 'active' : ''"
  154. @click="selectDeliveryWay(item.id)"
  155. v-for="item in deliveryWay"
  156. :key="item.id"
  157. >
  158. {{ item.name }}
  159. </li>
  160. </ul>
  161. </div>
  162. </div>
  163. <div class="cell clearfix">
  164. <label class="title"> <span class="name">执行频率 : </span></label>
  165. <div class="time">
  166. <ul class>
  167. <li
  168. :class="item.id == execution_frequency ? 'active' : ''"
  169. @click="selectFrequencyWay(item.id)"
  170. v-for="item in excutList"
  171. :key="item.id"
  172. >
  173. {{ item.name }}
  174. </li>
  175. </ul>
  176. </div>
  177. </div>
  178. <div class="cell clearfix">
  179. <label class="title"> <span class="name">执行状态</span> : </label>
  180. <div class="time">
  181. <ul class>
  182. <li
  183. :class="item.id == excution_way ? 'active' : ''"
  184. @click="selectExcutionWay(item.id)"
  185. v-for="item in executionList"
  186. :key="item.id"
  187. >
  188. {{ item.name }}
  189. </li>
  190. </ul>
  191. </div>
  192. </div>
  193. <!-- <div style="margin-top: 10px;margin-left:600px;margin-bottom:10px">
  194. <el-button type="primary" size="small" @click="toExcution">执行医嘱</el-button>
  195. <el-button type="primary" size="small" @click="toCheck">医嘱核对</el-button>
  196. <el-button type="primary" size="small" @click="toSettle">收费</el-button>
  197. </div> -->
  198. <!-- <div style="margin-top: 10px;margin-bottom:10px">
  199. <el-button type="primary" size="small" @click="toStatic" v-if="org_id!=9671 && org_id!=10340">药品统计</el-button>
  200. <el-button type="primary" size="small" @click="toStaticOne" v-if="org_id == 9671 || org_id==10340">药品统计</el-button>
  201. <el-button type="primary" size="small" @click="toStaticThree">药品月统计</el-button>
  202. <el-button type="primary" size="small" @click="toStaticTwo">耗材统计</el-button>
  203. <el-button type="primary" size="small" @click="toStaticFour">耗材月统计</el-button>
  204. </div> -->
  205. <el-table :data="scheduleMap" border :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
  206. @selection-change="handleSelectionChange"
  207. :span-method="objectSpanMethod"
  208. :cell-class-name="adviceNameShow"
  209. :modal-append-to-body="false"
  210. highlight-current-row
  211. @current-change="handleCurrentChangeList"
  212. v-show="show"
  213. @row-click="handleRowClick">
  214. <el-table-column type="selection" width="55" align="center"></el-table-column>
  215. <el-table-column prop="date" label="姓名" align="center" min-width="26px">
  216. <template slot-scope="scope">
  217. <span>{{ scope.row.name }}</span>
  218. <br>
  219. ({{ scope.row.parent_id == 0 ? scope.row.dialysis_no : ""}})
  220. <br>
  221. <span v-if="scope.row.mode_id == 1">(HD)</span>
  222. <span v-if="scope.row.mode_id == 2">(HDF)</span>
  223. <span v-if="scope.row.mode_id == 3">(HD+HP)</span>
  224. <span v-if="scope.row.mode_id == 4">(HP)</span>
  225. <span v-if="scope.row.mode_id == 5">(HF)</span>
  226. <span v-if="scope.row.mode_id == 6">(SCUF)</span>
  227. <span v-if="scope.row.mode_id == 7">(IUF)</span>
  228. <span v-if="scope.row.mode_id == 8">(HFHD)</span>
  229. <span v-if="scope.row.mode_id == 9">(HFHD+HP)</span>
  230. <span v-if="scope.row.mode_id == 10">(PHF)</span>
  231. <span v-if="scope.row.mode_id == 11">(HFR)</span>
  232. <span v-if="scope.row.mode_id == 12">(HDF+HP)</span>
  233. <span v-if="scope.row.mode_id == 13">(CRRT)</span>
  234. <span v-if="scope.row.mode_id == 14">(腹水回输)</span>
  235. <span v-if="scope.row.mode_id == 24">I-HDF</span>
  236. </br>
  237. <span v-if="scope.row.anticoagulant == 1" style="color:red">无肝素</span>
  238. </template>
  239. </el-table-column>
  240. <el-table-column label="分区床位" width="100">
  241. <template slot-scope="scope" >
  242. {{scope.row.zone_name}}/{{scope.row.number}}
  243. </template>
  244. </el-table-column>
  245. <el-table-column prop="date" label="透析器" align="center" min-width="26px">
  246. <template slot-scope="scope">
  247. <span>{{ scope.row.dialyzer_perfusion_apparatus }}</span>
  248. <span v-if="scope.row.dialysis_dialyszers!=''">{{scope.row.dialysis_dialyszers}}</span>
  249. <span v-if="scope.row.dialysis_irrigation!=''">{{scope.row.dialysis_irrigation}}</span>
  250. </template>
  251. </el-table-column>
  252. <el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
  253. <template slot-scope="scope">
  254. <span>
  255. {{scope.row.start_time | parseTime('{m}-{d} {h}:{i}')}}
  256. </span>
  257. </template>
  258. </el-table-column>
  259. <el-table-column prop="advice_name" min-width="50px" label="医嘱内容" align="center">
  260. <template slot-scope="scope">
  261. <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
  262. <span class="el-dropdown-link" v-if="scope.row.parent_id == 0">
  263. {{ getAdviceContent(scope.row, 1)}}
  264. </span>
  265. </el-dropdown>
  266. <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
  267. <span class="el-dropdown-link">
  268. &emsp;{{ getAdviceContent(scope.row, 2)}}
  269. </span>
  270. </el-dropdown>
  271. </template>
  272. </el-table-column>
  273. <el-table-column prop="start_time" min-width="30px" label="执行时间" align="center" sortable>
  274. <template slot-scope="scope">
  275. <span v-if="scope.row.execution_time != 0">
  276. {{scope.row.execution_time | parseTime('{m}-{d} {h}:{i}')}}
  277. </span>
  278. <span v-else></span>
  279. </template>
  280. </el-table-column>
  281. <el-table-column prop="execution_staff" align="center" min-width="30px" label="执行护士">
  282. <template slot-scope="scope">
  283. <span v-if="scope.row.parent_id == 0">
  284. {{getXuserName(scope.row.execution_staff)}}
  285. </span>
  286. <span v-else>{{getXuserName(scope.row.execution_staff)}}</span>
  287. </template>
  288. </el-table-column>
  289. <el-table-column prop="checker" align="center" min-width="30px" label="校对护士">
  290. <template slot-scope="scope">
  291. <span v-if="scope.row.parent_id == 0">
  292. {{getXuserName(scope.row.checker)}}
  293. </span>
  294. <span v-else>{{getXuserName(scope.row.checker)}}</span>
  295. </template>
  296. </el-table-column>
  297. <el-table-column prop="check_time" align="center" label="校对时间" min-width="30px" sortable>
  298. <template slot-scope="scope">
  299. <span v-if="scope.row.check_time != 0 && org_id!=10460">
  300. {{scope.row.check_time | parseTime('{m}-{d} {h}:{i}')}}
  301. </span>
  302. <span v-else>
  303. </span>
  304. </template>
  305. </el-table-column>
  306. <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
  307. <template slot-scope="scope">
  308. <span>{{ getXuserName(scope.row.advice_doctor) }}</span>
  309. </template>
  310. </el-table-column>
  311. <el-table-column prop="created_time" align="center" min-width="30px" label="校对时间" sortable>
  312. <template slot-scope="scope">
  313. <span v-if="scope.row.created_time != 0 && org_id!=10460">
  314. {{scope.row.created_time | parseTime('{m}-{d} {h}:{i}')}}
  315. </span>
  316. <span v-else></span>
  317. </template>
  318. </el-table-column>
  319. <el-table-column prop="created_time" align="center" min-width="30px" label="收费状态" sortable>
  320. <template slot-scope="scope">
  321. <span v-if="scope.row.is_settle == 1">
  322. 已收费
  323. </span>
  324. <span v-if="scope.row.is_settle == 2 || scope.row.is_settle == 0">
  325. 未收费
  326. </span>
  327. <span v-else></span>
  328. </template>
  329. </el-table-column>
  330. </el-table>
  331. <el-table :data="scheduleMap" border :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
  332. @selection-change="handleSelectionChangeOne"
  333. @current-change="handleCurrentChangeList"
  334. :span-method="objectSpanMethod"
  335. :cell-class-name="adviceNameShow"
  336. highlight-current-row
  337. :modal-append-to-body="false"
  338. v-show="showOne">
  339. <el-table-column type="selection" width="50" align="center"></el-table-column>
  340. <el-table-column prop="date" label="姓名" align="center" min-width="26px">
  341. <template slot-scope="scope">
  342. <span>{{ scope.row.name }}</span>
  343. <br>
  344. ({{ scope.row.parent_id == 0 ? scope.row.dialysis_no : ""}})
  345. <br>
  346. <span v-if="scope.row.mode_id == 1">(HD)</span>
  347. <span v-if="scope.row.mode_id == 2">(HDF)</span>
  348. <span v-if="scope.row.mode_id == 3">(HD+HP)</span>
  349. <span v-if="scope.row.mode_id == 4">(HP)</span>
  350. <span v-if="scope.row.mode_id == 5">(HF)</span>
  351. <span v-if="scope.row.mode_id == 6">(SCUF)</span>
  352. <span v-if="scope.row.mode_id == 7">(IUF)</span>
  353. <span v-if="scope.row.mode_id == 8">(HFHD)</span>
  354. <span v-if="scope.row.mode_id == 9">(HFHD+HP)</span>
  355. <span v-if="scope.row.mode_id == 10">(PHF)</span>
  356. <span v-if="scope.row.mode_id == 11">(HFR)</span>
  357. <span v-if="scope.row.mode_id == 12">(HDF+HP)</span>
  358. <span v-if="scope.row.mode_id == 13">(CRRT)</span>
  359. <span v-if="scope.row.mode_id == 14">(腹水回输)</span>
  360. <span v-if="scope.row.mode_id == 24">I-HDF</span>
  361. </template>
  362. </el-table-column>
  363. <el-table-column prop="date" label="透析器" align="center" min-width="26px">
  364. <template slot-scope="scope">
  365. <span>
  366. {{ scope.row.dialyzer_perfusion_apparatus }}
  367. <span v-if="scope.row.dialysis_dialyszers!=''">{{scope.row.dialysis_dialyszers}}</span>
  368. <span v-if="scope.row.dialysis_irrigation!=''">{{scope.row.dialysis_irrigation}}</span>
  369. </span>
  370. </template>
  371. </el-table-column>
  372. <el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
  373. <template slot-scope="scope">
  374. <span>
  375. {{scope.row.start_time | parseTime('{m}-{d} {h}:{i}')}}
  376. </span>
  377. </template>
  378. </el-table-column>
  379. <el-table-column prop="advice_name" min-width="50px" label="医嘱内容" align="center">
  380. <template slot-scope="scope">
  381. <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
  382. <span class="el-dropdown-link" v-if="scope.row.parent_id == 0">
  383. {{ getAdviceContent(scope.row, 1)}}
  384. </span>
  385. </el-dropdown>
  386. <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
  387. <span class="el-dropdown-link">
  388. &emsp;{{ getAdviceContent(scope.row, 2)}}
  389. </span>
  390. </el-dropdown>
  391. </template>
  392. </el-table-column>
  393. <el-table-column prop="start_time" align="center" min-width="30px" label="执行时间" sortable>
  394. <template slot-scope="scope">
  395. <span v-if="scope.row.execution_time != 0">
  396. {{scope.row.start_time | parseTime('{m}-{d} {h}:{i}')}}
  397. </span>
  398. <span v-else></span>
  399. </template>
  400. </el-table-column>
  401. <el-table-column prop="execution_staff" align="center" min-width="30px" label="执行护士">
  402. <template slot-scope="scope">
  403. <span v-if="scope.row.parent_id == 0">
  404. {{getXuserName(scope.row.execution_staff)}}
  405. </span>
  406. <span v-else></span>
  407. </template>
  408. </el-table-column>
  409. <el-table-column prop="checker" align="center" min-width="30px" label="校对护士">
  410. <template slot-scope="scope">
  411. <span v-if="scope.row.parent_id == 0">
  412. {{getXuserName(scope.row.checker)}}
  413. </span>
  414. <span v-else></span>
  415. </template>
  416. </el-table-column>
  417. <el-table-column prop="check_time" align="center" min-width="30px" label="校对时间" sortable>
  418. <template slot-scope="scope">
  419. <span v-if="scope.row.check_time != 0">
  420. {{scope.row.check_time | parseTime('{m}-{d} {h}:{i}')}}
  421. </span>
  422. <span v-else></span>
  423. </template>
  424. </el-table-column>
  425. <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
  426. <template slot-scope="scope">
  427. <span>{{ getXuserName(scope.row.advice_doctor) }}</span>
  428. </template>
  429. </el-table-column>
  430. <el-table-column prop="created_time" align="center" min-width="30px" label="校对时间" sortable>
  431. <template slot-scope="scope">
  432. <span v-if="scope.row.created_time != 0">
  433. {{scope.row.created_time | parseTime('{m}-{d} {h}:{i}')}}
  434. </span>
  435. <span v-else></span>
  436. </template>
  437. </el-table-column>
  438. <el-table-column prop="created_time" align="center" min-width="30px" label="收费状态" sortable>
  439. <template slot-scope="scope">
  440. <span v-if="scope.row.is_settle == 1">
  441. 已收费
  442. </span>
  443. <span v-if="scope.row.is_settle == 2 || scope.row.is_settle == 0">
  444. 未收费
  445. </span>
  446. <span v-else></span>
  447. </template>
  448. </el-table-column>
  449. </el-table>
  450. <el-dialog
  451. title="选择执行时间"
  452. :visible.sync="execTimeDialogVisible"
  453. width="400px"
  454. :modal-append-to-body="false"
  455. >
  456. <el-date-picker
  457. v-model="execTime"
  458. format="yyyy-MM-dd HH:mm:00"
  459. value-format="yyyy-MM-dd HH:mm:00"
  460. type="datetime"
  461. placeholder="选择执行时间"
  462. style="width:100%"
  463. ></el-date-picker>
  464. <span slot="footer" class="dialog-footer">
  465. <el-button @click="execTimeDialogVisible = false">取 消</el-button>
  466. <el-button type="primary" @click="excutionDoctorAdvice" :loading="exceLoading">保 存</el-button>
  467. </span>
  468. </el-dialog>
  469. <el-dialog
  470. title="选择执行时间"
  471. :visible.sync="execTimeDialogVisibleOne"
  472. width="400px"
  473. :modal-append-to-body="false"
  474. >
  475. <el-date-picker
  476. v-model="execTime"
  477. format="yyyy-MM-dd HH:mm:00"
  478. value-format="yyyy-MM-dd HH:mm:00"
  479. type="datetime"
  480. placeholder="选择执行时间"
  481. style="width:100%"
  482. ></el-date-picker>
  483. <span slot="footer" class="dialog-footer">
  484. <el-button @click="execTimeDialogVisibleOne = false">取 消</el-button>
  485. <el-button type="primary" @click="excutionDoctorAdviceOne" :loading="exceLoading">保 存</el-button>
  486. </span>
  487. </el-dialog>
  488. <el-dialog
  489. title="药品统计表"
  490. :visible.sync="startdialogVisible"
  491. width="60%">
  492. <span>
  493. <div class="cell clearfix" style="margin-bottom:10px">
  494. <label class="title"> <span class="name">排班班次</span> : </label>
  495. <el-select v-model="schedule_type" placeholder="请选择" @change="changeScheduleType" >
  496. <el-option
  497. v-for="item in schedulArr"
  498. :key="item.value"
  499. :label="item.label"
  500. :value="item.value">
  501. </el-option>
  502. </el-select>
  503. <label class="title"> <span class="name">病区选择</span> : </label>
  504. <el-select v-model="partion_type" placeholder="请选择" @change="changePartionType" multiple >
  505. <el-option
  506. v-for="item in partitionArr"
  507. :key="item.id"
  508. :label="item.name"
  509. :value="item.id">
  510. </el-option>
  511. </el-select>
  512. <el-button size="small" icon="el-icon-printer" @click="toPrintOne" type="primary">打印</el-button>
  513. <el-button size="small" @click="toExportListOne" type="primary">导出</el-button>
  514. </div>
  515. <el-table
  516. :data="tableList"
  517. border
  518. :row-style="{ color: '#303133' }"
  519. :header-cell-style="{
  520. backgroundColor: 'rgb(245, 247, 250)',
  521. color: '#606266'
  522. }"
  523. >
  524. <el-table-column align="center" label="序号">
  525. <template slot-scope="scope">
  526. {{scope.$index+1}}
  527. </template>
  528. </el-table-column>
  529. <el-table-column align="center" label="药品名称">
  530. <template slot-scope="scope">
  531. {{scope.row.advice_name}}
  532. </template>
  533. </el-table-column>
  534. <el-table-column align="center" label="规格">
  535. <template slot-scope="scope">
  536. {{scope.row.specification_name}}
  537. </template>
  538. </el-table-column>
  539. <el-table-column align="center" label="数量">
  540. <template slot-scope="scope">
  541. <span v-if="config.is_open!=1">{{getCount(scope.row.child)}}</span>
  542. <span v-if="config.is_open ==1">{{getHisCount(scope.row.child,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
  543. </template>
  544. </el-table-column>
  545. <el-table-column align="center" label="厂家">
  546. <template slot-scope="scope">
  547. {{scope.row.manufacturer_name}}
  548. </template>
  549. </el-table-column>
  550. </el-table>
  551. </span>
  552. <span slot="footer" class="dialog-footer">
  553. <el-button @click="startdialogVisible = false">取 消</el-button>
  554. <el-button type="primary" @click="startdialogVisible = false">确 定</el-button>
  555. </span>
  556. </el-dialog>
  557. <!-- 长沙南雅 -->
  558. <el-dialog
  559. title="药品统计表"
  560. :visible.sync="startdialogVisibleOne"
  561. width="70%">
  562. <span>
  563. <div class="cell clearfix" style="margin-bottom:10px">
  564. <label class="title"> <span class="name">排班班次</span> : </label>
  565. <el-select v-model="schedule_type" placeholder="请选择" @change="changeScheduleTypeOne" >
  566. <el-option
  567. v-for="item in schedulArr"
  568. :key="item.value"
  569. :label="item.label"
  570. :value="item.value">
  571. </el-option>
  572. </el-select>
  573. <label class="title"> <span class="name">病区选择</span> : </label>
  574. <el-select v-model="partion_type" placeholder="请选择" @change="changePartionTypeOne" multiple>
  575. <el-option
  576. v-for="item in partitionArr"
  577. :key="item.id"
  578. :label="item.name"
  579. :value="item.id">
  580. </el-option>
  581. </el-select>
  582. <el-button size="small" icon="el-icon-printer" @click="toPrintTwo" type="primary">打印</el-button>
  583. <!-- <el-button size="small" @click="toExportListOne" type="primary">导出</el-button> -->
  584. <!-- <el-button @click="toJiao()">脚本</el-button> -->
  585. </div>
  586. <el-table
  587. :data="tableDataList"
  588. border
  589. :row-style="{ color: '#303133' }"
  590. :header-cell-style="{
  591. backgroundColor: 'rgb(245, 247, 250)',
  592. color: '#606266'
  593. }"
  594. >
  595. <el-table-column
  596. align="center"
  597. prop="name"
  598. label="序号"
  599. width="100"
  600. >
  601. <template slot-scope="scope" >
  602. <span v-if="scope.row.is_total == 1">{{scope.$index+1}}</span>
  603. <span v-if="scope.row.is_total == 0">总计</span>
  604. </template>
  605. </el-table-column>
  606. <el-table-column
  607. align="center"
  608. prop="name"
  609. label="区域"
  610. width="100"
  611. >
  612. <template slot-scope="scope" >
  613. <span v-if="scope.row.is_total ==1">
  614. <!-- {{getZoneName(scope.row.child)}} -->
  615. {{scope.row.zone_name }}
  616. </span>
  617. </template>
  618. </el-table-column>
  619. <!-- <el-table-column
  620. align="center"
  621. prop="name"
  622. label="责护"
  623. width="100"
  624. >
  625. <template slot-scope="scope">
  626. <span v-if="scope.row.is_total ==1">
  627. {{getAdminUserName(scope.row.execution_staff)}}
  628. </span>
  629. </template>
  630. </el-table-column> -->
  631. <el-table-column
  632. align="center"
  633. prop="name"
  634. label="透析模式"
  635. width="150"
  636. >
  637. <template slot-scope="scope">
  638. <span v-if="scope.row.is_total == 1">
  639. {{getModeId(scope.row.child)}}
  640. </span>
  641. </template>
  642. </el-table-column>
  643. <el-table-column
  644. align="center"
  645. prop="name"
  646. v-for="(item,index) in tabHead"
  647. :key="index"
  648. :label="item.advice_name"
  649. >
  650. <template slot-scope="scope">
  651. <span v-if="scope.row.is_total ==1">
  652. <span v-if="scope.row.child[index]!=null">{{getDrugCount(scope.row.child,item.advice_name)}}</span>
  653. <span v-if="item&&item.advice_name == '肝素钠注射剂'">
  654. {{getDrugAdviceCount(item.advice_name,scope.row.zone_name)}}
  655. </span>
  656. <span v-if="scope.row.child[index]==null && getDrugCount(scope.row.child,item.advice_name)>0">
  657. {{getDrugCount(scope.row.child,item.advice_name)}}
  658. <span v-if="item&&item.advice_name == '肝素钠注射剂'">
  659. {{getDrugAdviceCount(item.advice_name,scope.row.zone_name)}}
  660. </span>
  661. </span>
  662. </span>
  663. <span v-if="scope.row.is_total == 0">
  664. {{getAllSumCount(item.advice_name)}}
  665. </span>
  666. </template>
  667. </el-table-column>
  668. </el-table>
  669. </span>
  670. <span slot="footer" class="dialog-footer">
  671. <el-button @click="startdialogVisibleOne = false">取 消</el-button>
  672. <el-button type="primary" @click="startdialogVisibleOne = false">确 定</el-button>
  673. </span>
  674. </el-dialog>
  675. <el-dialog
  676. title="耗材统计表"
  677. :visible.sync="startdialogVisibleTwo"
  678. width="60%">
  679. <span>
  680. <div class="cell clearfix" style="margin-bottom:10px">
  681. <label class="title"> <span class="name">排班班次</span> : </label>
  682. <el-select v-model="schedule_type" placeholder="请选择" @change="changeScheduleTypeTwo" >
  683. <el-option
  684. v-for="item in schedulArr"
  685. :key="item.value"
  686. :label="item.label"
  687. :value="item.value">
  688. </el-option>
  689. </el-select>
  690. <label class="title"> <span class="name">病区选择</span> : </label>
  691. <el-select v-model="partion_type" placeholder="请选择" @change="changePartionTypeTwo" multiple >
  692. <el-option
  693. v-for="item in partitionArr"
  694. :key="item.id"
  695. :label="item.name"
  696. :value="item.id">
  697. </el-option>
  698. </el-select>
  699. <el-button size="small" icon="el-icon-printer" @click="toPrintThree" type="primary">打印</el-button>
  700. <el-button size="small" @click="toExportListTwo" type="primary">导出</el-button>
  701. </div>
  702. <el-table
  703. :data="tableProjectList"
  704. border
  705. :row-style="{ color: '#303133' }"
  706. :header-cell-style="{
  707. backgroundColor: 'rgb(245, 247, 250)',
  708. color: '#606266'
  709. }"
  710. >
  711. <el-table-column align="center" label="序号">
  712. <template slot-scope="scope">
  713. {{scope.$index+1}}
  714. </template>
  715. </el-table-column>
  716. <el-table-column align="center" label="耗材名称">
  717. <template slot-scope="scope">
  718. {{scope.row.good_name}}
  719. </template>
  720. </el-table-column>
  721. <el-table-column align="center" label="规格">
  722. <template slot-scope="scope">
  723. {{scope.row.specification_name}}
  724. </template>
  725. </el-table-column>
  726. <el-table-column align="center" label="数量">
  727. <template slot-scope="scope">
  728. {{scope.row.count}}
  729. </template>
  730. </el-table-column>
  731. </el-table>
  732. </span>
  733. <span slot="footer" class="dialog-footer">
  734. <el-button @click="startdialogVisibleTwo = false">取 消</el-button>
  735. <el-button type="primary" @click="startdialogVisibleTwo = false">确 定</el-button>
  736. </span>
  737. </el-dialog>
  738. <el-dialog
  739. title="药品月统计表"
  740. :visible.sync="startMothdialogVisible"
  741. width="60%">
  742. <span>
  743. <div class="cell clearfix" style="margin-bottom:10px">
  744. <label class="title"> <span class="name">日期查询</span> : </label>
  745. 开始:
  746. <el-date-picker
  747. v-model="start_time"
  748. prefix-icon="el-icon-date"
  749. :editable="false"
  750. style="width: 250px;"
  751. type="date"
  752. placeholder="选择日期时间"
  753. align="right"
  754. format="yyyy-MM-dd"
  755. value-format="yyyy-MM-dd"
  756. ></el-date-picker>
  757. 结束:
  758. <el-date-picker
  759. v-model="end_time"
  760. prefix-icon="el-icon-date"
  761. :editable="false"
  762. style="width: 250px;"
  763. type="date"
  764. placeholder="选择日期时间"
  765. align="right"
  766. format="yyyy-MM-dd"
  767. value-format="yyyy-MM-dd"
  768. ></el-date-picker>
  769. <el-button size="small" @click="getAllQuery" type="primary">查询</el-button>
  770. <el-button size="small" icon="el-icon-printer" @click="toPrintTen" type="primary">打印</el-button>
  771. <el-button size="small" @click="toExportListThree" type="primary">导出</el-button>
  772. </div>
  773. <el-table
  774. :data="tableMonthList"
  775. border
  776. :row-style="{ color: '#303133' }"
  777. :header-cell-style="{
  778. backgroundColor: 'rgb(245, 247, 250)',
  779. color: '#606266'
  780. }"
  781. >
  782. <el-table-column align="center" label="序号">
  783. <template slot-scope="scope">
  784. {{scope.$index+1}}
  785. </template>
  786. </el-table-column>
  787. <el-table-column align="center" label="药品名称">
  788. <template slot-scope="scope">
  789. {{scope.row.advice_name}}
  790. </template>
  791. </el-table-column>
  792. <el-table-column align="center" label="规格">
  793. <template slot-scope="scope">
  794. {{scope.row.specification_name}}
  795. </template>
  796. </el-table-column>
  797. <el-table-column align="center" label="数量">
  798. <template slot-scope="scope">
  799. <span v-if="config.is_open!=1">{{getCount(scope.row.child)}}</span>
  800. <span v-if="config.is_open ==1">{{getHisCount(scope.row.child,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
  801. </template>
  802. </el-table-column>
  803. <el-table-column align="center" label="厂家">
  804. <template slot-scope="scope">
  805. {{scope.row.manufacturer_name}}
  806. </template>
  807. </el-table-column>
  808. </el-table>
  809. </span>
  810. <span slot="footer" class="dialog-footer">
  811. <el-button @click="startMothdialogVisible = false">取 消</el-button>
  812. <el-button type="primary" @click="startMothdialogVisible = false">确 定</el-button>
  813. </span>
  814. </el-dialog>
  815. <el-dialog
  816. title="耗材统计表"
  817. :visible.sync="startMonthdialogVisible"
  818. width="60%">
  819. <span>
  820. <div class="cell clearfix" style="margin-bottom:10px">
  821. <label class="title"> <span class="name">日期查询</span> : </label>
  822. 开始:
  823. <el-date-picker
  824. v-model="start_time"
  825. prefix-icon="el-icon-date"
  826. :editable="false"
  827. style="width: 250px;"
  828. type="date"
  829. placeholder="选择日期时间"
  830. align="right"
  831. format="yyyy-MM-dd"
  832. value-format="yyyy-MM-dd"
  833. ></el-date-picker>
  834. 结束:
  835. <el-date-picker
  836. v-model="end_time"
  837. prefix-icon="el-icon-date"
  838. :editable="false"
  839. style="width: 250px;"
  840. type="date"
  841. placeholder="选择日期时间"
  842. align="right"
  843. format="yyyy-MM-dd"
  844. value-format="yyyy-MM-dd"
  845. ></el-date-picker>
  846. <el-button size="small" @click="getGoodAllQuery" type="primary">查询</el-button>
  847. <el-button size="small" icon="el-icon-printer" @click="toExportListFour" type="primary">打印</el-button>
  848. <el-button size="small" @click="toExportListFour" type="primary">导出</el-button>
  849. </div>
  850. <el-table
  851. :data="tableProjectList"
  852. border
  853. :row-style="{ color: '#303133' }"
  854. :header-cell-style="{
  855. backgroundColor: 'rgb(245, 247, 250)',
  856. color: '#606266'
  857. }"
  858. >
  859. <el-table-column align="center" label="序号">
  860. <template slot-scope="scope">
  861. {{scope.$index+1}}
  862. </template>
  863. </el-table-column>
  864. <el-table-column align="center" label="耗材名称">
  865. <template slot-scope="scope">
  866. {{scope.row.good_name}}
  867. </template>
  868. </el-table-column>
  869. <el-table-column align="center" label="规格">
  870. <template slot-scope="scope">
  871. {{scope.row.specification_name}}
  872. </template>
  873. </el-table-column>
  874. <el-table-column align="center" label="数量">
  875. <template slot-scope="scope">
  876. {{scope.row.count}}
  877. </template>
  878. </el-table-column>
  879. </el-table>
  880. </span>
  881. <span slot="footer" class="dialog-footer">
  882. <el-button @click="startMonthdialogVisible = false">取 消</el-button>
  883. <el-button type="primary" @click="startMonthdialogVisible = false">确 定</el-button>
  884. </span>
  885. </el-dialog>
  886. </div>
  887. </div>
  888. </template>
  889. <script>
  890. const moment = require('moment')
  891. import { getSchedualPatient, GetAllZone,getDialysisAdviceToday,getDialysisProject } from "@/api/dialysis";
  892. import { parseTime } from "@/utils";
  893. import { uParseTime } from '@/utils/tools'
  894. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  895. import { getPrintTemplate } from "@/api/data";
  896. import { getNewSchedualDoctors,excutionDoctorAdvice,checkNewDoctorAdvice,settleNewDoctorAdvice,excutionDoctorAdviceById,GetMobileScheduleList,getDoctorAdviceMonthList,getHisPrescrptionProjectMonthList } from '@/api/advice'
  897. import { PostSearch } from '@/api/patient'
  898. export default {
  899. name: "Patient",
  900. data() {
  901. return {
  902. crumbs: [
  903. { path: false, name: "透析管理" },
  904. { path: false, name: "透析监测" }
  905. ],
  906. loading: false,
  907. time: "",
  908. search_mode: 1, // 搜索模式 1.日期搜索 2.病人搜索
  909. patient_search_keyword: "",
  910. SchedualPatientsTableData: [],
  911. active: true,
  912. schedulType: 0,
  913. schedulArr: [
  914. { value: 0, label: "全部" },
  915. { value: 1, label: "上午" },
  916. { value: 2, label: "下午" },
  917. { value: 3, label: "晚上" }
  918. ],
  919. template_id: 0,
  920. partitionType: 0,
  921. costType:0,
  922. total: 0,
  923. listQuery: {
  924. page: 1,
  925. limit: 10,
  926. schedul_type: 0,
  927. partition_type: 0,
  928. schedul_time: "",
  929. keywords: "",
  930. },
  931. selecting_schs: [],
  932. partitionArr: [],
  933. scheduleMap:[],
  934. show:true,
  935. showOne:false,
  936. deliveryWay:[],
  937. executionList:[
  938. {id:0,name:"全部"},
  939. {id:1,name:"已执行"},
  940. {id:2,name:"未执行"},
  941. ],
  942. delivery_way:0,
  943. patient_id:0,
  944. org_id:0,
  945. excution_way:0,
  946. options:[
  947. {id:0,name:"请选择"},
  948. {id:1,name:"按床位排序"},
  949. {id:2,name:"按签到时间排序"},
  950. ],
  951. costArr:[
  952. {id:0,name:"全部"},
  953. {id:1,name:"已收费"},
  954. {id:2,name:"未收费"}
  955. ],
  956. sort:0,
  957. config:{},
  958. execTime: '',
  959. execTimeDialogVisible:false,
  960. exceLoading:false,
  961. is_sort:0,
  962. hoverOrderArr:[],
  963. is_status:0,
  964. execTimeDialogVisibleOne:false,
  965. current_row:{},
  966. tableList:[],
  967. startdialogVisible:false,
  968. startdialogVisibleOne:false,
  969. startdialogVisibleTwo:false,
  970. startMonthdialogVisible:false,
  971. schedule_type:0,
  972. partion_type:0,
  973. druglist:[],
  974. config:{},
  975. tabHead:[],
  976. tableDataList:[],
  977. adminUserList:[],
  978. doctorMap:[],
  979. excutList:[],
  980. execution_frequency:"",
  981. zoneIdList:[],
  982. partion_str:"",
  983. keyword:"",
  984. tableProjectList:[],
  985. manufacturerList:[],
  986. start_time: moment().startOf('month').format('YYYY-MM-DD'),
  987. end_time: moment().endOf('month').format('YYYY-MM-DD'),
  988. startMothdialogVisible:false,
  989. adviceMonthList:[],
  990. hisAdviceMonthList:[],
  991. tableMonthList:[]
  992. };
  993. },
  994. created() {
  995. var date = new Date();
  996. this.time = date;
  997. var year = date.getFullYear();
  998. var month = date.getMonth() + 1;
  999. var day = date.getDate();
  1000. if (month < 10) {
  1001. month = "0" + month;
  1002. }
  1003. if (day < 10) {
  1004. day = "0" + day;
  1005. }
  1006. var nowDate = year + "-" + month + "-" + day;
  1007. var date = new Date(nowDate + " 00:00:00");
  1008. this.listQuery.schedul_time = date.getTime();
  1009. this.getAllZone();
  1010. this.getTemplateInfo();
  1011. this.requestSchedualDoctors(this.time)
  1012. this.org_id = this.$store.getters.xt_user.template_info.org_id;
  1013. },
  1014. methods: {
  1015. getTemplateInfo() {
  1016. getPrintTemplate().then(response => {
  1017. if (response.data.state == 0) {
  1018. this.$message.error(response.data.msg);
  1019. return false;
  1020. } else {
  1021. var template = response.data.data.template;
  1022. this.template_id = template.template_id;
  1023. }
  1024. });
  1025. },
  1026. clickCurrent(val) {
  1027. //console.log(val);
  1028. this.$router.push({
  1029. path: "/dialysis/details",
  1030. query: { patient_id: val.patient_id, date: val.sch_time_int,mode_id:val.mode_id }
  1031. });
  1032. },
  1033. selectSchedulType(scheduleType) {
  1034. this.schedulType = scheduleType;
  1035. this.listQuery.schedul_type = scheduleType;
  1036. this.requestSchedualDoctors(this.time);
  1037. },
  1038. selectPartitionType(partitionType) {
  1039. this.partitionType = partitionType;
  1040. this.listQuery.partition_type = partitionType;
  1041. this.requestSchedualDoctors(this.time);
  1042. },
  1043. selectCostType(costType){
  1044. this.costType = costType
  1045. this.requestSchedualDoctors(this.time);
  1046. },
  1047. selectDeliveryWay(val){
  1048. this.delivery_way = val
  1049. this.requestSchedualDoctors(this.time)
  1050. },
  1051. selectFrequencyWay(val){
  1052. this.execution_frequency = val
  1053. this.requestSchedualDoctors(this.time)
  1054. },
  1055. selectExcutionWay(val){
  1056. this.excution_way = val
  1057. this.requestSchedualDoctors(this.time)
  1058. },
  1059. changeTime() {
  1060. this.listQuery.schedul_time = this.time;
  1061. this.requestSchedualDoctors(this.time)
  1062. },
  1063. getAllZone: function() {
  1064. GetAllZone().then(response => {
  1065. if (response.data.state == 0) {
  1066. this.$message.error(response.data.msg);
  1067. return false;
  1068. } else {
  1069. this.partitionArr = response.data.data.zone;
  1070. for(let i=0;i<this.partitionArr.length;i++){
  1071. this.zoneIdList.push(this.partitionArr[i].id)
  1072. }
  1073. // this.partitionArr.unshift({ id: 0, name: "全部" });
  1074. var dics = response.data.data.dics
  1075. var obj = {id:0,name:"全部"}
  1076. this.deliveryWay.push(obj)
  1077. this.deliveryWay.push(...dics)
  1078. var objOne = {id:0,name:"全部"}
  1079. this.excutList.push(objOne)
  1080. var efs = response.data.data.efs
  1081. this.excutList.push(...efs)
  1082. console.log("执行瓶绿",this.excutList)
  1083. }
  1084. });
  1085. },
  1086. requestSchedualDoctors (time) {
  1087. var name = ""
  1088. for(let i=0;i<this.deliveryWay.length;i++){
  1089. if(this.delivery_way == this.deliveryWay[i].id){
  1090. name = this.deliveryWay[i].name
  1091. }
  1092. }
  1093. if(name == '全部'){
  1094. name = ""
  1095. }
  1096. var nameOne = ""
  1097. for(let i=0;i<this.excutList.length;i++){
  1098. if(this.execution_frequency == this.excutList[i].id){
  1099. nameOne = this.excutList[i].name
  1100. }
  1101. }
  1102. if(nameOne == '全部'){
  1103. nameOne = ""
  1104. }
  1105. let newTime = moment(time).format('YYYY-MM-DD')
  1106. var schedule_type = this.listQuery.schedul_type
  1107. var partition_type = this.listQuery.partition_type
  1108. getNewSchedualDoctors({date: newTime,patient_type: 0,advice_type: 2,delivery_way:name,schedule_type:schedule_type,partition_type:partition_type,patient_id:this.patient_id,excution_way:this.excution_way,cost_type:this.costType,execution_frequency:nameOne,keyword:this.keyword}).then(rs => {
  1109. var resp = rs.data
  1110. if (resp.state == 1) {
  1111. this.admin_users = resp.data.adminUser
  1112. var config = resp.data.config
  1113. this.config = config
  1114. let project_config = resp.data.project_config
  1115. if(project_config.is_open == 1){
  1116. this.project = resp.data.project
  1117. console.log("wode 2o2o3o3o23o32o32o23o32o32o", this.project)
  1118. let projectArr = []
  1119. if(this.org_id!= 10318 && this.org_id!=10265){
  1120. this.project.map(item => {
  1121. resp.data.hisAdvices.map(it => {
  1122. if(item.patient_id == it.patient_id){
  1123. projectArr.push(item)
  1124. }
  1125. })
  1126. })
  1127. console.log("projectArr2332323232323232",projectArr)
  1128. resp.data.hisAdvices.map((item,index) => {
  1129. if(projectArr[index].project && projectArr[index].project.length > 0){
  1130. projectArr[index].project.map(it => {
  1131. let obj = {
  1132. advice_doctor: it.doctor,
  1133. start_time:it.start_time,
  1134. advice_name:it.team_id > 0 && it.is_check_team == 1 ? it.team.project_team : it.type == 2 ? it.project.project_name+' '+it.count + it.project.unit : it.good_info.good_name +' '+it.count+ it.good_info.packing_unit,
  1135. execution_time:it.execution_time,
  1136. execution_state:it.execution_state,
  1137. execution_staff:it.execution_staff,
  1138. check_time:it.check_time,
  1139. check_state:it.check_state,
  1140. checker:it.checker,
  1141. created_time:it.ctime,
  1142. delivery_way:'',
  1143. execution_frequency:'',
  1144. remark:'',
  1145. id:it.id,
  1146. patient_id:it.patient_id,
  1147. parent_id:0,
  1148. groupno:0,
  1149. sort:item.device_number.sort,
  1150. assess_time:item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
  1151. }
  1152. item.doctor_advice.push(obj)
  1153. })
  1154. }
  1155. })
  1156. console.log("中国人民名份反反复复方法 ",resp.data.hisAdvices)
  1157. }
  1158. }
  1159. if(config.is_open == 0 || config.is_open == 2){
  1160. var schedules = resp.data.scheduals
  1161. var newList = []
  1162. if(this.is_sort == 0){
  1163. newList = schedules
  1164. }
  1165. if(this.is_sort == 0 || this.is_sort == 1){
  1166. schedules.map(item => {
  1167. item.is_sort = item.device_number.sort
  1168. item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
  1169. })
  1170. newList = schedules.sort(this.compare('is_sort'))
  1171. }
  1172. if(this.is_sort == 2){
  1173. schedules.map(item => {
  1174. item.is_sort = item.device_number.sort
  1175. item.assess_time = item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
  1176. })
  1177. newList = schedules.sort(this.compare('assess_time'))
  1178. }
  1179. this.show = true
  1180. this.showOne = false
  1181. let arr = []
  1182. let newArr = []
  1183. let newSchedules = []
  1184. newList.map(item => {
  1185. item.doctor_advice.map(it =>{
  1186. it.name = item.patient.name
  1187. if(item.prescription != null){
  1188. it.dialyzer_perfusion_apparatus = item.prescription.dialyzer_perfusion_apparatus
  1189. it.dialysis_dialyszers = item.prescription.dialysis_dialyszers
  1190. it.dialysis_irrigation = item.prescription.dialysis_irrigation
  1191. it.anticoagulant = item.prescription.anticoagulant
  1192. }
  1193. it.schedule_type = item.schedule_type
  1194. it.zoneId = item.device_number.zone.id
  1195. it.dialysis_no = item.patient.dialysis_no
  1196. it.mode_id = item.mode_id
  1197. it.number = item.device_number.number
  1198. it.zone_name = item.device_number.zone.name
  1199. it.sort = item.device_number.sort,
  1200. arr.push(it)
  1201. })
  1202. item.is_sort = item.device_number.sort
  1203. item.assess_time = item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
  1204. })
  1205. console.log("schedules9999999998888888888",schedules)
  1206. if(this.schedulType == 0){
  1207. newSchedules = arr
  1208. }else{
  1209. arr.map(item => {
  1210. if (item.schedule_type == this.schedulType) {
  1211. newSchedules.push(item)
  1212. }
  1213. })
  1214. }
  1215. if(this.partitionType == 0){
  1216. this.scheduleMap = newSchedules
  1217. }else {
  1218. let a = []
  1219. arr.map(item => {
  1220. if(this.partitionType == item.zoneId){
  1221. a.push(item)
  1222. }
  1223. })
  1224. this.scheduleMap = a
  1225. }
  1226. this.scheduleMap.map(ele => {
  1227. let firstIndex = this.scheduleMap.findIndex(item => {
  1228. return item.patient_id === ele.patient_id // 当category相同的时候,返回第一个相同的Index 赋值给 firstIndex
  1229. })
  1230. if (this.scheduleMap.findIndex(item => { return item.patient_id === firstIndex}) === -1) {
  1231. newArr.push({
  1232. length: this.scheduleMap.filter(item => {
  1233. return item.patient_id === ele.patient_id //利用数组的filter方法,过滤出相同category的数组的长度。数组长度-即为跨多少行
  1234. }).length,
  1235. firstIndex: firstIndex // firstIndex 返回的是第一个catergory就满足的第一个Index,即为rowIndex开始于第几行。
  1236. })
  1237. }
  1238. })
  1239. this.indexInfoList = newArr
  1240. console.log("this.scheduleMap", this.scheduleMap)
  1241. }
  1242. if(config.is_open == 1){
  1243. this.show = false
  1244. this.showOne = true
  1245. var schedules = resp.data.hisAdvices
  1246. let arr = []
  1247. let newArr = []
  1248. let newSchedules = []
  1249. var newList = []
  1250. if(this.is_sort == 0){
  1251. newList = schedules
  1252. }
  1253. if(this.is_sort == 1){
  1254. schedules.map(item => {
  1255. item.is_sort = item.device_number.sort
  1256. item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
  1257. })
  1258. newList = schedules.sort(this.compare('is_sort'))
  1259. }
  1260. if(this.is_sort == 2){
  1261. schedules.map(item => {
  1262. item.is_sort = item.device_number.sort
  1263. item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
  1264. })
  1265. newList = schedules.sort(this.compare('assess_time'))
  1266. }
  1267. newList.map(item => {
  1268. item.doctor_advice.map(it =>{
  1269. it.name = item.patient.name
  1270. if(item.prescription != null){
  1271. it.dialyzer_perfusion_apparatus = item.prescription.dialyzer_perfusion_apparatus
  1272. it.dialysis_dialyszers = item.prescription.dialysis_dialyszers
  1273. it.dialysis_irrigation = item.prescription.dialysis_irrigation
  1274. it.anticoagulant = item.prescription.anticoagulant
  1275. }
  1276. it.schedule_type = item.schedule_type
  1277. it.zoneId = item.device_number.zone.id
  1278. it.dialysis_no = item.patient.dialysis_no
  1279. it.mode_id = item.mode_id
  1280. it.number = item.device_number.number
  1281. it.zone_name = item.device_number.zone.name
  1282. it.sort = item.device_number.sort,
  1283. arr.push(it)
  1284. })
  1285. item.is_sort = item.device_number.sort
  1286. item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
  1287. })
  1288. if(this.schedulType == 0){
  1289. newSchedules = arr
  1290. }else{
  1291. arr.map(item => {
  1292. if (item.schedule_type == this.schedulType) {
  1293. newSchedules.push(item)
  1294. }
  1295. })
  1296. }
  1297. if(this.partitionType == 0){
  1298. this.scheduleMap = newSchedules
  1299. }else {
  1300. let a = []
  1301. arr.map(item => {
  1302. if(this.partitionType == item.zoneId){
  1303. a.push(item)
  1304. }
  1305. })
  1306. this.scheduleMap = a
  1307. }
  1308. this.scheduleMap.map(ele => {
  1309. let firstIndex = this.scheduleMap.findIndex(item => {
  1310. return item.patient_id === ele.patient_id // 当category相同的时候,返回第一个相同的Index 赋值给 firstIndex
  1311. })
  1312. if (this.scheduleMap.findIndex(item => { return item.patient_id === firstIndex}) === -1) {
  1313. newArr.push({
  1314. length: this.scheduleMap.filter(item => {
  1315. return item.patient_id === ele.patient_id //利用数组的filter方法,过滤出相同category的数组的长度。数组长度-即为跨多少行
  1316. }).length,
  1317. firstIndex: firstIndex // firstIndex 返回的是第一个catergory就满足的第一个Index,即为rowIndex开始于第几行。
  1318. })
  1319. }
  1320. })
  1321. this.indexInfoList = newArr
  1322. }
  1323. }
  1324. })
  1325. },
  1326. compare:function (k) {
  1327. return function (a, b) {
  1328. var M = a[k];
  1329. var N = b[k];
  1330. return M - N; // 从低向高排
  1331. // return N - M; // 从高向低排
  1332. }
  1333. },
  1334. getValue: function(val) {
  1335. if (val != undefined) {
  1336. return val.value;
  1337. } else {
  1338. return "";
  1339. }
  1340. },
  1341. handleCurrentChange(val) {
  1342. this.listQuery.page = val;
  1343. this.getSchedualPatientList();
  1344. },
  1345. changeSearchMode: function() {
  1346. if (this.search_mode == 1) {
  1347. this.search_mode = 2;
  1348. } else {
  1349. this.search_mode = 1;
  1350. }
  1351. },
  1352. searchPatientAction: function() {
  1353. this.listQuery.keywords = this.patient_search_keyword;
  1354. console.log(this.patient_search_keyword);
  1355. if (this.patient_search_keyword.length == 0) {
  1356. return;
  1357. }
  1358. this.getSchedualPatientList();
  1359. },
  1360. handleSizeChange(val) {
  1361. this.listQuery.limit = val;
  1362. this.getSchedualPatientList();
  1363. },
  1364. batchPrintAction: function() {
  1365. if (this.selecting_schs.length === 0) {
  1366. this.$message.error("请至少选择一条需要打印的内容");
  1367. return false;
  1368. }
  1369. // 模板ID为6
  1370. var sch_ids = [];
  1371. for (let index = 0; index < this.selecting_schs.length; index++) {
  1372. sch_ids.push(this.selecting_schs[index].patient_id);
  1373. }
  1374. this.$store.dispatch("SetAdviceIDs", sch_ids);
  1375. var name = ""
  1376. for(let i=0;i<this.deliveryWay.length;i++){
  1377. if(this.delivery_way == this.deliveryWay[i].id){
  1378. name = this.deliveryWay[i].name
  1379. }
  1380. }
  1381. if(name == '全部'){
  1382. name = ""
  1383. }
  1384. if(this.org_id == 9671 || this.org_id == 10340 || this.org_id == 0){
  1385. this.$router.push({ path: "/dialysis/doctorAdvicePrint/one",query:{time: new Date(this.time).getTime(),delivery_way:name,excution_way:this.excution_way} });
  1386. }
  1387. if(this.org_id != 9671 && this.org_id != 10340 && this.org_id!=0){
  1388. this.$router.push({ path: "/dialysis/doctorAdvicePrint",query:{time: new Date(this.time).getTime(),delivery_way:name,excution_way:this.excution_way} });
  1389. }
  1390. },
  1391. signPrintAction:function(){
  1392. if (this.selecting_schs.length === 0) {
  1393. this.$message.error("请至少选择一条需要打印的内容");
  1394. return false;
  1395. }
  1396. // 模板ID为6
  1397. var sch_ids = [];
  1398. for (let index = 0; index < this.selecting_schs.length; index++) {
  1399. sch_ids.push(this.selecting_schs[index].patient_id);
  1400. }
  1401. this.$store.dispatch("SetAdviceIDs", sch_ids);
  1402. var name = ""
  1403. for(let i=0;i<this.deliveryWay.length;i++){
  1404. if(this.delivery_way == this.deliveryWay[i].id){
  1405. name = this.deliveryWay[i].name
  1406. }
  1407. }
  1408. if(name == '全部'){
  1409. name = ""
  1410. }
  1411. var nameOne = ""
  1412. for(let i=0;i<this.excutList.length;i++){
  1413. if(this.execution_frequency == this.excutList[i].id){
  1414. nameOne = this.excutList[i].name
  1415. }
  1416. }
  1417. if(nameOne == '全部'){
  1418. nameOne = ""
  1419. }
  1420. this.$router.push({ path: "/dialysis/signPrint",query:{time: new Date(this.time).getTime(),delivery_way:name,execution_frequency:nameOne,patient_id:this.patient_id,keyword:this.keyword,excution_way:this.excution_way} });
  1421. },
  1422. batchPrintActionOne: function() {
  1423. if (this.selecting_schs.length === 0) {
  1424. this.$message.error("请至少选择一条需要打印的内容");
  1425. return false;
  1426. }
  1427. var sch_ids = [];
  1428. for (let index = 0; index < this.selecting_schs.length; index++) {
  1429. sch_ids.push(this.selecting_schs[index].sch_id);
  1430. }
  1431. this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
  1432. if (this.template_id == 2 || this.template_id == 0) {
  1433. this.$router.push({ path: "/dialysis/print/batch/otherone" });
  1434. } else if (this.template_id == 1) {
  1435. this.$router.push({ path: "/dialysis/print/batch" });
  1436. } else if (this.template_id == 5) {
  1437. this.$router.push({ path: "/dialysis/print/batch/fiveone" });
  1438. } else if (this.template_id == 22) {
  1439. this.$router.push({ path: "/dialysis/print/batch/twentyTwo_one" });
  1440. }
  1441. },
  1442. batchPrintActionTwo: function() {
  1443. if (this.selecting_schs.length === 0) {
  1444. this.$message.error("请至少选择一条需要打印的内容");
  1445. return false;
  1446. }
  1447. var sch_ids = [];
  1448. for (let index = 0; index < this.selecting_schs.length; index++) {
  1449. sch_ids.push(this.selecting_schs[index].sch_id);
  1450. }
  1451. this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
  1452. if (this.template_id == 2 || this.template_id == 0) {
  1453. this.$router.push({ path: "/dialysis/print/batch/othertwo" });
  1454. } else if (this.template_id == 1) {
  1455. this.$router.push({ path: "/dialysis/print/batch" });
  1456. } else if (this.template_id == 5) {
  1457. this.$router.push({ path: "/dialysis/print/batch/fivetwo" });
  1458. } else if (this.template_id == 22) {
  1459. this.$router.push({ path: "/dialysis/print/batch/twentyTwo_two" });
  1460. }
  1461. },
  1462. compare (property) {
  1463. return function (a, b) {
  1464. var value1 = a[property]
  1465. var value2 = b[property]
  1466. return value1 - value2
  1467. }
  1468. },
  1469. // tableRowClassName({ row, rowIndex }) {
  1470. // if (row.stop_state == 1 || row.execution_state == 1) {
  1471. // return 'stoped-row';
  1472. // }
  1473. // return 'success-rows'
  1474. // row.index = rowIndex
  1475. // const arr = this.hoverOrderArr
  1476. // for (let i = 0; i < arr.length; i++) {
  1477. // if (rowIndex == arr[i]) {
  1478. // return 'success-row'
  1479. // }
  1480. // }
  1481. // },
  1482. objectSpanMethod({ row, column, rowIndex, columnIndex }) {
  1483. if (columnIndex === 0) {
  1484. let index = this.indexInfoList.findIndex(item => { //遍历数组
  1485. return item.firstIndex === rowIndex
  1486. })
  1487. if (index > -1) {
  1488. return {
  1489. rowspan: this.indexInfoList[index].length,
  1490. colspan: 1
  1491. }
  1492. } else {
  1493. return {
  1494. rowspan: 0,
  1495. colspan: 0
  1496. }
  1497. }
  1498. }
  1499. if (columnIndex === 1) {
  1500. let index = this.indexInfoList.findIndex(item => { //遍历数组
  1501. return item.firstIndex === rowIndex
  1502. })
  1503. if (index > -1) {
  1504. return {
  1505. rowspan: this.indexInfoList[index].length,
  1506. colspan: 1
  1507. }
  1508. } else {
  1509. return {
  1510. rowspan: 0,
  1511. colspan: 0
  1512. }
  1513. }
  1514. }
  1515. if (columnIndex === 2) {
  1516. let index = this.indexInfoList.findIndex(item => { //遍历数组
  1517. return item.firstIndex === rowIndex
  1518. })
  1519. if (index > -1) {
  1520. return {
  1521. rowspan: this.indexInfoList[index].length,
  1522. colspan: 1
  1523. }
  1524. } else {
  1525. return {
  1526. rowspan: 0,
  1527. colspan: 0
  1528. }
  1529. }
  1530. }
  1531. },
  1532. adviceNameShow({ row, column, rowIndex, columnIndex }) {
  1533. if (columnIndex == 2) {
  1534. return 'dialysisadvicenamedisplay'
  1535. } else {
  1536. return ''
  1537. }
  1538. },
  1539. getXuserName(id) {
  1540. if (id <= 0) {
  1541. return ''
  1542. }
  1543. var name = ''
  1544. if (
  1545. this.admin_users == null ||
  1546. typeof this.admin_users.length === 'undefined'
  1547. ) {
  1548. return name
  1549. }
  1550. var leng = this.admin_users.length
  1551. if (leng == 0) {
  1552. return name
  1553. }
  1554. for (let index = 0; index < leng; index++) {
  1555. if (this.admin_users[index].id == id) {
  1556. name = this.admin_users[index].name
  1557. break
  1558. }
  1559. }
  1560. return name
  1561. },
  1562. getAdviceContent(row, isChild) {
  1563. console.log("rwoo22222222222222333",row)
  1564. let tempSingleDoseDesc = ''
  1565. let tempDrugSpecDesc = ''
  1566. let tempPrescribingNumberDesc = ''
  1567. if (row.prescribing_number) {
  1568. tempPrescribingNumberDesc = row.prescribing_number + '' + row.prescribing_number_unit
  1569. }
  1570. if (row.single_dose) {
  1571. if (this.template_id != 6) {
  1572. tempSingleDoseDesc =' 单次用量 ' + ' ' + row.single_dose + '' + row.single_dose_unit
  1573. } else {
  1574. tempSingleDoseDesc = row.single_dose + row.single_dose_unit
  1575. }
  1576. }
  1577. if (row.advice_desc) {
  1578. tempDrugSpecDesc = '(' + row.advice_desc + row.drug_spec_unit + ')'
  1579. }
  1580. if (isChild == 1) {
  1581. // 不是子药
  1582. // console.log(tempDrugSpecDesc)
  1583. // console.log(tempPrescribingNumberDesc)
  1584. // console.log(tempSingleDoseDesc)
  1585. // console.log(11,row.delivery_way)
  1586. // console.log(22,row.execution_frequency)
  1587. return (row.advice_name + tempDrugSpecDesc + ' ' + tempPrescribingNumberDesc + tempSingleDoseDesc +' ' + row.delivery_way +' ' +row.execution_frequency)
  1588. } else {
  1589. // 是子药
  1590. return (row.advice_name +tempDrugSpecDesc +' ' + tempPrescribingNumberDesc + tempSingleDoseDesc)
  1591. }
  1592. },
  1593. handleSelectionChange(val){
  1594. this.selecting_schs = val;
  1595. this.is_status = 1
  1596. },
  1597. handleSelectionChangeOne(val){
  1598. this.selecting_schs = val;
  1599. this.is_status = 1
  1600. console.log("val32323323223",val)
  1601. },
  1602. querySearchAsync(keyword, cb) {
  1603. let key = '';
  1604. if (keyword != undefined) {
  1605. key = keyword
  1606. }
  1607. let searchArray = []
  1608. PostSearch(key).then(response => {
  1609. if (response.data.state == 1) {
  1610. searchArray = response.data.data.patient
  1611. console.log('searcharrya', searchArray)
  1612. cb(searchArray)
  1613. }
  1614. })
  1615. return searchArray
  1616. },
  1617. handleSelect(val) {
  1618. this.patient_id = val.id
  1619. this.listQuery.keyword = val.name
  1620. this.requestSchedualDoctors(this.time)
  1621. },
  1622. toSeach(){
  1623. this.patient_id = 0
  1624. this.requestSchedualDoctors(this.time)
  1625. },
  1626. toSeachOne(){
  1627. this.requestSchedualDoctors(this.time)
  1628. },
  1629. toExcution(){
  1630. if(this.selecting_schs.length ==0){
  1631. this.$message.error("请勾选需要执行的医嘱")
  1632. return false
  1633. }
  1634. console.log("hhhahhhahhh",this.is_status)
  1635. if(this.is_status == 1){
  1636. this.execTimeDialogVisible = true
  1637. }
  1638. if(this.is_status == 2){
  1639. this.execTimeDialogVisibleOne = true
  1640. }
  1641. },
  1642. excutionDoctorAdvice(){
  1643. if (this.execTime.length == 0) {
  1644. this.$message.error('请选择执行时间!')
  1645. return false
  1646. }
  1647. var execTime = Math.round(new Date(this.execTime).getTime() / 1000)
  1648. var ids=[]
  1649. if(this.selecting_schs!=null && this.selecting_schs.length >0){
  1650. for(let i=0;i<this.selecting_schs.length;i++){
  1651. ids.push(this.selecting_schs[i].patient_id)
  1652. }
  1653. }
  1654. var str = ids.join(",")
  1655. var params = {
  1656. str:str,
  1657. advice_date: moment(this.time).format('YYYY-MM-DD'),
  1658. is_open:this.config.is_open,
  1659. exec_time:execTime
  1660. }
  1661. console.log("params232322323wo",params)
  1662. this.exceLoading = true
  1663. excutionDoctorAdvice(params).then(response=>{
  1664. if(response.data.state == 1){
  1665. if(response.data.data.msg == 2){
  1666. var drug_name = response.data.data.drug.drug_name
  1667. var dose = response.data.data.drug.dose
  1668. var dose_unit = response.data.data.drug.dose_unit
  1669. var min_number = response.data.data.drug.min_number
  1670. var max_unit = response.data.data.drug.max_unit
  1671. var min_unit = response.data.data.drug.min_unit
  1672. var str = drug_name + " "+dose+dose_unit +"*"+min_number +max_unit +"/"+min_unit
  1673. this.$message.error(str +"库存不足,执行失败!")
  1674. this.exceLoading = false
  1675. this.execTimeDialogVisible = false
  1676. this.requestSchedualDoctors(this.time)
  1677. }
  1678. if(response.data.data.msg == 3){
  1679. this.$message.error("执行人和核对人不能是同一个人,执行失败!")
  1680. }
  1681. }
  1682. })
  1683. },
  1684. toCheck(){
  1685. if(this.selecting_schs.length ==0){
  1686. this.$message.error("请勾选需要执行的医嘱")
  1687. return false
  1688. }
  1689. var ids=[]
  1690. if(this.selecting_schs!=null && this.selecting_schs.length >0){
  1691. for(let i=0;i<this.selecting_schs.length;i++){
  1692. ids.push(this.selecting_schs[i].patient_id)
  1693. }
  1694. }
  1695. var str = ids.join(",")
  1696. var params = {
  1697. str:str,
  1698. advice_date: moment(this.time).format('YYYY-MM-DD'),
  1699. is_open:this.config.is_open,
  1700. }
  1701. checkNewDoctorAdvice(params).then(response=>{
  1702. if(response.data.state == 1){
  1703. if(response.data.data.msg == 2){
  1704. var advice = response.data.data.advice
  1705. this.$message.error(advice.advice_name +"执行人和核对人不能是同一个人,核对失败!")
  1706. this.requestSchedualDoctors(this.time)
  1707. }else{
  1708. this.$message.success("核对成功!")
  1709. this.requestSchedualDoctors(this.time)
  1710. }
  1711. }
  1712. })
  1713. },
  1714. toSettle(){
  1715. if(this.selecting_schs.length ==0){
  1716. this.$message.error("请勾选需要执行的医嘱")
  1717. return false
  1718. }
  1719. var ids=[]
  1720. if(this.selecting_schs!=null && this.selecting_schs.length >0){
  1721. for(let i=0;i<this.selecting_schs.length;i++){
  1722. ids.push(this.selecting_schs[i].patient_id)
  1723. }
  1724. }
  1725. var str = ids.join(",")
  1726. var params = {
  1727. str:str,
  1728. advice_date: moment(this.time).format('YYYY-MM-DD'),
  1729. is_open:this.config.is_open,
  1730. }
  1731. settleNewDoctorAdvice(params).then(response=>{
  1732. if(response.data.state == 1){
  1733. this.$message.success("收费成功!")
  1734. this.requestSchedualDoctors(this.time)
  1735. }
  1736. })
  1737. },
  1738. selectSortType(id){
  1739. this.is_sort = id
  1740. this.requestSchedualDoctors(this.time);
  1741. },
  1742. handleRowClick (row) {
  1743. },
  1744. tableRowClassName({row, rowIndex}) {
  1745. row.index = rowIndex
  1746. if(row.index = rowIndex){
  1747. return 'success-row'
  1748. }
  1749. },
  1750. handleCurrentChangeList(row){
  1751. this.selecting_schs.push(row)
  1752. this.current_row= row
  1753. this.is_status = 2
  1754. },
  1755. excutionDoctorAdviceOne(){
  1756. if(this.current_row.execution_state == 1){
  1757. this.$message.error("所选医嘱已核对,无需再核对!")
  1758. return false
  1759. }
  1760. if (this.execTime.length == 0) {
  1761. this.$message.error('请选择执行时间!')
  1762. return false
  1763. }
  1764. var execTime = Math.round(new Date(this.execTime).getTime() / 1000)
  1765. var params= {
  1766. advice_id:this.current_row.id,
  1767. advice_date: moment(this.time).format('YYYY-MM-DD'),
  1768. exec_time:execTime,
  1769. }
  1770. excutionDoctorAdviceById(params).then(response=>{
  1771. if(response.data.state == 1){
  1772. if(response.data.data.msg == 2){
  1773. var drug_name = response.data.data.drug.drug_name
  1774. var dose = response.data.data.drug.dose
  1775. var dose_unit = response.data.data.drug.dose_unit
  1776. var min_number = response.data.data.drug.min_number
  1777. var max_unit = response.data.data.drug.max_unit
  1778. var min_unit = response.data.data.drug.min_unit
  1779. var str = drug_name + " "+dose+dose_unit +"*"+min_number +max_unit +"/"+min_unit
  1780. this.$message.error(str +"库存不足,执行失败!")
  1781. this.exceLoading = false
  1782. this.execTimeDialogVisibleOne = false
  1783. this.requestSchedualDoctors(this.time)
  1784. }
  1785. if(response.data.data.msg == 1){
  1786. var msg = response.data.data.msg
  1787. this.$message.success("执行成功!")
  1788. this.exceLoading = false
  1789. this.execTimeDialogVisibleOne = false
  1790. this.requestSchedualDoctors(this.time)
  1791. }
  1792. if(response.data.data.msg == 3){
  1793. this.$message.error("执行人与核对人不能是同一个人,执行失败!")
  1794. }
  1795. }
  1796. })
  1797. },
  1798. toStatic() {
  1799. var str = ""
  1800. if(this.partion_type==0){
  1801. str = this.zoneIdList.join(",")
  1802. }
  1803. if(this.partion_type!=0){
  1804. str = this.partion_type.join(",")
  1805. }
  1806. this.partion_str = ""
  1807. this.partion_str = str
  1808. this.tableList = []
  1809. var params = {
  1810. schedule_type:this.schedule_type,
  1811. partion_type:str,
  1812. selected_date: moment(this.time).format('YYYY-MM-DD'),
  1813. }
  1814. console.log("params2332232wo",params)
  1815. getDialysisAdviceToday(params).then(response=>{
  1816. if(response.data.state == 1){
  1817. var doctorList = []
  1818. var druglist = response.data.data.drug
  1819. this.druglist = druglist
  1820. this.startdialogVisible = true
  1821. var list = response.data.data.list
  1822. var config = response.data.data.config
  1823. this.manufacturerList = response.data.data.manufacturerList
  1824. console.log("dcotor---------------",this.manufacturerList)
  1825. if(list!=null && list.length > 0){
  1826. for(let i=0;i<list.length;i++){
  1827. for(let j=0;j<list[i].xt_doctor_advice.length;j++){
  1828. doctorList.push(list[i].xt_doctor_advice[j])
  1829. }
  1830. }
  1831. }
  1832. if(config.is_open!=1){
  1833. if(doctorList!=null && doctorList.length > 0){
  1834. let dataInfo = {}
  1835. doctorList.forEach((item, index) => {
  1836. let { advice_name } = item
  1837. if (!dataInfo[advice_name]) {
  1838. dataInfo[advice_name] = {
  1839. advice_name:item.advice_name,
  1840. child: [],
  1841. count:0,
  1842. drug_id:item.drug_id,
  1843. specification_name:item.advice_desc +item.drug_spec_unit,
  1844. patient_id:item.patient_id,
  1845. delivery_way:"",
  1846. }
  1847. }
  1848. })
  1849. let arr = Object.values(dataInfo)
  1850. // console.log("arr23332323232",arr)
  1851. if(arr.length > 0){
  1852. for(let i=0;i<doctorList.length;i++){
  1853. for(let j=0;j<arr.length;j++){
  1854. if(doctorList[i].advice_name == arr[j].advice_name){
  1855. arr[j].child.push(doctorList[i])
  1856. }
  1857. }
  1858. }
  1859. }
  1860. this.tableList = []
  1861. for(let i=0;i<list.length;i++){
  1862. for(let j=0;j<arr.length;j++){
  1863. if(list[i].patient_id == arr[j].patient_id){
  1864. this.tableList.push(arr[j])
  1865. }
  1866. }
  1867. }
  1868. }
  1869. }
  1870. var his_doctor_advice = []
  1871. for(let i=0;i<list.length;i++){
  1872. for(let j=0;j<list[i].his_doctor_advice.length;j++){
  1873. his_doctor_advice.push(list[i].his_doctor_advice[j])
  1874. }
  1875. }
  1876. console.log("his_doctor_advice",his_doctor_advice)
  1877. var newHisArr = []
  1878. for(let i=0;i<his_doctor_advice.length;i++){
  1879. his_doctor_advice[i].count_one = 0
  1880. if(his_doctor_advice[i].prescribing_number_unit == his_doctor_advice[i].drug.max_unit){
  1881. his_doctor_advice[i].prescribing_number = parseInt(his_doctor_advice[i].prescribing_number) * his_doctor_advice[i].drug.min_number
  1882. his_doctor_advice[i].count_one = parseInt(his_doctor_advice[i].prescribing_number) * his_doctor_advice[i].drug.min_number
  1883. }
  1884. }
  1885. for(let i=0;i<his_doctor_advice.length;i++){
  1886. for(let j=0;j<druglist.length;j++){
  1887. if(his_doctor_advice[i].drug_id == druglist[j].id){
  1888. newHisArr.push(his_doctor_advice[i])
  1889. }
  1890. }
  1891. }
  1892. console.log("下盘子3223323223",newHisArr)
  1893. if(config.is_open == 1){
  1894. if(newHisArr!=null && newHisArr.length > 0){
  1895. let dataInfoOne = {}
  1896. newHisArr.forEach((item, index) => {
  1897. let { drug_id } = item
  1898. if (!dataInfoOne[drug_id]) {
  1899. dataInfoOne[drug_id] = {
  1900. advice_name:item.advice_name,
  1901. child: [],
  1902. count:0,
  1903. specification_name:this.getSpecification(item.drug_id),
  1904. drug_id:item.drug_id,
  1905. patient_id:item.patient_id,
  1906. min_number:item.drug.min_number,
  1907. max_unit:item.drug.max_unit,
  1908. min_unit:item.drug.min_unit,
  1909. delivery_way:item.delivery_way,
  1910. manufacturer_name:this.getManufacturer(item.drug.manufacturer) ,
  1911. }
  1912. }
  1913. })
  1914. let hisarr = Object.values(dataInfoOne)
  1915. console.log("hisarr233232233232",hisarr)
  1916. if(hisarr.length > 0){
  1917. for(let i=0;i<newHisArr.length;i++){
  1918. for(let j=0;j<hisarr.length;j++){
  1919. if(newHisArr[i].drug_id == hisarr[j].drug_id){
  1920. hisarr[j].child.push(newHisArr[i])
  1921. }
  1922. }
  1923. }
  1924. }
  1925. if(this.org_id == 0 || this.org_id ==10644){
  1926. var newArr = []
  1927. var arr_one = []
  1928. for(let i=0;i<hisarr.length;i++){
  1929. if(hisarr[i].delivery_way.indexOf('口服')!=-1){
  1930. newArr.push(hisarr[i])
  1931. }
  1932. }
  1933. for(let i=0;i<hisarr.length;i++){
  1934. if(hisarr[i].delivery_way.indexOf('口服')==-1){
  1935. newArr.push(hisarr[i])
  1936. }
  1937. }
  1938. this.tableList = []
  1939. this.tableList = newArr
  1940. }else{
  1941. this.tableList = []
  1942. this.tableList = hisarr
  1943. }
  1944. }
  1945. }
  1946. }
  1947. })
  1948. },
  1949. arraySort(property) {
  1950. return function (a, b) {
  1951. var value1 = a[property];
  1952. var value2 = b[property];
  1953. return value1 - value2;
  1954. };
  1955. },
  1956. toStaticOne() {
  1957. var str = ""
  1958. if(this.partion_type==0){
  1959. str = this.zoneIdList.join(",")
  1960. }
  1961. if(this.partion_type!=0){
  1962. str = this.partion_type.join(",")
  1963. }
  1964. this.partion_str = ""
  1965. this.partion_str = str
  1966. this.tableList = []
  1967. var params = {
  1968. schedule_type:this.schedule_type,
  1969. partion_type:str,
  1970. selected_date: moment(this.time).format('YYYY-MM-DD'),
  1971. }
  1972. getDialysisAdviceToday(params).then(response=>{
  1973. if(response.data.state == 1){
  1974. var doctorList = []
  1975. var druglist = response.data.data.drug
  1976. this.druglist = druglist
  1977. this.startdialogVisibleOne = true
  1978. var list = response.data.data.list
  1979. var config = response.data.data.config
  1980. this.adminUserList = response.data.data.doctorList
  1981. if(list!=null && list.length > 0){
  1982. for(let i=0;i<list.length;i++){
  1983. for(let j=0;j<list[i].xt_doctor_advice.length;j++){
  1984. list[i].xt_doctor_advice[j].mode_id = list[i].mode_id
  1985. list[i].xt_doctor_advice[j].zone_name = list[i].device_number.zone.name
  1986. list[i].xt_doctor_advice[j].sort = list[i].device_number.zone.sort
  1987. doctorList.push(list[i].xt_doctor_advice[j])
  1988. }
  1989. }
  1990. }
  1991. if(config.is_open!=1){
  1992. if(doctorList!=null && doctorList.length > 0){
  1993. let dataInfo = {}
  1994. doctorList.forEach((item, index) => {
  1995. item.advice_name = item.advice_name.replace(/\s/g,"")
  1996. let { advice_name } = item
  1997. if (!dataInfo[advice_name]) {
  1998. dataInfo[advice_name] = {
  1999. advice_name:item.advice_name,
  2000. child: [],
  2001. count:0,
  2002. execution_staff:item.execution_staff,
  2003. specification_name:item.advice_desc +item.drug_spec_unit,
  2004. patient_id:item.patient_id,
  2005. }
  2006. }
  2007. })
  2008. let arr = Object.values(dataInfo)
  2009. for(let i=0;i<arr.length;i++){
  2010. for(let j=0;j<doctorList.length;j++){
  2011. if(arr[i].advice_name == doctorList[j].advice_name){
  2012. arr[i].child.push(doctorList[j])
  2013. }
  2014. }
  2015. }
  2016. this.tabHead = arr
  2017. console.log("tabHead",this.tabHead)
  2018. }
  2019. this.doctorMap = []
  2020. if(doctorList!=null && doctorList.length > 0){
  2021. let dataInfoOne = {}
  2022. doctorList.forEach((item, index) => {
  2023. if(item.advice_name == "肝素钠注射剂"){
  2024. this.doctorMap.push(item)
  2025. }
  2026. let { zone_name } = item
  2027. if (!dataInfoOne[zone_name]) {
  2028. dataInfoOne[zone_name] = {
  2029. zone_name:item.zone_name,
  2030. child: [],
  2031. count:0,
  2032. sort:item.sort,
  2033. }
  2034. }
  2035. })
  2036. let newArr = Object.values(dataInfoOne)
  2037. if(newArr!=null && newArr.length >0){
  2038. for(let i=0;i<newArr.length;i++){
  2039. for(let j=0;j<doctorList.length;j++){
  2040. if(newArr[i].zone_name == doctorList[j].zone_name){
  2041. newArr[i].child.push(doctorList[j])
  2042. }
  2043. }
  2044. }
  2045. }
  2046. var newList = newArr.sort(this.compareList('sort'))
  2047. if(newList!=null && newList.length >0){
  2048. for(let i=0;i<newList.length;i++){
  2049. newList[i].is_total = 1
  2050. }
  2051. }
  2052. var obj = {is_total:0,count:0,execution_staff:0,child:[],zone_name:""}
  2053. newList.push(obj)
  2054. this.tableDataList = newList
  2055. console.log("999999999999999999-------",this.tableDataList)
  2056. }
  2057. }
  2058. }
  2059. })
  2060. },
  2061. toStaticTwo(){
  2062. var str = ""
  2063. if(this.partion_type==0){
  2064. str = this.zoneIdList.join(",")
  2065. }
  2066. if(this.partion_type!=0){
  2067. str = this.partion_type.join(",")
  2068. }
  2069. this.partion_str = ""
  2070. this.partion_str = str
  2071. this.tableList = []
  2072. var params = {
  2073. schedule_type:this.schedule_type,
  2074. partion_type:str,
  2075. selected_date: moment(this.time).format('YYYY-MM-DD'),
  2076. }
  2077. getDialysisProject(params).then(response=>{
  2078. if(response.data.state ==1){
  2079. var list = response.data.data.list
  2080. var newArr = []
  2081. if(list!=null && list.length>0){
  2082. for(let i=0;i<list.length;i++){
  2083. for(let j=0;j<list[i].his_doctor_project.length;j++){
  2084. newArr.push(list[i].his_doctor_project[j])
  2085. }
  2086. }
  2087. }
  2088. let dataInfo = {}
  2089. newArr.forEach((item, index) => {
  2090. let { project_id } = item
  2091. if (!dataInfo[project_id]) {
  2092. dataInfo[project_id] = {
  2093. project_id:item.project_id,
  2094. good_name:item.good.good_name,
  2095. specification_name:item.good.specification_name,
  2096. child: [],
  2097. count:0,
  2098. }
  2099. }
  2100. })
  2101. let arr = Object.values(dataInfo)
  2102. if(arr!=null && arr.length >0){
  2103. for(let i =0;i<arr.length;i++){
  2104. for(let j=0;j<newArr.length;j++){
  2105. if(arr[i].project_id == newArr[j].project_id){
  2106. arr[i].child.push(newArr[j])
  2107. }
  2108. }
  2109. }
  2110. for(let i =0;i<arr.length;i++){
  2111. for(let j=0;j<arr[i].child.length;j++){
  2112. arr[i].count += parseInt(arr[i].child[j].count)
  2113. }
  2114. }
  2115. console.log("arr0000000000000000000000",arr)
  2116. this.startdialogVisibleTwo = true
  2117. this.tableProjectList = []
  2118. this.tableProjectList = arr
  2119. }
  2120. }
  2121. })
  2122. },
  2123. getAllQuery(){
  2124. this.toStaticThree()
  2125. },
  2126. toStaticThree(){
  2127. var params = {
  2128. start_time:this.start_time,
  2129. end_time:this.end_time
  2130. }
  2131. getDoctorAdviceMonthList(params).then(response=>{
  2132. if(response.data.state == 1){
  2133. this.startMothdialogVisible = true
  2134. var config = response.data.data.config
  2135. this.config = {}
  2136. this.config = config
  2137. var drugs = response.data.data.drugs
  2138. this.druglist = []
  2139. this.druglist = drugs
  2140. var manufacturerList = response.data.data.manufacturerList
  2141. this.manufacturerList = []
  2142. this.manufacturerList = manufacturerList
  2143. var adviceMonthList = response.data.data.adviceList
  2144. var hisAdviceMonthList = response.data.data.hisAdviceList
  2145. if(config.is_open == 1){
  2146. if(hisAdviceMonthList!=null && hisAdviceMonthList.length>0){
  2147. let dataInfo = {}
  2148. hisAdviceMonthList.forEach((item, index) => {
  2149. let { drug_id } = item
  2150. if (!dataInfo[drug_id]) {
  2151. dataInfo[drug_id] = {
  2152. drug_id:item.drug_id,
  2153. advice_name:item.advice_name,
  2154. manufacturer_name:this.getManufacturer(item.drug.manufacturer),
  2155. specification_name:item.drug.dose + item.drug.dose_unit +"*"+item.drug.min_number+item.drug.min_unit+"/"+item.drug.max_unit,
  2156. max_unit:item.drug.max_unit,
  2157. min_unit:item.drug.min_unit,
  2158. min_number:item.drug.min_number,
  2159. child: [],
  2160. }
  2161. }
  2162. })
  2163. let newArr = Object.values(dataInfo)
  2164. console.log("newArr----------------",newArr)
  2165. if(newArr!=null && newArr.length>0){
  2166. for(let i=0;i<newArr.length;i++){
  2167. for(let j=0;j<hisAdviceMonthList.length;j++){
  2168. if(newArr[i].drug_id == hisAdviceMonthList[j].drug_id){
  2169. newArr[i].child.push(hisAdviceMonthList[j])
  2170. }
  2171. }
  2172. }
  2173. }
  2174. this.tableMonthList = []
  2175. this.tableMonthList = newArr
  2176. }
  2177. }
  2178. if(config.is_open == 2 || config.is_open ==0){
  2179. if(adviceMonthList!=null && adviceMonthList.length>0){
  2180. if(adviceMonthList!=null && adviceMonthList.length > 0){
  2181. let dataInfo = {}
  2182. adviceMonthList.forEach((item, index) => {
  2183. item.advice_name = item.advice_name.replace(/\s/g,"")
  2184. let { advice_name } = item
  2185. if (!dataInfo[advice_name]) {
  2186. dataInfo[advice_name] = {
  2187. advice_name:item.advice_name,
  2188. child: [],
  2189. count:0,
  2190. specification_name:item.advice_desc +item.drug_spec_unit,
  2191. manufacturer_name:""
  2192. }
  2193. }
  2194. })
  2195. let arr = Object.values(dataInfo)
  2196. for(let i=0;i<arr.length;i++){
  2197. for(let j=0;j<adviceMonthList.length;j++){
  2198. if(arr[i].advice_name == adviceMonthList[j].advice_name){
  2199. arr[i].child.push(adviceMonthList[j])
  2200. }
  2201. }
  2202. }
  2203. this.tableMonthList = []
  2204. this.tableMonthList = arr
  2205. console.log("hhhhhhhhhhhhhh",this.tableMonthList)
  2206. }
  2207. }
  2208. }
  2209. }
  2210. })
  2211. console.log("params-=----",params)
  2212. },
  2213. toStaticFour(){
  2214. var params = {
  2215. start_time:this.start_time,
  2216. end_time:this.end_time
  2217. }
  2218. getHisPrescrptionProjectMonthList(params).then(response=>{
  2219. if(response.data.state ==1){
  2220. var projectMonthList = response.data.data.projectMonthList
  2221. console.log("projectMonthList",projectMonthList)
  2222. if(projectMonthList!=null && projectMonthList.length>0){
  2223. let dataInfo = {}
  2224. projectMonthList.forEach((item, index) => {
  2225. let { project_id } = item
  2226. if (!dataInfo[project_id]) {
  2227. dataInfo[project_id] = {
  2228. project_id:item.project_id,
  2229. good_name:item.good_info.good_name,
  2230. specification_name:item.good_info.specification_name,
  2231. child: [],
  2232. count:0,
  2233. }
  2234. }
  2235. })
  2236. let arr = Object.values(dataInfo)
  2237. if(arr!=null && arr.length >0){
  2238. for(let i =0;i<arr.length;i++){
  2239. for(let j=0;j<projectMonthList.length;j++){
  2240. if(arr[i].project_id == projectMonthList[j].project_id){
  2241. arr[i].child.push(projectMonthList[j])
  2242. }
  2243. }
  2244. }
  2245. for(let i =0;i<arr.length;i++){
  2246. for(let j=0;j<arr[i].child.length;j++){
  2247. arr[i].count += parseInt(arr[i].child[j].count)
  2248. }
  2249. }
  2250. console.log("arr0000000000000000000000",arr)
  2251. this.startMonthdialogVisible = true
  2252. this.tableProjectList = []
  2253. this.tableProjectList = arr
  2254. }
  2255. }
  2256. }
  2257. })
  2258. },
  2259. getDrugAdviceCount(advice_name,zone_name){
  2260. var str = ""
  2261. var arr =[]
  2262. var arrOne = []
  2263. if(this.doctorMap!=null && this.doctorMap.length>0){
  2264. for(let i=0;i<this.doctorMap.length;i++){
  2265. if(this.doctorMap[i].advice_name!="" || this.doctorMap[i].advice_name!=undefined){
  2266. this.doctorMap[i].advice_name = this.doctorMap[i].advice_name.replace(/\s/g,"")
  2267. }
  2268. if(this.doctorMap[i].advice_name == advice_name && this.doctorMap[i].zone_name == zone_name && this.doctorMap[i].delivery_way =="导管封管"){
  2269. arr.push(this.doctorMap[i])
  2270. }
  2271. if(this.doctorMap[i].advice_name == advice_name && this.doctorMap[i].zone_name == zone_name && this.doctorMap[i].delivery_way.indexOf("泵入")!=-1){
  2272. arrOne.push(this.doctorMap[i])
  2273. }
  2274. }
  2275. }
  2276. if(arr!=null && arr.length >0){
  2277. var total = 0
  2278. for(let i=0;i<arr.length;i++){
  2279. total +=arr[i].prescribing_number
  2280. }
  2281. str = "封管" +"("+total+")"
  2282. }
  2283. if(arrOne!=null && arrOne.length >0){
  2284. var total_one = 0
  2285. for(let i=0;i<arrOne.length;i++){
  2286. total_one +=arrOne[i].prescribing_number
  2287. }
  2288. str = str + "泵入" +"("+total_one+")"
  2289. }
  2290. return str
  2291. },
  2292. getSpecification(id){
  2293. var specification_name = ""
  2294. for(let i=0;i<this.druglist.length;i++){
  2295. if(id == this.druglist[i].id){
  2296. specification_name = this.druglist[i].dose+this.druglist[i].dose_unit +"*"+this.druglist[i].min_number+this.druglist[i].min_unit +"/"+this.druglist[i].max_unit
  2297. }
  2298. }
  2299. return specification_name
  2300. },
  2301. getCount(val){
  2302. var count = 0
  2303. if(val!=null && val.length > 0){
  2304. for(let i=0;i<val.length;i++){
  2305. count += parseInt(val[i].prescribing_number)
  2306. }
  2307. }
  2308. if(count > 0){
  2309. return count
  2310. }else{
  2311. return 0
  2312. }
  2313. },
  2314. getHisCount(val,max_unit,min_unit,min_number){
  2315. var total = 0
  2316. var max_str = "";
  2317. var min_str = "";
  2318. for(let i=0;i<val.length;i++){
  2319. total+=parseInt(val[i].prescribing_number)
  2320. }
  2321. if (total < min_number) {
  2322. min_str = total + min_unit;
  2323. }
  2324. if (total == 0) {
  2325. min_str = "";
  2326. max_str = "";
  2327. }
  2328. if (total >= min_number) {
  2329. if (parseInt(total / min_number) != 0) {
  2330. max_str = parseInt(total / min_number) + max_unit;
  2331. }
  2332. if (total % min_number != 0) {
  2333. min_str = (total % min_number) + min_unit;
  2334. }
  2335. }
  2336. return max_str + min_str;
  2337. },
  2338. toPrintOne(){
  2339. var schedule_date = moment(this.time).format('YYYY-MM-DD')
  2340. this.$router.push({path:"/dialysis/doctorAdviceStaticPrint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_str+"&schedule_date="+schedule_date+"&is_open="+this.config.is_open})
  2341. },
  2342. toPrintTwo(){
  2343. var schedule_date = moment(this.time).format('YYYY-MM-DD')
  2344. this.$router.push({path:"/dialysis/doctorNewAdviceStaticPrint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_str+"&schedule_date="+schedule_date+"&is_open="+this.config.is_open})
  2345. },
  2346. toPrintThree(){
  2347. var schedule_date = moment(this.time).format('YYYY-MM-DD')
  2348. this.$router.push({path:"/dialysis/doctorNewProjectStaticPrint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_str+"&schedule_date="+schedule_date+"&is_open="+this.config.is_open})
  2349. },
  2350. toExportListOne(){
  2351. import('@/vendor/Export2Excel').then(excel => {
  2352. if(this.tableList!=null && this.tableList.length > 0){
  2353. for(let i=0;i<this.tableList.length;i++){
  2354. this.tableList[i].index = i+1
  2355. if(this.config.is_open == 1){
  2356. this.tableList[i].total_count = this.getHisCount(this.tableList[i].child,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
  2357. }
  2358. if(this.config.is_open!=1){
  2359. this.tableList[i].total_count = this.getCount(this.tableList[i].child)
  2360. }
  2361. }
  2362. }
  2363. const tHeader = ['序号','药品名称','规格','数量']
  2364. const filterVal = ['index','advice_name','specification_name','total_count']
  2365. const data = this.formatJson(filterVal, this.tableList)
  2366. excel.export_json_to_excel({
  2367. header: tHeader,
  2368. data,
  2369. filename: '药品统计'
  2370. })
  2371. this.downloadLoading = false
  2372. })
  2373. },
  2374. toExportListTwo(){
  2375. import('@/vendor/Export2Excel').then(excel => {
  2376. if(this.tableProjectList!=null && this.tableProjectList.length > 0){
  2377. for(let i=0;i<this.tableProjectList.length;i++){
  2378. this.tableProjectList[i].index = i+1
  2379. }
  2380. }
  2381. const tHeader = ['序号','耗材名称','规格','数量']
  2382. const filterVal = ['index','good_name','specification_name','count']
  2383. const data = this.formatJson(filterVal, this.tableProjectList)
  2384. excel.export_json_to_excel({
  2385. header: tHeader,
  2386. data,
  2387. filename: '耗材统计'
  2388. })
  2389. this.downloadLoading = false
  2390. })
  2391. },
  2392. toExportListThree(){
  2393. import('@/vendor/Export2Excel').then(excel => {
  2394. if(this.tableMonthList!=null && this.tableMonthList.length > 0){
  2395. for(let i=0;i<this.tableMonthList.length;i++){
  2396. this.tableMonthList[i].index = i+1
  2397. if(this.config.is_open == 1){
  2398. this.tableMonthList[i].total_count = this.getHisCount(this.tableMonthList[i].child,this.tableMonthList[i].max_unit,this.tableMonthList[i].min_unit,this.tableMonthList[i].min_number)
  2399. }
  2400. if(this.config.is_open!=1){
  2401. this.tableMonthList[i].total_count = this.getCount(this.tableMonthList[i].child)
  2402. }
  2403. }
  2404. }
  2405. const tHeader = ['序号','药品名称','规格','数量','厂家']
  2406. const filterVal = ['index','advice_name','specification_name','total_count','manufacturer_name']
  2407. const data = this.formatJson(filterVal, this.tableMonthList)
  2408. excel.export_json_to_excel({
  2409. header: tHeader,
  2410. data,
  2411. filename: '药品月统计'
  2412. })
  2413. this.downloadLoading = false
  2414. })
  2415. },
  2416. toExportListFour(){
  2417. import('@/vendor/Export2Excel').then(excel => {
  2418. if(this.tableProjectList!=null && this.tableProjectList.length > 0){
  2419. for(let i=0;i<this.tableProjectList.length;i++){
  2420. this.tableProjectList[i].index = i+1
  2421. }
  2422. }
  2423. const tHeader = ['序号','耗材名称','规格','数量']
  2424. const filterVal = ['index','good_name','specification_name','count']
  2425. const data = this.formatJson(filterVal, this.tableProjectList)
  2426. excel.export_json_to_excel({
  2427. header: tHeader,
  2428. data,
  2429. filename: '耗材统计'
  2430. })
  2431. this.downloadLoading = false
  2432. })
  2433. },
  2434. getGoodAllQuery(){
  2435. this.toExportListThree()
  2436. },
  2437. formatJson(filterVal, jsonData) {
  2438. return jsonData.map(v => filterVal.map(j => v[j]));
  2439. },
  2440. changeScheduleType(){
  2441. this.tableList = []
  2442. this.toStatic()
  2443. },
  2444. changePartionType(){
  2445. this.tableList = []
  2446. this.toStatic()
  2447. },
  2448. changeScheduleTypeOne(){
  2449. this.tableDataList = []
  2450. this.toStaticOne()
  2451. },
  2452. changePartionTypeOne(){
  2453. this.tableDataList = []
  2454. this.toStaticOne()
  2455. },
  2456. changeScheduleTypeTwo(){
  2457. this.tableProjectList = []
  2458. this.toStaticTwo()
  2459. },
  2460. changePartionTypeTwo(){
  2461. this.tableProjectList=[]
  2462. this.toStaticTwo()
  2463. },
  2464. getModeId(val){
  2465. if(val!=null && val.length > 0){
  2466. let dataInfo = {}
  2467. val.forEach((item, index) => {
  2468. let { patient_id } = item
  2469. if (!dataInfo[patient_id]) {
  2470. dataInfo[patient_id] = {
  2471. patient_id:item.patient_id,
  2472. child: [],
  2473. count:0,
  2474. mode_id:item.mode_id,
  2475. }
  2476. }
  2477. })
  2478. let newArr = Object.values(dataInfo)
  2479. if(newArr!=null && newArr.length >0){
  2480. let dataInfo = {}
  2481. newArr.forEach((item, index) => {
  2482. let { mode_id } = item
  2483. if (!dataInfo[mode_id]) {
  2484. dataInfo[mode_id] = {
  2485. mode_id:item.mode_id,
  2486. child: [],
  2487. count:0,
  2488. }
  2489. }
  2490. })
  2491. let hisNewArr = Object.values(dataInfo)
  2492. if(hisNewArr!=null && hisNewArr.length >0){
  2493. for(let i=0;i<hisNewArr.length;i++){
  2494. for(let j=0;j<newArr.length;j++){
  2495. if(hisNewArr[i].mode_id == newArr[j].mode_id){
  2496. hisNewArr[i].child.push(newArr[j])
  2497. }
  2498. }
  2499. }
  2500. }
  2501. var str = ""
  2502. for(let i=0;i<hisNewArr.length;i++){
  2503. if(hisNewArr[i].mode_id == 1){
  2504. hisNewArr[i].mode_id = "HD"
  2505. }
  2506. if(hisNewArr[i].mode_id == 2){
  2507. hisNewArr[i].mode_id = "HDF"
  2508. }
  2509. if(hisNewArr[i].mode_id == 3){
  2510. hisNewArr[i].mode_id = "HD+HP"
  2511. }
  2512. if(hisNewArr[i].mode_id == 4){
  2513. hisNewArr[i].mode_id = "HP"
  2514. }
  2515. if(hisNewArr[i].mode_id == 5){
  2516. hisNewArr[i].mode_id = "HF"
  2517. }
  2518. if(hisNewArr[i].mode_id == 6){
  2519. hisNewArr[i].mode_id = "SCUF"
  2520. }
  2521. if(hisNewArr[i].mode_id == 7){
  2522. hisNewArr[i].mode_id = "IUF"
  2523. }
  2524. if(hisNewArr[i].mode_id == 8){
  2525. hisNewArr[i].mode_id = "HFHD"
  2526. }
  2527. if(hisNewArr[i].mode_id == 9){
  2528. hisNewArr[i].mode_id = "HFHD+HP"
  2529. }
  2530. if(hisNewArr[i].mode_id == 10){
  2531. hisNewArr[i].mode_id = "PHF"
  2532. }
  2533. if(hisNewArr[i].mode_id == 11){
  2534. hisNewArr[i].mode_id = "HFR"
  2535. }
  2536. if(hisNewArr[i].mode_id == 12){
  2537. hisNewArr[i].mode_id = "HDF+HP"
  2538. }
  2539. if(hisNewArr[i].mode_id == 13){
  2540. hisNewArr[i].mode_id = "CRRT"
  2541. }
  2542. if(hisNewArr[i].mode_id == 14){
  2543. hisNewArr[i].mode_id = "腹水回输"
  2544. }
  2545. if(hisNewArr[i].mode_id == 15){
  2546. hisNewArr[i].mode_id = "IUF+HD"
  2547. }
  2548. if(hisNewArr[i].mode_id == 20){
  2549. hisNewArr[i].mode_id = "UF"
  2550. }
  2551. if(hisNewArr[i].mode_id == 21){
  2552. hisNewArr[i].mode_id = "HD+"
  2553. }
  2554. if(hisNewArr[i].mode_id == 22){
  2555. hisNewArr[i].mode_id = "血浆胆红素吸附+HDF"
  2556. }
  2557. if(hisNewArr[i].mode_id == 23){
  2558. hisNewArr[i].mode_id = "血浆胆红素吸附"
  2559. }
  2560. if(hisNewArr[i].mode_id == 24){
  2561. hisNewArr[i].mode_id = "I-HDF"
  2562. }
  2563. if(hisNewArr[i].mode_id == 25){
  2564. hisNewArr[i].mode_id = "HD高通"
  2565. }
  2566. if(hisNewArr[i].mode_id == 26){
  2567. hisNewArr[i].mode_id = "CVVH"
  2568. }
  2569. if(hisNewArr[i].mode_id == 27){
  2570. hisNewArr[i].mode_id = "CVVHD"
  2571. }
  2572. if(hisNewArr[i].mode_id == 28){
  2573. hisNewArr[i].mode_id = "CVVHDF"
  2574. }
  2575. if(hisNewArr[i].mode_id == 29){
  2576. hisNewArr[i].mode_id = "PE"
  2577. }
  2578. if(hisNewArr[i].mode_id == 30){
  2579. hisNewArr[i].mode_id = "血浆胆红素吸附+HP"
  2580. }
  2581. if(hisNewArr[i].mode_id == 31){
  2582. hisNewArr[i].mode_id = "HPD"
  2583. }
  2584. if(hisNewArr[i].mode_id == 32){
  2585. hisNewArr[i].mode_id = "HDP"
  2586. }
  2587. if(hisNewArr[i].mode_id == 33){
  2588. hisNewArr[i].mode_id = "HFD"
  2589. }
  2590. if(hisNewArr[i].mode_id == 34){
  2591. hisNewArr[i].mode_id = "HDF100"
  2592. }
  2593. if(hisNewArr[i].mode_id == 35){
  2594. hisNewArr[i].mode_id = "HDF600"
  2595. }
  2596. if(hisNewArr[i].mode_id == 36){
  2597. hisNewArr[i].mode_id = "HDF800"
  2598. }
  2599. if(hisNewArr[i].mode_id == 37){
  2600. hisNewArr[i].mode_id = "HDF1000"
  2601. }
  2602. str += hisNewArr[i].mode_id +"("+hisNewArr[i].child.length+")" +"\n"
  2603. }
  2604. return str
  2605. }
  2606. // return newArr.length
  2607. }
  2608. },
  2609. getDrugCount(val,advice_name){
  2610. if(val!=null){
  2611. for(let i=0;i<val.length;i++){
  2612. val[i].advice_name = val[i].advice_name.replace(/\s/g,"")
  2613. }
  2614. }
  2615. if(val!=null && val.length >0){
  2616. let dataInfo = {}
  2617. val.forEach((item, index) => {
  2618. let { advice_name } = item
  2619. if (!dataInfo[advice_name]) {
  2620. dataInfo[advice_name] = {
  2621. advice_name:item.advice_name,
  2622. child: [],
  2623. count:0,
  2624. }
  2625. }
  2626. })
  2627. let newArr = Object.values(dataInfo)
  2628. if(newArr!=null && newArr.length >0){
  2629. for(let i=0;i<newArr.length;i++){
  2630. for(let j=0;j<val.length;j++){
  2631. if(newArr[i].advice_name == val[j].advice_name){
  2632. newArr[i].child.push(val[j])
  2633. }
  2634. }
  2635. }
  2636. }
  2637. var total = 0
  2638. var newHisArr =[]
  2639. if(newArr!=null && newArr.length >0){
  2640. for(let i=0;i<newArr.length;i++){
  2641. if(newArr[i].advice_name == advice_name){
  2642. newHisArr.push(newArr[i])
  2643. }
  2644. }
  2645. }
  2646. if(newHisArr!=null && newHisArr.length>0){
  2647. for(let i=0;i<newHisArr.length;i++){
  2648. for(let j=0;j<newHisArr[i].child.length;j++){
  2649. total += parseInt(newHisArr[i].child[j].prescribing_number)
  2650. }
  2651. }
  2652. }
  2653. return total
  2654. }
  2655. },
  2656. getAdminUserName(id){
  2657. var name = ""
  2658. for(let i=0;i<this.adminUserList.length;i++){
  2659. if(id == this.adminUserList[i].id){
  2660. name = this.adminUserList[i].name
  2661. }
  2662. }
  2663. return name
  2664. },
  2665. getZoneName(val){
  2666. var zone_name = ""
  2667. if(val!=null && val.length >0){
  2668. zone_name = val[0].zone_name
  2669. }
  2670. return zone_name
  2671. },
  2672. compareList: function (k) {
  2673. return function (a, b) {
  2674. var M = a[k]
  2675. var N = b[k]
  2676. return M - N // 从低向高排
  2677. // return N - M; // 从高向低排
  2678. }
  2679. },
  2680. getSummaries(param) {
  2681. const { columns, data } = param;
  2682. const sums = [];
  2683. columns.forEach((column, index) => {
  2684. if (index === 0) {
  2685. sums[index] = '总数';
  2686. return;
  2687. }
  2688. if(index > 2){
  2689. const values = data.map(item => item[column.property]);
  2690. }
  2691. });
  2692. return sums;
  2693. },
  2694. getAllSumCount(advice_name){
  2695. var hisNewArr =[]
  2696. if(this.tabHead.length!=null && this.tabHead.length >0){
  2697. for(let i=0;i<this.tabHead.length;i++){
  2698. if(this.tabHead[i].advice_name == advice_name){
  2699. hisNewArr.push(this.tabHead[i])
  2700. }
  2701. }
  2702. }
  2703. var total = 0
  2704. if(hisNewArr!=null && hisNewArr.length > 0){
  2705. for(let i=0;i<hisNewArr.length;i++){
  2706. for(let j=0;j<hisNewArr[i].child.length;j++){
  2707. total += parseInt(hisNewArr[i].child[j].prescribing_number)
  2708. }
  2709. }
  2710. }
  2711. if (total > 0) {
  2712. return total
  2713. }else{
  2714. return 0
  2715. }
  2716. },
  2717. getTimeSix(val) {
  2718. if(val == ""){
  2719. return ""
  2720. }else {
  2721. return uParseTime(val, '{y}-{m}-{d}')
  2722. }
  2723. },
  2724. toJiao(){
  2725. GetMobileScheduleList().then(response=>{
  2726. if(response.data.state == 1){
  2727. var schedule = response.data.data.schedule
  2728. this.$message.success("保存成功!")
  2729. // console.log("schedule---------------",schedule)
  2730. // var arr = []
  2731. // for(let i=0;i<schedule.length;i++){
  2732. // if(schedule[i].monitor_record.ultrafiltration_volume!=schedule[i].xt_assesment_after_dislysis.actual_ultrafiltration){
  2733. // arr.push(schedule[i])
  2734. // }
  2735. // }
  2736. // import('@/vendor/Export2Excel').then(excel => {
  2737. // if(arr!=null && arr.length > 0){
  2738. // for(let i=0;i<arr.length;i++){
  2739. // arr[i].patient_name = arr[i].patient.name
  2740. // arr[i].target_ultrafiltration = arr[i].dialysis_prescription.target_ultrafiltration
  2741. // arr[i].ultrafiltration_volume = arr[i].monitor_record.ultrafiltration_volume
  2742. // arr[i].actual_ultrafiltration = arr[i].xt_assesment_after_dislysis.actual_ultrafiltration
  2743. // arr[i].start_time = this.getTimeSix(arr[i].schedule_date)
  2744. // }
  2745. // }
  2746. // const tHeader = ['序号','日期','患者姓名','目标超滤量','监测超滤量','实际超滤量']
  2747. // const filterVal = ['index','start_time','patient_name','target_ultrafiltration','ultrafiltration_volume','actual_ultrafiltration']
  2748. // const data = this.formatJson(filterVal, arr)
  2749. // excel.export_json_to_excel({
  2750. // header: tHeader,
  2751. // data,
  2752. // filename: '监测数据统计'
  2753. // })
  2754. // })
  2755. }
  2756. })
  2757. },
  2758. getManufacturer(id){
  2759. var manufacturer_name = ""
  2760. for(let i=0;i<this.manufacturerList.length;i++){
  2761. if(id== this.manufacturerList[i].id){
  2762. manufacturer_name = this.manufacturerList[i].manufacturer_name
  2763. }
  2764. }
  2765. return manufacturer_name
  2766. },
  2767. getDrugName(drug_id,drugs){
  2768. var drug_name = ""
  2769. for(let i=0;i<drugs.length;i++){
  2770. if(drug_id == drugs[i].id){
  2771. drug_name = drugs[i].drug_name
  2772. }
  2773. }
  2774. return drug_name
  2775. },
  2776. getMonthManufacturer(drug_id,drugs,manufacturerList){
  2777. var manufacturer = 0
  2778. for(let i=0;i<drugs.length;i++){
  2779. if(drug_id == drugs[i].id){
  2780. manufacturer = drugs[i].manufacturer
  2781. }
  2782. }
  2783. var manufacturer_name = ""
  2784. for(let i=0;i<manufacturerList.length;i++){
  2785. if(manufacturer== manufacturerList[i].id){
  2786. manufacturer_name = manufacturerList[i].manufacturer_name
  2787. }
  2788. }
  2789. return manufacturer_name
  2790. },
  2791. toPrintTen(){
  2792. this.$router.push("/dialysis/doctorMonthAdviceStaticPrint?start_time="+this.start_time+"&end_time="+this.end_time)
  2793. },
  2794. toPrintTenOne(){
  2795. this.$router.push("/dialysis/doctocAdviceProjectPrint?start_time="+this.start_time+"&end_time="+this.end_time)
  2796. }
  2797. },
  2798. components: {
  2799. BreadCrumb
  2800. }
  2801. };
  2802. </script>
  2803. <style rel="stylesheet/scss" lang="scss" scoped>
  2804. .app-container {
  2805. // margin: 20px;
  2806. font-size: 15px;
  2807. .filter-container {
  2808. padding-bottom: 5px;
  2809. }
  2810. .cqd-dataTitle {
  2811. color: #303133;
  2812. font-size: 14px;
  2813. border-bottom: 2px #e4e7ed solid;
  2814. height: 36px;
  2815. line-height: 36px;
  2816. margin: 0 0 25px 0;
  2817. position: relative;
  2818. }
  2819. .cqd-dataTitle::before {
  2820. position: absolute;
  2821. left: 0;
  2822. bottom: -2px;
  2823. content: "";
  2824. width: 42px;
  2825. height: 2px;
  2826. background: #409eff;
  2827. }
  2828. .search-component {
  2829. width: 500px;
  2830. .searchBox {
  2831. width: 300px;
  2832. height: 36px;
  2833. line-height: 36px;
  2834. padding-left: 15px;
  2835. border: 1px #dcdfe6 solid;
  2836. border-right: none;
  2837. outline: none;
  2838. float: left;
  2839. border-radius: 6px 0 0 6px;
  2840. font-size: 14px;
  2841. color: #333;
  2842. background: #fff;
  2843. box-shadow: 3px 3px 4px rgba(135, 135, 135, 0.05);
  2844. }
  2845. .searchBtn {
  2846. background-color: #409eff;
  2847. color: #fff;
  2848. font-size: 15px;
  2849. text-align: center;
  2850. height: 36px;
  2851. line-height: 36px;
  2852. float: left;
  2853. outline: none;
  2854. width: 70px;
  2855. border: none;
  2856. border-radius: 0 6px 6px 0;
  2857. font-family: "Microsoft Yahei";
  2858. cursor: pointer;
  2859. }
  2860. }
  2861. .amount {
  2862. font-weight: normal;
  2863. padding: 10px 0 0 0;
  2864. color: #606266;
  2865. font-size: 14px;
  2866. span {
  2867. color: #ef2525;
  2868. font-family: "Arial";
  2869. padding: 0 2px;
  2870. }
  2871. }
  2872. .el-table td .cell{
  2873. white-space: pre-wrap;
  2874. }
  2875. }
  2876. .el-table td,
  2877. .el-table th.is-leaf,
  2878. .el-table--border,
  2879. .el-table--group {
  2880. border-color: #d0d3da;
  2881. }
  2882. .el-table--border::after,
  2883. .el-table--group::after,
  2884. .el-table::before {
  2885. background-color: #d0d3da;
  2886. }
  2887. .el-checkbox__inner::after {
  2888. height: 10px;
  2889. left: 7px;
  2890. }
  2891. .el-checkbox__inner {
  2892. width: 20px;
  2893. height: 20px;
  2894. }
  2895. </style>