receipt_infopage.vue 36 KB

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