receipt_infopage.vue 35 KB

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