receipt_infopage.vue 35 KB

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