componentDetailList.vue 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. <template>
  2. <div>
  3. <el-page-header @back="goBack" content="详情"></el-page-header>
  4. <br /><br />
  5. <!-- 按钮 -->
  6. <div class="btn-group clearfix">
  7. <div class="fr">
  8. <el-button type="primary" size="mini" @click="exportFn">导出</el-button>
  9. </div>
  10. </div>
  11. <!-- 列表 -->
  12. <div class="mymain-container">
  13. <div class="table">
  14. <el-table
  15. v-loading="listLoading"
  16. :data="dataList"
  17. element-loading-text="Loading"
  18. border
  19. fit
  20. highlight-current-row
  21. stripe
  22. >
  23. <el-table-column
  24. align="left"
  25. label="派工序号"
  26. prop="dispatchOrderNo"
  27. min-width="100"
  28. show-overflow-tooltip
  29. ></el-table-column>
  30. <el-table-column
  31. align="left"
  32. label="自编号码"
  33. prop="selfNo"
  34. min-width="160"
  35. show-overflow-tooltip
  36. ></el-table-column>
  37. <el-table-column align="left" label="状态" prop="issueStatus" min-width="100" show-overflow-tooltip>
  38. <template slot-scope="scope">
  39. <el-tag size="mini" v-show="scope.row.issueStatus == 1" type="success">待发放</el-tag>
  40. <el-tag size="mini" v-show="scope.row.issueStatus == 2" type="danger">已发放</el-tag>
  41. <el-tag size="mini" v-show="scope.row.issueStatus == 3" type="">银行受理中</el-tag>
  42. </template>
  43. </el-table-column>
  44. <el-table-column
  45. align="left"
  46. label="发放月份"
  47. prop="month"
  48. min-width="160"
  49. show-overflow-tooltip
  50. ></el-table-column>
  51. <el-table-column
  52. align="left"
  53. label="发放时间"
  54. prop="issueTime"
  55. min-width="160"
  56. show-overflow-tooltip
  57. ></el-table-column>
  58. <el-table-column
  59. align="left"
  60. label="银行卡账号"
  61. prop="bankAccount"
  62. min-width="160"
  63. show-overflow-tooltip
  64. ></el-table-column>
  65. <el-table-column
  66. align="left"
  67. label="户名"
  68. prop="bankAccountName"
  69. min-width="160"
  70. show-overflow-tooltip
  71. ></el-table-column>
  72. <el-table-column
  73. align="left"
  74. label="开户行"
  75. prop="depositBank"
  76. min-width="160"
  77. show-overflow-tooltip
  78. ></el-table-column>
  79. <el-table-column
  80. align="left"
  81. label="工单状态"
  82. prop="orderStatus"
  83. min-width="100"
  84. show-overflow-tooltip
  85. ></el-table-column>
  86. <el-table-column
  87. align="left"
  88. label="新结算单位号"
  89. prop="summaryNumber"
  90. min-width="120"
  91. show-overflow-tooltip
  92. ></el-table-column>
  93. <el-table-column
  94. align="left"
  95. label="旧结算单位号"
  96. prop="oldSummaryNumber"
  97. min-width="120"
  98. show-overflow-tooltip
  99. ></el-table-column>
  100. <el-table-column
  101. align="left"
  102. label="结算单位名"
  103. prop="summaryName"
  104. min-width="260"
  105. show-overflow-tooltip
  106. ></el-table-column>
  107. <el-table-column
  108. align="left"
  109. label="维修类型"
  110. prop="repairType"
  111. min-width="100"
  112. show-overflow-tooltip
  113. ></el-table-column>
  114. <el-table-column
  115. align="left"
  116. label="内外机"
  117. prop="inOutMachine"
  118. min-width="100"
  119. show-overflow-tooltip
  120. ></el-table-column>
  121. <el-table-column
  122. align="left"
  123. label="机器条码"
  124. prop="machineCode"
  125. min-width="100"
  126. show-overflow-tooltip
  127. ></el-table-column>
  128. <el-table-column
  129. align="left"
  130. label="外机型"
  131. prop="outMachineType"
  132. min-width="100"
  133. show-overflow-tooltip
  134. ></el-table-column>
  135. <el-table-column
  136. align="left"
  137. label="外机型描述"
  138. prop="outMachineDescribe"
  139. min-width="100"
  140. show-overflow-tooltip
  141. ></el-table-column>
  142. <el-table-column
  143. align="left"
  144. label="内机条码"
  145. prop="inMachineCode"
  146. min-width="140"
  147. show-overflow-tooltip
  148. ></el-table-column>
  149. <el-table-column
  150. align="left"
  151. label="内机型"
  152. prop="inMachineType"
  153. min-width="100"
  154. show-overflow-tooltip
  155. ></el-table-column>
  156. <el-table-column
  157. align="left"
  158. label="内机型描述"
  159. prop="inMachineDescribe"
  160. min-width="300"
  161. show-overflow-tooltip
  162. ></el-table-column>
  163. <el-table-column
  164. align="left"
  165. label="用户姓名"
  166. prop="userName"
  167. min-width="100"
  168. show-overflow-tooltip
  169. ></el-table-column>
  170. <el-table-column
  171. align="left"
  172. label="区号"
  173. prop="areaCode"
  174. min-width="100"
  175. show-overflow-tooltip
  176. ></el-table-column>
  177. <el-table-column
  178. align="left"
  179. label="移动电话"
  180. prop="mobile"
  181. min-width="140"
  182. show-overflow-tooltip
  183. ></el-table-column>
  184. <el-table-column
  185. align="left"
  186. label="电话号码"
  187. prop="tel"
  188. min-width="140"
  189. show-overflow-tooltip
  190. ></el-table-column>
  191. <el-table-column
  192. align="left"
  193. label="省份"
  194. prop="province"
  195. min-width="100"
  196. show-overflow-tooltip
  197. ></el-table-column>
  198. <el-table-column
  199. align="left"
  200. label="市县"
  201. prop="city"
  202. min-width="100"
  203. show-overflow-tooltip
  204. ></el-table-column>
  205. <el-table-column
  206. align="left"
  207. label="区县"
  208. prop="county"
  209. min-width="100"
  210. show-overflow-tooltip
  211. ></el-table-column>
  212. <el-table-column
  213. align="left"
  214. label="用户地址"
  215. prop="userAddr"
  216. min-width="400"
  217. show-overflow-tooltip
  218. ></el-table-column>
  219. <el-table-column
  220. align="left"
  221. label="GPS定位"
  222. prop="gpsAddr"
  223. min-width="500"
  224. show-overflow-tooltip
  225. ></el-table-column>
  226. <el-table-column
  227. align="left"
  228. label="邮政编码"
  229. prop="postalCode"
  230. min-width="100"
  231. show-overflow-tooltip
  232. ></el-table-column>
  233. <el-table-column
  234. align="left"
  235. label="销售单位号"
  236. prop="saleDeptNo"
  237. min-width="100"
  238. show-overflow-tooltip
  239. ></el-table-column>
  240. <el-table-column
  241. align="left"
  242. label="销售单位"
  243. prop="saleDeptName"
  244. min-width="280"
  245. show-overflow-tooltip
  246. ></el-table-column>
  247. <el-table-column
  248. align="left"
  249. label="发票编号"
  250. prop="invoiceCode"
  251. min-width="100"
  252. show-overflow-tooltip
  253. ></el-table-column>
  254. <el-table-column
  255. align="left"
  256. label="购买日期"
  257. prop="buyDate"
  258. min-width="180"
  259. show-overflow-tooltip
  260. ></el-table-column>
  261. <el-table-column
  262. align="left"
  263. label="安装日期"
  264. prop="installDate"
  265. min-width="180"
  266. show-overflow-tooltip
  267. ></el-table-column>
  268. <el-table-column
  269. align="left"
  270. label="报修日期"
  271. prop="reportDate"
  272. min-width="180"
  273. show-overflow-tooltip
  274. ></el-table-column>
  275. <el-table-column
  276. align="left"
  277. label="修复日期"
  278. prop="repairDate"
  279. min-width="180"
  280. show-overflow-tooltip
  281. ></el-table-column>
  282. <el-table-column
  283. align="left"
  284. label="维修工ID"
  285. prop="repairWorkerId"
  286. min-width="100"
  287. show-overflow-tooltip
  288. ></el-table-column>
  289. <el-table-column
  290. align="left"
  291. label="维修工姓名"
  292. prop="repairWorkerName"
  293. min-width="100"
  294. show-overflow-tooltip
  295. ></el-table-column>
  296. <el-table-column
  297. align="left"
  298. label="维修工电话"
  299. prop="repairWorkerMobile"
  300. min-width="140"
  301. show-overflow-tooltip
  302. ></el-table-column>
  303. <el-table-column align="right" label="维修费用" prop="repairFee" min-width="100" show-overflow-tooltip>
  304. <template slot-scope="scope">
  305. {{ scope.row.repairFee | numToFixed }}
  306. </template>
  307. </el-table-column>
  308. <el-table-column align="right" label="交通费" prop="trafficFee" min-width="100" show-overflow-tooltip>
  309. <template slot-scope="scope">
  310. {{ scope.row.trafficFee | numToFixed }}
  311. </template>
  312. </el-table-column>
  313. <el-table-column align="right" label="住宿费用" prop="accommodationFee" min-width="100" show-overflow-tooltip>
  314. <template slot-scope="scope">
  315. {{ scope.row.accommodationFee | numToFixed }}
  316. </template>
  317. </el-table-column>
  318. <el-table-column align="right" label="吊装费用" prop="liftingFee" min-width="100" show-overflow-tooltip>
  319. <template slot-scope="scope">
  320. {{ scope.row.liftingFee | numToFixed }}
  321. </template>
  322. </el-table-column>
  323. <el-table-column align="right" label="其他费用" prop="otherFee" min-width="100" show-overflow-tooltip>
  324. <template slot-scope="scope">
  325. {{ scope.row.otherFee | numToFixed }}
  326. </template>
  327. </el-table-column>
  328. <el-table-column align="right" label="总费用" prop="totalFee" min-width="100" show-overflow-tooltip>
  329. <template slot-scope="scope">
  330. {{ scope.row.totalFee | numToFixed }}
  331. </template>
  332. </el-table-column>
  333. <el-table-column
  334. align="left"
  335. label="结算单批号"
  336. prop="settlementBatchNo"
  337. min-width="100"
  338. show-overflow-tooltip
  339. ></el-table-column>
  340. <el-table-column
  341. align="left"
  342. label="安装网点号"
  343. prop="installWebsitNo"
  344. min-width="100"
  345. show-overflow-tooltip
  346. ></el-table-column>
  347. <el-table-column
  348. align="left"
  349. label="安装网点名"
  350. prop="installWebsitName"
  351. min-width="300"
  352. show-overflow-tooltip
  353. ></el-table-column>
  354. <el-table-column
  355. align="left"
  356. label="新维修单位号"
  357. prop="repairUnit"
  358. min-width="120"
  359. show-overflow-tooltip
  360. ></el-table-column>
  361. <el-table-column
  362. align="left"
  363. label="旧维修单位号"
  364. prop="oldRepairUnit"
  365. min-width="120"
  366. show-overflow-tooltip
  367. ></el-table-column>
  368. <el-table-column
  369. align="left"
  370. label="维修单位名"
  371. prop="repairName"
  372. min-width="300"
  373. show-overflow-tooltip
  374. ></el-table-column>
  375. <el-table-column
  376. align="left"
  377. label="故障现象"
  378. prop="faultPhenomenon"
  379. min-width="100"
  380. show-overflow-tooltip
  381. ></el-table-column>
  382. <el-table-column
  383. align="left"
  384. label="故障分析"
  385. prop="faultAnalysis"
  386. min-width="200"
  387. show-overflow-tooltip
  388. ></el-table-column>
  389. <el-table-column
  390. align="left"
  391. label="维修内容"
  392. prop="repairDetail"
  393. min-width="400"
  394. show-overflow-tooltip
  395. ></el-table-column>
  396. <el-table-column
  397. align="left"
  398. label="备注"
  399. prop="remark"
  400. min-width="200"
  401. show-overflow-tooltip
  402. ></el-table-column>
  403. <el-table-column
  404. align="left"
  405. label="转结算时间"
  406. prop="settlementTime"
  407. min-width="160"
  408. show-overflow-tooltip
  409. ></el-table-column>
  410. </el-table>
  411. </div>
  412. <!-- 分页 -->
  413. <div class="fr">
  414. <el-pagination
  415. @size-change="handleSizeChange"
  416. @current-change="handleCurrentChange"
  417. :current-page="currentPage"
  418. :page-sizes="[10, 20, 30, 50]"
  419. :page-size="pageSize"
  420. layout="total, sizes, prev, pager, next, jumper"
  421. :total="listTotal"
  422. >
  423. </el-pagination>
  424. </div>
  425. </div>
  426. </div>
  427. </template>
  428. <script>
  429. import { getsummaryDetailList } from '@/api/dailySettlement/financialSummaryDay'
  430. import { number } from 'echarts'
  431. export default {
  432. props: {
  433. detailList: {
  434. type: Array,
  435. required: true
  436. },
  437. detailTotal: {
  438. type: Number,
  439. required: true
  440. }
  441. },
  442. data() {
  443. return {
  444. currentPage: 1, // 当前页码
  445. pageSize: 10, // 每页数量
  446. listTotal: 0, // 列表总数
  447. dataList: [], // 列表数据
  448. listLoading: false // 列表加载loading
  449. }
  450. },
  451. created() {
  452. // console.log(this.detailList, 7777);
  453. this.dataList = this.detailList
  454. this.listTotal = this.detailTotal
  455. },
  456. methods: {
  457. //导出
  458. exportFn() {
  459. this.$emit('exportDetailFn', {
  460. pageSize: this.pageSize,
  461. pageNo: this.currentPage
  462. })
  463. },
  464. // 更改每页数量
  465. handleSizeChange(val) {
  466. this.pageSize = val
  467. this.$emit('detailFn', {
  468. pageSize: this.pageSize,
  469. pageNo: this.currentPage
  470. })
  471. },
  472. // 更改当前页
  473. handleCurrentChange(val) {
  474. this.currentPage = val
  475. this.$emit('detailFn', {
  476. pageSize: this.pageSize,
  477. pageNo: this.currentPage
  478. })
  479. },
  480. // //获取列表数据
  481. // async getDataList() {
  482. // let params = {
  483. // pageSize: this.pageSize,
  484. // pageNo: this.currentPage,
  485. // serverNumber: this.detailNumber,
  486. // summaryBatchNo: this.detailId,
  487. // };
  488. // let res = await getsummaryDetailList(params);
  489. // this.listTotal = res.data.total;
  490. // },
  491. goBack() {
  492. this.$parent.showDetail = true
  493. }
  494. }
  495. }
  496. </script>
  497. <style></style>