detail.vue 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. <template>
  2. <view class="app-container">
  3. <view class="top-container">
  4. <view class="title">
  5. <view class="left">工单信息</view>
  6. <view class="right">{{ detailData.issueStatus | statusFilter }}</view>
  7. </view>
  8. <view class="main">
  9. <view
  10. >工单编号:{{ detailData.dispatchOrderNo }} <text @tap="copy(detailData.dispatchOrderNo)">复制</text></view
  11. >
  12. <view>预约时间:{{ detailData.reportDate }}</view>
  13. <view>完工时间:{{ detailData.repairDate }}</view>
  14. <view>用户姓名:{{ detailData.userName }}</view>
  15. <view>地址信息:{{ detailData.gpsAddr }}</view>
  16. </view>
  17. </view>
  18. <view class="cardOne list">
  19. <view class="title">
  20. <text class="title-lt">维修设备</text>
  21. <text class="title-rt">{{ detailData.orderStatus }}</text>
  22. </view>
  23. <view class="con">
  24. <view class="list-con">
  25. <text class="text">内机机型:</text>
  26. <text class="content">{{ detailData.inMachineDescribe }}</text>
  27. </view>
  28. <view class="list-con">
  29. <text class="text">外机机型:</text>
  30. <text class="content">{{ detailData.outMachineDescribe }}</text>
  31. </view>
  32. <view class="list-con">
  33. <text class="text">维修费用:</text>
  34. <text class="content">{{ detailData.repairFee }}</text>
  35. </view>
  36. <view class="list-con">
  37. <text class="text">故障现象:</text>
  38. <text class="content">{{ detailData.faultPhenomenon }}</text>
  39. </view>
  40. <view class="list-con">
  41. <text class="text">故障分析:</text>
  42. <text class="content">{{ detailData.faultAnalysis }}</text>
  43. </view>
  44. <view class="list-con">
  45. <text class="text">维修内容:</text>
  46. <text class="content">{{ detailData.repairDetail }}</text>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="cardOne list">
  51. <view class="title">
  52. <text class="title-lt">收入明细说明</text>
  53. </view>
  54. <view class="con">
  55. <view class="list-con">
  56. <text class="text">维修费用:</text>
  57. <text class="content">{{ detailData.repairFee }}</text>
  58. </view>
  59. <view class="list-con">
  60. <text class="text">交通费用:</text>
  61. <text class="content">{{ detailData.trafficFee }}</text>
  62. </view>
  63. <view class="list-con">
  64. <text class="text">住宿费用:</text>
  65. <text class="content">{{ detailData.accommodationFee }}</text>
  66. </view>
  67. <view class="list-con">
  68. <text class="text">吊装费用:</text>
  69. <text class="content">{{ detailData.liftingFee }}</text>
  70. </view>
  71. <view class="list-con">
  72. <text class="text">其他费用:</text>
  73. <text class="content">{{ detailData.otherFee }}</text>
  74. </view>
  75. <view class="list-con">
  76. <text class="text" style="color: #ff6200">总费用:</text>
  77. <text class="content" style="color: #ff6200">{{ detailData.totalFee }}</text>
  78. </view>
  79. </view>
  80. </view>
  81. <view class="cardOne list" v-if="detailData.issueStatus !== 1">
  82. <view class="title">
  83. <text class="title-lt">银行卡信息</text>
  84. </view>
  85. <view class="con">
  86. <view class="list-con">
  87. <text class="text">用户名:</text>
  88. <text class="content">{{ detailData.bankAccountName }}</text>
  89. </view>
  90. <view class="list-con">
  91. <text class="text">银行卡号:</text>
  92. <text class="content">{{ detailData.bankAccount }}</text>
  93. </view>
  94. <view class="list-con">
  95. <text class="text">开户行:</text>
  96. <text class="content">{{ detailData.depositBank }}</text>
  97. </view>
  98. <view class="list-con">
  99. <text class="text">发放时间:</text>
  100. <text class="content">{{ detailData.issueTime }}</text>
  101. </view>
  102. </view>
  103. </view>
  104. </view>
  105. </template>
  106. <script>
  107. import {
  108. getUserInfo,
  109. } from '@/common/utils/util'
  110. export default {
  111. filters: {
  112. statusFilter(val) {
  113. const MAP = {
  114. 1: '待发放',
  115. 2: '已发放',
  116. 3: '银行受理中'
  117. }
  118. return MAP[val]
  119. }
  120. },
  121. data() {
  122. return {
  123. salaryNo: null,
  124. summaryBatchNo: null,
  125. id: null,
  126. type: null,
  127. detailData: {}
  128. }
  129. },
  130. async onLoad({ salaryNo, summaryBatchNo, id, type }) {
  131. this.salaryNo = salaryNo
  132. this.summaryBatchNo = summaryBatchNo
  133. this.type = type
  134. this.id = id
  135. // const { websit_number, number } = this.$store.state.userInfo.websit_worker
  136. // this.websitNumber = websit_number
  137. // this.workerNumber = number
  138. this.getDetail()
  139. },
  140. methods: {
  141. getDetail() {
  142. let url = ''
  143. if (this.type == 1) {
  144. url = '/daily/mywallet/repair/detail'
  145. } else if (this.type == 2) {
  146. url = '/daily/mywallet/repair/month/detail'
  147. } else {
  148. url = '/daily/mywallet/not/issue/list'
  149. }
  150. this.$axios({
  151. url,
  152. method: 'get',
  153. params: {
  154. // workerNumber: this.workerNumber,
  155. salaryNo: this.salaryNo || '',
  156. summaryBatchNo: this.summaryBatchNo || '',
  157. id: this.id || ''
  158. },
  159. isLoading: 1
  160. }).then(res => {
  161. this.detailData = res.data[0]
  162. })
  163. },
  164. copy(val) {
  165. uni.setClipboardData({
  166. data: val,
  167. success: function () {
  168. uni.showToast({
  169. title: '复制成功'
  170. })
  171. }
  172. })
  173. }
  174. }
  175. }
  176. </script>
  177. <style lang="scss" scoped>
  178. .top-container {
  179. background: #ffffff;
  180. padding: 10rpx 30rpx 0;
  181. .title {
  182. display: flex;
  183. align-items: center;
  184. justify-content: space-between;
  185. height: 80rpx;
  186. border-bottom: 1px solid #eaeaea;
  187. margin-bottom: 20rpx;
  188. .left {
  189. font-size: 32rpx;
  190. color: #333333;
  191. font-weight: 600;
  192. }
  193. .right {
  194. font-size: 28rpx;
  195. color: #ff6200;
  196. }
  197. }
  198. .main {
  199. padding-bottom: 20rpx;
  200. view {
  201. display: flex;
  202. align-items: center;
  203. margin-bottom: 15rpx;
  204. line-height: 32rpx;
  205. text {
  206. width: 60rpx;
  207. height: 30rpx;
  208. background: #6da7ff;
  209. border-radius: 4rpx;
  210. font-size: 20rpx;
  211. color: #ffffff;
  212. display: flex;
  213. align-items: center;
  214. justify-content: center;
  215. margin-left: 20rpx;
  216. }
  217. }
  218. }
  219. }
  220. .card {
  221. margin-top: 20rpx;
  222. padding: 20rpx;
  223. border: 1px solid #eaeaea;
  224. border-radius: 20rpx;
  225. .title {
  226. margin-bottom: 10rpx;
  227. }
  228. .list-con {
  229. display: flex;
  230. justify-content: space-between;
  231. height: 50rpx;
  232. .text {
  233. line-height: 50rpx;
  234. flex-shrink: 0;
  235. }
  236. .content {
  237. line-height: 50rpx;
  238. }
  239. }
  240. }
  241. .list {
  242. margin-top: 20rpx;
  243. }
  244. .cardOne {
  245. padding: 30rpx;
  246. background-color: #fff;
  247. .title {
  248. display: flex;
  249. justify-content: space-between;
  250. border-bottom: 1px solid #eaeaea;
  251. padding-bottom: 20rpx;
  252. .title-lt {
  253. font-weight: 600;
  254. font-size: 32rpx;
  255. }
  256. .title-rt {
  257. color: #ff6200;
  258. font-size: 28rpx;
  259. }
  260. }
  261. .con {
  262. margin-top: 20rpx;
  263. .list-con {
  264. display: flex;
  265. .text {
  266. line-height: 50rpx;
  267. flex-shrink: 0;
  268. }
  269. .content {
  270. line-height: 50rpx;
  271. }
  272. }
  273. }
  274. }
  275. </style>