doubleCheckDialog.vue 63KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960
  1. <template>
  2. <div>
  3. <el-dialog
  4. title="双人核对"
  5. :visible.sync="isVisibility"
  6. :modal-append-to-body="false"
  7. width="854px"
  8. >
  9. <!-- <el-form :inline="true" class="demo-form-inline newInline" ref="doubleReview" :model="doubleReview" label-width="105px">
  10. <el-form-item label="透析物品核查 : " :prop="isName('透析物品核查')"
  11. :rules="isCheckmust('透析物品核查')">
  12. <el-radio v-model="doubleReview.dialysis_item_check" label="1" @change="changeRadio">正确</el-radio>
  13. </el-form-item>
  14. <el-form-item class="newItem" label="差错描述 : " label-width="90px">
  15. <el-input v-model="doubleReview.dialysis_item_desc"></el-input>
  16. </el-form-item>
  17. </el-form> -->
  18. <!-- <el-form :inline="true" class="demo-form-inline newCheckBox" ref="doubleReview" :model="doubleReview" label-width="110px">
  19. <el-checkbox-group v-model="checkList" @change="changeBox">
  20. <el-checkbox :label="diazes"></el-checkbox>
  21. <el-checkbox :label="puncture_needle"></el-checkbox>
  22. <el-checkbox :label="dialysate_formulation"></el-checkbox>
  23. <el-checkbox :label="kalium"></el-checkbox>
  24. <el-checkbox :label="calcium"></el-checkbox>
  25. </el-checkbox-group>
  26. </el-form> -->
  27. <!-- <el-form :inline="true" class="demo-form-inline newInline" ref="doubleReview" :model="doubleReview" label-width="105px">
  28. <el-form-item label="透析参数核查 : " :prop="isName('透析参数核查')"
  29. :rules="isCheckmust('透析参数核查')">
  30. <el-radio v-model="doubleReview.dialysis_parameter_check" label="1" @change="changeRadioTwo">正确</el-radio>
  31. </el-form-item>
  32. <el-form-item class="newItem" label="差错描述 : " label-width="90px">
  33. <el-input v-model="doubleReview.dialysis_parameter_desc"></el-input>
  34. </el-form-item>
  35. </el-form> -->
  36. <!-- <el-form class="newCheckBox">
  37. <el-checkbox-group v-model="checkListOne" @change="changeBoxOne" >
  38. <el-checkbox :label="dialys_mode"></el-checkbox>
  39. <el-checkbox :label="long_time"></el-checkbox>
  40. <el-checkbox :label="target_ultrafiltration"></el-checkbox>
  41. <el-checkbox :label="anticoagulant" ></el-checkbox>
  42. <el-checkbox :label="anticoagulant_shouji"></el-checkbox>
  43. <el-checkbox :label="anticoagulant_weichi"></el-checkbox>
  44. <el-checkbox :label="anticoagulant_zongliang"></el-checkbox>
  45. <el-checkbox :label="displace_liqui_part"></el-checkbox>
  46. <el-checkbox :label="replacement_total"></el-checkbox>
  47. <el-checkbox :label="blood_flow_volume"></el-checkbox>
  48. <el-checkbox :label="dialysate_flow"></el-checkbox>
  49. <el-checkbox :label="displace_liqui_value"></el-checkbox>
  50. </el-checkbox-group>
  51. </el-form>
  52. <el-form :inline="true" class="demo-form-inline newInline" ref="doubleReview" :model="doubleReview" label-width="105px">
  53. </el-form> -->
  54. <!-- <el-form class="newCheckBox"></el-form> -->
  55. <!-- <el-form :inline="true" class="demo-form-inline newInline" ref="doubleReview" :model="doubleReview" label-width="105px">
  56. </el-form> -->
  57. <!-- <el-form class="newCheckBox"></el-form> -->
  58. <el-form
  59. :inline="true"
  60. class="demo-form-inline"
  61. ref="doubleReview"
  62. :model="doubleReview"
  63. label-width="120px"
  64. >
  65. <div class="demo-form-inline newInline">
  66. <el-form-item
  67. label="透析物品核查 : "
  68. :prop="isName('透析物品核查')"
  69. :rules="isCheckmust('透析物品核查')"
  70. >
  71. <el-radio
  72. v-model="doubleReview.dialysis_item_check"
  73. label="1"
  74. @change="changeRadio"
  75. >正确</el-radio
  76. >
  77. <!-- <el-radio v-model="doubleReview.dialysis_item_check" label="2">错误</el-radio> -->
  78. </el-form-item>
  79. <el-form-item class="newItem" label="差错描述 : " label-width="90px">
  80. <el-input v-model="doubleReview.dialysis_item_desc"> </el-input>
  81. </el-form-item>
  82. </div>
  83. <el-form-item style="padding-left: 17px;">
  84. <el-checkbox-group v-model="checkList" @change="changeBox">
  85. <el-checkbox :label="diazes"></el-checkbox>&nbsp;&nbsp;
  86. <span v-if="org_id == 0 || org_id == 9671 || org_id == 10440 || org_id == 9675"><el-input style="width:200px" v-model="doubleReview.dialyzer_batch_number"></el-input></span>
  87. </el-checkbox-group>
  88. <el-checkbox-group v-model="checkList" @change="changeBox">
  89. <el-checkbox :label="puncture_needle"></el-checkbox>
  90. <span v-if="org_id == 0 || org_id == 9671 || org_id == 10440 || org_id == 9675"><el-input style="width:200px" v-model="doubleReview.needle_batch_number"></el-input></span>
  91. </el-checkbox-group>
  92. <el-checkbox-group v-model="checkList" @change="changeBox">
  93. <!-- <el-checkbox :label="diazes"></el-checkbox>
  94. <el-checkbox :label="puncture_needle"></el-checkbox> -->
  95. <el-checkbox :label="dialysate_formulation"></el-checkbox>
  96. <el-checkbox :label="kalium"></el-checkbox>
  97. <el-checkbox :label="calcium"></el-checkbox>
  98. </el-checkbox-group>
  99. </el-form-item>
  100. <div class="demo-form-inline newInline">
  101. <el-form-item
  102. label="透析参数核查 : "
  103. :prop="isName('透析参数核查')"
  104. :rules="isCheckmust('透析参数核查')"
  105. >
  106. <el-radio
  107. v-model="doubleReview.dialysis_parameter_check"
  108. label="1"
  109. @change="changeRadioTwo"
  110. >正确</el-radio
  111. >
  112. <!-- <el-radio v-model="doubleReview.dialysis_parameter_check" label="2">错误</el-radio> -->
  113. </el-form-item>
  114. <el-form-item class="newItem" label="差错描述 : " label-width="90px">
  115. <el-input v-model="doubleReview.dialysis_parameter_desc"></el-input>
  116. </el-form-item>
  117. </div>
  118. <el-form-item class="newCheckBox" style="padding-left: 17px;">
  119. <el-checkbox-group v-model="checkListOne" @change="changeBoxOne">
  120. <el-checkbox :label="dialys_mode"></el-checkbox>
  121. <el-checkbox :label="long_time"></el-checkbox>
  122. <el-checkbox :label="target_ultrafiltration"></el-checkbox>
  123. <el-checkbox :label="prescription_water" v-if="org_id == 10469"></el-checkbox>
  124. <el-checkbox :label="anticoagulant"></el-checkbox>
  125. <el-checkbox :label="anticoagulant_shouji"></el-checkbox>
  126. <el-checkbox :label="anticoagulant_weichi"></el-checkbox>
  127. <el-checkbox :label="anticoagulant_zongliang"></el-checkbox>
  128. <el-checkbox :label="displace_liqui_part"></el-checkbox>
  129. <el-checkbox :label="replacement_total"></el-checkbox>
  130. <el-checkbox :label="blood_flow_volume"></el-checkbox>
  131. <el-checkbox :label="dialysate_flow"></el-checkbox>
  132. <el-checkbox :label="displace_liqui_value"></el-checkbox>
  133. </el-checkbox-group>
  134. </el-form-item>
  135. <div class="demo-form-inline newInline">
  136. <el-form-item
  137. label="血管通路核查 : "
  138. :prop="isName('血管通路核查')"
  139. :rules="isCheckmust('血管通路核查')"
  140. >
  141. <el-radio
  142. v-model="doubleReview.vascular_access_verification"
  143. label="1"
  144. @change="changeRadioThree"
  145. >正确</el-radio
  146. >
  147. <!-- <el-radio v-model="doubleReview.vascular_access_verification" label="2">错误</el-radio> -->
  148. </el-form-item>
  149. <el-form-item class="newItem" label="差错描述 : " label-width="90px">
  150. <el-input v-model="doubleReview.vascular_access_desc"></el-input>
  151. </el-form-item>
  152. </div>
  153. <div class="newCheckBox" style="padding-left: 17px;">
  154. <el-checkbox-group v-model="checkListTwo" @change="changeBoxTwo">
  155. <el-checkbox :label="blood_access_part_opera_id"> </el-checkbox>
  156. <el-checkbox label="动静脉接错"></el-checkbox>
  157. <el-checkbox label="渗血"></el-checkbox>
  158. <el-checkbox label="压迫"></el-checkbox>
  159. <el-checkbox label="折叠"></el-checkbox>
  160. <el-checkbox label="滑脱"></el-checkbox>
  161. </el-checkbox-group>
  162. </div>
  163. <div class="demo-form-inline newInline">
  164. <el-form-item
  165. label="管道连接核查 : "
  166. :prop="isName('管道连接核查')"
  167. :rules="isCheckmust('管道连接核查')"
  168. >
  169. <el-radio
  170. v-model="doubleReview.pipeline_connection_check"
  171. label="1"
  172. @change="changeRadioFour"
  173. >正确</el-radio
  174. >
  175. <!-- <el-radio v-model="doubleReview.pipeline_connection_check" label="2">错误</el-radio> -->
  176. </el-form-item>
  177. <el-form-item class="newItem" label="差错描述 : " label-width="90px">
  178. <el-input v-model="doubleReview.pipeline_connection_desc"></el-input>
  179. </el-form-item>
  180. </div>
  181. <el-form-item style="padding-left: 17px;">
  182. <el-checkbox-group v-model="checkListThree" @change="changeBoxThree">
  183. <el-checkbox label="泵前补液测管未夹"></el-checkbox>
  184. <el-checkbox label="肝素管夹未开启"></el-checkbox>
  185. <el-checkbox label="透析器连接错误"></el-checkbox>
  186. <el-checkbox label="动静脉壶页面不标准"></el-checkbox>
  187. <el-checkbox label="静脉管路未卡入保护夹"></el-checkbox>
  188. <el-checkbox label="压力传感器夹未打开"></el-checkbox>
  189. <el-checkbox label="接口连接松动"></el-checkbox>
  190. <el-checkbox label="管路打折"></el-checkbox>
  191. </el-checkbox-group>
  192. </el-form-item>
  193. <el-form-item
  194. label="第一核对时间:"
  195. :prop="isName('第一核对时间')"
  196. :rules="isCheckmust('第一核对时间')"
  197. >
  198. <el-time-picker
  199. v-model="first_check_time"
  200. format="HH:mm"
  201. value-format="HH:mm"
  202. placeholder="请输入核对时间"
  203. >
  204. </el-time-picker>
  205. </el-form-item>
  206. <el-form-item
  207. label="第一核对人员"
  208. :prop="isName('第一核对人员')"
  209. :rules="isCheckmust('第一核对人员')"
  210. >
  211. <el-select v-model="doubleReview.creater" placeholder="请选择核对人">
  212. <el-option
  213. v-for="(admin, index) in admin_users"
  214. :key="index"
  215. :value="admin.id"
  216. :label="admin.name"
  217. ></el-option>
  218. </el-select>
  219. </el-form-item>
  220. <el-form-item
  221. label="第二核对时间:"
  222. :prop="isName('第二核对时间')"
  223. :rules="isCheckmust('第二核对时间')"
  224. >
  225. <el-time-picker
  226. v-model="check_time"
  227. format="HH:mm"
  228. value-format="HH:mm"
  229. placeholder="请输入核对时间"
  230. >
  231. </el-time-picker>
  232. </el-form-item>
  233. <el-form-item
  234. label="第二核对人员"
  235. :prop="isName('第二核对人员')"
  236. :rules="isCheckmust('第二核对人员')"
  237. >
  238. <el-select v-model="doubleReview.modifier" placeholder="请选择核对人">
  239. <el-option
  240. v-for="(admin, index) in admin_users"
  241. :key="index"
  242. :value="admin.id"
  243. :label="admin.name"
  244. ></el-option>
  245. </el-select>
  246. </el-form-item>
  247. <!-- v-if="isShowFiled('第二核对人员工号')" -->
  248. <el-form-item
  249. label="第二核对人员工号:"
  250. v-if="isShowFiled('第二核对人员工号')"
  251. :prop="isName('第二核对人员工号')"
  252. :rules="isCheckmust('第二核对人员工号')"
  253. label-width="150px"
  254. >
  255. <el-input
  256. style="width: 200px"
  257. v-model="doubleReview.employee_number"
  258. ></el-input>
  259. </el-form-item>
  260. <p
  261. style="margin-left: 13px; margin-top: 10px"
  262. v-if="doubleReview.creater != 0"
  263. >
  264. {{ getFirstCheckDesc() }}
  265. </p>
  266. <p
  267. style="margin-left: 13px; margin-top: 10px"
  268. v-if="doubleReview.modifier != 0"
  269. >
  270. {{ getScondCheckDesc() }}
  271. </p>
  272. </el-form>
  273. <div slot="footer" class="dialog-footer">
  274. <el-button @click="handleCancle">取 消</el-button>
  275. <el-button type="primary" @click="handleComfirm('doubleReview')"
  276. >保 存</el-button
  277. >
  278. </div>
  279. </el-dialog>
  280. <el-dialog
  281. title="提示"
  282. :visible.sync="infoDialogVisible"
  283. width="30%">
  284. <span>
  285. <el-form>
  286. <el-row>
  287. <span>申请日期:</span>
  288. <span>
  289. <el-date-picker
  290. type="datetime"
  291. format="yyyy-MM-dd HH:mm"
  292. value-format="yyyy-MM-dd HH:mm"
  293. placeholder="选择时间"
  294. v-model="selected_date"
  295. ></el-date-picker>
  296. </span>
  297. </el-row>
  298. <el-row>
  299. <span>备注:</span>
  300. <span>
  301. <el-input v-model="remark" style="width:200px"></el-input>
  302. </span>
  303. </el-row>
  304. </el-form>
  305. </span>
  306. <span slot="footer" class="dialog-footer">
  307. <el-button @click="infoDialogVisible = false">取 消</el-button>
  308. <el-button type="primary" @click="saveInformation">确 定</el-button>
  309. </span>
  310. </el-dialog>
  311. </div>
  312. </template>
  313. <script>
  314. import { postDoubleCheck, changeRole,saveInformation } from "@/api/dialysis";
  315. import { uParseTime } from "@/utils/tools";
  316. import { parseTime } from "@/utils";
  317. import { getDataConfig } from "@/utils/data";
  318. import store from "@/store";
  319. export default {
  320. name: "doubleCheckDialog",
  321. data() {
  322. return {
  323. isVisibility: false,
  324. time: "",
  325. isClose: false,
  326. check_time: 0,
  327. first_check_time: 0,
  328. doubleReview: {
  329. dialysis_item_check: "1",
  330. dialysis_parameter_check: "1",
  331. vascular_access_verification: "1",
  332. pipeline_connection_check: "1",
  333. dialysis_item_desc: "",
  334. dialysis_parameter_desc: "",
  335. vascular_access_desc: "",
  336. pipeline_connection_desc: "",
  337. collator: "",
  338. creater: this.$store.getters.xt_user.user.id,
  339. modifier: "",
  340. created_time: 0,
  341. updated_time: 0,
  342. check_time: 0,
  343. first_check_time: 0,
  344. employee_number: "",
  345. dialyzer_batch_number:"",
  346. needle_batch_number:""
  347. },
  348. dialysate_formulation_options: [],
  349. record_date: "",
  350. checkList: [],
  351. checkListOne: [],
  352. checkListTwo: [],
  353. checkListThree: [],
  354. diazes: "透析器/灌流器:",
  355. puncture_needle: "穿刺针:",
  356. dialysate_formulation: "透析液配方:",
  357. kalium: "钾:",
  358. calcium: "钙:",
  359. dialys_mode: "透析模式:",
  360. long_time: "透析时长:",
  361. target_ultrafiltration: "目标超滤量:",
  362. prescription_water:"处方脱水量:",
  363. anticoagulant: "抗凝剂:",
  364. anticoagulant_shouji: "首剂:",
  365. anticoagulant_weichi: "维持:",
  366. anticoagulant_zongliang: "总量:",
  367. displace_liqui_part: "置换液:",
  368. replacement_total: "置换量:",
  369. blood_flow_volume: "处方血流量:",
  370. dialysate_flow: "透析液流量:",
  371. blood_access_part_opera_id: "通路类型:",
  372. displace_liqui_value: "置换液总量:",
  373. job_number: "",
  374. org_id: 0,
  375. infoDialogVisible:false,
  376. selected_date:"",
  377. remark:""
  378. };
  379. },
  380. methods: {
  381. isName(name) {
  382. let filedList = this.$store.getters.xt_user.fileds;
  383. for (let i = 0; i < filedList.length; i++) {
  384. if (filedList[i].module == 8 && filedList[i].filed_name_cn == name) {
  385. return filedList[i].filed_name;
  386. }
  387. }
  388. },
  389. isCheckmust(name) {
  390. let filedList = this.$store.getters.xt_user.fileds;
  391. for (let i = 0; i < filedList.length; i++) {
  392. if (
  393. filedList[i].module == 8 &&
  394. filedList[i].filed_name_cn == name &&
  395. filedList[i].is_write == 1
  396. ) {
  397. // console.log(filedList[i].is_write,'false')
  398. return [
  399. {
  400. required: true,
  401. message: `请输入${name}`,
  402. trigger: ["blur", "change"],
  403. },
  404. ];
  405. }
  406. }
  407. },
  408. isShowFiled(name) {
  409. var filedList = this.$store.getters.xt_user.fileds;
  410. for (let i = 0; i < filedList.length; i++) {
  411. if (
  412. filedList[i].module == 8 &&
  413. filedList[i].filed_name_cn == name &&
  414. filedList[i].is_show == 1
  415. ) {
  416. return true;
  417. }
  418. }
  419. return false;
  420. },
  421. show() {
  422. if(this.admin_users!=null && this.admin_users.length >0){
  423. var arr = []
  424. for(let i=0;i<this.admin_users.length;i++){
  425. if(this.admin_users[i].status == 1){
  426. arr.push(this.admin_users[i])
  427. }
  428. }
  429. this.admin_users = []
  430. this.admin_users.push(...arr)
  431. }
  432. this.isVisibility = true;
  433. if (this.double_check.id > 0) {
  434. this.first_check_time = uParseTime(
  435. this.double_check.first_check_time,
  436. "{y}-{m}-{d} {h}:{i}"
  437. ).split(" ")[1];
  438. if (
  439. this.$store.getters.xt_user.user.id == this.double_check.creater ||
  440. this.double_check.modifier > 0
  441. ) {
  442. if (this.double_check.modifier > 0) {
  443. this.check_time = uParseTime(
  444. this.doubleReview.check_time,
  445. "{y}-{m}-{d} {h}:{i}"
  446. ).split(" ")[1];
  447. }
  448. } else if (
  449. this.$store.getters.xt_user.user.id != this.double_check.creater &&
  450. this.double_check.modifier == 0
  451. ) {
  452. this.check_time = uParseTime(new Date(), "{y}-{m}-{d} {h}:{i}").split(
  453. " "
  454. )[1];
  455. this.doubleReview.modifier = this.$store.getters.xt_user.user.id;
  456. }
  457. if (this.doubleReview.modifier == 0) {
  458. this.doubleReview.modifier = "";
  459. }
  460. } else {
  461. var nowDate = new Date();
  462. var nowHours = nowDate.getHours();
  463. var nowMinutes = nowDate.getMinutes();
  464. // if(this.$store.getters.xt_user.user.id != this.double_check.creater && this.double_check.modifier == 0){
  465. // this.check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
  466. // }
  467. this.first_check_time =
  468. (nowHours < 10 ? "0" + nowHours : nowHours) +
  469. ":" +
  470. (nowMinutes < 10 ? "0" + nowMinutes : nowMinutes);
  471. }
  472. },
  473. hide() {
  474. this.isVisibility = false;
  475. },
  476. handleCancle: function () {
  477. this.isVisibility = false;
  478. },
  479. handleComfirm(formName) {
  480. console.log(this.doubleReview, "提交参数");
  481. this.$refs[formName].validate((valid) => {
  482. if (valid) {
  483. if (this.patient.id <= 0) {
  484. this.$message.error("没有选择患者");
  485. return;
  486. }
  487. var first_check_time = this.record_date + " " + this.first_check_time;
  488. var check_time = this.record_date + " " + this.check_time;
  489. var first_time = new Date(first_check_time).getTime();
  490. var second_time = new Date(check_time).getTime();
  491. if (first_time >= second_time) {
  492. this.$message.error("第一次核对时间不能大于或者等于第二次核对时间");
  493. return;
  494. }
  495. if (this.doubleReview.creater == this.doubleReview.modifier) {
  496. this.$message.error("第一次核对人不能与第二次核对人相同");
  497. return;
  498. }
  499. let ParamsQuery = this.doubleReview;
  500. ParamsQuery["patient"] = this.patient.id;
  501. ParamsQuery["record_date"] = this.record_date;
  502. if (this.check_time) {
  503. ParamsQuery["check_time"] =
  504. this.record_date + " " + this.check_time;
  505. }
  506. if (this.first_check_time) {
  507. ParamsQuery["first_check_time"] =
  508. this.record_date + " " + this.first_check_time;
  509. }
  510. ParamsQuery["creater"] = this.doubleReview.creater;
  511. ParamsQuery["modifier"] = this.doubleReview.modifier;
  512. ParamsQuery['employee_number'] = this.doubleReview.employee_number
  513. ParamsQuery['dialyzer_batch_number'] = this.doubleReview.dialyzer_batch_number
  514. ParamsQuery['needle_batch_number'] = this.doubleReview.needle_batch_number
  515. console.log(ParamsQuery, "提交参数");
  516. postDoubleCheck(ParamsQuery).then((response) => {
  517. if (response.data.state == 0) {
  518. if(response.data.code == 600000008){
  519. this.infoDialogVisible = true
  520. }
  521. this.$message.error(response.data.msg);
  522. return false;
  523. } else {
  524. this.$notify({
  525. title: "成功",
  526. message: "提交成功",
  527. type: "success",
  528. duration: 2000,
  529. });
  530. this.doubleReview.creater =
  531. response.data.data.doubleCheck.creater;
  532. this.doubleReview.check_time =
  533. response.data.data.doubleCheck.check_time;
  534. this.doubleReview.first_check_time =
  535. response.data.data.doubleCheck.first_check_time;
  536. this.doubleReview.modifier =
  537. response.data.data.doubleCheck.modifier;
  538. this.first_check_time = uParseTime(
  539. this.doubleReview.first_check_time,
  540. "{y}-{m}-{d} {h}:{i}"
  541. ).split(" ")[1];
  542. let doublecheck_resp = response.data.data.doubleCheck;
  543. var doubleCheck = this.double_check;
  544. for (var index in doublecheck_resp) {
  545. this.$set(doubleCheck, index, doublecheck_resp[index]);
  546. }
  547. this.hide();
  548. }
  549. });
  550. } else {
  551. console.log("error submit!!");
  552. return false;
  553. }
  554. });
  555. },
  556. getFirstCheckDesc: function () {
  557. if (this.double_check.creater > 0) {
  558. if (
  559. this.doubleReview.first_check_time > 0 &&
  560. this.doubleReview.check_time > 0
  561. ) {
  562. if (
  563. this.doubleReview.first_check_time < this.doubleReview.check_time
  564. ) {
  565. let time = uParseTime(
  566. this.doubleReview.first_check_time,
  567. "{y}-{m}-{d} {h}:{i}:{s}"
  568. );
  569. if (this.doubleReview.creater <= 0) {
  570. return "";
  571. }
  572. var desc = "";
  573. if (
  574. this.admin_users == null ||
  575. typeof this.admin_users.length == "undefined"
  576. ) {
  577. return "";
  578. }
  579. var leng = this.admin_users.length;
  580. if (leng == 0) {
  581. return "";
  582. }
  583. for (let index = 0; index < leng; index++) {
  584. if (this.admin_users[index].id == this.doubleReview.creater) {
  585. let name = this.admin_users[index].name;
  586. desc = "第一核对人员:" + name + " 第一核对时间:" + time;
  587. break;
  588. }
  589. }
  590. return desc;
  591. } else {
  592. let time = uParseTime(
  593. this.doubleReview.check_time,
  594. "{y}-{m}-{d} {h}:{i}:{s}"
  595. );
  596. if (this.doubleReview.modifier <= 0) {
  597. return "";
  598. }
  599. var desc = "";
  600. if (
  601. this.admin_users == null ||
  602. typeof this.admin_users.length == "undefined"
  603. ) {
  604. return "";
  605. }
  606. var leng = this.admin_users.length;
  607. if (leng == 0) {
  608. return "";
  609. }
  610. for (let index = 0; index < leng; index++) {
  611. if (this.admin_users[index].id == this.doubleReview.modifier) {
  612. let name = this.admin_users[index].name;
  613. desc = "第一核对人员:" + name + " 第一核对时间:" + time;
  614. break;
  615. }
  616. }
  617. return desc;
  618. }
  619. } else {
  620. let time = uParseTime(
  621. this.doubleReview.first_check_time,
  622. "{y}-{m}-{d} {h}:{i}:{s}"
  623. );
  624. if (this.doubleReview.creater <= 0) {
  625. return "";
  626. }
  627. var desc = "";
  628. if (
  629. this.admin_users == null ||
  630. typeof this.admin_users.length == "undefined"
  631. ) {
  632. return "";
  633. }
  634. var leng = this.admin_users.length;
  635. if (leng == 0) {
  636. return "";
  637. }
  638. for (let index = 0; index < leng; index++) {
  639. if (this.admin_users[index].id == this.doubleReview.creater) {
  640. let name = this.admin_users[index].name;
  641. desc = "第一核对人员:" + name + " 第一核对时间:" + time;
  642. break;
  643. }
  644. }
  645. return desc;
  646. }
  647. }
  648. },
  649. getScondCheckDesc: function () {
  650. if (this.double_check.modifier > 0) {
  651. if (
  652. this.doubleReview.first_check_time > 0 &&
  653. this.doubleReview.check_time > 0
  654. ) {
  655. if (
  656. this.doubleReview.first_check_time < this.doubleReview.check_time
  657. ) {
  658. let time = uParseTime(
  659. this.doubleReview.check_time,
  660. "{y}-{m}-{d} {h}:{i}:{s}"
  661. );
  662. if (this.doubleReview.modifier <= 0) {
  663. return "";
  664. }
  665. var desc = "";
  666. if (
  667. this.admin_users == null ||
  668. typeof this.admin_users.length == "undefined"
  669. ) {
  670. return desc;
  671. }
  672. var leng = this.admin_users.length;
  673. if (leng == 0) {
  674. return desc;
  675. }
  676. for (let index = 0; index < leng; index++) {
  677. if (this.admin_users[index].id == this.doubleReview.modifier) {
  678. let name = this.admin_users[index].name;
  679. desc = "第二核对人员:" + name + " 第二核对时间:" + time;
  680. break;
  681. }
  682. }
  683. return desc;
  684. } else {
  685. let time = uParseTime(
  686. this.doubleReview.first_check_time,
  687. "{y}-{m}-{d} {h}:{i}:{s}"
  688. );
  689. if (this.doubleReview.creater <= 0) {
  690. return "";
  691. }
  692. var desc = "";
  693. if (
  694. this.admin_users == null ||
  695. typeof this.admin_users.length == "undefined"
  696. ) {
  697. return desc;
  698. }
  699. var leng = this.admin_users.length;
  700. if (leng == 0) {
  701. return desc;
  702. }
  703. for (let index = 0; index < leng; index++) {
  704. if (this.admin_users[index].id == this.doubleReview.creater) {
  705. let name = this.admin_users[index].name;
  706. desc = "第二核对人员:" + name + " 第二核对时间:" + time;
  707. break;
  708. }
  709. }
  710. return desc;
  711. }
  712. } else {
  713. let time = uParseTime(
  714. this.doubleReview.check_time,
  715. "{y}-{m}-{d} {h}:{i}:{s}"
  716. );
  717. if (this.doubleReview.modifier <= 0) {
  718. return "";
  719. }
  720. var desc = "";
  721. if (
  722. this.admin_users == null ||
  723. typeof this.admin_users.length == "undefined"
  724. ) {
  725. return desc;
  726. }
  727. var leng = this.admin_users.length;
  728. if (leng == 0) {
  729. return desc;
  730. }
  731. for (let index = 0; index < leng; index++) {
  732. if (this.admin_users[index].id == this.doubleReview.modifier) {
  733. let name = this.admin_users[index].name;
  734. desc = "第二核对人员:" + name + " 第二核对时间:" + time;
  735. break;
  736. }
  737. }
  738. return desc;
  739. }
  740. }
  741. },
  742. changeBox(val) {
  743. var arr = [];
  744. var str = val.join(";");
  745. if (str.indexOf("透析器/灌流器") != -1 && this.prescription != null) {
  746. arr.push(
  747. "透析器/灌流器:" +
  748. (this.prescription.dialyzer_perfusion_apparatus
  749. ? this.prescription.dialyzer_perfusion_apparatus
  750. : "")
  751. );
  752. }
  753. if (str.indexOf("透析器/灌流器") != -1 && this.prescription == null) {
  754. arr.push("透析器/灌流器:");
  755. }
  756. if (str.indexOf("穿刺针") != -1 && this.predialysis_evaluation.id != 0) {
  757. arr.push("穿刺针:" + this.predialysis_evaluation.puncture_needle);
  758. }
  759. if (str.indexOf("穿刺针") != -1 && this.predialysis_evaluation.id == 0) {
  760. arr.push("穿刺针:");
  761. }
  762. if (str.indexOf("透析液配方") != -1 && this.prescription != null) {
  763. arr.push(
  764. "透析液配方:" +
  765. this.GetDialysateFormulationById(
  766. this.prescription.dialysate_formulation
  767. )
  768. );
  769. }
  770. if (str.indexOf("透析液配方") != -1 && this.prescription == null) {
  771. arr.push("透析液配方:");
  772. }
  773. if (str.indexOf("钾") != -1 && this.prescription != null) {
  774. arr.push(
  775. "钾:" + (this.prescription.kalium ? this.prescription.kalium : "")
  776. );
  777. }
  778. if (str.indexOf("钾") != -1 && this.prescription == null) {
  779. arr.push("钾:");
  780. }
  781. if (str.indexOf("钙") != -1 && this.prescription != null) {
  782. arr.push(
  783. "钙:" + (this.prescription.calcium ? this.prescription.calcium : "")
  784. );
  785. }
  786. if (str.indexOf("钙") != -1 && this.prescription == null) {
  787. arr.push("钙:");
  788. }
  789. this.doubleReview.dialysis_item_desc = arr.join(";");
  790. if (val.length > 0) {
  791. this.doubleReview.dialysis_item_check = 2;
  792. } else {
  793. this.doubleReview.dialysis_item_check = "1";
  794. }
  795. },
  796. changeBoxOne(val) {
  797. var arr = [];
  798. var str = val.join(";");
  799. if (str.indexOf("透析模式") != -1 && this.prescription != null) {
  800. arr.push(
  801. "透析模式:" +
  802. (this.getMode(this.prescription.mode_id)
  803. ? this.getMode(this.prescription.mode_id)
  804. : "")
  805. );
  806. }
  807. if (str.indexOf("透析模式") != -1 && this.prescription == null) {
  808. arr.push("透析模式:");
  809. }
  810. if (str.indexOf("透析时长") != -1 && this.prescription != null) {
  811. arr.push(
  812. "透析时长:" +
  813. (this.prescription.dialysis_duration_hour
  814. ? this.prescription.dialysis_duration_hour
  815. : "") +
  816. "小时" +
  817. this.prescription.dialysis_duration_minute +
  818. "分"
  819. );
  820. }
  821. if (str.indexOf("透析时长") != -1 && this.prescription == null) {
  822. arr.push("透析时长:");
  823. }
  824. if (str.indexOf("目标超滤量") != -1 && this.prescription != null) {
  825. arr.push(
  826. "目标超滤量:" +
  827. (this.prescription.target_ultrafiltration
  828. ? this.prescription.target_ultrafiltration
  829. : "")
  830. );
  831. }
  832. if (str.indexOf("目标超滤量") != -1 && this.prescription == null) {
  833. arr.push("目标超滤量:");
  834. }
  835. if (str.indexOf("处方脱水量") != -1 && this.prescription == null) {
  836. arr.push("处方脱水量:");
  837. }
  838. if (str.indexOf("处方脱水量") != -1 && this.prescription != null) {
  839. arr.push(
  840. "处方脱水量:" +
  841. (this.prescription.prescription_water
  842. ? this.prescription.prescription_water
  843. : "")
  844. );
  845. }
  846. if (str.indexOf("处方脱水量") != -1 && this.prescription == null) {
  847. arr.push("处方脱水量:");
  848. }
  849. if (str.indexOf("抗凝剂") != -1 && this.prescription != null) {
  850. arr.push(
  851. "抗凝剂:" +
  852. (this.prescription.anticoagulant
  853. ? this.prescription.anticoagulant
  854. : "")
  855. );
  856. }
  857. if (str.indexOf("抗凝剂") != -1 && this.prescription == null) {
  858. arr.push("抗凝剂:");
  859. }
  860. if (str.indexOf("首剂") != -1 && this.prescription != null) {
  861. arr.push(
  862. "首剂:" +
  863. (this.prescription.anticoagulant_shouji
  864. ? this.prescription.anticoagulant_shouji
  865. : "")
  866. );
  867. }
  868. if (str.indexOf("首剂") != -1 && this.prescription == null) {
  869. arr.push("首剂:");
  870. }
  871. if (str.indexOf("维持") != -1 && this.prescription != null) {
  872. arr.push(
  873. "维持:" +
  874. (this.prescription.anticoagulant_weichi
  875. ? this.prescription.anticoagulant_weichi
  876. : "")
  877. );
  878. }
  879. if (str.indexOf("维持") != -1 && this.prescription == null) {
  880. arr.push("维持:");
  881. }
  882. if (str.indexOf("总量") != -1 && this.prescription != null) {
  883. arr.push(
  884. "总量:" +
  885. (this.prescription.anticoagulant_zongliang
  886. ? this.prescription.anticoagulant_zongliang
  887. : "")
  888. );
  889. }
  890. if (str.indexOf("总量") != -1 && this.prescription == null) {
  891. arr.push("总量:");
  892. }
  893. if (str.indexOf("置换液") != -1 && this.prescription != null) {
  894. arr.push(
  895. "置换液:" +
  896. (this.getDisplace(this.prescription.displace_liqui_part)
  897. ? this.getDisplace(this.prescription.displace_liqui_part)
  898. : "")
  899. );
  900. }
  901. if (str.indexOf("置换液") != -1 && this.prescription == null) {
  902. arr.push("置换液:");
  903. }
  904. if (str.indexOf("置换量") != -1 && this.prescription != null) {
  905. arr.push(
  906. "置换量:" +
  907. (this.prescription.replacement_total
  908. ? this.prescription.replacement_total
  909. : "")
  910. );
  911. }
  912. if (str.indexOf("置换量") != -1 && this.prescription == null) {
  913. arr.push("置换量:");
  914. }
  915. if (str.indexOf("处方血流量") != -1 && this.prescription != null) {
  916. arr.push(
  917. "处方血流量:" +
  918. (this.prescription.blood_flow_volume
  919. ? this.prescription.blood_flow_volume
  920. : "")
  921. );
  922. }
  923. if (str.indexOf("处方血流量") != -1 && this.prescription == null) {
  924. arr.push("处方血流量:");
  925. }
  926. if (str.indexOf("透析液流量") != -1 && this.prescription != null) {
  927. arr.push(
  928. "透析液流量:" +
  929. (this.prescription.dialysate_flow
  930. ? this.prescription.dialysate_flow
  931. : "")
  932. );
  933. }
  934. if (str.indexOf("透析液流量") != -1 && this.prescription == null) {
  935. arr.push("透析液流量:");
  936. }
  937. if (str.indexOf("置换液总量") != -1 && this.prescription != null) {
  938. arr.push(
  939. "置换液总量:" +
  940. (this.prescription.displace_liqui_value
  941. ? this.prescription.displace_liqui_value
  942. : "")
  943. );
  944. }
  945. if (str.indexOf("置换液总量") != -1 && this.prescription == null) {
  946. arr.push("置换液总量:");
  947. }
  948. this.doubleReview.dialysis_parameter_desc = arr.join(";");
  949. if (val.length > 0) {
  950. this.doubleReview.dialysis_parameter_check = 2;
  951. } else {
  952. this.doubleReview.dialysis_parameter_check = "1";
  953. }
  954. },
  955. changeBoxTwo(val) {
  956. var arr = [];
  957. var str = val.join(";");
  958. if (
  959. str.indexOf("通路类型") != -1 &&
  960. this.predialysis_evaluation.id != 0
  961. ) {
  962. arr.push(
  963. "通路类型:" +
  964. this.getBloodAccess(
  965. this.predialysis_evaluation.blood_access_part_opera_id
  966. )
  967. );
  968. }
  969. if (
  970. str.indexOf("通路类型") != -1 &&
  971. this.predialysis_evaluation.id == 0
  972. ) {
  973. arr.push("通路类型:");
  974. }
  975. if (str.indexOf("动静脉接错") != -1) {
  976. arr.push("动静脉接错:");
  977. }
  978. if (str.indexOf("渗血") != -1) {
  979. arr.push("渗血:");
  980. }
  981. if (str.indexOf("压迫") != -1) {
  982. arr.push("压迫:");
  983. }
  984. if (str.indexOf("折叠") != -1) {
  985. arr.push("折叠:");
  986. }
  987. if (str.indexOf("滑脱") != -1) {
  988. arr.push("滑脱:");
  989. }
  990. this.doubleReview.vascular_access_desc = arr.join(";");
  991. if (val.length > 0) {
  992. this.doubleReview.vascular_access_verification = 2;
  993. } else {
  994. this.doubleReview.vascular_access_verification = "1";
  995. }
  996. },
  997. changeBoxThree(val) {
  998. var arr = [];
  999. var str = val.join(";");
  1000. if (str.indexOf("泵前补液测管未夹") != -1) {
  1001. arr.push("泵前补液测管未夹:");
  1002. }
  1003. if (str.indexOf("肝素管夹未开启") != -1) {
  1004. arr.push("肝素管夹未开启:");
  1005. }
  1006. if (str.indexOf("透析器连接错误") != -1) {
  1007. arr.push("透析器连接错误:");
  1008. }
  1009. if (str.indexOf("动静脉壶页面不标准") != -1) {
  1010. arr.push("动静脉壶页面不标准:");
  1011. }
  1012. if (str.indexOf("静脉管路未卡入保护夹") != -1) {
  1013. arr.push("静脉管路未卡入保护夹:");
  1014. }
  1015. if (str.indexOf("压力传感器夹未打开") != -1) {
  1016. arr.push("压力传感器夹未打开");
  1017. }
  1018. if (str.indexOf("接口连接松动") != -1) {
  1019. arr.push("接口连接松动");
  1020. }
  1021. if (str.indexOf("管路打折") != -1) {
  1022. arr.push("管路打折");
  1023. }
  1024. this.doubleReview.pipeline_connection_desc = arr.join(";");
  1025. if (val.length > 0) {
  1026. this.doubleReview.pipeline_connection_check = 2;
  1027. } else {
  1028. this.doubleReview.pipeline_connection_check = "1";
  1029. }
  1030. },
  1031. changeRadio(val) {
  1032. if (val == 1) {
  1033. this.doubleReview.dialysis_item_desc = "";
  1034. this.checkList = [];
  1035. }
  1036. },
  1037. changeRadioTwo(val) {
  1038. if (val == 1) {
  1039. this.doubleReview.dialysis_parameter_desc = "";
  1040. this.checkListOne = [];
  1041. }
  1042. },
  1043. changeRadioThree(val) {
  1044. if (val == 1) {
  1045. this.doubleReview.vascular_access_desc = "";
  1046. this.checkListTwo = [];
  1047. }
  1048. },
  1049. changeRadioFour(val) {
  1050. if (val == 1) {
  1051. this.doubleReview.pipeline_connection_desc = "";
  1052. this.checkListThree = [];
  1053. }
  1054. },
  1055. GetDialysateFormulationById(val) {
  1056. this.dialysate_formulation_options = getDataConfig(
  1057. "hemodialysis",
  1058. "dialysate_formulation"
  1059. );
  1060. let name = "";
  1061. let dfl = this.dialysate_formulation_options.length;
  1062. for (let index = 0; index < dfl; index++) {
  1063. if (this.dialysate_formulation_options[index].id == val) {
  1064. name = this.dialysate_formulation_options[index].name;
  1065. break;
  1066. }
  1067. }
  1068. return name;
  1069. },
  1070. getMode(id) {
  1071. var name = "";
  1072. if (id == 1) {
  1073. name = "HD";
  1074. }
  1075. if (id == 2) {
  1076. name = "HDF";
  1077. }
  1078. if (id == 3) {
  1079. name = "HD+HP";
  1080. }
  1081. if (id == 4) {
  1082. name = "HP";
  1083. }
  1084. if (id == 5) {
  1085. name = "HF";
  1086. }
  1087. if (id == 6) {
  1088. name = "SCUF";
  1089. }
  1090. if (id == 7) {
  1091. name = "IUF";
  1092. }
  1093. if (id == 8) {
  1094. name = "HFHD";
  1095. }
  1096. if (id == 9) {
  1097. name = "HFHD+HP";
  1098. }
  1099. if (id == 10) {
  1100. name = "PHF";
  1101. }
  1102. if (id == 11) {
  1103. name = "HFR";
  1104. }
  1105. if (id == 12) {
  1106. name = "HDF+HP";
  1107. }
  1108. if (id == 13) {
  1109. name = "CRRT";
  1110. }
  1111. if (id == 14) {
  1112. name = "腹水回输";
  1113. }
  1114. if (id == 19) {
  1115. name = "IUF+HD";
  1116. }
  1117. if (id == 20) {
  1118. name = "UF";
  1119. }
  1120. if (id == 21) {
  1121. name = "HD+";
  1122. }
  1123. if (id == 22) {
  1124. name = "血浆胆红素吸附+HDF";
  1125. }
  1126. if (id == 23) {
  1127. name = "血浆胆红素吸附";
  1128. }
  1129. if (id == 24) {
  1130. name = "I-HDF";
  1131. }
  1132. if (id == 25) {
  1133. name = "HD高通";
  1134. }
  1135. if (id == 26) {
  1136. name = "CVVH";
  1137. }
  1138. if (id == 27) {
  1139. name = "CVVHD";
  1140. }
  1141. if (id == 28) {
  1142. name = "CVVHDF";
  1143. }
  1144. if (id == 29) {
  1145. name = "PE";
  1146. }
  1147. return name;
  1148. },
  1149. getAnticoagulant(id) {
  1150. var name = "";
  1151. if (id == 1) {
  1152. name = "无肝素";
  1153. }
  1154. if (id == 2) {
  1155. name = "普通肝素";
  1156. }
  1157. if (id == 3) {
  1158. name = "低分子肝素";
  1159. }
  1160. if (id == 4) {
  1161. name = "阿加曲班";
  1162. }
  1163. if (id == 5) {
  1164. name = "枸橼酸钠";
  1165. }
  1166. if (id == 6) {
  1167. name = "低分子肝素钙";
  1168. }
  1169. if (id == 7) {
  1170. name = "低分子肝素钠";
  1171. }
  1172. return name;
  1173. },
  1174. getBloodAccess(id) {
  1175. let vascular_access_desc = getDataConfig(
  1176. "hemodialysis",
  1177. "vascular_access_desc"
  1178. );
  1179. var name = "";
  1180. for (let i = 0; i < vascular_access_desc.length; i++) {
  1181. if (vascular_access_desc[i].id == id) {
  1182. name = vascular_access_desc[i].name;
  1183. }
  1184. }
  1185. return name;
  1186. },
  1187. getDisplace(id) {
  1188. var name = "";
  1189. var arr = this.$store.getters.displace_liqui;
  1190. for (let i = 0; i < arr.length; i++) {
  1191. if (id == arr[i].id) {
  1192. name = arr[i].name;
  1193. }
  1194. }
  1195. return name;
  1196. },
  1197. changeRole(admin_user_id) {
  1198. var params = {
  1199. admin_user_id: admin_user_id,
  1200. };
  1201. changeRole(params).then((response) => {
  1202. if (response.data.state == 1) {
  1203. var role = response.data.data.adminRole;
  1204. this.job_number = role.job_number;
  1205. }
  1206. });
  1207. },
  1208. saveInformation(){
  1209. var params = {
  1210. selected_date:this.selected_date,
  1211. patient_id:this.$route.query.patient_id,
  1212. record_date:this.$route.query.date,
  1213. module:5,
  1214. remark:this.remark,
  1215. }
  1216. saveInformation(params).then(response=>{
  1217. if(response.data.state == 1){
  1218. var information = response.data.data.information
  1219. this.$message.success("提交成功!")
  1220. this.infoDialogVisible = false
  1221. }
  1222. })
  1223. }
  1224. },
  1225. props: {
  1226. admin_users: {
  1227. //系统用户列表
  1228. type: Array,
  1229. default: () => {
  1230. return [];
  1231. },
  1232. },
  1233. double_check: {
  1234. // 双人核对
  1235. type: Object,
  1236. default: () => {
  1237. return { id: 0 };
  1238. },
  1239. },
  1240. patient: {
  1241. // 患者信息
  1242. type: Object,
  1243. default: () => {
  1244. return { id: 0 };
  1245. },
  1246. },
  1247. predialysis_evaluation: {
  1248. // 透前评估
  1249. type: Object,
  1250. default: () => {
  1251. return { id: 0 };
  1252. },
  1253. },
  1254. prescription: {
  1255. // 透析处方
  1256. type: Object,
  1257. default: () => {
  1258. return { id: 0 };
  1259. },
  1260. },
  1261. },
  1262. watch: {
  1263. isVisibility(val) {
  1264. console.log("presciption23233223322323",this.prescription)
  1265. if(this.prescription != null && this.prescription.id == 0){
  1266. if(this.org_id == 10440 || this.org_id == 0){
  1267. this.diazes = "透析器/灌流器:" + " " + "批号:";
  1268. }
  1269. }
  1270. if (this.prescription != null && this.prescription.id != 0) {
  1271. if (this.prescription.dialyzer_perfusion_apparatus != "" ||this.prescription.dialysis_dialyszers != "" || this.prescription.dialysis_irrigation != "") {
  1272. if(this.org_id == 10440 || this.org_id == 0){
  1273. this.diazes = "透析器/灌流器:";
  1274. this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus;
  1275. this.diazes = this.diazes + this.prescription.dialysis_dialyszers + this.prescription.dialysis_irrigation + " " +"批号:"+ " ";
  1276. console.log("hhahahahhahahahawowoowowowowo--------",this.diazes)
  1277. }
  1278. if(this.org_id!=0 && this.org_id!=10440){
  1279. this.diazes = "透析器/灌流器:";
  1280. this.diazes =
  1281. this.diazes + this.prescription.dialyzer_perfusion_apparatus;
  1282. this.diazes =
  1283. this.diazes +
  1284. this.prescription.dialysis_dialyszers +
  1285. this.prescription.dialysis_irrigation
  1286. }
  1287. } else {
  1288. if(this.org_id == 10440 || this.org_id == 0){
  1289. this.diazes = "";
  1290. this.diazes = this.diazes + " " +"批号:"+ " ";
  1291. }
  1292. if(this.org_id!=0 && this.org_id!=10440){
  1293. this.diazes = "";
  1294. this.diazes = this.diazes;
  1295. }
  1296. }
  1297. if (this.prescription.dialysate_formulation != "") {
  1298. this.dialysate_formulation = "透析液配方:";
  1299. this.dialysate_formulation =
  1300. this.dialysate_formulation +
  1301. this.GetDialysateFormulationById(
  1302. this.prescription.dialysate_formulation
  1303. );
  1304. } else {
  1305. this.dialysate_formulation = this.dialysate_formulation;
  1306. }
  1307. if (this.prescription.kalium != "") {
  1308. this.kalium = "钾:";
  1309. this.kalium =
  1310. this.kalium +
  1311. (this.prescription.kalium ? this.prescription.kalium : "");
  1312. } else {
  1313. this.kalium = this.kalium;
  1314. }
  1315. if (this.prescription.calcium != "") {
  1316. this.calcium = "钙:";
  1317. this.calcium =
  1318. this.calcium +
  1319. (this.prescription.calcium ? this.prescription.calcium : "");
  1320. } else {
  1321. this.calcium = this.calcium;
  1322. }
  1323. if (this.prescription.mode_id > 0) {
  1324. this.dialys_mode = "透析模式:";
  1325. this.dialys_mode =
  1326. this.dialys_mode + this.getMode(this.prescription.mode_id);
  1327. } else {
  1328. this.dialys_mode = this.dialys_mode;
  1329. }
  1330. if (
  1331. this.prescription.dialysis_duration_hour != "" ||
  1332. this.prescription.dialysis_duration_minute != ""
  1333. ) {
  1334. this.long_time = "透析时长:";
  1335. this.long_time =
  1336. this.long_time +
  1337. (this.prescription.dialysis_duration_hour
  1338. ? this.prescription.dialysis_duration_hour
  1339. : "") +
  1340. "小时" +
  1341. (this.prescription.dialysis_duration_minute
  1342. ? this.prescription.dialysis_duration_minute
  1343. : "") +
  1344. "分";
  1345. } else {
  1346. this.long_time = this.long_time;
  1347. }
  1348. if (this.prescription.target_ultrafiltration != "") {
  1349. this.target_ultrafiltration = "目标超滤量:";
  1350. this.target_ultrafiltration =
  1351. this.target_ultrafiltration +
  1352. (this.prescription.target_ultrafiltration
  1353. ? this.prescription.target_ultrafiltration
  1354. : "");
  1355. } else {
  1356. this.target_ultrafiltration = this.target_ultrafiltration;
  1357. }
  1358. if (this.prescription.prescription_water != "") {
  1359. this.prescription_water = "处方脱水量:";
  1360. this.prescription_water =
  1361. this.prescription_water +
  1362. (this.prescription.prescription_water
  1363. ? this.prescription.prescription_water
  1364. : "");
  1365. } else {
  1366. this.prescription_water = this.prescription_water;
  1367. }
  1368. if (this.prescription.anticoagulant != "") {
  1369. this.anticoagulant = "抗凝剂:";
  1370. this.anticoagulant =
  1371. this.anticoagulant +
  1372. (this.getAnticoagulant(this.prescription.anticoagulant)
  1373. ? this.getAnticoagulant(this.prescription.anticoagulant)
  1374. : "");
  1375. } else {
  1376. this.anticoagulant = this.anticoagulant;
  1377. }
  1378. if (this.prescription.anticoagulant_shouji != "") {
  1379. this.anticoagulant_shouji = "首剂:";
  1380. this.anticoagulant_shouji =
  1381. this.anticoagulant_shouji +
  1382. (this.prescription.anticoagulant_shouji
  1383. ? this.prescription.anticoagulant_shouji
  1384. : "");
  1385. } else {
  1386. this.anticoagulant_shouji = this.anticoagulant_shouji;
  1387. }
  1388. if (this.prescription.anticoagulant_weichi != "") {
  1389. this.anticoagulant_weichi = "维持:";
  1390. this.anticoagulant_weichi =
  1391. this.anticoagulant_weichi +
  1392. (this.prescription.anticoagulant_weichi
  1393. ? this.prescription.anticoagulant_weichi
  1394. : "");
  1395. } else {
  1396. this.anticoagulant_weichi = this.anticoagulant_weichi;
  1397. }
  1398. if (this.prescription.anticoagulant_zongliang != "") {
  1399. this.anticoagulant_zongliang = "总量:";
  1400. this.anticoagulant_zongliang =
  1401. this.anticoagulant_zongliang +
  1402. (this.prescription.anticoagulant_zongliang
  1403. ? this.prescription.anticoagulant_zongliang
  1404. : "");
  1405. } else {
  1406. this.anticoagulant_zongliang = this.anticoagulant_zongliang;
  1407. }
  1408. if (this.prescription.displace_liqui_part != "") {
  1409. this.displace_liqui_part = "置换液:";
  1410. this.displace_liqui_part =
  1411. this.displace_liqui_part +
  1412. (this.getDisplace(this.prescription.displace_liqui_part)
  1413. ? this.getDisplace(this.prescription.displace_liqui_part)
  1414. : "");
  1415. } else {
  1416. this.displace_liqui_part = this.getDisplace(this.displace_liqui_part);
  1417. }
  1418. if (this.prescription.replacement_total != "") {
  1419. this.replacement_total = "置换量:";
  1420. this.replacement_total =
  1421. this.replacement_total +
  1422. (this.prescription.replacement_total
  1423. ? this.prescription.replacement_total
  1424. : "");
  1425. } else {
  1426. this.replacement_total = this.replacement_total;
  1427. }
  1428. if (this.prescription.dialysate_flow != "") {
  1429. this.dialysate_flow = "透析液流量:";
  1430. this.dialysate_flow =
  1431. this.dialysate_flow +
  1432. (this.prescription.dialysate_flow
  1433. ? this.prescription.dialysate_flow
  1434. : "");
  1435. } else {
  1436. this.dialysate_flow = this.dialysate_flow;
  1437. }
  1438. if (this.prescription.displace_liqui_value != "") {
  1439. this.displace_liqui_value = "置换液总量:";
  1440. this.displace_liqui_value =
  1441. this.displace_liqui_value + this.prescription.displace_liqui_value;
  1442. }
  1443. }
  1444. if (this.predialysis_evaluation != null &&this.predialysis_evaluation.id != 0) {
  1445. if(this.org_id == 0 || this.org_id == 10440){
  1446. this.puncture_needle = "穿刺针:";
  1447. this.puncture_needle =this.puncture_needle + this.predialysis_evaluation.puncture_needle+ " " + "批号:" + " ";
  1448. this.blood_access_part_opera_id =
  1449. this.blood_access_part_opera_id +
  1450. this.getBloodAccess(
  1451. this.predialysis_evaluation.blood_access_part_opera_id
  1452. );
  1453. }
  1454. if(this.org_id !=0 && this.org_id!=10440){
  1455. this.puncture_needle = "穿刺针:";
  1456. this.puncture_needle =
  1457. this.puncture_needle + this.predialysis_evaluation.puncture_needle
  1458. this.blood_access_part_opera_id =
  1459. this.blood_access_part_opera_id +
  1460. this.getBloodAccess(
  1461. this.predialysis_evaluation.blood_access_part_opera_id
  1462. );
  1463. }
  1464. }
  1465. if(this.predialysis_evaluation != null &&this.predialysis_evaluation.id == 0){
  1466. this.puncture_needle = "穿刺针:" + " "+ "批号:"
  1467. }
  1468. if (this.double_check != null && this.double_check.id != 0) {
  1469. if (
  1470. this.double_check.dialysis_item_desc.indexOf("透析器/灌流器") != -1
  1471. ) {
  1472. this.checkList.push(
  1473. "透析器/灌流器:" + this.prescription.dialyzer_perfusion_apparatus
  1474. );
  1475. }
  1476. if (this.double_check.dialysis_item_desc.indexOf("穿刺针") != -1) {
  1477. this.checkList.push(
  1478. "穿刺针:" +
  1479. (this.predialysis_evaluation.puncture_needle
  1480. ? this.predialysis_evaluation.puncture_needle
  1481. : "")
  1482. );
  1483. }
  1484. if (this.double_check.dialysis_item_desc.indexOf("透析液配方:") != -1) {
  1485. this.checkList.push(
  1486. "透析液配方:" +
  1487. this.GetDialysateFormulationById(
  1488. this.prescription.dialysate_formulation
  1489. )
  1490. );
  1491. }
  1492. if (this.double_check.dialysis_item_desc.indexOf("钾:") != -1) {
  1493. this.checkList.push(
  1494. "钾:" + (this.prescription.kalium ? this.prescription.kalium : "")
  1495. );
  1496. }
  1497. if (this.double_check.dialysis_item_desc.indexOf("钙:") != -1) {
  1498. this.checkList.push(
  1499. "钙:" + (this.prescription.calcium ? this.prescription.calcium : "")
  1500. );
  1501. }
  1502. if (
  1503. this.double_check.dialysis_parameter_desc.indexOf("透析模式:") != -1
  1504. ) {
  1505. this.checkListOne.push(
  1506. "透析模式:" + this.getMode(this.prescription.mode_id)
  1507. );
  1508. }
  1509. if (
  1510. this.double_check.dialysis_parameter_desc.indexOf("透析时长") != -1
  1511. ) {
  1512. this.checkListOne.push(
  1513. "透析时长:" +
  1514. (this.prescription.dialysis_duration_hour
  1515. ? this.prescription.dialysis_duration_hour
  1516. : "")
  1517. );
  1518. }
  1519. if (
  1520. this.double_check.dialysis_parameter_desc.indexOf("目标超滤量") != -1
  1521. ) {
  1522. this.checkListOne.push(
  1523. "目标超滤量:" +
  1524. (this.prescription.target_ultrafiltration
  1525. ? this.prescription.target_ultrafiltration
  1526. : "")
  1527. );
  1528. }
  1529. if (
  1530. this.double_check.dialysis_parameter_desc.indexOf("处方脱水量") != -1
  1531. ) {
  1532. this.checkListOne.push(
  1533. "处方脱水量:" +
  1534. (this.prescription.prescription_water
  1535. ? this.prescription.prescription_water
  1536. : "")
  1537. );
  1538. }
  1539. if (this.double_check.dialysis_parameter_desc.indexOf("抗凝剂") != -1) {
  1540. this.checkListOne.push(
  1541. "抗凝剂:" +
  1542. this.getAnticoagulant(
  1543. this.prescription.anticoagulant
  1544. ? this.prescription.anticoagulant
  1545. : ""
  1546. )
  1547. );
  1548. }
  1549. if (this.double_check.dialysis_parameter_desc.indexOf("首剂") != -1) {
  1550. this.checkListOne.push(
  1551. "首剂:" +
  1552. (this.prescription.anticoagulant_shouji
  1553. ? this.prescription.anticoagulant_shouji
  1554. : "")
  1555. );
  1556. }
  1557. if (this.double_check.dialysis_parameter_desc.indexOf("维持") != -1) {
  1558. this.checkListOne.push(
  1559. "维持:" +
  1560. (this.prescription.anticoagulant_weichi
  1561. ? this.prescription.anticoagulant_weichi
  1562. : "")
  1563. );
  1564. }
  1565. if (this.double_check.dialysis_parameter_desc.indexOf("总量") != -1) {
  1566. this.checkListOne.push(
  1567. "总量:" +
  1568. (this.prescription.anticoagulant_zongliang
  1569. ? this.prescription.anticoagulant_zongliang
  1570. : "")
  1571. );
  1572. }
  1573. if (this.double_check.dialysis_parameter_desc.indexOf("置换液") != -1) {
  1574. this.checkListOne.push(
  1575. "置换液:" +
  1576. (this.getDisplace(this.prescription.displace_liqui_part)
  1577. ? this.getDisplace(this.prescription.displace_liqui_part)
  1578. : "")
  1579. );
  1580. }
  1581. if (this.double_check.dialysis_parameter_desc.indexOf("置换量") != -1) {
  1582. this.checkListOne.push(
  1583. "置换量:" +
  1584. (this.prescription.replacement_total
  1585. ? this.prescription.replacement_total
  1586. : "")
  1587. );
  1588. }
  1589. if (
  1590. this.double_check.dialysis_parameter_desc.indexOf("处方血流量") != -1
  1591. ) {
  1592. this.checkListOne.push(
  1593. "处方血流量:" +
  1594. (this.prescription.blood_flow_volume
  1595. ? this.prescription.blood_flow_volume
  1596. : "")
  1597. );
  1598. }
  1599. if (
  1600. this.double_check.dialysis_parameter_desc.indexOf("透析液流量") != -1
  1601. ) {
  1602. this.checkListOne.push(
  1603. "透析液流量:" +
  1604. (this.prescription.dialysate_flow
  1605. ? this.prescription.dialysate_flow
  1606. : "")
  1607. );
  1608. }
  1609. if (
  1610. this.double_check.dialysis_parameter_desc.indexOf("置换液总量") != -1
  1611. ) {
  1612. this.checkListOne.push(
  1613. "置换液总量:" +
  1614. (this.prescription.displace_liqui_value
  1615. ? this.prescription.displace_liqui_value
  1616. : "")
  1617. );
  1618. }
  1619. if (this.double_check.vascular_access_desc.indexOf("通路类型") != -1) {
  1620. this.checkListTwo.push(
  1621. "通路类型:" +
  1622. this.getBloodAccess(
  1623. this.predialysis_evaluation.blood_access_part_opera_id
  1624. )
  1625. );
  1626. }
  1627. if (
  1628. this.double_check.vascular_access_desc.indexOf("动静脉接错") != -1
  1629. ) {
  1630. this.checkListTwo.push("动静脉接错");
  1631. }
  1632. if (this.double_check.vascular_access_desc.indexOf("渗血") != -1) {
  1633. this.checkListTwo.push("渗血");
  1634. }
  1635. if (this.double_check.vascular_access_desc.indexOf("压迫") != -1) {
  1636. this.checkListTwo.push("压迫");
  1637. }
  1638. if (this.double_check.vascular_access_desc.indexOf("折叠") != -1) {
  1639. this.checkListTwo.push("折叠");
  1640. }
  1641. if (this.double_check.vascular_access_desc.indexOf("滑脱") != -1) {
  1642. this.checkListTwo.push("滑脱");
  1643. }
  1644. if (
  1645. this.double_check.pipeline_connection_desc.indexOf(
  1646. "泵前补液测管未夹"
  1647. ) != -1
  1648. ) {
  1649. this.checkListThree.push("泵前补液测管未夹");
  1650. }
  1651. if (
  1652. this.double_check.pipeline_connection_desc.indexOf(
  1653. "肝素管夹未开启"
  1654. ) != -1
  1655. ) {
  1656. this.checkListThree.push("肝素管夹未开启");
  1657. }
  1658. if (
  1659. this.double_check.pipeline_connection_desc.indexOf(
  1660. "透析器连接错误"
  1661. ) != -1
  1662. ) {
  1663. this.checkListThree.push("透析器连接错误");
  1664. }
  1665. if (
  1666. this.double_check.pipeline_connection_desc.indexOf(
  1667. "动静脉壶页面不标准"
  1668. ) != -1
  1669. ) {
  1670. this.checkListThree.push("动静脉壶页面不标准");
  1671. }
  1672. if (
  1673. this.double_check.pipeline_connection_desc.indexOf(
  1674. "静脉管路未卡入保护夹"
  1675. ) != -1
  1676. ) {
  1677. this.checkListThree.push("静脉管路未卡入保护夹");
  1678. }
  1679. if (
  1680. this.double_check.pipeline_connection_desc.indexOf(
  1681. "压力传感器夹未打开"
  1682. ) != -1
  1683. ) {
  1684. this.checkListThree.push("压力传感器夹未打开");
  1685. }
  1686. if (
  1687. this.double_check.pipeline_connection_desc.indexOf("接口连接松动") !=
  1688. -1
  1689. ) {
  1690. this.checkListThree.push("接口连接松动");
  1691. }
  1692. if (
  1693. this.double_check.pipeline_connection_desc.indexOf("管路打折") != -1
  1694. ) {
  1695. this.checkListThree.push("管路打折");
  1696. }
  1697. }
  1698. },
  1699. "double_check.id": function () {
  1700. if (this.double_check.id > 0) {
  1701. for (var index in this.doubleReview) {
  1702. this.doubleReview[index] = this.double_check[index] + "";
  1703. }
  1704. this.doubleReview.created_time = this.double_check["created_time"];
  1705. this.doubleReview.creater = this.double_check["creater"];
  1706. this.doubleReview.updated_time = this.double_check["updated_time"];
  1707. this.doubleReview.modifier = this.double_check["modifier"];
  1708. this.doubleReview.dialysis_item_desc =
  1709. this.double_check["dialysis_item_desc"];
  1710. this.doubleReview.dialysis_parameter_desc =
  1711. this.double_check["dialysis_parameter_desc"];
  1712. this.doubleReview.vascular_access_desc =
  1713. this.double_check["vascular_access_desc"];
  1714. this.doubleReview.pipeline_connection_desc =
  1715. this.double_check["pipeline_connection_desc"];
  1716. this.doubleReview.created_time = this.double_check["created_time"];
  1717. this.doubleReview.creater = this.double_check["creater"];
  1718. this.doubleReview.updated_time = this.double_check["updated_time"];
  1719. this.doubleReview.modifier = this.double_check["modifier"];
  1720. this.doubleReview.check_time = this.double_check["check_time"];
  1721. this.doubleReview.first_check_time =
  1722. this.double_check["first_check_time"];
  1723. this.first_check_time = uParseTime(
  1724. this.doubleReview.first_check_time,
  1725. "{y}-{m}-{d} {h}:{i}"
  1726. ).split(" ")[1];
  1727. if (
  1728. this.$store.getters.xt_user.user.id == this.double_check.creater ||
  1729. this.double_check.modifier > 0
  1730. ) {
  1731. this.check_time = uParseTime(
  1732. this.doubleReview.check_time,
  1733. "{y}-{m}-{d} {h}:{i}"
  1734. ).split(" ")[1];
  1735. } else if (
  1736. this.$store.getters.xt_user.user.id != this.double_check.creater &&
  1737. this.double_check.modifier == 0
  1738. ) {
  1739. this.check_time = uParseTime(
  1740. new Date(),
  1741. "{y}-{m}-{d} {h}:{i}"
  1742. ).split(" ")[1];
  1743. this.doubleReview.modifier = this.$store.getters.xt_user.user.id;
  1744. }
  1745. } else {
  1746. this.dialysis_item_check = "1";
  1747. this.dialysis_parameter_check = "1";
  1748. this.vascular_access_verification = "1";
  1749. this.pipeline_connection_check = "1";
  1750. this.doubleReview.dialysis_item_desc = "";
  1751. this.doubleReview.dialysis_parameter_desc = "";
  1752. this.doubleReview.vascular_access_desc = "";
  1753. this.doubleReview.pipeline_connection_desc = "";
  1754. var nowDate = new Date();
  1755. var nowYear = nowDate.getFullYear();
  1756. var nowMonth = nowDate.getMonth() + 1;
  1757. var nowDay = nowDate.getDate();
  1758. var nowHours = nowDate.getHours();
  1759. var nowMinutes = nowDate.getMinutes();
  1760. if (
  1761. this.$store.getters.xt_user.user.id != this.double_check.creater &&
  1762. this.double_check.modifier == 0
  1763. ) {
  1764. this.check_time =
  1765. (nowHours < 10 ? "0" + nowHours : nowHours) +
  1766. ":" +
  1767. (nowMinutes < 10 ? "0" + nowMinutes : nowMinutes);
  1768. }
  1769. this.first_check_time =
  1770. (nowHours < 10 ? "0" + nowHours : nowHours) +
  1771. ":" +
  1772. (nowMinutes < 10 ? "0" + nowMinutes : nowMinutes);
  1773. }
  1774. },
  1775. },
  1776. created() {
  1777. var date = this.$route.query && this.$route.query.date;
  1778. this.record_date = date
  1779. ? uParseTime(date, "{y}-{m}-{d}")
  1780. : parseTime(new Date(), "{y}-{m}-{d}");
  1781. this.org_id = this.$store.getters.xt_user.org.id;
  1782. var nowDate = new Date();
  1783. var nowYear = nowDate.getFullYear();
  1784. var nowMonth = nowDate.getMonth() + 1;
  1785. var nowDay = nowDate.getDate();
  1786. var nowHours = nowDate.getHours();
  1787. var nowMinutes = nowDate.getMinutes();
  1788. if (
  1789. this.$store.getters.xt_user.user.id != this.double_check.creater &&
  1790. this.double_check.modifier == 0
  1791. ) {
  1792. this.check_time =
  1793. (nowHours < 10 ? "0" + nowHours : nowHours) +
  1794. ":" +
  1795. (nowMinutes < 10 ? "0" + nowMinutes : nowMinutes);
  1796. }
  1797. this.first_check_time =
  1798. (nowHours < 10 ? "0" + nowHours : nowHours) +
  1799. ":" +
  1800. (nowMinutes < 10 ? "0" + nowMinutes : nowMinutes);
  1801. },
  1802. };
  1803. </script>
  1804. <style lang="scss">
  1805. .newInline {
  1806. display: flex;
  1807. }
  1808. .newItem {
  1809. flex: 1;
  1810. display: flex !important;
  1811. .el-form-item__content {
  1812. width: 100%;
  1813. }
  1814. }
  1815. .newCheckBox {
  1816. margin-bottom: 10px;
  1817. .el-checkbox {
  1818. margin-bottom: 10px;
  1819. }
  1820. }
  1821. </style>