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

dialysisGather.vue 75KB

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