scanning_djInfo.vue 24 KB

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