scanning_djInfo.vue 24 KB

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