receipt_infopage.vue 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057
  1. <template>
  2. <view class="Receipt_infopage" v-if="Object.keys(infoDATA).length > 0">
  3. <view class="title">工单信息</view>
  4. <view class="page_item">
  5. <view class="page_item_top">
  6. <view class="page_item_top_L">
  7. <text class="L_text">单号:{{ infoDATA.gdcode }}</text>
  8. <view class="page_item_cont_start emergency1" v-if="infoDATA.emergencyType.value == 1">
  9. <text>
  10. <text class="cubeic-star icon_transport transport-shiwujiaoxing"></text>
  11. {{ infoDATA.emergencyType.name }}
  12. </text>
  13. </view>
  14. <view class="page_item_cont_start emergency" v-if="infoDATA.emergencyType.value == 2">
  15. <text>
  16. <text class="cubeic-star icon_transport transport-shiwujiaoxing"></text>
  17. {{ infoDATA.emergencyType.name }}
  18. </text>
  19. </view>
  20. <view class="page_item_cont_start emergencys" v-if="infoDATA.emergencyType.value == 3">
  21. <text>
  22. <text class="cubeic-star icon_transport transport-shiwujiaoxing"></text>
  23. {{ infoDATA.emergencyType.name }}
  24. </text>
  25. </view>
  26. </view>
  27. <view class="page_item_top_R">
  28. <!-- <text class="L_iocn">{{infoDATA.taskType.associationType.name}}</text> -->
  29. <text class="L_iocn" v-if="infoDATA.taskType.associationType.value == 'specimen'">标本</text>
  30. <text class="L_iocn" v-if="infoDATA.taskType.associationType.value == 'specimenPlan'">标本</text>
  31. <text class="L_iocn" v-if="infoDATA.taskType.associationType.value == 'drugsBag'">药品</text>
  32. <text class="L_iocn" v-if="infoDATA.taskType.associationType.value == 'jPBag'">静配</text>
  33. <text class="L_iocn" v-if="infoDATA.taskType.associationType.value == 'inspect'">患者陪检</text>
  34. <text class="L_iocn" v-if="infoDATA.taskType.associationType.value == 'patientTransport'">患者转运</text>
  35. <text class="L_iocn" v-if="infoDATA.taskType.associationType.value == 'other'">其他</text>
  36. </view>
  37. <view class="L"></view>
  38. <view class="R"></view>
  39. </view>
  40. <view class="page_item_cont">
  41. <view class="page_item_cont_T">
  42. <view class="page_item_cont_title">
  43. <text> <text class="starting">起</text> 点科室 </text>
  44. <text class="text_big">{{ infoDATA.startDept.dept }}</text>
  45. </view>
  46. </view>
  47. <view class="line"></view>
  48. <view class="page_item_cont_B">
  49. <view class="page_item_cont_title" v-for="(dept, index) of infoDATA.middleDept" :key="'ico' + index">
  50. <view v-if="infoDATA.taskType.associationType.value == 'inspect'">
  51. <text> <text class="End">检</text> 查科室 </text>
  52. <text class="text_big">{{ dept.dept }}</text>
  53. <view></view>
  54. </view>
  55. </view>
  56. <template v-if="infoDATA.taskType.associationType.value != 'inspect'">
  57. <view class="page_item_cont_title" v-for="(dept, i) of infoDATA.endDepts" :key="i">
  58. <view>
  59. <text> <text class="End">终</text> 点科室 </text>
  60. <text class="text_big">{{ dept.dept }}</text>
  61. </view>
  62. </view>
  63. </template>
  64. <view v-if="
  65. infoDATA.taskType.associationType.value == 'inspect' ||
  66. infoDATA.taskType.associationType.value == 'patientTransport'
  67. ">
  68. <!-- 待抢单 -->
  69. <text class="red" v-if="infoDATA.gdState.value == 2">请扫描患者腕带,或者请扫描科室码</text>
  70. <!-- 待到达 -->
  71. <text class="red" v-if="infoDATA.gdState.value == 4">请扫描患者腕带</text>
  72. <!-- 执行中 -->
  73. <text class="red" v-if="infoDATA.gdState.value == 8">请扫描检查科室码,并扫描患者腕带</text>
  74. <!-- 待送达 -->
  75. <text class="red" v-if="infoDATA.gdState.value == 5">请扫描终点科室码,并扫描患者腕带</text>
  76. </view>
  77. </view>
  78. </view>
  79. <view class="page_item_foot">
  80. <view class="page_item_foot_text">
  81. <text class="text1">状态</text>
  82. <text class="text2" v-if="
  83. !(
  84. infoDATA.gdState.value == 5 &&
  85. infoDATA.taskType.associationType.value == 'inspect'
  86. )
  87. ">{{ infoDATA.gdState.name }}</text>
  88. <text class="text2" v-if="
  89. infoDATA.gdState.value == 5 &&
  90. infoDATA.taskType.associationType.value == 'inspect'
  91. ">待送回</text>
  92. </view>
  93. <view class="page_item_foot_text">
  94. <text class="text1">执行人员</text>
  95. <text class="text2">{{ infoDATA.worker?infoDATA.worker.name:'-' }}</text>
  96. </view>
  97. <view class="page_item_foot_text" v-if="infoDATA.gdState.value == '2'">
  98. <text class="text1">预计响应时间</text>
  99. <text class="text2">{{ infoDATA.estimeResponseTime || 0 }}</text>
  100. </view>
  101. <view class="page_item_foot_text" v-if="infoDATA.gdState.value == '5'">
  102. <text class="text1" v-if="!(infoDATA.taskType.associationType.value == 'inspect')">预计送达时间</text>
  103. <text class="text1" v-if="infoDATA.taskType.associationType.value == 'inspect'">预计送回时间</text>
  104. <text class="text2">{{ infoDATA.estimeCompleteTime || 0 }}</text>
  105. </view>
  106. <view class="page_item_foot_text" v-if="infoDATA.gdState.value == '4'">
  107. <text class="text1">预计到达时间</text>
  108. <text class="text2">{{ infoDATA.estimateArriveTime || 0 }}</text>
  109. </view>
  110. <view class="page_item_foot_text">
  111. <text class="text1">创建时间</text>
  112. <text class="text2">{{ infoDATA.startTime }}</text>
  113. </view>
  114. <view class="page_item_foot_text" v-if="
  115. infoDATA.taskType.associationType.value == 'inspect' ||
  116. infoDATA.taskType.associationType.value == 'patientTransport'
  117. ">
  118. <text class="text1">床号</text>
  119. <text class="text2">{{
  120. infoDATA.patient ? infoDATA.patient.bedNum : "-"
  121. }}</text>
  122. </view>
  123. <view class="page_item_foot_text" v-if="
  124. infoDATA.taskType.associationType.value == 'inspect' ||
  125. infoDATA.taskType.associationType.value == 'patientTransport'
  126. ">
  127. <text class="text1">携带设备</text>
  128. <text class="text2">{{ infoDATA.goods || "暂无" }}</text>
  129. </view>
  130. <view class="page_item_foot_text" v-if="
  131. infoDATA.taskType.associationType.value == 'inspect' ||
  132. infoDATA.taskType.associationType.value == 'patientTransport'
  133. ">
  134. <text class="text1">患者姓名</text>
  135. <text class="text2">{{ infoDATA.patient.patientName }}({{
  136. infoDATA.patient.patientCode
  137. }})</text>
  138. </view>
  139. <view class="page_item_foot_text" v-if="
  140. (infoDATA.taskType.associationType.value == 'inspect' ||
  141. infoDATA.taskType.associationType.value == 'patientTransport')&&infoDATA.patient.careLevel
  142. ">
  143. <text class="text1">{{infoDATA.patient.careLevel.desc}}</text>
  144. <text class="text2"
  145. :class="[(infoDATA.patient.careLevel.value==0||infoDATA.patient.careLevel.value==1)?'red':'green']">{{infoDATA.patient.careLevel.name}}</text>
  146. </view>
  147. <view class="page_item_foot_text" v-if="
  148. (infoDATA.taskType.associationType.value == 'inspect' ||
  149. infoDATA.taskType.associationType.value == 'patientTransport')&&infoDATA.patient.illnessState
  150. ">
  151. <text class="text1">{{infoDATA.patient.illnessState.desc}}</text>
  152. <text class="text2"
  153. :class="{red:infoDATA.patient.illnessState.value==2||infoDATA.patient.illnessState.value==3}">{{infoDATA.patient.illnessState.name}}</text>
  154. </view>
  155. <view class="page_item_foot_text"
  156. v-if="
  157. (infoDATA.taskType.associationType.value == 'inspect' ||
  158. infoDATA.taskType.associationType.value == 'patientTransport')&&(infoDATA.isAccompany===1||infoDATA.isAccompany===0)">
  159. <text class="text1">陪同情况</text>
  160. <text class="text2"
  161. :class="{red:infoDATA.isAccompany===1}">{{ infoDATA.isAccompany===1?'需要医护陪同':'无需医护陪同'}}</text>
  162. </view>
  163. </view>
  164. <!-- 药包 -->
  165. <view class="page_item_info" v-if="infoDATA.taskType.associationType.value == 'drugsBag'">
  166. <text class="page_item_info_title">药包编码</text>
  167. <text class="text">{{ infoDATA.drugs?infoDATA.drugs.packid:'无' }}</text>
  168. </view>
  169. <!-- 标本 -->
  170. <view class="page_item_info" v-if="
  171. infoDATA.taskType.associationType.value == 'specimen' ||
  172. infoDATA.taskType.associationType.value == 'specimenPlan'
  173. ">
  174. <view>
  175. <text class="page_item_info_title">标本信息</text>
  176. <text class="text">
  177. 预计标本总数
  178. <text class="page_item_info_txt">{{
  179. infoDATA.expectReceiveNum || 0
  180. }}</text>
  181. </text>
  182. </view>
  183. <view v-for="spe in infoDATA.specimenSet" :key="spe.id" class="spe_list">
  184. <view>
  185. <text class="page_item_info_title">标本类型</text>
  186. <text class="text">{{ spe.stype ? spe.stype.name : "-" }}({{
  187. spe.urgent == 1 ? "急" : "普"
  188. }})</text>
  189. </view>
  190. <view>
  191. <text class="page_item_info_title">标本编码</text>
  192. <text class="text">{{ spe.scode }}</text>
  193. </view>
  194. <view>
  195. <text class="page_item_info_title">患者姓名</text>
  196. <text class="text">{{ spe.patientName }}</text>
  197. </view>
  198. <view>
  199. <text class="page_item_info_title">目标科室</text>
  200. <text class="text">{{
  201. spe.checkDept ? spe.checkDept.dept : "-"
  202. }}</text>
  203. </view>
  204. </view>
  205. </view>
  206. <!-- 静配 -->
  207. <view class="page_item_info" v-if="infoDATA.taskType.associationType.value == 'jPBag'">
  208. <text class="page_item_info_title">药包编码</text>
  209. <text class="text">{{ infoDATA.staticDistri?infoDATA.staticDistri.packid:'无' }}</text>
  210. </view>
  211. <!-- 陪检 -->
  212. <view v-if="infoDATA.taskType.associationType.value == 'inspect'">
  213. <view class="page_item_info">
  214. <text class="page_item_info_title">检查信息</text>
  215. </view>
  216. <view id="infos" :animation="animationData">
  217. <view class="page_item_infos" v-for="(item, index) of infoDATA.checkList" :key="index">
  218. <view class="page_item_info2">
  219. <view class="page_item_foot_text">
  220. <text class="text1">检查科室</text>
  221. <text class="text2">{{ item.execDept?item.execDept.dept:'-' }}</text>
  222. </view>
  223. <view class="page_item_foot_text">
  224. <text class="text1">检查项</text>
  225. <text class="text2">{{ item.inspectName||'-' }}</text>
  226. </view>
  227. <view class="page_item_foot_text">
  228. <text class="text1">叫号信息</text>
  229. <text class="text2">{{ item.reservationNumber||'-' }}</text>
  230. </view>
  231. <view class="page_item_foot_text">
  232. <text class="text1">预约时间</text>
  233. <text class="text2">{{ item.yyTime || "-" }}</text>
  234. </view>
  235. </view>
  236. </view>
  237. </view>
  238. <view id="pulldown" @click="show('show')" v-if="showType == 'hiddle'">
  239. 点击可查看检查详情
  240. <text class="cubeic-pulldown icon_transport transport-paixujiantouxia"></text>
  241. </view>
  242. <view id="pullup" @click="show('hiddle')" v-if="showType == 'show'">
  243. 点击可收起检查详情
  244. <text class="cubeic-pullup icon_transport transport-paixujiantoushang"></text>
  245. </view>
  246. </view>
  247. <view class="page_item_info" v-if="infoDATA.workOrderRemark !== undefined">
  248. <view class="page_item_foot_text">
  249. <view class="text1">工单备注</view>
  250. <text class="text2">{{ infoDATA.workOrderRemark }}</text>
  251. </view>
  252. </view>
  253. </view>
  254. <view class="foot_btn2">
  255. <view class="btn2" @click="showAlert" v-if="infoDATA.gdState.value == 2">抢单</view>
  256. <!-- 如果不是静配,药配,标本配送,标本轮巡 -->
  257. <template
  258. v-if="((!infoDATA.worker)||(infoDATA.worker&&infoDATA.worker.id == currentUserId))&&infoDATA.gdState.value != 6&&infoDATA.gdState.value != 7&&infoDATA.gdState.value != 11">
  259. <view :class="[infoDATA.taskType.specialCloseButton == 1 ? 'btn3' : 'btn2']" @click="Scan_ss(infoDATA)" v-if="
  260. infoDATA.gdState.value != 2 &&
  261. infoDATA.taskType.associationType.value != 'jPBag' &&
  262. infoDATA.taskType.associationType.value != 'drugsBag' &&
  263. infoDATA.taskType.associationType.value != 'specimen' &&
  264. infoDATA.taskType.associationType.value != 'specimenPlan'
  265. " hover-class="seimin-btn-hover">扫一扫</view>
  266. <view :class="[infoDATA.taskType.specialCloseButton == 1 ? 'btn3' : 'btn2']" @click="photograph(infoDATA)" v-if="
  267. infoDATA.gdState.value != 2 &&
  268. infoDATA.taskType.associationType.value != 'jPBag' &&
  269. infoDATA.taskType.associationType.value != 'drugsBag' &&
  270. infoDATA.taskType.associationType.value != 'specimen' &&
  271. infoDATA.taskType.associationType.value != 'specimenPlan' &&
  272. infoDATA.taskType.associationType.value != 'other' &&
  273. infoDATA.gdState.value == 4
  274. " hover-class="seimin-btn-hover">拍照</view>
  275. <view class="btn3" @click="specialCloseClick()" v-if="
  276. infoDATA.gdState.value != 2 &&
  277. infoDATA.taskType.associationType.value != 'jPBag' &&
  278. infoDATA.taskType.associationType.value != 'drugsBag' &&
  279. infoDATA.taskType.associationType.value != 'specimen' &&
  280. infoDATA.taskType.associationType.value != 'specimenPlan' &&
  281. infoDATA.taskType.specialCloseButton == 1
  282. " hover-class="seimin-btn-hover">特殊情况关闭</view>
  283. </template>
  284. <!-- 如果不是患者陪检或患者转运或其他 -->
  285. <view :class="[infoDATA.taskType.specialCloseButton == 1 ? 'btn3' : 'btn2']" @click="Scan_s(infoDATA)" v-if="
  286. infoDATA.gdState.value != 2 &&
  287. infoDATA.taskType.associationType.value != 'patientTransport' &&
  288. infoDATA.taskType.associationType.value != 'inspect' &&
  289. infoDATA.taskType.associationType.value != 'other'
  290. " hover-class="seimin-btn-hover">扫一扫</view>
  291. <view class="btn3" @click="specialCloseClick()" v-if="
  292. infoDATA.gdState.value != 2 &&
  293. infoDATA.taskType.associationType.value != 'patientTransport' &&
  294. infoDATA.taskType.associationType.value != 'inspect' &&
  295. infoDATA.taskType.associationType.value != 'other' &&
  296. infoDATA.taskType.specialCloseButton == 1
  297. " hover-class="seimin-btn-hover">特殊情况关闭</view>
  298. </view>
  299. <!-- 弹窗 -->
  300. <showModel :title="models.title" :icon="models.icon" :disjunctor="models.disjunctor" :content="models.content"
  301. @know="know" :operate="models.operate" @ok="ok" @cancel="cancel" :textareaFlag="textareaFlag"
  302. @textareaInput="textareaInput"></showModel>
  303. </view>
  304. </template>
  305. <script>
  306. import showModel from "../../components/showModel/showModel.vue";
  307. import {
  308. get,
  309. post,
  310. SM,
  311. webHandle
  312. } from "../../http/http.js";
  313. import {
  314. photographTool
  315. } from "../../tools/photograph.js";
  316. export default {
  317. data() {
  318. return {
  319. currentUserId: 0,
  320. // 弹窗model
  321. models: {
  322. disjunctor: false,
  323. },
  324. showType: "hiddle",
  325. infoDATA: {},
  326. dataId: "",
  327. animationData: {},
  328. // 特殊情况关闭原因开关
  329. textareaFlag: false,
  330. textareaText: "",
  331. };
  332. },
  333. methods: {
  334. // 拍照
  335. photograph(data) {
  336. photographTool(data);
  337. },
  338. // 特殊情况输入文字
  339. textareaInput(value) {
  340. this.textareaText = value;
  341. if (value.trim().length >= 10) {
  342. this.models.operate = {
  343. ok: "确定",
  344. cancel: "取消",
  345. };
  346. } else {
  347. this.models.operate = {
  348. cancel: "取消",
  349. };
  350. }
  351. },
  352. // 特殊情况关闭按钮
  353. specialCloseClick() {
  354. this.textareaFlag = true;
  355. this.models = {
  356. title: "特殊情况关闭",
  357. disjunctor: true,
  358. content: "",
  359. icon: "",
  360. operate: {
  361. cancel: "取消",
  362. },
  363. };
  364. },
  365. ok() {
  366. uni.showLoading({
  367. title: "加载中",
  368. mask: true,
  369. });
  370. post("/workerOrder/specialCaseClose", {
  371. workOrderId: this.dataId,
  372. reason: this.textareaText.trim(),
  373. }).then((result) => {
  374. this.models.disjunctor = false;
  375. this.textareaFlag = false;
  376. this.textareaText = "";
  377. if (result.state == 200) {
  378. setTimeout(() => {
  379. uni.hideLoading();
  380. this.models = {
  381. disjunctor: true,
  382. content: "工单关闭成功",
  383. icon: "success",
  384. operate: {
  385. know: "知道了",
  386. },
  387. };
  388. }, 100);
  389. } else {
  390. setTimeout(() => {
  391. uni.hideLoading();
  392. this.models = {
  393. disjunctor: true,
  394. content: "工单关闭失败",
  395. icon: "error",
  396. operate: {
  397. know: "知道了",
  398. },
  399. };
  400. }, 100);
  401. }
  402. });
  403. },
  404. cancel() {
  405. this.models.disjunctor = false;
  406. this.textareaFlag = false;
  407. this.textareaText = "";
  408. },
  409. // 点击可查看检查详情
  410. show(type) {
  411. this.showType = type;
  412. if (type === "show") {
  413. //展开
  414. // 计算高度
  415. const query = uni.createSelectorQuery().in(this);
  416. query
  417. .selectAll(".page_item_infos")
  418. .boundingClientRect((data) => {
  419. let len = data.reduce((prev, current) => {
  420. return prev + current.height;
  421. }, 0);
  422. this.animation.height(len).step();
  423. this.animationData = this.animation.export();
  424. })
  425. .exec();
  426. } else if (type === "hiddle") {
  427. this.animation.height(0).step();
  428. this.animationData = this.animation.export();
  429. }
  430. },
  431. // 如果不是静配,药配,标本配送,标本轮巡
  432. // 扫码
  433. Scan_ss(data) {
  434. let isKs = 0;
  435. let ids = [];
  436. let id = data.id;
  437. ids.push(id);
  438. let list = {
  439. code: "",
  440. ids: ids,
  441. };
  442. let code = "";
  443. let type = "";
  444. SM().then((ress1) => {
  445. uni.showLoading({
  446. title: "加载中",
  447. mask: true,
  448. });
  449. //检验二维码的有效性
  450. post("/dept/scanning", {
  451. content: ress1,
  452. }).then((result) => {
  453. if (result.state == 200 || result.state == 201) {
  454. let ress = result.code;
  455. if (ress) {
  456. if (
  457. data.gdState.value == "4" &&
  458. data.taskType.associationType.value == "inspect"
  459. ) {
  460. list.code = ress; //其他
  461. type = "handleIns";
  462. }
  463. if (
  464. (data.taskType.associationType.value == "other" &&
  465. data.gdState.value == "4") ||
  466. data.gdState.value == "5"
  467. ) {
  468. code = ress; //其他=终点
  469. type = "orderSign/" + code;
  470. list = ids;
  471. isKs = 1;
  472. }
  473. if (
  474. (data.gdState.value == "5" &&
  475. data.taskType.associationType.value == "inspect") ||
  476. data.taskType.associationType.value == "patientTransport"
  477. ) {
  478. code = ress; //患者转运--起点
  479. type = "orderSign/" + code;
  480. list = ids;
  481. isKs = 1;
  482. }
  483. if (data.gdState.value == "8") {
  484. code = ress; //患者陪检--检查
  485. type = "orderSign/" + code;
  486. list = ids;
  487. isKs = 1;
  488. }
  489. if (
  490. data.gdState.value == "4" &&
  491. data.taskType.associationType.value == "patientTransport"
  492. ) {
  493. list = {
  494. code: ress, //患者转运--检查
  495. ids: ids,
  496. };
  497. type = "handleTrans";
  498. }
  499. post("/workerOrder/" + type, list).then((res) => {
  500. uni.hideLoading();
  501. if (res) {
  502. if (res.status == 200) {
  503. if (
  504. data.gdState.value == "4" &&
  505. data.taskType.associationType.value == "other"
  506. ) {
  507. uni.navigateTo({
  508. url: `../scanning_code/scanning_code?type=${data.taskType.associationType.value}&type1=${res.type}&id=${data.id}&deptCode=${code}&dept=${res.dept}`,
  509. });
  510. }
  511. if (
  512. data.gdState.value == "4" &&
  513. data.taskType.associationType.value != "other"
  514. ) {
  515. uni.navigateTo({
  516. url: `../scanning_Result/scanning_Result?type=${
  517. data.taskType.associationType.value
  518. }&type1=${res.type}&id=${data.id}&deptCode=${
  519. list.code
  520. }&patient=${res.patient}&patientCode=${
  521. res.patientCode
  522. }&deptName=${res.deptName}&bedNum=${
  523. res.bedNum
  524. }&status=${res.status}&msg=${
  525. res.msg
  526. }&model=${encodeURIComponent(JSON.stringify(res))}`,
  527. });
  528. }
  529. if (data.gdState.value == "8") {
  530. uni.navigateTo({
  531. url: `../scanning_code/scanning_code?type=${data.taskType.associationType.value}&type1=${res.type}&id=${data.id}&deptCode=${code}&dept=${res.dept}`,
  532. });
  533. }
  534. if (data.gdState.value == "5") {
  535. uni.navigateTo({
  536. url: `../scanning_code/scanning_code?type=${data.taskType.associationType.value}&type1=${res.type}&id=${data.id}&deptCode=${code}&dept=${res.dept}`,
  537. });
  538. }
  539. } else {
  540. if (res.type == "trans-ddd-1") {
  541. //起点科室扫描腕带码失败
  542. uni.navigateTo({
  543. url: `../scanning_Result/scanning_Result?type=${data.taskType.associationType.value}&type1=${res.type}&id=${data.id}&status=600&msg=${res.msg}`,
  544. });
  545. } else {
  546. uni.navigateTo({
  547. url: `../scanning_Result/scanning_Result?type=${
  548. data.taskType.associationType.value
  549. }&type1=${res.type}&id=${data.id}&status=600&msg=${
  550. res.msg
  551. }&isKs=${isKs}&model=${encodeURIComponent(
  552. JSON.stringify(res)
  553. )}`,
  554. });
  555. }
  556. }
  557. } else {
  558. uni.navigateTo({
  559. url: `../scanning_Result/scanning_Result?id=${data.id}&status=600&msg=扫码失败!请扫描正确的二维码!&isKs=${isKs}`,
  560. });
  561. }
  562. });
  563. }
  564. } else {
  565. uni.hideLoading();
  566. uni.showToast({
  567. icon: "none",
  568. title: "请求失败!",
  569. });
  570. }
  571. });
  572. });
  573. },
  574. // 如果不是患者陪检或患者转运或其他
  575. // 扫码
  576. Scan_s(data) {
  577. let ids = [];
  578. let id = data.id;
  579. ids.push(id);
  580. let code = "";
  581. SM().then((ress1) => {
  582. uni.showLoading({
  583. title: "加载中",
  584. mask: true,
  585. });
  586. //检验二维码的有效性
  587. post("/dept/scanning", {
  588. content: ress1,
  589. }).then((result) => {
  590. if (result.state == 200 || result.state == 201) {
  591. let ress = result.code;
  592. if (ress) {
  593. code = ress;
  594. // 科室签到
  595. post("/workerOrder/orderSign/" + code, ids).then((res) => {
  596. uni.hideLoading();
  597. if (res.status == 200) {
  598. // 跳转到扫描科室
  599. // type1: res.type, //type类型
  600. // id: data.id, //工单ID
  601. // deptCode: code, //二维码
  602. // dept: res.dept //科室名称
  603. uni.navigateTo({
  604. url: `../scanning_code/scanning_code?type=${data.taskType.associationType.value}&type1=${res.type}&id=${data.id}&deptCode=${code}&dept=${res.dept}`,
  605. });
  606. } else {
  607. uni.navigateTo({
  608. url: `../scanning_Result/scanning_Result?type=${data.taskType.associationType.value}&type1=${res.type}&id=${data.id}&status=600&msg=${res.msg}&isKs=1`,
  609. });
  610. }
  611. });
  612. }
  613. } else {
  614. uni.hideLoading();
  615. uni.showToast({
  616. icon: "none",
  617. title: "请求失败!",
  618. });
  619. }
  620. });
  621. });
  622. },
  623. // 抢单->知道了
  624. know() {
  625. this.models.disjunctor = false;
  626. uni.navigateTo({
  627. url: "../receiptpage/receiptpage",
  628. });
  629. },
  630. // 抢单
  631. showAlert() {
  632. get("/workerOrder/takeOrder/" + this.infoDATA.id).then((res) => {
  633. if (res.status == 200) {
  634. this.models = {
  635. disjunctor: true,
  636. content: "接单成功",
  637. icon: "success",
  638. operate: {
  639. know: "知道了",
  640. },
  641. };
  642. } else {
  643. uni.showToast({
  644. icon: "none",
  645. title: "请求失败!",
  646. });
  647. }
  648. });
  649. },
  650. // 请求详细页面的数据
  651. getInfo(id) {
  652. uni.showLoading({
  653. title: "加载中",
  654. mask: true,
  655. });
  656. get("/api/fetchData/workOrder/" + id).then((res) => {
  657. uni.hideLoading();
  658. if (res.status == 200) {
  659. this.infoDATA = res.data;
  660. } else {
  661. uni.showToast({
  662. icon: "none",
  663. title: "请求失败!",
  664. });
  665. }
  666. });
  667. },
  668. },
  669. onLoad(options) {
  670. this.currentUserId = uni.getStorageSync('userData').user.id;
  671. let id = options.id;
  672. this.dataId = id;
  673. this.getInfo(id);
  674. // 创建动画
  675. this.animation = uni.createAnimation({
  676. duration: 500,
  677. timingFunction: "ease",
  678. });
  679. // #ifdef APP-PLUS
  680. webHandle("no", "app");
  681. // #endif
  682. // #ifdef H5
  683. webHandle("no", "wx");
  684. // #endif
  685. },
  686. onUnload() {
  687. // 页面关闭后清空数据
  688. this.animationData = {};
  689. },
  690. };
  691. </script>
  692. <style lang="less">
  693. .Receipt_infopage {
  694. padding: 0 20rpx;
  695. overflow: hidden;
  696. .red {
  697. color: red !important;
  698. font-weight: bold !important;
  699. }
  700. .green {
  701. color: #49b856 !important;
  702. font-weight: bold !important;
  703. }
  704. .title {
  705. font-size: 48rpx;
  706. margin-top: 24rpx;
  707. margin-bottom: 24rpx;
  708. text-align: center;
  709. }
  710. .page_item {
  711. margin-top: 16rpx;
  712. margin-bottom: 124rpx;
  713. min-height: 356rpx;
  714. background: #fff;
  715. border-radius: 8rpx;
  716. padding: 0 16rpx;
  717. border: 2rpx solid #e5e9ed;
  718. .L {
  719. width: 40rpx;
  720. height: 40rpx;
  721. border-radius: 50%;
  722. background: #f9fafb;
  723. position: relative;
  724. left: -50rpx;
  725. top: 66rpx;
  726. }
  727. .R {
  728. width: 40rpx;
  729. height: 40rpx;
  730. border-radius: 50%;
  731. background: #f9fafb;
  732. position: relative;
  733. float: right;
  734. right: -50rpx;
  735. top: 26rpx;
  736. }
  737. .starting {
  738. width: 50rpx;
  739. height: 50rpx;
  740. color: #fff;
  741. background: #49b856;
  742. display: inline-block;
  743. border-radius: 50%;
  744. text-align: center;
  745. line-height: 46rpx;
  746. font-size: 32rpx;
  747. margin-right: 6rpx;
  748. }
  749. .End {
  750. width: 50rpx;
  751. height: 50rpx;
  752. color: #fff;
  753. background: #39b199;
  754. display: inline-block;
  755. border-radius: 50%;
  756. text-align: center;
  757. line-height: 46rpx;
  758. font-size: 32rpx;
  759. margin-right: 6rpx;
  760. }
  761. .page_item_top {
  762. height: 86rpx;
  763. border-bottom: 2rpx dashed #e5e9ed;
  764. padding: 0 16rpx;
  765. .page_item_top_L {
  766. height: 100%;
  767. float: left;
  768. line-height: 88rpx;
  769. .emergencys {
  770. background: #ff3b53 !important;
  771. width: 124rpx !important;
  772. }
  773. .emergency {
  774. background: #ff3b53 !important;
  775. }
  776. .emergency1 {
  777. background: #49b856 !important;
  778. }
  779. .page_item_cont_start {
  780. text-align: center;
  781. height: 44rpx;
  782. width: 104rpx;
  783. line-height: 44rpx;
  784. border-radius: 8rpx;
  785. background: #49b856;
  786. color: #fff;
  787. display: inline-block;
  788. font-size: 28rpx;
  789. .cubeic-star {
  790. margin-right: 8rpx;
  791. }
  792. }
  793. .L_time {
  794. color: #6cc076;
  795. font-size: 32rpx;
  796. }
  797. .L_text {
  798. font-size: 32rpx;
  799. display: inline-block;
  800. font-weight: 700;
  801. margin-right: 16rpx;
  802. }
  803. }
  804. .page_item_top_R {
  805. height: 60rpx;
  806. float: right;
  807. padding-top: 20rpx;
  808. font-size: 32rpx;
  809. position: absolute;
  810. right: 50rpx;
  811. .L_iocn {
  812. display: inline-block;
  813. height: 52rpx;
  814. line-height: 48rpx;
  815. color: rgb(7, 134, 60);
  816. font-size: 36rpx;
  817. font-weight: 700;
  818. }
  819. }
  820. }
  821. .page_item_cont {
  822. min-height: 180rpx;
  823. // max-height: 424rpx;
  824. padding: 0 16rpx;
  825. text-align: left;
  826. position: relative;
  827. .text_big {
  828. font-size: 32rpx;
  829. position: absolute;
  830. right: 16rpx;
  831. font-weight: 700;
  832. margin-top: 10rpx;
  833. }
  834. .text_big2 {
  835. font-size: 32rpx;
  836. position: absolute;
  837. right: 16rpx;
  838. font-weight: 700;
  839. }
  840. .line {
  841. height: 20rpx;
  842. width: 2rpx;
  843. border-left: 2rpx solid #e5e9ed;
  844. position: absolute;
  845. top: 82rpx;
  846. left: 40rpx;
  847. }
  848. .lines {
  849. height: 40%;
  850. width: 2rpx;
  851. border-left: 2rpx solid #e5e9ed;
  852. position: absolute;
  853. top: 23%;
  854. left: 36rpx;
  855. }
  856. .page_item_cont_T {
  857. padding-top: 28rpx;
  858. font-size: 28rpx;
  859. .page_item_cont_title {
  860. height: 100%;
  861. font-size: 32rpx;
  862. }
  863. }
  864. .page_item_cont_B {
  865. padding-top: 28rpx;
  866. margin-bottom: 28rpx;
  867. .page_item_cont_title {
  868. height: 60rpx;
  869. font-size: 32rpx;
  870. }
  871. .page_item_cont_title1 {
  872. height: 60rpx;
  873. line-height: 60rpx;
  874. font-size: 32rpx;
  875. padding-left: 64rpx;
  876. }
  877. }
  878. }
  879. .page_item_foot {
  880. border-top: 2rpx dashed #e5e9ed;
  881. border-bottom: 2rpx dashed #e5e9ed;
  882. padding: 28rpx 16rpx;
  883. text-align: left;
  884. .page_item_foot_text {
  885. font-size: 32rpx;
  886. margin-bottom: 20rpx;
  887. .text1 {
  888. color: rgb(102, 102, 102);
  889. }
  890. .text2 {
  891. float: right;
  892. font-weight: 700;
  893. }
  894. }
  895. }
  896. .page_item_info {
  897. padding: 20rpx 16rpx;
  898. text-align: left;
  899. line-height: 60rpx;
  900. font-size: 32rpx;
  901. .spe_list {
  902. padding: 32rpx 0;
  903. border-top: 2rpx solid #e5e9ed;
  904. .page_item_info_title {
  905. color: #666;
  906. }
  907. }
  908. .page_item_info_title {
  909. font-weight: 700;
  910. }
  911. .text {
  912. float: right;
  913. font-weight: 700;
  914. .page_item_info_txt {
  915. color: #49b856;
  916. margin-left: 8rpx;
  917. }
  918. }
  919. }
  920. #infos {
  921. height: 0;
  922. overflow: hidden;
  923. }
  924. .page_item_infos {
  925. padding-bottom: 20rpx;
  926. border-bottom: 2rpx dashed #e5e9ed;
  927. .page_item_info2 {
  928. text-align: left;
  929. line-height: 60rpx;
  930. font-size: 32rpx;
  931. padding-left: 16rpx;
  932. .page_item_foot_text {
  933. font-size: 32rpx;
  934. margin-bottom: 20rpx;
  935. .text1 {
  936. color: rgb(102, 102, 102);
  937. }
  938. .text2 {
  939. float: right;
  940. font-weight: 700;
  941. }
  942. }
  943. }
  944. }
  945. #pulldown {
  946. color: #49b856;
  947. font-size: 36rpx;
  948. height: 60rpx;
  949. text-align: center;
  950. .cubeic-pulldown {
  951. font-size: 48rpx;
  952. position: relative;
  953. bottom: 6rpx;
  954. }
  955. }
  956. #pullup {
  957. color: #49b856;
  958. font-size: 36rpx;
  959. height: 60rpx;
  960. text-align: center;
  961. .cubeic-pullup {
  962. font-size: 48rpx;
  963. position: relative;
  964. top: 12rpx;
  965. }
  966. }
  967. }
  968. .foot_btn2 {
  969. position: fixed;
  970. bottom: 0;
  971. right: 20rpx;
  972. left: 20rpx;
  973. line-height: 66rpx;
  974. height: 100rpx;
  975. border-top: 2rpx solid #e5e9ed;
  976. background: #f9fafb;
  977. display: flex;
  978. justify-content: space-between;
  979. .btn2 {
  980. height: 66rpx;
  981. width: 100%;
  982. margin: 0 1%;
  983. background-image: linear-gradient(to right, #72c172, #3bb197);
  984. color: #fff;
  985. border-radius: 8rpx;
  986. font-size: 32rpx;
  987. margin-top: 16rpx;
  988. text-align: center;
  989. }
  990. .btn3 {
  991. height: 66rpx;
  992. width: 48%;
  993. margin: 0 1%;
  994. background-image: linear-gradient(to right, #72c172, #3bb197);
  995. color: #fff;
  996. border-radius: 8rpx;
  997. font-size: 32rpx;
  998. margin-top: 16rpx;
  999. text-align: center;
  1000. }
  1001. }
  1002. }
  1003. </style>