scanning_djInfo.vue 24 KB

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