scanning_Result.vue 25 KB

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