dailyReport.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659
  1. // 流水单上报
  2. <template>
  3. <div class="center">
  4. <div class="center_css">
  5. <div class="top_css">
  6. <el-row>
  7. <el-col :span="14">
  8. <el-button type="primary" @click="postponeSubmission" style="margin-right:10px">暂缓上报</el-button>
  9. <el-button type="primary" @click="batchSubmission" style="margin-right:10px">批量上报</el-button>
  10. <el-date-picker v-model="value1" value-format="yyyy-MM-dd" @change="dateChange" type="daterange"
  11. range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
  12. </el-date-picker>
  13. </el-col>
  14. <el-col :span="10">
  15. <div class="screen">
  16. <el-input class='find' v-model="searchkeyWord" placeholder="可按订单号、姓名、账号查找" @keyup.enter.native="find"
  17. clearable @change="find" />
  18. <el-button class="search" @click="find"><img width="16" height="16" style="margin-left: -8px"
  19. src="../../../public/img/sousuo.png"></el-button><span class="count_css">共{{
  20. deptBudgetTotal
  21. }}条</span>
  22. </div>
  23. </el-col>
  24. </el-row>
  25. <el-row>
  26. <el-col>
  27. <div class="search_btn">
  28. <div :class="search == 1 ? 'search' : 'searchNo'" class="search_item search_block" @click="searchBtn(1)">
  29. 待上报
  30. </div>
  31. <div :class="search == 2 ? 'search' : 'searchNo'" class="search_item" @click="searchBtn(2)">
  32. 审核中
  33. </div>
  34. <div :class="search == 3 ? 'search' : 'searchNo'" class="search_item" @click="searchBtn(3)">
  35. 已通过
  36. </div>
  37. <div :class="search == 4 ? 'search' : 'searchNo'" class="search_item" @click="searchBtn(4)">
  38. 暂缓中
  39. </div>
  40. <div :class="search == '' ? 'search' : 'searchNo'" class="search_item" @click="searchBtn('')">
  41. 全部
  42. </div>
  43. </div>
  44. </el-col>
  45. </el-row>
  46. </div>
  47. <el-table @selection-change="handleSelectionChange" :data="tableData"
  48. style="width: 98%; margin: 0 auto; border-radius: 10px" height="68vh" border highlight-current-row>
  49. <el-table-column type="selection" width="55" :selectable="selectInit">
  50. </el-table-column>
  51. <el-table-column type="index" label="序号" width="50">
  52. <template scope="scope">
  53. <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
  54. <span v-else>{{ scope.$index + 1 }}</span>
  55. </template>
  56. </el-table-column>
  57. <el-table-column prop="orderNo" label="订单编号" min-width="155" />
  58. <el-table-column prop="driverName" label="司机姓名" />
  59. <el-table-column prop="payeeName" label="收款人" />
  60. <el-table-column prop="driverPhone" label="司机账号" />
  61. <el-table-column prop="serialNumber" label="流水号" />
  62. <el-table-column prop="amountMoney" label="金额(元)" />
  63. <el-table-column prop="paymentType" label="类型" />
  64. <el-table-column prop="escalationStatus" label="状态">
  65. <template slot-scope="scope1">
  66. <span>{{ scope1.row.escalationStatus }}</span>
  67. <el-tooltip class="item" effect="dark" :content="scope1.row.escalationFailureReason" placement="top"
  68. v-if="scope1.row.escalationStatus == '未通过'">
  69. <img src="../../../public/img/wenhao.png" alt="" class="ask_css" />
  70. </el-tooltip>
  71. </template>
  72. </el-table-column>
  73. <el-table-column prop="paymentDate" label="付款时间" min-width="100" />
  74. <el-table-column label="操作" min-width="200">
  75. <template slot-scope="scope">
  76. <el-link target="_blank" @click="look(scope.row)" type="primary" :underline="false">查看</el-link>
  77. <el-divider direction="vertical" />
  78. <el-link target="_blank" type="primary" :underline="false" @click="submission(scope.row)"
  79. :disabled="scope.row.escalationStatus != '未上报' && scope.row.escalationStatus != '未通过' && scope.row.escalationStatus != '暂缓中'">
  80. 上报</el-link>
  81. </template>
  82. </el-table-column>
  83. </el-table>
  84. </div>
  85. <el-pagination :current-page="currentPage" style="text-align: center; margin-top: 10px"
  86. :page-size="deptCircularPage.pageSize" layout="total, sizes, prev, pager, next, jumper" :total="deptBudgetTotal"
  87. @size-change="handleSizeChange" @current-change="handleCurrentChange" />
  88. <el-drawer title="流水单信息" :visible.sync="rightSee">
  89. <div class="right_css">
  90. <div class="right_item">单证号:{{ dailyReportData.documentNo }}</div>
  91. <div class="right_title">实际承运人</div>
  92. <div class="right_item">{{ dailyReportData.driverName }} </div>
  93. <div class="right_title">实际承运人统一社会信用代码或证件号码</div>
  94. <div class="right_item">{{ dailyReportData.driverIdCard }}</div>
  95. <div class="right_title">车牌号</div>
  96. <div class="right_item">{{ dailyReportData.carNumber }}</div>
  97. <div class="right_title">车牌颜色</div>
  98. <div class="right_item">{{ dailyReportData.carNumberColour }}</div>
  99. <div class="right_title">运单号</div>
  100. <div class="right_item">{{ dailyReportData.orderNo }}</div>
  101. <div class="right_title">分段分单号</div>
  102. <div class="right_item">{{ '0000' }}</div>
  103. <div class="right_title">总金额</div>
  104. <div class="right_item">{{ dailyReportData.amountMoney }}</div>
  105. <div class="right_title">燃油费用</div>
  106. <div class="right_item">{{ 0 }}</div>
  107. <div class="right_title">司机姓名</div>
  108. <div class="right_item">{{ dailyReportData.driverName }}</div>
  109. <div class="right_title">司机身份证号</div>
  110. <div class="right_item">{{ dailyReportData.driverIdCard }}</div>
  111. <div class="right_title">收款方名称</div>
  112. <div class="right_item">{{ dailyReportData.payeeName }}</div>
  113. <div class="right_title">收款人身份证号</div>
  114. <div class="right_item">{{ dailyReportData.payeeIdCard }}</div>
  115. <!-- <div class="right_title">收款帐户信息</div>
  116. <div class="right_item">{{ dailyReportData.driverName }}</div> -->
  117. <div class="right_title" v-if="dailyReportData.bankKey">收款方银行代码</div>
  118. <div class="right_item" v-if="dailyReportData.bankKey">{{ dailyReportData.bankKey }}</div>
  119. <div class="right_title">收款方银行卡开户行</div>
  120. <div class="right_item">{{ dailyReportData.bankDeposit }}</div>
  121. <div class="right_title">收款方银行卡银行网点名称</div>
  122. <div class="right_item">{{ dailyReportData.bankDepositBranch }}</div>
  123. <div class="right_title">收款方银行卡卡号</div>
  124. <div class="right_item">{{ dailyReportData.bankCard }}</div>
  125. <div class="right_title">流水号</div>
  126. <div class="right_item">{{ dailyReportData.serialNumber }}</div>
  127. <div class="right_title">实际支付金额</div>
  128. <div class="right_item">{{ dailyReportData.amountMoney }}</div>
  129. <div class="right_title">支付凭证文件</div>
  130. <!-- <div class="right_item">{{ dailyReportData.paymentVoucher }}</div> -->
  131. <div style="display: flex;" v-if="dailyReportData.paymentVoucher">
  132. <div v-for="(item, index) in dailyReportData.paymentVoucher.split(',')" :key="index">
  133. <img :src="item" class="img_css" @click="enlarge(item)">
  134. </div>
  135. </div>
  136. <div class="right_btn">
  137. <el-button @click="rightSee = false">关闭</el-button>
  138. </div>
  139. </div>
  140. </el-drawer>
  141. <el-image-viewer v-if="imgsVisible" :on-close="closeImgViewer" :url-list="srcList" style="z-index:9999" />
  142. </div>
  143. </template>
  144. <script>
  145. import {
  146. dailyReportGetList,
  147. dailyReportDeferEscalation,
  148. dailyReportBatchEscalation,
  149. dailyReporGetInfo
  150. } from '@/api/parkReportManagement'
  151. export default {
  152. components: {
  153. "el-image-viewer": () =>
  154. import("element-ui/packages/image/src/image-viewer"),
  155. },
  156. data() {
  157. return {
  158. show: false,
  159. tableData: [],
  160. // 分页
  161. searchkeyWord: '',
  162. currentPage: 1,
  163. pageSize: 10,
  164. deptBudgetTotal: 0,
  165. deptCircularPage: {},
  166. search: '',
  167. modification: [],
  168. dailyReportData: {
  169. // hyFreightSettlementInfo: {}
  170. },
  171. value1: '',
  172. status: '',
  173. addressUrl: [],
  174. disabled: false,
  175. rejectInfo: false,
  176. rightSee: false,
  177. //图片预览
  178. srcList: [],
  179. imgsVisible: false,
  180. }
  181. },
  182. mounted() {
  183. this.getList()
  184. },
  185. methods: {
  186. enlarge(url) {
  187. this.imgsVisible = true;
  188. this.srcList.push(url)
  189. },
  190. closeImgViewer() {
  191. this.srcList = []
  192. this.imgsVisible = false;
  193. },
  194. dateChange(e) {
  195. this.startDate = e[0]
  196. this.endDate = e[1]
  197. this.getList()
  198. },
  199. selectInit(row) {
  200. if (row.status == '审核中' || row.status == '已通过') {
  201. return false
  202. }
  203. else {
  204. return true
  205. }
  206. },
  207. handleSelectionChange(val) {
  208. this.modification = val;
  209. },
  210. //上报
  211. submission(row) {
  212. this.modification.push(row)
  213. this.batchSubmission()
  214. },
  215. //暂缓上报
  216. postponeSubmission() {
  217. let that = this
  218. if (this.modification.length > 0) {
  219. this.$confirm('确定暂缓上报选中的条目?', '提示', {
  220. confirmButtonText: '确定',
  221. cancelButtonText: '取消',
  222. type: 'warning'
  223. })
  224. .then(() => {
  225. dailyReportDeferEscalation({ hyFreightSettlementInfos: this.modification })
  226. .then(response => {
  227. if (response.code == 200) {
  228. that.$notify({
  229. title: '成功',
  230. message: '操作成功!',
  231. type: 'success'
  232. })
  233. that.modification = []
  234. that.getList()
  235. }
  236. })
  237. })
  238. } else {
  239. this.$message.error('至少选中一条可上报的条目!')
  240. }
  241. },
  242. //批量上报
  243. batchSubmission() {
  244. var that = this
  245. if (this.modification.length > 0) {
  246. this.$confirm('确定批量上报流水单信息?', '提示', {
  247. confirmButtonText: '确定',
  248. cancelButtonText: '取消',
  249. type: 'warning'
  250. })
  251. .then(() => {
  252. dailyReportBatchEscalation({ hyFreightSettlementInfos: this.modification })
  253. .then(response => {
  254. if (response.code == 200) {
  255. that.$notify({
  256. title: '成功',
  257. message: '上报成功!',
  258. type: 'success'
  259. })
  260. that.modification = []
  261. that.getList()
  262. }
  263. }).catch(() => {
  264. that.modification = []
  265. });
  266. })
  267. } else {
  268. this.$message.error('至少选中一条可上报的条目!')
  269. }
  270. },
  271. getList() {
  272. this.listLoading = true;
  273. let _obj = {};
  274. _obj.currentPage = this.currentPage;
  275. _obj.pageSize = this.pageSize;
  276. _obj.searchKeyWord = this.searchkeyWord;
  277. _obj.searchType = this.search;
  278. _obj.startDate = this.startDate
  279. _obj.endDate = this.endDate
  280. dailyReportGetList(_obj)
  281. .then((response) => {
  282. this.tableData = response.data.records;
  283. for (let i = 0; i < this.tableData.length; i++) {
  284. this.tableData[i].iconShow = true;
  285. }
  286. this.deptBudgetTotal = response.data.total;
  287. this.listLoading = false;
  288. })
  289. .catch(() => {
  290. this.listLoading = false;
  291. });
  292. },
  293. searchBtn(num) {
  294. this.search = num;
  295. this.getList();
  296. },
  297. find() {
  298. this.currentPage = 1
  299. this.getList()
  300. },
  301. look(row) {
  302. this.loading = true
  303. this.rightSee = true
  304. dailyReporGetInfo({
  305. id: row.id
  306. }).then(response => {
  307. this.dailyReportData = response.data
  308. this.listLoading = false
  309. })
  310. .catch(() => {
  311. this.listLoading = false
  312. })
  313. },
  314. handleSizeChange(val) {
  315. console.log(`每页 ${val} 条`)
  316. this.pageSize = val
  317. this.getList()
  318. },
  319. handleCurrentChange(val) {
  320. this.currentPage = val
  321. console.log(`当前页: ${val}`)
  322. this.getList()
  323. }
  324. }
  325. }
  326. </script>
  327. <style lang="scss" scoped>
  328. .center {
  329. padding: 10px 20px;
  330. background: #f5f6f7;
  331. min-height: calc(100vh - 50px);
  332. .top_css {
  333. padding: 10px;
  334. .search_btn {
  335. height: 80px;
  336. background: linear-gradient(#fafbfb, #ffffff);
  337. display: flex;
  338. margin-top: 20px;
  339. .search_block {
  340. margin-left: 20px;
  341. }
  342. .search_item {
  343. text-align: center;
  344. font-size: 14px;
  345. font-weight: 600;
  346. line-height: 40px;
  347. width: 112px;
  348. height: 40px;
  349. background: #f7f8f9;
  350. cursor: pointer;
  351. margin-top: 30px;
  352. }
  353. .searchNo {
  354. color: #323233;
  355. }
  356. .search {
  357. color: #2f53eb;
  358. background: #ffffff;
  359. }
  360. }
  361. }
  362. .ask_css {
  363. position: absolute;
  364. margin: 3px 0 0 10px;
  365. }
  366. .center_css {
  367. background: #ffffff;
  368. border-radius: 1px;
  369. margin-top: 10px;
  370. padding-bottom: 10px;
  371. }
  372. .screen {
  373. display: flex;
  374. .search {
  375. width: 40px;
  376. height: 40px;
  377. background: #2f53eb;
  378. border-radius: 0px 2px 2px 0px;
  379. border: 1px solid #DCDFE6;
  380. margin-left: -1px;
  381. }
  382. .count_css {
  383. width: 80px;
  384. text-align: center;
  385. line-height: 40px;
  386. color: #666666;
  387. }
  388. }
  389. .el-button {
  390. padding: 10px 20px !important;
  391. }
  392. .center_css {
  393. ::v-deep .el-table th,
  394. ::v-deep .el-table td {
  395. text-align: center;
  396. }
  397. .fujian {
  398. font-size: 24px;
  399. color: #409eff;
  400. }
  401. .warning {
  402. font-size: 14px;
  403. color: #ed1d1d;
  404. }
  405. }
  406. }
  407. .el-button--primary {
  408. color: #FFF;
  409. background-color: #2f53eb;
  410. border-color: #2f53eb;
  411. }
  412. .car_css {
  413. width: 50%;
  414. display: inline-block;
  415. text-align: center;
  416. margin-top: 30px;
  417. position: relative;
  418. .status_css {
  419. background: #3AC602;
  420. width: 50px;
  421. height: 17px;
  422. position: absolute;
  423. top: 0px;
  424. right: 15px;
  425. border-radius: 3px;
  426. }
  427. .carno_css {
  428. padding: 1px 5px;
  429. background-color: #F5F6F7;
  430. color: #666666;
  431. border-radius: 12px;
  432. text-align: center;
  433. width: 100px;
  434. margin: 10px auto 0;
  435. }
  436. .carborder_css {
  437. border: 1px solid #F0F1F2;
  438. margin: 15px auto 0;
  439. width: 90%;
  440. }
  441. }
  442. .tips {
  443. color: #999999;
  444. font-size: 14px;
  445. }
  446. .car_item {
  447. width: 200px;
  448. height: 160px;
  449. border-radius: 5px;
  450. }
  451. .user {
  452. margin-bottom: 20px;
  453. .id_css {
  454. font-size: 14px;
  455. }
  456. .id_css,
  457. .name_css {
  458. margin: 5px 0;
  459. color: #0D0D0D;
  460. }
  461. .pay_name {
  462. color: #9D9D9D;
  463. font-size: 14px;
  464. }
  465. .name_css {
  466. font-size: 16px;
  467. }
  468. .user_item {
  469. margin: 25px 0;
  470. width: 450px;
  471. height: 300px;
  472. }
  473. .border_css {
  474. width: 100%;
  475. border: 1px solid #F0F1F2;
  476. }
  477. }
  478. ::v-deep .el-table--border .el-table__header th {
  479. background: #f7f8f9;
  480. }
  481. .btn_css {
  482. color: #409EFF;
  483. cursor: pointer
  484. }
  485. .btn_css1 {
  486. margin-left: -20px;
  487. }
  488. .sign {
  489. font-size: 14px;
  490. color: red;
  491. }
  492. .form_css {
  493. width: 100%;
  494. margin: 20px auto 20px;
  495. ::v-deep .el-checkbox {
  496. width: 40%;
  497. height: 30px;
  498. }
  499. // ::v-deep .el-dialog__body{
  500. // padding: 10px 20px;
  501. // }
  502. ::v-deep .el-dialog__title {
  503. font-size: 16px;
  504. }
  505. ::v-deep .el-textarea__inner {
  506. background: #F0F1F2;
  507. }
  508. .form_btn {
  509. text-align: right;
  510. margin-top: 10px;
  511. }
  512. }
  513. //发送信息
  514. .Info_css {
  515. .Info_title {
  516. color: #323233;
  517. font-size: 16px;
  518. }
  519. .Info_item {
  520. margin: 20px 0;
  521. }
  522. .Info_btn {
  523. text-align: right;
  524. margin-top: 10px;
  525. }
  526. }
  527. //附件
  528. .file {
  529. .fujian_css {
  530. width: 631px;
  531. display: flex;
  532. margin: 0 auto;
  533. text-align: center;
  534. line-height: 32px;
  535. border: 1px solid #F0F1F2;
  536. border-right: 0px;
  537. border-radius: 2px 0px 0px 2px;
  538. .fujian_item {
  539. cursor: pointer;
  540. width: 90px;
  541. height: 32px;
  542. border-right: 1px solid #F0F1F2;
  543. }
  544. .file_btn {
  545. color: #2F53EB;
  546. background-color: #CFDBFE;
  547. }
  548. }
  549. .file_img {
  550. width: 525px;
  551. height: 332px;
  552. margin: 20px auto;
  553. }
  554. .img_css {
  555. width: 525px;
  556. height: 332px;
  557. }
  558. .btn {
  559. width: 400px;
  560. margin: 0 auto;
  561. }
  562. }
  563. .right_css {
  564. // overflow-y: auto !important;
  565. // min-height: 1266px;
  566. padding: 0 20px;
  567. .right_title {
  568. color: #9D9D9D;
  569. font-size: 14px;
  570. margin-bottom: 4px;
  571. }
  572. .title_name {
  573. margin-bottom: 10px;
  574. }
  575. .right_item {
  576. color: #0D0D0D;
  577. font-size: 14px;
  578. margin-bottom: 10px;
  579. }
  580. .right_btn {
  581. text-align: center;
  582. margin: 10px 0;
  583. }
  584. .img_css {
  585. width: 100px;
  586. height: 80px;
  587. margin-right: 5px;
  588. }
  589. .right_img {
  590. width: 200px;
  591. height: 120px;
  592. margin-top: 10px;
  593. }
  594. }
  595. .find::v-deep input.el-input__inner {
  596. border-radius: 0;
  597. }
  598. ::v-deep .el-drawer.rtl {
  599. overflow: auto;
  600. }
  601. </style>