scanning_all.vue 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126
  1. <template>
  2. <view class="Scanning_all">
  3. <view class="Scanning">
  4. <view class="Scanning_top" id="Scanning_tops" :animation="animationData">
  5. <view class="Scanning_top_icon">
  6. <text class="cubeic-ok icon_transport transport-duigou"></text>
  7. </view>
  8. <view class="Scanning_top_text">
  9. <view class="text1">签到成功</view>
  10. </view>
  11. <view class="Scanning_cont">
  12. 当前科室关联多个工单,请查看工单信息,
  13. <view>可选择多个工单后,点击 一键送达 完成配送.</view>
  14. </view>
  15. </view>
  16. <view class="title" v-if="workData && workData.length > 0">
  17. <text class="span1">工单信息</text>
  18. <text class="span2" @click="all()" v-if="tabType != 'specimenPlan'">全选</text>
  19. <text class="span3" @click="Dall()">全不选</text>
  20. </view>
  21. <view class="tabs" v-if="workData && workData.length > 0">
  22. <view class="tab">
  23. <view @click="act('drugsBag')" v-if="infoDATA['drugsBag']">
  24. <view id="10" :class="{ acts: tabType == 'drugsBag' }">药品({{ infoDATA.drugsBag.length }})</view>
  25. </view>
  26. <view @click="act('specimen')" v-if="infoDATA['specimen']">
  27. <view id="40" :class="{ acts: tabType == 'specimen' }">标本({{ infoDATA.specimen.length }})</view>
  28. </view>
  29. <view @click="act('specimenPlan')" v-if="infoDATA['specimenPlan']">
  30. <view id="40" :class="{ acts: tabType == 'specimenPlan' }">标本轮巡({{ infoDATA.specimenPlan.length }})</view>
  31. </view>
  32. <view @click="act('patientTransport')" v-if="infoDATA['patientTransport']">
  33. <view id="20" :class="{ acts: tabType == 'patientTransport' }">患者转运({{ infoDATA.patientTransport.length }})
  34. </view>
  35. </view>
  36. <view @click="act('inspect')" v-if="infoDATA['inspect']">
  37. <view id="30" :class="{ acts: tabType == 'inspect' }">患者陪检({{ infoDATA.inspect.length }})</view>
  38. </view>
  39. <view @click="act('jPBag')" v-if="infoDATA['jPBag']">
  40. <view id="40" :class="{ acts: tabType == 'jPBag' }">静配({{ infoDATA.jPBag.length }})</view>
  41. </view>
  42. <view @click="act('other')" v-if="infoDATA['other']">
  43. <view id="40" :class="{ acts: tabType == 'other' }">其他({{ infoDATA.other.length }})</view>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="page_items" v-if="!workData" style="font-size: 18px; margin-top: 15%">
  48. <view class="zwsj">
  49. <image class="zwsj_img" mode="widthFix" src="../../static/img/zanwushuju.png"></image>
  50. <view class="zwsj_txt">暂无工单</view>
  51. </view>
  52. </view>
  53. <view class="page_items footerOtherMargin" v-if="workData && workData.length > 0">
  54. <view class="page_item" v-for="(infoDATA, i) of workData" :key="i">
  55. <view class="page_item_top">
  56. <view class="page_item_top_L">
  57. <text v-show="hasSelect(infoDATA.id)" class="ac" @click="ac(infoDATA, i)" :id="infoDATA.id">
  58. <text class="ac-span"></text>
  59. </text>
  60. <text v-show="!hasSelect(infoDATA.id)" class="ac1" @click="ac1(infoDATA, i)"
  61. :id="infoDATA.id + '0'"></text>
  62. <text class="L_text">单号:{{ infoDATA.gdcode }}</text>
  63. <view class="page_item_cont_start emergency1" v-if="infoDATA.emergencyType.value == 1">
  64. <text class="page_item_cont_start_txt">
  65. <text class="cubeic-star icon_transport transport-shiwujiaoxing"></text>
  66. {{ infoDATA.emergencyType.name }}
  67. </text>
  68. </view>
  69. <view class="page_item_cont_start emergency" v-if="infoDATA.emergencyType.value == 2">
  70. <text class="page_item_cont_start_txt">
  71. <text class="cubeic-star icon_transport transport-shiwujiaoxing"></text>
  72. {{ infoDATA.emergencyType.name }}
  73. </text>
  74. </view>
  75. <view class="page_item_cont_start emergencys" v-if="infoDATA.emergencyType.value == 3">
  76. <text class="page_item_cont_start_txt">
  77. <text class="cubeic-star icon_transport transport-shiwujiaoxing"></text>
  78. {{ infoDATA.emergencyType.name }}
  79. </text>
  80. </view>
  81. </view>
  82. <view class="page_item_top_R">
  83. <text class="L_iocn" v-if="infoDATA.taskType.associationType.value == 'specimen'">标本</text>
  84. <text class="L_iocn" v-if="infoDATA.taskType.associationType.value == 'specimenPlan'">标本</text>
  85. <text class="L_iocn" v-if="infoDATA.taskType.associationType.value == 'drugsBag'">药品</text>
  86. <text class="L_iocn" v-if="infoDATA.taskType.associationType.value == 'jPBag'">静配</text>
  87. <text class="L_iocn" v-if="infoDATA.taskType.associationType.value == 'inspect'">患者陪检</text>
  88. <text class="L_iocn" v-if="
  89. infoDATA.taskType.associationType.value == 'patientTransport'
  90. ">患者转运</text>
  91. <text class="L_iocn" v-if="infoDATA.taskType.associationType.value == 'other'">其他</text>
  92. </view>
  93. <view class="L"></view>
  94. <view class="R"></view>
  95. </view>
  96. <view class="page_item_cont">
  97. <view class="page_item_cont_T">
  98. <view class="page_item_cont_title">
  99. <text> <text class="starting">起</text> 点科室 </text>
  100. <text class="text_big">{{ infoDATA.startDept.dept }}</text>
  101. </view>
  102. </view>
  103. <view class="line"></view>
  104. <view class="page_item_cont_B">
  105. <template v-if="infoDATA.taskType.associationType.value == 'inspect'">
  106. <view class="page_item_cont_title" v-for="(dept, i) of infoDATA.middleDept" :key="i">
  107. <text> <text class="End">检</text> 查科室 </text>
  108. <text class="text_big">{{ dept.dept }}</text>
  109. <view></view>
  110. </view>
  111. </template>
  112. <template v-if="infoDATA.taskType.associationType.value != 'inspect'">
  113. <view class="page_item_cont_title" v-for="(dept, i) of infoDATA.endDepts" :key="i">
  114. <text> <text class="End">终</text> 点科室 </text>
  115. <text class="text_big">{{ dept.dept }}</text>
  116. </view>
  117. </template>
  118. </view>
  119. </view>
  120. <view class="page_item_foot">
  121. <view class="page_item_foot_text">
  122. <text class="text1">状态</text>
  123. <text class="text2" v-if="
  124. !(
  125. infoDATA.gdState.value == '5' &&
  126. infoDATA.taskType.associationType.value == 'inspect'
  127. )
  128. ">{{ infoDATA.gdState.name }}</text>
  129. <text class="text2" v-if="
  130. infoDATA.gdState.value == '5' &&
  131. infoDATA.taskType.associationType.value == 'inspect'
  132. ">待送回</text>
  133. </view>
  134. <view class="page_item_foot_text" v-if="infoDATA.gdState.value == '2'">
  135. <text class="text1">预计响应时间</text>
  136. <text class="text2">{{ infoDATA.estimeResponseTime || 0 }}</text>
  137. </view>
  138. <view class="page_item_foot_text" v-if="infoDATA.gdState.value == '5'">
  139. <text class="text1" v-if="!(infoDATA.taskType.associationType.value == 'inspect')">预计送达时间</text>
  140. <text class="text1" v-if="infoDATA.taskType.associationType.value == 'inspect'">预计送回时间</text>
  141. <text class="text2">{{ infoDATA.estimeCompleteTime || 0 }}</text>
  142. </view>
  143. <view class="page_item_foot_text" v-if="infoDATA.gdState.value == '4'">
  144. <text class="text1">预计到达时间</text>
  145. <text class="text2">{{ infoDATA.estimateArriveTime || 0 }}</text>
  146. </view>
  147. <view class="page_item_foot_text">
  148. <text class="text1">创建时间</text>
  149. <text class="text2">{{ infoDATA.startTime }}</text>
  150. </view>
  151. </view>
  152. </view>
  153. </view>
  154. <view class="foot_btn2 footerPadding" v-if="workData && workData.length > 0">
  155. <view class="btn1" @click="allStart()" v-if="flag">一键操作</view>
  156. <view class="btn1" v-if="!flag">一键操作</view>
  157. <view class="btn1" @click="showAlert">知道了</view>
  158. </view>
  159. <view class="foot_btn1 footerPadding" v-if="!workData">
  160. <view class="btn3" @click="showAlert">知道了</view>
  161. </view>
  162. </view>
  163. <!-- 弹窗 -->
  164. <showModel :title="models.title" :icon="models.icon" :disjunctor="models.disjunctor" :content="models.content"
  165. @know="know" :operate="models.operate"></showModel>
  166. <!-- 填写交接人账号弹窗 -->
  167. <selectAccount v-if="hosModels.disjunctor" :title="hosModels.title" :disjunctor="hosModels.disjunctor" @ok="hosOk"
  168. @cancel="hosCancel">
  169. </selectAccount>
  170. </view>
  171. </template>
  172. <script>
  173. import showModel from "../../components/showModel/showModel.vue";
  174. import {
  175. post,
  176. SM,
  177. webHandle
  178. } from "../../http/http.js";
  179. export default {
  180. data() {
  181. return {
  182. currentCode: '', //当前小扫描的科室二维码
  183. SMFlag: true,
  184. // 填写交接人账号弹窗model
  185. hosModels: {
  186. disjunctor: false,
  187. },
  188. // 弹窗model
  189. models: {
  190. disjunctor: false,
  191. },
  192. infoDATA: {},
  193. workData: [],
  194. tabType: "", //当前选中项
  195. userId: {
  196. ids: [],
  197. },
  198. typeData: [],
  199. types: false,
  200. code: "",
  201. flag: true, //一键操作,禁止多次
  202. flagTimer: null,
  203. selectArr: [], //选中项
  204. animationData: {}, //动画
  205. };
  206. },
  207. methods: {
  208. // 填写交接人账号-确认
  209. hosOk(data) {
  210. console.log(data);
  211. const {
  212. accountName,
  213. account,
  214. accountId
  215. } = data;
  216. if (!accountName && !account) {
  217. //没有填写交接人
  218. uni.showModal({
  219. title: "提示",
  220. content: "请填写交接人账号!",
  221. showCancel: false,
  222. success: function(res) {
  223. if (res.confirm) {
  224. console.log("用户点击确定");
  225. } else if (res.cancel) {
  226. console.log("用户点击取消");
  227. }
  228. },
  229. });
  230. return;
  231. } else if ((!accountName && account) || (accountName && !account)) {
  232. //没有填写交接人
  233. uni.showModal({
  234. title: "提示",
  235. content: "请填写正确的交接人账号!",
  236. showCancel: false,
  237. success: function(res) {
  238. if (res.confirm) {
  239. console.log("用户点击确定");
  240. } else if (res.cancel) {
  241. console.log("用户点击取消");
  242. }
  243. },
  244. });
  245. return;
  246. }
  247. this.hosModels.disjunctor = false;
  248. this.orderDeptHandler(false, data);
  249. },
  250. // 填写交接人账号-取消
  251. hosCancel() {
  252. this.hosModels.disjunctor = false;
  253. this.flag = true;
  254. },
  255. // 填写交接人账号弹窗
  256. showSelectAccount() {
  257. this.hosModels = {
  258. title: "填写交接人账号",
  259. disjunctor: true,
  260. };
  261. },
  262. // 知道了
  263. showAlert() {
  264. uni.navigateTo({
  265. url: "../receiptpage/receiptpage",
  266. });
  267. },
  268. //科室签到
  269. //bigScanner----判断是否需要交接人
  270. //accountObj----弹窗填写的交接人信息
  271. orderDeptHandler(bigScanner, accountObj) {
  272. let type = "orderSign/" + this.code;
  273. let list = {
  274. ids: this.userId.ids
  275. };
  276. bigScanner && (list.bigScanner = ['666']);
  277. if (accountObj) {
  278. list.handover = [accountObj.accountId];
  279. }
  280. uni.showLoading({
  281. title: "加载中",
  282. mask: true,
  283. });
  284. post("/workerOrder/" + type, list).then((res) => {
  285. uni.hideLoading();
  286. if (res.status == 200) {
  287. if (this.tabType == "inspect" || this.tabType == "patientTransport") {
  288. if (res.ids) {
  289. for (var i = 0; i < this.userId.ids.length; i++) {
  290. if (this.userId.ids[i] == res.ids[0]) {
  291. this.userId.ids.splice(i, 1);
  292. }
  293. }
  294. }
  295. uni.navigateTo({
  296. url: `../scanning_djInfo/scanning_djInfo?type=${
  297. this.tabType
  298. }&type1=${res.type}&infoData=${res.data}&status=${
  299. res.status
  300. }&msg=${res.msg}&deptCode=${this.code}&dept=${
  301. res.dept
  302. }&ids=${encodeURIComponent(
  303. JSON.stringify(this.userId.ids)
  304. )}&model=${encodeURIComponent(JSON.stringify(res))}`,
  305. });
  306. } else if (this.tabType == 'specimenPlan') {
  307. console.log(this.selectArr, '选中工单')
  308. let gd = this.infoDATA.specimenPlan.find(v => v.id == this.selectArr[0]);
  309. let startDeptId = gd.startDept.id; //起点科室id liaomingming
  310. let isDigitalHandover = gd.taskType.isDigitalHandover; //是否数字交接开关
  311. let signDeptId = res.deptId; //签到的科室id
  312. let gdId = gd.id;
  313. let gdState = gd.gdState.value;
  314. let endDepts = gd.endDepts.map(v => v.id).toString();
  315. uni.navigateTo({
  316. url: `../scanning_djEnd/scanning_djEnd?type=${
  317. this.tabType
  318. }&type1=${res.type}&code=${this.code}&dept=${
  319. res.dept
  320. }&ids=${encodeURIComponent(
  321. JSON.stringify(this.userId.ids)
  322. )}&model=${encodeURIComponent(JSON.stringify(res))}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}&deptId=${res.deptId}&startDeptId=${startDeptId}&isDigitalHandover=${isDigitalHandover}&signDeptId=${signDeptId}&gdId=${gdId}&gdState=${gdState}&endDepts=${endDepts}`,
  323. });
  324. } else {
  325. uni.navigateTo({
  326. url: `../scanning_djEnd/scanning_djEnd?type=${
  327. this.tabType
  328. }&type1=${res.type}&code=${this.code}&dept=${
  329. res.dept
  330. }&ids=${encodeURIComponent(
  331. JSON.stringify(this.userId.ids)
  332. )}&model=${encodeURIComponent(JSON.stringify(res))}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}&deptId=${res.deptId}`,
  333. });
  334. }
  335. } else if (res.status == "0000") {
  336. this.showSelectAccount(); //yeye
  337. } else {
  338. this.flag = true;
  339. uni.navigateTo({
  340. url: `../scanning_djEnd/scanning_djEnd?type=${this.tabType}&type1=${
  341. res.type
  342. }&code=${this.code}&dept=${res.dept}&ids=${encodeURIComponent(
  343. JSON.stringify(this.userId.ids)
  344. )}&model=${encodeURIComponent(JSON.stringify(res))}&deptId=${res.deptId}`,
  345. });
  346. }
  347. });
  348. },
  349. //一键操作
  350. allStart() {
  351. clearTimeout(this.flagTimer);
  352. this.flagTimer = setTimeout(() => {
  353. this.flag = false;
  354. let list = {};
  355. let type = "";
  356. if (this.userId.ids.length > 0) {
  357. if (
  358. this.tabType == "drugsBag" ||
  359. this.tabType == "jPBag" ||
  360. this.tabType == "other" ||
  361. this.tabType == "specimen" ||
  362. this.tabType == "specimenPlan"
  363. ) {
  364. this.orderDeptHandler(true);
  365. } else {
  366. if (!this.SMFlag) {
  367. return;
  368. }
  369. this.SMFlag = false;
  370. SM()
  371. .then((ress1) => {
  372. uni.showLoading({
  373. title: "加载中",
  374. mask: true,
  375. });
  376. //检验二维码的有效性
  377. post("/dept/scanning", {
  378. content: ress1,
  379. }).then((result) => {
  380. this.SMFlag = true;
  381. this.currentCode = result.code;
  382. if (result.state == 200 || result.state == 201) {
  383. let ress = result.code;
  384. if (ress) {
  385. if (this.tabType == "patientTransport") {
  386. type = "handleTrans";
  387. let data = {
  388. ids: this.userId.ids,
  389. deptCode: this.code,
  390. code: ress,
  391. };
  392. list = data;
  393. }
  394. if (this.tabType == "inspect") {
  395. type = "handleIns";
  396. let data = {
  397. ids: this.userId.ids,
  398. deptCode: this.code,
  399. code: ress,
  400. };
  401. list = data;
  402. }
  403. post("/workerOrder/" + type, list).then((res) => {
  404. uni.hideLoading();
  405. if (res.status == 200) {
  406. if (
  407. this.tabType == "inspect" ||
  408. this.tabType == "patientTransport"
  409. ) {
  410. if (res.ids) {
  411. for (var i = 0; i < this.userId.ids.length; i++) {
  412. if (this.userId.ids[i] == res.ids[0]) {
  413. this.userId.ids.splice(i, 1);
  414. }
  415. }
  416. }
  417. uni.navigateTo({
  418. url: `../scanning_djInfo/scanning_djInfo?type=${
  419. this.tabType
  420. }&type1=${res.type}&infoData=${res.data}&status=${
  421. res.status
  422. }&msg=${res.msg}&deptCode=${this.code}&dept=${
  423. res.dept
  424. }&ids=${encodeURIComponent(
  425. JSON.stringify(this.userId.ids)
  426. )}&model=${encodeURIComponent(
  427. JSON.stringify(res)
  428. )}`,
  429. });
  430. } else {
  431. uni.navigateTo({
  432. url: `../scanning_djEnd/scanning_djEnd?type=${
  433. this.tabType
  434. }&type1=${res.type}&dept=${
  435. res.dept
  436. }&ids=${encodeURIComponent(
  437. JSON.stringify(this.userId.ids)
  438. )}&model=${encodeURIComponent(
  439. JSON.stringify(res)
  440. )}&code=${this.code}`,
  441. });
  442. }
  443. } else {
  444. uni.navigateTo({
  445. url: `../scanning_djEnd/scanning_djEnd?type=${
  446. this.tabType
  447. }&type1=${res.type}&dept=${
  448. res.dept
  449. }&ids=${encodeURIComponent(
  450. JSON.stringify(this.userId.ids)
  451. )}&model=${encodeURIComponent(
  452. JSON.stringify(res)
  453. )}&code=${this.code}&qrcode=${this.currentCode}`,
  454. });
  455. }
  456. });
  457. }
  458. } else {
  459. this.flag = true;
  460. uni.hideLoading();
  461. uni.showToast({
  462. icon: "none",
  463. title: "请求失败!",
  464. });
  465. }
  466. });
  467. })
  468. .catch((err) => {
  469. this.SMFlag = true;
  470. });
  471. }
  472. } else {
  473. this.flag = true;
  474. this.models = {
  475. disjunctor: true,
  476. title: "提示",
  477. content: "请选择工单!",
  478. icon: "warn",
  479. operate: {
  480. know: "知道了",
  481. },
  482. };
  483. }
  484. }, 500);
  485. },
  486. typePD(data, list) {
  487. if (list) {
  488. if (data.length >= 2) {
  489. for (var i = 0; i < data.length; i++) {
  490. if (data[i].gdState.value != list.gdState.value) {
  491. this.typeData.splice(i, 1);
  492. this.types = true;
  493. }
  494. }
  495. } else {
  496. this.types = false;
  497. }
  498. } else if (data.length == 1) {
  499. this.types = false;
  500. } else {
  501. this.types = false;
  502. for (var i = 0; i < data.length; i++) {
  503. if (data[0].gdState.value != data[i].gdState.value) {
  504. this.typeData.splice(i, 1);
  505. this.types = true;
  506. }
  507. }
  508. }
  509. },
  510. act(type) {
  511. this.Dall();
  512. this.tabType = type;
  513. this.workData = this.infoDATA[type];
  514. },
  515. // 已选择的项中是否包含该id
  516. hasSelect(id) {
  517. return this.selectArr.includes(id);
  518. },
  519. //取消
  520. ac(data, i) {
  521. console.log(data, i, this.selectArr, this.userId.ids, this.typeData);
  522. // id放入数组
  523. this.selectArr = this.selectArr.filter((item) => item != data.id);
  524. for (var i = 0; i < this.userId.ids.length; i++) {
  525. if (this.userId.ids[i] == data.id) {
  526. this.typeData.splice(i, 1);
  527. this.userId.ids.splice(i, 1);
  528. }
  529. }
  530. },
  531. //选中
  532. ac1(data, i) {
  533. console.log(data, i, this.userId.ids, '选中');
  534. if (this.tabType == 'specimenPlan' && this.typeData.length > 0) {
  535. this.typeData = [data];
  536. } else {
  537. this.typeData.push(data);
  538. }
  539. this.types = false;
  540. for (var i = 0; i < this.typeData.length; i++) {
  541. if (this.typeData[0].gdState.value != this.typeData[i].gdState.value) {
  542. this.models = {
  543. disjunctor: true,
  544. title: "提示",
  545. content: "请选择不同状态的工单!",
  546. icon: "warn",
  547. operate: {
  548. know: "知道了",
  549. },
  550. };
  551. this.typeData.splice(i, 1);
  552. this.types = true;
  553. }
  554. }
  555. if (!this.types) {
  556. if (this.tabType == 'specimenPlan' && this.typeData.length > 0) {
  557. this.userId.ids = [data.id];
  558. this.selectArr = [data.id];
  559. } else {
  560. this.userId.ids.push(data.id);
  561. this.selectArr.push(data.id);
  562. }
  563. }
  564. },
  565. //全选
  566. all() {
  567. let id = [];
  568. this.typeData = JSON.parse(JSON.stringify(this.workData));
  569. this.typePD(this.workData);
  570. if (this.types) {
  571. this.models = {
  572. disjunctor: true,
  573. title: "提示",
  574. content: "请选择不同状态的工单!",
  575. icon: "warn",
  576. operate: {
  577. know: "知道了",
  578. },
  579. };
  580. this.typeData = [];
  581. } else {
  582. for (var i = 0; i < this.workData.length; i++) {
  583. id.push(this.workData[i].id);
  584. this.selectArr.push(this.workData[i].id);
  585. }
  586. this.userId.ids = id;
  587. }
  588. },
  589. //全不选
  590. Dall() {
  591. this.selectArr = [];
  592. this.typeData = [];
  593. this.userId.ids = [];
  594. },
  595. texiao() {
  596. setTimeout(() => {
  597. this.animation.height(0).opacity(0).step();
  598. this.animationData = this.animation.export();
  599. }, 15000);
  600. },
  601. // 知道了
  602. know() {
  603. this.models.disjunctor = false;
  604. },
  605. },
  606. onLoad(options) {
  607. this.infoDATA = JSON.parse(options.infoDATA); //扫描科室码返回的信息
  608. this.code = options.code; //扫描科室码返回的二维码信息
  609. let arr = [];
  610. for (var key in this.infoDATA) {
  611. arr.push(key);
  612. }
  613. this.workData = this.infoDATA[arr[0]];
  614. this.tabType = arr[0];
  615. // #ifdef APP-PLUS
  616. webHandle("no", "app");
  617. // #endif
  618. // #ifdef H5
  619. webHandle("no", "wx");
  620. // #endif
  621. },
  622. onShow() {
  623. this.SMFlag = true;
  624. this.flag = true;
  625. // 创建动画
  626. this.animation = uni.createAnimation({
  627. duration: 500,
  628. timingFunction: "ease",
  629. delay: 2000,
  630. });
  631. setTimeout(() => {
  632. this.texiao();
  633. }, 500);
  634. },
  635. onHide() {
  636. this.animationData = {};
  637. },
  638. onUnload() {
  639. // 页面关闭后清空数据
  640. this.animationData = {};
  641. },
  642. };
  643. </script>
  644. <style lang="less">
  645. ::-webkit-scrollbar {
  646. width: 0;
  647. }
  648. ::-webkit-scrollbar-track {
  649. background-color: none;
  650. }
  651. ::-webkit-scrollbar-thumb {
  652. background-color: none;
  653. }
  654. ::-webkit-scrollbar-thumb:hover {
  655. background-color: none;
  656. }
  657. ::-webkit-scrollbar-thumb:active {
  658. background-color: none;
  659. }
  660. .Scanning_all {
  661. .title {
  662. font-size: 36rpx;
  663. margin-top: 20rpx;
  664. margin-bottom: 20rpx;
  665. font-weight: 700;
  666. position: relative;
  667. height: 40rpx;
  668. .span1 {
  669. position: absolute;
  670. left: 0;
  671. font-weight: 700;
  672. }
  673. .span2 {
  674. position: absolute;
  675. right: 20%;
  676. color: rgb(73, 184, 86);
  677. }
  678. .span3 {
  679. position: absolute;
  680. right: 0;
  681. color: rgb(73, 184, 86);
  682. }
  683. }
  684. .tabs {
  685. height: 90rpx;
  686. width: 100%;
  687. overflow-x: auto;
  688. overflow-y: hidden;
  689. position: relative;
  690. background: #fff;
  691. .acts {
  692. background: #ccc;
  693. height: 50rpx !important;
  694. width: 80% !important;
  695. border-radius: 20rpx;
  696. }
  697. .tab {
  698. display: flex;
  699. align-items: center;
  700. flex-wrap: nowrap;
  701. height: 90rpx;
  702. position: absolute;
  703. width: auto;
  704. padding-top: 6rpx;
  705. view {
  706. display: inline-block;
  707. width: 260rpx;
  708. line-height: 48rpx;
  709. font-size: 32rpx;
  710. height: 100%;
  711. text-align: center;
  712. }
  713. }
  714. }
  715. .Scanning {
  716. padding: 0 20rpx;
  717. height: calc(100% - 100rpx);
  718. // seimin
  719. .Scanning_top {
  720. height: 400rpx;
  721. opacity: 1;
  722. .Scanning_top_icon {
  723. width: 140rpx;
  724. height: 140rpx;
  725. margin: 0 auto;
  726. margin-top: 36rpx;
  727. border-radius: 50%;
  728. line-height: 140rpx;
  729. .cubeic-ok {
  730. font-size: 140rpx;
  731. color: #35b34a;
  732. }
  733. }
  734. .Scanning_top_text {
  735. .text1 {
  736. margin-top: 40rpx;
  737. font-size: 48rpx;
  738. text-align: center;
  739. }
  740. }
  741. .Scanning_cont {
  742. font-size: 32rpx;
  743. margin-top: 30rpx;
  744. text-align: center;
  745. .text1 {
  746. margin-top: 24rpx;
  747. color: #ff3b53;
  748. }
  749. }
  750. }
  751. .page_items {
  752. margin-bottom: 110rpx;
  753. .zwsj {
  754. margin-top: 180rpx;
  755. text-align: center;
  756. .zwsj-img {
  757. width: 560rpx;
  758. }
  759. .zwsj_txt {
  760. font-size: 36rpx;
  761. font-weight: 700;
  762. margin-top: 20rpx;
  763. text-align: center;
  764. }
  765. }
  766. .page_item {
  767. margin-top: 16rpx;
  768. min-height: 356rpx;
  769. background: #fff;
  770. border-radius: 8rpx;
  771. overflow: hidden;
  772. padding: 0 16rpx;
  773. border: 2rpx solid #e5e9ed;
  774. .L {
  775. width: 40rpx;
  776. height: 40rpx;
  777. border-radius: 50%;
  778. background: #f9fafb;
  779. position: relative;
  780. left: -50rpx;
  781. top: 66rpx;
  782. }
  783. .R {
  784. width: 40rpx;
  785. height: 40rpx;
  786. border-radius: 50%;
  787. background: #f9fafb;
  788. position: relative;
  789. float: right;
  790. right: -50rpx;
  791. top: 26rpx;
  792. }
  793. .starting {
  794. width: 50rpx;
  795. height: 50rpx;
  796. color: #fff;
  797. background: #49b856;
  798. display: inline-block;
  799. border-radius: 50%;
  800. text-align: center;
  801. line-height: 46rpx;
  802. font-size: 32rpx;
  803. margin-right: 6rpx;
  804. }
  805. .End {
  806. width: 50rpx;
  807. height: 50rpx;
  808. color: #fff;
  809. background: #39b199;
  810. display: inline-block;
  811. border-radius: 50%;
  812. text-align: center;
  813. line-height: 46rpx;
  814. font-size: 32rpx;
  815. margin-right: 6rpx;
  816. }
  817. .page_item_top {
  818. height: 86rpx;
  819. border-bottom: 2rpx dashed #e5e9ed;
  820. padding: 0 16rpx;
  821. .page_item_top_L {
  822. height: 100%;
  823. float: left;
  824. line-height: 88rpx;
  825. display: flex;
  826. align-items: center;
  827. .ac {
  828. width: 32rpx;
  829. height: 32rpx;
  830. border: 2rpx solid #ccc;
  831. display: inline-block;
  832. position: relative;
  833. .ac-span {
  834. position: absolute;
  835. left: 50%;
  836. top: 50%;
  837. width: 24rpx;
  838. height: 24rpx;
  839. background: #39b199;
  840. transform: translate(-50%, -50%);
  841. }
  842. }
  843. .ac1 {
  844. width: 32rpx;
  845. height: 32rpx;
  846. border: 2rpx solid #ccc;
  847. display: inline-block;
  848. position: relative;
  849. }
  850. .emergencys {
  851. background: #ff3b53 !important;
  852. width: 124rpx !important;
  853. }
  854. .emergency {
  855. background: #ff3b53 !important;
  856. }
  857. .emergency1 {
  858. background: #49b856 !important;
  859. }
  860. .page_item_cont_start {
  861. text-align: center;
  862. height: 44rpx;
  863. width: 104rpx;
  864. line-height: 44rpx;
  865. border-radius: 8rpx;
  866. background: #49b856;
  867. color: #fff;
  868. display: inline-block;
  869. .page_item_cont_start_txt {
  870. font-size: 28rpx;
  871. display: flex;
  872. align-items: center;
  873. justify-content: center;
  874. .cubeic-star {
  875. font-size: 28rpx;
  876. }
  877. }
  878. }
  879. .L_time {
  880. color: #6cc076;
  881. font-size: 32rpx;
  882. }
  883. .L_text {
  884. font-size: 32rpx;
  885. display: inline-block;
  886. font-weight: 700;
  887. margin-right: 8rpx;
  888. }
  889. }
  890. .page_item_top_R {
  891. height: 60rpx;
  892. float: right;
  893. padding-top: 20rpx;
  894. font-size: 32rpx;
  895. position: absolute;
  896. right: 50rpx;
  897. .L_iocn {
  898. display: inline-block;
  899. height: 52rpx;
  900. line-height: 48rpx;
  901. color: rgb(7, 134, 60);
  902. font-size: 36rpx;
  903. font-weight: 700;
  904. }
  905. }
  906. }
  907. .page_item_cont {
  908. min-height: 180rpx;
  909. padding: 0 16rpx;
  910. text-align: left;
  911. position: relative;
  912. .text_big {
  913. font-size: 32rpx;
  914. position: absolute;
  915. right: 16rpx;
  916. font-weight: 700;
  917. margin-top: 10rpx;
  918. }
  919. .text_big2 {
  920. font-size: 32rpx;
  921. position: absolute;
  922. right: 16rpx;
  923. font-weight: 700;
  924. }
  925. .line {
  926. height: 20rpx;
  927. width: 2rpx;
  928. border-left: 2rpx solid #e5e9ed;
  929. position: absolute;
  930. top: 82rpx;
  931. left: 40rpx;
  932. }
  933. .lines {
  934. height: 40%;
  935. width: 2rpx;
  936. border-left: 2rpx solid #e5e9ed;
  937. position: absolute;
  938. top: 23%;
  939. left: 36rpx;
  940. }
  941. .page_item_cont_T {
  942. padding-top: 28rpx;
  943. font-size: 28rpx;
  944. .page_item_cont_title {
  945. height: 100%;
  946. font-size: 32rpx;
  947. }
  948. }
  949. .page_item_cont_B {
  950. padding-top: 28rpx;
  951. margin-bottom: 28rpx;
  952. .page_item_cont_title {
  953. height: 60rpx;
  954. font-size: 32rpx;
  955. }
  956. .page_item_cont_title1 {
  957. height: 60rpx;
  958. line-height: 60rpx;
  959. font-size: 32rpx;
  960. padding-left: 64rpx;
  961. }
  962. }
  963. }
  964. .page_item_foot {
  965. border-top: 2rpx dashed #e5e9ed;
  966. border-bottom: 2rpx dashed #e5e9ed;
  967. padding: 28rpx 16rpx;
  968. text-align: left;
  969. .page_item_foot_text {
  970. height: 48rpx;
  971. font-size: 32rpx;
  972. line-height: 48rpx;
  973. margin-bottom: 20rpx;
  974. .text1 {
  975. color: rgb(102, 102, 102);
  976. }
  977. .text2 {
  978. float: right;
  979. font-weight: 700;
  980. }
  981. }
  982. }
  983. #infos {
  984. display: none;
  985. }
  986. .page_item_infos {
  987. padding-bottom: 20rpx;
  988. border-bottom: 2rpx dashed #e5e9ed;
  989. .page_item_info2 {
  990. text-align: left;
  991. line-height: 60rpx;
  992. font-size: 32rpx;
  993. padding-left: 16rpx;
  994. .page_item_foot_text {
  995. height: 48rpx;
  996. font-size: 32rpx;
  997. line-height: 48rpx;
  998. margin-bottom: 20rpx;
  999. .text1 {
  1000. color: rgb(102, 102, 102);
  1001. }
  1002. .text2 {
  1003. float: right;
  1004. font-weight: 700;
  1005. }
  1006. }
  1007. }
  1008. }
  1009. }
  1010. }
  1011. .foot_btn2 {
  1012. position: fixed;
  1013. bottom: 0;
  1014. right: 20rpx;
  1015. left: 20rpx;
  1016. line-height: 66rpx;
  1017. height: 100rpx;
  1018. border-top: 2rpx solid #e5e9ed;
  1019. background: #f9fafb;
  1020. display: flex;
  1021. .btn1,
  1022. .btn2 {
  1023. height: 66rpx;
  1024. flex: 1;
  1025. margin: 0 2%;
  1026. background-image: linear-gradient(to right, #72c172, #3bb197);
  1027. color: #fff;
  1028. border-radius: 8rpx;
  1029. font-size: 32rpx;
  1030. margin-top: 16rpx;
  1031. text-align: center;
  1032. }
  1033. }
  1034. .foot_btn1 {
  1035. position: fixed;
  1036. bottom: 0;
  1037. right: 20rpx;
  1038. left: 20rpx;
  1039. line-height: 66rpx;
  1040. height: 100rpx;
  1041. border-top: 2rpx solid #e5e9ed;
  1042. background: #f9fafb;
  1043. text-align: center;
  1044. .btn3 {
  1045. height: 66rpx;
  1046. width: 100%;
  1047. background-image: linear-gradient(to right, #72c172, #3bb197);
  1048. color: #fff;
  1049. border-radius: 8rpx;
  1050. font-size: 32rpx;
  1051. margin-top: 16rpx;
  1052. }
  1053. }
  1054. }
  1055. }
  1056. </style>