inspectList.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952
  1. <template>
  2. <view class="inspectList">
  3. <view class="page_tab">
  4. <view class="page_tab_bar active">
  5. <view class="tab_dept">
  6. <text @click="changeDept">{{ currenDept.dept}}</text>
  7. <text class="newicon newicon-weibiaoti2010104" @click="changeDept"></text>
  8. </view>
  9. <text class="moreFilter newicon newicon-shaixuan" @click="moreFilter"></text>
  10. </view>
  11. </view>
  12. <view v-if="zxzData.length == 0" class="zwsj">
  13. <image class="zwsj-img" mode="widthFix" src="../../static/img/zanwushuju.png"></image>
  14. <view class="zwsj-txt">暂无数据</view>
  15. </view>
  16. <view v-if="zxzData.length" class="page_items">
  17. <scroll-view class="page_items_scroll" scroll-y :refresher-enabled="scroll_refresher_enabled"
  18. :refresher-triggered="triggered" @refresherrefresh="refresherrefresh" @refresherrestore="refresherrestore"
  19. @scrolltolower="scrolltolower" :scroll-top="scroll_top" @refresherabort="refresherabort" @scroll="scroll"
  20. refresher-background="transport">
  21. <view class="page_item_wrap" v-for="(item, index) of zxzData" :key="index">
  22. <view class="page_item">
  23. <view class="page_item_top">
  24. <view class="page_item_top_L">
  25. <view class="L_time" @click="toPatientDetail(item)">
  26. <template v-if="!item.execDept">
  27. <!-- 没有标记陪检方式 -->
  28. <view class="circle"></view>
  29. <view class="circle"></view>
  30. <view class="circle"></view>
  31. </template>
  32. <template v-else-if="!item.yyTime">
  33. <!-- 没有预约时间 -->
  34. <view class="circle"></view>
  35. <view class="circle"></view>
  36. </template>
  37. <template v-else-if="!(item.patientDTO && item.patientDTO.tripTypeDTO)">
  38. <!-- 没有检查科室 -->
  39. <view class="circle"></view>
  40. </template>
  41. {{ item.patientName }}({{ item.bedNum }})
  42. </view>
  43. </view>
  44. <view class="page_item_top_R">
  45. <text>{{item.inspectState?item.inspectState.name:''}}</text>
  46. <button @click="build(item)" v-if="!item.gdId&&(item.inspectState.value==1||item.inspectState.value==30)&&item.execDept">建单</button>
  47. <button @click="viewWorkOrder(item)" v-if="item.gdId">查看工单</button>
  48. </view>
  49. </view>
  50. <view class="page_item_cont">
  51. <view class="page_item_conts">
  52. <view class="page_item_conts_item">
  53. <view class="column">
  54. <text class="p_title">住院号:</text>
  55. <text class="p_info">{{ item.residenceNo }}</text>
  56. </view>
  57. <view class="column">
  58. <text class="p_title">陪检方式:</text>
  59. <text class="p_info">{{ (item.patientDTO && item.patientDTO.tripTypeDTO) ? item.patientDTO.tripTypeDTO.inspectMode : '' }}</text>
  60. </view>
  61. </view>
  62. <view class="page_item_conts_item">
  63. <text class="p_title">检查科室:</text>
  64. <text class="p_info">{{ item.execDept ? item.execDept.dept : "" }}<text class="newicon newicon-weibiaoti2010104 fz28" @click="changeExecDept(item)" v-if="item.inspectState.value == 1 || item.inspectState.value == 30"></text></text>
  65. </view>
  66. <view class="page_item_conts_item">
  67. <text class="p_title">检查项目:</text>
  68. <text class="p_info">{{ item.inspectName }}-{{ item.inspectCode }}</text>
  69. </view>
  70. <view class="page_item_conts_item btn">
  71. <text class="p_title">预约时间:</text>
  72. <text class="p_info">{{ item.yyTime }}<text class="newicon newicon-weibiaoti2010104 fz28" @click="changeYyTime(item)" v-if="item.inspectState.value == 1 || item.inspectState.value == 30"></text></text>
  73. </view>
  74. <view class="page_item_conts_item">
  75. <view class="column">
  76. <text class="p_title">预约叫号:</text>
  77. <text class="p_info">{{ item.reservationNumber }}</text>
  78. </view>
  79. <view class="column">
  80. <text class="p_title">是否紧急:</text>
  81. <text class="p_info" :class="{red:item.priority==='1'||item.priority===1}">{{(item.priority==='1'||item.priority===1)?'是':'否'}}</text>
  82. </view>
  83. </view>
  84. <view class="page_item_conts_item">
  85. <view class="column">
  86. <text class="p_title">护理等级:</text>
  87. <text class="p_info" :class="{red:item.careLevel&&(item.careLevel.value==0||item.careLevel.value==1)}">{{item.careLevel?item.careLevel.name:''}}</text>
  88. </view>
  89. <view class="column">
  90. <text class="p_title">病情级别:</text>
  91. <text class="p_info"
  92. :class="{red:item.illnessState&&(item.illnessState.value==2||item.illnessState.value==3)}">{{item.illnessState?item.illnessState.name:''}}</text>
  93. </view>
  94. </view>
  95. <view class="page_item_conts_item">
  96. <text class="p_title">注意事项:</text>
  97. <text class="p_info">{{ item.patientDTO ? item.patientDTO.remark : '' }}</text>
  98. </view>
  99. <view class="page_item_conts_item">
  100. <text class="p_title">医生备注:</text>
  101. <text class="p_info">{{ item.remark }}</text>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. </scroll-view>
  108. </view>
  109. <!-- 底部扫一扫 -->
  110. <bigScreen></bigScreen>
  111. <!-- 筛选 -->
  112. <fjj-condition @touchmove.stop :list="list" :visibleDrawer="visibleDrawer" @result="resultConditon"
  113. :keyWordGvie="searchlist.keyWord" :keyWordOld="keyWordOld" :bedNumSortGvie="searchlist.bedNumSort" :noneEndDeptGvie="searchlist.noneEndDept" :noneYytimeGvie="searchlist.noneYytime" :inspectStateList="inspectStateList" />
  114. <!-- 弹窗 -->
  115. <showModel :title="models.title" :icon="models.icon" :disjunctor="models.disjunctor" :content="models.content"
  116. @ok="ok" @cancel="cancel" @know="know" :operate="models.operate"></showModel>
  117. <!-- 弹窗 -->
  118. <inspectRemoveModel :title="models1.title" :icon="models1.icon" :disjunctor="models1.disjunctor" :content="models1.content" @know="know1" :operate="models1.operate" @ok="ok1" @cancel="cancel1" :yy="currentInspect.yyTime"></inspectRemoveModel>
  119. <!-- 弹窗 -->
  120. <inspectExecDeptModel :title="models2.title" :icon="models2.icon" :disjunctor="models2.disjunctor" :content="models2.content" @know="know2" :operate="models2.operate" @ok="ok2" @cancel="cancel2" :execDeptList="currentInspect.inspectCheckType && currentInspect.inspectCheckType.deptList" :execDeptId="currentInspect.execDeptId"></inspectExecDeptModel>
  121. </view>
  122. </template>
  123. <script>
  124. import bigScreen from "../../components/bigScreen/bigScreen.vue";
  125. import {
  126. get,
  127. post,
  128. deleteIt,
  129. webHandle
  130. } from "../../http/http.js";
  131. // https://ext.dcloud.net.cn/plugin?id=2849
  132. import fjjCondition from "@/components/fjj-condition/fjj-condition.vue";
  133. import showModel from "../../components/showModel/showModel.vue";
  134. export default {
  135. data() {
  136. return {
  137. keyWordOld: '',
  138. currentInspect: {},
  139. // 弹窗model1
  140. models1: {
  141. disjunctor: false,
  142. },
  143. // 弹窗model1
  144. models2: {
  145. disjunctor: false,
  146. },
  147. // 记录当前滚动条的位置
  148. scrollYY: 0,
  149. // 建单的对象
  150. jdItem: {},
  151. // 弹窗model
  152. models: {
  153. disjunctor: false,
  154. },
  155. // 面板是否显示
  156. visibleDrawer: false,
  157. // 面板数据
  158. list: [{
  159. title: "时间",
  160. type: "single", //single不带时分秒
  161. key: "yyTime",
  162. },
  163. {
  164. title: "关键词",
  165. type: "keyWord", //keyWord是input
  166. key: "keyWord",
  167. },
  168. {
  169. title: "排序",
  170. type: "bedNumSort", //床号排序
  171. key: "bedNumSort",
  172. },
  173. {
  174. title: "检查信息状态",
  175. type: "inspectState", //检查信息状态
  176. key: "inspectState",
  177. },
  178. {
  179. title: "异常数据筛选",
  180. type: "abnormal", //异常数据筛选
  181. key: "abnormal",
  182. },
  183. ],
  184. // 面板搜索数据
  185. searchlist: {
  186. yyTime: new Date().Format("yyyy/MM/dd"),
  187. keyWord: "",
  188. bedNumSort: false,
  189. inspectState: "1,30",
  190. noneEndDept: false,
  191. noneYytime: false,
  192. },
  193. // 检查信息状态列表
  194. inspectStateList: [],
  195. //当前登录人所属科室
  196. currenDept: {},
  197. // 抢单的id
  198. qdId: "",
  199. //列表数据
  200. zxzData: [],
  201. //分页页码
  202. idx: 0,
  203. // 列表项总数
  204. totalNum: -1,
  205. triggered: false, //下拉刷新状态
  206. freshing: false, //上拉加载开关
  207. scroll_top: 0, //距离顶部的距离
  208. scroll_refresher_enabled: true, //是否开启自定义下拉刷新
  209. };
  210. },
  211. components: {
  212. bigScreen,
  213. fjjCondition,
  214. },
  215. methods: {
  216. toPatientDetail(data){
  217. uni.navigateTo({
  218. url: `/pages/patientInformationInfo/patientInformationInfo?patientCode=${data.patientCode}`,
  219. });
  220. },
  221. // 修改预约时间->返回
  222. know1() {
  223. this.models1.disjunctor = false;
  224. },
  225. // 修改预约时间->确定
  226. ok1(data) {
  227. console.log(data);
  228. const { yyTime} = data;
  229. if (!yyTime) {
  230. //没有填写预约时间
  231. uni.showModal({
  232. title: "提示",
  233. content: "请填写预约时间!",
  234. showCancel: false,
  235. success: function(res) {
  236. if (res.confirm) {
  237. console.log("用户点击确定");
  238. } else if (res.cancel) {
  239. console.log("用户点击取消");
  240. }
  241. },
  242. });
  243. return;
  244. }
  245. this.models1.disjunctor = false;
  246. let postData = {
  247. inspectCode: this.currentInspect.inspectCode,
  248. yyTime
  249. };
  250. uni.showLoading({
  251. title: '加载中',
  252. mask: true,
  253. })
  254. post('/workerOrder/updateInspectYytime', postData).then(res => {
  255. uni.hideLoading();
  256. if (res.status == 200) {
  257. this.idx = 0;
  258. this.totalNum = -1;
  259. this.waitingOrders(0);
  260. } else {
  261. uni.showToast({
  262. icon: "none",
  263. title: "修改失败",
  264. });
  265. }
  266. })
  267. },
  268. // 修改预约时间->取消
  269. cancel1() {
  270. this.models1.disjunctor = false;
  271. },
  272. // 修改预约时间
  273. changeYyTime(item) {
  274. this.currentInspect = item;
  275. this.models1 = {
  276. disjunctor: true,
  277. content: `您要修改[${item.inspectName||''}]的预约时间`,
  278. icon: "warn",
  279. operate: {
  280. ok: "确定",
  281. cancel: "取消",
  282. },
  283. };
  284. },
  285. // 修改检查科室
  286. changeExecDept(item) {
  287. this.currentInspect = item;
  288. if(this.currentInspect.inspectCheckType){
  289. this.currentInspect.inspectCheckType.deptList = this.currentInspect.inspectCheckType.deptList || [];
  290. }
  291. this.models2 = {
  292. disjunctor: true,
  293. content: `请选择[${item.patientName||''}]检查项目的检查科室`,
  294. icon: "warn",
  295. operate: {
  296. ok: "确定",
  297. cancel: "取消",
  298. },
  299. };
  300. },
  301. // 修改检查科室->返回
  302. know2() {
  303. this.models2.disjunctor = false;
  304. },
  305. // 修改检查科室->确定
  306. ok2(data) {
  307. console.log(data);
  308. const { execDeptId } = data;
  309. this.models2.disjunctor = false;
  310. let postData = {
  311. "id": this.currentInspect.id,
  312. "execDeptId": execDeptId
  313. };
  314. uni.showLoading({
  315. title: '加载中',
  316. mask: true,
  317. })
  318. post('/simple/data/updData/inspect', postData).then(res => {
  319. uni.hideLoading();
  320. if (res.status == 200) {
  321. this.idx = 0;
  322. this.totalNum = -1;
  323. this.waitingOrders(0);
  324. } else {
  325. uni.showToast({
  326. icon: "none",
  327. title: "修改失败",
  328. });
  329. }
  330. })
  331. },
  332. // 修改检查科室->取消
  333. cancel2() {
  334. this.models2.disjunctor = false;
  335. },
  336. // 更多筛选
  337. moreFilter() {
  338. uni.showLoading({
  339. title: "加载中",
  340. mask: true,
  341. });
  342. let postData = {
  343. "type": "list",
  344. "key": "inspect_state"
  345. };
  346. post("/common/common/getDictionary", postData).then((result) => {
  347. this.inspectStateList = result.map(item => {
  348. return {
  349. label: item.name,
  350. value: item.value
  351. }
  352. });
  353. this.inspectStateList.unshift({
  354. label: '全部',
  355. value: '0'
  356. });
  357. uni.hideLoading();
  358. this.visibleDrawer = true;
  359. })
  360. },
  361. // 查看工单
  362. viewWorkOrder(data) {
  363. console.log(data)
  364. uni.navigateTo({
  365. url: `../receipt_infopage/receipt_infopage?id=${data.gdId}`,
  366. });
  367. },
  368. // 建单
  369. build(data) {
  370. console.log(data);
  371. this.jdItem = data;
  372. this.models = {
  373. disjunctor: true,
  374. title: "提示",
  375. content: `您即将创建【${data.patientName || ""}】患者前往【${
  376. data.execDept ? data.execDept.dept : ""
  377. }】进行【${data.inspectName || ""}】检查,您确认吗?`,
  378. icon: "warn",
  379. operate: {
  380. ok: "确定",
  381. cancel: "取消",
  382. },
  383. };
  384. },
  385. //建单后返回
  386. know() {
  387. this.models.disjunctor = false;
  388. this.idx = 0;
  389. this.totalNum = -1;
  390. this.waitingOrders(0);
  391. // this.scroll_top = Math.random(); //回到顶部
  392. this.scroll_top = this.scrollYY; //回到当前位置
  393. },
  394. //建单确定
  395. ok() {
  396. this.models.disjunctor = false;
  397. let postData = {
  398. deptId: this.currenDept.id
  399. };
  400. let taskId;
  401. uni.showLoading({
  402. title: "加载中",
  403. mask: true,
  404. });
  405. post("/nurse/getDeptTaskType", postData).then((result) => {
  406. if (result.status == 200) {
  407. let obj = result.data.allTaskTypes.filter(
  408. (item) => item.associationType.value == "inspect"
  409. );
  410. if (obj.length) {
  411. taskId = obj[0].id;
  412. let postData = {
  413. workOrder: {
  414. sourceId: 4,
  415. taskType: {
  416. id: taskId,
  417. isHalfInspect: obj[0].isHalfInspect === 1 ? 1 : 0
  418. },
  419. createDept: this.currenDept.id,
  420. startDept: {
  421. id: this.currenDept.id
  422. },
  423. patient: {
  424. patientCode: this.jdItem.patientCode
  425. },
  426. checkList: [{
  427. id: this.jdItem.id
  428. }],
  429. goods: "",
  430. worker: {
  431. id: uni.getStorageSync("userData").user.id
  432. },
  433. workerStartOrderFlag: 1,
  434. },
  435. };
  436. //根据检查的紧急度加急
  437. if (this.jdItem.priority === 1 || this.jdItem.priority === '1') {
  438. postData.workOrder["urgentDetails"] = {
  439. checkStatus: {
  440. id: 329
  441. },
  442. urgentReason: '系统根据检查信息,自动进行加急',
  443. };
  444. }
  445. post("/api/startOrder", postData).then((res) => {
  446. uni.hideLoading();
  447. let msg = res.msg;
  448. let icon = "error";
  449. if (res.status == 200) {
  450. msg = "建单成功";
  451. icon = "success";
  452. }
  453. this.models = {
  454. disjunctor: true,
  455. content: msg,
  456. icon: icon,
  457. operate: {
  458. know: "返回",
  459. },
  460. };
  461. });
  462. } else {
  463. uni.hideLoading();
  464. this.models = {
  465. disjunctor: true,
  466. content: "建单失败,科室未开通!",
  467. icon: "error",
  468. operate: {
  469. know: "返回",
  470. },
  471. };
  472. }
  473. } else {
  474. uni.hideLoading();
  475. uni.showToast({
  476. icon: "none",
  477. title: result.msg || "接口获取数据失败!",
  478. });
  479. }
  480. });
  481. },
  482. //建单取消
  483. cancel() {
  484. this.models.disjunctor = false;
  485. },
  486. //点击确定后返回参数
  487. resultConditon(obj) {
  488. console.log(obj);
  489. this.visibleDrawer = obj.visibleDrawer;
  490. if (obj.str_result) {
  491. this.searchlist = {
  492. yyTime: obj.str_result.yyTime,
  493. keyWord: obj.str_result.keyWord,
  494. bedNumSort: obj.str_result.bedNumSort,
  495. noneEndDept: obj.str_result.noneEndDept,
  496. noneYytime: obj.str_result.noneYytime,
  497. inspectState: obj.str_result.inspectState,
  498. };
  499. this.idx = 0;
  500. this.totalNum = -1;
  501. this.waitingOrders(0);
  502. }
  503. },
  504. // 切换科室
  505. changeDept() {
  506. uni.navigateTo({
  507. url: `../search/search?type=inspectList`,
  508. });
  509. },
  510. //检查列表数据获取
  511. waitingOrders(idx) {
  512. if (this.zxzData.length == this.totalNum) {
  513. uni.showToast({
  514. icon: "none",
  515. title: "没有更多数据了!",
  516. });
  517. this.freshing = true;
  518. return;
  519. }
  520. console.log(this.searchlist, 222222)
  521. let postData = {
  522. idx,
  523. sum: 99999,
  524. inspect: {
  525. queryInspect: 1,
  526. hosId: uni.getStorageSync("userData").user.currentHospital.id,
  527. platForm: 2,
  528. searchDays: 10000,
  529. applyDept: {
  530. id: this.currenDept.id,
  531. },
  532. clickSort: this.searchlist.bedNumSort,
  533. noneEndDept: this.searchlist.noneEndDept ? 1 : undefined,
  534. noneYytime: this.searchlist.noneYytime ? 1 : undefined,
  535. yyTime: this.searchlist.yyTime.split("/").join("-") + " 00:00:00",
  536. },
  537. };
  538. if (this.searchlist.inspectState) {
  539. let arr = this.searchlist.inspectState.split(',');
  540. let flag = arr.includes('0');
  541. postData.inspect.inspectState = {
  542. "value": flag ? '0' : arr.join(',')
  543. };
  544. }
  545. // url传递过来的住院号
  546. if (this.currenDept.patientCode) {
  547. this.searchlist.keyWord = this.currenDept.patientCode;
  548. this.currenDept.patientCode = "";
  549. }
  550. if (this.searchlist.keyWord) {
  551. postData.inspect.keyWord = this.searchlist.keyWord;
  552. }
  553. uni.showLoading({
  554. title: "加载中",
  555. mask: true,
  556. });
  557. console.log(44444,postData)
  558. // 请求列表数据
  559. post("/nurse/fetchDataList/inspect", postData).then((res) => {
  560. uni.hideLoading();
  561. if (res.status == 200) {
  562. this.triggered = false;
  563. this.freshing = true;
  564. this.totalNum = res.totalNum;
  565. console.log(66666,res.list)
  566. res.list = res.list.map(v => {
  567. if(v.yyTime){
  568. let [date, time] = v.yyTime.split(" ");
  569. v.yyTime = new Date(date).Format('yyyy-MM-dd') + " " + time.slice(0, -3);
  570. }
  571. return v;
  572. })
  573. if (idx === 0) {
  574. this.zxzData = res.list;
  575. } else {
  576. this.zxzData.push(...res.list);
  577. }
  578. } else {
  579. uni.showToast({
  580. icon: "none",
  581. title: res.msg || "接口获取数据失败!",
  582. });
  583. }
  584. });
  585. },
  586. //刷新
  587. refresherrefresh() {
  588. if (this.triggered) {
  589. return;
  590. }
  591. console.log("下拉刷新");
  592. this.triggered = true;
  593. this.idx = 0;
  594. this.totalNum = -1;
  595. this.waitingOrders(0);
  596. },
  597. // 下拉刷新复位
  598. refresherrestore() {
  599. this.triggered = false;
  600. console.log("下拉刷新复位");
  601. },
  602. //下拉刷新中止
  603. refresherabort() {
  604. this.triggered = false;
  605. console.log("下拉刷新中止");
  606. },
  607. //分页,上拉加载
  608. scrolltolower() {
  609. if (this.freshing) {
  610. console.log("上拉加载");
  611. this.freshing = false;
  612. this.waitingOrders(++this.idx);
  613. }
  614. },
  615. // 滚动
  616. scroll(e) {
  617. this.scrollYY = e.detail.scrollTop;
  618. if (e.detail.scrollTop < 20) {
  619. this.scroll_refresher_enabled = true;
  620. } else {
  621. this.scroll_refresher_enabled = false;
  622. }
  623. },
  624. // 阻止浏览器滑动
  625. stop(e) {
  626. e.preventDefault();
  627. },
  628. },
  629. onLoad(options) {
  630. console.log(options, 'options');
  631. let patientCurrentDept = uni.getStorageSync("patientCurrentDept");
  632. if (Object.keys(options).length) {
  633. let {
  634. id,
  635. dept,
  636. patientCode
  637. } = options;
  638. this.currenDept.id = id;
  639. this.currenDept.dept = dept;
  640. this.currenDept.patientCode = patientCode;
  641. this.keyWordOld = patientCode;
  642. } else if (patientCurrentDept) {
  643. this.currenDept.id = patientCurrentDept.id;
  644. this.currenDept.dept = patientCurrentDept.dept;
  645. } else {
  646. this.currenDept = uni.getStorageSync("userData").user.dept;
  647. }
  648. this.waitingOrders(0);
  649. // #ifdef APP-PLUS
  650. webHandle("no", "app");
  651. // #endif
  652. // #ifdef H5
  653. webHandle("no", "wx");
  654. // #endif
  655. },
  656. onShow() {
  657. // #ifdef H5
  658. document.body.addEventListener("touchmove", this.stop, {
  659. passive: false,
  660. });
  661. // #endif
  662. },
  663. onHide() {
  664. // #ifdef H5
  665. document.body.removeEventListener("touchmove", this.stop, {
  666. passive: false,
  667. });
  668. // #endif
  669. },
  670. };
  671. </script>
  672. <style lang="less" scoped>
  673. .toolbar {
  674. position: fixed;
  675. left: 0;
  676. bottom: var(--window-bottom);
  677. z-index: 99;
  678. width: 100%;
  679. display: flex;
  680. justify-content: center;
  681. align-items: center;
  682. box-sizing: border-box;
  683. border-radius: 4rpx;
  684. background-color: #E5E8ED;
  685. .toolbar-icon {
  686. font-size: 52rpx;
  687. margin-right: 16rpx;
  688. color: #49B856;
  689. }
  690. .toolbar-sao {
  691. font-size: 36rpx;
  692. color: #333;
  693. }
  694. }
  695. .newicon-weibiaoti2010104 {
  696. font-size: 32rpx;
  697. padding-left: 5rpx;
  698. color: #8A8A8A;
  699. &.fz28{
  700. font-size: 28rpx;
  701. }
  702. }
  703. button {
  704. font-size: 24rpx;
  705. color: #49b856;
  706. height: 48rpx;
  707. margin: 0;
  708. display: flex;
  709. align-items: center;
  710. justify-content: center;
  711. }
  712. .inspectList {
  713. width: 100%;
  714. height: 100%;
  715. position: relative;
  716. .page_tab {
  717. width: 100%;
  718. height: 90rpx;
  719. display: flex;
  720. position: fixed;
  721. left: 0;
  722. top: 0;
  723. z-index: 999;
  724. .page_tab_bar {
  725. flex: 1;
  726. font-size: 30rpx;
  727. background: #fff;
  728. display: flex;
  729. justify-content: center;
  730. align-items: center;
  731. position: relative;
  732. border-bottom: 8rpx solid #49B856;
  733. .tab_dept {
  734. position: relative;
  735. }
  736. .moreFilter {
  737. width: 48rpx;
  738. position: absolute;
  739. right: 16rpx;
  740. top: 50%;
  741. transform: translateY(-50%);
  742. color: #8A8A8A;
  743. }
  744. &.active {
  745. color: #49b856;
  746. &:after {
  747. background-color: #49b856;
  748. }
  749. }
  750. }
  751. }
  752. .zwsj {
  753. position: absolute;
  754. left: 50%;
  755. top: 180rpx;
  756. transform: translateX(-50%);
  757. .zwsj-img {
  758. width: 560rpx;
  759. }
  760. .zwsj-txt {
  761. font-size: 36rpx;
  762. font-weight: 700;
  763. margin-top: 20rpx;
  764. text-align: center;
  765. }
  766. }
  767. .page_items {
  768. height: calc(100vh - 164rpx);
  769. padding-top: 90rpx;
  770. .page_items_scroll {
  771. height: 100%;
  772. .page_item_wrap {
  773. position: relative;
  774. margin-top: 8rpx;
  775. &:last-of-type{
  776. padding-bottom: 24rpx;
  777. }
  778. .page_item {
  779. background: #fff;
  780. border-radius: 8rpx;
  781. overflow: hidden;
  782. border: 2rpx solid #e5e9ed;
  783. display: flex;
  784. flex-direction: column;
  785. justify-content: space-between;
  786. .L {
  787. width: 40rpx;
  788. height: 40rpx;
  789. border-radius: 50%;
  790. background: #f9fafb;
  791. position: absolute;
  792. left: -24rpx;
  793. top: 68rpx;
  794. border: 2rpx solid #e5e9ed;
  795. }
  796. .R {
  797. width: 40rpx;
  798. height: 40rpx;
  799. border-radius: 50%;
  800. background: #f9fafb;
  801. position: absolute;
  802. float: right;
  803. right: -24rpx;
  804. top: 68rpx;
  805. border: 2rpx solid #e5e9ed;
  806. }
  807. .page_item_top {
  808. height: 86rpx;
  809. border-bottom: 2rpx dashed #e5e9ed;
  810. padding: 0 16rpx;
  811. display: flex;
  812. align-items: center;
  813. justify-content: space-between;
  814. .page_item_top_L {
  815. height: 100%;
  816. float: left;
  817. display: flex;
  818. align-items: center;
  819. text-overflow: ellipsis;
  820. overflow: hidden;
  821. white-space: nowrap;
  822. .L_time {
  823. font-size: 30rpx;
  824. font-weight: bold;
  825. position: relative;
  826. display: flex;
  827. align-items: center;
  828. &:after{
  829. content: '';
  830. position: absolute;
  831. left: 0;
  832. bottom: 0;
  833. height: 1px;
  834. width: 100%;
  835. background: #000;
  836. }
  837. .circle{
  838. display: inline-block;
  839. width: 12rpx;
  840. height: 12rpx;
  841. background-color: red;
  842. border-radius: 50%;
  843. margin-right: 8rpx;
  844. }
  845. }
  846. }
  847. .page_item_top_R {
  848. float: right;
  849. display: flex;
  850. align-items: center;
  851. justify-content: space-between;
  852. text {
  853. font-size: 30rpx;
  854. color: #49b856;
  855. margin-right: 16rpx;
  856. }
  857. }
  858. }
  859. .page_item_cont {
  860. padding: 0 32rpx;
  861. text-align: left;
  862. position: relative;
  863. .page_item_conts {
  864. color: rgb(102, 102, 102);
  865. font-size: 26rpx;
  866. .page_item_conts_item {
  867. margin-bottom: 16rpx;
  868. display: flex;
  869. justify-content: space-between;
  870. &:first-of-type{
  871. margin-top: 16rpx;
  872. }
  873. }
  874. .p_info {
  875. flex: 1;
  876. &.red {
  877. color: red;
  878. }
  879. }
  880. .num {
  881. float: right;
  882. }
  883. }
  884. }
  885. .page_item_btn {
  886. height: 88rpx;
  887. background-image: linear-gradient(to right, #72c172, #3bb197);
  888. border-radius: 8rpx;
  889. line-height: 88rpx;
  890. color: #fff;
  891. font-size: 36rpx;
  892. font-weight: 700;
  893. text-align: center;
  894. }
  895. }
  896. .L-l {
  897. width: 2rpx;
  898. height: 40rpx;
  899. background: #f9fafb;
  900. position: absolute;
  901. left: 20rpx;
  902. top: 72rpx;
  903. display: none;
  904. }
  905. .R-l {
  906. width: 2rpx;
  907. height: 40rpx;
  908. background: #f9fafb;
  909. position: absolute;
  910. right: 20rpx;
  911. top: 72rpx;
  912. display: none;
  913. }
  914. }
  915. }
  916. }
  917. }
  918. </style>