scanning_djEnd.vue 24 KB

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