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

assessmentBeforeDislysisDialog.vue 77KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947
  1. <template>
  2. <div>
  3. <el-dialog
  4. class="newDialog"
  5. title="透前评估"
  6. :visible.sync="isVisibility"
  7. width="1010px"
  8. :modal-append-to-body="false"
  9. >
  10. <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
  11. <!--<check-box-dialog-->
  12. <!--:propsForm="InnerDialogProps"-->
  13. <!--v-on:dialog-comfirm="innerDialogComfirm"-->
  14. <!--v-on:dialog-cancle="innerDialogCancle"-->
  15. <!--&gt;</check-box-dialog>-->
  16. <multi-select-box
  17. :propsForm="InnerDialogProps"
  18. v-on:dialog-comfirm="innerDialogComfirm"
  19. v-on:dialog-cancle="innerDialogCancle"
  20. ></multi-select-box>
  21. <el-form ref="assessmentBeforeDislysis" :model="assessmentBeforeDislysis" label-width="125px">
  22. <el-row :gutter="24">
  23. <el-col :span="8">
  24. <el-form-item label="透前称重(kg): " :prop="isName('透前称重')"
  25. :rules="isCheckmust('透前称重')" v-if="isShow('透前称重')">
  26. <el-input type="number" v-model="assessmentBeforeDislysis.weight_before"></el-input>
  27. </el-form-item>
  28. </el-col>
  29. <el-col :span="8">
  30. <el-form-item label="透前体重备注:" :prop="isName('透前体重备注')"
  31. :rules="isCheckmust('透前体重备注')" v-if="isShow('透前体重备注')">
  32. <el-input v-model="assessmentBeforeDislysis.weight_befor_remake"></el-input>
  33. </el-form-item>
  34. </el-col>
  35. <el-col :span="8">
  36. <el-form-item label="干体重(kg):"
  37. :prop="isName('干体重')"
  38. :rules="isCheckmust('干体重')"
  39. v-if="isShow('干体重')">
  40. <!-- -->
  41. <el-input type="number" v-model="assessmentBeforeDislysis.dry_weight" readonly
  42. @focus="showDryWeightDialog"></el-input>
  43. </el-form-item>
  44. </el-col>
  45. <el-col :span="8">
  46. <el-form-item label="身高(cm):"
  47. prop="height"
  48. :rules="isCheckmust('身高')"
  49. v-if="isShow('身高')">
  50. <el-input v-model="assessmentBeforeDislysis.height"></el-input>
  51. </el-form-item>
  52. </el-col>
  53. <el-col :span="8">
  54. <el-form-item label="年龄(岁):" :prop="isName('年龄')"
  55. :rules="isCheckmust('年龄')" v-if="isShow('年龄')">
  56. <el-input v-model="assessmentBeforeDislysis.age" ></el-input>
  57. </el-form-item>
  58. </el-col>
  59. <el-col :span="8">
  60. <el-form-item label="衣物重(kg):" :prop="isName('衣物重')"
  61. :rules="isCheckmust('衣物重')" v-if="isShow('衣物重')">
  62. <el-input type="number" v-model="assessmentBeforeDislysis.additional_weight"></el-input>
  63. </el-form-item>
  64. </el-col>
  65. <!-- <el-col :span="8">-->
  66. <!-- <el-form-item label="透析机型号:" v-if="isShow('透析机型号')">-->
  67. <!-- <el-input v-model="assessmentBeforeDislysis.machine_type"></el-input>-->
  68. <!-- </el-form-item>-->
  69. <!-- </el-col>-->
  70. <el-col :span="8">
  71. <el-form-item label="透析机型号" :prop="isName('透析机型号')"
  72. :rules="isCheckmust('透析机型号')" v-if="isShow('透析机型号')">
  73. <el-select v-model="assessmentBeforeDislysis.machine_type">
  74. <el-option :key="0" label="请选择" :value="0"></el-option>
  75. <el-option v-for="item in machineType" :label="item.name" :value="item.id"
  76. :key="item.id"></el-option>
  77. </el-select>
  78. </el-form-item>
  79. </el-col>
  80. <el-col :span="8" v-if="isShow('透析频次')">
  81. <el-form-item label="透析频次(次/周):" :prop="isName('透析频次')"
  82. :rules="isCheckmust('透析频次')" v-if="this.$store.getters.xt_user.template_info.org_id != 10243">
  83. <el-input v-model="assessmentBeforeDislysis.dialysis_count"></el-input>
  84. </el-form-item>
  85. <el-form-item label="透析频次:" :prop="isName('透析频次')"
  86. :rules="isCheckmust('透析频次')" v-else>
  87. <el-input v-model="assessmentBeforeDislysis.dialysis_count"></el-input>
  88. </el-form-item>
  89. </el-col>
  90. <el-col :span="8">
  91. <el-form-item label="体温(℃):" :prop="isName('体温')"
  92. :rules="isCheckmust('体温')" v-if="isShow('体温')">
  93. <el-input type="number" v-model="assessmentBeforeDislysis.temperature"></el-input>
  94. </el-form-item>
  95. </el-col>
  96. <el-col :span="8">
  97. <el-form-item label="收缩压(mmHg): " :prop="isName('收缩压')"
  98. :rules="isCheckmust('收缩压')" v-if="isShow('收缩压')">
  99. <el-input type="number" v-model="assessmentBeforeDislysis.systolic_blood_pressure"></el-input>
  100. </el-form-item>
  101. </el-col>
  102. <el-col :span="8">
  103. <el-form-item label="舒张压(mmHg): " :prop="isName('舒张压')"
  104. :rules="isCheckmust('舒张压')" v-if="isShow('舒张压')">
  105. <el-input type="number" v-model="assessmentBeforeDislysis.diastolic_blood_pressure"></el-input>
  106. </el-form-item>
  107. </el-col>
  108. <el-col :span="8">
  109. <el-form-item label="呼吸频率(次/分):" :prop="isName('呼吸频率')"
  110. :rules="isCheckmust('呼吸频率')" v-if="isShow('呼吸频率')">
  111. <el-input v-model="assessmentBeforeDislysis.breathing_rate"></el-input>
  112. </el-form-item>
  113. </el-col>
  114. <el-col :span="8">
  115. <el-form-item label="脉搏(次/分):" :prop="isName('脉搏')"
  116. :rules="isCheckmust('脉搏')" v-if="isShow('脉搏')">
  117. <el-input type="number" v-model="assessmentBeforeDislysis.pulse_frequency"></el-input>
  118. </el-form-item>
  119. </el-col>
  120. <!--
  121. <el-col :span="8">
  122. <el-form-item label="体液过多症状: " v-if="isShow('体液过多症状')">
  123. <el-select v-model="assessmentBeforeDislysis.humor_excessive_symptom">
  124. <el-option :key="0" label="请选择" :value="0"></el-option>
  125. <el-option v-for="item in humor_excessive_symptom_array" :label="item.name" :value="item.id"
  126. :key="item.id"></el-option>
  127. </el-select>
  128. </el-form-item>
  129. </el-col> -->
  130. <el-col :span="8">
  131. <el-form-item label="体液过多症状:" :prop="isName('体液过多症状')"
  132. :rules="isCheckmust('体液过多症状')" v-if="isShow('体液过多症状')">
  133. <el-input v-model="assessmentBeforeDislysis.humor_excessive_symptom" readonly
  134. @focus="showInnerDialog('19')"></el-input>
  135. </el-form-item>
  136. </el-col>
  137. <el-col :span="8">
  138. <el-form-item label="血管通路: " :prop="isName('血管通路')"
  139. :rules="isCheckmust('血管通路')" v-if="isShow('血管通路')">
  140. <el-select v-model="assessmentBeforeDislysis.blood_access_part_opera_id">
  141. <el-option :key="0" label="请选择" :value="0"></el-option>
  142. <el-option v-for="item in blood_access_part_opera" :label="item.name" :value="item.id"
  143. :key="item.id"></el-option>
  144. </el-select>
  145. </el-form-item>
  146. </el-col>
  147. <el-col :span="8">
  148. <el-form-item label="血管通路部位: " :prop="isName('血管通路部位')"
  149. :rules="isCheckmust('血管通路部位')" v-if="isShow('血管通路部位')">
  150. <!-- <el-select v-model="assessmentBeforeDislysis.blood_access_part_id">
  151. <el-option :key="0" label="请选择" :value="0"></el-option>
  152. <el-option v-for="item in blood_access_part" :label="item.name" :value="item.id"
  153. :key="item.id"></el-option>
  154. </el-select> -->
  155. <el-input v-model="assessmentBeforeDislysis.blood_access_part_id" readonly @focus="showInnerDialog('17')"></el-input>
  156. </el-form-item>
  157. </el-col>
  158. <el-col :span="8">
  159. <el-form-item label="血管通路其他部位:" :prop="isName('血管通路其他部位')"
  160. :rules="isCheckmust('血管通路其他部位')" v-if="isShow('血管通路其他部位')">
  161. <el-input v-model="assessmentBeforeDislysis.venous_catheterization_part_other"></el-input>
  162. </el-form-item>
  163. </el-col>
  164. <el-col :span="8">
  165. <el-form-item label="内瘘: " :prop="isName('内瘘')"
  166. :rules="isCheckmust('内瘘')" v-if="isShow('内瘘')">
  167. <el-input v-model="assessmentBeforeDislysis.internal_fistula" readonly
  168. @focus="showInnerDialog('7')"></el-input>
  169. </el-form-item>
  170. </el-col>
  171. <el-col :span="8" v-if="assessmentBeforeDislysis.is_hemorrhage == 1&&isShow('其他出血情况')">
  172. <el-form-item label="其他出血情况: " prop="hemorrhage_other"
  173. :rules="isCheckmust('其他出血情况')">
  174. <!-- :prop="isName('其他出血情况')" -->
  175. <el-input v-model="assessmentBeforeDislysis.hemorrhage_other"></el-input>
  176. </el-form-item>
  177. </el-col>
  178. <el-col :span="8">
  179. <el-form-item label="血管通路(内瘘)其他:" :prop="isName('血管通路(内瘘)其他')"
  180. :rules="isCheckmust('血管通路(内瘘)其他')" v-if="isShow('血管通路(内瘘)其他')">
  181. <el-input v-model="assessmentBeforeDislysis.internal_fistula_other"></el-input>
  182. </el-form-item>
  183. </el-col>
  184. <el-col :span="8" v-if="isShow('血管杂音')">
  185. <el-form-item label="血管杂音: " :prop="isName('血管杂音')"
  186. :rules="isCheckmust('血管杂音')">
  187. <el-select v-model="assessmentBeforeDislysis.blood_access_noise">
  188. <el-option :key="0" label="请选择" :value="0"></el-option>
  189. <el-option v-for="item in blood_access_noise" :label="item.name" :value="item.id"
  190. :key="item.id"></el-option>
  191. </el-select>
  192. </el-form-item>
  193. </el-col>
  194. <el-col :span="8">
  195. <el-form-item label="血管通路皮肤情况: " :prop="isName('血管通路皮肤情况')"
  196. :rules="isCheckmust('血管通路皮肤情况')" v-if="isShow('血管通路皮肤情况')">
  197. <el-input v-model="assessmentBeforeDislysis.internal_fistula_skin" readonly
  198. @focus="showInnerDialog('8')"></el-input>
  199. </el-form-item>
  200. </el-col>
  201. <el-col :span="8">
  202. <el-form-item label="中心静脉置管: " :prop="isName('中心静脉置管')"
  203. :rules="isCheckmust('中心静脉置管')" v-if="isShow('中心静脉置管')">
  204. <el-select v-model="assessmentBeforeDislysis.venous_catheterization">
  205. <el-option :key="0" label="请选择" :value="0"></el-option>
  206. <el-option v-for="item in this.$store.getters.venous_catheterization" :label="item.name"
  207. :value="item.id"
  208. :key="item.id"></el-option>
  209. </el-select>
  210. </el-form-item>
  211. </el-col>
  212. <el-col :span="8">
  213. <el-form-item label="导管: " :prop="isName('导管')"
  214. :rules="isCheckmust('导管')" v-if="isShow('导管')">
  215. <el-input v-model="assessmentBeforeDislysis.catheter" @focus="showInnerDialog('4')"></el-input>
  216. </el-form-item>
  217. </el-col>
  218. <el-col :span="8">
  219. <el-form-item label="导管维护: " :prop="isName('导管维护')"
  220. :rules="isCheckmust('导管维护')" v-if="isShow('导管维护')">
  221. <el-input v-model="assessmentBeforeDislysis.catheter_maintenance" @focus="showInnerDialog('18')"></el-input>
  222. </el-form-item>
  223. </el-col>
  224. <!--<el-col :span="8">-->
  225. <!--<el-form-item label="附加物重(kg): ">-->
  226. <!--<el-input type="number" v-model="assessmentBeforeDislysis.additional_weight"></el-input>-->
  227. <!--</el-form-item>-->
  228. <!--</el-col>-->
  229. <!-- </el-row>
  230. <el-row :gutter="20"> -->
  231. <el-col :span="8">
  232. <el-form-item label="导管打折: " :prop="isName('导管打折')"
  233. :rules="isCheckmust('导管打折')" v-if="isShow('导管打折')">
  234. <el-select v-model="assessmentBeforeDislysis.catheter_bend">
  235. <el-option :key="0" label="请选择" :value="0"></el-option>
  236. <el-option label="有" value="1"></el-option>
  237. <el-option label="无" value="2"></el-option>
  238. </el-select>
  239. <!-- <el-select v-model="assessmentBeforeDislysis.catheter_bend" placeholder="请选择">
  240. <el-option
  241. v-for="item in catheters"
  242. :key="item.value"
  243. :label="item.label"
  244. :value="item.value">
  245. </el-option>
  246. </el-select> -->
  247. </el-form-item>
  248. </el-col>
  249. <!-- </el-row>
  250. <el-row :gutter="20"> -->
  251. <el-col :span="8">
  252. <el-form-item label="穿刺针: " :prop="isName('穿刺针')"
  253. :rules="isCheckmust('穿刺针')" v-if="isShow('穿刺针')">
  254. <el-input v-model="assessmentBeforeDislysis.puncture_needle" @focus="showInnerDialog('11')"></el-input>
  255. </el-form-item>
  256. </el-col>
  257. <el-col :span="8">
  258. <el-form-item label="针眼: " :prop="isName('针眼')"
  259. :rules="isCheckmust('针眼')" v-if="isShow('针眼')">
  260. <el-input v-model="assessmentBeforeDislysis.pinholing" readonly
  261. @focus="showInnerDialog('14')"></el-input>
  262. </el-form-item>
  263. </el-col>
  264. <el-col :span="8">
  265. <el-form-item label="穿刺方式: " :prop="isName('穿刺方式')"
  266. :rules="isCheckmust('穿刺方式')" v-if="isShow('穿刺方式')">
  267. <!-- <el-select v-model="assessmentBeforeDislysis.puncture_way">
  268. <el-option :key="0" label="请选择" :value="0"></el-option>
  269. <el-option v-for="item in this.puncture_ways" :label="item.name" :value="item.id"
  270. :key="item.id"></el-option>
  271. </el-select> -->
  272. <el-input v-model="assessmentBeforeDislysis.puncture_way" readonly
  273. @focus="showInnerDialog('13')">
  274. </el-input>
  275. </el-form-item>
  276. </el-col>
  277. <el-col :span="8">
  278. <el-form-item label="穿刺点: " :prop="isName('穿刺点')" v-if="isShow('穿刺点')&& assessmentBeforeDislysis.puncture_way.indexOf('绳梯')!==-1">
  279. <el-input v-model="assessmentBeforeDislysis.point_puncture" readonly
  280. @focus="showInnerDialog('21')">
  281. </el-input>
  282. </el-form-item>
  283. </el-col>
  284. <el-col :span="8">
  285. <el-form-item label="出血: " :prop="isName('出血')"
  286. :rules="isCheckmust('出血')" v-if="isShow('出血')">
  287. <el-select v-model="assessmentBeforeDislysis.is_hemorrhage">
  288. <el-option :key="0" label="请选择" :value="0"></el-option>
  289. <el-option label="是" value="1"></el-option>
  290. <el-option label="否" value="2"></el-option>
  291. </el-select>
  292. </el-form-item>
  293. </el-col>
  294. <el-col :span="8" v-if="assessmentBeforeDislysis.is_hemorrhage == 1&&isShow('出血选项')">
  295. <el-form-item label="出血选项: " :prop="isName('出血选项')"
  296. :rules="isCheckmust('出血选项')">
  297. <div>
  298. <el-input v-model="assessmentBeforeDislysis.hemorrhage" @focus="showInnerDialog('6')"></el-input>
  299. </div>
  300. </el-form-item>
  301. </el-col>
  302. <el-col :span="8">
  303. <el-form-item label="血栓:" :prop="isName('血栓')"
  304. :rules="isCheckmust('血栓')" v-if="isShow('血栓')">
  305. <el-select v-model="assessmentBeforeDislysis.thromubus_type" @change="changeThrombus">
  306. <el-option :key="0" label="请选择" :value="0"></el-option>
  307. <el-option label="有" value="1"></el-option>
  308. <el-option label="无" value="2"></el-option>
  309. </el-select>
  310. </el-form-item>
  311. </el-col>
  312. <el-col :span="8">
  313. <el-form-item label="导管AV端约为(cm):" :prop="isName('导管AV端各约')"
  314. :rules="isCheckmust('导管AV端各约')" v-show="thrombuShow" label-width="150px">
  315. <el-input v-model="assessmentBeforeDislysis.thrombus_av" style="width:150px"></el-input>
  316. </el-form-item>
  317. </el-col>
  318. <el-col :span="8">
  319. <el-form-item label="导管A端约(cm):" :prop="isName('导管A端约')"
  320. :rules="isCheckmust('导管A端约')" v-show="thrombuShow">
  321. <el-input v-model="assessmentBeforeDislysis.thromubus_a" style="width:150px"></el-input>
  322. </el-form-item>
  323. </el-col>
  324. <el-col :span="8">
  325. <el-form-item label="导管V端约(cm):" :prop="isName('导管V端约')"
  326. :rules="isCheckmust('导管V端约')" v-show="thrombuShow">
  327. <el-input v-model="assessmentBeforeDislysis.thromubus_v" style="width:150px"></el-input>
  328. </el-form-item>
  329. </el-col>
  330. <el-col :span="8" v-if="isShow('皮肤')">
  331. <el-form-item label="皮肤: " :prop="isName('皮肤')"
  332. :rules="isCheckmust('皮肤')">
  333. <!-- <el-select v-model="assessmentBeforeDislysis.skin">
  334. <el-option :key="0" label="请选择" :value="0"></el-option>
  335. <el-option v-for="item in this.$store.getters.skin" :label="item.name" :value="item.id"
  336. :key="item.id"></el-option>
  337. </el-select> -->
  338. <el-input v-model="assessmentBeforeDislysis.skin" readonly
  339. @focus="showInnerDialog('12')">
  340. </el-input>
  341. </el-form-item>
  342. </el-col>
  343. <el-col :span="8">
  344. <el-form-item label="并发症: " :prop="isName('并发症')"
  345. :rules="isCheckmust('并发症')" v-if="isShow('并发症')">
  346. <el-input v-model="assessmentBeforeDislysis.complication" @focus="showInnerDialog('5')"></el-input>
  347. </el-form-item>
  348. </el-col>
  349. <el-col :span="8">
  350. <el-form-item label="透析前症状: " :prop="isName('透析前症状')"
  351. :rules="isCheckmust('透析前症状')" v-if="isShow('透析前症状')">
  352. <el-input v-model="assessmentBeforeDislysis.symptom_before_dialysis"
  353. @focus="showInnerDialog('3')"></el-input>
  354. </el-form-item>
  355. </el-col>
  356. <el-col :span="8">
  357. <el-form-item label="前次透析后症状:" :prop="isName('前次透析后症状')"
  358. :rules="isCheckmust('前次透析后症状')" v-if="isShow('前次透析后症状')">
  359. <el-input v-model="assessmentBeforeDislysis.last_post_dialysis" @focus="showInnerDialog('1')"></el-input>
  360. </el-form-item>
  361. </el-col>
  362. <el-col :span="8" v-if="isShow('急诊')">
  363. <el-form-item label="急诊: " :prop="isName('急诊')"
  364. :rules="isCheckmust('急诊')">
  365. <el-select v-model="assessmentBeforeDislysis.emergency_treatment">
  366. <el-option :key="0" label="请选择" :value="0"></el-option>
  367. <el-option v-for="item in this.$store.getters.emergency_treatment" :label="item.name" :value="item.id"
  368. :key="item.id"></el-option>
  369. </el-select>
  370. </el-form-item>
  371. </el-col>
  372. <el-col :span="8" v-if="isShow('其他急诊情况')">
  373. <el-form-item label="其他急诊情况:" :prop="isName('其他急诊情况')"
  374. :rules="isCheckmust('其他急诊情况')">
  375. <el-input v-model="assessmentBeforeDislysis.emergency_treatment_other"></el-input>
  376. </el-form-item>
  377. </el-col>
  378. <el-col :span="8" v-if="isShow('特殊处理情况')">
  379. <el-form-item label="特殊处理情况:" :prop="isName('特殊处理情况')"
  380. :rules="isCheckmust('特殊处理情况')">
  381. <el-input v-model="assessmentBeforeDislysis.special_treatment"></el-input>
  382. </el-form-item>
  383. </el-col>
  384. <el-col :span="8">
  385. <el-form-item label="透析期间: " :prop="isName('透析期间')"
  386. :rules="isCheckmust('透析期间')" v-if="isShow('透析期间')">
  387. <el-input v-model="assessmentBeforeDislysis.dialysis_interphase" @focus="showInnerDialog('2')">>
  388. </el-input>
  389. </el-form-item>
  390. </el-col>
  391. <el-col :span="8">
  392. <el-form-item label="位置: " :prop="isName('位置')"
  393. :rules="isCheckmust('位置')" v-if="isShow('位置')">
  394. <el-select v-model="assessmentBeforeDislysis.venous_catheterization_part">
  395. <el-option :key="0" label="请选择" :value="0"></el-option>
  396. <el-option v-for="item in this.$store.getters.venous_catheterization_part" :label="item.name"
  397. :value="item.id"
  398. :key="item.id"></el-option>
  399. </el-select>
  400. </el-form-item>
  401. </el-col>
  402. <el-col :span="8" v-if="isShow('其他中心静脉导管')">
  403. <el-form-item label="其他中心静脉导管:" :prop="isName('其他中心静脉导管')"
  404. :rules="isCheckmust('其他中心静脉导管')">
  405. <div>
  406. <el-input v-model="assessmentBeforeDislysis.ductus_arantii_other"></el-input>
  407. </div>
  408. </el-form-item>
  409. </el-col>
  410. <el-col :span="8">
  411. <el-form-item label="感染: " :prop="isName('感染')"
  412. :rules="isCheckmust('感染')" v-if="isShow('感染')">
  413. <el-select v-model="assessmentBeforeDislysis.is_infect">
  414. <el-option :key="0" label="请选择" :value="0"></el-option>
  415. <el-option label="无" value="1"></el-option>
  416. <el-option label="有" value="2"></el-option>
  417. </el-select>
  418. </el-form-item>
  419. </el-col>
  420. <el-col :span="8" v-if="isShow('其他感染情况')">
  421. <el-form-item label="其他感染情况:" :prop="isName('其他感染情况')"
  422. :rules="isCheckmust('其他感染情况')">
  423. <el-input v-model="assessmentBeforeDislysis.infect_other"></el-input>
  424. </el-form-item>
  425. </el-col>
  426. <el-col :span="8" v-if="isShow('外露')">
  427. <el-form-item label="外露(cm):" :prop="isName('外露')"
  428. :rules="isCheckmust('外露')">
  429. <el-input v-model="assessmentBeforeDislysis.exposed"></el-input>
  430. </el-form-item>
  431. </el-col>
  432. <el-col :span="8" v-if="isShow('其他皮肤情况')">
  433. <el-form-item label="其他皮肤情况:" :prop="isName('其他皮肤情况')"
  434. :rules="isCheckmust('其他皮肤情况')">
  435. <el-input v-model="assessmentBeforeDislysis.skin_other"></el-input>
  436. </el-form-item>
  437. </el-col>
  438. <el-col :span="8">
  439. <el-form-item label="导管缝线:" :prop="isName('导管缝线')"
  440. :rules="isCheckmust('导管缝线')" v-if="isShow('导管缝线')">
  441. <el-input v-model="assessmentBeforeDislysis.catheter_suture" @focus="showInnerDialog('15')"></el-input>
  442. </el-form-item>
  443. </el-col>
  444. <el-col :span="8" v-if="isShow('导管缝线(其他)')">
  445. <el-form-item label="导管缝线(其他):" :prop="isName('导管缝线(其他)')"
  446. :rules="isCheckmust('导管缝线(其他)')">
  447. <el-input v-model="assessmentBeforeDislysis.catheter_suture_other"></el-input>
  448. </el-form-item>
  449. </el-col>
  450. <el-col :span="8" v-if="isShow('尿量')">
  451. <el-form-item label="尿量(ml):" :prop="isName('尿量')"
  452. :rules="isCheckmust('尿量')">
  453. <el-input v-model="assessmentBeforeDislysis.urine_volume"></el-input>
  454. </el-form-item>
  455. </el-col>
  456. <el-col :span="8">
  457. <el-form-item label="水肿:" :prop="isName('水肿')"
  458. :rules="isCheckmust('水肿')" v-if="isShow('水肿')">
  459. <el-input v-model="assessmentBeforeDislysis.edema" @focus="showInnerDialog('16')"></el-input>
  460. </el-form-item>
  461. </el-col>
  462. <el-col :span="8">
  463. <el-form-item label="预增脱水量(L):" :prop="isName('预增脱水量')"
  464. :rules="isCheckmust('预增脱水量')" v-if="isShow('预增脱水量')">
  465. <el-input v-model="assessmentBeforeDislysis.dehydration"></el-input>
  466. </el-form-item>
  467. </el-col>
  468. <el-col :span="8">
  469. <el-form-item label="透析前药物:" :prop="isName('透析前药物')"
  470. :rules="isCheckmust('透析前药物')" v-if="isShow('透析前药物')">
  471. <el-input v-model="assessmentBeforeDislysis.pre_dialysis_drugs"></el-input>
  472. </el-form-item>
  473. </el-col>
  474. <el-col :span="8">
  475. <el-form-item label="围手术期:" :prop="isName('围手术期')"
  476. :rules="isCheckmust('围手术期')" v-if="isShow('围手术期')">
  477. <el-select v-model="assessmentBeforeDislysis.period">
  478. <el-option :key="0" label="请选择" :value="0"></el-option>
  479. <el-option label="无" value="1"></el-option>
  480. <el-option label="有" value="2"></el-option>
  481. </el-select>
  482. </el-form-item>
  483. </el-col>
  484. <el-col :span="8">
  485. <el-form-item label="预计进食量(g):" :prop="isName('预计进食量')"
  486. :rules="isCheckmust('预计进食量')" v-if="isShow('预计进食量')">
  487. <el-input v-model="assessmentBeforeDislysis.estimated_food_intake"></el-input>
  488. </el-form-item>
  489. </el-col>
  490. <el-col :span="8">
  491. <el-form-item label="透析期间血压:" :prop="isName('透析期间血压')"
  492. :rules="isCheckmust('透析期间血压')" v-if="isShow('透析期间血压')">
  493. <el-input v-model="assessmentBeforeDislysis.blood_pressure_during_dialysis"></el-input>
  494. </el-form-item>
  495. </el-col>
  496. <el-col :span="8" v-if="isShow('透前尿素')">
  497. <el-form-item label="透前尿素(mmol/L):" :prop="isName('透前尿素')"
  498. :rules="isCheckmust('透前尿素')" label-width="150px">
  499. <el-input v-model="assessmentBeforeDislysis.urea_befor"></el-input>
  500. </el-form-item>
  501. </el-col>
  502. <el-col :span="8" v-if="isShow('住院科室')">
  503. <el-form-item label="住院科室:" :prop="isName('住院科室')"
  504. :rules="isCheckmust('住院科室')" label-width="150px">
  505. <el-input v-model="assessmentBeforeDislysis.his_department"></el-input>
  506. </el-form-item>
  507. </el-col>
  508. <el-col :span="8" v-if="isShow('住院床位')">
  509. <el-form-item label="住院床位:" :prop="isName('住院床位')"
  510. :rules="isCheckmust('住院床位')" label-width="150px">
  511. <el-input v-model="assessmentBeforeDislysis.his_bed"></el-input>
  512. </el-form-item>
  513. </el-col>
  514. <el-col :span="8">
  515. <el-form-item label="抽吸:" :prop="isName('抽吸')"
  516. :rules="isCheckmust('抽吸')" v-if="isShow('抽吸')">
  517. <el-input v-model="assessmentBeforeDislysis.suction" @focus="showInnerDialog('20')"></el-input>
  518. </el-form-item>
  519. </el-col>
  520. <el-col :span="8">
  521. <el-form-item label="透前净体重:"
  522. v-if="this.$store.getters.xt_user.template_info.template_id == 6">
  523. <el-input v-model="body_weight_before" readonly></el-input>
  524. </el-form-item>
  525. </el-col>
  526. <el-col :span="8">
  527. <el-form-item label="导管评估项目: " :prop="isName('导管评估项目')"
  528. :rules="isCheckmust('导管评估项目')" v-if="isShow('导管评估项目')">
  529. <el-input v-model="assessmentBeforeDislysis.catheter_evaluation_program" readonly
  530. @focus="showInnerDialog('22')"></el-input>
  531. </el-form-item>
  532. </el-col>
  533. <el-col :span="8">
  534. <el-form-item label="置管部位皮肤:" :prop="isName('置管部位皮肤')"
  535. :rules="isCheckmust('置管部位皮肤')" v-if="isShow('置管部位皮肤')">
  536. <el-input v-model="assessmentBeforeDislysis.skin_site_catheterization" readonly
  537. @focus="showInnerDialog('23')"></el-input>
  538. </el-form-item>
  539. </el-col>
  540. <el-col :span="8">
  541. <el-form-item label="是否通畅:" :prop="isName('是否通畅')"
  542. :rules="isCheckmust('是否通畅')" v-if="isShow('是否通畅')">
  543. <el-select v-model="assessmentBeforeDislysis.whether_unobstructed" @change="changeThrombus">
  544. <el-option :key="0" label="请选择" :value="0"></el-option>
  545. <el-option label="是" value="1"></el-option>
  546. <el-option label="否" value="2"></el-option>
  547. </el-select>
  548. </el-form-item>
  549. </el-col>
  550. <el-col :span="8">
  551. <el-form-item label="留置必要:" :prop="isName('留置必要')"
  552. :rules="isCheckmust('留置必要')" v-if="isShow('留置必要')">
  553. <el-select v-model="assessmentBeforeDislysis.lien_necessary" @change="changeThrombus">
  554. <el-option :key="0" label="请选择" :value="0"></el-option>
  555. <el-option label="是" value="1"></el-option>
  556. <el-option label="否" value="2"></el-option>
  557. </el-select>
  558. </el-form-item>
  559. </el-col>
  560. <el-col :span="8">
  561. <el-form-item label="通路形成时间:" :prop="isName('通路形成时间')"
  562. :rules="isCheckmust('通路形成时间')" v-if="isShow('通路形成时间')">
  563. <el-date-picker
  564. v-model="assessmentBeforeDislysis.pathway_formation_time"
  565. type="date"
  566. style="width:200px"
  567. format="yyyy-MM-dd"
  568. value-format="yyyy-MM-dd"
  569. placeholder="通路形成时间">
  570. </el-date-picker>
  571. </el-form-item>
  572. </el-col>
  573. </el-row>
  574. <el-row :gutter="20">
  575. <el-col :span="24" v-if="isShow('透前症状')">
  576. <el-form-item
  577. label="透前症状:"
  578. :prop="isName('透前症状')"
  579. :rules="isCheckmust('透前症状')"
  580. >
  581. <el-select @change="dialysisSummarySelectChange" v-model="value2">
  582. <el-option
  583. v-for="(item, index) in summary"
  584. :label="item.text"
  585. :value="item.value"
  586. :key="index"
  587. ></el-option>
  588. </el-select>
  589. </el-form-item>
  590. </el-col>
  591. <el-col v-if="isShow('透前症状')">
  592. <el-form-item
  593. :prop="isName('透前症状')"
  594. :rules="isCheckmust('透前症状')"
  595. >
  596. <el-input
  597. type="textarea"
  598. v-model="assessmentBeforeDislysis.befor_symptoms"
  599. :rows="4"
  600. ></el-input>
  601. </el-form-item>
  602. </el-col>
  603. <el-col :span="24">
  604. <el-form-item label="备注: " :prop="isName('备注')"
  605. :rules="isCheckmust('备注')">
  606. <el-input type="textarea" v-model="assessmentBeforeDislysis.remark" :rows="5"></el-input>
  607. </el-form-item>
  608. </el-col>
  609. </el-row>
  610. </el-form>
  611. <span slot="footer" class="dialog-footer">
  612. <el-button @click="handleCancle">取 消</el-button>
  613. <!--v-if="hasPermission" -->
  614. <el-button type="primary" @click="handleComfirm('assessmentBeforeDislysis')">保 存</el-button>
  615. </span>
  616. </el-dialog>
  617. <el-dialog title="调整干体重 " :visible.sync="dialogFormVisible" width="50%" @close="cancleDryWeight()">
  618. <el-form :model="weight_adjust" ref="weight_adjust">
  619. <el-form-item label="干体重 :" label-width="80px" >
  620. <el-input style="width: 200px" v-model="weight_adjust.weight" auto-complete="off"></el-input>
  621. </el-form-item>
  622. <el-form-item label="医生 : " label-width="80px">
  623. <el-select v-model="weight_adjust.doctor" placeholder="请选择医生">
  624. <el-option v-for="(item,index) in doctorOptions" :label="item.name" :value="item.id" :key="index"></el-option>
  625. </el-select>
  626. </el-form-item>
  627. <el-form-item label="备注 : " label-width="80px">
  628. <el-input
  629. type="textarea"
  630. :rows="2"
  631. style="width:200px;"
  632. placeholder="请输入内容"
  633. v-model="weight_adjust.remark">
  634. </el-input>
  635. </el-form-item>
  636. </el-form>
  637. <!-- 六次干体重调整记录 -->
  638. <div style="margin: 10px 50px;"><span style="font-weight: bold;">近六次干体重调整记录</span></div>
  639. <div class="gantizhong">
  640. <el-table :data="dryWeightList" stripe style="width: 100%">
  641. <el-table-column prop="" label="时间" width="180">
  642. <template slot-scope="scope">
  643. {{ getTime(scope.row.ctime) }}
  644. </template>
  645. </el-table-column>
  646. <el-table-column prop="" label="干体重" width="180">
  647. <template slot-scope="scope">
  648. {{scope.row.dry_weight }}
  649. </template>
  650. </el-table-column>
  651. <el-table-column prop="" label="医生" width="180">
  652. <template slot-scope="scope">
  653. {{getUserName(scope.row.creator) }}
  654. </template>
  655. </el-table-column>
  656. <el-table-column prop="" label="备注">
  657. <template slot-scope="scope">
  658. {{scope.row.remakes }}
  659. </template>
  660. </el-table-column>
  661. </el-table>
  662. </div>
  663. <div slot="footer" class="dialog-footer">
  664. <el-button @click="cancleDryWeight()">取 消</el-button>
  665. <el-button type="primary" @click="submitDryWeight()">保 存</el-button>
  666. </div>
  667. </el-dialog>
  668. <el-dialog
  669. title="提示"
  670. :visible.sync="infoDialogVisible"
  671. width="30%">
  672. <span>
  673. <el-form>
  674. <el-row>
  675. <span>申请日期:</span>
  676. <span>
  677. <el-date-picker
  678. type="datetime"
  679. format="yyyy-MM-dd HH:mm"
  680. value-format="yyyy-MM-dd HH:mm"
  681. placeholder="选择时间"
  682. v-model="selected_date"
  683. ></el-date-picker>
  684. </span>
  685. </el-row>
  686. <el-row>
  687. <span>备注:</span>
  688. <span>
  689. <el-input v-model="remark" style="width:200px"></el-input>
  690. </span>
  691. </el-row>
  692. </el-form>
  693. </span>
  694. <span slot="footer" class="dialog-footer">
  695. <el-button @click="infoDialogVisible = false">取 消</el-button>
  696. <el-button type="primary" @click="saveInformation">确 定</el-button>
  697. </span>
  698. </el-dialog>
  699. </div>
  700. </template>
  701. <script>
  702. import axios from 'axios'
  703. import multiSelectBox from './MultiSelectBox'
  704. import { getDataConfig } from '@/utils/data'
  705. import { postAssessmentBeforeDislysis, CreateDryWeight,saveInformation } from '@/api/dialysis'
  706. import store from '@/store'
  707. import { uParseTime } from '@/utils/tools'
  708. import { parseTime } from '@/utils'
  709. import request from '@/utils/request'
  710. const moment = require('moment')
  711. export default {
  712. components: {
  713. multiSelectBox
  714. },
  715. name: 'assessment-after-dislysis-dialog',
  716. data() {
  717. return {
  718. hemorrhages:[
  719. {value:0,label:'请选择'},
  720. {value:1,label: '是'},
  721. {value:2,label: '否'},
  722. ],
  723. catheters:[
  724. {value:0,label:'请选择'},
  725. {value:1,label:'有'},
  726. {value:2,label:'无'}
  727. ],
  728. showTxt: '',
  729. hasPermission: true,
  730. weight_adjust: {
  731. weight: '',
  732. doctor: '',
  733. remark: ''
  734. },
  735. lastPredialysisEvaluation: null,
  736. lastDryWeightDislysis: null,
  737. doctorOptions: [],
  738. isVisibility: false,
  739. dialogFormVisible: false,
  740. actualTreatmentHourShow: new Date(2018, 1, 1, 3, 0),
  741. record_date: '',
  742. cruorOptions: [],
  743. last_dialysis_after: [],
  744. dialysis_interphase: [],
  745. symptom_before_dialysis: [],
  746. blood_access_noise: [],
  747. catheter_suture:[],
  748. edema:[],
  749. catheter: [],
  750. complication: [],
  751. hemorrhage: [],
  752. blood_access_part: [],
  753. blood_access_part_opera: [],
  754. humor_excessive_symptom_array: [],
  755. internal_fistula: [],
  756. internal_fistula_skin: [],
  757. puncture_method: [],
  758. suctionList:[],
  759. isVisibiltyForCruorDialog: false,
  760. assessmentBeforeDislysis: {
  761. puncture_needle: '',
  762. catheter_bend: '',
  763. internal_fistula_skin: '',
  764. weight_before: '',
  765. additional_weight: '',
  766. temperature: '',
  767. dry_weight: '',
  768. systolic_blood_pressure: '',
  769. diastolic_blood_pressure: '',
  770. symptom_before_dialysis: '',
  771. pulse_frequency: '',
  772. last_post_dialysis: '',
  773. dialysis_interphase: '',
  774. catheter: '',
  775. complication: '',
  776. remark: '',
  777. humor_excessive_symptom: '',
  778. blood_access_part_id: '',
  779. blood_access_part_opera_id: '',
  780. internal_fistula: '',
  781. is_hemorrhage: '',
  782. hemorrhage: '',
  783. hemorrhage_other: '',
  784. puncture_method: '',
  785. breathing_rate: '',
  786. dialysis_count: '',
  787. emergency_treatment: '',
  788. emergency_treatment_other: '',
  789. ductus_arantii_other: '',
  790. ductus_arantii: '',
  791. venous_catheterization_part_other: '',
  792. venous_catheterization_part: '',
  793. venous_catheterization: '',
  794. puncture_way: '',
  795. blood_access_noise: '',
  796. internal_fistula_other: '',
  797. blood_access_internal_fistula: '',
  798. is_infect: '',
  799. exposed: '',
  800. skin: '',
  801. skin_other: '',
  802. infect_other: '',
  803. machine_type: '',
  804. pinholing:'',
  805. catheter_suture:'',
  806. catheter_suture_other:'',
  807. urine_volume:'',
  808. edema:'',
  809. special_treatment:'',
  810. catheter_maintenance:"",
  811. thromubus_type:"",
  812. thrombus_av:"",
  813. thromubus_a:"",
  814. thromubus_v:"",
  815. dehydration:"",
  816. pre_dialysis_drugs:"",
  817. period:"",
  818. estimated_food_intake:"",
  819. blood_pressure_during_dialysis:"",
  820. urea_befor:"",
  821. suction:"",
  822. weight_befor_remake:"",
  823. height:"",
  824. age:"",
  825. his_department:"",
  826. his_bed:"",
  827. point_puncture:"",
  828. catheter_evaluation_program:"",
  829. skin_site_catheterization:"",
  830. pathway_formation_time:"",
  831. lien_necessary:"",
  832. befor_symptoms:"",
  833. },
  834. InnerDialogProps: {
  835. values: [],
  836. visibility: false,
  837. isShowTextArea: true,
  838. customContent: '',
  839. titles: '',
  840. type: '' // 不同弹框类型,用来匹配数据
  841. },
  842. machineType: [],
  843. puncture_ways: '',
  844. skins:[],
  845. pinholings:[],
  846. catheter_maintenancelist:[],
  847. thrombuShow:false,
  848. body_weight_before:"",
  849. point_punctures:[],
  850. infoDialogVisible:false,
  851. selected_date:"",
  852. remark:"",
  853. catheter_evaluation_program_list:[],
  854. skin_site_catheterization_list:[],
  855. summary:[],
  856. value2:""
  857. }
  858. },
  859. props: {
  860. predialysis_evaluation: { // 透前评估
  861. type: Object,
  862. default: () => {
  863. return { id: 0 }
  864. }
  865. },
  866. patient: { // 患者信息
  867. type: Object,
  868. default: () => {
  869. return { id: 0 }
  870. }
  871. },
  872. admin_users: { // 系统用户列表
  873. type: Array,
  874. default: () => {
  875. return []
  876. }
  877. },
  878. lastAssessment:{
  879. type:Object,
  880. default: () => {
  881. return []
  882. }
  883. },
  884. prescription: {
  885. // 透析处方
  886. type: Object,
  887. default: () => {
  888. return { id: 0 }
  889. }
  890. },
  891. dryWeightList:{
  892. type:Array,
  893. default:()=>{
  894. return [];
  895. }
  896. },
  897. docList:{
  898. type:Array,
  899. default:()=>{
  900. return [];
  901. }
  902. }
  903. },
  904. methods: {
  905. isName(name) {
  906. let filedList = store.getters.xt_user.fileds;
  907. for (let i = 0; i < filedList.length; i++) {
  908. if (filedList[i].module == 3 && filedList[i].filed_name_cn == name) {
  909. return filedList[i].filed_name;
  910. }
  911. }
  912. },
  913. isCheckmust(name) {
  914. let filedList = store.getters.xt_user.fileds;
  915. for (let i = 0; i < filedList.length; i++) {
  916. if (
  917. filedList[i].module == 3 &&
  918. filedList[i].filed_name_cn == name &&
  919. filedList[i].is_write == 1&&
  920. filedList[i].is_show == 1
  921. ) {
  922. // console.log(filedList[i],'false')
  923. if (name == "血管通路"||name == "导管打折"||name == '出血'||name == '血栓'||
  924. name == '围手术期'||name=='血管杂音'||name=='急诊'||name=='中心静脉导置管'
  925. ) {
  926. return [
  927. { required: true, message: `请输入${name}` },
  928. // {
  929. // required: true,
  930. // pattern: /^[1-9]\d*$/,
  931. // message: `请输入${name}`,
  932. // },
  933. ];
  934. }
  935. return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
  936. }
  937. }
  938. },
  939. setLastRecord(lastPredialysisEvaluation, lastDryWeightDislysis) {
  940. this.lastPredialysisEvaluation = lastPredialysisEvaluation
  941. this.lastDryWeightDislysis = lastDryWeightDislysis
  942. },
  943. isShow(name) {
  944. var filedList = store.getters.xt_user.fileds
  945. for (let i = 0; i < filedList.length; i++) {
  946. if (filedList[i].module == 3 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
  947. // console.log("filedList",filedList)
  948. return true
  949. }
  950. }
  951. return false
  952. },
  953. show(assessment, lastDryWeightDislysis,last_predialysis_evaluation,lastAssessment,record_date) {
  954. console.log("dryWeightList",this.dryWeightList)
  955. console.log("doclist",this.docList)
  956. let filedList = store.getters.xt_user.fileds;
  957. console.log(filedList,'filedList')
  958. this.lastPredialysisEvaluation = last_predialysis_evaluation
  959. console.log("获取上次数据",this.lastPredialysisEvaluation, this.$store.getters.xt_user.org.id )
  960. if(record_date!=null && record_date!=undefined){
  961. this.record_date = record_date
  962. }
  963. console.log("日期23333333333我",this.record_date)
  964. if(this.lastPredialysisEvaluation != null) {
  965. // if(this.lastPredialysisEvaluation.remark == "" && this.$store.getters.xt_user.org.id == 10307){
  966. // console.log("2o2o3232o23o2o3o23")
  967. // this.assessmentBeforeDislysis.remark = "患者已确认无发热,无流行病学接触史"
  968. // }
  969. if(this.lastPredialysisEvaluation.thromubus_type == 1){
  970. this.assessmentBeforeDislysis.thromubus_type = this.lastPredialysisEvaluation.thromubus_type.toString()
  971. this.thrombuShow = true
  972. }
  973. if(this.lastPredialysisEvaluation.thromubus_type == 2){
  974. this.assessmentBeforeDislysis.thromubus_type = this.lastPredialysisEvaluation.thromubus_type.toString()
  975. }
  976. if (this.lastPredialysisEvaluation.is_hemorrhage == 1) {
  977. this.lastPredialysisEvaluation.is_hemorrhage = "1"
  978. }
  979. if (this.lastPredialysisEvaluation.is_hemorrhage == 2) {
  980. this.lastPredialysisEvaluation.is_hemorrhage = "2"
  981. }
  982. if (this.lastPredialysisEvaluation.catheter_bend == 1) {
  983. this.lastPredialysisEvaluation.catheter_bend = "1"
  984. }
  985. if (this.lastPredialysisEvaluation.catheter_bend == 2) {
  986. this.lastPredialysisEvaluation.catheter_bend = "2"
  987. }
  988. if (this.lastPredialysisEvaluation.is_infect == 1) {
  989. this.lastPredialysisEvaluation.is_infect = "1"
  990. }
  991. if (this.lastPredialysisEvaluation.is_infect == 2) {
  992. this.lastPredialysisEvaluation.is_infect = "2"
  993. }
  994. if(this.lastPredialysisEvaluation.period == 1){
  995. this.lastPredialysisEvaluation.period = "1"
  996. }
  997. if(this.lastPredialysisEvaluation.period == 2){
  998. this.lastPredialysisEvaluation.period = "2"
  999. }
  1000. }
  1001. this.assessmentBeforeDislysis.pathway_formation_time = moment(new Date()).format('YYYY-MM-DD')
  1002. console.log(" this.assessmentBeforeDislysis.pathway_formation_time", moment(new Date()).format('YYYY-MM-DD'))
  1003. console.log("hhahhahahah",assessment)
  1004. if(assessment!=null){
  1005. this.assessmentBeforeDislysis.pathway_formation_time = this.getTimeOne(assessment.pathway_formation_time)
  1006. if(assessment.whether_unobstructed >0){
  1007. this.assessmentBeforeDislysis.whether_unobstructed = assessment.whether_unobstructed.toString()
  1008. }
  1009. if(assessment.lien_necessary>0){
  1010. this.assessmentBeforeDislysis.lien_necessary = assessment.lien_necessary.toString()
  1011. }
  1012. }
  1013. this.assessment = assessment
  1014. this.getPermission()
  1015. this.isVisibility = true
  1016. for (let i = 0; i < this.admin_users.length; i++) {
  1017. if (this.admin_users[i].user_type != 3) {
  1018. this.doctorOptions.push(this.admin_users[i])
  1019. }
  1020. }
  1021. if (this.$store.getters.xt_user.user.user_type == 1 || this.$store.getters.xt_user.user.user_type == 2) {
  1022. this.weight_adjust.doctor = this.$store.getters.xt_user.user.id
  1023. }
  1024. if (this.predialysis_evaluation.id == 0) {
  1025. if (lastDryWeightDislysis != null) {
  1026. this.weight_adjust.weight = lastDryWeightDislysis.dry_weight
  1027. this.$set(
  1028. this.assessmentBeforeDislysis,
  1029. 'dry_weight',
  1030. lastDryWeightDislysis.dry_weight.toString()
  1031. )
  1032. } else {
  1033. if (this.lastPredialysisEvaluation != null) {
  1034. this.weight_adjust.weight = this.lastPredialysisEvaluation.dry_weight
  1035. this.assessmentBeforeDislysis.dry_weight = this.lastPredialysisEvaluation.dry_weight
  1036. }
  1037. }
  1038. if (this.lastPredialysisEvaluation != null) {
  1039. for (var key in this.lastPredialysisEvaluation){
  1040. if (key != 'systolic_blood_pressure' && key != 'diastolic_blood_pressure' && key != 'pulse_frequency' && key != 'dry_weight' && key != 'weight_before'){
  1041. this.$set(
  1042. this.assessmentBeforeDislysis,
  1043. key,
  1044. this.lastPredialysisEvaluation[key]
  1045. )
  1046. }
  1047. }
  1048. }
  1049. //最后一次血管通路
  1050. if(this.lastAssessment!=null){
  1051. var blood_id = 0
  1052. for(let i= 0;i<this.blood_access_part_opera.length;i++){
  1053. if(this.lastAssessment.blood_access_part_opera_id == this.blood_access_part_opera[i].name){
  1054. blood_id = this.blood_access_part_opera[i].id
  1055. }
  1056. }
  1057. this.assessmentBeforeDislysis.blood_access_part_opera_id = blood_id
  1058. this.assessmentBeforeDislysis.blood_access_part_id = this.lastAssessment.blood_access_part_id
  1059. } else {
  1060. if (this.lastPredialysisEvaluation != null) {
  1061. var blood_id = 0
  1062. for(let i= 0;i<this.blood_access_part_opera.length;i++){
  1063. if(this.lastAssessment.blood_access_part_opera_id == this.blood_access_part_opera[i].name){
  1064. blood_id = this.blood_access_part_opera[i].id
  1065. }
  1066. }
  1067. this.assessmentBeforeDislysis.blood_access_part_opera_id = blood_id
  1068. this.assessmentBeforeDislysis.blood_access_part_id = this.lastPredialysisEvaluation.blood_access_part_id
  1069. }
  1070. }
  1071. } else {
  1072. console.log("为首务2322323",this.assessmentBeforeDislysis.period)
  1073. this.assessmentBeforeDislysis.period = this.assessmentBeforeDislysis.period.toString()
  1074. // this.assessmentBeforeDislysis.dry_weight = this.predialysis_evaluation['dry_weight']
  1075. this.weight_adjust.weight = this.predialysis_evaluation['dry_weight']
  1076. }
  1077. },
  1078. hide() {
  1079. this.isVisibility = false
  1080. },
  1081. showInnerDialog: function(val) {
  1082. this.InnerDialogProps.visibility = true
  1083. switch (val) {
  1084. case '1': // 前次透析后
  1085. this.InnerDialogProps.values = this.last_dialysis_after
  1086. this.InnerDialogProps.titles = '前次透析后'
  1087. this.InnerDialogProps.type = 'last_dialysis_after'
  1088. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.last_post_dialysis
  1089. this.InnerDialogProps.isShowTextArea = false
  1090. break
  1091. case '2': // 透析期间
  1092. this.InnerDialogProps.values = this.dialysis_interphase
  1093. this.InnerDialogProps.titles = '透析期间'
  1094. this.InnerDialogProps.type = 'dialysis_interphase'
  1095. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.dialysis_interphase
  1096. this.InnerDialogProps.isShowTextArea = false
  1097. break
  1098. break
  1099. case '3': // 透析前症状
  1100. this.InnerDialogProps.values = this.symptom_before_dialysis
  1101. this.InnerDialogProps.titles = '透析前症状'
  1102. this.InnerDialogProps.type = 'symptom_before_dialysis'
  1103. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.symptom_before_dialysis
  1104. this.InnerDialogProps.isShowTextArea = false
  1105. break
  1106. case '4': // 导管
  1107. this.InnerDialogProps.values = this.catheter
  1108. this.InnerDialogProps.titles = '导管'
  1109. this.InnerDialogProps.type = 'catheter'
  1110. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.catheter
  1111. this.InnerDialogProps.isShowTextArea = false
  1112. break
  1113. break
  1114. case '5': // 并发症
  1115. this.InnerDialogProps.values = this.complication
  1116. this.InnerDialogProps.titles = '并发症'
  1117. this.InnerDialogProps.type = 'complication'
  1118. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.complication
  1119. this.InnerDialogProps.isShowTextArea = false
  1120. break
  1121. case '6': // 出血选项
  1122. this.InnerDialogProps.values = this.hemorrhage
  1123. this.InnerDialogProps.titles = '出血选项'
  1124. this.InnerDialogProps.type = 'hemorrhage'
  1125. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.hemorrhage
  1126. this.InnerDialogProps.isShowTextArea = false
  1127. break
  1128. case '7': // 内瘘
  1129. this.InnerDialogProps.values = this.internal_fistula
  1130. this.InnerDialogProps.titles = '内瘘'
  1131. this.InnerDialogProps.type = 'internal_fistula'
  1132. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.internal_fistula
  1133. this.InnerDialogProps.isShowTextArea = false
  1134. break
  1135. case '8': // 内瘘皮肤情况
  1136. this.InnerDialogProps.values = this.internal_fistula_skin
  1137. this.InnerDialogProps.titles = '血管通路皮肤情况'
  1138. this.InnerDialogProps.type = 'internal_fistula_skin'
  1139. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.internal_fistula_skin
  1140. this.InnerDialogProps.isShowTextArea = false
  1141. break
  1142. case '9': //
  1143. this.InnerDialogProps.values = this.$store.getters.blood_access_internal_fistula
  1144. this.InnerDialogProps.titles = '血管通路(内瘘)'
  1145. this.InnerDialogProps.type = 'blood_access_internal_fistula'
  1146. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.blood_access_internal_fistula
  1147. this.InnerDialogProps.isShowTextArea = false
  1148. break
  1149. case '10': //
  1150. this.InnerDialogProps.values = this.$store.getters.ductus_arantii
  1151. this.InnerDialogProps.titles = '中心静脉导管'
  1152. this.InnerDialogProps.type = 'ductus_arantii'
  1153. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.ductus_arantii
  1154. this.InnerDialogProps.isShowTextArea = false
  1155. break
  1156. case '11': //
  1157. this.InnerDialogProps.values =getDataConfig('hemodialysis', 'puncture_needle')
  1158. this.InnerDialogProps.titles = '穿刺针'
  1159. this.InnerDialogProps.type = 'puncture_needle'
  1160. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.puncture_needle
  1161. this.InnerDialogProps.isShowTextArea = false
  1162. break
  1163. case '12': // 皮肤
  1164. this.InnerDialogProps.values = this.skins
  1165. this.InnerDialogProps.titles = '皮肤'
  1166. this.InnerDialogProps.type = 'skin'
  1167. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.skin
  1168. this.InnerDialogProps.isShowTextArea = false
  1169. break
  1170. case '13': // 穿刺方式
  1171. this.InnerDialogProps.values = this.puncture_ways
  1172. this.InnerDialogProps.titles = '穿刺方式'
  1173. this.InnerDialogProps.type = 'puncture_way'
  1174. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.puncture_way
  1175. this.InnerDialogProps.isShowTextArea = false
  1176. break
  1177. case '14': // 针眼
  1178. this.InnerDialogProps.values = this.pinholings
  1179. this.InnerDialogProps.titles = '针眼'
  1180. this.InnerDialogProps.type = 'pinholing'
  1181. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.pinholing
  1182. this.InnerDialogProps.isShowTextArea = false
  1183. break
  1184. case '15': // 导管缝线
  1185. this.InnerDialogProps.values = this.catheter_suture
  1186. this.InnerDialogProps.titles = '导管缝线'
  1187. this.InnerDialogProps.type = 'catheter_suture'
  1188. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.catheter_suture
  1189. this.InnerDialogProps.isShowTextArea = false
  1190. break
  1191. case '16': // 水肿
  1192. this.InnerDialogProps.values = this.edema
  1193. this.InnerDialogProps.titles = '水肿'
  1194. this.InnerDialogProps.type = 'edema'
  1195. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.edema
  1196. this.InnerDialogProps.isShowTextArea = false
  1197. break
  1198. case '17': // 水肿
  1199. this.InnerDialogProps.values = this.blood_access_part
  1200. this.InnerDialogProps.titles = '血管通路部位'
  1201. this.InnerDialogProps.type = 'blood_access_part_id'
  1202. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.blood_access_part_id
  1203. this.InnerDialogProps.isShowTextArea = false
  1204. break
  1205. case '18': // 导管维护
  1206. this.InnerDialogProps.values = this.catheter_maintenancelist
  1207. this.InnerDialogProps.titles = '导管维护'
  1208. this.InnerDialogProps.type = 'catheter_maintenance'
  1209. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.catheter_maintenance
  1210. this.InnerDialogProps.isShowTextArea = false
  1211. break
  1212. case '19': // 内瘘
  1213. this.InnerDialogProps.values = this.humor_excessive_symptom_array
  1214. this.InnerDialogProps.titles = '体液过多症状'
  1215. this.InnerDialogProps.type = 'humor_excessive_symptom'
  1216. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.humor_excessive_symptom
  1217. this.InnerDialogProps.isShowTextArea = false
  1218. break
  1219. case '20': // 抽吸
  1220. this.InnerDialogProps.values = this.suctionList
  1221. this.InnerDialogProps.titles = '抽吸'
  1222. this.InnerDialogProps.type = 'suction'
  1223. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.suction
  1224. this.InnerDialogProps.isShowTextArea = false
  1225. case '21': // 穿刺点
  1226. this.InnerDialogProps.values = this.point_punctures
  1227. this.InnerDialogProps.titles = '穿刺点'
  1228. this.InnerDialogProps.type = 'point_puncture'
  1229. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.point_puncture
  1230. this.InnerDialogProps.isShowTextArea = false
  1231. break
  1232. case '22': // 导管评估项目
  1233. this.InnerDialogProps.values = this.catheter_evaluation_program_list
  1234. this.InnerDialogProps.titles = '导管评估项目'
  1235. this.InnerDialogProps.type = 'catheter_evaluation_program'
  1236. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.catheter_evaluation_program
  1237. this.InnerDialogProps.isShowTextArea = false
  1238. break
  1239. case '23': // 置管部位皮肤
  1240. this.InnerDialogProps.values = this.skin_site_catheterization_list
  1241. this.InnerDialogProps.titles = '置管部位皮肤'
  1242. this.InnerDialogProps.type = 'skin_site_catheterization'
  1243. this.InnerDialogProps.selected = this.assessmentBeforeDislysis.skin_site_catheterization
  1244. this.InnerDialogProps.isShowTextArea = false
  1245. break
  1246. }
  1247. },
  1248. innerDialogComfirm: function(val) {
  1249. this.InnerDialogProps.visibility = false
  1250. switch (val.type) {
  1251. case 'last_dialysis_after':
  1252. this.assessmentBeforeDislysis.last_post_dialysis = val.value.join(',')
  1253. break
  1254. case 'dialysis_interphase':
  1255. this.assessmentBeforeDislysis.dialysis_interphase = val.value.join(',')
  1256. break
  1257. case 'symptom_before_dialysis':
  1258. this.assessmentBeforeDislysis.symptom_before_dialysis = val.value.join(',')
  1259. break
  1260. case 'catheter':
  1261. this.assessmentBeforeDislysis.catheter = val.value.join(',')
  1262. break
  1263. case 'complication':
  1264. this.assessmentBeforeDislysis.complication = val.value.join(',')
  1265. break
  1266. case 'hemorrhage':
  1267. this.assessmentBeforeDislysis.hemorrhage = val.value.join(',')
  1268. break
  1269. case 'internal_fistula':
  1270. this.assessmentBeforeDislysis.internal_fistula = val.value.join(',')
  1271. break
  1272. case 'internal_fistula_skin':
  1273. this.assessmentBeforeDislysis.internal_fistula_skin = val.value.join(',')
  1274. break
  1275. case 'blood_access_internal_fistula':
  1276. this.assessmentBeforeDislysis.blood_access_internal_fistula = val.value.join(',')
  1277. break
  1278. case 'ductus_arantii':
  1279. this.assessmentBeforeDislysis.ductus_arantii = val.value.join(',')
  1280. break
  1281. case 'puncture_needle':
  1282. this.assessmentBeforeDislysis.puncture_needle = val.value.join(',')
  1283. break
  1284. case 'skin':
  1285. this.assessmentBeforeDislysis.skin = val.value.join(',')
  1286. break
  1287. case 'puncture_way':
  1288. this.assessmentBeforeDislysis.puncture_way = val.value.join(',')
  1289. break
  1290. case 'pinholing':
  1291. this.assessmentBeforeDislysis.pinholing = val.value.join(',')
  1292. break
  1293. case 'catheter_suture':
  1294. this.assessmentBeforeDislysis.catheter_suture = val.value.join(',')
  1295. break
  1296. case 'edema':
  1297. this.assessmentBeforeDislysis.edema = val.value.join(',')
  1298. break
  1299. case 'blood_access_part_id':
  1300. this.assessmentBeforeDislysis.blood_access_part_id = val.value.join(',')
  1301. break
  1302. case 'catheter_maintenance':
  1303. this.assessmentBeforeDislysis.catheter_maintenance = val.value.join(',')
  1304. break
  1305. case 'humor_excessive_symptom':
  1306. this.assessmentBeforeDislysis.humor_excessive_symptom = val.value.join(',')
  1307. break
  1308. case 'suction':
  1309. this.assessmentBeforeDislysis.suction = val.value.join(',')
  1310. break
  1311. case 'point_puncture':
  1312. this.assessmentBeforeDislysis.point_puncture = val.value.join(',')
  1313. break
  1314. case 'catheter_evaluation_program':
  1315. this.assessmentBeforeDislysis.catheter_evaluation_program = val.value.join(',')
  1316. break
  1317. case 'skin_site_catheterization':
  1318. this.assessmentBeforeDislysis.skin_site_catheterization = val.value.join(',')
  1319. break
  1320. }
  1321. },
  1322. innerDialogCancle: function() {
  1323. this.InnerDialogProps.visibility = false
  1324. },
  1325. handleComfirm(formName) {
  1326. console.log("提交日期",this.record_date)
  1327. var arr = this.assessmentBeforeDislysis
  1328. for (let i = 0; i < this.machineType.length; i++) {
  1329. if (arr.machine_type == this.machineType[i].id) {
  1330. arr.machine_type = this.machineType[i].name
  1331. }
  1332. }
  1333. const ParamsQuery = arr
  1334. console.log("params",ParamsQuery)
  1335. this.$refs.assessmentBeforeDislysis.validate((valid) => {
  1336. if (valid) {
  1337. ParamsQuery['patient'] = this.patient.id
  1338. ParamsQuery['record_date'] = this.record_date
  1339. ParamsQuery['mode'] = '1'
  1340. if (this.predialysis_evaluation.id == 0) {
  1341. ParamsQuery['mode'] = '1'
  1342. } else {
  1343. if (this.predialysis_evaluation.creater == 0) {
  1344. ParamsQuery['mode'] = '1'
  1345. } else {
  1346. ParamsQuery['mode'] = '2'
  1347. if (this.predialysis_evaluation.creater != this.$store.getters.xt_user.user.id) {
  1348. ParamsQuery['mode'] = '3'
  1349. }
  1350. }
  1351. }
  1352. console.log("params",ParamsQuery)
  1353. ParamsQuery.whether_unobstructed = parseInt(ParamsQuery.whether_unobstructed)
  1354. ParamsQuery.lien_necessary = parseInt(ParamsQuery.lien_necessary)
  1355. postAssessmentBeforeDislysis(ParamsQuery).then(response => {
  1356. if (response.data.state == 0) {
  1357. this.$message.error(response.data.msg)
  1358. if(response.data.code == 600000008){
  1359. this.infoDialogVisible = true
  1360. }
  1361. return false
  1362. } else {
  1363. this.$notify({
  1364. title: '成功',
  1365. message: '提交成功',
  1366. type: 'success',
  1367. duration: 2000
  1368. })
  1369. if(this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id==3877 || this.$store.getters.xt_user.template_info.org_id ==10469){
  1370. this.$parent.getParentMethods()
  1371. }
  1372. const assessment_before_dislysis_resp = response.data.data.assessmentBeforeDislysis
  1373. var predialysis_evaluation = this.predialysis_evaluation
  1374. for (var index in assessment_before_dislysis_resp) {
  1375. // predialysis_evaluation[index] = assessment_before_dislysis_resp[index];
  1376. this.$set(predialysis_evaluation, index, assessment_before_dislysis_resp[index])
  1377. }
  1378. let orgId = parseInt(sessionStorage.getItem("org_id"));
  1379. axios.get('/api/index/patientsign/'+ orgId + '/'+ this.patient.id).then((res) => {
  1380. console.log('res',res.data)
  1381. })
  1382. this.hide()
  1383. console.log("hhh23h3h223h23h23h23h2h3")
  1384. }
  1385. })
  1386. } else {
  1387. return false;
  1388. }
  1389. });
  1390. },
  1391. handleCancle: function() {
  1392. this.isVisibility = false
  1393. },
  1394. showDryWeightDialog: function() {
  1395. if (this.$store.getters.xt_user.user.user_type == 3) {
  1396. this.$message.error('您没有权限调整干体重')
  1397. return
  1398. }
  1399. this.dialogFormVisible = true
  1400. this.isVisibility = false
  1401. },
  1402. submitDryWeight() {
  1403. const params = {
  1404. id: this.patient.id,
  1405. dry_weight: this.weight_adjust.weight,
  1406. remark: this.weight_adjust.remark,
  1407. doctor_id: this.weight_adjust.doctor,
  1408. mode: '1'
  1409. }
  1410. CreateDryWeight(params).then(response => {
  1411. if (response.data.state == 0) {
  1412. this.$message.error(response.data.msg)
  1413. return false
  1414. } else {
  1415. this.$message.success('提交成功')
  1416. this.assessmentBeforeDislysis.dry_weight = this.weight_adjust.weight
  1417. this.dialogFormVisible = false
  1418. this.isVisibility = true
  1419. }
  1420. })
  1421. },
  1422. cancleDryWeight() {
  1423. this.dialogFormVisible = false
  1424. this.isVisibility = true
  1425. },
  1426. getPermission() {
  1427. request.get('/api/func_per/get', {
  1428. params: {
  1429. create_url: '/api/dialysis/assessmentbeforedislysis?mode=1',
  1430. modify_url: '/api/dialysis/assessmentbeforedislysis?mode=2',
  1431. modify_other_url: '/api/dialysis/assessmentbeforedislysis?mode=3',
  1432. module: 3
  1433. }
  1434. }).then(res => {
  1435. // console.log(res)
  1436. // console.log('透前', this.patient_prop)
  1437. if (res.data.state == 0) {
  1438. this.hasPermission = false
  1439. } else if (res.data.state == 1) {
  1440. if (this.assessment.id != '' && this.assessment.creater != 0) { // 有数据
  1441. if (this.assessment.creater == this.$store.getters.xt_user.user.id) { // 创建人是自己
  1442. if (res.data.data.is_has_modify == false) {
  1443. this.hasPermission = false
  1444. this.showTxt = '你没有修改透前评估权限'
  1445. }
  1446. } else { // 创建人不是自己
  1447. if (res.data.data.is_has_modify_other == false) {
  1448. this.hasPermission = false
  1449. this.showTxt = '你没有修改他人透前评估权限'
  1450. }
  1451. }
  1452. } else if (this.assessment.id == '' || this.assessment.creater == 0) {
  1453. if (res.data.data.is_has_create == false) {
  1454. this.hasPermission = false
  1455. this.showTxt = '你没有新增透前评估权限'
  1456. }
  1457. }
  1458. }
  1459. })
  1460. },
  1461. changeThrombus(val){
  1462. if(val == 1){
  1463. this.thrombuShow = true
  1464. }
  1465. if(val == 2){
  1466. this.thrombuShow = false
  1467. }
  1468. },
  1469. getTime(value, temp) {
  1470. if (value != undefined) {
  1471. return uParseTime(value, temp)
  1472. }
  1473. return ''
  1474. },
  1475. getUserName(admin_user_id){
  1476. var user_name = ""
  1477. for(let i=0;i<this.docList.length;i++){
  1478. if(admin_user_id == this.docList[i].admin_user_id){
  1479. user_name = this.docList[i].user_name
  1480. }
  1481. }
  1482. return user_name
  1483. },
  1484. saveInformation(){
  1485. var params = {
  1486. selected_date:this.selected_date,
  1487. patient_id:this.$route.query.patient_id,
  1488. record_date:this.$route.query.date,
  1489. module:3,
  1490. remark:this.remark,
  1491. }
  1492. saveInformation(params).then(response=>{
  1493. if(response.data.state == 1){
  1494. var information = response.data.data.information
  1495. this.$message.success("提交成功!")
  1496. this.infoDialogVisible = false
  1497. }
  1498. })
  1499. },
  1500. getTimeOne(val) {
  1501. if(val == ""){
  1502. return ""
  1503. }else {
  1504. return uParseTime(val, '{y}-{m}-{d}')
  1505. }
  1506. },
  1507. dialysisSummarySelectChange: function (values) {
  1508. if (this.assessmentBeforeDislysis.befor_symptoms == "") {
  1509. this.assessmentBeforeDislysis.befor_symptoms = values;
  1510. } else {
  1511. if (this.assessmentBeforeDislysis.befor_symptoms.indexOf(values) == -1) {
  1512. if (
  1513. this.assessmentBeforeDislysis.befor_symptoms
  1514. .charAt(this.assessmentBeforeDislysis.befor_symptoms.length - 1)
  1515. .indexOf("。") == -1
  1516. ) {
  1517. this.assessmentBeforeDislysis.befor_symptoms =
  1518. this.assessmentBeforeDislysis.befor_symptoms+ "," + values;
  1519. } else {
  1520. this.assessmentBeforeDislysis.befor_symptoms =
  1521. this.assessmentBeforeDislysis.befor_symptoms+ "," + values;
  1522. this.assessmentBeforeDislysis.befor_symptoms =
  1523. this.assessmentBeforeDislysis.befor_symptoms + values;
  1524. }
  1525. }
  1526. }
  1527. },
  1528. },
  1529. created() {
  1530. this.last_dialysis_after = getDataConfig('hemodialysis', 'last_dialysis_after')
  1531. this.dialysis_interphase = getDataConfig('hemodialysis', 'dialysis_duration')
  1532. this.symptom_before_dialysis = getDataConfig('hemodialysis', 'dialysis_before')
  1533. this.catheter = getDataConfig('hemodialysis', 'catheter')
  1534. this.complication = getDataConfig('hemodialysis', 'complication')
  1535. this.hemorrhage = getDataConfig('hemodialysis', 'hemorrhage')
  1536. this.puncture_ways = getDataConfig('hemodialysis', 'puncture_method')
  1537. this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
  1538. this.blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1539. this.humor_excessive_symptom_array = getDataConfig('hemodialysis', 'humor_excessive_symptom')
  1540. // console.log("血管通路部位",this.blood_access_part_opera)
  1541. this.internal_fistula = getDataConfig('hemodialysis', 'internal_fistula')
  1542. // console.log("内瘘222222",this.internal_fistula)
  1543. this.internal_fistula_skin = getDataConfig('hemodialysis', 'internal_fistula_skin')
  1544. this.puncture_method = getDataConfig('hemodialysis', 'puncture_method')
  1545. this.machineType = getDataConfig('hemodialysis', 'machine_type')
  1546. this.catheter_suture = getDataConfig('hemodialysis', 'catheter_suture')
  1547. this.edema = getDataConfig('hemodialysis', 'edema')
  1548. this.suctionList = getDataConfig('hemodialysis', 'suction')
  1549. this.blood_access_noise = this.$store.getters.blood_access_noise
  1550. var date = this.$route.query && this.$route.query.date
  1551. this.record_date = date ? uParseTime(date, "{y}-{m}-{d}") : parseTime(new Date(), '{y}-{m}-{d}')
  1552. //获取皮肤
  1553. this.skins = getDataConfig('hemodialysis','skin')
  1554. this.pinholings = getDataConfig('hemodialysis','pinholing')
  1555. console.log("针眼",this.pinholings)
  1556. this.catheter_maintenancelist = getDataConfig('hemodialysis','catheter_maintenance')
  1557. console.log("导管维护",this.catheter_maintenancelist)
  1558. this.catheter_evaluation_program_list = getDataConfig('hemodialysis','catheter_evaluation_program')
  1559. this.skin_site_catheterization_list = getDataConfig('hemodialysis','skin_site_catheterization')
  1560. console.log("predialysis_evaluation2332323323222323",this.predialysis_evaluation)
  1561. this.point_punctures = getDataConfig('hemodialysis','point_puncture')
  1562. this.summary = getDataConfig("befor_symptoms", "befor_symptoms");
  1563. console.log("hhh32h323h23h23h23h23h23h",getDataConfig("befor_symptoms", "befor_symptoms"))
  1564. // this.weight_adjust.weight = this.dry_weight.dry_weight
  1565. // if(this.predialysis_evaluation.id == 0){
  1566. //
  1567. //
  1568. //
  1569. // }els
  1570. // if(this.dry_weight == null){
  1571. // if (this.predialysis_evaluation['dry_weight'] == 0) {
  1572. // this.assessmentBeforeDislysis['dry_weight'] = ''
  1573. // }
  1574. //
  1575. // }
  1576. },
  1577. watch: {
  1578. isVisibility(val) {
  1579. },
  1580. 'predialysis_evaluation.id': function() {
  1581. console.log("hhahahahhaah",this.predialysis_evaluation)
  1582. if(this.predialysis_evaluation.thromubus_type == 1){
  1583. this.predialysis_evaluation.thromubus_type = this.predialysis_evaluation.thromubus_type.toString()
  1584. this.thrombuShow = true
  1585. }
  1586. if (this.predialysis_evaluation.id > 0) {
  1587. for (var index in this.assessmentBeforeDislysis) {
  1588. this.assessmentBeforeDislysis[index] = this.predialysis_evaluation[index]
  1589. }
  1590. if (this.predialysis_evaluation['catheter_bend'] == 0) {
  1591. this.assessmentBeforeDislysis['catheter_bend'] = ''
  1592. } else {
  1593. this.assessmentBeforeDislysis['catheter_bend'] = this.predialysis_evaluation['catheter_bend'] + ''
  1594. }
  1595. if (this.predialysis_evaluation['is_hemorrhage'] == 0) {
  1596. this.assessmentBeforeDislysis['is_hemorrhage'] = ''
  1597. } else {
  1598. this.assessmentBeforeDislysis['is_hemorrhage'] = this.predialysis_evaluation['is_hemorrhage'] + ''
  1599. }
  1600. if (this.predialysis_evaluation['is_infect'] == 0) {
  1601. this.assessmentBeforeDislysis['is_infect'] = ''
  1602. } else {
  1603. this.assessmentBeforeDislysis['is_infect'] = this.predialysis_evaluation['is_infect'] + ''
  1604. }
  1605. if (this.predialysis_evaluation['blood_access_part_id'] == 0) {
  1606. this.assessmentBeforeDislysis['blood_access_part_id'] = ''
  1607. }
  1608. if (this.predialysis_evaluation['blood_access_part_opera_id'] == 0) {
  1609. this.assessmentBeforeDislysis['blood_access_part_opera_id'] = ''
  1610. }
  1611. if (this.predialysis_evaluation['weight_before'] == 0) {
  1612. this.assessmentBeforeDislysis['weight_before'] = ''
  1613. }
  1614. if (this.predialysis_evaluation['temperature'] == 0) {
  1615. this.assessmentBeforeDislysis['temperature'] = ''
  1616. }
  1617. if (this.predialysis_evaluation['systolic_blood_pressure'] == 0) {
  1618. this.assessmentBeforeDislysis['systolic_blood_pressure'] = ''
  1619. }
  1620. if (this.predialysis_evaluation['diastolic_blood_pressure'] == 0) {
  1621. this.assessmentBeforeDislysis['diastolic_blood_pressure'] = ''
  1622. }
  1623. if (this.predialysis_evaluation['pulse_frequency'] == 0) {
  1624. this.assessmentBeforeDislysis['pulse_frequency'] = ''
  1625. }
  1626. if (this.predialysis_evaluation['pulse_frequency'] == 0) {
  1627. this.assessmentBeforeDislysis['pulse_frequency'] = ''
  1628. }
  1629. }
  1630. },
  1631. 'assessmentBeforeDislysis.weight_before': {
  1632. handler (newWeight, oldWeight) {
  1633. let weight = parseFloat(
  1634. newWeight - this.assessmentBeforeDislysis.additional_weight
  1635. ).toFixed(1)
  1636. if (weight > 0) {
  1637. this.body_weight_before = weight
  1638. } else {
  1639. this.body_weight_before = ''
  1640. }
  1641. },
  1642. deep: true,
  1643. immediate: true
  1644. },
  1645. 'assessmentBeforeDislysis.additional_weight': {
  1646. handler (newWeight, oldWeight) {
  1647. if (newWeight > 0) {
  1648. let weight = parseFloat(
  1649. this.assessmentBeforeDislysis.weight_before - newWeight
  1650. ).toFixed(1)
  1651. if (weight > 0) {
  1652. this.body_weight_before = weight
  1653. } else {
  1654. this.body_weight_before = ''
  1655. }
  1656. }
  1657. },
  1658. deep: true,
  1659. immediate: true,
  1660. data: []
  1661. },
  1662. }
  1663. }
  1664. </script>
  1665. <style scoped>
  1666. .warnTxt{
  1667. text-align: center;
  1668. margin: 0 auto;
  1669. background: #faa331;
  1670. max-width: 240px;
  1671. padding: 10px 20px;
  1672. border-radius: 4px;
  1673. margin-bottom: 10px;
  1674. color:#fff;
  1675. }
  1676. .gantizhong{
  1677. text-align: center;
  1678. }
  1679. </style>
  1680. <style lang="scss">
  1681. .newDialog{
  1682. .el-dialog__body{
  1683. padding: 10px 20px 30px;
  1684. }
  1685. }
  1686. </style>