management.vue 27 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082
  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. const repairsUserInfo = uni.getStorageSync('repairsUserInfo')
  295. this.schoolId = repairsUserInfo.schoolId
  296. this.userId = repairsUserInfo.userId
  297. this.btns = repairsUserInfo.btns
  298. if (this.btns.includes('工单管理分段器') || this.btns.includes('分段器按钮')) {
  299. // 管理员身份或者后勤
  300. this.getTeamCount()
  301. this.getTeamData()
  302. } else {
  303. // 维修师傅
  304. this.getCount()
  305. this.getData()
  306. }
  307. this.getCloseList()
  308. },
  309. methods: {
  310. // 滚动到底部触发回调
  311. scrolltolower() {
  312. if ((this.btns.includes('工单管理分段器') || this.btns.includes('分段器按钮')) && this.current === 0) {
  313. // 团队工单
  314. if (this.total > this.dataList.length) {
  315. this.currentPage++
  316. this.getTeamData()
  317. } else {
  318. uni.showToast({
  319. title: '没有更多数据了',
  320. icon: 'none'
  321. })
  322. }
  323. } else {
  324. // 个人工单
  325. if (this.total2 > this.dataList.length) {
  326. this.currentPage++
  327. this.getData()
  328. } else {
  329. uni.showToast({
  330. title: '没有更多数据了',
  331. icon: 'none'
  332. })
  333. }
  334. }
  335. },
  336. async getCloseList() {
  337. const res = await this.$myRequest_repairs({
  338. url: '/repairClose/queryRepairCloses'
  339. })
  340. // console.log(res)
  341. if (res.code === '200') {
  342. this.closeList = res.data
  343. }
  344. },
  345. handleFilter(state) {
  346. this.state = state
  347. this.dataList = []
  348. this.currentPage = 1
  349. this.handleResetData()
  350. },
  351. async getCount() {
  352. const res = await this.$myRequest_repairs({
  353. url: '/repairRecord/getTechnicianCountByUserId',
  354. data: {
  355. userId: this.userId
  356. }
  357. })
  358. // console.log(res)
  359. if (res.code === '200') {
  360. this.examineCount = res.data.examineCount
  361. this.maintenanceCount = res.data.maintenanceCount
  362. this.receivingCount = res.data.receivingCount
  363. this.timeoutCount = res.data.timeoutCount
  364. }
  365. },
  366. // 获取个人订单数据
  367. async getData() {
  368. const res = await this.$myRequest_repairs({
  369. url: '/repairRecord/getTechniciansByUserId',
  370. data: {
  371. currentPage: this.currentPage,
  372. pageCount: this.pageCount,
  373. state: this.state,
  374. userId: this.userId
  375. }
  376. })
  377. // console.log(res)
  378. if (res.code === '200') {
  379. this.total2 = res.data.totalCount
  380. this.dataList = [...this.dataList, ...res.data.list]
  381. }
  382. },
  383. async getTeamCount() {
  384. const res = await this.$myRequest_repairs({
  385. url: '/repairRecord/queryTeamWorkCount',
  386. data: {
  387. schoolId: this.schoolId
  388. }
  389. })
  390. // console.log(res)
  391. if (res.code === '200') {
  392. this.examineCount = res.data.examineCount
  393. this.receivingCount = res.data.receivingCount
  394. this.maintenanceCount = res.data.maintenanceCount
  395. this.finishedCount = res.data.finishedCount
  396. this.timeoutCount = res.data.timeoutCount
  397. this.closedCount = res.data.closedCount
  398. }
  399. },
  400. // 获取团队订单数据
  401. async getTeamData() {
  402. const res = await this.$myRequest_repairs({
  403. url: '/repairRecord/queryTeamWorkPage',
  404. data: {
  405. currentPage: this.currentPage,
  406. pageCount: this.pageCount,
  407. state: this.state,
  408. schoolId: this.schoolId
  409. }
  410. })
  411. // console.log(res)
  412. if (res.code === '200') {
  413. this.total = res.data.totalCount
  414. this.dataList = [...this.dataList, ...res.data.list]
  415. }
  416. },
  417. // 留言弹窗确定按钮回调
  418. handleLeaveWordsConfirm() {
  419. if (this.leaveWords) {
  420. uni.showToast({
  421. title: '留言成功',
  422. icon: 'success'
  423. })
  424. this.$refs.popup_leaveWords[0].close()
  425. } else {
  426. uni.showToast({
  427. title: '请输入留言内容',
  428. icon: 'none'
  429. })
  430. }
  431. },
  432. // 关闭弹窗确定按钮回调
  433. handleCloseConfirm() {
  434. uni.showModal({
  435. title: '提示',
  436. content: '确定关闭订单吗?',
  437. success: async (res) => {
  438. if (res.confirm) {
  439. const res = await this.$myRequest_repairs({
  440. url: '/repairRecord/closeOrder',
  441. data: {
  442. recordId: this.orderId,
  443. userId: this.userId,
  444. reason: this.closeList[this.activeIndex].name
  445. }
  446. })
  447. // console.log(res)
  448. if (res.code === '200') {
  449. uni.showToast({
  450. title: '关单成功',
  451. icon: 'success'
  452. })
  453. this.$refs.popup_close[0].close()
  454. setTimeout(() => {
  455. this.handleResetData()
  456. }, 1500)
  457. }
  458. }
  459. }
  460. })
  461. },
  462. // 重置当前页面获取最新数据
  463. handleResetData() {
  464. if ((this.btns.includes('工单管理分段器') || this.btns.includes('分段器按钮')) && this.current === 0) {
  465. // 管理员身份或者后勤
  466. this.getTeamCount()
  467. this.getTeamData()
  468. } else {
  469. // 维修师傅
  470. this.getCount()
  471. this.getData()
  472. }
  473. },
  474. // 接单按钮回调
  475. handleOrderReceiving(item) {
  476. uni.showModal({
  477. content: '确定接单吗?',
  478. title: '提示',
  479. success: async (res) => {
  480. if (res.confirm) {
  481. const res = await this.$myRequest_repairs({
  482. url: '/repairRecord/receiveOwnOrders',
  483. data: {
  484. recordId: item.id,
  485. userId: this.userId
  486. }
  487. })
  488. // console.log(res)
  489. if (res.code === '200') {
  490. uni.showToast({
  491. title: '接单成功',
  492. icon: 'success'
  493. })
  494. setTimeout(() => {
  495. this.handleResetData()
  496. }, 1500)
  497. }
  498. }
  499. }
  500. })
  501. },
  502. // 关闭图标点击回调
  503. handleClose(item) {
  504. this.orderId = item.id
  505. this.activeIndex = 0
  506. this.$refs.popup_close[0].open('center')
  507. },
  508. // 关闭按钮弹窗选中按钮时回调
  509. handleChangeItem(val) {
  510. this.activeIndex = val
  511. },
  512. // 报价按钮回调
  513. handleOffer(item) {
  514. let info = encodeURIComponent(JSON.stringify(item))
  515. uni.navigateTo({
  516. url: `/pagesRepairs/offer/offer?info=${info}`
  517. })
  518. },
  519. // 改价按钮回调
  520. handleChangeOffer(item) {
  521. let info = encodeURIComponent(JSON.stringify(item))
  522. uni.navigateTo({
  523. url: `/pagesRepairs/offer/offer?info=${info}&type=1`
  524. })
  525. },
  526. // 维修完成按钮回调
  527. handleFinish(item) {
  528. const info = JSON.stringify(item)
  529. uni.navigateTo({
  530. url: `/pagesRepairs/repairRecord/repairRecord?info=${info}`
  531. })
  532. },
  533. // 转单按钮回调
  534. handleTransferOrder(item) {
  535. uni.navigateTo({
  536. url: `/pagesRepairs/transferOrder/transferOrder?id=${item.id}`
  537. })
  538. },
  539. // 协作图标点击回调
  540. handleHelp(item) {
  541. uni.navigateTo({
  542. url: `/pagesRepairs/help/help?id=${item.id}`
  543. })
  544. },
  545. // 分段器切换回调
  546. onClickItem(e) {
  547. if (this.current != e.currentIndex) {
  548. this.current = e.currentIndex
  549. console.log(this.current)
  550. this.state = 1
  551. this.dataList = []
  552. this.currentPage = 1
  553. if (this.current === 0) {
  554. // 团队工单
  555. this.getTeamCount()
  556. this.getTeamData()
  557. } else {
  558. // 个人工单
  559. this.getCount()
  560. this.getData()
  561. }
  562. }
  563. },
  564. // 留言按钮回调
  565. handleLeaveWords() {
  566. this.$refs.popup_leaveWords[0].open('center')
  567. },
  568. // 延时按钮回调
  569. handleDelay(item) {
  570. uni.navigateTo({
  571. url: `/pagesRepairs/delay/delay?id=${item.id}`
  572. })
  573. },
  574. // 派单按钮回调
  575. handleSendOrder(item) {
  576. uni.navigateTo({
  577. url: `/pagesRepairs/helpPeople/helpPeople?type=1&id=${item.id}`
  578. })
  579. },
  580. // 审核按钮回调
  581. handleAudit(item) {
  582. if (item.state === '转单审核') {
  583. uni.navigateTo({
  584. url: `/pagesRepairs/transferOrder/transferOrder?type=1&id=${item.id}`
  585. })
  586. } else if (item.state === '协作审核') {
  587. uni.navigateTo({
  588. url: `/pagesRepairs/help/help?type=1&id=${item.id}`
  589. })
  590. }
  591. },
  592. // 查看维修费用回调
  593. checkFeeDetail(item) {
  594. // console.log(item)
  595. this.goodsList = item.goodsList
  596. this.$refs.popup_fee[0].open('center')
  597. },
  598. // 点击电话号码回调
  599. handleCallPhone(phone) {
  600. uni.makePhoneCall({
  601. phoneNumber: phone
  602. })
  603. },
  604. // 点击图片回调
  605. handleLookImgs(img) {
  606. // console.log(img)
  607. uni.previewImage({
  608. urls: img
  609. })
  610. }
  611. }
  612. }
  613. </script>
  614. <style lang="scss" scoped>
  615. .container {
  616. width: 100vw;
  617. height: calc(100vh - 152rpx);
  618. font-size: 32rpx;
  619. overflow-y: auto;
  620. .top_bg {
  621. height: 165rpx;
  622. background-color: #6fb6b8;
  623. }
  624. .top_types {
  625. display: flex;
  626. flex-wrap: wrap;
  627. justify-content: space-evenly;
  628. margin: auto;
  629. margin-top: -100rpx;
  630. width: 690rpx;
  631. border-radius: 10rpx;
  632. box-shadow: 0px 0px 4rpx rgba(0, 0, 0, 0.25);
  633. background-color: #fff;
  634. .types_box {
  635. width: 25%;
  636. height: 188rpx;
  637. display: flex;
  638. flex-direction: column;
  639. justify-content: center;
  640. align-items: center;
  641. .box_num {
  642. font-size: 46rpx;
  643. color: #ff5733;
  644. }
  645. .box_info {
  646. margin-top: 10rpx;
  647. font-size: 34rpx;
  648. }
  649. }
  650. .active {
  651. color: #fff;
  652. background-color: #6fb6b8;
  653. }
  654. }
  655. .top_types2 {
  656. box-sizing: border-box;
  657. margin: auto;
  658. margin-top: -100rpx;
  659. padding: 0 30rpx;
  660. width: 690rpx;
  661. // height: 402rpx;
  662. border-radius: 10rpx;
  663. box-shadow: 0px 0px 4rpx rgba(0, 0, 0, 0.25);
  664. background-color: #fff;
  665. .top {
  666. height: 112rpx;
  667. border-bottom: 1rpx solid #e6e6e6;
  668. }
  669. .bottom {
  670. display: flex;
  671. flex-wrap: wrap;
  672. justify-content: space-evenly;
  673. .bottom_box {
  674. width: 25%;
  675. height: 145rpx;
  676. display: flex;
  677. flex-direction: column;
  678. justify-content: center;
  679. align-items: center;
  680. .box_num {
  681. font-size: 46rpx;
  682. color: #ff5733;
  683. }
  684. .box_info {
  685. // margin-top: 10rpx;
  686. font-size: 34rpx;
  687. }
  688. }
  689. .active {
  690. color: #fff;
  691. background-color: #6fb6b8;
  692. }
  693. }
  694. }
  695. .body {
  696. box-sizing: border-box;
  697. padding: 0 30rpx 30rpx 30rpx;
  698. .body_item {
  699. margin-top: 20rpx;
  700. border-radius: 11rpx;
  701. box-shadow: 0 0 8rpx #d9d9d9;
  702. .item_title {
  703. display: flex;
  704. align-items: center;
  705. padding: 0 30rpx;
  706. height: 87rpx;
  707. border-bottom: 1rpx solid #e6e6e6;
  708. img {
  709. width: 30rpx;
  710. height: 30rpx;
  711. }
  712. .title_info {
  713. margin-left: 16rpx;
  714. // font-size: 28rpx;
  715. font-size: 32rpx;
  716. }
  717. }
  718. .item_time {
  719. display: flex;
  720. justify-content: space-between;
  721. align-items: center;
  722. padding: 0 30rpx;
  723. height: 79rpx;
  724. .time_msg {
  725. // font-size: 28rpx;
  726. color: #808080;
  727. text {
  728. color: #000000;
  729. }
  730. }
  731. .time_type {
  732. font-size: 32rpx;
  733. color: #ff5733;
  734. }
  735. .color_type {
  736. color: #1e7dfb;
  737. }
  738. .color_type2 {
  739. color: #d43030;
  740. }
  741. .color_type3 {
  742. color: #6fb6b8;
  743. }
  744. .color_type4 {
  745. color: #a6a6a6;
  746. }
  747. }
  748. .item_box {
  749. display: flex;
  750. padding: 0 30rpx;
  751. height: 60rpx;
  752. // font-size: 28rpx;
  753. .box_key {
  754. color: #808080;
  755. }
  756. .box_value {
  757. display: flex;
  758. margin-right: auto;
  759. img {
  760. margin-left: 10rpx;
  761. width: 45rpx;
  762. height: 45rpx;
  763. }
  764. }
  765. .box_type {
  766. margin-left: 10rpx;
  767. width: 137rpx;
  768. height: 47rpx;
  769. line-height: 47rpx;
  770. text-align: center;
  771. border-radius: 136rpx;
  772. color: #ff5733;
  773. font-size: 24rpx;
  774. border: 1rpx solid #ff5733;
  775. }
  776. .box_value2 {
  777. display: flex;
  778. img {
  779. margin-top: -2rpx;
  780. margin-left: 14rpx;
  781. width: 46rpx;
  782. height: 46rpx;
  783. }
  784. }
  785. .phone {
  786. color: #6fb6b8;
  787. }
  788. }
  789. .item_img {
  790. display: flex;
  791. align-items: center;
  792. margin-bottom: 10rpx;
  793. padding: 0 30rpx;
  794. height: 120rpx;
  795. color: #808080;
  796. // font-size: 28rpx;
  797. .img_key {
  798. }
  799. .img_value {
  800. width: 120rpx;
  801. height: 120rpx;
  802. border-radius: 14rpx;
  803. }
  804. }
  805. .item_btn {
  806. display: flex;
  807. align-items: center;
  808. justify-content: flex-end;
  809. padding: 0 30rpx;
  810. line-height: 153rpx;
  811. img {
  812. margin-right: auto;
  813. margin-top: 45rpx;
  814. margin-bottom: 40rpx;
  815. width: 56rpx;
  816. height: 56rpx;
  817. }
  818. .img {
  819. margin-right: auto;
  820. margin-left: -55rpx;
  821. margin-top: 45rpx;
  822. margin-bottom: 40rpx;
  823. width: 62rpx;
  824. height: 62rpx;
  825. }
  826. .btn_box {
  827. display: flex;
  828. justify-content: center;
  829. align-items: center;
  830. margin-left: 16rpx;
  831. margin-top: 45rpx;
  832. margin-bottom: 40rpx;
  833. width: 174rpx;
  834. height: 68rpx;
  835. // font-size: 28rpx;
  836. border-radius: 11rpx;
  837. }
  838. .type {
  839. color: #fff;
  840. background-color: #6fb6b8;
  841. }
  842. .type2 {
  843. color: #6fb6b8;
  844. background-color: #fff;
  845. border: 1rpx solid #6fb6b8;
  846. }
  847. }
  848. .popup_close {
  849. width: 690rpx;
  850. border-radius: 19rpx;
  851. background-color: #fff;
  852. .close_box {
  853. height: 100rpx;
  854. line-height: 100rpx;
  855. text-align: center;
  856. font-size: 32rpx;
  857. border: 1rpx solid #e6e6e6;
  858. }
  859. .radius {
  860. border-radius: 19rpx 19rpx 0 0;
  861. }
  862. .active {
  863. color: #fff;
  864. background-color: #6fb6b8;
  865. }
  866. .close_btn {
  867. display: flex;
  868. align-items: center;
  869. justify-content: space-evenly;
  870. margin-top: 100rpx;
  871. height: 121rpx;
  872. .btn_box {
  873. display: flex;
  874. justify-content: center;
  875. align-items: center;
  876. width: 203rpx;
  877. height: 72rpx;
  878. border-radius: 9rpx;
  879. font-size: 32rpx;
  880. }
  881. .cancel {
  882. background-color: #e5e5e5;
  883. color: #6fb6b8;
  884. }
  885. .confirm {
  886. background-color: #6fb6b8;
  887. color: #fff;
  888. }
  889. }
  890. }
  891. .pop_leaveWords {
  892. border-radius: 19rpx;
  893. background-color: #fff;
  894. .leaveWords_title {
  895. display: flex;
  896. justify-content: center;
  897. align-items: center;
  898. width: 690rpx;
  899. height: 110rpx;
  900. font-size: 32rpx;
  901. font-weight: bold;
  902. border-radius: 19rpx 19rpx 0 0;
  903. border-bottom: 1rpx solid #e6e6e6;
  904. }
  905. .leaveWords_body {
  906. height: 320rpx;
  907. textarea {
  908. box-sizing: border-box;
  909. margin: 35rpx 40rpx;
  910. padding: 20rpx;
  911. width: 610rpx;
  912. height: 312rpx;
  913. // font-size: 28rpx;
  914. border-radius: 14rpx;
  915. border: 1rpx solid #e6e6e6;
  916. }
  917. }
  918. .leaveWords_btn {
  919. display: flex;
  920. align-items: center;
  921. justify-content: space-evenly;
  922. height: 121rpx;
  923. .btn_box {
  924. display: flex;
  925. justify-content: center;
  926. align-items: center;
  927. width: 203rpx;
  928. height: 72rpx;
  929. border-radius: 9rpx;
  930. font-size: 32rpx;
  931. }
  932. .cancel {
  933. background-color: #e5e5e5;
  934. color: #6fb6b8;
  935. }
  936. .confirm {
  937. background-color: #6fb6b8;
  938. color: #fff;
  939. }
  940. }
  941. }
  942. .pop_fee {
  943. padding-bottom: 50rpx;
  944. border-radius: 19rpx;
  945. background-color: #fff;
  946. .fee_title {
  947. display: flex;
  948. justify-content: space-between;
  949. align-items: center;
  950. box-sizing: border-box;
  951. padding: 0 31rpx 0 42rpx;
  952. width: 690rpx;
  953. height: 110rpx;
  954. font-size: 32rpx;
  955. font-weight: bold;
  956. border-radius: 19rpx 19rpx 0 0;
  957. border-bottom: 1rpx solid #e6e6e6;
  958. text {
  959. font-size: 45rpx;
  960. font-weight: 400;
  961. color: #808080;
  962. }
  963. }
  964. .fee_content {
  965. max-height: 50vh;
  966. overflow-y: auto;
  967. .fee_item {
  968. border-bottom: 1rpx solid #e6e6e6;
  969. .fee_box {
  970. display: flex;
  971. align-items: center;
  972. padding-left: 42rpx;
  973. height: 80rpx;
  974. // font-size: 28rpx;
  975. color: #808080;
  976. text {
  977. color: #000000;
  978. }
  979. }
  980. }
  981. }
  982. }
  983. }
  984. }
  985. .no_data {
  986. text-align: center;
  987. color: #b3b3b3;
  988. font-size: 24rpx;
  989. img {
  990. margin: 42rpx auto 0;
  991. width: 432rpx;
  992. height: 456rpx;
  993. }
  994. }
  995. }
  996. </style>