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

dialysisGather.vue 76KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186
  1. <template>
  2. <div class="page_consumables">
  3. <div class="cell clearfix">
  4. <label class="title"> <span class="name">排班班次</span> : </label>
  5. <div class="time">
  6. <ul class>
  7. <li
  8. :class="item.value == schedulType ? 'active' : ''"
  9. @click="selectSchedulType(item.value)"
  10. v-for="item in schedulArr"
  11. :key="item.value"
  12. >
  13. {{ item.label }}
  14. </li>
  15. </ul>
  16. </div>
  17. <label class="title"><span class="name">日期查询</span> : </label>
  18. <el-date-picker size="small" v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange"
  19. :editable="false" :clearable="false" style="width: 196px;margin-right:10px;" type="date"
  20. format="yyyy-MM-dd"
  21. value-format="yyyy-MM-dd"
  22. placeholder="选择日期时间" align="right"
  23. ></el-date-picker>
  24. <el-input size="small" style="width: 180px;" @keyup.enter.native='searchAction' v-model.trim="search_input"
  25. class="filter-item" v-model="query.keywords"/>
  26. <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
  27. </div>
  28. <div class="cell clearfix" style="justify-content: space-between;">
  29. <label class="title"><span class="name">分区</span> : </label>
  30. <el-select v-model="partition_id" multiple placeholder="请选择分区" style="margin-left:-400px" @change="selectPartitionType">
  31. <el-option
  32. v-for="item in partitionArrOne"
  33. :key="item.id"
  34. :label="item.name"
  35. :value="item.id">
  36. </el-option>
  37. </el-select>
  38. <div>
  39. <el-button size="small" icon="el-icon-printer" @click="toDialog" type="primary">设置</el-button>
  40. <el-button size="small" @click="toStatic" type="primary">汇总</el-button>
  41. <el-button size="small" @click="toPrint" icon="el-icon-printer" type="primary">打印</el-button>
  42. <!-- <el-button size="small" type="primary" @click="statistics">统计表</el-button> -->
  43. </div>
  44. </div>
  45. <div>
  46. <el-table
  47. :data="list"
  48. border
  49. :row-style="{ color: '#303133' }"
  50. :header-cell-style="{
  51. backgroundColor: 'rgb(245, 247, 250)',
  52. color: '#606266'
  53. }"
  54. @selection-change="handleSelectionChange"
  55. >
  56. <el-table-column align="center" type="selection" width="55">
  57. </el-table-column>
  58. <el-table-column align="center" label="序号" width="55" v-if="gatherSetting.index_number == 1">
  59. <template slot-scope="scope">
  60. {{scope.$index + 1}}
  61. </template>
  62. </el-table-column>
  63. <el-table-column align="center" label="姓名" v-if="gatherSetting.name==1">
  64. <template slot-scope="scope">
  65. {{scope.row.patient.name}}
  66. </template>
  67. </el-table-column>
  68. <el-table-column align="center" label="透析号" v-if="gatherSetting.dialysis_no==1">
  69. <template slot-scope="scope">
  70. {{scope.row.patient.dialysis_no}}
  71. </template>
  72. </el-table-column>
  73. <el-table-column align="center" label="住院(门诊)号" v-if="gatherSetting.admission_number==1">
  74. <template slot-scope="scope">
  75. {{scope.row.patient.admission_number}}
  76. </template>
  77. </el-table-column>
  78. <el-table-column align="center" label="透析模式" v-if="gatherSetting.mode_type==1">
  79. <template slot-scope="scope">
  80. <span v-if="scope.row.mode_id == 1">HD</span>
  81. <span v-if="scope.row.mode_id == 2">HDF</span>
  82. <span v-if="scope.row.mode_id == 3">HD+HP</span>
  83. <span v-if="scope.row.mode_id == 4">HP</span>
  84. <span v-if="scope.row.mode_id == 5">HF</span>
  85. <span v-if="scope.row.mode_id == 6">SCUF</span>
  86. <span v-if="scope.row.mode_id == 7">IUF</span>
  87. <span v-if="scope.row.mode_id == 8">HFHD</span>
  88. <span v-if="scope.row.mode_id == 9">HFHD+HP</span>
  89. <span v-if="scope.row.mode_id == 10">PHF</span>
  90. <span v-if="scope.row.mode_id == 11">HFR</span>
  91. <span v-if="scope.row.mode_id == 12">HDF+HP</span>
  92. <span v-if="scope.row.mode_id == 13">CRRT</span>
  93. <span v-if="scope.row.mode_id == 19">IUF+HD</span>
  94. <span v-if="scope.row.mode_id == 20">UF</span>
  95. <span v-if="scope.row.mode_id == 21">HD+</span>
  96. <span v-if="scope.row.mode_id == 22">血浆胆红素吸附+HDF</span>
  97. <span v-if="scope.row.mode_id == 23">血浆胆红素吸附</span>
  98. <span v-if="scope.row.mode_id == 24">I-HDF</span>
  99. <span v-if="scope.row.mode_id == 25">HD高通F</span>
  100. <span v-if="scope.row.mode_id == 26">CVVH</span>
  101. <span v-if="scope.row.mode_id == 27">CVVHD</span>
  102. <span v-if="scope.row.mode_id == 28">CVVHDF</span>
  103. <span v-if="scope.row.mode_id == 29">PE</span>
  104. <span v-if="scope.row.mode_id == 30">血浆胆红素吸附+HP</span>
  105. <span v-if="scope.row.mode_id == 31">HPD</span>
  106. <span v-if="scope.row.mode_id == 32">HDP</span>
  107. <span v-if="scope.row.mode_id == 33">HFD</span>
  108. <span v-if="scope.row.mode_id == 34">HDF100</span>
  109. <span v-if="scope.row.mode_id == 35">HDF600</span>
  110. <span v-if="scope.row.mode_id == 36">HDF800</span>
  111. <span v-if="scope.row.mode_id == 37">HDF1000</span>
  112. </template>
  113. </el-table-column>
  114. <el-table-column align="center" label="透析器" v-if="gatherSetting.dialysis_dialyszers == 1">
  115. <template slot-scope="scope">
  116. <span v-if="scope.row.schedule_date == timenow">{{scope.row.dialysis_prescription.dialysis_dialyszers}}</span>
  117. <span v-if="scope.row.schedule_date < timenow">{{scope.row.dialysis_solution.dialysis_dialyszers}}</span>
  118. <span v-if="scope.row.schedule_date > timenow">{{scope.row.dialysis_solution.dialysis_dialyszers}}</span>
  119. </template>
  120. </el-table-column>
  121. <el-table-column align="center" label="灌流器" v-if="gatherSetting.dialysis_irrigation ==1">
  122. <template slot-scope="scope">
  123. <span v-if="scope.row.schedule_date == timenow">{{scope.row.dialysis_prescription.dialysis_irrigation}}</span>
  124. <span v-if="scope.row.schedule_date < timenow">{{scope.row.dialysis_solution.dialysis_irrigation}}</span>
  125. <span v-if="scope.row.schedule_date > timenow">{{scope.row.dialysis_solution.dialysis_irrigation}}</span>
  126. </template>
  127. </el-table-column>
  128. <el-table-column align="center" label="滤过器" v-if="gatherSetting.dialysis_strainer ==1">
  129. <template slot-scope="scope">
  130. <span v-if="scope.row.schedule_date == timenow">{{scope.row.dialysis_prescription.dialysis_strainer}}</span>
  131. <span v-if="scope.row.schedule_date<timenow">{{ scope.row.dialysis_solution.dialysis_strainer }}</span>
  132. <span v-if="scope.row.schedule_date>timenow">{{ scope.row.dialysis_solution.dialysis_strainer }}</span>
  133. </template>
  134. </el-table-column>
  135. <el-table-column align="center" label="换药包/穿刺针" v-if="gatherSetting.change_nurse ==1">
  136. <template slot-scope="scope">
  137. <span v-if="(getBloodAccessOption(scope.row.dialysis_prescription.blood_access)).indexOf('导管')!=-1">1</span>
  138. <span v-if="(getBloodAccessOption(scope.row.dialysis_prescription.blood_access)).indexOf('导管')==-1">0</span>
  139. /
  140. <span v-if="(getBloodAccessOption(scope.row.dialysis_prescription.blood_access)).indexOf('内瘘')==-1">0</span>
  141. <span v-if="(getBloodAccessOption(scope.row.dialysis_prescription.blood_access)).indexOf('内瘘')!=-1">1</span>
  142. </template>
  143. </el-table-column>
  144. <el-table-column align="center" label="抗凝剂(首剂)(维持)(总量)" v-if="gatherSetting.anticoagulant==1">
  145. <template slot-scope="scope">
  146. <span v-if="scope.row.schedule_date == timenow">
  147. <span>{{getAnticoagualnt(scope.row.dialysis_prescription.anticoagulant)}}</span>
  148. <span v-if="scope.row.dialysis_prescription.anticoagulant_shouji > 0">({{scope.row.dialysis_prescription.anticoagulant_shouji}})</span>
  149. <span v-if="scope.row.dialysis_prescription.anticoagulant_weichi > 0">({{scope.row.dialysis_prescription.anticoagulant_weichi}})</span>
  150. <span v-if="scope.row.dialysis_prescription.anticoagulant_zongliang > 0">({{scope.row.dialysis_prescription.anticoagulant_zongliang}})</span>
  151. </span>
  152. <span v-if="scope.row.schedule_date<timenow">
  153. <span>{{getAnticoagualnt(scope.row.dialysis_prescription.anticoagulant)}}</span>
  154. <span v-if="scope.row.dialysis_prescription.anticoagulant_shouji > 0">({{scope.row.dialysis_prescription.anticoagulant_shouji}})</span>
  155. <span v-if="scope.row.dialysis_prescription.anticoagulant_weichi > 0">({{scope.row.dialysis_prescription.anticoagulant_weichi}})</span>
  156. <span v-if="scope.row.dialysis_prescription.anticoagulant_zongliang > 0">({{scope.row.dialysis_prescription.anticoagulant_zongliang}})</span>
  157. </span>
  158. <span v-if="scope.row.schedule_date>timenow">
  159. <span>{{getAnticoagualnt(scope.row.dialysis_solution.anticoagulant)}}</span>
  160. <span v-if="scope.row.dialysis_solution.anticoagulant_shouji > 0">({{scope.row.dialysis_solution.anticoagulant_shouji}})</span>
  161. <span v-if="scope.row.dialysis_solution.anticoagulant_weichi > 0">({{scope.row.dialysis_solution.anticoagulant_weichi}})</span>
  162. <span v-if="scope.row.dialysis_solution.anticoagulant_zongliang > 0">({{scope.row.dialysis_solution.anticoagulant_zongliang}})</span>
  163. </span>
  164. </template>
  165. </el-table-column>
  166. <el-table-column align="center" label="封管液" v-if="gatherSetting.tube==1">
  167. <template slot-scope="scope">
  168. <span v-if="getBloodAccessOption(scope.row.dialysis_prescription.blood_access).indexOf('导管')!==-1">1</span>
  169. </template>
  170. </el-table-column>
  171. <el-table-column align="center" label="钾" v-if="gatherSetting.kalium==1">
  172. <template slot-scope="scope">
  173. <span v-if="scope.row.dialysis_prescription.kalium>0">{{scope.row.dialysis_prescription.kalium}}</span>
  174. </template>
  175. </el-table-column>
  176. <el-table-column align="center" label="钙" v-if="gatherSetting.calcium==1">
  177. <template slot-scope="scope">
  178. <span v-if="scope.row.dialysis_prescription.calcium>0">{{scope.row.dialysis_prescription.calcium}}</span>
  179. </template>
  180. </el-table-column>
  181. <el-table-column align="center" label="促红素" v-if="gatherSetting.cuhong == 1">
  182. <template slot-scope="scope">
  183. {{ scope.row.advice_spc }}
  184. </template>
  185. </el-table-column>
  186. <el-table-column align="center" label="左卡" v-if="gatherSetting.zuoka == 1">
  187. <template slot-scope="scope">
  188. {{ scope.row.advice_spc_one }}
  189. </template>
  190. </el-table-column>
  191. <el-table-column align="center" label="尿激酶" v-if="gatherSetting.niaojimei == 1">
  192. <template slot-scope="scope">
  193. {{ scope.row.advice_spc_two }}
  194. </template>
  195. </el-table-column>
  196. <el-table-column align="center" label="葡萄糖酸钙" v-if="gatherSetting.putaosuangai == 1">
  197. <template slot-scope="scope">
  198. {{ scope.row.advice_spc_three }}
  199. </template>
  200. </el-table-column>
  201. </el-table>
  202. <el-dialog
  203. title="统计类型设置"
  204. :visible.sync="dialogVisible"
  205. width="30%">
  206. <span>
  207. <el-checkbox v-model="index_number" label="序号"></el-checkbox>
  208. <el-checkbox v-model="zone" label="分区"></el-checkbox>
  209. <el-checkbox v-model="number" label="机号"></el-checkbox>
  210. <el-checkbox v-model="birth" label="出生日期"></el-checkbox>
  211. <el-checkbox v-model="name" label="姓名"></el-checkbox>
  212. <el-checkbox v-model="age" label="年龄"></el-checkbox>
  213. <el-checkbox v-model="mode_type" label="透析方式"></el-checkbox>
  214. <el-checkbox v-model="prescription_status" label="处方状态"></el-checkbox>
  215. <el-checkbox v-model="admission_number" label="住院号(门诊号)"></el-checkbox>
  216. <el-checkbox v-model="dialysis_no" label="透析号"></el-checkbox>
  217. <el-checkbox v-model="dry_weight" label="干体重"></el-checkbox>
  218. <el-checkbox v-model="dialysis_dialyszers" label="透析器"></el-checkbox>
  219. <el-checkbox v-model="dialysis_strainer" label="滤过器"></el-checkbox>
  220. <el-checkbox v-model="dialysis_irrigation" label="灌流器"></el-checkbox>
  221. <el-checkbox v-model="calcium" label="钙"></el-checkbox>
  222. <el-checkbox v-model="kalium" label="钾"></el-checkbox>
  223. <el-checkbox v-model="change_nurse" label="换药包"></el-checkbox>
  224. <el-checkbox v-model="puncture_needle" label="穿刺针"></el-checkbox>
  225. <el-checkbox v-model="anticoagulant" label="抗凝剂"></el-checkbox>
  226. <el-checkbox v-model="tube" label="封管液"></el-checkbox>
  227. <el-checkbox v-model="cuhong" label="促红素(医嘱)"></el-checkbox>
  228. <el-checkbox v-model="zuoka" label="左卡尼汀(医嘱)"></el-checkbox>
  229. <el-checkbox v-model="zhetangtie" label="蔗糖铁(医嘱)"></el-checkbox>
  230. <el-checkbox v-model="paligu" label="帕立骨化醇(医嘱)"></el-checkbox>
  231. <el-checkbox v-model="guhuachun" label="骨化三醇(医嘱)"></el-checkbox>
  232. <el-checkbox v-model="niaojimei" label="尿激酶(医嘱)"></el-checkbox>
  233. <el-checkbox v-model="putaosuangai" label="葡萄糖酸钙(医嘱)"></el-checkbox>
  234. <el-checkbox v-model="jiaguan" label="甲钴胺注射液(医嘱)"></el-checkbox>
  235. <el-checkbox v-model="xiongxiewutai" label="胸腺五肽(医嘱)"></el-checkbox>
  236. </span>
  237. <span slot="footer" class="dialog-footer">
  238. <el-button @click="dialogVisible = false">取 消</el-button>
  239. <el-button type="primary" @click="saveGatherSetting">确 定</el-button>
  240. </span>
  241. </el-dialog>
  242. </div>
  243. <el-pagination
  244. @size-change="handleSizeChange"
  245. @current-change="handleCurrentChange"
  246. :page-sizes="[100, 200, 300,500,1000]"
  247. :page-size="100"
  248. background
  249. align="right"
  250. style="margin-top:20px;"
  251. layout="total, sizes, prev, pager, next, jumper"
  252. :total="total"
  253. >
  254. </el-pagination>
  255. <el-dialog
  256. title="透析参数统计表"
  257. :visible.sync="startdialogVisible"
  258. width="70%">
  259. <span>
  260. <div class="cell clearfix">
  261. <label class="title"> <span class="name">排班班次</span> : </label>
  262. <el-select v-model="schedule_type" placeholder="请选择" @change="changeScheduleType">
  263. <el-option
  264. v-for="item in schedulArr"
  265. :key="item.value"
  266. :label="item.label"
  267. :value="item.value">
  268. </el-option>
  269. </el-select>
  270. <label class="title"> <span class="name">病区选择</span> : </label>
  271. <el-select v-model="partion_type" placeholder="请选择" @change="changePartionType">
  272. <el-option
  273. v-for="item in partitionArr"
  274. :key="item.id"
  275. :label="item.name"
  276. :value="item.id">
  277. </el-option>
  278. </el-select>
  279. <el-button size="small" @click="toPrintOne" icon="el-icon-printer" type="primary">打印</el-button>
  280. <el-button size="small" @click="exportListOne" type="primary">导出</el-button>
  281. </div>
  282. <el-table
  283. :data="tableList"
  284. border
  285. :row-style="{ color: '#303133' }"
  286. :header-cell-style="{
  287. backgroundColor: 'rgb(245, 247, 250)',
  288. color: '#606266'
  289. }"
  290. >
  291. <el-table-column align="center" label="序号">
  292. <template slot-scope="scope">
  293. {{scope.$index+1}}
  294. </template>
  295. </el-table-column>
  296. <el-table-column align="center" label="名称">
  297. <template slot-scope="scope">
  298. {{scope.row.name}}
  299. </template>
  300. </el-table-column>
  301. <el-table-column align="center" label="规格">
  302. <template slot-scope="scope">
  303. {{scope.row.specification_name}}
  304. </template>
  305. </el-table-column>
  306. <el-table-column align="center" label="数量">
  307. <template slot-scope="scope">
  308. {{scope.row.count}}
  309. </template>
  310. </el-table-column>
  311. </el-table>
  312. </span>
  313. <span slot="footer" class="dialog-footer">
  314. <el-button @click="startdialogVisible = false">取 消</el-button>
  315. <el-button type="primary" @click="startdialogVisible = false">确 定</el-button>
  316. </span>
  317. </el-dialog>
  318. <el-dialog
  319. title="统计"
  320. :visible.sync="startDialogVisibleOne"
  321. width="50%">
  322. <span>
  323. <div>
  324. <el-button size="small" @click="printThisInfo" icon="el-icon-printer" type="primary" style="float:right;margin-bottom: 10px;">打印</el-button>
  325. </div>
  326. <el-table
  327. :data="tableListOne"
  328. border
  329. style="width: 100%">
  330. <el-table-column prop="date" label="序号" align="center">
  331. <template slot-scope="scope">
  332. {{scope.$index+1}}
  333. </template>
  334. </el-table-column>
  335. <el-table-column prop="name" label="名称" align="center">
  336. <template slot-scope="scope">
  337. {{ scope.row.name }}
  338. </template>
  339. </el-table-column>
  340. <el-table-column prop="name" label="数量" align="center">
  341. <template slot-scope="scope">
  342. {{ scope.row.count }}
  343. </template>
  344. </el-table-column>
  345. </el-table>
  346. </span>
  347. <span slot="footer" class="dialog-footer">
  348. <el-button @click="startDialogVisibleOne = false">取 消</el-button>
  349. <el-button type="primary" @click="startDialogVisibleOne = false">确 定</el-button>
  350. </span>
  351. </el-dialog>
  352. <div style="display: none">
  353. <div id="print-info-box">
  354. <div class="print_main_content" >
  355. <div >
  356. <table >
  357. <tbody>
  358. <tr>
  359. <td style="width:8%;padding: 3px 0px;font-size: 17px;font-weight: 500;">
  360. 序号
  361. </td>
  362. <td style="padding: 3px 0px;font-size: 17px;">
  363. 名称
  364. </td>
  365. <td style="padding: 3px 0px;font-size: 17px;">
  366. 数量
  367. </td>
  368. </tr>
  369. <tr v-for="(it,index) in tableListOne">
  370. <td style="width:8%;padding: 3px 0px;font-size: 17px;font-weight: 500;">
  371. {{ index +1 }}
  372. </td>
  373. <td style="padding: 3px 0px;font-size: 17px;">
  374. {{ it.name }}
  375. </td>
  376. <td style="padding: 3px 0px;font-size: 17px;">
  377. {{it.count }}
  378. </td>
  379. </tr>
  380. </tbody>
  381. </table>
  382. </div>
  383. </div>
  384. </div>
  385. </div>
  386. </div>
  387. </template>
  388. <script>
  389. import { GetAllZone,saveGatherSetting,getGatherSetting,getDialysisGatherList,getDialysisParameterGoodList } from '@/api/dialysis'
  390. import { uParseTime } from "@/utils/tools";
  391. import {getRemindPrintList,saveRemindPrint} from '@/api/schedule'
  392. import { getDataConfig } from '@/utils/data'
  393. import print from "print-js";
  394. const moment = require('moment')
  395. import store from "@/store";
  396. export default {
  397. components: {
  398. },
  399. data() {
  400. return {
  401. query:{
  402. total:"",
  403. schedule_date:"",
  404. schedule_type:0,
  405. partition_id:0,
  406. page:1,
  407. limit:100,
  408. keywords:"",
  409. good_type:0,
  410. ids:"",
  411. },
  412. schedulType: 0,
  413. schedulArr: [
  414. { value: 0, label: '全部' },
  415. { value: 1, label: '上午' },
  416. { value: 2, label: '下午' },
  417. { value: 3, label: '晚上' }
  418. ],
  419. selected_date: "",
  420. partitionArr: [],
  421. goodList:[
  422. { id: 0, name: '全部' },
  423. { id: 1, name: '已出库' },
  424. { id: 2, name: '未出库' },
  425. ],
  426. partitionType: 0,
  427. goodType:0,
  428. tableData: [{
  429. date: '2016-05-03',
  430. name: '王小虎',
  431. address: '上海市普陀区金沙江路 1518 弄'
  432. }
  433. ],
  434. search_input: '',
  435. searchAction: '',
  436. allGoodInfo:[],
  437. list:[],
  438. new_list:[],
  439. good_types: [],
  440. arrKey:[],
  441. arrList:[],
  442. total:0,
  443. dialogVisible:false,
  444. predialysisConditionOptions:[],
  445. index_number:false,
  446. prescription_status:false,
  447. admission_number:false,
  448. dialysis_no:false,
  449. dry_weight:false,
  450. dialysis_dialyszers:false,
  451. dialysis_strainer:false,
  452. dialysis_irrigation:false,
  453. calcium:false,
  454. age:false,
  455. mode_type:false,
  456. zone:false,
  457. number:false,
  458. birth:false,
  459. name:false,
  460. age:false,
  461. change_nurse:false,
  462. puncture_needle:false,
  463. anticoagulant:false,
  464. anticoagulant:false,
  465. zhetangtie:false,
  466. paligu:false,
  467. cuhong:false,
  468. zuoka:false,
  469. zhetangtie:false,
  470. niaojimei:false,
  471. guhuachun:false,
  472. jiaguan:false,
  473. putaosuangai:false,
  474. xiongxiewutai:false,
  475. paligu:false,
  476. tube:false,
  477. schedule_type:0,
  478. partion_type:0,
  479. tableList:[],
  480. tableListOne:[
  481. {name:"换药包",count:0},
  482. {name:"穿刺包",count:0}
  483. ],
  484. dialysisSett:{},
  485. partitionArrOne:[],
  486. dialogVisibleOne: false,
  487. prescription_status: false,
  488. week: false,
  489. name: false,
  490. zone_name: false,
  491. classes: false,
  492. number: false,
  493. mode: false,
  494. dialyzers: false,
  495. perfusion_apparatus: false,
  496. anticoagulant: false,
  497. anticoagulant_zongliang: false,
  498. doctor_advice: false,
  499. kalium:false,
  500. startdialogVisible:false,
  501. displace_liqui_part_option:[],
  502. ids:"",
  503. form: {
  504. id: 0,
  505. prescription_status: '',
  506. week: '',
  507. name: '',
  508. zone: '',
  509. classes: '',
  510. number: '',
  511. mode: '',
  512. dialyzers: '',
  513. perfusion_apparatus: '',
  514. anticoagulant: '',
  515. anticoagulant_zongliang: '',
  516. doctor_advice: ''
  517. },
  518. pickerOptions:{ //禁用当前日期之前的日期
  519. disabledDate(v) {
  520. //Date.now()是javascript中的内置函数,它返回自1970年1月1日00:00:00 UTC以来经过的毫秒数。
  521. return v.getTime() < new Date().getTime() - 86400000;
  522. },
  523. },
  524. partition_id:0,
  525. zoneList:[],
  526. gatherSetting:{},
  527. timenow:0,
  528. startDialogVisibleOne:false,
  529. }
  530. },
  531. open(){
  532. console.log("寄哪里地方到付阿道夫")
  533. },
  534. created() {
  535. this.blood_access_option = getDataConfig('hemodialysis', 'vascular_access_desc')
  536. this.displace_liqui_part_option = this.$store.getters.displace_liqui
  537. var filedList = store.getters.xt_user.fileds
  538. var newArr = [
  539. {value:999999,filed_name_cn:"姓名"},
  540. {value:888888,filed_name_cn:"透析号"},
  541. {value:777777,filed_name_cn:"透析机号"}
  542. ]
  543. for (let i = 0; i < filedList.length; i++) {
  544. if (filedList[i].module == 1 && filedList[i].is_show == 1) {
  545. newArr.push(filedList[i])
  546. }
  547. if (filedList[i].module == 3 && filedList[i].is_show == 1 &&(filedList[i].filed_name_cn == "干体重" || filedList[i].filed_name_cn == "透前称重" || filedList[i].filed_name_cn == "收缩压" || filedList[i].filed_name_cn == "舒张压" )) {
  548. newArr.push(filedList[i])
  549. }
  550. this.predialysisConditionOptions = newArr
  551. }
  552. let date = uParseTime(new Date(), "{y}-{m}-{d}")
  553. var newDate = new Date();
  554. var y = newDate.getFullYear();
  555. var m = newDate.getMonth() + 1;
  556. var d = newDate.getDate();
  557. var schedule_date =
  558. y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
  559. this.selected_date = date
  560. this.query.schedule_date = schedule_date
  561. this.query.schedule_type = 0
  562. this.query.partition_id = 0
  563. this.query.page = 1
  564. this.getAllZone()
  565. let dateone = moment().format('YYYY-MM-DD')//获取标准时间 //Tue Aug 16 2022 15:06:24 GMT+0800 (中国标准时间)
  566. //方式一
  567. let timeStampOne = Date.parse(dateone)
  568. var arrDateTwo = (timeStampOne/1000)-28800
  569. console.log("时间搓2222",arrDateTwo)
  570. this.timenow = arrDateTwo
  571. },
  572. methods: {
  573. getlist(){
  574. var str = ""
  575. if(this.partition_id==0){
  576. str = this.zoneList.join(",")
  577. }
  578. if(this.partition_id!=0){
  579. str = this.partition_id.join(",")
  580. }
  581. this.query.partition_id = ""
  582. this.query.partition_id = str
  583. getDialysisGatherList(this.query).then(response=>{
  584. if(response.data.state == 1){
  585. var list = response.data.data.list
  586. this.gatherSetting = response.data.data.gatherSetting
  587. console.log("设置",this.gatherSetting)
  588. if(list!=null &&list.length>0){
  589. var total_one =0
  590. var total_two =0
  591. for(let i=0;i<list.length;i++){
  592. list[i].sort = 0
  593. list[i].sort = list[i].device_number.sort
  594. if(this.getBloodAccessOption(list[i].dialysis_prescription.blood_access).indexOf("导管")!=-1){
  595. total_one ++
  596. }
  597. if(this.getBloodAccessOption(list[i].dialysis_prescription.blood_access).indexOf('内瘘')!=-1){
  598. total_two ++
  599. }
  600. }
  601. this.tableListOne[0].count =total_one
  602. this.tableListOne[1].count = total_two
  603. }
  604. list.sort(this.compare('sort'))
  605. for(let i=0;i<list.length;i++){
  606. list[i].advice_spc =""
  607. list[i].advice_spc_one =""
  608. list[i].advice_spc_two =""
  609. list[i].advice_spc_three = ""
  610. for(let j=0;j<list[i].advice.length;j++){
  611. if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
  612. list[i].advice_spc+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
  613. }
  614. if((list[i].advice[j].advice_name).indexOf("左卡")!=-1){
  615. list[i].advice_spc_one+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
  616. }
  617. if((list[i].advice[j].advice_name).indexOf("尿激酶")!=-1){
  618. list[i].advice_spc_two+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
  619. }
  620. if((list[i].advice[j].advice_name).indexOf("葡萄糖酸钙")!=-1){
  621. list[i].advice_spc_three+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
  622. }
  623. }
  624. }
  625. console.log("listwowowowowowo日本",this.list)
  626. this.list = list
  627. this.total = response.data.data.total
  628. }
  629. })
  630. },
  631. compare(p) { //这是比较函数
  632. return function (m, n) {
  633. var a = m[p];
  634. var b = n[p];
  635. return a - b; //升序
  636. }
  637. },
  638. handleSizeChange(val) {
  639. this.query.limit = val;
  640. this.getlist();
  641. },
  642. handleCurrentChange(val) {
  643. this.query.page = val;
  644. this.getlist();
  645. },
  646. calCount(query_warehouseout_info) {
  647. let total = 0
  648. var array = []
  649. array = query_warehouseout_info
  650. for (let i = 0; i < array.length; i++) {
  651. total = total + array[i].count
  652. }
  653. return total
  654. },
  655. getGoodUserInfo(good_type_id,good_user,last_good_user) {
  656. var arrlist =[]
  657. if (good_user != null && good_user.length > 0) {
  658. let desc = ""
  659. for (let b = 0; b < good_user.length; b++){
  660. if(good_type_id == good_user[b].good_type_id)
  661. desc = desc + "\n" + good_user[b].info.specification_name +"*" +good_user[b].count
  662. }
  663. arrlist.push(desc)
  664. return desc
  665. }
  666. return ""
  667. },
  668. selectSchedulType(scheduleType) {
  669. this.schedulType = scheduleType
  670. this.query.schedule_type = scheduleType
  671. this.query.page = 1
  672. this.getlist()
  673. },
  674. selectPartitionType(partitionType) {
  675. // this.partitionType = partitionType
  676. this.query.partition_id = partitionType
  677. this.query.page = 1
  678. this.getlist()
  679. },
  680. selectGoodType(goodType){
  681. this.goodType = goodType
  682. this.query.good_type = goodType
  683. this.getlist()
  684. },
  685. getAllZone: function() {
  686. GetAllZone().then(response => {
  687. if (response.data.state == 0) {
  688. this.$message.error(response.data.msg)
  689. return false
  690. } else {
  691. for(let i=0;i<response.data.data.zone.length;i++){
  692. this.partitionArrOne.push(response.data.data.zone[i])
  693. this.zoneList.push(response.data.data.zone[i].id)
  694. }
  695. this.partitionArr = response.data.data.zone
  696. console.log("全部中",this.partitionArrOne)
  697. this.partitionArr.unshift({ id: 0, name: '全部' })
  698. this.getlist()
  699. }
  700. })
  701. },
  702. statistics() {
  703. this.tableList = []
  704. var params = {
  705. schedule_type:this.schedule_type,
  706. partion_type:this.partitionType,
  707. selected_date:this.query.schedule_date,
  708. }
  709. getDialysisParameterGoodList(params).then(response=>{
  710. if(response.data.state == 1){
  711. this.startdialogVisible = true
  712. var list = response.data.data.list
  713. var anticoagulantList = []
  714. if(list!=null && list.length>0){
  715. for(let i=0;i<list.length;i++){
  716. list[i].dialysis_dialyszers_arr = []
  717. list[i].dialyzer_perfusion_apparatus_arr = []
  718. list[i].dialysis_irrigation_arr = []
  719. list[i].dialysis_strainer_arr =[]
  720. if(list[i].dialysis_solution.dialysis_dialyszers!=""){
  721. list[i].dialysis_dialyszers_arr = list[i].dialysis_solution.dialysis_dialyszers.split(",")
  722. }
  723. if(list[i].dialysis_solution.dialyzer_perfusion_apparatus!=""){
  724. list[i].dialyzer_perfusion_apparatus_arr = list[i].dialysis_solution.dialyzer_perfusion_apparatus.split(",")
  725. }
  726. if(list[i].dialysis_solution.dialysis_irrigation!=""){
  727. list[i].dialysis_irrigation_arr = list[i].dialysis_solution.dialysis_irrigation.split(",")
  728. }
  729. if(list[i].dialysis_solution.dialysis_strainer!=""){
  730. list[i].dialysis_strainer_arr = list[i].dialysis_solution.dialysis_strainer.split(",")
  731. }
  732. if(list[i].dialysis_solution.anticoagulant == 1){
  733. anticoagulantList.push(list[i].dialysis_solution)
  734. }
  735. if(list[i].dialysis_solution.anticoagulant == 2){
  736. anticoagulantList.push(list[i].dialysis_solution)
  737. }
  738. if(list[i].dialysis_solution.anticoagulant == 3){
  739. anticoagulantList.push(list[i].dialysis_solution)
  740. }
  741. if(list[i].dialysis_solution.anticoagulant == 4){
  742. anticoagulantList.push(list[i].dialysis_solution)
  743. }
  744. if(list[i].dialysis_solution.anticoagulant == 5){
  745. anticoagulantList.push(list[i].dialysis_solution)
  746. }
  747. if(list[i].dialysis_solution.anticoagulant == 6){
  748. anticoagulantList.push(list[i].dialysis_solution)
  749. }
  750. if(list[i].dialysis_solution.anticoagulant == 7){
  751. anticoagulantList.push(list[i].dialysis_solution)
  752. }
  753. if(list[i].dialysis_solution.anticoagulant == 8){
  754. anticoagulantList.push(list[i].dialysis_solution)
  755. }
  756. if(list[i].dialysis_solution.anticoagulant == 9){
  757. anticoagulantList.push(list[i].dialysis_solution)
  758. }
  759. if(list[i].dialysis_solution.anticoagulant == 10){
  760. anticoagulantList.push(list[i].dialysis_solution)
  761. }
  762. if(list[i].dialysis_solution.anticoagulant == 11){
  763. anticoagulantList.push(list[i].dialysis_solution)
  764. }
  765. if(list[i].dialysis_solution.anticoagulant == 12){
  766. anticoagulantList.push(list[i].dialysis_solution)
  767. }
  768. if(list[i].dialysis_solution.anticoagulant == 13){
  769. anticoagulantList.push(list[i].dialysis_solution)
  770. }
  771. }
  772. }
  773. console.log("anticoagulantList",anticoagulantList)
  774. this.tableList = []
  775. if(anticoagulantList!=null && anticoagulantList.length > 0){
  776. let dataInfoOne = {}
  777. anticoagulantList.forEach((item, index) => {
  778. let { anticoagulant } = item
  779. if (!dataInfoOne[anticoagulant]) {
  780. dataInfoOne[anticoagulant] = {
  781. anticoagulant:item.anticoagulant,
  782. name: "抗凝剂",
  783. specification_name:this.getAnticoagualnt(item.anticoagulant),
  784. count:0,
  785. child:[]
  786. }
  787. }
  788. })
  789. let hisarr = Object.values(dataInfoOne)
  790. if(hisarr!=null && hisarr.length > 0){
  791. for(let i=0;i<anticoagulantList.length;i++){
  792. for(let j=0;j<hisarr.length;j++){
  793. if(anticoagulantList[i].anticoagulant == hisarr[j].anticoagulant){
  794. hisarr[j].child.push(anticoagulantList[i])
  795. }
  796. }
  797. }
  798. }
  799. for(let i=0;i<hisarr.length;i++){
  800. hisarr[i].count = hisarr[i].child.length
  801. this.tableList.push(hisarr[i])
  802. }
  803. console.log("hisarr",hisarr)
  804. }
  805. var dialysisDialyszersArr = []
  806. var dialyzerPerfusionApparaArr = []
  807. var dialysisIrrigationArr = []
  808. var dialysisStrainerArr = []
  809. for(let i=0;i<list.length;i++){
  810. for(let j=0;j<list[i].dialysis_dialyszers_arr.length;j++){
  811. dialysisDialyszersArr.push(list[i].dialysis_dialyszers_arr[j])
  812. }
  813. for(let z=0;z<list[i].dialyzer_perfusion_apparatus_arr.length;z++){
  814. dialyzerPerfusionApparaArr.push(list[i].dialyzer_perfusion_apparatus_arr[z])
  815. }
  816. for(let y=0;y<list[i].dialysis_irrigation_arr.length;y++){
  817. dialysisIrrigationArr.push(list[i].dialysis_irrigation_arr[y])
  818. }
  819. for(let p=0;p<list[i].dialysis_strainer_arr.length;p++){
  820. dialysisStrainerArr.push(list[i].dialysis_strainer_arr[p])
  821. }
  822. }
  823. let obj = {}
  824. let objOne = {}
  825. let objTwo = {}
  826. let objThree = {}
  827. for(let i = 0 ; i < dialysisDialyszersArr.length; i++){
  828. if(obj[dialysisDialyszersArr[i]]){
  829. obj[dialysisDialyszersArr[i]] +=1
  830. }else{
  831. obj[dialysisDialyszersArr[i]] = 1
  832. }
  833. }
  834. let Arr = [];
  835. for (let i in obj) {
  836. let a = {};
  837. a[i] = obj[i];
  838. a.name = "透析器"
  839. a.count = obj[i]
  840. a.specification_name = i
  841. Arr.push(a);
  842. }
  843. for(let i=0;i<dialyzerPerfusionApparaArr.length;i++){
  844. if(objOne[dialyzerPerfusionApparaArr[i]]){
  845. objOne[dialyzerPerfusionApparaArr[i]] +=1
  846. }else{
  847. objOne[dialyzerPerfusionApparaArr[i]] = 1
  848. }
  849. }
  850. for (let i in objOne) {
  851. let a = {};
  852. a[i] = objOne[i];
  853. a.name = "透析器/灌流器"
  854. a.count = objOne[i]
  855. a.specification_name = i
  856. Arr.push(a);
  857. }
  858. for(let i=0;i<dialysisIrrigationArr.length;i++){
  859. if(objTwo[dialysisIrrigationArr[i]]){
  860. objTwo[dialysisIrrigationArr[i]] +=1
  861. }else{
  862. objTwo[dialysisIrrigationArr[i]] = 1
  863. }
  864. }
  865. for (let i in objTwo) {
  866. let a = {};
  867. a[i] = objTwo[i];
  868. a.name = "灌流器"
  869. a.count = objTwo[i]
  870. a.specification_name = i
  871. Arr.push(a);
  872. }
  873. console.log("newa",Arr)
  874. for (let i in objThree) {
  875. let a = {};
  876. a[i] = objThree[i];
  877. a.name = "滤过器"
  878. a.count = objThree[i]
  879. a.specification_name = i
  880. Arr.push(a);
  881. }
  882. for(let i=0;i<dialysisStrainerArr.length;i++){
  883. if(objThree[dialysisStrainerArr[i]]){
  884. objThree[dialysisStrainerArr[i]] +=1
  885. }else{
  886. objThree[dialysisStrainerArr[i]] = 1
  887. }
  888. }
  889. for (let i in objThree) {
  890. let a = {};
  891. a[i] = objThree[i];
  892. a.name = "滤过器"
  893. a.count = objThree[i]
  894. a.specification_name = i
  895. Arr.push(a);
  896. }
  897. if(Arr.length >0){
  898. for(let i=0;i<Arr.length;i++){
  899. this.tableList.push(Arr[i])
  900. }
  901. }
  902. }
  903. })
  904. },
  905. getModeName(id){
  906. var mode_name =""
  907. if(id == 1){
  908. mode_name = "HD"
  909. }
  910. if(id == 2){
  911. mode_name = "HDF"
  912. }
  913. if(id == 3){
  914. mode_name = "HD+HP"
  915. }
  916. if(id == 4){
  917. mode_name = "HP"
  918. }
  919. if(id == 5){
  920. mode_name = "HF"
  921. }
  922. if(id == 6){
  923. mode_name = "SCUF"
  924. }
  925. if(id == 7){
  926. mode_name = "IUF"
  927. }
  928. if(id == 8){
  929. mode_name = "HFHD"
  930. }
  931. if(id == 9){
  932. mode_name = "HFHD+HP"
  933. }
  934. if(id == 10){
  935. mode_name = "PHF"
  936. }
  937. if(id ==11){
  938. mode_name ="HFR"
  939. }
  940. if(id ==12){
  941. mode_name ="HDF+HP"
  942. }
  943. if(id ==25){
  944. mode_name ="HD高通"
  945. }
  946. if(id ==31){
  947. mode_name ="HPD"
  948. }
  949. if(id ==32){
  950. mode_name ="HDP"
  951. }
  952. if(id ==33){
  953. mode_name ="HFD"
  954. }
  955. if(id ==34){
  956. mode_name ="HDF100"
  957. }
  958. if(id ==35){
  959. mode_name ="HDF600"
  960. }
  961. if(id ==36){
  962. mode_name ="HDF800"
  963. }
  964. if(id ==37){
  965. mode_name ="HDF1000"
  966. }
  967. return mode_name
  968. },
  969. getAnticoagulantName(id){
  970. var name = ""
  971. if(id ==1){
  972. name ="无肝素"
  973. }
  974. if(id == 2){
  975. name ="普通肝素"
  976. }
  977. if(id ==3){
  978. name ="低分子肝素"
  979. }
  980. if(id == 6){
  981. name ="低分子肝素钙"
  982. }
  983. if(id == 7){
  984. name ="低分子肝素钠"
  985. }
  986. return name
  987. },
  988. handleScheduleDateChange(val) {
  989. this.query.schedule_date = val
  990. this.query.page = 1
  991. this.getlist()
  992. },
  993. search() {
  994. this.query.page = 1
  995. this.getlist()
  996. },
  997. exportList(){
  998. import('@/vendor/Export2Excel').then(excel => {
  999. if(this.list!=null && this.list.length > 0){
  1000. console.log("hhhahhah",this.list)
  1001. for(let i=0;i<this.list.length;i++){
  1002. this.list[i].index = i+1
  1003. this.list[i].mode_name = this.getModeName(this.list[i].mode_id)
  1004. this.list[i].device_number_one = this.list[i].device_number.zone.name + this.list[i].device_number.number
  1005. this.list[i].patient_name = this.list[i].patient.name
  1006. this.list[i].dialysis_no = this.list[i].patient.dialysis_no
  1007. this.list[i].admission_number = this.list[i].xt_receive_treatment_asses.admission_number
  1008. this.list[i].weight_before = this.list[i].assessment_befor_dislysis.weight_before?this.list[i].assessment_befor_dislysis.weight_before:"",
  1009. this.list[i].dry_weight = this.list[i].assessment_befor_dislysis.dry_weight?this.list[i].assessment_befor_dislysis.dry_weight:""
  1010. this.list[i].blood_pressure = this.list[i].assessment_befor_dislysis.systolic_blood_pressure?this.list[i].assessment_befor_dislysis.systolic_blood_pressure:"" + "/" + this.list[i].assessment_befor_dislysis.diastolic_blood_pressure? this.list[i].assessment_befor_dislysis.diastolic_blood_pressure:""
  1011. if(this.list[i].blood_pressure == 0){
  1012. this.list[i].blood_pressure = ""
  1013. }
  1014. this.list[i].ultrafiltration_volume = this.list[i].dialysis_solution.target_ultrafiltration?this.list[i].dialysis_solution.target_ultrafiltration:""
  1015. this.list[i].anticoagulant_one=""
  1016. this.list[i].anticoagulant_one = (this.getAnticoagualnt(this.list[i].dialysis_solution.anticoagulant)) + "(" + (this.list[i].dialysis_solution.anticoagulant_shouji) +")" + "("+(this.list[i].dialysis_solution.anticoagulant_weichi) +")"+"("+(this.list[i].dialysis_solution.anticoagulant_zongliang)+")"
  1017. this.list[i].dialysis_time = this.list[i].dialysis_solution.dialysis_duration_hour?this.list[i].dialysis_solution.dialysis_duration_hour:"" + "时"+ this.list[i].dialysis_solution.dialysis_duration_minute?this.list[i].dialysis_solution.dialysis_duration_minute:"" + "分"
  1018. if(this.list[i].dialysis_time == 0){
  1019. this.list[i].dialysis_time = ""
  1020. }
  1021. this.list[i].device_type = this.list[i].assessment_befor_dislysis.machine_type
  1022. this.list[i].dialyzer_perfusion_apparatus = this.list[i].dialysis_solution.dialyzer_perfusion_apparatus
  1023. this.list[i].dialysis_dialyszers = this.list[i].dialysis_solution.dialysis_dialyszers
  1024. this.list[i].dialysis_irrigation = this.list[i].dialysis_solution.dialysis_irrigation
  1025. this.list[i].displace_liqui_part = this.getDisplaceLiquiPart(this.list[i].dialysis_solution.displace_liqui_part)
  1026. this.list[i].displace_liqui_value = this.list[i].dialysis_solution.displace_liqui_value? this.list[i].dialysis_solution.displace_liqui_value:""
  1027. this.list[i].kalium = this.list[i].dialysis_solution.kalium?this.list[i].dialysis_solution.kalium:""
  1028. this.list[i].sodium = this.list[i].dialysis_solution.sodium?this.list[i].dialysis_solution.sodium:""
  1029. this.list[i].calcium = this.list[i].dialysis_solution.calcium?this.list[i].dialysis_solution.calcium:""
  1030. this.list[i].blood_access = this.getBloodAccessOption(this.list[i].dialysis_solution.blood_access)
  1031. this.list[i].sealing_fluid_dispose =this.list[i].xt_assesment_after_dislysis.sealing_fluid_dispose
  1032. this.list[i].glucose = this.list[i].dialysis_solution.glucose?this.list[i].dialysis_solution.glucose:""
  1033. this.list[i].blood_flow_volume = this.list[i].dialysis_solution.blood_flow_volume?this.list[i].dialysis_solution.blood_flow_volume:""
  1034. this.list[i].bicarbonate = this.list[i].dialysis_solution.bicarbonate? this.list[i].dialysis_solution.bicarbonate:""
  1035. this.list[i].count =0
  1036. if(this.getBloodAccessOption(this.list[i].dialysis_solution.blood_access).indexOf("导管")!=-1){
  1037. this.list[i].count =1
  1038. }
  1039. }
  1040. }
  1041. console.log("list23323232322323wode",this.list)
  1042. var arr= []
  1043. var arrTwo = []
  1044. arr.push('序号')
  1045. arrTwo.push("index")
  1046. if(this.dialysisSett.device_number == 1){
  1047. arr.push("透析机号")
  1048. arrTwo.push("device_number_one")
  1049. }
  1050. if(this.dialysisSett.name == 1){
  1051. arr.push("姓名")
  1052. arrTwo.push("patient_name")
  1053. }
  1054. arr.push("透析模式")
  1055. arrTwo.push("mode_name")
  1056. if(this.dialysisSett.dialysis_no == 1){
  1057. arr.push("透析号")
  1058. arrTwo.push("dialysis_no")
  1059. }
  1060. if(this.dialysisSett.admission_number == 1){
  1061. arr.push("住院(门诊)号")
  1062. arrTwo.push("admission_number")
  1063. }
  1064. if(this.dialysisSett.weight_befor == 1){
  1065. arr.push("透前体重")
  1066. arrTwo.push("weight_before")
  1067. }
  1068. if(this.dialysisSett.dry_weight == 1){
  1069. arr.push("干体重")
  1070. arrTwo.push("dry_weight")
  1071. }
  1072. if(this.dialysisSett.blood_pressure == 1){
  1073. arr.push("透前血压")
  1074. arrTwo.push("blood_pressure")
  1075. }
  1076. if(this.dialysisSett.ultrafiltration_volume == 1){
  1077. arr.push("目标脱水量")
  1078. arrTwo.push("ultrafiltration_volume")
  1079. }
  1080. if(this.dialysisSett.anticoagulant == 1){
  1081. arr.push("抗凝剂(首剂)(维持)(总量)")
  1082. arrTwo.push("anticoagulant_one")
  1083. }
  1084. if(this.dialysisSett.dialysis_time == 1){
  1085. arr.push("透析时长")
  1086. arrTwo.push("dialysis_time")
  1087. }
  1088. if(this.dialysisSett.device_type == 1){
  1089. arr.push("设备型号")
  1090. arrTwo.push("device_type")
  1091. }
  1092. if(this.dialysisSett.dialyzer_perfusion_apparatus == 1){
  1093. arr.push("透析器/灌流器")
  1094. arrTwo.push("dialyzer_perfusion_apparatus")
  1095. }
  1096. if(this.dialysisSett.dialysis_dialyszers == 1){
  1097. arr.push("透析器")
  1098. arrTwo.push("dialysis_dialyszers")
  1099. }
  1100. if(this.dialysisSett.dialysis_irrigation == 1){
  1101. arr.push("灌流器")
  1102. arrTwo.push("dialysis_irrigation")
  1103. }
  1104. if(this.dialysisSett.displace_liqui_part == 1){
  1105. arr.push("置换液")
  1106. arrTwo.push("displace_liqui_part")
  1107. }
  1108. if(this.dialysisSett.displace_liqui_value == 1){
  1109. arr.push("置换液总量")
  1110. arrTwo.push("displace_liqui_value")
  1111. }
  1112. if(this.dialysisSett.kalium == 1){
  1113. arr.push("钾")
  1114. arrTwo.push("kalium")
  1115. }
  1116. if(this.dialysisSett.sodium == 1){
  1117. arr.push("钠")
  1118. arrTwo.push("sodium")
  1119. }
  1120. if(this.dialysisSett.calcium == 1){
  1121. arr.push("钙")
  1122. arrTwo.push("calcium")
  1123. }
  1124. if(this.dialysisSett.bicarbonate == 1){
  1125. arr.push("碳酸氢盐")
  1126. arrTwo.push("bicarbonate")
  1127. }
  1128. if(this.dialysisSett.blood_access == 1){
  1129. arr.push("血管通路")
  1130. arrTwo.push("blood_access")
  1131. }
  1132. if(this.dialysisSett.sealing_fluid_dispose == 1){
  1133. arr.push("封管液")
  1134. arrTwo.push("sealing_fluid_dispose")
  1135. }
  1136. if(this.dialysisSett.glucose == 1){
  1137. arr.push("葡萄糖")
  1138. arrTwo.push("glucose")
  1139. }
  1140. if(this.dialysisSett.blood_flow_volume == 1){
  1141. arr.push("血流量")
  1142. arrTwo.push("blood_flow_volume")
  1143. }
  1144. arr.push("封管液")
  1145. arrTwo.push("count")
  1146. arr.push("促红")
  1147. arrTwo.push("advice_spc")
  1148. const tHeader = arr
  1149. const filterVal = arrTwo
  1150. const data = this.formatJson(filterVal, this.list)
  1151. console.log("DATWOWOWOWO",data)
  1152. excel.export_json_to_excel({
  1153. header: tHeader,
  1154. data,
  1155. filename: '透析参数查询'
  1156. })
  1157. this.downloadLoading = false
  1158. })
  1159. },
  1160. formatJson(filterVal, jsonData) {
  1161. return jsonData.map(v => filterVal.map(j => v[j]));
  1162. },
  1163. exportListOne(){
  1164. import('@/vendor/Export2Excel').then(excel => {
  1165. if(this.tableList!=null && this.tableList.length > 0){
  1166. for(let i=0;i<this.tableList.length;i++){
  1167. this.tableList[i].index = i+1
  1168. }
  1169. }
  1170. const tHeader = ['序号','名称','规格','数量']
  1171. const filterVal = ['index', 'name','specification_name','count']
  1172. const data = this.formatJson(filterVal, this.tableList)
  1173. excel.export_json_to_excel({
  1174. header: tHeader,
  1175. data,
  1176. filename: '透析参数统计'
  1177. })
  1178. this.downloadLoading = false
  1179. })
  1180. },
  1181. toDialog(){
  1182. getGatherSetting().then(response=>{
  1183. if(response.data.state == 1){
  1184. this.dialogVisible = true
  1185. var gatherSetting = response.data.data.gatherSetting
  1186. if(gatherSetting!=null){
  1187. if(gatherSetting.index_number == 1){
  1188. this.index_number = true
  1189. }else{
  1190. this.index_number = false
  1191. }
  1192. if(gatherSetting.zone == 1){
  1193. this.zone = true
  1194. }else{
  1195. this.zone = false
  1196. }
  1197. if(gatherSetting.number == 1){
  1198. this.number = true
  1199. }else{
  1200. this.number = false
  1201. }
  1202. if(gatherSetting.birth == 1){
  1203. this.birth = true
  1204. }else{
  1205. this.birth = false
  1206. }
  1207. if(gatherSetting.name == 1){
  1208. this.name = true
  1209. }else{
  1210. this.name = false
  1211. }
  1212. if(gatherSetting.age == 1){
  1213. this.age = true
  1214. }else{
  1215. this.age = false
  1216. }
  1217. if(gatherSetting.mode_type == 1){
  1218. this.mode_type = true
  1219. }else{
  1220. this.mode_type = false
  1221. }
  1222. if(gatherSetting.prescription_status == 1){
  1223. this.prescription_status = true
  1224. }else{
  1225. this.prescription_status = false
  1226. }
  1227. if(gatherSetting.admission_number == 1){
  1228. this.admission_number = true
  1229. }else{
  1230. this.admission_number = false
  1231. }
  1232. if(gatherSetting.dialysis_no == 1){
  1233. this.dialysis_no = true
  1234. }else{
  1235. this.dialysis_no = false
  1236. }
  1237. if(gatherSetting.dry_weight == 1){
  1238. this.dry_weight = true
  1239. }else{
  1240. this.dry_weight = false
  1241. }
  1242. if(gatherSetting.dialysis_dialyszers == 1){
  1243. this.dialysis_dialyszers = true
  1244. }else{
  1245. this.dialysis_dialyszers = false
  1246. }
  1247. if(gatherSetting.dialysis_strainer == 1){
  1248. this.dialysis_strainer = true
  1249. }else{
  1250. this.dialysis_strainer = false
  1251. }
  1252. if(gatherSetting.dialysis_irrigation == 1){
  1253. this.dialysis_irrigation = true
  1254. }else{
  1255. this.dialysis_irrigation = false
  1256. }
  1257. if(gatherSetting.calcium == 1){
  1258. this.calcium = true
  1259. }else{
  1260. this.calcium = false
  1261. }
  1262. if(gatherSetting.kalium == 1){
  1263. this.kalium = true
  1264. }else{
  1265. this.kalium = false
  1266. }
  1267. if(gatherSetting.change_nurse == 1){
  1268. this.change_nurse = true
  1269. }else{
  1270. this.change_nurse = false
  1271. }
  1272. if(gatherSetting.puncture_needle == 1){
  1273. this.puncture_needle = true
  1274. }else{
  1275. this.puncture_needle = false
  1276. }
  1277. if(gatherSetting.anticoagulant == 1){
  1278. this.anticoagulant = true
  1279. }else{
  1280. this.anticoagulant = false
  1281. }
  1282. if(gatherSetting.tube == 1){
  1283. this.tube = true
  1284. }else{
  1285. this.tube = false
  1286. }
  1287. if(gatherSetting.cuhong == 1){
  1288. this.cuhong = true
  1289. }else{
  1290. this.cuhong = false
  1291. }
  1292. if(gatherSetting.zuoka == 1){
  1293. this.zuoka = true
  1294. }else{
  1295. this.zuoka = false
  1296. }
  1297. if(gatherSetting.zhetangtie == 1){
  1298. this.zhetangtie = true
  1299. }else{
  1300. this.zhetangtie = false
  1301. }
  1302. if(gatherSetting.paligu == 1){
  1303. this.paligu = true
  1304. }else{
  1305. this.paligu = false
  1306. }
  1307. if(gatherSetting.guhuachun == 1){
  1308. this.guhuachun = true
  1309. }else{
  1310. this.guhuachun = false
  1311. }
  1312. if(gatherSetting.niaojimei == 1){
  1313. this.niaojimei = true
  1314. }else{
  1315. this.niaojimei = false
  1316. }
  1317. if(gatherSetting.putaosuangai == 1){
  1318. this.putaosuangai = true
  1319. }else{
  1320. this.putaosuangai = false
  1321. }
  1322. if(gatherSetting.jiaguan == 1){
  1323. this.jiaguan = true
  1324. }else{
  1325. this.jiaguan = false
  1326. }
  1327. if(gatherSetting.xiongxiewutai == 1){
  1328. this.xiongxiewutai = true
  1329. }else{
  1330. this.xiongxiewutai = false
  1331. }
  1332. }
  1333. }
  1334. })
  1335. },
  1336. saveGatherSetting(){
  1337. var is_index_number = 2
  1338. var is_zone = 2
  1339. var is_age =2
  1340. var is_number = 2
  1341. var is_birth = 2
  1342. var is_name = 2
  1343. var is_mode_type = 2
  1344. var is_prescription_status = 2
  1345. var is_admission_number = 2
  1346. var is_dialysis_no= 2
  1347. var is_dry_weight = 2
  1348. var is_dialysis_dialyszers = 2
  1349. var is_dialysis_strainer = 2
  1350. var is_dialysis_irrigation = 2
  1351. var is_calcium =2
  1352. var is_kalium =2
  1353. var is_change_nurse =2
  1354. var is_puncture_needle =2
  1355. var is_anticoagulant = 2
  1356. var is_tube = 2
  1357. var is_cuhong =2
  1358. var is_zuoka =2
  1359. var is_zhetangtie = 2
  1360. var is_paligu = 2
  1361. var is_guhuachun =2
  1362. var is_niaojimei =2
  1363. var is_putaosuangai =2
  1364. var is_jiaguan =2
  1365. var is_xiongxiewutai =2
  1366. if(this.index_number == false){
  1367. is_index_number = 2
  1368. }
  1369. if(this.index_number == true){
  1370. is_index_number = 1
  1371. }
  1372. if(this.zone ==false){
  1373. is_zone = 2
  1374. }
  1375. if(this.zone == true){
  1376. is_zone = 1
  1377. }
  1378. if(this.number ==false){
  1379. is_number = 2
  1380. }
  1381. if(this.number == true){
  1382. is_number = 1
  1383. }
  1384. if(this.birth == false){
  1385. is_birth = 2
  1386. }
  1387. if(this.birth == true){
  1388. is_birth =1
  1389. }
  1390. if(this.name == false){
  1391. is_name = 2
  1392. }
  1393. if(this.name == true){
  1394. is_name = 1
  1395. }
  1396. if(this.mode_type == false){
  1397. is_mode_type =2
  1398. }
  1399. if(this.mode_type == true){
  1400. is_mode_type = 1
  1401. }
  1402. if(this.prescription_status == false){
  1403. is_prescription_status =2
  1404. }
  1405. if(this.prescription_status == true){
  1406. is_prescription_status = 1
  1407. }
  1408. if(this.admission_number == false){
  1409. is_admission_number =2
  1410. }
  1411. if(this.admission_number == true){
  1412. is_admission_number = 1
  1413. }
  1414. if(this.dialysis_no == false){
  1415. is_dialysis_no =2
  1416. }
  1417. if(this.dialysis_no == true){
  1418. is_dialysis_no = 1
  1419. }
  1420. if(this.dry_weight == false){
  1421. is_dry_weight =2
  1422. }
  1423. if(this.dry_weight == true){
  1424. is_dry_weight = 1
  1425. }
  1426. if(this.dialysis_dialyszers == false){
  1427. is_dialysis_dialyszers =2
  1428. }
  1429. if(this.dialysis_dialyszers == true){
  1430. is_dialysis_dialyszers = 1
  1431. }
  1432. if(this.dialysis_strainer == false){
  1433. is_dialysis_strainer =2
  1434. }
  1435. if(this.dialysis_strainer == true){
  1436. is_dialysis_strainer = 1
  1437. }
  1438. if(this.dialysis_irrigation == false){
  1439. is_dialysis_irrigation =2
  1440. }
  1441. if(this.dialysis_irrigation == true){
  1442. is_dialysis_irrigation = 1
  1443. }
  1444. if(this.calcium == false){
  1445. is_calcium =2
  1446. }
  1447. if(this.calcium == true){
  1448. is_calcium = 1
  1449. }
  1450. if(this.kalium == false){
  1451. is_kalium =2
  1452. }
  1453. if(this.kalium == true){
  1454. is_kalium =1
  1455. }
  1456. if(this.change_nurse == false){
  1457. is_change_nurse =2
  1458. }
  1459. if(this.change_nurse == true){
  1460. is_change_nurse =1
  1461. }
  1462. if(this.puncture_needle == false){
  1463. is_puncture_needle =2
  1464. }
  1465. if(this.puncture_needle == true){
  1466. is_puncture_needle =1
  1467. }
  1468. if(this.anticoagulant == false){
  1469. is_anticoagulant =2
  1470. }
  1471. if(this.anticoagulant == true){
  1472. is_anticoagulant =1
  1473. }
  1474. if(this.tube == false){
  1475. is_tube =2
  1476. }
  1477. if(this.tube == true){
  1478. is_tube =1
  1479. }
  1480. if(this.cuhong == false){
  1481. is_cuhong =2
  1482. }
  1483. if(this.cuhong == true){
  1484. is_cuhong =1
  1485. }
  1486. if(this.zuoka == false){
  1487. is_zuoka =2
  1488. }
  1489. if(this.zuoka == true){
  1490. is_zuoka =1
  1491. }
  1492. if(this.zhetangtie == false){
  1493. is_zhetangtie =2
  1494. }
  1495. if(this.zhetangtie == true){
  1496. is_zhetangtie =1
  1497. }
  1498. if(this.paligu == false){
  1499. is_paligu =2
  1500. }
  1501. if(this.paligu == true){
  1502. is_paligu =1
  1503. }
  1504. if(this.guhuachun == false){
  1505. is_guhuachun =2
  1506. }
  1507. if(this.guhuachun == true){
  1508. is_guhuachun =1
  1509. }
  1510. if(this.niaojimei == false){
  1511. is_niaojimei =2
  1512. }
  1513. if(this.niaojimei == true){
  1514. is_niaojimei =1
  1515. }
  1516. if(this.putaosuangai == false){
  1517. is_putaosuangai =2
  1518. }
  1519. if(this.putaosuangai == true){
  1520. is_putaosuangai =1
  1521. }
  1522. if(this.jiaguan == false){
  1523. is_jiaguan =2
  1524. }
  1525. if(this.jiaguan == true){
  1526. is_jiaguan =1
  1527. }
  1528. if(this.xiongxiewutai == false){
  1529. is_xiongxiewutai =2
  1530. }
  1531. if(this.xiongxiewutai == true){
  1532. is_xiongxiewutai =1
  1533. }
  1534. if(this.age == true){
  1535. is_age = 1
  1536. }
  1537. if(this.age == false){
  1538. is_age = 2
  1539. }
  1540. if(this.birth == true){
  1541. is_birth = 1
  1542. }
  1543. if(this.birth == false){
  1544. is_birth = 2
  1545. }
  1546. var params = {
  1547. is_index_number:is_index_number,
  1548. is_number:is_number,
  1549. is_name:is_name,
  1550. is_zone:is_zone,
  1551. is_age:is_age,
  1552. is_birth:is_birth,
  1553. is_mode_type:is_mode_type,
  1554. is_prescription_status:is_prescription_status,
  1555. is_admission_number:is_admission_number,
  1556. is_dialysis_no:is_dialysis_no,
  1557. is_dry_weight:is_dry_weight,
  1558. is_dialysis_dialyszers:is_dialysis_dialyszers,
  1559. is_dialysis_strainer:is_dialysis_strainer,
  1560. is_dialysis_irrigation:is_dialysis_irrigation,
  1561. is_calcium:is_calcium,
  1562. is_kalium:is_kalium,
  1563. is_change_nurse:is_change_nurse,
  1564. is_puncture_needle:is_puncture_needle,
  1565. is_anticoagulant:is_anticoagulant,
  1566. is_tube:is_tube,
  1567. is_cuhong:is_cuhong,
  1568. is_zuoka:is_zuoka,
  1569. is_zhetangtie:is_zhetangtie,
  1570. is_paligu:is_paligu,
  1571. is_guhuachun:is_guhuachun,
  1572. is_niaojimei:is_niaojimei,
  1573. is_putaosuangai:is_putaosuangai,
  1574. is_jiaguan:is_jiaguan,
  1575. is_xiongxiewutai:is_xiongxiewutai,
  1576. }
  1577. console.log("paramswoowowo",params)
  1578. saveGatherSetting(params).then(response=>{
  1579. if(response.data.state == 1){
  1580. var dialysisSetting = response.data.data.dialysisSetting
  1581. this.$message.success("保存成功!")
  1582. this.dialogVisible = false
  1583. }
  1584. })
  1585. },
  1586. getAnticoagualnt(id){
  1587. var name = ""
  1588. if(id == 1){
  1589. name = "无肝素"
  1590. }
  1591. if(id == 2){
  1592. name = "普通肝素"
  1593. }
  1594. if(id == 3){
  1595. name ="低分子肝素"
  1596. }
  1597. if(id == 4){
  1598. name ="阿加曲班"
  1599. }
  1600. if(id == 5){
  1601. name ="枸橼酸钠"
  1602. }
  1603. if(id == 6){
  1604. name ="低分子肝素钙"
  1605. }
  1606. if(id == 7){
  1607. name ="低分子肝素钠"
  1608. }
  1609. if(id == 8){
  1610. name ="依诺肝素"
  1611. }
  1612. if(id == 9){
  1613. name ="达肝素"
  1614. }
  1615. if(id == 10){
  1616. name ="体外抗凝"
  1617. }
  1618. if(id == 11){
  1619. name ="那屈肝素"
  1620. }
  1621. if(id == 12){
  1622. name ="无抗凝剂"
  1623. }
  1624. if(id == 13){
  1625. name ="那屈肝素钙"
  1626. }
  1627. return name
  1628. },
  1629. getBloodAccessOption(id){
  1630. var name = ""
  1631. for(let i=0;i<this.blood_access_option.length;i++){
  1632. if(id == this.blood_access_option[i].id){
  1633. name = this.blood_access_option[i].name
  1634. }
  1635. }
  1636. return name
  1637. },
  1638. toSign(){
  1639. this.$router.push({path: '/dialysis/consumable/dialysis/print?schedule_type='+this.query.schedule_type+"&partion_id="+this.query.partition_id+"&schedule_date="+this.query.schedule_date+"&keyword="+this.query.keywords+"&page="+this.query.page+"&limit="+this.query.limit})
  1640. },
  1641. printAction(){
  1642. this.getRemindPrintList()
  1643. this.dialogVisibleOne = true
  1644. },
  1645. getRemindPrintList() {
  1646. getRemindPrintList().then(response => {
  1647. if (response.data.state == 1) {
  1648. var list = response.data.data.list
  1649. console.log('list222332', list)
  1650. if (list.anticoagulant == 1) {
  1651. // console.log('进来22222')
  1652. this.anticoagulant = true
  1653. }
  1654. if (list.anticoagulant == 2) {
  1655. this.anticoagulant = false
  1656. }
  1657. if (list.anticoagulant_zongliang == 1) {
  1658. this.anticoagulant_zongliang = true
  1659. }
  1660. if (list.anticoagulant_zongliang == 2) {
  1661. this.anticoagulant_zongliang = false
  1662. }
  1663. if (list.classes == 1) {
  1664. this.classes = true
  1665. }
  1666. if (list.classes == 2) {
  1667. this.classes = false
  1668. }
  1669. if (list.dialyzers == 1) {
  1670. this.dialyzers = true
  1671. }
  1672. if (list.dialyzers == 2) {
  1673. this.dialyzers = false
  1674. }
  1675. if (list.doctor_advice == 1) {
  1676. this.doctor_advice = true
  1677. }
  1678. if (list.doctor_advice == 2) {
  1679. this.doctor_advice = false
  1680. }
  1681. if (list.name == 1) {
  1682. this.name = true
  1683. }
  1684. if (list.name == 2) {
  1685. this.name = false
  1686. }
  1687. if (list.number == 1) {
  1688. this.number = true
  1689. }
  1690. if (list.number == 2) {
  1691. this.number = false
  1692. }
  1693. if (list.perfusion_apparatus == 1) {
  1694. this.perfusion_apparatus = true
  1695. }
  1696. if (list.perfusion_apparatus == 2) {
  1697. this.perfusion_apparatus = false
  1698. }
  1699. if (list.prescription_status == 1) {
  1700. this.prescription_status = true
  1701. }
  1702. if (list.prescription_status == 2) {
  1703. this.prescription_status = false
  1704. }
  1705. if (list.week == 1) {
  1706. this.week = true
  1707. }
  1708. if (list.week == 2) {
  1709. this.week = false
  1710. }
  1711. if (list.zone == 1) {
  1712. this.zone_name = true
  1713. }
  1714. if (list.zone == 2) {
  1715. this.zone_name = false
  1716. }
  1717. if (list.mode == 1) {
  1718. this.mode = true
  1719. }
  1720. if (list.mode == 2) {
  1721. this.mode = false
  1722. }
  1723. this.form.id = list.id
  1724. }
  1725. })
  1726. },
  1727. saveRemindPrint() {
  1728. if (this.perfusion_apparatus == true) {
  1729. // console.log('3333')
  1730. this.form.perfusion_apparatus = 1
  1731. }
  1732. if (this.perfusion_apparatus == false) {
  1733. this.form.perfusion_apparatus = 2
  1734. }
  1735. if (this.prescription_status == true) {
  1736. this.form.prescription_status = 1
  1737. }
  1738. if (this.prescription_status == false) {
  1739. this.form.prescription_status = 2
  1740. }
  1741. if (this.week == true) {
  1742. this.form.week = 1
  1743. }
  1744. if (this.week == false) {
  1745. this.form.week = 2
  1746. }
  1747. if (this.name == true) {
  1748. this.form.name = 1
  1749. }
  1750. if (this.name == false) {
  1751. this.form.name = 2
  1752. }
  1753. if (this.zone_name == true) {
  1754. this.form.zone = 1
  1755. }
  1756. if (this.zone_name == false) {
  1757. this.form.zone = 2
  1758. }
  1759. if (this.classes == true) {
  1760. this.form.classes = 1
  1761. }
  1762. if (this.classes == false) {
  1763. this.form.classes = 2
  1764. }
  1765. if (this.number == true) {
  1766. this.form.number = 1
  1767. }
  1768. if (this.number == false) {
  1769. this.form.number = 2
  1770. }
  1771. if (this.mode == true) {
  1772. this.form.mode = 1
  1773. }
  1774. if (this.mode == false) {
  1775. this.form.mode = 2
  1776. }
  1777. if (this.dialyzers == true) {
  1778. this.form.dialyzers = 1
  1779. }
  1780. if (this.dialyzers == false) {
  1781. this.form.dialyzers = 2
  1782. }
  1783. if (this.anticoagulant == true) {
  1784. this.form.anticoagulant = 1
  1785. }
  1786. if (this.anticoagulant == false) {
  1787. this.form.anticoagulant = 2
  1788. }
  1789. if (this.anticoagulant_zongliang == true) {
  1790. this.form.anticoagulant_zongliang = 1
  1791. }
  1792. if (this.anticoagulant_zongliang == false) {
  1793. this.form.anticoagulant_zongliang = 2
  1794. }
  1795. if (this.doctor_advice == true) {
  1796. this.form.doctor_advice = 1
  1797. }
  1798. if (this.doctor_advice == false) {
  1799. this.form.doctor_advice = 2
  1800. }
  1801. // console.log('555555555', this.form.prescription_status)
  1802. var params = {
  1803. id: this.form.id,
  1804. prescription_status: this.form.prescription_status,
  1805. week: this.form.week,
  1806. name: this.form.name,
  1807. zone: this.form.zone,
  1808. classes: this.form.classes,
  1809. number: this.form.number,
  1810. mode: this.form.mode,
  1811. dialyzers: this.form.dialyzers,
  1812. perfusion_apparatus: this.form.perfusion_apparatus,
  1813. anticoagulant: this.form.anticoagulant,
  1814. anticoagulant_zongliang: this.form.anticoagulant_zongliang,
  1815. doctor_advice: this.form.doctor_advice
  1816. }
  1817. // console.log('params', params)
  1818. saveRemindPrint(params).then(response => {
  1819. if (response.data.state == 1) {
  1820. var settting = response.data.data.setting
  1821. this.$message.success('保存成功')
  1822. this.dialogVisibleOne = false
  1823. this.getRemindPrintList()
  1824. }
  1825. })
  1826. },
  1827. toPrint(){
  1828. this.$router.push({path: '/dialysis/consumable/dialysis/gather/print?schedule_type='+this.query.schedule_type+"&partion_id="+this.query.partition_id+"&schedule_date="+this.query.schedule_date+"&keyword="+this.query.keywords+"&page="+this.query.page+"&limit="+this.query.limit+"&ids="+this.ids})
  1829. },
  1830. toPrintOne(){
  1831. this.$router.push({path:"/dialysis/consumable/dialysis/count/print?schedule_type="+this.schedule_type+"&partion_type="+this.partion_type+"&schedule_date="+this.query.schedule_date})
  1832. },
  1833. printThisInfo() {
  1834. var ptime = Math.round(new Date().getTime() / 1000);
  1835. this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");
  1836. const style =
  1837. "@page {margin-top:10px;}@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0; } .print_main_content .order_title { text-align: center; font-size: 23px; line-height: 50px; font-weight: 500; } .print_main_content table { width: 100%; border-collapse: collapse; padding: 2px; } .print_main_content table tbody tr{page-break-inside:avoid;} .print_main_content table tbody tr td { border: 1px solid; text-align: center; padding: 10px 8px; } .td_proj_title { font-size: 18px; line-height: 25px; font-weight: 500; } .td_proj_content { font-size: 18px; line-height: 25px; } .td_align_left { text-align: left; } .print_footnote_panel { font-size: 17px; line-height: 40px; } .print_footnote_panel .proj { display: inline-block; width: 49%; } .print_footnote_panel .proj .proj_title { font-weight: 500;} }";
  1838. setTimeout(() => {
  1839. printJS({
  1840. printable: "print-info-box",
  1841. type: "html",
  1842. style: style,
  1843. scanStyles: false,
  1844. });
  1845. }, 1);
  1846. },
  1847. handleSelectionChange(val){
  1848. var arr = []
  1849. for(let i=0;i<val.length;i++){
  1850. arr.push(val[i].id)
  1851. }
  1852. this.ids = arr.join(",")
  1853. },
  1854. changeScheduleType(){
  1855. this.tableList = []
  1856. this.statistics()
  1857. },
  1858. changePartionType(){
  1859. this.tableList = []
  1860. this.statistics()
  1861. },
  1862. getDisplaceLiquiPart(id){
  1863. var name = ""
  1864. for(let i=0;i<this.displace_liqui_part_option.length;i++){
  1865. if(id == this.displace_liqui_part_option[i].id){
  1866. name = this.displace_liqui_part_option[i].name
  1867. }
  1868. }
  1869. return name
  1870. },
  1871. getHuanYao(){
  1872. },
  1873. toStatic(){
  1874. this.startDialogVisibleOne = true
  1875. }
  1876. }
  1877. }
  1878. </script>
  1879. <style lang="scss" scoped>
  1880. .page_consumables {
  1881. .clearfix:after {
  1882. content: none;
  1883. }
  1884. }
  1885. </style>
  1886. <style scoped>
  1887. /* 打印表格的样式 */
  1888. .print_main_content {
  1889. background-color: white;
  1890. width: 960px;
  1891. margin: 0 auto;
  1892. padding: 0 0 0 0;
  1893. page-break-after: always;
  1894. }
  1895. .print_main_content .order_title {
  1896. text-align: center;
  1897. font-size: 23px;
  1898. line-height: 50px;
  1899. font-weight: 500;
  1900. }
  1901. .print_main_content table {
  1902. width: 100%;
  1903. border: 1px solid;
  1904. border-collapse: collapse;
  1905. padding: 2px;
  1906. }
  1907. .print_main_content table tbody tr td {
  1908. border: 1px solid;
  1909. text-align: center;
  1910. /* font-size: 17px; */
  1911. /* padding: 10px 8px; */
  1912. }
  1913. .td_proj_title {
  1914. font-size: 17px;
  1915. /* line-height: 20px; */
  1916. font-weight: 500;
  1917. }
  1918. .td_proj_content {
  1919. font-size: 17px;
  1920. /* line-height: 20px; */
  1921. }
  1922. .td_align_left {
  1923. text-align: left;
  1924. }
  1925. .print_footnote_panel {
  1926. font-size: 17px;
  1927. line-height: 40px;
  1928. }
  1929. .print_footnote_panel .proj {
  1930. display: inline-block;
  1931. width: 49%;
  1932. }
  1933. .print_footnote_panel .proj .proj_title {
  1934. font-weight: 500;
  1935. }
  1936. .el-select-dropdown {
  1937. z-index: 998 !important;
  1938. }
  1939. </style>