management.vue 27 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084
  1. <template>
  2. <scroll-view class="container" :scroll-y="scrollY" @scrolltolower="scrolltolower">
  3. <view class="top_bg"></view>
  4. <!-- 状态统计区域 后勤管理端 -->
  5. <view class="top_types2" v-if="btns.includes('工单管理分段器')">
  6. <view class="top">
  7. <uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="text" activeColor="#6FB6B8"></uni-segmented-control>
  8. </view>
  9. <view class="bottom">
  10. <view class="bottom_box" :class="{ active: state === 1 }" @click="handleFilter(1)">
  11. <view class="box_num">{{ receivingCount }}</view>
  12. <view class="box_info">待接单</view>
  13. </view>
  14. <view class="bottom_box" :class="{ active: state === 2 }" @click="handleFilter(2)">
  15. <view class="box_num">{{ maintenanceCount }}</view>
  16. <view class="box_info">维修中</view>
  17. </view>
  18. <view class="bottom_box" :class="{ active: state === 3 }" @click="handleFilter(3)">
  19. <view class="box_num">{{ timeoutCount }}</view>
  20. <view class="box_info">已超时</view>
  21. </view>
  22. <view class="bottom_box" :class="{ active: state === 4 }" @click="handleFilter(4)">
  23. <view class="box_num">{{ examineCount }}</view>
  24. <view class="box_info">待审核</view>
  25. </view>
  26. <view class="bottom_box" :class="{ active: state === 5 }" v-if="current === 0" @click="handleFilter(5)">
  27. <view class="box_num">{{ finishedCount }}</view>
  28. <view class="box_info">已完成</view>
  29. </view>
  30. <view class="bottom_box" :class="{ active: state === 7 }" v-if="current === 0" @click="handleFilter(7)">
  31. <view class="box_num">{{ closedCount }}</view>
  32. <view class="box_info">已关单</view>
  33. </view>
  34. </view>
  35. </view>
  36. <!-- 状态统计区域 维修师傅端 -->
  37. <view class="top_types" v-else>
  38. <view class="types_box" :class="{ active: state === 1 }" @click="handleFilter(1)">
  39. <view class="box_num">{{ receivingCount }}</view>
  40. <view class="box_info">待接单</view>
  41. </view>
  42. <view class="types_box" :class="{ active: state === 2 }" @click="handleFilter(2)">
  43. <view class="box_num">{{ maintenanceCount }}</view>
  44. <view class="box_info">维修中</view>
  45. </view>
  46. <view class="types_box" :class="{ active: state === 3 }" @click="handleFilter(3)">
  47. <view class="box_num">{{ timeoutCount }}</view>
  48. <view class="box_info">已超时</view>
  49. </view>
  50. <view class="types_box" :class="{ active: state === 4 }" @click="handleFilter(4)">
  51. <view class="box_num">{{ examineCount }}</view>
  52. <view class="box_info">待审核</view>
  53. </view>
  54. <view class="types_box" v-if="btns.includes('分段器按钮')" :class="{ active: state === 5 }" @click="handleFilter(5)">
  55. <view class="box_num">{{ finishedCount }}</view>
  56. <view class="box_info">已完成</view>
  57. </view>
  58. <view class="types_box" v-if="btns.includes('分段器按钮')" :class="{ active: state === 7 }" @click="handleFilter(7)">
  59. <view class="box_num">{{ closedCount }}</view>
  60. <view class="box_info">已关单</view>
  61. </view>
  62. </view>
  63. <!-- 订单列表区域 -->
  64. <view class="body">
  65. <!-- 每一个订单区域 -->
  66. <view class="body_item" v-for="item in dataList" :key="item.id">
  67. <!-- 工单编号 -->
  68. <view class="item_title">
  69. <img src="../../static/images/repairsImg/order.png" />
  70. <view class="title_info">工单编号:{{ item.recordNo }}</view>
  71. </view>
  72. <!-- 报修时间 -->
  73. <view class="item_time">
  74. <view class="time_msg">
  75. 报修时间:
  76. <text>{{ item.reportTime }}</text>
  77. </view>
  78. <view class="time_type" v-if="item.state === '待接单'">待接单</view>
  79. <view class="time_type color_type" v-if="item.state === '维修中'">维修中</view>
  80. <view class="time_type color_type2" v-if="item.state === '待审核'">待审核</view>
  81. <view class="time_type color_type3" v-if="item.state === '已完成'">已完成</view>
  82. <view class="time_type" v-if="item.state === '待确认'">待确认</view>
  83. <view class="time_type color_type4" v-if="item.state === '已关单'">已关单</view>
  84. </view>
  85. <!-- 报修姓名 -->
  86. <view class="item_box">
  87. <view class="box_key">报修姓名:</view>
  88. <view class="box_value">{{ item.userName }}</view>
  89. <view class="box_type" v-if="item.timeoutStr">超时未接</view>
  90. <view class="box_type" v-if="item.maintenanceTimeout">维修超时</view>
  91. </view>
  92. <!-- 报修电话 -->
  93. <view class="item_box">
  94. <view class="box_key">报修电话:</view>
  95. <view class="box_value phone" @click="handleCallPhone(item.userPhone)">
  96. {{ item.userPhone }}
  97. <img src="../../static/images/repairsImg/phone.png" />
  98. </view>
  99. </view>
  100. <!-- 报修区域 -->
  101. <view class="item_box">
  102. <view class="box_key">报修区域:</view>
  103. <view class="box_value">{{ item.areaName }}</view>
  104. </view>
  105. <!-- 详细地址 -->
  106. <view class="item_box">
  107. <view class="box_key">详细地址:</view>
  108. <view class="box_value">{{ item.address }}</view>
  109. </view>
  110. <!-- 报修物品 -->
  111. <view class="item_box">
  112. <view class="box_key">报修物品:</view>
  113. <view class="box_value">{{ item.articleName }}</view>
  114. </view>
  115. <!-- 故障描述 -->
  116. <view class="item_box" v-if="item.description">
  117. <view class="box_key">故障描述:</view>
  118. <view class="box_value">{{ item.description }}</view>
  119. </view>
  120. <!-- 上传图片 -->
  121. <view class="item_img">
  122. <view class="img_key">上传图片:</view>
  123. <img class="img_value" mode="aspectFill" :src="item.images[0]" @click="handleLookImgs(item.images)" />
  124. </view>
  125. <!-- 维修师傅 -->
  126. <view class="item_time" v-if="item.state !== '待接单' && item.state !== '待确认' && item.maintenancerName">
  127. <view class="time_msg">
  128. 维修师傅:
  129. <text>{{ item.maintenancerName }}</text>
  130. </view>
  131. </view>
  132. <!-- 师傅电话 -->
  133. <view class="item_box" v-if="item.state !== '待接单' && item.state !== '待确认' && item.maintenancerPhone">
  134. <view class="box_key">师傅电话:</view>
  135. <view class="box_value phone" @click="handleCallPhone(item.maintenancerPhone)">
  136. {{ item.maintenancerPhone }}
  137. <img src="../../static/images/repairsImg/phone.png" />
  138. </view>
  139. </view>
  140. <!-- 维修费用 -->
  141. <view class="item_box" v-if="(item.state === '待审核' || item.state === '已完成' || item.state === '待确认') && item.price">
  142. <view class="box_key">维修费用:</view>
  143. <view class="box_value2 phone" @click="checkFeeDetail(item)">
  144. {{ item.price }}元
  145. <img src="../../static/images/repairsImg/eye.png" />
  146. </view>
  147. </view>
  148. <!-- 按钮区域 -->
  149. <view class="item_btn">
  150. <!-- 关闭按钮 -->
  151. <img v-if="item.state === '待接单' || item.state === '维修中'" src="../../static/images/repairsImg/close.png" @click="handleClose(item)" />
  152. <!-- 协作按钮 -->
  153. <img class="img" src="../../static/images/repairsImg/help.png" v-if="item.state === '待接单' && btns.includes('协作')" @click="handleHelp(item)" />
  154. <!-- 延时按钮 -->
  155. <view class="btn_box type" v-if="(item.state === '待接单' || item.state === '维修中') && btns.includes('延时')" @click="handleDelay(item)">延时</view>
  156. <!-- 接单按钮 -->
  157. <view class="btn_box type" v-if="item.state === '待接单' && btns.includes('接单')" @click="handleOrderReceiving(item)">接单</view>
  158. <!-- 转单按钮 -->
  159. <view class="btn_box type2" v-if="item.state === '待接单' && btns.includes('转单')" @click="handleTransferOrder(item)">转单</view>
  160. <!-- 派单按钮 -->
  161. <view class="btn_box type2" v-if="item.state === '待接单' && btns.includes('派单')" @click="handleSendOrder(item)">派单</view>
  162. <!-- 报价按钮 -->
  163. <view class="btn_box type" v-if="item.state === '维修中' && btns.includes('报价')" @click="handleOffer(item)">报价</view>
  164. <!-- 维修完成按钮 -->
  165. <view class="btn_box type2" v-if="item.state === '维修中' && btns.includes('维修完成')" @click="handleFinish(item)">维修完成</view>
  166. <!-- 审核按钮 -->
  167. <view class="btn_box type" v-if="(item.state === '协作审核' || item.state === '转单审核') && btns.includes('审核')" @click="handleAudit(item)">审核</view>
  168. <!-- 改价按钮 -->
  169. <view class="btn_box type" v-if="item.state === '待确认'" @click="handleChangeOffer(item)">改价</view>
  170. <!-- 留言按钮 -->
  171. <view class="btn_box type2" v-if="item.state === '待确认'" @click="handleLeaveWords">留言</view>
  172. </view>
  173. <!-- 关闭按钮弹窗 -->
  174. <uni-popup ref="popup_close" :is-mask-click="false">
  175. <view class="popup_close">
  176. <view
  177. :class="[{ active: activeIndex === index }, { radius: index === 0 }]"
  178. class="close_box"
  179. v-for="(ele, index) in closeList"
  180. :key="ele.id"
  181. @click="handleChangeItem(index)"
  182. >
  183. {{ ele.name }}
  184. </view>
  185. <view class="close_btn">
  186. <view class="btn_box cancel" @click="$refs.popup_close[0].close()">取消</view>
  187. <view class="btn_box confirm" @click="handleCloseConfirm">确定</view>
  188. </view>
  189. </view>
  190. </uni-popup>
  191. <!-- 留言弹窗 -->
  192. <uni-popup ref="popup_leaveWords" :is-mask-click="false">
  193. <view class="pop_leaveWords">
  194. <view class="leaveWords_title">留言</view>
  195. <view class="leaveWords_body">
  196. <textarea placeholder-style="color:#CCCCCC" placeholder="请输入您宝贵的留言" v-model="leaveWords"></textarea>
  197. </view>
  198. <view class="leaveWords_btn">
  199. <view class="btn_box cancel" @click="$refs.popup_leaveWords[0].close()">取消</view>
  200. <view class="btn_box confirm" @click="handleLeaveWordsConfirm">确定</view>
  201. </view>
  202. </view>
  203. </uni-popup>
  204. <!-- 维修费用弹窗 -->
  205. <uni-popup :is-mask-click="false" ref="popup_fee">
  206. <view class="pop_fee">
  207. <view class="fee_title">
  208. 维修费用
  209. <text @click="$refs.popup_fee[0].close()">×</text>
  210. </view>
  211. <view class="fee_content">
  212. <view class="fee_item" v-for="(element, index2) in goodsList" :key="index2">
  213. <view class="fee_box">
  214. 耗材:
  215. <text>{{ element.name }}</text>
  216. </view>
  217. <view class="fee_box">
  218. 耗材单价:
  219. <text>{{ element.price }}元</text>
  220. </view>
  221. <view class="fee_box">
  222. 耗材数量:
  223. <text>{{ element.num }}</text>
  224. </view>
  225. <view class="fee_box">
  226. 耗材费用:
  227. <text>{{ element.count }}元</text>
  228. </view>
  229. </view>
  230. </view>
  231. </view>
  232. </uni-popup>
  233. </view>
  234. </view>
  235. <!-- 没有数据时展示的图片 -->
  236. <view class="no_data" v-if="dataList.length === 0">
  237. <img src="../../pagesClockIn/static/imgs/nodata.png" />
  238. <view>暂无数据</view>
  239. </view>
  240. </scroll-view>
  241. </template>
  242. <script>
  243. export default {
  244. data() {
  245. return {
  246. scrollY: true,
  247. // 按钮权限
  248. btns: [],
  249. // 留言弹窗输入框绑定数据
  250. leaveWords: '',
  251. // 顶部分段器数组
  252. items: ['团队工单', '个人工单'],
  253. // 顶部分段器数组当前索引
  254. current: 0,
  255. // 关闭按钮弹窗当前索引
  256. activeIndex: 0,
  257. // 关闭按钮弹窗选项数组
  258. closeList: [],
  259. // 订单列表
  260. dataList: [],
  261. // 维修费用弹窗数组
  262. goodsList: [],
  263. // 校区id
  264. schoolId: '',
  265. // 用户ID
  266. userId: '',
  267. // 待审核
  268. examineCount: '',
  269. // 待接单
  270. receivingCount: '',
  271. // 维修中
  272. maintenanceCount: '',
  273. // 已完成
  274. finishedCount: '',
  275. // 已超时
  276. timeoutCount: '',
  277. // 已关单
  278. closedCount: '',
  279. // 当前页
  280. currentPage: 1,
  281. // 每页多少条
  282. pageCount: 2,
  283. // 总条数 团队
  284. total: null,
  285. // 总条数 个人
  286. total2: null,
  287. // 订单状态参数
  288. state: 1,
  289. // 订单id
  290. orderId: ''
  291. }
  292. },
  293. mounted() {
  294. console.log('工单管理页面加载')
  295. const repairsUserInfo = uni.getStorageSync('repairsUserInfo')
  296. this.schoolId = repairsUserInfo.schoolId
  297. this.userId = repairsUserInfo.userId
  298. this.btns = repairsUserInfo.btns
  299. console.log(this.btns)
  300. if (this.btns.includes('工单管理分段器') || this.btns.includes('分段器按钮')) {
  301. // 管理员身份或者后勤
  302. this.getTeamCount()
  303. this.getTeamData()
  304. } else {
  305. // 维修师傅
  306. this.getCount()
  307. this.getData()
  308. }
  309. this.getCloseList()
  310. },
  311. methods: {
  312. // 滚动到底部触发回调
  313. scrolltolower() {
  314. if ((this.btns.includes('工单管理分段器') || this.btns.includes('分段器按钮')) && this.current === 0) {
  315. // 团队工单
  316. if (this.total > this.dataList.length) {
  317. this.currentPage++
  318. this.getTeamData()
  319. } else {
  320. uni.showToast({
  321. title: '没有更多数据了',
  322. icon: 'none'
  323. })
  324. }
  325. } else {
  326. // 个人工单
  327. if (this.total2 > this.dataList.length) {
  328. this.currentPage++
  329. this.getData()
  330. } else {
  331. uni.showToast({
  332. title: '没有更多数据了',
  333. icon: 'none'
  334. })
  335. }
  336. }
  337. },
  338. async getCloseList() {
  339. const res = await this.$myRequest_repairs({
  340. url: '/repairClose/queryRepairCloses'
  341. })
  342. // console.log(res)
  343. if (res.code === '200') {
  344. this.closeList = res.data
  345. }
  346. },
  347. handleFilter(state) {
  348. this.state = state
  349. this.dataList = []
  350. this.currentPage = 1
  351. this.handleResetData()
  352. },
  353. async getCount() {
  354. const res = await this.$myRequest_repairs({
  355. url: '/repairRecord/getTechnicianCountByUserId',
  356. data: {
  357. userId: this.userId
  358. }
  359. })
  360. // console.log(res)
  361. if (res.code === '200') {
  362. this.examineCount = res.data.examineCount
  363. this.maintenanceCount = res.data.maintenanceCount
  364. this.receivingCount = res.data.receivingCount
  365. this.timeoutCount = res.data.timeoutCount
  366. }
  367. },
  368. // 获取个人订单数据
  369. async getData() {
  370. const res = await this.$myRequest_repairs({
  371. url: '/repairRecord/getTechniciansByUserId',
  372. data: {
  373. currentPage: this.currentPage,
  374. pageCount: this.pageCount,
  375. state: this.state,
  376. userId: this.userId
  377. }
  378. })
  379. // console.log(res)
  380. if (res.code === '200') {
  381. this.total2 = res.data.totalCount
  382. this.dataList = [...this.dataList, ...res.data.list]
  383. }
  384. },
  385. async getTeamCount() {
  386. const res = await this.$myRequest_repairs({
  387. url: '/repairRecord/queryTeamWorkCount',
  388. data: {
  389. schoolId: this.schoolId
  390. }
  391. })
  392. // console.log(res)
  393. if (res.code === '200') {
  394. this.examineCount = res.data.examineCount
  395. this.receivingCount = res.data.receivingCount
  396. this.maintenanceCount = res.data.maintenanceCount
  397. this.finishedCount = res.data.finishedCount
  398. this.timeoutCount = res.data.timeoutCount
  399. this.closedCount = res.data.closedCount
  400. }
  401. },
  402. // 获取团队订单数据
  403. async getTeamData() {
  404. const res = await this.$myRequest_repairs({
  405. url: '/repairRecord/queryTeamWorkPage',
  406. data: {
  407. currentPage: this.currentPage,
  408. pageCount: this.pageCount,
  409. state: this.state,
  410. schoolId: this.schoolId
  411. }
  412. })
  413. // console.log(res)
  414. if (res.code === '200') {
  415. this.total = res.data.totalCount
  416. this.dataList = [...this.dataList, ...res.data.list]
  417. }
  418. },
  419. // 留言弹窗确定按钮回调
  420. handleLeaveWordsConfirm() {
  421. if (this.leaveWords) {
  422. uni.showToast({
  423. title: '留言成功',
  424. icon: 'success'
  425. })
  426. this.$refs.popup_leaveWords[0].close()
  427. } else {
  428. uni.showToast({
  429. title: '请输入留言内容',
  430. icon: 'none'
  431. })
  432. }
  433. },
  434. // 关闭弹窗确定按钮回调
  435. handleCloseConfirm() {
  436. uni.showModal({
  437. title: '提示',
  438. content: '确定关闭订单吗?',
  439. success: async (res) => {
  440. if (res.confirm) {
  441. const res = await this.$myRequest_repairs({
  442. url: '/repairRecord/closeOrder',
  443. data: {
  444. recordId: this.orderId,
  445. userId: this.userId,
  446. reason: this.closeList[this.activeIndex].name
  447. }
  448. })
  449. // console.log(res)
  450. if (res.code === '200') {
  451. uni.showToast({
  452. title: '关单成功',
  453. icon: 'success'
  454. })
  455. this.$refs.popup_close[0].close()
  456. setTimeout(() => {
  457. this.handleResetData()
  458. }, 1500)
  459. }
  460. }
  461. }
  462. })
  463. },
  464. // 重置当前页面获取最新数据
  465. handleResetData() {
  466. if ((this.btns.includes('工单管理分段器') || this.btns.includes('分段器按钮')) && this.current === 0) {
  467. // 管理员身份或者后勤
  468. this.getTeamCount()
  469. this.getTeamData()
  470. } else {
  471. // 维修师傅
  472. this.getCount()
  473. this.getData()
  474. }
  475. },
  476. // 接单按钮回调
  477. handleOrderReceiving(item) {
  478. uni.showModal({
  479. content: '确定接单吗?',
  480. title: '提示',
  481. success: async (res) => {
  482. if (res.confirm) {
  483. const res = await this.$myRequest_repairs({
  484. url: '/api/repairRecord/receiveOwnOrders',
  485. data: {
  486. recordId: item.id,
  487. userId: this.userId
  488. }
  489. })
  490. console.log(res)
  491. if (res.code === '200') {
  492. uni.showToast({
  493. title: '接单成功',
  494. icon: 'success'
  495. })
  496. setTimeout(() => {
  497. this.handleResetData()
  498. }, 1500)
  499. }
  500. }
  501. }
  502. })
  503. },
  504. // 关闭图标点击回调
  505. handleClose(item) {
  506. this.orderId = item.id
  507. this.activeIndex = 0
  508. this.$refs.popup_close[0].open('center')
  509. },
  510. // 关闭按钮弹窗选中按钮时回调
  511. handleChangeItem(val) {
  512. this.activeIndex = val
  513. },
  514. // 报价按钮回调
  515. handleOffer(item) {
  516. let info = encodeURIComponent(JSON.stringify(item))
  517. uni.navigateTo({
  518. url: `/pagesRepairs/offer/offer?info=${info}`
  519. })
  520. },
  521. // 改价按钮回调
  522. handleChangeOffer(item) {
  523. let info = encodeURIComponent(JSON.stringify(item))
  524. uni.navigateTo({
  525. url: `/pagesRepairs/offer/offer?info=${info}&type=1`
  526. })
  527. },
  528. // 维修完成按钮回调
  529. handleFinish(item) {
  530. const info = JSON.stringify(item)
  531. uni.navigateTo({
  532. url: `/pagesRepairs/repairRecord/repairRecord?info=${info}`
  533. })
  534. },
  535. // 转单按钮回调
  536. handleTransferOrder(item) {
  537. uni.navigateTo({
  538. url: `/pagesRepairs/transferOrder/transferOrder?id=${item.id}`
  539. })
  540. },
  541. // 协作图标点击回调
  542. handleHelp(item) {
  543. uni.navigateTo({
  544. url: `/pagesRepairs/help/help?id=${item.id}`
  545. })
  546. },
  547. // 分段器切换回调
  548. onClickItem(e) {
  549. if (this.current != e.currentIndex) {
  550. this.current = e.currentIndex
  551. console.log(this.current)
  552. this.state = 1
  553. this.dataList = []
  554. this.currentPage = 1
  555. if (this.current === 0) {
  556. // 团队工单
  557. this.getTeamCount()
  558. this.getTeamData()
  559. } else {
  560. // 个人工单
  561. this.getCount()
  562. this.getData()
  563. }
  564. }
  565. },
  566. // 留言按钮回调
  567. handleLeaveWords() {
  568. this.$refs.popup_leaveWords[0].open('center')
  569. },
  570. // 延时按钮回调
  571. handleDelay(item) {
  572. uni.navigateTo({
  573. url: `/pagesRepairs/delay/delay?id=${item.id}`
  574. })
  575. },
  576. // 派单按钮回调
  577. handleSendOrder(item) {
  578. uni.navigateTo({
  579. url: `/pagesRepairs/helpPeople/helpPeople?type=1&id=${item.id}`
  580. })
  581. },
  582. // 审核按钮回调
  583. handleAudit(item) {
  584. if (item.state === '转单审核') {
  585. uni.navigateTo({
  586. url: `/pagesRepairs/transferOrder/transferOrder?type=1&id=${item.id}`
  587. })
  588. } else if (item.state === '协作审核') {
  589. uni.navigateTo({
  590. url: `/pagesRepairs/help/help?type=1&id=${item.id}`
  591. })
  592. }
  593. },
  594. // 查看维修费用回调
  595. checkFeeDetail(item) {
  596. // console.log(item)
  597. this.goodsList = item.goodsList
  598. this.$refs.popup_fee[0].open('center')
  599. },
  600. // 点击电话号码回调
  601. handleCallPhone(phone) {
  602. uni.makePhoneCall({
  603. phoneNumber: phone
  604. })
  605. },
  606. // 点击图片回调
  607. handleLookImgs(img) {
  608. // console.log(img)
  609. uni.previewImage({
  610. urls: img
  611. })
  612. }
  613. }
  614. }
  615. </script>
  616. <style lang="scss" scoped>
  617. .container {
  618. width: 100vw;
  619. height: calc(100vh - 152rpx);
  620. font-size: 32rpx;
  621. overflow-y: auto;
  622. .top_bg {
  623. height: 165rpx;
  624. background-color: #6fb6b8;
  625. }
  626. .top_types {
  627. display: flex;
  628. flex-wrap: wrap;
  629. justify-content: space-evenly;
  630. margin: auto;
  631. margin-top: -100rpx;
  632. width: 690rpx;
  633. border-radius: 10rpx;
  634. box-shadow: 0px 0px 4rpx rgba(0, 0, 0, 0.25);
  635. background-color: #fff;
  636. .types_box {
  637. width: 25%;
  638. height: 188rpx;
  639. display: flex;
  640. flex-direction: column;
  641. justify-content: center;
  642. align-items: center;
  643. .box_num {
  644. font-size: 46rpx;
  645. color: #ff5733;
  646. }
  647. .box_info {
  648. margin-top: 10rpx;
  649. font-size: 34rpx;
  650. }
  651. }
  652. .active {
  653. color: #fff;
  654. background-color: #6fb6b8;
  655. }
  656. }
  657. .top_types2 {
  658. box-sizing: border-box;
  659. margin: auto;
  660. margin-top: -100rpx;
  661. padding: 0 30rpx;
  662. width: 690rpx;
  663. // height: 402rpx;
  664. border-radius: 10rpx;
  665. box-shadow: 0px 0px 4rpx rgba(0, 0, 0, 0.25);
  666. background-color: #fff;
  667. .top {
  668. height: 112rpx;
  669. border-bottom: 1rpx solid #e6e6e6;
  670. }
  671. .bottom {
  672. display: flex;
  673. flex-wrap: wrap;
  674. justify-content: space-evenly;
  675. .bottom_box {
  676. width: 25%;
  677. height: 145rpx;
  678. display: flex;
  679. flex-direction: column;
  680. justify-content: center;
  681. align-items: center;
  682. .box_num {
  683. font-size: 46rpx;
  684. color: #ff5733;
  685. }
  686. .box_info {
  687. // margin-top: 10rpx;
  688. font-size: 34rpx;
  689. }
  690. }
  691. .active {
  692. color: #fff;
  693. background-color: #6fb6b8;
  694. }
  695. }
  696. }
  697. .body {
  698. box-sizing: border-box;
  699. padding: 0 30rpx 30rpx 30rpx;
  700. .body_item {
  701. margin-top: 20rpx;
  702. border-radius: 11rpx;
  703. box-shadow: 0 0 8rpx #d9d9d9;
  704. .item_title {
  705. display: flex;
  706. align-items: center;
  707. padding: 0 30rpx;
  708. height: 87rpx;
  709. border-bottom: 1rpx solid #e6e6e6;
  710. img {
  711. width: 30rpx;
  712. height: 30rpx;
  713. }
  714. .title_info {
  715. margin-left: 16rpx;
  716. // font-size: 28rpx;
  717. font-size: 32rpx;
  718. }
  719. }
  720. .item_time {
  721. display: flex;
  722. justify-content: space-between;
  723. align-items: center;
  724. padding: 0 30rpx;
  725. height: 79rpx;
  726. .time_msg {
  727. // font-size: 28rpx;
  728. color: #808080;
  729. text {
  730. color: #000000;
  731. }
  732. }
  733. .time_type {
  734. font-size: 32rpx;
  735. color: #ff5733;
  736. }
  737. .color_type {
  738. color: #1e7dfb;
  739. }
  740. .color_type2 {
  741. color: #d43030;
  742. }
  743. .color_type3 {
  744. color: #6fb6b8;
  745. }
  746. .color_type4 {
  747. color: #a6a6a6;
  748. }
  749. }
  750. .item_box {
  751. display: flex;
  752. padding: 0 30rpx;
  753. height: 60rpx;
  754. // font-size: 28rpx;
  755. .box_key {
  756. color: #808080;
  757. }
  758. .box_value {
  759. display: flex;
  760. margin-right: auto;
  761. img {
  762. margin-left: 10rpx;
  763. width: 45rpx;
  764. height: 45rpx;
  765. }
  766. }
  767. .box_type {
  768. margin-left: 10rpx;
  769. width: 137rpx;
  770. height: 47rpx;
  771. line-height: 47rpx;
  772. text-align: center;
  773. border-radius: 136rpx;
  774. color: #ff5733;
  775. font-size: 24rpx;
  776. border: 1rpx solid #ff5733;
  777. }
  778. .box_value2 {
  779. display: flex;
  780. img {
  781. margin-top: -2rpx;
  782. margin-left: 14rpx;
  783. width: 46rpx;
  784. height: 46rpx;
  785. }
  786. }
  787. .phone {
  788. color: #6fb6b8;
  789. }
  790. }
  791. .item_img {
  792. display: flex;
  793. align-items: center;
  794. margin-bottom: 10rpx;
  795. padding: 0 30rpx;
  796. height: 120rpx;
  797. color: #808080;
  798. // font-size: 28rpx;
  799. .img_key {
  800. }
  801. .img_value {
  802. width: 120rpx;
  803. height: 120rpx;
  804. border-radius: 14rpx;
  805. }
  806. }
  807. .item_btn {
  808. display: flex;
  809. align-items: center;
  810. justify-content: flex-end;
  811. padding: 0 30rpx;
  812. line-height: 153rpx;
  813. img {
  814. margin-right: auto;
  815. margin-top: 45rpx;
  816. margin-bottom: 40rpx;
  817. width: 56rpx;
  818. height: 56rpx;
  819. }
  820. .img {
  821. margin-right: auto;
  822. margin-left: -55rpx;
  823. margin-top: 45rpx;
  824. margin-bottom: 40rpx;
  825. width: 62rpx;
  826. height: 62rpx;
  827. }
  828. .btn_box {
  829. display: flex;
  830. justify-content: center;
  831. align-items: center;
  832. margin-left: 16rpx;
  833. margin-top: 45rpx;
  834. margin-bottom: 40rpx;
  835. width: 174rpx;
  836. height: 68rpx;
  837. // font-size: 28rpx;
  838. border-radius: 11rpx;
  839. }
  840. .type {
  841. color: #fff;
  842. background-color: #6fb6b8;
  843. }
  844. .type2 {
  845. color: #6fb6b8;
  846. background-color: #fff;
  847. border: 1rpx solid #6fb6b8;
  848. }
  849. }
  850. .popup_close {
  851. width: 690rpx;
  852. border-radius: 19rpx;
  853. background-color: #fff;
  854. .close_box {
  855. height: 100rpx;
  856. line-height: 100rpx;
  857. text-align: center;
  858. font-size: 32rpx;
  859. border: 1rpx solid #e6e6e6;
  860. }
  861. .radius {
  862. border-radius: 19rpx 19rpx 0 0;
  863. }
  864. .active {
  865. color: #fff;
  866. background-color: #6fb6b8;
  867. }
  868. .close_btn {
  869. display: flex;
  870. align-items: center;
  871. justify-content: space-evenly;
  872. margin-top: 100rpx;
  873. height: 121rpx;
  874. .btn_box {
  875. display: flex;
  876. justify-content: center;
  877. align-items: center;
  878. width: 203rpx;
  879. height: 72rpx;
  880. border-radius: 9rpx;
  881. font-size: 32rpx;
  882. }
  883. .cancel {
  884. background-color: #e5e5e5;
  885. color: #6fb6b8;
  886. }
  887. .confirm {
  888. background-color: #6fb6b8;
  889. color: #fff;
  890. }
  891. }
  892. }
  893. .pop_leaveWords {
  894. border-radius: 19rpx;
  895. background-color: #fff;
  896. .leaveWords_title {
  897. display: flex;
  898. justify-content: center;
  899. align-items: center;
  900. width: 690rpx;
  901. height: 110rpx;
  902. font-size: 32rpx;
  903. font-weight: bold;
  904. border-radius: 19rpx 19rpx 0 0;
  905. border-bottom: 1rpx solid #e6e6e6;
  906. }
  907. .leaveWords_body {
  908. height: 320rpx;
  909. textarea {
  910. box-sizing: border-box;
  911. margin: 35rpx 40rpx;
  912. padding: 20rpx;
  913. width: 610rpx;
  914. height: 312rpx;
  915. // font-size: 28rpx;
  916. border-radius: 14rpx;
  917. border: 1rpx solid #e6e6e6;
  918. }
  919. }
  920. .leaveWords_btn {
  921. display: flex;
  922. align-items: center;
  923. justify-content: space-evenly;
  924. height: 121rpx;
  925. .btn_box {
  926. display: flex;
  927. justify-content: center;
  928. align-items: center;
  929. width: 203rpx;
  930. height: 72rpx;
  931. border-radius: 9rpx;
  932. font-size: 32rpx;
  933. }
  934. .cancel {
  935. background-color: #e5e5e5;
  936. color: #6fb6b8;
  937. }
  938. .confirm {
  939. background-color: #6fb6b8;
  940. color: #fff;
  941. }
  942. }
  943. }
  944. .pop_fee {
  945. padding-bottom: 50rpx;
  946. border-radius: 19rpx;
  947. background-color: #fff;
  948. .fee_title {
  949. display: flex;
  950. justify-content: space-between;
  951. align-items: center;
  952. box-sizing: border-box;
  953. padding: 0 31rpx 0 42rpx;
  954. width: 690rpx;
  955. height: 110rpx;
  956. font-size: 32rpx;
  957. font-weight: bold;
  958. border-radius: 19rpx 19rpx 0 0;
  959. border-bottom: 1rpx solid #e6e6e6;
  960. text {
  961. font-size: 45rpx;
  962. font-weight: 400;
  963. color: #808080;
  964. }
  965. }
  966. .fee_content {
  967. max-height: 50vh;
  968. overflow-y: auto;
  969. .fee_item {
  970. border-bottom: 1rpx solid #e6e6e6;
  971. .fee_box {
  972. display: flex;
  973. align-items: center;
  974. padding-left: 42rpx;
  975. height: 80rpx;
  976. // font-size: 28rpx;
  977. color: #808080;
  978. text {
  979. color: #000000;
  980. }
  981. }
  982. }
  983. }
  984. }
  985. }
  986. }
  987. .no_data {
  988. text-align: center;
  989. color: #b3b3b3;
  990. font-size: 24rpx;
  991. img {
  992. margin: 42rpx auto 0;
  993. width: 432rpx;
  994. height: 456rpx;
  995. }
  996. }
  997. }
  998. </style>