scanning_djEnd.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765
  1. <template>
  2. <view class="Scanning_djEnd">
  3. <view class="Scanning_top" v-if="infoDATA.status == 200">
  4. <view class="Scanning_top_icon">
  5. <text class="cubeic-ok icon_transport transport-duigou"></text>
  6. </view>
  7. <view class="Scanning_top_text">
  8. <view class="text1">操作成功</view>
  9. </view>
  10. </view>
  11. <view class="Scanning_top" v-if="
  12. infoDATA.status == 10005 ||
  13. infoDATA.status == 100018 ||
  14. infoDATA.status == 10004 ||
  15. infoDATA.status == 100021 ||
  16. infoDATA.status == 500 ||
  17. infoDATA.status == 100031
  18. ">
  19. <view class="Scanning_top_icon">
  20. <text class="cubeic-close icon_transport transport-shibai"></text>
  21. </view>
  22. <view class="Scanning_top_text">
  23. <view class="text1">操作失败</view>
  24. <view class="text1 f30" v-if="queryObj.qrcode !== undefined">扫描内容:{{queryObj.qrcode}}</view>
  25. </view>
  26. </view>
  27. <view class="Scanning_cont" v-if="
  28. (infoDATA.status == 200 && type == 'specimenPlan') ||
  29. (infoDATA.status == 200 && type == 'specimen')
  30. "></view>
  31. <view class="Scanning_cont" v-if="
  32. (infoDATA.status == 200 && type == 'patientTransport') ||
  33. (infoDATA.status == 200 && type == 'inspect')
  34. ">扫描患者腕带并将患者送往目标科室.</view>
  35. <view class="Scanning_cont" v-if="
  36. (infoDATA.status == 200 &&
  37. type == 'drugsBag' &&
  38. (type1 == 'drug-ddd-2' || type1 == 'drug-dsd-2')) ||
  39. (infoDATA.status == 200 &&
  40. type == 'jPBag' &&
  41. (type1 == 'jp-ddd-2' || type1 == 'jp-dsd-2'))
  42. ">已到达目标科室,请扫描药包或静配包.</view>
  43. <view class="Scanning_cont" v-if="
  44. (infoDATA.status == 200 &&
  45. type == 'drugsBag' &&
  46. (type1 == 'drug-ddd-1' || type1 == 'drug-dsd-1')) ||
  47. (infoDATA.status == 200 &&
  48. type == 'jPBag' &&
  49. (type1 == 'jp-ddd-1' || type1 == 'jp-dsd-1'))
  50. ">
  51. <view v-if="accountObj"> 交接人账号 : {{ accountObj.account }} </view>
  52. <view v-if="accountObj"> 交接人姓名 : {{ accountObj.accountName }} </view>
  53. <view>已到达目标科室,请取药包或静配包后送达目标科室.</view>
  54. </view>
  55. <view class="Scanning_cont" v-if="
  56. infoDATA.status == 200 && type == 'other' && infoDATA.type == 'qt-ddd-1'
  57. ">已到达目标科室,请执行该工单.</view>
  58. <view class="Scanning_cont" v-if="
  59. (infoDATA.state == 'finish' &&
  60. infoDATA.status == 200 &&
  61. type == 'specimenPlan' &&
  62. infoDATA.type == 'plan-spe-dsd-1') ||
  63. (infoDATA.status == 200 &&
  64. type == 'other' &&
  65. infoDATA.type == 'qt-dsd-1')
  66. ">已到达目标科室,工单已完成.</view>
  67. <view class="Scanning_cont" v-if="
  68. (infoDATA.status == 200 &&
  69. type == 'specimenPlan' &&
  70. infoDATA.type != 'plan-spe-ddd-1' &&
  71. infoDATA.type != 'plan-spe-dsd-1') ||
  72. (infoDATA.status == 200 &&
  73. type == 'specimen' &&
  74. infoDATA.type != 'spe-ddd-1' &&
  75. infoDATA.type != 'spe-dsd-1')
  76. ">已到达目标科室,请扫描标本.</view>
  77. <view class="Scanning_cont" v-if="
  78. (infoDATA.status == 200 &&
  79. type == 'specimenPlan' &&
  80. infoDATA.type == 'plan-spe-ddd-1') ||
  81. (infoDATA.status == 200 &&
  82. type == 'specimen' &&
  83. infoDATA.type == 'spe-ddd-1')
  84. ">
  85. <view v-if="accountObj"> 交接人账号 : {{ accountObj.account }} </view>
  86. <view v-if="accountObj"> 交接人姓名 : {{ accountObj.accountName }} </view>
  87. <view>已到达目标科室,请取标本后送达目标科室.</view>
  88. </view>
  89. <view class="Scanning_cont" v-if="
  90. (infoDATA.state != 'finish' &&
  91. infoDATA.status == 200 &&
  92. type == 'specimenPlan' &&
  93. infoDATA.type == 'plan-spe-dsd-1') ||
  94. (infoDATA.status == 200 &&
  95. type == 'specimen' &&
  96. infoDATA.type == 'spe-dsd-1')
  97. ">
  98. <view v-if="accountObj"> 交接人账号 : {{ accountObj.account }} </view>
  99. <view v-if="accountObj"> 交接人姓名 : {{ accountObj.accountName }} </view>
  100. <view>已到达目标科室,请放置标本完成该工单.</view>
  101. </view>
  102. <view class="Scanning_cont" v-if="infoDATA.status != 200">
  103. <view>{{ infoDATA.msg }}</view>
  104. </view>
  105. <view class="foot_btn" v-if="type == 'inspect' || type == 'patientTransport'">
  106. <view class="btn3" @click="Scanning_again()">继续扫描</view>
  107. </view>
  108. <view class="foot_btn" v-if="type == 'drugsBag' || type == 'jPBag'">
  109. <view class="btn3" @click="Scanning_again()" v-if="
  110. type1 === 'drug-ddd-2' ||
  111. type1 === 'drug-dsd-2' ||
  112. type1 === 'jp-ddd-2' ||
  113. type1 === 'jp-dsd-2'
  114. ">继续扫描</view>
  115. <view class="btn3" @click="showAlert()" v-if="
  116. type1 === 'drug-ddd-1' ||
  117. type1 === 'drug-dsd-1' ||
  118. type1 === 'jp-ddd-1' ||
  119. type1 === 'jp-dsd-1'
  120. ">知道了</view>
  121. </view>
  122. <view class="foot_btn" v-if="
  123. (type == 'specimenPlan' &&
  124. type1 != 'plan-spe-dsd-1' &&
  125. (type1 != 'plan-spe-ddd-1') & (type1 != 'plan-spe-ddd-2')) ||
  126. (type == 'specimen' &&
  127. type1 != 'spe-dsd-1' &&
  128. (type1 != 'spe-ddd-1') & (type1 != 'spe-ddd-2'))
  129. ">
  130. <view class="btn1" @click="Scanning_again()">扫描标本</view>
  131. <view class="btn3" @click="hand_again()">手动录入</view>
  132. <view class="btn3" @click="getNoScanSpecimen()">未扫描标本</view>
  133. <view class="btn2" @click="Scanning_complete(ids)">完成扫描</view>
  134. </view>
  135. <view class="foot_btn" v-if="
  136. (type == 'specimenPlan' && type1 == 'plan-spe-ddd-2') ||
  137. (type == 'specimen' && type1 == 'spe-ddd-2')
  138. ">
  139. <view class="btn1" @click="Scanning_again()">扫描标本</view>
  140. <view class="btn3" @click="hand_again()">手动录入</view>
  141. <view class="btn3" @click="getNoScanSpecimen()">未扫描标本</view>
  142. <view class="btn2" @click="Scanning_complete(ids)">完成扫描</view>
  143. </view>
  144. <view class="foot_btn" v-if="
  145. (infoDATA.state != 'finish' &&
  146. type == 'specimenPlan' &&
  147. type1 == 'plan-spe-dsd-1') ||
  148. (type == 'specimen' && type1 == 'spe-dsd-1')
  149. ">
  150. <view class="btn1" @click="Scanning_complete1(ids)">完成工单</view>
  151. <view class="btn2" @click="showAlert()">继续配送</view>
  152. </view>
  153. <view class="foot_btn" v-if="
  154. infoDATA.status != 200 &&
  155. type != 'specimenPlan' &&
  156. type != 'specimen' &&
  157. type !== 'jPBag' &&
  158. type !== 'inspect' &&
  159. type !== 'drugsBag' &&
  160. type !== 'patientTransport'
  161. ">
  162. <view class="btn3" @click="showAlert()">知道了</view>
  163. </view>
  164. <view class="foot_btn" v-if="
  165. (infoDATA.status == 200 && type1 == 'spe-ddd-1') ||
  166. (infoDATA.status == 200 && type1 == 'plan-spe-ddd-1')
  167. ">
  168. <view class="btn3" @click="showAlert()">知道了</view>
  169. </view>
  170. <view class="foot_btn" v-if="
  171. (infoDATA.state == 'finish' &&
  172. infoDATA.status == 200 &&
  173. type == 'specimenPlan' &&
  174. type1 == 'plan-spe-dsd-1') ||
  175. (infoDATA.status == 200 && type == 'other')
  176. ">
  177. <view class="btn3" @click="showAlert()">知道了</view>
  178. </view>
  179. <!-- 弹窗 -->
  180. <showModel :title="models.title" :icon="models.icon" :disjunctor="models.disjunctor" :content="models.content"
  181. @ok="ok" @cancel="cancel" :operate="models.operate"></showModel>
  182. <!-- 弹窗 -->
  183. <showModel :title="models2.title" :icon="models2.icon" :disjunctor="models2.disjunctor" :content="models2.content"
  184. @ok="ok2" @know="know2" @cancel="cancel2" :operate="models2.operate">
  185. </showModel>
  186. <!-- 手动查询标本弹窗 -->
  187. <handViewSpecimen v-if="speModels.disjunctor" :title="speModels.title" :disjunctor="speModels.disjunctor"
  188. @ok="speOk" @cancel="speCancel">
  189. </handViewSpecimen>
  190. </view>
  191. </template>
  192. <script>
  193. import showModel from "../../components/showModel/showModel.vue";
  194. import {
  195. get,
  196. post,
  197. SM,
  198. webHandle
  199. } from "../../http/http.js";
  200. export default {
  201. data() {
  202. return {
  203. currentCode: '', //当前小扫描的科室二维码
  204. // 手动查询标本弹窗model
  205. speModels: {
  206. disjunctor: false,
  207. },
  208. // 交接人信息
  209. accountObj: undefined,
  210. //传给后端查询是否继续扫描
  211. deptId: undefined,
  212. SMFlag: true,
  213. // 弹窗model
  214. models: {
  215. disjunctor: false,
  216. },
  217. // 完成扫描弹窗model1
  218. models2: {
  219. disjunctor: false,
  220. },
  221. wcId: "", //工单完成ID
  222. wcFlag: false,
  223. modelFlag: "", //工单完成类型
  224. infoDATA: [],
  225. ids: [],
  226. type: "",
  227. type1: "",
  228. queryObj: {}, //路由传递过来的参数
  229. gotoFlag: true,
  230. speNum: 0,
  231. content: "",
  232. };
  233. },
  234. methods: {
  235. // 手动查询标本-确认
  236. speOk(data) {
  237. console.log(data);
  238. if (!data.id) {
  239. //没有查询到标本
  240. uni.showModal({
  241. title: '提示',
  242. content: "没有查询到标本!",
  243. showCancel: false,
  244. success: function(res) {
  245. if (res.confirm) {
  246. console.log('用户点击确定');
  247. } else if (res.cancel) {
  248. console.log('用户点击取消');
  249. }
  250. }
  251. });
  252. return;
  253. }
  254. this.speModels.disjunctor = false;
  255. this.hand_scanning_common(data.scode, 'hand');
  256. },
  257. // 手动查询标本-取消
  258. speCancel() {
  259. this.speModels.disjunctor = false;
  260. },
  261. // 手动查询标本弹窗
  262. showHandViewSpecimen() {
  263. this.speModels = {
  264. title: '填写标本编码',
  265. disjunctor: true,
  266. }
  267. },
  268. // 手动录入标本
  269. hand_again() {
  270. this.showHandViewSpecimen();
  271. },
  272. // 手动输入标本和扫码公共方法
  273. hand_scanning_common(ress1, type) {
  274. uni.showLoading({
  275. title: "加载中",
  276. mask: true,
  277. });
  278. // ----------------
  279. //检验二维码的有效性
  280. post("/dept/scanning", {
  281. content: ress1,
  282. }).then((result) => {
  283. this.SMFlag = true;
  284. this.currentCode = result.code;
  285. if (result.state == 200 || result.state == 201) {
  286. let ress = result.code;
  287. let speCode = ress;
  288. let data = {
  289. code: speCode,
  290. type: this.queryObj.type1,
  291. deptCode: this.code,
  292. ids: this.ids,
  293. };
  294. let postType = "";
  295. if (this.type == "jPBag" || this.type == "drugsBag") {
  296. postType = "handleDrugsAndJp";
  297. delete data.ids;
  298. if (this.accountObj) {
  299. data.handover = this.accountObj.accountId;
  300. }
  301. data.deptId = this.deptId;
  302. }
  303. if (this.type == "specimen") {
  304. postType = "handleSpes";
  305. data["speCode"] = data.code;
  306. delete data.code;
  307. if (this.accountObj) {
  308. data.handover = this.accountObj.accountId;
  309. }
  310. }
  311. if (this.type == "specimenPlan") {
  312. postType = "handlePlanSpes";
  313. data["speCode"] = data.code;
  314. delete data.code;
  315. if (this.accountObj) {
  316. data.handover = this.accountObj.accountId;
  317. }
  318. }
  319. if (this.type == "inspect") {
  320. postType = "handleIns";
  321. }
  322. if (this.type == "patientTransport") {
  323. postType = "handleTrans";
  324. }
  325. post("/workerOrder/" + postType, data).then((ress) => {
  326. uni.hideLoading();
  327. if (ress.status == 200) {
  328. //标本和标本轮巡工单,扫描标本后会自动调用摄像头,继续扫描,直到status不是200
  329. if (this.type == "specimenPlan" || this.type == "specimen") {
  330. if (type === 'scan') {
  331. this.Scanning_again();
  332. } else if (type === 'hand') {
  333. // this.hand_again();
  334. }
  335. }
  336. this.speNum = ress.specimenCount;
  337. uni.navigateTo({
  338. url: `../scanning_djInfo/scanning_djInfo?type=${
  339. this.queryObj.type
  340. }&type1=${
  341. this.queryObj.type1
  342. }&infoData=${encodeURIComponent(
  343. JSON.stringify(ress.data)
  344. )}&status=${ress.status}&msg=${ress.msg}&deptCode=${
  345. this.queryObj.code
  346. }&dept=${this.queryObj.dept}&ids=${encodeURIComponent(
  347. JSON.stringify(this.ids)
  348. )}&model=${encodeURIComponent(
  349. JSON.stringify(ress)
  350. )}&speNum=${this.speNum}&accountObj=${encodeURIComponent(
  351. JSON.stringify(this.accountObj)
  352. )}&deptId=${this.deptId}&scanOrHand=${type}`,
  353. });
  354. } else {
  355. uni.navigateTo({
  356. url: `../scanning_djInfo/scanning_djInfo?type=${
  357. this.queryObj.type
  358. }&type1=${this.queryObj.type1}&status=${ress.status}&msg=${
  359. ress.msg
  360. }&deptCode=${this.queryObj.code}&dept=${
  361. this.queryObj.dept
  362. }&ids=${encodeURIComponent(
  363. JSON.stringify(this.ids)
  364. )}&infoData=${encodeURIComponent(
  365. JSON.stringify(ress.data)
  366. )}&model=${encodeURIComponent(
  367. JSON.stringify(ress)
  368. )}&accountObj=${encodeURIComponent(
  369. JSON.stringify(this.accountObj)
  370. )}&deptId=${this.deptId}&scanOrHand=${type}&qrcode=${this.currentCode}`,
  371. });
  372. }
  373. });
  374. } else {
  375. uni.hideLoading();
  376. uni.showToast({
  377. icon: "none",
  378. title: "请求失败!",
  379. });
  380. }
  381. });
  382. // ------------------------------
  383. },
  384. // 查看未扫描标本
  385. getNoScanSpecimen() {
  386. if (!this.gotoFlag) {
  387. return;
  388. }
  389. this.gotoFlag = false;
  390. let ids = JSON.parse(this.queryObj.ids);
  391. uni.navigateTo({
  392. url: `../noScanSpecimen/noScanSpecimen?workOrderId=${encodeURIComponent(
  393. JSON.stringify(ids)
  394. )}&deptCode=${this.queryObj.code}`,
  395. });
  396. },
  397. // 正常完成扫描
  398. overFinish() {
  399. //完成扫描
  400. let postType = "";
  401. if (
  402. this.queryObj.type1 === "plan-spe-ddd-2" ||
  403. this.queryObj.type1 === "plan-spe-dsd-2" ||
  404. this.queryObj.type1 === "plan-spe-dsd-3"
  405. ) {
  406. postType = "finishPlanSpes";
  407. } else if (this.queryObj.type1 == "spe-ddd-2") {
  408. postType = "finishSpes";
  409. }
  410. let data = {
  411. type: this.queryObj.type1,
  412. ids: this.wcId,
  413. };
  414. uni.showLoading({
  415. title: "加载中",
  416. mask: true,
  417. });
  418. post("/workerOrder/" + postType, data).then((res) => {
  419. if (res.status == 200) {
  420. this.models2 = {
  421. disjunctor: true,
  422. title: "提示",
  423. content: `完成扫描成功`,
  424. icon: "success",
  425. operate: {
  426. know: "知道了",
  427. },
  428. };
  429. } else {
  430. uni.hideLoading();
  431. uni.showToast({
  432. icon: "none",
  433. title: "请求失败!",
  434. });
  435. }
  436. });
  437. },
  438. // 确定
  439. ok() {
  440. this.models.disjunctor = false;
  441. if (this.modelFlag === "complete") {
  442. uni.showLoading({
  443. title: "加载中",
  444. mask: true,
  445. });
  446. let ids = JSON.parse(this.queryObj.ids);
  447. let postData = {
  448. ids,
  449. sign: true,
  450. deptQrCode: this.queryObj.code,
  451. };
  452. post("/workerOrder/expectedAndActual", postData).then((ress) => {
  453. uni.hideLoading();
  454. if (ress.status == 200) {
  455. if (this.wcFlag) {
  456. //正常完成扫描
  457. this.overFinish();
  458. } else {
  459. this.gotoOver();
  460. }
  461. } else if (ress.status == 1000035) {
  462. let content = "";
  463. if (
  464. this.queryObj.type1 === "spe-ddd-2" ||
  465. this.queryObj.type1 === "plan-spe-ddd-2"
  466. ) {
  467. //待到达
  468. content =
  469. `系统内预计标本<strong class="red">${ress.expectReceiveNum}</strong>只,您扫描收取标本<strong class="red">${ress.actualReceiveNum}</strong>只,其中<strong class="red">${ress.notReceiveNum}</strong>只未扫描;`;
  470. } else {
  471. //待送达
  472. this.content = `本工单已签到<strong class="red">${
  473. ress.scanSet ? ress.scanSet.join("、") : ""
  474. }</strong>,剩余需签到科室<strong class="red">${
  475. ress.notScanSet ? ress.notScanSet.join("、") : ""
  476. }</strong>,总签收<strong class="red">${
  477. ress.totalAcceptance
  478. }</strong>只,剩余<strong class="red">${
  479. ress.notAcceptance
  480. }</strong>只未签收,您确定完成工单吗?`;
  481. content =
  482. `您在<strong class="red">${ress.deptName}</strong>检验科扫描了<strong class="red">${ress.deptScanNum}</strong>个标本,还需扫描<strong class="red">${ress.deptNotScanNum}</strong>标本。`;
  483. }
  484. this.models2 = {
  485. disjunctor: true,
  486. title: "提示",
  487. content,
  488. icon: "warn",
  489. operate: {
  490. ok: "确定",
  491. cancel: "取消",
  492. },
  493. };
  494. } else {
  495. uni.showToast({
  496. icon: "none",
  497. title: "请求失败!",
  498. });
  499. }
  500. });
  501. } else if (this.modelFlag === "complete1") {
  502. //1对1标本完成工单
  503. let ids = this.wcId;
  504. uni.showLoading({
  505. title: "加载中",
  506. mask: true,
  507. });
  508. post("/workerOrder/finishSpeOrder", ids).then((res) => {
  509. if (res.status == 200) {
  510. uni.reLaunch({
  511. url: "../receiptpage/receiptpage",
  512. });
  513. } else {
  514. uni.hideLoading();
  515. uni.showToast({
  516. icon: "none",
  517. title: "请求失败!",
  518. });
  519. }
  520. });
  521. }
  522. },
  523. // 取消
  524. cancel() {
  525. this.models.disjunctor = false;
  526. },
  527. // 确定
  528. ok2() {
  529. this.models2.disjunctor = false;
  530. let ids = JSON.parse(this.queryObj.ids);
  531. let postData = {
  532. ids,
  533. deptQrCode: this.queryObj.code,
  534. };
  535. uni.showLoading({
  536. title: "加载中",
  537. mask: true,
  538. });
  539. post("/workerOrder/expectedAndActual", postData).then((ress) => {
  540. uni.hideLoading();
  541. if (ress.status == 200) {
  542. if (this.wcFlag) {
  543. this.overFinish();
  544. } else {
  545. this.gotoOver();
  546. }
  547. } else {
  548. uni.showToast({
  549. icon: "none",
  550. title: "请求失败!",
  551. });
  552. }
  553. });
  554. },
  555. // 取消
  556. cancel2() {
  557. this.models2.disjunctor = false;
  558. },
  559. know2() {
  560. this.models2.disjunctor = false;
  561. uni.reLaunch({
  562. url: "../receiptpage/receiptpage",
  563. });
  564. },
  565. //完成扫描
  566. Scanning_complete(id) {
  567. this.modelFlag = "complete";
  568. this.wcId = id;
  569. if (
  570. this.queryObj.type1 == "plan-spe-ddd-2" ||
  571. this.queryObj.type1 == "spe-ddd-2"
  572. ) {
  573. this.wcFlag = true;
  574. this.models = {
  575. disjunctor: true,
  576. title: "提示",
  577. content: "是否确定标本已扫描完成?",
  578. icon: "warn",
  579. operate: {
  580. ok: "确定",
  581. cancel: "取消",
  582. },
  583. };
  584. } else if (
  585. this.queryObj.type1 == "plan-spe-dsd-2" ||
  586. this.queryObj.type1 == "plan-spe-dsd-3" ||
  587. this.queryObj.type1 == "spe-dsd-2" ||
  588. this.queryObj.type1 == "spe-dsd-3"
  589. ) {
  590. this.wcFlag = false;
  591. this.models = {
  592. disjunctor: true,
  593. title: "提示",
  594. content: "是否确定标本已扫描完成?",
  595. icon: "warn",
  596. operate: {
  597. ok: "确定",
  598. cancel: "取消",
  599. },
  600. };
  601. } else {
  602. this.gotoOver();
  603. }
  604. },
  605. // 跳转完成工单页面
  606. gotoOver() {
  607. uni.navigateTo({
  608. url: `../scanning/scanning?type=${this.queryObj.type}&type1=${
  609. this.queryObj.type1
  610. }&deptCode=${this.queryObj.code}&dept=${
  611. this.queryObj.dept
  612. }&id=${encodeURIComponent(JSON.stringify(this.wcId))}&content=${
  613. this.content
  614. }`,
  615. });
  616. },
  617. //一对一完成工单
  618. Scanning_complete1(id) {
  619. this.modelFlag = "complete1";
  620. this.wcId = id;
  621. this.models = {
  622. disjunctor: true,
  623. title: "提示",
  624. content: "是否确定标本配送完成?",
  625. icon: "warn",
  626. operate: {
  627. ok: "确定",
  628. cancel: "取消",
  629. },
  630. };
  631. },
  632. //继续扫描
  633. Scanning_again() {
  634. if (!this.SMFlag) {
  635. return;
  636. }
  637. this.SMFlag = false;
  638. SM()
  639. .then((ress1) => {
  640. this.hand_scanning_common(ress1, 'scan');
  641. })
  642. .catch((err) => {
  643. this.SMFlag = true;
  644. });
  645. },
  646. // 知道了
  647. showAlert() {
  648. uni.navigateTo({
  649. url: "../receiptpage/receiptpage",
  650. });
  651. },
  652. },
  653. onShow() {
  654. this.SMFlag = true;
  655. this.gotoFlag = true;
  656. },
  657. onLoad(options) {
  658. console.log(options, "djEnd");
  659. if (options.speNum) {
  660. this.speNum = options.speNum;
  661. }
  662. if (options.accountObj && options.accountObj != "undefined") {
  663. this.accountObj = JSON.parse(options.accountObj);
  664. }
  665. if (options.deptId && options.deptId != "undefined") {
  666. this.deptId = options.deptId;
  667. }
  668. this.queryObj = options;
  669. let list = JSON.parse(options.model); //签到返回的信息
  670. this.code = options.code; //二维码code
  671. this.ids = options.ids && JSON.parse(options.ids); //科室ID数组
  672. this.infoDATA = list;
  673. if (options.type) {
  674. //关联类型
  675. this.type = options.type;
  676. } else {
  677. this.type = list.type;
  678. }
  679. this.type1 = options.type1;
  680. // #ifdef APP-PLUS
  681. webHandle("no", "app");
  682. // #endif
  683. // #ifdef H5
  684. webHandle("no", "wx");
  685. // #endif
  686. },
  687. };
  688. </script>
  689. <style lang="less">
  690. .Scanning_djEnd {
  691. padding: 0px 20rpx;
  692. .Scanning_top {
  693. height: 270rpx;
  694. .Scanning_top_icon {
  695. width: 140rpx;
  696. height: 140rpx;
  697. margin: 0 auto;
  698. // margin-top: 116rpx;
  699. border-radius: 50%;
  700. line-height: 140rpx;
  701. .cubeic-ok {
  702. font-size: 140rpx;
  703. color: #35b34a;
  704. }
  705. .cubeic-close {
  706. font-size: 140rpx;
  707. color: #ff3b53;
  708. }
  709. }
  710. .Scanning_top_text {
  711. .text1 {
  712. margin-top: 40rpx;
  713. font-size: 48rpx;
  714. text-align: center;
  715. }
  716. }
  717. }
  718. .Scanning_cont {
  719. font-size: 32rpx;
  720. text-align: center;
  721. view {
  722. margin-bottom: 16rpx;
  723. }
  724. .text {
  725. margin-top: 24rpx;
  726. color: #35b34a;
  727. }
  728. .text1 {
  729. margin-top: 24rpx;
  730. color: #ff3b53;
  731. }
  732. }
  733. .foot_btn {
  734. line-height: 88rpx;
  735. height: 100rpx;
  736. margin-top: 40rpx;
  737. text-align: center;
  738. display: flex;
  739. view {
  740. height: 88rpx;
  741. flex: 1;
  742. margin: 0 1%;
  743. background-image: linear-gradient(to right, #72c172, #3bb197);
  744. color: #fff;
  745. border-radius: 8rpx;
  746. font-size: 32rpx;
  747. margin-top: 16rpx;
  748. }
  749. }
  750. }
  751. </style>