myTicket.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014
  1. <template>
  2. <view class="kd-work-container">
  3. <uni-nav-bar fixed="true" statusBar="true" left-icon="back" :title="orderType == 1 ? '工单待办' : '工单已办'"
  4. right-icon="scan" @clickLeft="back">
  5. <view slot="right">
  6. <view @click="HandlScanCode" class="scan_btn"></view>
  7. </view>
  8. </uni-nav-bar>
  9. <view class="top-wrapper">
  10. <view class="tab_box rx-sc">
  11. <view class="tab_item" :class="{active: activeIndex == item.index}" v-for="(item,index) in tabList"
  12. :key="index">
  13. <view @click="handleTabChange(item)" class="badge-c">
  14. {{item.name}}
  15. <u-badge max="99" :value="item.badge.value" absolute v-show="orderType==1"></u-badge>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="more_search">
  20. <image src="~@/static/moreSearch.svg" mode="" @click="searchShow = true"></image>
  21. </view>
  22. </view>
  23. <view v-if="activeType == 'quality'">
  24. <InspectionWorkList pageName="myList" :way="orderType == 1 ? 'todo' : 'done'" ref="inspectionWorkListRef">
  25. </InspectionWorkList>
  26. </view>
  27. <view v-else class="work-list">
  28. <!-- 站号筛选 && -->
  29. <view v-if="activeType == 'patrol' && clientEnvironmentId == 10" class="group-tab-bar rx-sc">
  30. <view class="group-tab-item" v-for="(tab, idx) in groupTabs" :key="idx"
  31. :class="{ active: groupId === tab.groupId }" @click="switchGroup(tab.groupId)">
  32. {{ tab.label }}
  33. </view>
  34. </view>
  35. <u-list @scrolltolower="scrolltolower" :key="activeType" :preLoadScreen="page * 10">
  36. <u-list-item v-for="(item, index) in dataList" :key="index">
  37. <CardTime :time="item.createTime" />
  38. <KdCard :orderTitle="orderTitle" :title="item.code" @handleDetail="handleDetail" :status="true"
  39. :item="item" :type="activeType" />
  40. </u-list-item>
  41. <u-list-item v-if="dataList.length === 0">
  42. <view class="nodata">暂无数据</view>
  43. </u-list-item>
  44. </u-list>
  45. </view>
  46. <SearchPopup mode="top" v-if="searchShow">
  47. <template v-slot:list>
  48. <view class="search_list">
  49. <u-form labelPosition="left" :model="formData" labelWidth="180" labelAlign="left" class="baseForm">
  50. <u-form-item v-if="orderType == 1 && statusRange[activeType].length > 0" label="类型:"
  51. class="required-form" borderBottom prop="assetType">
  52. <u-checkbox-group v-model="searchFrom.orderStatus" placement="row" size="30"
  53. @change="statusChange">
  54. <u-checkbox v-for="(item, index) in statusRange[activeType]"
  55. :customStyle="{ marginRight: '8px' }" :label="item.text" :name="item.value"
  56. labelSize="30" iconSize="30" activeColor="#157A2C"></u-checkbox>
  57. </u-checkbox-group>
  58. </u-form-item>
  59. <u-form-item label="编号:" class="required-form" borderBottom prop="assetType">
  60. <input type="text" placeholder="请输入编号" v-model="searchFrom.code" />
  61. </u-form-item>
  62. </u-form>
  63. </view>
  64. </template>
  65. <template v-slot:operate>
  66. <view class="operate_box rx-bc">
  67. <u-button size="small" class="u-reset-button mg-20" @click="searchShow = false">取消</u-button>
  68. <u-button type="warning" size="small" class="u-reset-button mg-20" @click="reset">重置</u-button>
  69. <u-button type="success" size="small" class="u-reset-button" @click="doSearch">确定</u-button>
  70. </view>
  71. </template>
  72. </SearchPopup>
  73. </view>
  74. </template>
  75. <script>
  76. import {
  77. getByCode
  78. } from '@/api/pda/common.js'
  79. import {
  80. workorderMyPage
  81. } from '@/api/pda/workOrder'
  82. import SearchPopup from '@/pages/pda/components/searchPopup.vue'
  83. import {
  84. getWorkOrderList,
  85. statistics,
  86. deviceListQrCode
  87. } from '@/api/myTicket'
  88. import KdCard from '../components/KdCard/index.vue'
  89. import CardTime from '../components/CardTime.vue'
  90. import {
  91. getByFixCode
  92. } from '@/api/repair'
  93. import {
  94. nextTick
  95. } from 'vue'
  96. import InspectionWorkList from '@/pages/qms/inspectionWork/list.vue'
  97. import {
  98. getPlanOrderList
  99. } from '@/api/warehouseManagement'
  100. // import { postJ } from '@/utils/api'
  101. let [isEnd] = [false]
  102. export default {
  103. components: {
  104. KdCard,
  105. CardTime,
  106. SearchPopup,
  107. InspectionWorkList
  108. },
  109. data() {
  110. return {
  111. clientEnvironmentId: uni.getStorageSync("userInfo") &&uni.getStorageSync("userInfo").clientEnvironmentId,
  112. groupId: null,
  113. formData: {},
  114. orderTitle: '',
  115. tabsCurrent: 0, // tabs初始位置
  116. doneRange: [{
  117. value: 1,
  118. text: '普通'
  119. },
  120. {
  121. value: 2,
  122. text: '紧急'
  123. },
  124. {
  125. value: 3,
  126. text: '重要'
  127. }
  128. ],
  129. tabList: [
  130. // {
  131. // name: '计划维修工单',
  132. // type: 'repair',
  133. // workOrderType: 4,
  134. // url: `/pages/maintain_service/detail/detail?`,
  135. // badge: {
  136. // value: 0
  137. // }
  138. // },
  139. {
  140. name: '保养工单',
  141. type: 'maintenance',
  142. workOrderType: 2,
  143. index: 0,
  144. url: `/pages/maintenance/detail/detail?`,
  145. badge: {
  146. value: 0
  147. }
  148. },
  149. {
  150. name: '巡点检工单',
  151. type: 'patrol',
  152. workOrderType: 1,
  153. index: 1,
  154. url: `/pages/tour_tally/detail/detail?`,
  155. badge: {
  156. value: 0
  157. }
  158. },
  159. {
  160. name: '检修',
  161. type: 'service',
  162. workOrderType: 7,
  163. index: 2,
  164. url: `/pages/maintenance/detail/detail?`,
  165. badge: {
  166. value: 0
  167. }
  168. },
  169. // {
  170. // name: '量具送检工单',
  171. // type: 'quantity',
  172. // workOrderType: 5,
  173. // index: 2,
  174. // url: `/pages/quantity/detail/detail?`,
  175. // badge: {
  176. // value: 0
  177. // }
  178. // },
  179. {
  180. name: '维修工单',
  181. type: 'repair',
  182. workOrderType: 3,
  183. index: 3,
  184. // url: `/pages/maintain_service/detail/detail?`,
  185. url: `/pages/maintenanceWorkorder/detail/detail?`,
  186. badge: {
  187. value: 0
  188. }
  189. },
  190. {
  191. name: '生产工单',
  192. type: 'production',
  193. workOrderType: 6,
  194. index:4,
  195. // url: `/pages/maintain_service/detail/detail?`,
  196. url: `/pages/pda/workOrder/extrusionMolding/index?`,
  197. badge: {
  198. value: 0
  199. }
  200. },
  201. {
  202. name: '质检工单',
  203. type: 'quality',
  204. workOrderType: 7,
  205. index: 5,
  206. // url: `/pages/maintain_service/detail/detail?`,
  207. url: ``,
  208. badge: {
  209. value: 0
  210. }
  211. },
  212. {
  213. name: '盘点工单',
  214. type: 'stocktaking',
  215. workOrderType: 8,
  216. index: 6,
  217. // url: `/pages/maintain_service/detail/detail?`,
  218. url: `/pages/warehouse/workOrder/inventory/inventory?`,
  219. badge: {
  220. value: 0
  221. }
  222. }
  223. ],
  224. activeType: 'maintenance',
  225. activeIndex: 0,
  226. dataList: [],
  227. searchShow: false,
  228. statusRange: {
  229. repair: [{
  230. value: 0,
  231. text: '待接收'
  232. },
  233. {
  234. value: 2,
  235. text: '执行中'
  236. }
  237. // {
  238. // value: 0,
  239. // text: '待接收'
  240. // },
  241. // {
  242. // value: 2,
  243. // text: '待审核'
  244. // },
  245. // {
  246. // value: 4,
  247. // text: '已撤回'
  248. // },
  249. // {
  250. // value: 6,
  251. // text: '已驳回'
  252. // },
  253. // {
  254. // value: 8,
  255. // text: '已派单'
  256. // },
  257. // {
  258. // value: 1,
  259. // text: '执行中'
  260. // },
  261. // {
  262. // value: 5,
  263. // text: '待验收'
  264. // },
  265. // {
  266. // value: 3,
  267. // text: '已完成'
  268. // },
  269. // {
  270. // value: 7,
  271. // text: '未修复'
  272. // }
  273. ],
  274. maintenance: [{
  275. value: 0,
  276. text: '待接收'
  277. },
  278. {
  279. value: 2,
  280. text: '执行中'
  281. }
  282. // {
  283. // value: 3,
  284. // text: '完成'
  285. // }
  286. ],
  287. service: [{
  288. value: 0,
  289. text: '待接收'
  290. },
  291. {
  292. value: 2,
  293. text: '执行中'
  294. }
  295. // {
  296. // value: 3,
  297. // text: '完成'
  298. // }
  299. ],
  300. patrol: [{
  301. value: 0,
  302. text: '待接收'
  303. },
  304. {
  305. value: 2,
  306. text: '执行中'
  307. }
  308. // {
  309. // value: 3,
  310. // text: '完成'
  311. // }
  312. ],
  313. quantity: [{
  314. value: 0,
  315. text: '待接收'
  316. },
  317. {
  318. value: 2,
  319. text: '执行中'
  320. },
  321. {
  322. value: 3,
  323. text: '完成'
  324. }
  325. ],
  326. check: [{
  327. value: 0,
  328. text: '待接收'
  329. },
  330. {
  331. value: 1,
  332. text: '执行中'
  333. },
  334. {
  335. value: 2,
  336. text: '待审核'
  337. },
  338. {
  339. value: 3,
  340. text: '完成'
  341. },
  342. {
  343. value: 4,
  344. text: '已撤回'
  345. },
  346. {
  347. value: 5,
  348. text: '待验收'
  349. },
  350. {
  351. value: 6,
  352. text: '已驳回'
  353. },
  354. {
  355. value: 7,
  356. text: '未修复'
  357. },
  358. {
  359. value: 8,
  360. text: '已派单'
  361. }
  362. ],
  363. quality: [],
  364. stocktaking: [],
  365. production: [],
  366. service: [],
  367. },
  368. searchFrom: {
  369. code: '',
  370. orderStatus: []
  371. },
  372. page: 1,
  373. isInstall: true, // 是否首次进入页面
  374. orderType: 1,
  375. codeData: [],
  376. groupTabs: [{
  377. label: '全部',
  378. groupId: null
  379. },
  380. {
  381. label: '5号站',
  382. groupId: '2008729845612720129'
  383. },
  384. {
  385. label: '6号站',
  386. groupId: '2008729929536548865'
  387. },
  388. {
  389. label: '7号站',
  390. groupId: '2008730320160468994'
  391. }
  392. ],
  393. }
  394. },
  395. created() {
  396. uni.$off('successInit')
  397. uni.$on('successInit', (data) => {
  398. this.$nextTick(() => {
  399. this.$refs.inspectionWorkListRef.successInit()
  400. })
  401. })
  402. },
  403. async onLoad(e) {
  404. console.log('e~~~', e)
  405. this.$nextTick(() => {
  406. console.log(this)
  407. this.isInstall = false
  408. this.orderType = e.orderType // 1待办 2完成
  409. this.tabsCurrent = Number(e.index) ? Number(e.index) : 0
  410. this.$nextTick(async () => {
  411. if (this.orderType == 1) {
  412. await this.getCount()
  413. }
  414. const targetTab = this.tabList[this.tabsCurrent]
  415. if (targetTab) {
  416. this.handleTabChange(targetTab)
  417. }
  418. })
  419. })
  420. },
  421. onUnload() {
  422. uni.$off('successInit')
  423. },
  424. onShow(e) {
  425. console.log(this.orderType);
  426. if (this.isInstall) return
  427. this.dataList = []
  428. this.getList()
  429. this.getCount()
  430. },
  431. methods: {
  432. switchGroup(groupId) {
  433. // this.$emit('changeGroup', groupId)
  434. this.groupId = groupId;
  435. this.getList()
  436. },
  437. // 相机扫码
  438. HandlScanCode() {
  439. // uni.scanCode({
  440. // success: res => {
  441. // let obj = {}
  442. // if (res.result.includes('&')) {
  443. // this.dataArray = res.result.split('&')
  444. // console.log(this.dataArray, 'this.dataArray')
  445. // obj = {
  446. // fixCode: this.dataArray[0],
  447. // code: ''
  448. // }
  449. // } else {
  450. // obj = {
  451. // fixCode: '',
  452. // code: res.result
  453. // }
  454. // }
  455. // console.log(obj,'obj')
  456. // getByFixCode(obj).then(res => {
  457. // uni.navigateTo({
  458. // url: `/pages/home/myTicket/detail?deviceId=${res.id}&type=${this.tabList[this.activeIndex].workOrderType}&codes=${this.dataArray[1]}`
  459. // })
  460. // })
  461. // }
  462. // })
  463. uni.scanCode({
  464. success: res => {
  465. console.log(res.result)
  466. let obj = {}
  467. if (res.result.includes('&')) {
  468. this.codeData = res.result.split('&')
  469. obj = {
  470. fixCode: '',
  471. code: this.codeData[0]
  472. }
  473. } else if (res.result.includes('/')) {
  474. let dataArray = res.result.split('/')
  475. obj = {
  476. fixCode: dataArray[0],
  477. code: ''
  478. }
  479. } else {
  480. obj = {
  481. fixCode: '',
  482. code: res.result
  483. }
  484. }
  485. getByFixCode(obj).then(res => {
  486. let params = {
  487. type: this.tabList[this.activeIndex].workOrderType,
  488. deviceId: res.id
  489. }
  490. deviceListQrCode(params).then(data => {
  491. if (data.length > 1) {
  492. uni.navigateTo({
  493. url: `/pages/home/myTicket/detail?deviceId=${res.id}&type=${this.tabList[this.activeIndex].workOrderType}`
  494. })
  495. } else {
  496. uni.navigateTo({
  497. url: `/pages/tour_tally/check/index?id=${data[0].id}&codes=${this.codeData[1]}`
  498. })
  499. }
  500. })
  501. })
  502. }
  503. })
  504. },
  505. // 紧急度选择
  506. doneChange(id) {},
  507. doSearch() {
  508. this.dataList = []
  509. this.page = 1
  510. this.getList()
  511. this.searchShow = false
  512. },
  513. reset() {
  514. this.searchFrom = {
  515. code: '',
  516. orderStatus: []
  517. }
  518. if (this.orderType == 1) {
  519. // 待办 执行中
  520. this.searchFrom.orderStatus = [0, 2]
  521. } else {
  522. // 已完成
  523. this.searchFrom.orderStatus = [4]
  524. }
  525. this.doSearch()
  526. },
  527. statusChange(value) {
  528. console.log(value)
  529. this.searchFrom.orderStatus = value
  530. },
  531. handleDetail(item) {
  532. let url = this.tabList[this.activeIndex]?.url
  533. if (!url) return
  534. if (this.activeType == 'stocktaking') {
  535. url += `id=${item.id}&status=${item.status}`
  536. } else if (this.activeType == 'production') {
  537. url += `id=${item.id}&title=${item.taskName}&singleReport=${item.singleReport}`
  538. } else {
  539. // url += `id=${item.id}&workOrderCode=${item.workOrderCode}&BizType=${item.bizType}`
  540. url += `id=${item.id}&planId=${item.planId}&code=${item.code}&&orderType=${this.orderType}`
  541. }
  542. console.log(url)
  543. uni.navigateTo({
  544. url
  545. })
  546. },
  547. scrolltolower() {
  548. if (isEnd) return
  549. this.page++
  550. this.getList()
  551. },
  552. handleTabChange(item) {
  553. console.log(item, 'mmmmm')
  554. console.log(item)
  555. this.activeType = item.type
  556. this.activeIndex = item.index
  557. this.dataList = []
  558. this.page = 1
  559. this.reset()
  560. this.searchShow = false
  561. if (this.activeType == 'quality') {
  562. this.$nextTick(() => {
  563. this.$refs.inspectionWorkListRef.getList()
  564. })
  565. }
  566. },
  567. getCount() {
  568. statistics().then(data => {
  569. console.log('onsole.log(data)-----------')
  570. console.log(data)
  571. console.log('this.tabList~~~', this.tabList)
  572. this.tabList = this.tabList.map(item => {
  573. console.log('item~~~', item)
  574. let badgeValue = 0
  575. switch (item.type) {
  576. case 'maintenance':
  577. badgeValue = data.maintenanceNum
  578. break
  579. case 'patrol':
  580. badgeValue = data.patrolInspection
  581. break
  582. case 'quantity':
  583. badgeValue = data.quantityNum
  584. break
  585. case 'repair':
  586. badgeValue = data.repairsNum
  587. break
  588. case 'production':
  589. badgeValue = data.productionNum
  590. break
  591. case 'check':
  592. badgeValue = data.checkNum
  593. break
  594. case 'service':
  595. badgeValue = data.serviceNum
  596. break
  597. }
  598. return {
  599. ...item,
  600. badge: {
  601. value: badgeValue
  602. }
  603. }
  604. })
  605. })
  606. // Promise.all(
  607. // this.tabList.map(item =>
  608. // getWorkOrderList(
  609. // {
  610. // type: item.workOrderType
  611. // },
  612. // false
  613. // )
  614. // )
  615. // ).then(res => {
  616. // res.forEach((item, index) => {
  617. // console.log(item)
  618. // // if (item?.success) {
  619. // // this.tabList[index].badge.value = item.data.count
  620. // // }
  621. // })
  622. // })
  623. },
  624. getList() {
  625. if (this.activeType == 'quality') {
  626. return
  627. }
  628. uni.showLoading({
  629. title: '加载中'
  630. })
  631. console.log('this.searchFrom-----------------')
  632. console.log(this.searchFrom)
  633. isEnd = false
  634. const userInfo = uni.getStorageSync('userInfo')
  635. if (this.activeType == 'production') {
  636. let statusList = []
  637. if (this.orderType == 1) {
  638. statusList = [4, 5, 7]
  639. } else {
  640. statusList = [6, 10]
  641. }
  642. workorderMyPage({
  643. pageNum: this.page,
  644. size: 10,
  645. ...this.searchFrom,
  646. statusList: statusList,
  647. workCenterIds: userInfo.workCenterIds
  648. })
  649. .then(res => {
  650. console.log('workorderMyPage~~~', res)
  651. if (res.list?.length > 0) {
  652. this.dataList = this.dataList.concat(res.list)
  653. isEnd = this.dataList.length >= res.count
  654. } else {
  655. this.dataList = []
  656. }
  657. console.log(this.dataList)
  658. uni.hideLoading()
  659. })
  660. } else if (this.activeType == 'stocktaking') {
  661. getPlanOrderList({
  662. pageNum: this.page,
  663. size: 10,
  664. status: this.orderType == 1 ? 0 : 2,
  665. ...this.searchFrom,
  666. executorId: userInfo.userId
  667. }).then(res => {
  668. if (res.list?.length > 0) {
  669. // if (params.page === 1) {
  670. // this.dataList = []
  671. // }
  672. // this.dataList.push(...res.data.list.records)
  673. this.dataList = this.dataList.concat(res.list)
  674. isEnd = this.dataList.length >= res.count
  675. } else {
  676. this.dataList = []
  677. }
  678. console.log(this.dataList)
  679. uni.hideLoading()
  680. })
  681. } else {
  682. const params = {
  683. type: this.tabList[this.activeIndex].workOrderType,
  684. pageNum: this.page,
  685. size: 10,
  686. ...this.searchFrom,
  687. }
  688. // 维修
  689. if (this.tabList[this.activeIndex].workOrderType == 3) {
  690. // let userInfo = uni.getStorageSync('userInfo')
  691. // params.executeUserId = userInfo.userId
  692. if (this.orderType == 1) {
  693. if (!params.orderStatus.includes(3)) {
  694. // params.orderStatus.push(3)
  695. }
  696. }
  697. } else {
  698. if (this.orderType == 1) {
  699. if (params.orderStatus.includes(3)) {
  700. let index = params.orderStatus.indexOf(3)
  701. params.orderStatus.splice(index, 1)
  702. }
  703. } else {
  704. params.orderStatus = [3]
  705. }
  706. }
  707. if ((this.activeType == 'patrol' || this.activeType == 'service') && this.groupId) {
  708. params.teamId = this.groupId
  709. }
  710. console.log('params~~~', params);
  711. getWorkOrderList(params)
  712. .then(res => {
  713. if (res.list?.length > 0 && params.type === this.tabList[this.activeIndex].workOrderType) {
  714. // if (params.page === 1) {
  715. // this.dataList = []
  716. // }
  717. // this.dataList.push(...res.data.list.records)
  718. this.dataList = this.dataList.concat(res.list)
  719. isEnd = this.dataList.length >= res.count
  720. } else {
  721. this.dataList = []
  722. }
  723. console.log(this.dataList)
  724. uni.hideLoading()
  725. })
  726. .catch(() => {
  727. uni.hideLoading()
  728. })
  729. }
  730. }
  731. //(1:巡点检;2:保养;3:维修;4:盘点)
  732. // _getMyWorkOrderList(params, loading = true) {
  733. // let str = ''
  734. // for (let key in params) {
  735. // str += '&' + key + '=' + params[key]
  736. // }
  737. // return postJ(this.apiUrl + `/eam/PdaWorkOrder/list?${str.substr(1)}`, {}, loading)
  738. // }
  739. }
  740. }
  741. </script>
  742. <style lang="scss" scoped>
  743. scroll-view ::v-deep ::-webkit-scrollbar {
  744. width: 0;
  745. height: 0;
  746. color: transparent;
  747. }
  748. .group-tab-bar {
  749. background: #fff;
  750. padding: 16rpx 32rpx;
  751. border-bottom: 2rpx solid #e1e1e1;
  752. gap: 16rpx;
  753. }
  754. .group-tab-item {
  755. padding: 8rpx 24rpx;
  756. font-size: 28rpx;
  757. color: #666;
  758. border-radius: 32rpx;
  759. background: #f5f5f5;
  760. white-space: nowrap;
  761. &.active {
  762. background: $theme-color;
  763. color: #fff;
  764. }
  765. }
  766. .scan_btn {
  767. background: url('../../../static/scan.png');
  768. background-size: 100% 100%;
  769. background-repeat: no-repeat;
  770. width: 50rpx;
  771. height: 50rpx;
  772. }
  773. .kd-work-container {
  774. height: 100vh;
  775. overflow: hidden;
  776. display: flex;
  777. flex-direction: column;
  778. .work-list {
  779. flex: 1;
  780. overflow: hidden;
  781. padding: 0 24rpx 16rpx 24rpx;
  782. background-color: $page-bg;
  783. .u-list {
  784. height: 100% !important;
  785. }
  786. }
  787. .nodata {
  788. font-size: 40rpx;
  789. text-align: center;
  790. padding-top: 30rpx;
  791. }
  792. }
  793. .top-wrapper {
  794. display: flex;
  795. align-items: center;
  796. background-color: #fff;
  797. position: relative;
  798. .tab_box {
  799. flex: 1;
  800. height: 68rpx;
  801. display: flex;
  802. overflow-x: auto;
  803. overflow-y: hidden;
  804. -webkit-overflow-scrolling: touch;
  805. white-space: nowrap;
  806. flex-shrink: 0;
  807. &::-webkit-scrollbar {
  808. display: none;
  809. }
  810. .tab_item {
  811. height: 68rpx;
  812. line-height: 68rpx;
  813. padding: 0 20rpx;
  814. font-size: 32rpx;
  815. flex-shrink: 0;
  816. // color: #979C9E;
  817. }
  818. .active {
  819. box-sizing: border-box;
  820. border-bottom: 6rpx solid $theme-color;
  821. color: $theme-color;
  822. }
  823. }
  824. .slide-search {
  825. position: absolute;
  826. top: 100%;
  827. left: 0;
  828. right: 0;
  829. z-index: 10;
  830. background-color: #fff;
  831. .timerange {
  832. width: 90%;
  833. margin: 0 auto 10rpx;
  834. }
  835. .select-box {
  836. display: flex;
  837. padding: 0 10rpx;
  838. .uni-stat__select+.uni-stat__select {
  839. margin-left: 10rpx;
  840. }
  841. }
  842. .more-search {
  843. padding-bottom: 20rpx;
  844. .cell {
  845. display: flex;
  846. align-items: center;
  847. padding-right: 20rpx;
  848. &+.cell {
  849. margin-top: 10rpx;
  850. }
  851. /deep/uni-input {
  852. flex: 1;
  853. height: 70rpx;
  854. border: 1rpx solid #e5e5e5;
  855. border-radius: 8rpx;
  856. font-size: 28rpx;
  857. padding-left: 20rpx;
  858. box-sizing: border-box;
  859. }
  860. .label {
  861. width: 180rpx;
  862. text-align: right;
  863. padding-right: 20rpx;
  864. }
  865. }
  866. /deep/.uni-date__x-input {
  867. height: 70rpx !important;
  868. }
  869. .btn-search {
  870. text-align: right;
  871. padding: 10rpx 10rpx 0;
  872. button {
  873. display: inline-block;
  874. width: 200rpx;
  875. height: 60rpx;
  876. line-height: 58rpx;
  877. font-size: 28rpx;
  878. margin-left: 20rpx;
  879. &.primary {
  880. background-color: $j-primary-border-green;
  881. color: #fff;
  882. }
  883. }
  884. }
  885. }
  886. }
  887. .top-tabs {
  888. flex: 1;
  889. }
  890. .more_search {
  891. padding: 0 20rpx;
  892. }
  893. /deep/.u-input {
  894. border: 1rpx solid #ccc;
  895. .u-input__content__field-wrapper__field {
  896. height: 40rpx !important;
  897. }
  898. }
  899. image {
  900. width: 52rpx;
  901. height: 52rpx;
  902. margin-left: 10rpx;
  903. }
  904. }
  905. .search_list {
  906. min-height: 100rpx;
  907. /deep/ .baseForm {
  908. padding: 10rpx 20rpx;
  909. }
  910. }
  911. .operate_box {
  912. padding: 10rpx;
  913. box-sizing: border-box;
  914. }
  915. .mg-20 {
  916. margin-right: 20rpx;
  917. }
  918. .badge-c {
  919. position: relative;
  920. }
  921. .badge {
  922. position: absolute;
  923. top: 0;
  924. right: 0;
  925. transform: translate(100%, -20%);
  926. font-size: 24rpx;
  927. // position: absolute;
  928. // top: -8rpx;
  929. // left: 100rpx;
  930. // font-size: 24rpx;
  931. padding: 0rpx 10rpx;
  932. border-radius: 38rpx;
  933. background-color: #ff4949;
  934. color: #fff;
  935. font-style: normal;
  936. }
  937. /deep/.u-badge {
  938. top: 0;
  939. right: 0;
  940. transform: translate(90%, 20%);
  941. }
  942. </style>