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

doubleCheckDialog.vue 49KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307
  1. <template>
  2. <el-dialog title="双人核对"
  3. :visible.sync="isVisibility"
  4. :modal-append-to-body="false"
  5. width="854px"
  6. >
  7. <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
  8. <el-form-item label="透析物品核查 : ">
  9. <el-radio v-model="doubleReview.dialysis_item_check" label="1" @change="changeRadio">正确</el-radio>
  10. <!-- <el-radio v-model="doubleReview.dialysis_item_check" label="2">错误</el-radio> -->
  11. </el-form-item>
  12. <el-form-item class="newItem" label="差错描述 : " label-width="90px">
  13. <el-input v-model="doubleReview.dialysis_item_desc"></el-input>
  14. </el-form-item>
  15. </el-form>
  16. <el-form :inline="true" class="demo-form-inline newCheckBox" :model="doubleReview" label-width="110px">
  17. <el-checkbox-group v-model="checkList" @change="changeBox">
  18. <el-checkbox :label="diazes"></el-checkbox>
  19. <el-checkbox :label="puncture_needle"></el-checkbox>
  20. <el-checkbox :label="dialysate_formulation"></el-checkbox>
  21. <el-checkbox :label="kalium"></el-checkbox>
  22. <el-checkbox :label="calcium"></el-checkbox>
  23. </el-checkbox-group>
  24. </el-form>
  25. <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
  26. <el-form-item label="透析参数核查 : ">
  27. <el-radio v-model="doubleReview.dialysis_parameter_check" label="1" @change="changeRadioTwo">正确</el-radio>
  28. <!-- <el-radio v-model="doubleReview.dialysis_parameter_check" label="2">错误</el-radio> -->
  29. </el-form-item>
  30. <el-form-item class="newItem" label="差错描述 : " label-width="90px">
  31. <el-input v-model="doubleReview.dialysis_parameter_desc"></el-input>
  32. </el-form-item>
  33. </el-form>
  34. <el-form class="newCheckBox">
  35. <el-checkbox-group v-model="checkListOne" @change="changeBoxOne" >
  36. <el-checkbox :label="dialys_mode"></el-checkbox>
  37. <el-checkbox :label="long_time"></el-checkbox>
  38. <el-checkbox :label="target_ultrafiltration"></el-checkbox>
  39. <el-checkbox :label="anticoagulant" ></el-checkbox>
  40. <el-checkbox :label="anticoagulant_shouji"></el-checkbox>
  41. <el-checkbox :label="anticoagulant_weichi"></el-checkbox>
  42. <el-checkbox :label="anticoagulant_zongliang"></el-checkbox>
  43. <el-checkbox :label="displace_liqui_part"></el-checkbox>
  44. <el-checkbox :label="replacement_total"></el-checkbox>
  45. <el-checkbox :label="blood_flow_volume"></el-checkbox>
  46. <el-checkbox :label="dialysate_flow"></el-checkbox>
  47. <el-checkbox :label="displace_liqui_value"></el-checkbox>
  48. </el-checkbox-group>
  49. </el-form>
  50. <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
  51. <el-form-item label="血管通路核查 : ">
  52. <el-radio v-model="doubleReview.vascular_access_verification" label="1" @change="changeRadioThree">正确</el-radio>
  53. <!-- <el-radio v-model="doubleReview.vascular_access_verification" label="2">错误</el-radio> -->
  54. </el-form-item>
  55. <el-form-item class="newItem" label="差错描述 : " label-width="90px">
  56. <el-input v-model="doubleReview.vascular_access_desc"></el-input>
  57. </el-form-item>
  58. </el-form>
  59. <el-form class="newCheckBox">
  60. <el-checkbox-group v-model="checkListTwo" @change="changeBoxTwo">
  61. <el-checkbox :label="blood_access_part_opera_id">
  62. </el-checkbox>
  63. <el-checkbox label="动静脉接错"></el-checkbox>
  64. <el-checkbox label="渗血"></el-checkbox>
  65. <el-checkbox label="压迫" ></el-checkbox>
  66. <el-checkbox label="折叠"></el-checkbox>
  67. <el-checkbox label="滑脱"></el-checkbox>
  68. </el-checkbox-group>
  69. </el-form>
  70. <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
  71. <el-form-item label="管道连接核查 : ">
  72. <el-radio v-model="doubleReview.pipeline_connection_check" label="1" @change="changeRadioFour">正确</el-radio>
  73. <!-- <el-radio v-model="doubleReview.pipeline_connection_check" label="2">错误</el-radio> -->
  74. </el-form-item>
  75. <el-form-item class="newItem" label="差错描述 : " label-width="90px">
  76. <el-input v-model="doubleReview.pipeline_connection_desc"></el-input>
  77. </el-form-item>
  78. </el-form>
  79. <el-form class="newCheckBox">
  80. <el-checkbox-group v-model="checkListThree" @change="changeBoxThree">
  81. <el-checkbox label="泵前补液测管未夹"></el-checkbox>
  82. <el-checkbox label="肝素管夹未开启"></el-checkbox>
  83. <el-checkbox label="透析器连接错误"></el-checkbox>
  84. <el-checkbox label="动静脉壶页面不标准" ></el-checkbox>
  85. <el-checkbox label="静脉管路未卡入保护夹"></el-checkbox>
  86. <el-checkbox label="压力传感器夹未打开"></el-checkbox>
  87. <el-checkbox label="接口连接松动"></el-checkbox>
  88. <el-checkbox label="管路打折"></el-checkbox>
  89. </el-checkbox-group>
  90. </el-form>
  91. <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="120px">
  92. <el-form-item label="第一核对时间:">
  93. <el-time-picker
  94. v-model="first_check_time"
  95. format='HH:mm'
  96. value-format="HH:mm"
  97. placeholder="请输入核对时间">
  98. </el-time-picker>
  99. </el-form-item>
  100. <el-form-item label="第一核对人员">
  101. <el-select v-model="doubleReview.creater" placeholder="请选择核对人">
  102. <el-option v-for="(admin, index) in admin_users" :key="index" :value="admin.id"
  103. :label="admin.name"></el-option>
  104. </el-select>
  105. </el-form-item>
  106. <el-form-item label="第二核对时间:">
  107. <el-time-picker
  108. v-model="check_time"
  109. format='HH:mm'
  110. value-format="HH:mm"
  111. placeholder="请输入核对时间">
  112. </el-time-picker>
  113. </el-form-item>
  114. <el-form-item label="第二核对人员">
  115. <el-select v-model="doubleReview.modifier" placeholder="请选择核对人">
  116. <el-option v-for="(admin, index) in admin_users" :key="index" :value="admin.id"
  117. :label="admin.name"></el-option>
  118. </el-select>
  119. </el-form-item>
  120. <el-form-item label="第二核对人员工号:" v-if="isShowFiled('第二核对人员工号')" label-width="140px">
  121. <el-input style="width:200px" v-model="doubleReview.employee_number"></el-input>
  122. </el-form-item>
  123. </el-form>
  124. <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">
  125. <p style="margin-left: 13px;margin-top: 10px" v-if="doubleReview.creater != 0">{{getFirstCheckDesc()}}</p>
  126. <p style="margin-left: 13px;margin-top: 10px" v-if="doubleReview.modifier != 0">{{getScondCheckDesc()}}</p>
  127. </el-form>
  128. <div slot="footer" class="dialog-footer">
  129. <el-button @click="handleCancle">取 消</el-button>
  130. <el-button type="primary" @click="handleComfirm">保 存</el-button>
  131. </div>
  132. </el-dialog>
  133. </template>
  134. <script>
  135. import { postDoubleCheck } from '@/api/dialysis'
  136. import { uParseTime } from '@/utils/tools'
  137. import { parseTime } from '@/utils'
  138. import { getDataConfig } from '@/utils/data'
  139. import store from "@/store";
  140. export default {
  141. name: 'doubleCheckDialog',
  142. data() {
  143. return {
  144. isVisibility: false,
  145. time: '',
  146. isClose: false,
  147. check_time: 0,
  148. first_check_time: 0,
  149. doubleReview: {
  150. dialysis_item_check: '1',
  151. dialysis_parameter_check: '1',
  152. vascular_access_verification: '1',
  153. pipeline_connection_check: '1',
  154. dialysis_item_desc: '',
  155. dialysis_parameter_desc: '',
  156. vascular_access_desc: '',
  157. pipeline_connection_desc: '',
  158. collator: '',
  159. creater: this.$store.getters.xt_user.user.id,
  160. modifier: '',
  161. created_time: 0,
  162. updated_time: 0,
  163. check_time: 0,
  164. first_check_time: 0,
  165. employee_number:"",
  166. },
  167. dialysate_formulation_options:[],
  168. record_date: '',
  169. checkList: [],
  170. checkListOne:[],
  171. checkListTwo:[],
  172. checkListThree:[],
  173. diazes:"透析器/灌流器:",
  174. puncture_needle:"穿刺针:",
  175. dialysate_formulation:"透析液配方:",
  176. kalium:"钾:",
  177. calcium:"钙:",
  178. dialys_mode:"透析模式:",
  179. long_time:"透析时长:",
  180. target_ultrafiltration:"目标超滤量:",
  181. anticoagulant:"抗凝剂:",
  182. anticoagulant_shouji:"首剂:",
  183. anticoagulant_weichi:"维持:",
  184. anticoagulant_zongliang:"总量:",
  185. displace_liqui_part:"置换液:",
  186. replacement_total:"置换量:",
  187. blood_flow_volume:"处方血流量:",
  188. dialysate_flow:"透析液流量:",
  189. blood_access_part_opera_id:"通路类型:",
  190. displace_liqui_value:"置换液总量:",
  191. }
  192. },
  193. methods: {
  194. isShowFiled(name) {
  195. var filedList = store.getters.xt_user.fileds
  196. for (let i = 0; i < filedList.length; i++) {
  197. if (filedList[i].module == 8 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
  198. return true
  199. }
  200. }
  201. return false
  202. },
  203. show() {
  204. this.isVisibility = true
  205. if (this.double_check.id > 0) {
  206. this.first_check_time = uParseTime(
  207. this.double_check.first_check_time,
  208. '{y}-{m}-{d} {h}:{i}'
  209. ).split(' ')[1]
  210. if(this.$store.getters.xt_user.user.id == this.double_check.creater || this.double_check.modifier > 0){
  211. if(this.double_check.modifier > 0){
  212. this.check_time = uParseTime(
  213. this.doubleReview.check_time,
  214. '{y}-{m}-{d} {h}:{i}'
  215. ).split(' ')[1]
  216. }
  217. }else if(this.$store.getters.xt_user.user.id != this.double_check.creater && this.double_check.modifier == 0){
  218. this.check_time = uParseTime(
  219. new Date(),
  220. '{y}-{m}-{d} {h}:{i}'
  221. ).split(' ')[1]
  222. this.doubleReview.modifier = this.$store.getters.xt_user.user.id
  223. }
  224. if(this.doubleReview.modifier == 0){
  225. this.doubleReview.modifier = ""
  226. }
  227. } else {
  228. var nowDate = new Date()
  229. var nowHours = nowDate.getHours()
  230. var nowMinutes = nowDate.getMinutes()
  231. // if(this.$store.getters.xt_user.user.id != this.double_check.creater && this.double_check.modifier == 0){
  232. // this.check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
  233. // }
  234. this.first_check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
  235. console.log( this.first_check_time )
  236. console.log( this.check_time )
  237. }
  238. },
  239. hide() {
  240. this.isVisibility = false
  241. },
  242. handleCancle: function() {
  243. this.isVisibility = false
  244. },
  245. handleComfirm: function() {
  246. if (this.patient.id <= 0) {
  247. this.$message.error('没有选择患者')
  248. return
  249. }
  250. var first_check_time = this.record_date + ' ' + this.first_check_time
  251. var check_time = this.record_date + ' ' + this.check_time
  252. var first_time = new Date(first_check_time).getTime()
  253. var second_time = new Date(check_time).getTime()
  254. if (first_time >= second_time) {
  255. this.$message.error('第一次核对时间不能大于或者等于第二次核对时间')
  256. return
  257. }
  258. if (this.doubleReview.creater == this.doubleReview.modifier) {
  259. this.$message.error('第一次核对人不能与第二次核对人相同')
  260. return
  261. }
  262. let ParamsQuery = this.doubleReview
  263. ParamsQuery['patient'] = this.patient.id
  264. ParamsQuery['record_date'] = this.record_date
  265. if(this.check_time){
  266. ParamsQuery['check_time'] = this.record_date + ' ' + this.check_time
  267. }
  268. // ParamsQuery['check_time'] = this.record_date + ' ' + this.check_time
  269. if(this.first_check_time){
  270. ParamsQuery['first_check_time'] = this.record_date + ' ' + this.first_check_time
  271. }
  272. ParamsQuery['creater'] = this.doubleReview.creater
  273. ParamsQuery['modifier'] = this.doubleReview.modifier
  274. postDoubleCheck(ParamsQuery).then(response => {
  275. if (response.data.state == 0) {
  276. this.$message.error(response.data.msg)
  277. return false
  278. } else {
  279. this.$notify({
  280. title: '成功',
  281. message: '提交成功',
  282. type: 'success',
  283. duration: 2000
  284. })
  285. this.doubleReview.creater = response.data.data.doubleCheck.creater
  286. this.doubleReview.check_time = response.data.data.doubleCheck.check_time
  287. this.doubleReview.first_check_time = response.data.data.doubleCheck.first_check_time
  288. this.doubleReview.modifier = response.data.data.doubleCheck.modifier
  289. this.first_check_time = uParseTime(
  290. this.doubleReview.first_check_time,
  291. '{y}-{m}-{d} {h}:{i}'
  292. ).split(' ')[1]
  293. let doublecheck_resp = response.data.data.doubleCheck
  294. console.log("处方233232323232232332",this.prescription)
  295. var doubleCheck = this.double_check
  296. for (var index in doublecheck_resp) {
  297. this.$set(doubleCheck, index, doublecheck_resp[index])
  298. }
  299. this.hide()
  300. }
  301. })
  302. },
  303. getFirstCheckDesc: function () {
  304. if(this.double_check.creater > 0){
  305. if (
  306. this.doubleReview.first_check_time > 0 &&
  307. this.doubleReview.check_time > 0
  308. ) {
  309. if (this.doubleReview.first_check_time < this.doubleReview.check_time) {
  310. let time = uParseTime(
  311. this.doubleReview.first_check_time,
  312. "{y}-{m}-{d} {h}:{i}:{s}"
  313. );
  314. if (this.doubleReview.creater <= 0) {
  315. return "";
  316. }
  317. var desc = "";
  318. if (
  319. this.admin_users == null ||
  320. typeof this.admin_users.length == "undefined"
  321. ) {
  322. return "";
  323. }
  324. var leng = this.admin_users.length;
  325. if (leng == 0) {
  326. return "";
  327. }
  328. for (let index = 0; index < leng; index++) {
  329. if (this.admin_users[index].id == this.doubleReview.creater) {
  330. let name = this.admin_users[index].name;
  331. desc = "第一核对人员:" + name + " 第一核对时间:" + time;
  332. break;
  333. }
  334. }
  335. return desc;
  336. } else {
  337. let time = uParseTime(
  338. this.doubleReview.check_time,
  339. "{y}-{m}-{d} {h}:{i}:{s}"
  340. );
  341. if (this.doubleReview.modifier <= 0) {
  342. return "";
  343. }
  344. var desc = "";
  345. if (
  346. this.admin_users == null ||
  347. typeof this.admin_users.length == "undefined"
  348. ) {
  349. return "";
  350. }
  351. var leng = this.admin_users.length;
  352. if (leng == 0) {
  353. return "";
  354. }
  355. for (let index = 0; index < leng; index++) {
  356. if (this.admin_users[index].id == this.doubleReview.modifier) {
  357. let name = this.admin_users[index].name;
  358. desc = "第一核对人员:" + name + " 第一核对时间:" + time;
  359. break;
  360. }
  361. }
  362. return desc;
  363. }
  364. } else {
  365. let time = uParseTime(
  366. this.doubleReview.first_check_time,
  367. "{y}-{m}-{d} {h}:{i}:{s}"
  368. );
  369. if (this.doubleReview.creater <= 0) {
  370. return "";
  371. }
  372. var desc = "";
  373. if (
  374. this.admin_users == null ||
  375. typeof this.admin_users.length == "undefined"
  376. ) {
  377. return "";
  378. }
  379. var leng = this.admin_users.length;
  380. if (leng == 0) {
  381. return "";
  382. }
  383. for (let index = 0; index < leng; index++) {
  384. if (this.admin_users[index].id == this.doubleReview.creater) {
  385. let name = this.admin_users[index].name;
  386. desc = "第一核对人员:" + name + " 第一核对时间:" + time;
  387. break;
  388. }
  389. }
  390. return desc;
  391. }
  392. }
  393. },
  394. getScondCheckDesc: function () {
  395. if(this.double_check.modifier > 0){
  396. if (
  397. this.doubleReview.first_check_time > 0 &&
  398. this.doubleReview.check_time > 0
  399. ) {
  400. if (this.doubleReview.first_check_time < this.doubleReview.check_time) {
  401. let time = uParseTime(
  402. this.doubleReview.check_time,
  403. "{y}-{m}-{d} {h}:{i}:{s}"
  404. );
  405. if (this.doubleReview.modifier <= 0) {
  406. return "";
  407. }
  408. var desc = "";
  409. if (
  410. this.admin_users == null ||
  411. typeof this.admin_users.length == "undefined"
  412. ) {
  413. return desc;
  414. }
  415. var leng = this.admin_users.length;
  416. if (leng == 0) {
  417. return desc;
  418. }
  419. for (let index = 0; index < leng; index++) {
  420. if (this.admin_users[index].id == this.doubleReview.modifier ) {
  421. let name = this.admin_users[index].name;
  422. desc = "第二核对人员:" + name + " 第二核对时间:" + time;
  423. break;
  424. }
  425. }
  426. return desc;
  427. } else {
  428. let time = uParseTime(
  429. this.doubleReview.first_check_time,
  430. "{y}-{m}-{d} {h}:{i}:{s}"
  431. );
  432. if (this.doubleReview.creater <= 0) {
  433. return "";
  434. }
  435. var desc = "";
  436. if (
  437. this.admin_users == null ||
  438. typeof this.admin_users.length == "undefined"
  439. ) {
  440. return desc;
  441. }
  442. var leng = this.admin_users.length;
  443. if (leng == 0) {
  444. return desc;
  445. }
  446. for (let index = 0; index < leng; index++) {
  447. if (this.admin_users[index].id == this.doubleReview.creater) {
  448. let name = this.admin_users[index].name;
  449. desc = "第二核对人员:" + name + " 第二核对时间:" + time;
  450. break;
  451. }
  452. }
  453. return desc;
  454. }
  455. } else {
  456. let time = uParseTime(
  457. this.doubleReview.check_time,
  458. "{y}-{m}-{d} {h}:{i}:{s}"
  459. );
  460. if (this.doubleReview.modifier <= 0) {
  461. return "";
  462. }
  463. var desc = "";
  464. if (
  465. this.admin_users == null ||
  466. typeof this.admin_users.length == "undefined"
  467. ) {
  468. return desc;
  469. }
  470. var leng = this.admin_users.length;
  471. if (leng == 0) {
  472. return desc;
  473. }
  474. for (let index = 0; index < leng; index++) {
  475. if (this.admin_users[index].id == this.doubleReview.modifier) {
  476. let name = this.admin_users[index].name;
  477. desc = "第二核对人员:" + name + " 第二核对时间:" + time;
  478. break;
  479. }
  480. }
  481. return desc;
  482. }
  483. }
  484. },
  485. changeBox(val){
  486. var arr = []
  487. var str = val.join(';')
  488. console.log("strw222222222",str)
  489. if(str.indexOf('透析器/灌流器')!=-1 && this.prescription!=null){
  490. arr.push("透析器/灌流器:"+(this.prescription.dialyzer_perfusion_apparatus?this.prescription.dialyzer_perfusion_apparatus:""))
  491. }
  492. if(str.indexOf('透析器/灌流器')!=-1 && this.prescription==null){
  493. arr.push("透析器/灌流器:")
  494. }
  495. if(str.indexOf('穿刺针')!=-1 && this.predialysis_evaluation.id!=0){
  496. arr.push("穿刺针:"+this.predialysis_evaluation.puncture_needle)
  497. }
  498. if(str.indexOf('穿刺针')!=-1 && this.predialysis_evaluation.id==0){
  499. arr.push("穿刺针:")
  500. }
  501. if(str.indexOf('透析液配方')!=-1 && this.prescription!=null){
  502. arr.push("透析液配方:"+this.GetDialysateFormulationById(this.prescription.dialysate_formulation))
  503. }
  504. if(str.indexOf('透析液配方')!=-1 && this.prescription==null){
  505. arr.push("透析液配方:")
  506. }
  507. if(str.indexOf('钾')!=-1 && this.prescription!=null ){
  508. arr.push("钾:"+(this.prescription.kalium?this.prescription.kalium:""))
  509. }
  510. if(str.indexOf('钾')!=-1 && this.prescription==null ){
  511. arr.push("钾:")
  512. }
  513. if(str.indexOf('钙')!=-1 && this.prescription!=null ){
  514. arr.push("钙:"+(this.prescription.calcium?this.prescription.calcium:""))
  515. }
  516. if(str.indexOf('钙')!=-1 && this.prescription==null ){
  517. arr.push("钙:")
  518. }
  519. console.log("arr",arr)
  520. this.doubleReview.dialysis_item_desc = arr.join(";")
  521. if(val.length > 0){
  522. this.doubleReview.dialysis_item_check = 2
  523. }else{
  524. this.doubleReview.dialysis_item_check = "1"
  525. }
  526. },
  527. changeBoxOne(val){
  528. var arr = []
  529. var str = val.join(';')
  530. if(str.indexOf('透析模式')!=-1 && this.prescription!=null){
  531. arr.push("透析模式:"+(this.getMode(this.prescription.mode_id)?this.getMode(this.prescription.mode_id):""))
  532. }
  533. if(str.indexOf('透析模式')!=-1 && this.prescription==null){
  534. arr.push("透析模式:")
  535. }
  536. if(str.indexOf('透析时长')!=-1 && this.prescription!=null){
  537. arr.push("透析时长:"+(this.prescription.dialysis_duration_hour?this.prescription.dialysis_duration_hour:"") +"小时"+this.prescription.dialysis_duration_minute+"分")
  538. }
  539. if(str.indexOf('透析时长')!=-1 && this.prescription==null){
  540. arr.push("透析时长:")
  541. }
  542. if(str.indexOf("目标超滤量")!=-1 && this.prescription!=null){
  543. arr.push("目标超滤量:"+(this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:""))
  544. }
  545. if(str.indexOf("目标超滤量")!=-1 && this.prescription==null){
  546. arr.push("目标超滤量:")
  547. }
  548. if(str.indexOf("抗凝剂")!=-1 && this.prescription!=null){
  549. arr.push("抗凝剂:"+(this.prescription.anticoagulant?this.prescription.anticoagulant:""))
  550. }
  551. if(str.indexOf("抗凝剂")!=-1 && this.prescription==null){
  552. arr.push("抗凝剂:")
  553. }
  554. if(str.indexOf("首剂")!=-1 && this.prescription!=null){
  555. arr.push("首剂:"+(this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:""))
  556. }
  557. if(str.indexOf("首剂")!=-1 && this.prescription==null){
  558. arr.push("首剂:")
  559. }
  560. if(str.indexOf("维持")!=-1 && this.prescription!=null){
  561. arr.push("维持:"+(this.prescription.anticoagulant_weichi?this.prescription.anticoagulant_weichi:""))
  562. }
  563. if(str.indexOf("维持")!=-1 && this.prescription==null){
  564. arr.push("维持:")
  565. }
  566. if(str.indexOf("总量")!=-1 && this.prescription!=null){
  567. arr.push("总量:"+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:""))
  568. }
  569. if(str.indexOf("总量")!=-1 && this.prescription==null){
  570. arr.push("总量:")
  571. }
  572. if(str.indexOf("置换液")!=-1 && this.prescription!=null){
  573. arr.push("置换液:"+(this.getDisplace(this.prescription.displace_liqui_part)?this.getDisplace(this.prescription.displace_liqui_part):""))
  574. }
  575. if(str.indexOf("置换液")!=-1 && this.prescription==null){
  576. arr.push("置换液:")
  577. }
  578. if(str.indexOf("置换量")!=-1 && this.prescription!=null){
  579. arr.push("置换量:"+(this.prescription.replacement_total?this.prescription.replacement_total:""))
  580. }
  581. if(str.indexOf("置换量")!=-1 && this.prescription==null){
  582. arr.push("置换量:")
  583. }
  584. if(str.indexOf("处方血流量")!=-1 && this.prescription!=null){
  585. arr.push("处方血流量:"+(this.prescription.blood_flow_volume?this.prescription.blood_flow_volume:""))
  586. }
  587. if(str.indexOf("处方血流量")!=-1 && this.prescription==null){
  588. arr.push("处方血流量:")
  589. }
  590. if(str.indexOf("透析液流量")!=-1 && this.prescription!=null){
  591. arr.push("透析液流量:"+(this.prescription.dialysate_flow?this.prescription.dialysate_flow:""))
  592. }
  593. if(str.indexOf("透析液流量")!=-1 && this.prescription==null){
  594. arr.push("透析液流量:")
  595. }
  596. if(str.indexOf("置换液总量")!=-1 && this.prescription!=null){
  597. arr.push("置换液总量:"+(this.prescription.displace_liqui_value?this.prescription.displace_liqui_value:""))
  598. }
  599. if(str.indexOf("置换液总量")!=-1 && this.prescription == null){
  600. arr.push("置换液总量:")
  601. }
  602. console.log("arr",arr)
  603. this.doubleReview.dialysis_parameter_desc = arr.join(";")
  604. if(val.length>0){
  605. this.doubleReview.dialysis_parameter_check = 2
  606. }else{
  607. this.doubleReview.dialysis_parameter_check = "1"
  608. }
  609. },
  610. changeBoxTwo(val){
  611. var arr = []
  612. var str = val.join(';')
  613. if(str.indexOf('通路类型')!=-1 && this.predialysis_evaluation.id!=0){
  614. arr.push("通路类型:"+this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id))
  615. }
  616. if(str.indexOf('通路类型')!=-1 && this.predialysis_evaluation.id==0){
  617. arr.push("通路类型:")
  618. }
  619. if(str.indexOf('动静脉接错')!=-1){
  620. arr.push("动静脉接错:")
  621. }
  622. if(str.indexOf('渗血')!=-1){
  623. arr.push("渗血:")
  624. }
  625. if(str.indexOf('压迫')!=-1){
  626. arr.push("压迫:")
  627. }
  628. if(str.indexOf('折叠')!=-1){
  629. arr.push("折叠:")
  630. }
  631. if(str.indexOf('滑脱')!=-1){
  632. arr.push("滑脱:")
  633. }
  634. console.log("arr",arr)
  635. this.doubleReview.vascular_access_desc = arr.join(";")
  636. if(val.length>0){
  637. this.doubleReview.vascular_access_verification = 2
  638. }else{
  639. this.doubleReview.vascular_access_verification = "1"
  640. }
  641. },
  642. changeBoxThree(val){
  643. var arr = []
  644. var str = val.join(';')
  645. if(str.indexOf('泵前补液测管未夹')!=-1){
  646. arr.push("泵前补液测管未夹:")
  647. }
  648. if(str.indexOf('肝素管夹未开启')!=-1){
  649. arr.push("肝素管夹未开启:")
  650. }
  651. if(str.indexOf('透析器连接错误')!=-1){
  652. arr.push("透析器连接错误:")
  653. }
  654. if(str.indexOf('动静脉壶页面不标准')!=-1){
  655. arr.push("动静脉壶页面不标准:")
  656. }
  657. if(str.indexOf('静脉管路未卡入保护夹')!=-1){
  658. arr.push("静脉管路未卡入保护夹:")
  659. }
  660. if(str.indexOf("压力传感器夹未打开")!=-1){
  661. arr.push("压力传感器夹未打开")
  662. }
  663. if(str.indexOf('接口连接松动')!=-1){
  664. arr.push("接口连接松动")
  665. }
  666. if(str.indexOf("管路打折")!=-1){
  667. arr.push("管路打折")
  668. }
  669. this.doubleReview.pipeline_connection_desc = arr.join(";")
  670. if(val.length > 0){
  671. this.doubleReview.pipeline_connection_check = 2
  672. }else{
  673. this.doubleReview.pipeline_connection_check = "1"
  674. }
  675. },
  676. changeRadio(val){
  677. if(val == 1){
  678. this.doubleReview.dialysis_item_desc = ""
  679. this.checkList =[]
  680. }
  681. },
  682. changeRadioTwo(val){
  683. if(val == 1){
  684. this.doubleReview.dialysis_parameter_desc = ""
  685. this.checkListOne = []
  686. }
  687. },
  688. changeRadioThree(val){
  689. if(val == 1){
  690. this.doubleReview.vascular_access_desc = ""
  691. this.checkListTwo = []
  692. }
  693. },
  694. changeRadioFour(val){
  695. if(val == 1){
  696. this.doubleReview.pipeline_connection_desc = ""
  697. this.checkListThree = []
  698. }
  699. },
  700. GetDialysateFormulationById(val) {
  701. this.dialysate_formulation_options = getDataConfig('hemodialysis','dialysate_formulation')
  702. console.log("透析液配方",this.dialysate_formulation_options)
  703. let name = ''
  704. let dfl = this.dialysate_formulation_options.length
  705. for (let index = 0; index < dfl; index++) {
  706. if (this.dialysate_formulation_options[index].id == val) {
  707. name = this.dialysate_formulation_options[index].name
  708. break
  709. }
  710. }
  711. return name
  712. },
  713. getMode(id){
  714. var name = ""
  715. if(id == 1){
  716. name = "HD"
  717. }
  718. if(id == 2){
  719. name = "HDF"
  720. }
  721. if(id == 3){
  722. name = "HD+HP"
  723. }
  724. if(id == 4){
  725. name = "HP"
  726. }
  727. if(id == 5){
  728. name = "HF"
  729. }
  730. if(id == 6){
  731. name = "SCUF"
  732. }
  733. if(id == 7){
  734. name = "IUF"
  735. }
  736. if(id == 8){
  737. name = "HFHD"
  738. }
  739. if(id == 9){
  740. name = "HFHD+HP"
  741. }
  742. if(id == 10){
  743. name = "PHF"
  744. }
  745. if(id == 11){
  746. name = "HFR"
  747. }
  748. if(id == 12){
  749. name = "HDF+HP"
  750. }
  751. if(id == 13){
  752. name = "CRRT"
  753. }
  754. if(id == 14){
  755. name = "腹水回输"
  756. }
  757. if(id == 19){
  758. name = "IUF+HD"
  759. }
  760. if(id == 20){
  761. name = "UF"
  762. }
  763. if(id == 21){
  764. name = "HD+"
  765. }
  766. if(id == 22){
  767. name = "血浆胆红素吸附+HDF"
  768. }
  769. if(id == 23){
  770. name = "血浆胆红素吸附"
  771. }
  772. if(id == 24){
  773. name = "I-HDF"
  774. }
  775. if(id == 25){
  776. name = "HD高通"
  777. }
  778. if(id == 26){
  779. name = "CVVH"
  780. }
  781. if(id == 27){
  782. name = "CVVHD"
  783. }
  784. if(id == 28){
  785. name = "CVVHDF"
  786. }
  787. if(id == 29){
  788. name = "PE"
  789. }
  790. return name
  791. },
  792. getAnticoagulant(id){
  793. var name = ""
  794. if(id == 1){
  795. name = "无肝素"
  796. }
  797. if(id == 2){
  798. name = "普通肝素"
  799. }
  800. if(id == 3){
  801. name = "低分子肝素"
  802. }
  803. if(id == 4){
  804. name = "阿加曲班"
  805. }
  806. if(id == 5){
  807. name = "枸橼酸钠"
  808. }
  809. if(id == 6){
  810. name ="低分子肝素钙"
  811. }
  812. if(id == 7){
  813. name = "低分子肝素钠"
  814. }
  815. return name
  816. },
  817. getBloodAccess(id){
  818. let vascular_access_desc = getDataConfig(
  819. 'hemodialysis',
  820. 'vascular_access_desc'
  821. )
  822. var name = ""
  823. for(let i=0;i<vascular_access_desc.length;i++){
  824. if(vascular_access_desc[i].id == id){
  825. name = vascular_access_desc[i].name
  826. }
  827. }
  828. return name
  829. },
  830. getDisplace(id){
  831. var name = ""
  832. var arr = this.$store.getters.displace_liqui
  833. console.log("arr233233233223",arr)
  834. for(let i=0;i<arr.length;i++){
  835. if(id == arr[i].id){
  836. name = arr[i].name
  837. }
  838. }
  839. return name
  840. },
  841. },
  842. props: {
  843. admin_users: { //系统用户列表
  844. type: Array,
  845. default: () => {
  846. return []
  847. }
  848. },
  849. double_check: { // 双人核对
  850. type: Object,
  851. default: () => {
  852. return { id: 0 }
  853. }
  854. },
  855. patient: { // 患者信息
  856. type: Object,
  857. default: () => {
  858. return { id: 0 }
  859. }
  860. },
  861. predialysis_evaluation: { // 透前评估
  862. type: Object,
  863. default: () => {
  864. return { id: 0 }
  865. }
  866. },
  867. prescription: {
  868. // 透析处方
  869. type: Object,
  870. default: () => {
  871. return { id: 0 }
  872. }
  873. },
  874. },
  875. watch: {
  876. isVisibility(val) {
  877. if(this.prescription!=null && this.prescription.id!=0){
  878. if(this.prescription.dialyzer_perfusion_apparatus !="" || this.prescription.dialysis_dialyszers!="" || this.prescription.dialysis_irrigation!=""){
  879. this.diazes = "透析器/灌流器:"
  880. this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus
  881. this.diazes = this.diazes + this.prescription.dialysis_dialyszers+this.prescription.dialysis_irrigation
  882. }else{
  883. this.diazes = ""
  884. this.diazes = this.diazes
  885. }
  886. if(this.prescription.dialysate_formulation!=""){
  887. this.dialysate_formulation = "透析液配方:"
  888. this.dialysate_formulation = this.dialysate_formulation + this.GetDialysateFormulationById(this.prescription.dialysate_formulation)
  889. }else{
  890. this.dialysate_formulation = this.dialysate_formulation
  891. }
  892. if(this.prescription.kalium!=""){
  893. this.kalium = "钾:"
  894. this.kalium = this.kalium + (this.prescription.kalium?this.prescription.kalium:"")
  895. }else{
  896. this.kalium = this.kalium
  897. }
  898. if(this.prescription.calcium!=""){
  899. this.calcium = "钙:"
  900. this.calcium = this.calcium + (this.prescription.calcium?this.prescription.calcium:"")
  901. }else{
  902. this.calcium = this.calcium
  903. }
  904. if(this.prescription.mode_id > 0){
  905. this.dialys_mode= "透析模式:"
  906. this.dialys_mode = this.dialys_mode + this.getMode(this.prescription.mode_id)
  907. }else{
  908. this.dialys_mode = this.dialys_mode
  909. }
  910. if(this.prescription.dialysis_duration_hour !="" || this.prescription.dialysis_duration_minute!=""){
  911. this.long_time ="透析时长:"
  912. this.long_time = this.long_time + (this.prescription.dialysis_duration_hour?this.prescription.dialysis_duration_hour:"") +"小时" +(this.prescription.dialysis_duration_minute?this.prescription.dialysis_duration_minute:"") +"分"
  913. }else{
  914. this.long_time = this.long_time
  915. }
  916. if(this.prescription.target_ultrafiltration!=""){
  917. this.target_ultrafiltration = "目标超滤量:"
  918. this.target_ultrafiltration = this.target_ultrafiltration + (this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:"")
  919. }else{
  920. this.target_ultrafiltration = this.target_ultrafiltration
  921. }
  922. if(this.prescription.anticoagulant!=""){
  923. this.anticoagulant = "抗凝剂:"
  924. this.anticoagulant = this.anticoagulant + (this.getAnticoagulant(this.prescription.anticoagulant)?this.getAnticoagulant(this.prescription.anticoagulant):"")
  925. }else{
  926. this.anticoagulant = this.anticoagulant
  927. }
  928. if(this.prescription.anticoagulant_shouji!=""){
  929. this.anticoagulant_shouji="首剂:"
  930. this.anticoagulant_shouji = this.anticoagulant_shouji + (this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:"")
  931. }else{
  932. this.anticoagulant_shouji = this.anticoagulant_shouji
  933. }
  934. if(this.prescription.anticoagulant_weichi!=""){
  935. this.anticoagulant_weichi = "维持:"
  936. this.anticoagulant_weichi = this.anticoagulant_weichi + (this.prescription.anticoagulant_weichi?this.prescription.anticoagulant_weichi:"")
  937. }else{
  938. this.anticoagulant_weichi = this.anticoagulant_weichi
  939. }
  940. if(this.prescription.anticoagulant_zongliang!=""){
  941. this.anticoagulant_zongliang = "总量:"
  942. this.anticoagulant_zongliang = this.anticoagulant_zongliang+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:"")
  943. }else{
  944. this.anticoagulant_zongliang = this.anticoagulant_zongliang
  945. }
  946. if(this.prescription.displace_liqui_part!=""){
  947. this.displace_liqui_part="置换液:"
  948. this.displace_liqui_part = this.displace_liqui_part + (this.getDisplace(this.prescription.displace_liqui_part)?this.getDisplace(this.prescription.displace_liqui_part):"")
  949. }else{
  950. this.displace_liqui_part = this.getDisplace(this.displace_liqui_part)
  951. }
  952. if(this.prescription.replacement_total!=""){
  953. this.replacement_total = "置换量:"
  954. this.replacement_total = this.replacement_total + (this.prescription.replacement_total?this.prescription.replacement_total:"")
  955. }else{
  956. this.replacement_total = this.replacement_total
  957. }
  958. if(this.prescription.dialysate_flow!=""){
  959. this.dialysate_flow = "透析液流量:"
  960. this.dialysate_flow = this.dialysate_flow + (this.prescription.dialysate_flow?this.prescription.dialysate_flow:"")
  961. }else{
  962. this.dialysate_flow = this.dialysate_flow
  963. }
  964. if(this.prescription.displace_liqui_value!=""){
  965. this.displace_liqui_value = "置换液总量:"
  966. this.displace_liqui_value = this.displace_liqui_value + this.prescription.displace_liqui_value
  967. console.log("置换液总量",this.displace_liqui_value)
  968. }
  969. }
  970. if(this.predialysis_evaluation!=null && this.predialysis_evaluation.id!=0){
  971. this.puncture_needle = "穿刺针:"
  972. this.puncture_needle = this.puncture_needle + this.predialysis_evaluation.puncture_needle
  973. this.blood_access_part_opera_id = this.blood_access_part_opera_id + this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id)
  974. }
  975. if(this.double_check !=null && this.double_check.id!=0){
  976. if(this.double_check.dialysis_item_desc.indexOf("透析器/灌流器")!=-1){
  977. this.checkList.push("透析器/灌流器:"+this.prescription.dialyzer_perfusion_apparatus)
  978. }
  979. if(this.double_check.dialysis_item_desc.indexOf("穿刺针")!=-1){
  980. this.checkList.push("穿刺针:"+(this.predialysis_evaluation.puncture_needle?this.predialysis_evaluation.puncture_needle:""))
  981. }
  982. if(this.double_check.dialysis_item_desc.indexOf("透析液配方:")!=-1){
  983. this.checkList.push("透析液配方:"+this.GetDialysateFormulationById(this.prescription.dialysate_formulation))
  984. }
  985. if(this.double_check.dialysis_item_desc.indexOf("钾:")!=-1){
  986. this.checkList.push("钾:"+(this.prescription.kalium?this.prescription.kalium:""))
  987. }
  988. if(this.double_check.dialysis_item_desc.indexOf("钙:")!=-1){
  989. this.checkList.push("钙:"+(this.prescription.calcium?this.prescription.calcium:""))
  990. }
  991. if(this.double_check.dialysis_parameter_desc.indexOf("透析模式:")!=-1){
  992. this.checkListOne.push("透析模式:"+this.getMode(this.prescription.mode_id))
  993. }
  994. if(this.double_check.dialysis_parameter_desc.indexOf("透析时长")!=-1){
  995. this.checkListOne.push("透析时长:"+(this.prescription.dialysis_duration_hour?this.prescription.dialysis_duration_hour:""))
  996. }
  997. if(this.double_check.dialysis_parameter_desc.indexOf("目标超滤量")!=-1){
  998. this.checkListOne.push("目标超滤量:"+(this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:""))
  999. }
  1000. if(this.double_check.dialysis_parameter_desc.indexOf("抗凝剂")!=-1){
  1001. this.checkListOne.push("抗凝剂:"+this.getAnticoagulant(this.prescription.anticoagulant?this.prescription.anticoagulant:""))
  1002. }
  1003. if(this.double_check.dialysis_parameter_desc.indexOf("首剂")!=-1){
  1004. this.checkListOne.push("首剂:"+(this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:""))
  1005. }
  1006. if(this.double_check.dialysis_parameter_desc.indexOf("维持")!=-1){
  1007. this.checkListOne.push("维持:"+(this.prescription.anticoagulant_weichi?this.prescription.anticoagulant_weichi:""))
  1008. }
  1009. if(this.double_check.dialysis_parameter_desc.indexOf("总量")!=-1){
  1010. this.checkListOne.push("总量:"+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:""))
  1011. }
  1012. if(this.double_check.dialysis_parameter_desc.indexOf("置换液")!=-1){
  1013. this.checkListOne.push("置换液:"+(this.getDisplace(this.prescription.displace_liqui_part)?this.getDisplace(this.prescription.displace_liqui_part):""))
  1014. }
  1015. if(this.double_check.dialysis_parameter_desc.indexOf("置换量")!=-1){
  1016. this.checkListOne.push("置换量:"+(this.prescription.replacement_total?this.prescription.replacement_total:""))
  1017. }
  1018. if(this.double_check.dialysis_parameter_desc.indexOf("处方血流量")!=-1){
  1019. this.checkListOne.push("处方血流量:"+(this.prescription.blood_flow_volume?this.prescription.blood_flow_volume:""))
  1020. }
  1021. if(this.double_check.dialysis_parameter_desc.indexOf("透析液流量")!=-1){
  1022. this.checkListOne.push("透析液流量:"+(this.prescription.dialysate_flow?this.prescription.dialysate_flow:""))
  1023. }
  1024. if(this.double_check.dialysis_parameter_desc.indexOf("置换液总量")!=-1){
  1025. this.checkListOne.push("置换液总量:"+(this.prescription.displace_liqui_value?this.prescription.displace_liqui_value:""))
  1026. }
  1027. if(this.double_check.vascular_access_desc.indexOf("通路类型")!=-1){
  1028. this.checkListTwo.push("通路类型:"+this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id))
  1029. }
  1030. if(this.double_check.vascular_access_desc.indexOf("动静脉接错")!=-1){
  1031. this.checkListTwo.push("动静脉接错")
  1032. }
  1033. if(this.double_check.vascular_access_desc.indexOf("渗血")!=-1){
  1034. this.checkListTwo.push("渗血")
  1035. }
  1036. if(this.double_check.vascular_access_desc.indexOf("压迫")!=-1){
  1037. this.checkListTwo.push("压迫")
  1038. }
  1039. if(this.double_check.vascular_access_desc.indexOf("折叠")!=-1){
  1040. this.checkListTwo.push("折叠")
  1041. }
  1042. if(this.double_check.vascular_access_desc.indexOf("滑脱")!=-1){
  1043. this.checkListTwo.push("滑脱")
  1044. }
  1045. if(this.double_check.pipeline_connection_desc.indexOf("泵前补液测管未夹")!=-1){
  1046. this.checkListThree.push("泵前补液测管未夹")
  1047. }
  1048. if(this.double_check.pipeline_connection_desc.indexOf("肝素管夹未开启")!=-1){
  1049. this.checkListThree.push("肝素管夹未开启")
  1050. }
  1051. if(this.double_check.pipeline_connection_desc.indexOf("透析器连接错误")!=-1){
  1052. this.checkListThree.push("透析器连接错误")
  1053. }
  1054. if(this.double_check.pipeline_connection_desc.indexOf("动静脉壶页面不标准")!=-1){
  1055. this.checkListThree.push("动静脉壶页面不标准")
  1056. }
  1057. if(this.double_check.pipeline_connection_desc.indexOf("静脉管路未卡入保护夹")!=-1){
  1058. this.checkListThree.push("静脉管路未卡入保护夹")
  1059. }
  1060. if(this.double_check.pipeline_connection_desc.indexOf("压力传感器夹未打开")!=-1){
  1061. this.checkListThree.push("压力传感器夹未打开")
  1062. }
  1063. if(this.double_check.pipeline_connection_desc.indexOf("接口连接松动")!=-1){
  1064. this.checkListThree.push("接口连接松动")
  1065. }
  1066. if(this.double_check.pipeline_connection_desc.indexOf("管路打折")!=-1){
  1067. this.checkListThree.push("管路打折")
  1068. }
  1069. console.log("hhh",this.checkListOne)
  1070. }
  1071. },
  1072. 'double_check.id': function() {
  1073. if (this.double_check.id > 0) {
  1074. for (var index in this.doubleReview) {
  1075. this.doubleReview[index] = this.double_check[index] + ''
  1076. }
  1077. this.doubleReview.created_time = this.double_check['created_time']
  1078. this.doubleReview.creater = this.double_check['creater']
  1079. this.doubleReview.updated_time = this.double_check['updated_time']
  1080. this.doubleReview.modifier = this.double_check['modifier']
  1081. this.doubleReview.dialysis_item_desc = this.double_check['dialysis_item_desc']
  1082. this.doubleReview.dialysis_parameter_desc = this.double_check['dialysis_parameter_desc']
  1083. this.doubleReview.vascular_access_desc = this.double_check['vascular_access_desc']
  1084. this.doubleReview.pipeline_connection_desc = this.double_check['pipeline_connection_desc']
  1085. this.doubleReview.created_time = this.double_check['created_time']
  1086. this.doubleReview.creater = this.double_check['creater']
  1087. this.doubleReview.updated_time = this.double_check['updated_time']
  1088. this.doubleReview.modifier = this.double_check['modifier']
  1089. this.doubleReview.check_time = this.double_check['check_time']
  1090. this.doubleReview.first_check_time = this.double_check['first_check_time']
  1091. this.first_check_time = uParseTime(
  1092. this.doubleReview.first_check_time,
  1093. '{y}-{m}-{d} {h}:{i}'
  1094. ).split(' ')[1]
  1095. if(this.$store.getters.xt_user.user.id == this.double_check.creater || this.double_check.modifier > 0){
  1096. this.check_time = uParseTime(
  1097. this.doubleReview.check_time,
  1098. '{y}-{m}-{d} {h}:{i}'
  1099. ).split(' ')[1]
  1100. }else if(this.$store.getters.xt_user.user.id != this.double_check.creater && this.double_check.modifier == 0){
  1101. this.check_time = uParseTime(
  1102. new Date(),
  1103. '{y}-{m}-{d} {h}:{i}'
  1104. ).split(' ')[1]
  1105. this.doubleReview.modifier = this.$store.getters.xt_user.user.id
  1106. }
  1107. } else {
  1108. this.dialysis_item_check = '1'
  1109. this.dialysis_parameter_check = '1'
  1110. this.vascular_access_verification = '1'
  1111. this.pipeline_connection_check = '1'
  1112. this.doubleReview.dialysis_item_desc = ''
  1113. this.doubleReview.dialysis_parameter_desc = ''
  1114. this.doubleReview.vascular_access_desc = ''
  1115. this.doubleReview.pipeline_connection_desc = ''
  1116. var nowDate = new Date()
  1117. var nowYear = nowDate.getFullYear()
  1118. var nowMonth = nowDate.getMonth() + 1
  1119. var nowDay = nowDate.getDate()
  1120. var nowHours = nowDate.getHours()
  1121. var nowMinutes = nowDate.getMinutes()
  1122. if(this.$store.getters.xt_user.user.id != this.double_check.creater && this.double_check.modifier == 0){
  1123. this.check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
  1124. }
  1125. this.first_check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
  1126. }
  1127. },
  1128. },
  1129. created() {
  1130. var date = this.$route.query && this.$route.query.date
  1131. this.record_date = date ? uParseTime(date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}')
  1132. var nowDate = new Date()
  1133. var nowYear = nowDate.getFullYear()
  1134. var nowMonth = nowDate.getMonth() + 1
  1135. var nowDay = nowDate.getDate()
  1136. var nowHours = nowDate.getHours()
  1137. var nowMinutes = nowDate.getMinutes()
  1138. if(this.$store.getters.xt_user.user.id != this.double_check.creater && this.double_check.modifier == 0){
  1139. this.check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
  1140. }
  1141. this.first_check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
  1142. }
  1143. }
  1144. </script>
  1145. <style lang="scss">
  1146. .newInline{
  1147. display: flex;
  1148. }
  1149. .newItem{
  1150. flex: 1;
  1151. display: flex !important;
  1152. .el-form-item__content{
  1153. width: 100%;
  1154. }
  1155. }
  1156. .newCheckBox{
  1157. margin-bottom: 10px;
  1158. .el-checkbox{
  1159. margin-bottom: 10px;
  1160. }
  1161. }
  1162. </style>