scanning_ins.vue 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211
  1. <template>
  2. <view class="Scanning_ins">
  3. <view class="Scanning">
  4. <view class="Scanning_top" id="Scanning_tops" :animation="animationData">
  5. <view class="Scanning_top_icon">
  6. <text class="cubeic-ok icon_transport transport-duigou"></text>
  7. </view>
  8. <view class="Scanning_top_text">
  9. <view class="text1">扫描成功</view>
  10. <view class="success_tips">
  11. (请您评估患者的意识状况、生命体征、配合程度,如有异常请及时联系护士!)
  12. </view>
  13. </view>
  14. <view class="Scanning_cont">
  15. <view>
  16. <text>患者姓名 : {{ infoDATA.patientName || "-" }}({{
  17. infoDATA.bedNum || "-"
  18. }})</text>
  19. <button @click="getInspectList()">查看检查</button>
  20. </view>
  21. <view>患者编号 : {{ infoDATA.patientCode || "-" }}</view>
  22. <view>住院科室 :
  23. {{ infoDATA.department ? infoDATA.department.dept : "-" }}
  24. </view>
  25. </view>
  26. </view>
  27. <!-- ------------------未完成工单 start----------------- -->
  28. <view class="page_items" v-if="
  29. workData.length === 0 && patientOrders && patientOrders.length > 0
  30. ">
  31. <view class="page_item" v-for="(infoDATA, i) of patientOrders" :key="i">
  32. <view class="page_item_top">
  33. <view class="page_item_top_L">
  34. <text class="L_text">单号:{{ infoDATA.gdcode }}</text>
  35. </view>
  36. <view class="page_item_top_R">
  37. <button class="L_iocn" @click="notice(infoDATA)">通知</button>
  38. </view>
  39. <view class="L"></view>
  40. <view class="R"></view>
  41. </view>
  42. <view class="page_item_cont">
  43. <view class="page_item_cont_T">
  44. <view class="page_item_cont_title">
  45. <text> <text class="starting">起</text> 点科室 </text>
  46. <text class="text_big">{{ infoDATA.startDept.dept }}</text>
  47. </view>
  48. </view>
  49. <view class="line"></view>
  50. <view class="page_item_cont_B">
  51. <template v-if="infoDATA.taskType.associationType.value == 'inspect'">
  52. <view class="page_item_cont_title" v-for="(dept, i) of infoDATA.middleDept" :key="i">
  53. <text> <text class="End">检</text> 查科室 </text>
  54. <text class="text_big">{{ dept.dept }}</text>
  55. <view></view>
  56. </view>
  57. </template>
  58. <template v-if="infoDATA.taskType.associationType.value != 'inspect'">
  59. <view class="page_item_cont_title" v-for="(dept, i) of infoDATA.endDepts" :key="i">
  60. <text> <text class="End">终</text> 点科室 </text>
  61. <text class="text_big">{{ dept.dept }}</text>
  62. </view>
  63. </template>
  64. </view>
  65. </view>
  66. <view class="page_item_foot">
  67. <view class="page_item_foot_text">
  68. <text class="text1">状态</text>
  69. <text class="text2" v-if="
  70. !(
  71. infoDATA.gdState.value == '5' &&
  72. infoDATA.taskType.associationType.value == 'inspect'
  73. )
  74. ">{{ infoDATA.gdState.name }}</text>
  75. <text class="text2" v-if="
  76. infoDATA.gdState.value == '5' &&
  77. infoDATA.taskType.associationType.value == 'inspect'
  78. ">待送回</text>
  79. </view>
  80. <view class="page_item_foot_text" v-if="infoDATA.taskType.associationType.value == 'inspect'">
  81. <text class="text1">预约时间</text>
  82. <text class="text2">{{
  83. infoDATA.checkList &&
  84. infoDATA.checkList[0] &&
  85. infoDATA.checkList[0].yyTime
  86. ? infoDATA.checkList[0].yyTime
  87. : "-"
  88. }}</text>
  89. </view>
  90. </view>
  91. </view>
  92. </view>
  93. <!-- ------------------未完成工单 end----------------- -->
  94. <view class="title" v-if="workData && workData.length > 0">
  95. <text class="span1">工单信息</text>
  96. </view>
  97. <view class="page_items" v-if="!workData" style="font-size: 18px; margin-top: 15%">
  98. <view class="zwsj">
  99. <image class="zwsj_img" mode="widthFix" src="../../static/img/zanwushuju.png"></image>
  100. <view class="zwsj_txt">暂无工单</view>
  101. </view>
  102. </view>
  103. <view class="page_items" v-if="workData && workData.length > 0">
  104. <view class="page_item" v-for="(infoDATA, i) of workData" :key="i">
  105. <view class="page_item_top">
  106. <view class="page_item_top_L" @click="ac1(infoDATA, i, acType)">
  107. <text class="ac">
  108. <text :class="{ acSpan: idTYPE == infoDATA.id }"></text>
  109. </text>
  110. <text class="L_text">单号:{{ infoDATA.gdcode }}</text>
  111. <!-- emergencyType.value 1是正常,2是急,3是加急 -->
  112. <view class="page_item_cont_start emergency1" v-if="infoDATA.emergencyType.value == 1">
  113. <text>
  114. <text class="cubeic-star icon_transport transport-shiwujiaoxing"></text>
  115. {{ infoDATA.emergencyType.name }}
  116. </text>
  117. </view>
  118. <view class="page_item_cont_start emergency" v-if="infoDATA.emergencyType.value == 2">
  119. <text>
  120. <text class="cubeic-star icon_transport transport-shiwujiaoxing"></text>
  121. {{ infoDATA.emergencyType.name }}
  122. </text>
  123. </view>
  124. <view class="page_item_cont_start emergencys" v-if="infoDATA.emergencyType.value == 3">
  125. <text>
  126. <text class="cubeic-star icon_transport transport-shiwujiaoxing"></text>
  127. {{ infoDATA.emergencyType.name }}
  128. </text>
  129. </view>
  130. </view>
  131. <view class="page_item_top_R">
  132. <text class="L_iocn" v-if="infoDATA.taskType.associationType.value == 'inspect'">患者陪检</text>
  133. <text class="L_iocn" v-if="
  134. infoDATA.taskType.associationType.value == 'patientTransport'
  135. ">患者转运</text>
  136. </view>
  137. <view class="L"></view>
  138. <view class="R"></view>
  139. </view>
  140. <view class="page_item_cont">
  141. <view class="page_item_cont_T">
  142. <view class="page_item_cont_title">
  143. <text> <text class="starting">起</text> 点科室 </text>
  144. <text class="text_big">{{ infoDATA.startDept.dept }}</text>
  145. </view>
  146. </view>
  147. <view class="line"></view>
  148. <view class="page_item_cont_B">
  149. <template v-if="infoDATA.taskType.associationType.value == 'inspect'">
  150. <view class="page_item_cont_title" v-for="(dept, i) of infoDATA.middleDept" :key="i">
  151. <text> <text class="End">检</text> 查科室 </text>
  152. <text class="text_big">{{ dept.dept }}</text>
  153. <view></view>
  154. </view>
  155. </template>
  156. <template v-if="infoDATA.taskType.associationType.value != 'inspect'">
  157. <view class="page_item_cont_title" v-for="(dept, i) of infoDATA.endDepts" :key="i">
  158. <text> <text class="End">终</text> 点科室 </text>
  159. <text class="text_big">{{ dept.dept }}</text>
  160. </view>
  161. </template>
  162. </view>
  163. </view>
  164. <view class="page_item_foot">
  165. <view class="page_item_foot_text">
  166. <text class="text1">状态</text>
  167. <text class="text2" v-if="
  168. !(
  169. infoDATA.gdState.value == '5' &&
  170. infoDATA.taskType.associationType.value == 'inspect'
  171. )
  172. ">{{ infoDATA.gdState.name }}</text>
  173. <text class="text2" v-if="
  174. infoDATA.gdState.value == '5' &&
  175. infoDATA.taskType.associationType.value == 'inspect'
  176. ">待送回</text>
  177. </view>
  178. <view class="page_item_foot_text" v-if="infoDATA.gdState.value == '2'">
  179. <text class="text1">预计响应时间</text>
  180. <text class="text2">{{ infoDATA.estimeResponseTime || 0 }}</text>
  181. </view>
  182. <view class="page_item_foot_text" v-if="infoDATA.gdState.value == '5'">
  183. <text class="text1" v-if="!(infoDATA.taskType.associationType.value == 'inspect')">预计送达时间</text>
  184. <text class="text1" v-if="infoDATA.taskType.associationType.value == 'inspect'">预计送回时间</text>
  185. <text class="text2">{{ infoDATA.estimeCompleteTime || 0 }}</text>
  186. </view>
  187. <view class="page_item_foot_text" v-if="infoDATA.gdState.value == '4'">
  188. <text class="text1">预计到达时间</text>
  189. <text class="text2">{{ infoDATA.estimateArriveTime || 0 }}</text>
  190. </view>
  191. <view class="page_item_foot_text">
  192. <text class="text1">创建时间</text>
  193. <text class="text2">{{ infoDATA.startTime }}</text>
  194. </view>
  195. </view>
  196. </view>
  197. </view>
  198. <view class="foot_btn2" v-if="workData && workData.length > 0 && isShow">
  199. <view class="btn1" @click="allStart(typeData)">一键操作</view>
  200. <view class="btn1" @click="scanDept()">送回病房</view>
  201. <view class="btn2" @click="showAlert">知道了</view>
  202. </view>
  203. <!-- <view class="foot_btn2" v-if="
  204. workData && workData.length === 0 && isShow && wechatFocusSwitch == 1
  205. "> -->
  206. <view class="foot_btn2" v-if="
  207. workData && workData.length === 0 && isShow
  208. ">
  209. <!-- <view class="btn1" @click="help">{{
  210. infoDATA.focusPatient == 1 ? "无需帮助" : "需要帮助"
  211. }}</view> -->
  212. <view class="btn3" @click="scanDept()">送回病房</view>
  213. <view class="btn3" @click="showAlert">知道了</view>
  214. </view>
  215. <view class="foot_btn2" v-if="!isShow">
  216. <view class="btn3" @click="scanDept()">送回病房</view>
  217. <view class="btn3" @click="showAlert">知道了</view>
  218. </view>
  219. </view>
  220. <!-- 弹窗 -->
  221. <!-- <showModel :title="models.title" :icon="models.icon" :disjunctor="models.disjunctor" :content="models.content"
  222. @know="know" :operate="models.operate" @ok="ok" @cancel="cancel"></showModel> -->
  223. <showModel :title="models.title" :icon="models.icon" :disjunctor="models.disjunctor" :content="models.content"
  224. @know="know" :operate="models.operate"></showModel>
  225. <!-- 送回病房弹窗 -->
  226. <showModel :title="models1.title" :icon="models1.icon" :disjunctor="models1.disjunctor" :content="models1.content"
  227. :operate="models1.operate" @ok="ok1" @cancel="cancel1"></showModel>
  228. <!-- 送回病房建单弹窗 -->
  229. <showModel :title="models2.title" :icon="models2.icon" :disjunctor="models2.disjunctor" :content="models2.content"
  230. :operate="models2.operate" @ok="ok2" @cancel="cancel2"></showModel>
  231. <!-- 送回病房建单弹窗-扫描科室 -->
  232. <showModel :title="models3.title" :icon="models3.icon" :disjunctor="models3.disjunctor" :content="models3.content"
  233. :operate="models3.operate" @ok="ok3" @cancel="cancel3"></showModel>
  234. </view>
  235. </template>
  236. <script>
  237. import showModel from "../../components/showModel/showModel.vue";
  238. import {
  239. get,
  240. post,
  241. SM,
  242. webHandle
  243. } from "../../http/http.js";
  244. export default {
  245. data() {
  246. return {
  247. options: {},
  248. // wechatFocusSwitch: 0,
  249. hosId: "",
  250. // 弹窗model
  251. models: {
  252. disjunctor: false,
  253. },
  254. // 送回病房弹窗model
  255. models1: {
  256. disjunctor: false,
  257. },
  258. // 送回病房建单弹窗model
  259. models2: {
  260. disjunctor: false,
  261. },
  262. // 送回病房建单弹窗model-扫描科室
  263. models3: {
  264. disjunctor: false,
  265. },
  266. infoDATA: {},
  267. workData: [],
  268. patientOrders: [],
  269. acType: Number,
  270. tabType: 1,
  271. idTYPE: "",
  272. userId: {
  273. ids: [],
  274. },
  275. typeData: null,
  276. types: false,
  277. code: "",
  278. animationData: {}, //动画
  279. isShow: true, //是否显示“一键操作”
  280. currentStartDept: {}, //扫描的起点科室
  281. };
  282. },
  283. methods: {
  284. ok2() {
  285. this.models2.disjunctor = false;
  286. uni.showLoading({
  287. mask: true,
  288. title: '加载中'
  289. })
  290. let userId = uni.getStorageSync("userData").user.id;
  291. let postData = {
  292. "workOrder": {
  293. sourceId: 4,
  294. "hosId": this.hosId,
  295. "startDept": {
  296. "id": this.options.id
  297. },
  298. "createDept": this.options.id,
  299. "patient": {
  300. "patientCode": this.options.code
  301. },
  302. "worker": {
  303. "id": userId
  304. }
  305. }
  306. };
  307. post("/workerOrder/returnSickRoom", postData).then((res) => {
  308. console.log(res)
  309. uni.hideLoading();
  310. if (res.status == 200) {
  311. uni.showToast({
  312. icon: 'success',
  313. title: '建单成功',
  314. });
  315. } else {
  316. uni.showToast({
  317. icon: "none",
  318. title: "请求失败!",
  319. });
  320. }
  321. })
  322. },
  323. cancel2() {
  324. this.models2.disjunctor = false;
  325. },
  326. ok3() {
  327. this.models3.disjunctor = false;
  328. uni.showLoading({
  329. mask: true,
  330. title: '加载中'
  331. })
  332. let userId = uni.getStorageSync("userData").user.id;
  333. let postData = {
  334. "workOrder": {
  335. sourceId: 4,
  336. "hosId": this.hosId,
  337. "startDept": {
  338. "id": this.currentStartDept.id
  339. },
  340. "createDept": this.currentStartDept.id,
  341. "patient": {
  342. "patientCode": this.options.code
  343. },
  344. "worker": {
  345. "id": userId
  346. }
  347. }
  348. };
  349. post("/workerOrder/returnSickRoom", postData).then((res) => {
  350. console.log(res)
  351. uni.hideLoading();
  352. if (res.status == 200) {
  353. uni.showToast({
  354. icon: 'success',
  355. title: '建单成功',
  356. });
  357. } else {
  358. uni.showToast({
  359. icon: "none",
  360. title: "请求失败!",
  361. });
  362. }
  363. })
  364. },
  365. cancel3() {
  366. this.models3.disjunctor = false;
  367. },
  368. // 送回病房-建单
  369. sendBuild() {
  370. let infoDATA = JSON.parse(this.options.infoDATA);
  371. this.models2 = {
  372. disjunctor: true,
  373. title: "提示",
  374. content: `您选择的起点科室为【${this.options.dept}】,您将从【${this.options.dept}】把【${infoDATA.patientName}】送回【${infoDATA.department.dept}】,如您确认请点击“确认建单”。`,
  375. icon: "warn",
  376. operate: {
  377. ok: "确认建单",
  378. cancel: "取消",
  379. },
  380. };
  381. },
  382. // 送回病房-扫描科室
  383. scanDept() {
  384. let infoDATA = JSON.parse(this.options.infoDATA);
  385. let code = "";
  386. SM().then((ress1) => {
  387. uni.showLoading({
  388. title: "加载中",
  389. mask: true,
  390. });
  391. //检验二维码的有效性
  392. post("/dept/scanning", {
  393. content: ress1,
  394. }).then((result) => {
  395. if (result.state == 200 || result.state == 201) {
  396. let ress = result.code;
  397. if (ress) {
  398. code = ress;
  399. // 科室扫描
  400. let postData = {
  401. "idx": 0,
  402. "sum": 1,
  403. "department": {
  404. "hospital": {
  405. "id": this.hosId
  406. },
  407. "qrcode": code
  408. }
  409. };
  410. post("/data/fetchDataList/department", postData).then((res) => {
  411. uni.hideLoading();
  412. if (res.status == 200) {
  413. if(res.totalNum > 0){
  414. this.currentStartDept = res.list[0]; //baba
  415. this.models3 = {
  416. disjunctor: true,
  417. title: "提示",
  418. content: `您选择的起点科室为【${this.currentStartDept.dept}】,您将从【${this.currentStartDept.dept}】把【${infoDATA.patientName}】送回【${infoDATA.department.dept}】,如您确认请点击“确认建单”。`,
  419. icon: "warn",
  420. operate: {
  421. ok: "确认建单",
  422. cancel: "取消",
  423. },
  424. };
  425. }else{
  426. uni.hideLoading();
  427. uni.showToast({
  428. icon: "none",
  429. title: "请扫描正确的科室码!",
  430. });
  431. }
  432. } else {
  433. uni.hideLoading();
  434. uni.showToast({
  435. icon: "none",
  436. title: "请求失败!",
  437. });
  438. }
  439. });
  440. }
  441. } else {
  442. uni.hideLoading();
  443. uni.showToast({
  444. icon: "none",
  445. title: "请求失败!",
  446. });
  447. }
  448. });
  449. });
  450. },
  451. // 送回病房-选择起点科室
  452. sendBack() {
  453. let infoDATA = JSON.parse(this.options.infoDATA);
  454. this.models1 = {
  455. disjunctor: true,
  456. title: "提示",
  457. content: `您好,您是要将【${infoDATA.patientName}】送回病房吗?如确认请您点击“选择起点科室”建立工单。`,
  458. icon: "warn",
  459. operate: {
  460. ok: "选择起点科室",
  461. cancel: "取消",
  462. },
  463. };
  464. },
  465. ok1() {
  466. this.models1.disjunctor = false;
  467. uni.navigateTo({
  468. url: `../search/search?type=sendBack&code=${this.options.code}&infoDATA=${this.options.infoDATA}&patientOrders=${this.options.patientOrders}&workData=${this.options.workData}`,
  469. });
  470. },
  471. cancel1() {
  472. this.models1.disjunctor = false;
  473. },
  474. // 查看检查
  475. getInspectList() {
  476. uni.navigateTo({
  477. url: `../inspectList/inspectList?id=${this.infoDATA.department.id}&dept=${this.infoDATA.department.dept}&residenceNo=${this.infoDATA.residenceNo}`,
  478. });
  479. },
  480. // 通知
  481. notice(info) {
  482. let postData = {
  483. userIds: info.worker.id + "",
  484. content: `您负责护送的患者${info.patient.patientName}(${info.patient.bedNum})已经检查完毕,请尽快执行工单的下一步。`,
  485. };
  486. post("/wechat/sendCustomMessage", postData).then((res) => {
  487. if (res.status == 200) {
  488. uni.showToast({
  489. title: "通知成功",
  490. duration: 2000,
  491. });
  492. } else {
  493. uni.showToast({
  494. icon: "none",
  495. title: "请求失败!",
  496. });
  497. }
  498. });
  499. },
  500. //需要帮助、无需帮助
  501. // help() {
  502. // this.models = {
  503. // disjunctor: true,
  504. // title: "提示",
  505. // content: this.infoDATA.focusPatient == 1 ?
  506. // "如设置为“无需帮助”则后期此患者检查将不会自动进行建单,可通过“需要帮助”设置自动建单" : "如设置为“需要帮助”则后期此患者检查会自动进行建单,可通过“无需帮助”取消设置",
  507. // icon: "warn",
  508. // operate: {
  509. // ok: "确定",
  510. // cancel: "取消",
  511. // },
  512. // };
  513. // },
  514. //需要帮助,无需帮助确定
  515. // ok() {
  516. // this.models.disjunctor = false;
  517. // post("/nurse/updData/patient", {
  518. // patient: {
  519. // id: this.infoDATA.id,
  520. // focusPatient: this.infoDATA.focusPatient == 1 ? 0 : 1,
  521. // },
  522. // }).then((res) => {
  523. // let msg = "设置失败";
  524. // let icon = "error";
  525. // if (res.status == 200) {
  526. // msg = "设置成功";
  527. // icon = "success";
  528. // this.infoDATA.focusPatient = res.data.focusPatient;
  529. // }
  530. // this.models = {
  531. // disjunctor: true,
  532. // content: msg,
  533. // icon: icon,
  534. // operate: {
  535. // know: "知道了",
  536. // },
  537. // };
  538. // });
  539. // },
  540. //需要帮助,无需帮助取消
  541. // cancel() {
  542. // this.models.disjunctor = false;
  543. // },
  544. //知道了
  545. know() {
  546. this.models.disjunctor = false;
  547. },
  548. // 知道了
  549. showAlert() {
  550. uni.navigateTo({
  551. url: "../receiptpage/receiptpage",
  552. });
  553. },
  554. //一键操作
  555. allStart(data) {
  556. let list = {};
  557. if (data) {
  558. let type = "";
  559. if (data.gdState.value == "8") {
  560. SM().then((ress1) => {
  561. // ----------------
  562. uni.showLoading({
  563. title: "加载中",
  564. mask: true,
  565. });
  566. //检验二维码的有效性
  567. post("/dept/scanning", {
  568. content: ress1,
  569. }).then((result) => {
  570. if (result.state == 200 || result.state == 201) {
  571. let ress = result.code;
  572. if (ress) {
  573. var ids = [];
  574. ids.push(data.id);
  575. type = "orderSign/" + ress;
  576. list = {ids};
  577. // 科室签到
  578. post("/workerOrder/" + type, list).then((res) => {
  579. uni.hideLoading();
  580. if (res.status == 200) {
  581. // model: JSON.stringify(res), //签到返回的信息
  582. // type: data.taskType.associationType.value, //关联类型
  583. // code: ress, //二维码code
  584. // ids //科室ID数组
  585. uni.navigateTo({
  586. url: `../scanning_djEnd/scanning_djEnd?type=${
  587. data.taskType.associationType.value
  588. }&code=${ress}&ids=${ids}&model=${encodeURIComponent(
  589. JSON.stringify(res)
  590. )}`,
  591. });
  592. } else {
  593. uni.navigateTo({
  594. url: `../scanning_djEnd/scanning_djEnd?model=${encodeURIComponent(
  595. JSON.stringify(res)
  596. )}`,
  597. });
  598. }
  599. });
  600. }
  601. } else {
  602. uni.hideLoading();
  603. uni.showToast({
  604. icon: "none",
  605. title: "请求失败!",
  606. });
  607. }
  608. });
  609. // ------------------------------
  610. });
  611. } else {
  612. if (data.taskType.associationType.value == "patientTransport") {
  613. type = "handleTrans";
  614. let data = {
  615. ids: this.userId.ids,
  616. // "11789558|51131895|7|黄石城乡|陈琛|女|19981003|20180803081051|Z消化内科Ⅰ"
  617. code: this.code,
  618. };
  619. list = data;
  620. }
  621. if (data.taskType.associationType.value == "inspect") {
  622. type = "handleIns";
  623. let data = {
  624. ids: this.userId.ids,
  625. // "11789558|51131895|7|黄石城乡|陈琛|女|19981003|20180803081051|Z消化内科Ⅰ"
  626. code: this.code,
  627. };
  628. list = data;
  629. }
  630. uni.showLoading({
  631. title: "加载中",
  632. mask: true,
  633. });
  634. post("/workerOrder/" + type, list).then((res) => {
  635. uni.hideLoading();
  636. if (res.status == 200) {
  637. uni.navigateTo({
  638. url: `../scanning_insEnd/scanning_insEnd?type=${
  639. data.taskType.associationType.value
  640. }&model=${encodeURIComponent(JSON.stringify(res))}`,
  641. });
  642. } else {
  643. uni.navigateTo({
  644. url: `../scanning_insEnd/scanning_insEnd?model=${encodeURIComponent(
  645. JSON.stringify(res)
  646. )}`,
  647. });
  648. }
  649. });
  650. }
  651. } else {
  652. this.models = {
  653. disjunctor: true,
  654. content: "请选择工单",
  655. icon: "warn",
  656. operate: {
  657. know: "知道了",
  658. },
  659. };
  660. }
  661. },
  662. //选中
  663. ac(data, i, type) {
  664. this.idTYPE = "";
  665. },
  666. //未选中
  667. ac1(data, i, type) {
  668. if (this.idTYPE == data.id) {
  669. //显示
  670. this.isShow = true;
  671. this.idTYPE = "";
  672. this.userId.ids = [];
  673. this.typeData = null;
  674. } else {
  675. if (data.gdState.value >= 5) {
  676. //隐藏
  677. this.isShow = false;
  678. } else {
  679. //显示
  680. this.isShow = true;
  681. }
  682. this.idTYPE = data.id;
  683. this.typeData = data;
  684. this.userId.ids[0] = this.idTYPE;
  685. }
  686. },
  687. texiao() {
  688. if (this.workData && this.workData.length > 0) {
  689. setTimeout(() => {
  690. this.animation.height(0).opacity(0).step();
  691. this.animationData = this.animation.export();
  692. }, 15000);
  693. }
  694. },
  695. // 获取需要帮助权限
  696. // getWechatFocusSwitch() {
  697. // let postData = {
  698. // idx: 0,
  699. // sum: 1,
  700. // taskType: {
  701. // hosIds: this.hosId,
  702. // associationType: {
  703. // id: 260,
  704. // },
  705. // },
  706. // };
  707. // post("/configuration/fetchDataList/taskType", postData).then((res) => {
  708. // if (res.status == 200) {
  709. // this.wechatFocusSwitch = res.list[0].wechatFocusSwitch || 0;
  710. // } else {
  711. // uni.showToast({
  712. // icon: "none",
  713. // title: "请求失败!",
  714. // });
  715. // }
  716. // });
  717. // },
  718. },
  719. onLoad(options) {
  720. console.log(options);
  721. this.options = options;
  722. // 送回病房建单 start
  723. if (options.id && options.dept) {
  724. this.sendBuild();
  725. }
  726. // 送回病房建单 end
  727. this.hosId = uni.getStorageSync("userData").infoPermission.hospitals[0].id;
  728. // this.getWechatFocusSwitch();
  729. this.infoDATA = JSON.parse(options.infoDATA);
  730. console.log(this.infoDATA);
  731. this.workData = JSON.parse(options.workData);
  732. if (options.patientOrders != 'undefined') {
  733. this.patientOrders = JSON.parse(options.patientOrders);
  734. }
  735. this.code = options.code;
  736. // #ifdef APP-PLUS
  737. webHandle("no", "app");
  738. // #endif
  739. // #ifdef H5
  740. webHandle("no", "wx");
  741. // #endif
  742. },
  743. onShow() {
  744. // 创建动画
  745. this.animation = uni.createAnimation({
  746. duration: 500,
  747. timingFunction: "ease",
  748. delay: 2000,
  749. });
  750. setTimeout(() => {
  751. this.texiao();
  752. }, 500);
  753. },
  754. onHide() {
  755. this.animationData = {};
  756. },
  757. onUnload() {
  758. // 页面关闭后清空数据
  759. this.animationData = {};
  760. },
  761. };
  762. </script>
  763. <style lang="less">
  764. ::-webkit-scrollbar {
  765. width: 0px;
  766. }
  767. ::-webkit-scrollbar-track {
  768. background-color: none;
  769. }
  770. ::-webkit-scrollbar-thumb {
  771. background-color: none;
  772. }
  773. ::-webkit-scrollbar-thumb:hover {
  774. background-color: none;
  775. }
  776. ::-webkit-scrollbar-thumb:active {
  777. background-color: none;
  778. }
  779. .Scanning_ins {
  780. .title {
  781. font-size: 36rpx;
  782. margin-top: 20rpx;
  783. margin-bottom: 20rpx;
  784. font-weight: 700;
  785. position: relative;
  786. height: 40rpx;
  787. .span1 {
  788. position: absolute;
  789. left: 0;
  790. font-weight: 700;
  791. }
  792. .span2 {
  793. position: absolute;
  794. right: 20%;
  795. color: rgb(73, 184, 86);
  796. }
  797. .span3 {
  798. position: absolute;
  799. right: 0;
  800. color: rgb(73, 184, 86);
  801. }
  802. }
  803. .Scanning {
  804. padding: 0 20rpx;
  805. .Scanning_top {
  806. height: 400rpx;
  807. .Scanning_top_icon {
  808. width: 140rpx;
  809. height: 140rpx;
  810. margin: 0 auto;
  811. margin-top: 36rpx;
  812. border-radius: 50%;
  813. line-height: 140rpx;
  814. .cubeic-ok {
  815. font-size: 140rpx;
  816. color: #35b34a;
  817. }
  818. }
  819. .Scanning_top_text {
  820. .text1 {
  821. margin-top: 30rpx;
  822. font-size: 48rpx;
  823. text-align: center;
  824. }
  825. .success_tips {
  826. color: red;
  827. font-size: 30rpx;
  828. }
  829. }
  830. .Scanning_cont {
  831. font-size: 32rpx;
  832. margin-top: 16rpx;
  833. view {
  834. margin-bottom: 8rpx;
  835. display: flex;
  836. justify-content: center;
  837. align-items: center;
  838. button {
  839. font-size: 32rpx;
  840. height: 52rpx;
  841. line-height: 52rpx;
  842. margin: 0;
  843. color: rgb(7, 134, 60);
  844. font-weight: 700;
  845. }
  846. }
  847. .text {
  848. margin-top: 24rpx;
  849. color: #35b34a;
  850. }
  851. .text1 {
  852. margin-top: 24rpx;
  853. color: #ff3b53;
  854. }
  855. }
  856. }
  857. .page_items {
  858. margin-bottom: 110rpx;
  859. .zwsj {
  860. margin-top: 180rpx;
  861. display: flex;
  862. flex-direction: column;
  863. align-items: center;
  864. .zwsj_txt {
  865. font-size: 36rpx;
  866. font-weight: 700;
  867. margin-top: 20rpx;
  868. }
  869. .zwsj_img {
  870. width: 582rpx;
  871. }
  872. }
  873. .page_item {
  874. margin-top: 16rpx;
  875. min-height: 310rpx;
  876. background: #fff;
  877. border-radius: 8rpx;
  878. overflow: hidden;
  879. padding: 0 16rpx;
  880. border: 2rpx solid #e5e9ed;
  881. .L {
  882. width: 40rpx;
  883. height: 40rpx;
  884. border-radius: 50%;
  885. background: #f9fafb;
  886. position: relative;
  887. left: -50rpx;
  888. top: 66rpx;
  889. }
  890. .R {
  891. width: 40rpx;
  892. height: 40rpx;
  893. border-radius: 50%;
  894. background: #f9fafb;
  895. position: relative;
  896. float: right;
  897. right: -50rpx;
  898. top: 26rpx;
  899. }
  900. .starting {
  901. width: 50rpx;
  902. height: 50rpx;
  903. color: #fff;
  904. background: #49b856;
  905. display: inline-block;
  906. border-radius: 50%;
  907. text-align: center;
  908. line-height: 46rpx;
  909. font-size: 32rpx;
  910. margin-right: 6rpx;
  911. }
  912. .End {
  913. width: 50rpx;
  914. height: 50rpx;
  915. color: #fff;
  916. background: #39b199;
  917. display: inline-block;
  918. border-radius: 50%;
  919. text-align: center;
  920. line-height: 46rpx;
  921. font-size: 32rpx;
  922. margin-right: 6rpx;
  923. }
  924. .page_item_top {
  925. height: 86rpx;
  926. border-bottom: 2rpx dashed #e5e9ed;
  927. padding: 0 16rpx;
  928. .page_item_top_L {
  929. height: 100%;
  930. float: left;
  931. line-height: 88rpx;
  932. display: flex;
  933. align-items: center;
  934. .ac {
  935. width: 32rpx;
  936. height: 32rpx;
  937. border: 2rpx solid #ccc;
  938. display: flex;
  939. justify-content: center;
  940. align-items: center;
  941. position: relative;
  942. .acSpan {
  943. width: 24rpx;
  944. height: 24rpx;
  945. background: #39b199;
  946. display: block;
  947. }
  948. }
  949. .ac1 {
  950. width: 32rpx;
  951. height: 32rpx;
  952. border: 2rpx solid #ccc;
  953. display: inline-block;
  954. position: relative;
  955. }
  956. .emergencys {
  957. background: #ff3b53 !important;
  958. width: 124rpx !important;
  959. }
  960. .emergency {
  961. background: #ff3b53 !important;
  962. }
  963. .emergency1 {
  964. background: #49b856 !important;
  965. }
  966. .page_item_cont_start {
  967. text-align: center;
  968. height: 44rpx;
  969. width: 104rpx;
  970. line-height: 44rpx;
  971. border-radius: 8rpx;
  972. background: #49b856;
  973. color: #fff;
  974. display: inline-block;
  975. font-size: 28rpx;
  976. }
  977. .L_time {
  978. color: #6cc076;
  979. font-size: 32rpx;
  980. }
  981. .L_text {
  982. font-size: 32rpx;
  983. display: inline-block;
  984. font-weight: 700;
  985. }
  986. }
  987. .page_item_top_R {
  988. height: 60rpx;
  989. float: right;
  990. padding-top: 20rpx;
  991. font-size: 32rpx;
  992. position: absolute;
  993. right: 50rpx;
  994. .L_iocn {
  995. display: inline-block;
  996. height: 52rpx;
  997. line-height: 48rpx;
  998. color: rgb(7, 134, 60);
  999. font-size: 36rpx;
  1000. font-weight: 700;
  1001. }
  1002. }
  1003. }
  1004. .page_item_cont {
  1005. min-height: 180rpx;
  1006. max-height: 424rpx;
  1007. padding: 0 16rpx;
  1008. text-align: left;
  1009. position: relative;
  1010. .text_big {
  1011. font-size: 32rpx;
  1012. position: absolute;
  1013. right: 16rpx;
  1014. font-weight: 700;
  1015. margin-top: 10rpx;
  1016. }
  1017. .text_big2 {
  1018. font-size: 32rpx;
  1019. position: absolute;
  1020. right: 16rpx;
  1021. font-weight: 700;
  1022. }
  1023. .line {
  1024. height: 20rpx;
  1025. width: 2rpx;
  1026. border-left: 2rpx solid #e5e9ed;
  1027. position: absolute;
  1028. top: 82rpx;
  1029. left: 40rpx;
  1030. }
  1031. .lines {
  1032. height: 40%;
  1033. width: 2rpx;
  1034. border-left: 2rpx solid #e5e9ed;
  1035. position: absolute;
  1036. top: 23%;
  1037. left: 36rpx;
  1038. }
  1039. .page_item_cont_T {
  1040. padding-top: 28rpx;
  1041. font-size: 28rpx;
  1042. .page_item_cont_title {
  1043. height: 100%;
  1044. font-size: 32rpx;
  1045. }
  1046. }
  1047. .page_item_cont_B {
  1048. padding-top: 28rpx;
  1049. margin-bottom: 28rpx;
  1050. .page_item_cont_title {
  1051. height: 60rpx;
  1052. font-size: 32rpx;
  1053. }
  1054. .page_item_cont_title1 {
  1055. height: 60rpx;
  1056. line-height: 60rpx;
  1057. font-size: 32rpx;
  1058. padding-left: 64rpx;
  1059. }
  1060. }
  1061. }
  1062. .page_item_foot {
  1063. border-top: 2rpx dashed #e5e9ed;
  1064. border-bottom: 2rpx dashed #e5e9ed;
  1065. padding: 28rpx 16rpx;
  1066. text-align: left;
  1067. .page_item_foot_text {
  1068. height: 48rpx;
  1069. font-size: 32rpx;
  1070. line-height: 48rpx;
  1071. margin-bottom: 20rpx;
  1072. .text1 {
  1073. color: rgb(102, 102, 102);
  1074. }
  1075. .text2 {
  1076. float: right;
  1077. font-weight: 700;
  1078. }
  1079. }
  1080. }
  1081. #infos {
  1082. display: none;
  1083. }
  1084. .page_item_infos {
  1085. padding-bottom: 20rpx;
  1086. border-bottom: 2rpx dashed #e5e9ed;
  1087. .page_item_info2 {
  1088. text-align: left;
  1089. line-height: 60rpx;
  1090. font-size: 32rpx;
  1091. padding-left: 16rpx;
  1092. .page_item_foot_text {
  1093. height: 48rpx;
  1094. font-size: 32rpx;
  1095. line-height: 48rpx;
  1096. margin-bottom: 20rpx;
  1097. .text1 {
  1098. color: rgb(102, 102, 102);
  1099. }
  1100. .text2 {
  1101. float: right;
  1102. font-weight: 700;
  1103. }
  1104. }
  1105. }
  1106. }
  1107. }
  1108. }
  1109. .foot_btn2 {
  1110. position: fixed;
  1111. bottom: 0;
  1112. right: 20rpx;
  1113. left: 20rpx;
  1114. line-height: 66rpx;
  1115. height: 100rpx;
  1116. border-top: 2rpx solid #e5e9ed;
  1117. background: #f9fafb;
  1118. display: flex;
  1119. justify-content: space-between;
  1120. .btn1,
  1121. .btn2 {
  1122. height: 66rpx;
  1123. width: 32%;
  1124. background-image: linear-gradient(to right, #72c172, #3bb197);
  1125. color: #fff;
  1126. border-radius: 8rpx;
  1127. font-size: 32rpx;
  1128. margin-top: 16rpx;
  1129. text-align: center;
  1130. }
  1131. .btn3 {
  1132. height: 66rpx;
  1133. width: 48%;
  1134. background-image: linear-gradient(to right, #72c172, #3bb197);
  1135. color: #fff;
  1136. border-radius: 8rpx;
  1137. font-size: 32rpx;
  1138. margin-top: 16rpx;
  1139. text-align: center;
  1140. }
  1141. }
  1142. }
  1143. }
  1144. </style>