receipt_infopage.vue 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058
  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.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. overflow: hidden;
  717. padding: 0 16rpx;
  718. border: 2rpx solid #e5e9ed;
  719. .L {
  720. width: 40rpx;
  721. height: 40rpx;
  722. border-radius: 50%;
  723. background: #f9fafb;
  724. position: relative;
  725. left: -50rpx;
  726. top: 66rpx;
  727. }
  728. .R {
  729. width: 40rpx;
  730. height: 40rpx;
  731. border-radius: 50%;
  732. background: #f9fafb;
  733. position: relative;
  734. float: right;
  735. right: -50rpx;
  736. top: 26rpx;
  737. }
  738. .starting {
  739. width: 50rpx;
  740. height: 50rpx;
  741. color: #fff;
  742. background: #49b856;
  743. display: inline-block;
  744. border-radius: 50%;
  745. text-align: center;
  746. line-height: 46rpx;
  747. font-size: 32rpx;
  748. margin-right: 6rpx;
  749. }
  750. .End {
  751. width: 50rpx;
  752. height: 50rpx;
  753. color: #fff;
  754. background: #39b199;
  755. display: inline-block;
  756. border-radius: 50%;
  757. text-align: center;
  758. line-height: 46rpx;
  759. font-size: 32rpx;
  760. margin-right: 6rpx;
  761. }
  762. .page_item_top {
  763. height: 86rpx;
  764. border-bottom: 2rpx dashed #e5e9ed;
  765. padding: 0 16rpx;
  766. .page_item_top_L {
  767. height: 100%;
  768. float: left;
  769. line-height: 88rpx;
  770. .emergencys {
  771. background: #ff3b53 !important;
  772. width: 124rpx !important;
  773. }
  774. .emergency {
  775. background: #ff3b53 !important;
  776. }
  777. .emergency1 {
  778. background: #49b856 !important;
  779. }
  780. .page_item_cont_start {
  781. text-align: center;
  782. height: 44rpx;
  783. width: 104rpx;
  784. line-height: 44rpx;
  785. border-radius: 8rpx;
  786. background: #49b856;
  787. color: #fff;
  788. display: inline-block;
  789. font-size: 28rpx;
  790. .cubeic-star {
  791. margin-right: 8rpx;
  792. }
  793. }
  794. .L_time {
  795. color: #6cc076;
  796. font-size: 32rpx;
  797. }
  798. .L_text {
  799. font-size: 32rpx;
  800. display: inline-block;
  801. font-weight: 700;
  802. margin-right: 16rpx;
  803. }
  804. }
  805. .page_item_top_R {
  806. height: 60rpx;
  807. float: right;
  808. padding-top: 20rpx;
  809. font-size: 32rpx;
  810. position: absolute;
  811. right: 50rpx;
  812. .L_iocn {
  813. display: inline-block;
  814. height: 52rpx;
  815. line-height: 48rpx;
  816. color: rgb(7, 134, 60);
  817. font-size: 36rpx;
  818. font-weight: 700;
  819. }
  820. }
  821. }
  822. .page_item_cont {
  823. min-height: 180rpx;
  824. // max-height: 424rpx;
  825. padding: 0 16rpx;
  826. text-align: left;
  827. position: relative;
  828. .text_big {
  829. font-size: 32rpx;
  830. position: absolute;
  831. right: 16rpx;
  832. font-weight: 700;
  833. margin-top: 10rpx;
  834. }
  835. .text_big2 {
  836. font-size: 32rpx;
  837. position: absolute;
  838. right: 16rpx;
  839. font-weight: 700;
  840. }
  841. .line {
  842. height: 20rpx;
  843. width: 2rpx;
  844. border-left: 2rpx solid #e5e9ed;
  845. position: absolute;
  846. top: 82rpx;
  847. left: 40rpx;
  848. }
  849. .lines {
  850. height: 40%;
  851. width: 2rpx;
  852. border-left: 2rpx solid #e5e9ed;
  853. position: absolute;
  854. top: 23%;
  855. left: 36rpx;
  856. }
  857. .page_item_cont_T {
  858. padding-top: 28rpx;
  859. font-size: 28rpx;
  860. .page_item_cont_title {
  861. height: 100%;
  862. font-size: 32rpx;
  863. }
  864. }
  865. .page_item_cont_B {
  866. padding-top: 28rpx;
  867. margin-bottom: 28rpx;
  868. .page_item_cont_title {
  869. height: 60rpx;
  870. font-size: 32rpx;
  871. }
  872. .page_item_cont_title1 {
  873. height: 60rpx;
  874. line-height: 60rpx;
  875. font-size: 32rpx;
  876. padding-left: 64rpx;
  877. }
  878. }
  879. }
  880. .page_item_foot {
  881. border-top: 2rpx dashed #e5e9ed;
  882. border-bottom: 2rpx dashed #e5e9ed;
  883. padding: 28rpx 16rpx;
  884. text-align: left;
  885. .page_item_foot_text {
  886. font-size: 32rpx;
  887. margin-bottom: 20rpx;
  888. .text1 {
  889. color: rgb(102, 102, 102);
  890. }
  891. .text2 {
  892. float: right;
  893. font-weight: 700;
  894. }
  895. }
  896. }
  897. .page_item_info {
  898. padding: 20rpx 16rpx;
  899. text-align: left;
  900. line-height: 60rpx;
  901. font-size: 32rpx;
  902. .spe_list {
  903. padding: 32rpx 0;
  904. border-top: 2rpx solid #e5e9ed;
  905. .page_item_info_title {
  906. color: #666;
  907. }
  908. }
  909. .page_item_info_title {
  910. font-weight: 700;
  911. }
  912. .text {
  913. float: right;
  914. font-weight: 700;
  915. .page_item_info_txt {
  916. color: #49b856;
  917. margin-left: 8rpx;
  918. }
  919. }
  920. }
  921. #infos {
  922. height: 0;
  923. overflow: hidden;
  924. }
  925. .page_item_infos {
  926. padding-bottom: 20rpx;
  927. border-bottom: 2rpx dashed #e5e9ed;
  928. .page_item_info2 {
  929. text-align: left;
  930. line-height: 60rpx;
  931. font-size: 32rpx;
  932. padding-left: 16rpx;
  933. .page_item_foot_text {
  934. font-size: 32rpx;
  935. margin-bottom: 20rpx;
  936. .text1 {
  937. color: rgb(102, 102, 102);
  938. }
  939. .text2 {
  940. float: right;
  941. font-weight: 700;
  942. }
  943. }
  944. }
  945. }
  946. #pulldown {
  947. color: #49b856;
  948. font-size: 36rpx;
  949. height: 60rpx;
  950. text-align: center;
  951. .cubeic-pulldown {
  952. font-size: 48rpx;
  953. position: relative;
  954. bottom: 6rpx;
  955. }
  956. }
  957. #pullup {
  958. color: #49b856;
  959. font-size: 36rpx;
  960. height: 60rpx;
  961. text-align: center;
  962. .cubeic-pullup {
  963. font-size: 48rpx;
  964. position: relative;
  965. top: 12rpx;
  966. }
  967. }
  968. }
  969. .foot_btn2 {
  970. position: fixed;
  971. bottom: 0;
  972. right: 20rpx;
  973. left: 20rpx;
  974. line-height: 66rpx;
  975. height: 100rpx;
  976. border-top: 2rpx solid #e5e9ed;
  977. background: #f9fafb;
  978. display: flex;
  979. justify-content: space-between;
  980. .btn2 {
  981. height: 66rpx;
  982. width: 100%;
  983. margin: 0 1%;
  984. background-image: linear-gradient(to right, #72c172, #3bb197);
  985. color: #fff;
  986. border-radius: 8rpx;
  987. font-size: 32rpx;
  988. margin-top: 16rpx;
  989. text-align: center;
  990. }
  991. .btn3 {
  992. height: 66rpx;
  993. width: 48%;
  994. margin: 0 1%;
  995. background-image: linear-gradient(to right, #72c172, #3bb197);
  996. color: #fff;
  997. border-radius: 8rpx;
  998. font-size: 32rpx;
  999. margin-top: 16rpx;
  1000. text-align: center;
  1001. }
  1002. }
  1003. }
  1004. </style>