management.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083
  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>
  91. <!-- 报修电话 -->
  92. <view class="item_box">
  93. <view class="box_key">报修电话:</view>
  94. <view class="box_value phone" @click="handleCallPhone(item.userPhone)">
  95. {{ item.userPhone }}
  96. <img src="../../static/images/repairsImg/phone.png" />
  97. </view>
  98. </view>
  99. <!-- 报修区域 -->
  100. <view class="item_box">
  101. <view class="box_key">报修区域:</view>
  102. <view class="box_value">{{ item.areaName }}</view>
  103. </view>
  104. <!-- 详细地址 -->
  105. <view class="item_box">
  106. <view class="box_key">详细地址:</view>
  107. <view class="box_value">{{ item.address }}</view>
  108. </view>
  109. <!-- 报修物品 -->
  110. <view class="item_box">
  111. <view class="box_key">报修物品:</view>
  112. <view class="box_value">{{ item.articleName }}</view>
  113. </view>
  114. <!-- 故障描述 -->
  115. <view class="item_box">
  116. <view class="box_key">故障描述:</view>
  117. <view class="box_value">{{ item.description }}</view>
  118. </view>
  119. <!-- 上传图片 -->
  120. <view class="item_img">
  121. <view class="img_key">上传图片:</view>
  122. <img class="img_value" mode="aspectFill" :src="item.images[0]" @click="handleLookImgs(item.images)" />
  123. </view>
  124. <!-- 维修师傅 -->
  125. <view class="item_time" v-if="item.state !== '待接单' && item.state !== '待确认'">
  126. <view class="time_msg">
  127. 维修师傅:
  128. <text>{{ item.maintenancerName }}</text>
  129. </view>
  130. </view>
  131. <!-- 师傅电话 -->
  132. <view class="item_box" v-if="item.state !== '待接单' && item.state !== '待确认'">
  133. <view class="box_key">师傅电话:</view>
  134. <view class="box_value phone" @click="handleCallPhone(item.maintenancerPhone)">
  135. {{ item.maintenancerPhone }}
  136. <img src="../../static/images/repairsImg/phone.png" />
  137. </view>
  138. </view>
  139. <!-- 维修费用 -->
  140. <view class="item_box" v-if="item.state === '待审核' || item.state === '已完成' || item.state === '待确认'">
  141. <view class="box_key">维修费用:</view>
  142. <view class="box_value2 phone" @click="checkFeeDetail(item)">
  143. {{ item.price }}元
  144. <img src="../../static/images/repairsImg/eye.png" />
  145. </view>
  146. </view>
  147. <!-- 按钮区域 -->
  148. <view class="item_btn">
  149. <!-- 关闭按钮 -->
  150. <img v-if="item.state === '待接单' || item.state === '维修中'" src="../../static/images/repairsImg/close.png" @click="handleClose(item)" />
  151. <!-- 协作按钮 -->
  152. <img class="img" src="../../static/images/repairsImg/help.png" v-if="item.state === '待接单' && btns.includes('协作')" @click="handleHelp(item)" />
  153. <!-- 延时按钮 -->
  154. <view class="btn_box type" v-if="(item.state === '待接单' || item.state === '维修中') && btns.includes('延时')" @click="handleDelay(item)">延时</view>
  155. <!-- 接单按钮 -->
  156. <view class="btn_box type" v-if="item.state === '待接单' && btns.includes('接单')" @click="handleOrderReceiving(item)">接单</view>
  157. <!-- 转单按钮 -->
  158. <view class="btn_box type2" v-if="item.state === '待接单' && btns.includes('转单')" @click="handleTransferOrder(item)">转单</view>
  159. <!-- 派单按钮 -->
  160. <view class="btn_box type2" v-if="item.state === '待接单' && btns.includes('派单')" @click="handleSendOrder(item)">派单</view>
  161. <!-- 报价按钮 -->
  162. <view class="btn_box type" v-if="item.state === '维修中' && btns.includes('报价')" @click="handleOffer(item)">报价</view>
  163. <!-- 维修完成按钮 -->
  164. <view class="btn_box type2" v-if="item.state === '维修中' && btns.includes('维修完成')" @click="handleFinish(item)">维修完成</view>
  165. <!-- 审核按钮 -->
  166. <view class="btn_box type" v-if="(item.state === '协作审核' || item.state === '转单审核') && btns.includes('审核')" @click="handleAudit(item)">审核</view>
  167. <!-- 改价按钮 -->
  168. <view class="btn_box type" v-if="item.state === '待确认'" @click="handleChangeOffer(item)">改价</view>
  169. <!-- 留言按钮 -->
  170. <view class="btn_box type2" v-if="item.state === '待确认'" @click="handleLeaveWords">留言</view>
  171. </view>
  172. <!-- 关闭按钮弹窗 -->
  173. <uni-popup ref="popup_close" :is-mask-click="false">
  174. <view class="popup_close">
  175. <view
  176. :class="[{ active: activeIndex === index }, { radius: index === 0 }]"
  177. class="close_box"
  178. v-for="(ele, index) in closeList"
  179. :key="ele.id"
  180. @click="handleChangeItem(index)"
  181. >
  182. {{ ele.name }}
  183. </view>
  184. <view class="close_btn">
  185. <view class="btn_box cancel" @click="$refs.popup_close[0].close()">取消</view>
  186. <view class="btn_box confirm" @click="handleCloseConfirm">确定</view>
  187. </view>
  188. </view>
  189. </uni-popup>
  190. <!-- 留言弹窗 -->
  191. <uni-popup ref="popup_leaveWords" :is-mask-click="false">
  192. <view class="pop_leaveWords">
  193. <view class="leaveWords_title">留言</view>
  194. <view class="leaveWords_body">
  195. <textarea placeholder-style="color:#CCCCCC" placeholder="请输入您宝贵的留言" v-model="leaveWords"></textarea>
  196. </view>
  197. <view class="leaveWords_btn">
  198. <view class="btn_box cancel" @click="$refs.popup_leaveWords[0].close()">取消</view>
  199. <view class="btn_box confirm" @click="handleLeaveWordsConfirm">确定</view>
  200. </view>
  201. </view>
  202. </uni-popup>
  203. <!-- 维修费用弹窗 -->
  204. <uni-popup :is-mask-click="false" ref="popup_fee">
  205. <view class="pop_fee">
  206. <view class="fee_title">
  207. 维修费用
  208. <text @click="$refs.popup_fee[0].close()">×</text>
  209. </view>
  210. <view class="fee_content">
  211. <view class="fee_item" v-for="(element, index2) in goodsList" :key="index2">
  212. <view class="fee_box">
  213. 耗材:
  214. <text>{{ element.name }}</text>
  215. </view>
  216. <view class="fee_box">
  217. 耗材单价:
  218. <text>{{ element.price }}元</text>
  219. </view>
  220. <view class="fee_box">
  221. 耗材数量:
  222. <text>{{ element.num }}</text>
  223. </view>
  224. <view class="fee_box">
  225. 耗材费用:
  226. <text>{{ element.count }}元</text>
  227. </view>
  228. </view>
  229. </view>
  230. </view>
  231. </uni-popup>
  232. </view>
  233. </view>
  234. <!-- 没有数据时展示的图片 -->
  235. <view class="no_data" v-if="dataList.length === 0">
  236. <img src="../../pagesClockIn/static/imgs/nodata.png" />
  237. <view>暂无数据</view>
  238. </view>
  239. </scroll-view>
  240. </template>
  241. <script>
  242. export default {
  243. data() {
  244. return {
  245. scrollY: true,
  246. // 按钮权限
  247. btns: [],
  248. // 留言弹窗输入框绑定数据
  249. leaveWords: '',
  250. // 顶部分段器数组
  251. items: ['团队工单', '个人工单'],
  252. // 顶部分段器数组当前索引
  253. current: 0,
  254. // 关闭按钮弹窗当前索引
  255. activeIndex: 0,
  256. // 关闭按钮弹窗选项数组
  257. closeList: [],
  258. // 订单列表
  259. dataList: [],
  260. // 维修费用弹窗数组
  261. goodsList: [],
  262. // 校区id
  263. schoolId: '',
  264. // 用户ID
  265. userId: '',
  266. // 待审核
  267. examineCount: '',
  268. // 待接单
  269. receivingCount: '',
  270. // 维修中
  271. maintenanceCount: '',
  272. // 已完成
  273. finishedCount: '',
  274. // 已超时
  275. timeoutCount: '',
  276. // 已关单
  277. closedCount: '',
  278. // 当前页
  279. currentPage: 1,
  280. // 每页多少条
  281. pageCount: 2,
  282. // 总条数 团队
  283. total: null,
  284. // 总条数 个人
  285. total2: null,
  286. // 订单状态参数
  287. state: 1,
  288. // 订单id
  289. orderId: ''
  290. }
  291. },
  292. mounted() {
  293. console.log('工单管理页面加载')
  294. const repairsUserInfo = uni.getStorageSync('repairsUserInfo')
  295. this.schoolId = repairsUserInfo.schoolId
  296. this.userId = repairsUserInfo.userId
  297. this.btns = repairsUserInfo.btns
  298. console.log(this.btns)
  299. if (this.btns.includes('工单管理分段器') || this.btns.includes('分段器按钮')) {
  300. // 管理员身份或者后勤
  301. this.getTeamCount()
  302. this.getTeamData()
  303. } else {
  304. // 维修师傅
  305. this.getCount()
  306. this.getData()
  307. }
  308. this.getCloseList()
  309. },
  310. methods: {
  311. // 滚动到底部触发回调
  312. scrolltolower() {
  313. console.log('页面触底了')
  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. img {
  761. margin-left: 10rpx;
  762. width: 45rpx;
  763. height: 45rpx;
  764. }
  765. }
  766. .box_type {
  767. margin-left: auto;
  768. width: 137rpx;
  769. height: 47rpx;
  770. line-height: 47rpx;
  771. text-align: center;
  772. border-radius: 136rpx;
  773. color: #ff5733;
  774. // font-size: 24rpx;
  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. padding: 0 30rpx;
  795. height: 120rpx;
  796. color: #808080;
  797. // font-size: 28rpx;
  798. .img_key {
  799. }
  800. .img_value {
  801. width: 120rpx;
  802. height: 120rpx;
  803. border-radius: 14rpx;
  804. }
  805. }
  806. .item_btn {
  807. display: flex;
  808. align-items: center;
  809. justify-content: flex-end;
  810. padding: 0 30rpx;
  811. line-height: 153rpx;
  812. img {
  813. margin-right: auto;
  814. margin-top: 45rpx;
  815. margin-bottom: 40rpx;
  816. width: 56rpx;
  817. height: 56rpx;
  818. }
  819. .img {
  820. margin-right: auto;
  821. margin-left: -55rpx;
  822. margin-top: 45rpx;
  823. margin-bottom: 40rpx;
  824. width: 62rpx;
  825. height: 62rpx;
  826. }
  827. .btn_box {
  828. display: flex;
  829. justify-content: center;
  830. align-items: center;
  831. margin-left: 16rpx;
  832. margin-top: 45rpx;
  833. margin-bottom: 40rpx;
  834. width: 174rpx;
  835. height: 68rpx;
  836. // font-size: 28rpx;
  837. border-radius: 11rpx;
  838. }
  839. .type {
  840. color: #fff;
  841. background-color: #6fb6b8;
  842. }
  843. .type2 {
  844. color: #6fb6b8;
  845. background-color: #fff;
  846. border: 1rpx solid #6fb6b8;
  847. }
  848. }
  849. .popup_close {
  850. width: 690rpx;
  851. border-radius: 19rpx;
  852. background-color: #fff;
  853. .close_box {
  854. height: 100rpx;
  855. line-height: 100rpx;
  856. text-align: center;
  857. font-size: 32rpx;
  858. border: 1rpx solid #e6e6e6;
  859. }
  860. .radius {
  861. border-radius: 19rpx 19rpx 0 0;
  862. }
  863. .active {
  864. color: #fff;
  865. background-color: #6fb6b8;
  866. }
  867. .close_btn {
  868. display: flex;
  869. align-items: center;
  870. justify-content: space-evenly;
  871. margin-top: 100rpx;
  872. height: 121rpx;
  873. .btn_box {
  874. display: flex;
  875. justify-content: center;
  876. align-items: center;
  877. width: 203rpx;
  878. height: 72rpx;
  879. border-radius: 9rpx;
  880. font-size: 32rpx;
  881. }
  882. .cancel {
  883. background-color: #e5e5e5;
  884. color: #6fb6b8;
  885. }
  886. .confirm {
  887. background-color: #6fb6b8;
  888. color: #fff;
  889. }
  890. }
  891. }
  892. .pop_leaveWords {
  893. border-radius: 19rpx;
  894. background-color: #fff;
  895. .leaveWords_title {
  896. display: flex;
  897. justify-content: center;
  898. align-items: center;
  899. width: 690rpx;
  900. height: 110rpx;
  901. font-size: 32rpx;
  902. font-weight: bold;
  903. border-radius: 19rpx 19rpx 0 0;
  904. border-bottom: 1rpx solid #e6e6e6;
  905. }
  906. .leaveWords_body {
  907. height: 320rpx;
  908. textarea {
  909. box-sizing: border-box;
  910. margin: 35rpx 40rpx;
  911. padding: 20rpx;
  912. width: 610rpx;
  913. height: 312rpx;
  914. // font-size: 28rpx;
  915. border-radius: 14rpx;
  916. border: 1rpx solid #e6e6e6;
  917. }
  918. }
  919. .leaveWords_btn {
  920. display: flex;
  921. align-items: center;
  922. justify-content: space-evenly;
  923. height: 121rpx;
  924. .btn_box {
  925. display: flex;
  926. justify-content: center;
  927. align-items: center;
  928. width: 203rpx;
  929. height: 72rpx;
  930. border-radius: 9rpx;
  931. font-size: 32rpx;
  932. }
  933. .cancel {
  934. background-color: #e5e5e5;
  935. color: #6fb6b8;
  936. }
  937. .confirm {
  938. background-color: #6fb6b8;
  939. color: #fff;
  940. }
  941. }
  942. }
  943. .pop_fee {
  944. padding-bottom: 50rpx;
  945. border-radius: 19rpx;
  946. background-color: #fff;
  947. .fee_title {
  948. display: flex;
  949. justify-content: space-between;
  950. align-items: center;
  951. box-sizing: border-box;
  952. padding: 0 31rpx 0 42rpx;
  953. width: 690rpx;
  954. height: 110rpx;
  955. font-size: 32rpx;
  956. font-weight: bold;
  957. border-radius: 19rpx 19rpx 0 0;
  958. border-bottom: 1rpx solid #e6e6e6;
  959. text {
  960. font-size: 45rpx;
  961. font-weight: 400;
  962. color: #808080;
  963. }
  964. }
  965. .fee_content {
  966. max-height: 50vh;
  967. overflow-y: auto;
  968. .fee_item {
  969. border-bottom: 1rpx solid #e6e6e6;
  970. .fee_box {
  971. display: flex;
  972. align-items: center;
  973. padding-left: 42rpx;
  974. height: 80rpx;
  975. // font-size: 28rpx;
  976. color: #808080;
  977. text {
  978. color: #000000;
  979. }
  980. }
  981. }
  982. }
  983. }
  984. }
  985. }
  986. .no_data {
  987. text-align: center;
  988. color: #b3b3b3;
  989. font-size: 24rpx;
  990. img {
  991. margin: 42rpx auto 0;
  992. width: 432rpx;
  993. height: 456rpx;
  994. }
  995. }
  996. }
  997. </style>