rebate_list.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787
  1. <template>
  2. <div class="app-container">
  3. <div v-if="showPage == 1">
  4. <el-radio-group
  5. @change="changeRadioFn"
  6. v-model="searchForm.examineStatus"
  7. size=""
  8. >
  9. <el-radio-button label="">全部</el-radio-button>
  10. <el-radio-button label="SAVE">保存</el-radio-button>
  11. <el-radio-button label="WAIT">待审核</el-radio-button>
  12. <el-radio-button label="OK_ONE">初审通过</el-radio-button>
  13. <el-radio-button label="FAIL_ONE">初审不通过</el-radio-button>
  14. <el-radio-button label="OK">复核通过</el-radio-button>
  15. <el-radio-button label="FAIL">复核不通过</el-radio-button>
  16. <el-radio-button label="CLOSE">已关闭</el-radio-button>
  17. </el-radio-group>
  18. <br /><br />
  19. <!-- 筛选条件 -->
  20. <div>
  21. <el-form
  22. ref="searchForm"
  23. :model="searchForm"
  24. label-width="100px"
  25. size="small"
  26. label-position="left"
  27. >
  28. <el-row :gutter="20">
  29. <el-col :xs="24" :sm="12" :lg="6">
  30. <el-form-item label="经销商名称" prop="customerName">
  31. <el-input
  32. v-model="searchForm.customerName"
  33. placeholder="请输入经销商名称"
  34. ></el-input>
  35. </el-form-item>
  36. </el-col>
  37. <el-col :xs="24" :sm="12" :lg="6">
  38. <el-form-item label="返利类型" prop="walletName">
  39. <el-input
  40. v-model="searchForm.walletName"
  41. placeholder="请输入"
  42. ></el-input>
  43. </el-form-item>
  44. </el-col>
  45. <el-col :xs="24" :sm="12" :lg="6">
  46. <el-form-item label="经销商编码" prop="customerNumber">
  47. <el-input
  48. v-model="searchForm.customerNumber"
  49. placeholder="请输入"
  50. ></el-input>
  51. </el-form-item>
  52. </el-col>
  53. <el-col :xs="24" :sm="12" :lg="6">
  54. <el-form-item label="开始时间" prop="startTime">
  55. <el-date-picker
  56. class="selectStyle"
  57. v-model="searchForm.startTime"
  58. placeholder="选择日期"
  59. type="datetime"
  60. value-format="yyyy-MM-dd HH:mm:ss"
  61. >
  62. </el-date-picker>
  63. </el-form-item>
  64. </el-col>
  65. <el-col :xs="24" :sm="12" :lg="6">
  66. <el-form-item label="结束时间" prop="endTime">
  67. <el-date-picker
  68. class="selectStyle"
  69. v-model="searchForm.endTime"
  70. placeholder="选择日期"
  71. type="datetime"
  72. value-format="yyyy-MM-dd HH:mm:ss"
  73. >
  74. </el-date-picker>
  75. </el-form-item>
  76. </el-col>
  77. <el-col :xs="24" :sm="12" :lg="18">
  78. <el-form-item label="" class="fr">
  79. <el-button size="small" @click="cancelFn">清空</el-button>
  80. <el-button size="small" type="primary" @click="searchFn"
  81. >搜索</el-button
  82. >
  83. </el-form-item>
  84. </el-col>
  85. </el-row>
  86. </el-form>
  87. </div>
  88. <!-- 按钮 -->
  89. <div class="btn-group clearfix">
  90. <div class="fr">
  91. <ExportButton :exUrl="'/rebate/order/export'" :exParams="exParams" />
  92. </div>
  93. </div>
  94. <!-- 列表 -->
  95. <div class="mymain-container">
  96. <div class="table">
  97. <el-table
  98. v-loading="listLoading"
  99. :data="dataList"
  100. element-loading-text="Loading"
  101. border
  102. fit
  103. highlight-current-row
  104. stripe
  105. show-summary
  106. :summary-method="$getSummaries"
  107. >
  108. <el-table-column
  109. align="center"
  110. label="状态"
  111. prop="examineStatus"
  112. min-width="160"
  113. show-overflow-tooltip
  114. v-if="!isCustomer"
  115. >
  116. <template slot-scope="scope">
  117. <el-tag v-show="scope.row.examineStatus == 'SAVE'">保存</el-tag>
  118. <el-tag v-show="scope.row.examineStatus == 'WAIT'"
  119. >待审核</el-tag
  120. >
  121. <el-tag v-show="scope.row.examineStatus == 'OK_ONE'"
  122. >初审通过</el-tag
  123. >
  124. <el-tag v-show="scope.row.examineStatus == 'FAIL_ONE'"
  125. >初审不通过</el-tag
  126. >
  127. <el-tag v-show="scope.row.examineStatus == 'OK'"
  128. >复核通过</el-tag
  129. >
  130. <el-tag v-show="scope.row.examineStatus == 'FAIL'"
  131. >不通过</el-tag
  132. >
  133. <el-tag v-show="scope.row.examineStatus == 'CLOSE'"
  134. >已关闭</el-tag
  135. >
  136. </template>
  137. </el-table-column>
  138. <el-table-column
  139. v-if="isCustomer"
  140. align="center"
  141. label="是否确认"
  142. prop="customerIsConfirm"
  143. min-width="160"
  144. show-overflow-tooltip
  145. >
  146. <template slot-scope="scope">
  147. <el-tag v-show="scope.row.customerIsConfirm == true"
  148. >已确认</el-tag
  149. >
  150. <el-tag v-show="scope.row.customerIsConfirm == false"
  151. >未确认</el-tag
  152. >
  153. </template>
  154. </el-table-column>
  155. <el-table-column
  156. align="center"
  157. label="返利单号"
  158. prop="rebateOrderId"
  159. min-width="160"
  160. show-overflow-tooltip
  161. ></el-table-column>
  162. <el-table-column
  163. align="center"
  164. label="返利日期"
  165. prop="theTime"
  166. min-width="180"
  167. show-overflow-tooltip
  168. ></el-table-column>
  169. <el-table-column
  170. v-if="isCustomer"
  171. align="center"
  172. label="标题备注"
  173. prop="policyDocNo"
  174. min-width="160"
  175. show-overflow-tooltip
  176. ></el-table-column>
  177. <el-table-column
  178. v-if="!isCustomer"
  179. align="center"
  180. label="经销商编码"
  181. prop="customerNumber"
  182. min-width="160"
  183. show-overflow-tooltip
  184. ></el-table-column>
  185. <el-table-column
  186. v-if="!isCustomer"
  187. align="center"
  188. label="经销商名称"
  189. prop="customerName"
  190. min-width="160"
  191. show-overflow-tooltip
  192. ></el-table-column>
  193. <el-table-column
  194. align="center"
  195. label="返利类型"
  196. prop="walletName"
  197. min-width="160"
  198. show-overflow-tooltip
  199. ></el-table-column>
  200. <el-table-column
  201. align="right"
  202. label="总返利金额"
  203. prop="amount"
  204. min-width="160"
  205. show-overflow-tooltip
  206. >
  207. <template slot-scope="scope">
  208. {{ scope.row.amount | numToFixed }}
  209. </template>
  210. </el-table-column>
  211. <el-table-column
  212. align="right"
  213. label="返利金额"
  214. prop="rebateAmount"
  215. min-width="160"
  216. show-overflow-tooltip
  217. >
  218. <template slot-scope="scope">
  219. {{ scope.row.rebateAmount | numToFixed }}
  220. </template>
  221. </el-table-column>
  222. <el-table-column
  223. align="right"
  224. label="暂扣返利"
  225. prop="withholdAmount"
  226. min-width="160"
  227. show-overflow-tooltip
  228. >
  229. <template slot-scope="scope">
  230. {{ scope.row.withholdAmount | numToFixed }}
  231. </template>
  232. </el-table-column>
  233. <el-table-column
  234. align="right"
  235. label="折让金额"
  236. prop="allowanceAmount"
  237. min-width="160"
  238. show-overflow-tooltip
  239. >
  240. <template slot-scope="scope">
  241. {{ scope.row.allowanceAmount | numToFixed }}
  242. </template>
  243. </el-table-column>
  244. <el-table-column
  245. v-if="!isCustomer"
  246. align="center"
  247. label="折让编号"
  248. prop="allowanceCode"
  249. min-width="160"
  250. show-overflow-tooltip
  251. ></el-table-column>
  252. <el-table-column
  253. v-if="!isCustomer"
  254. align="center"
  255. label="折让账号"
  256. prop="allowanceAccount"
  257. min-width="160"
  258. show-overflow-tooltip
  259. ></el-table-column>
  260. <el-table-column
  261. v-if="!isCustomer"
  262. align="right"
  263. label="已办理折让金额"
  264. prop="handledAllowanceAmount"
  265. min-width="160"
  266. show-overflow-tooltip
  267. >
  268. <template slot-scope="scope">
  269. {{ scope.row.handledAllowanceAmount | numToFixed }}
  270. </template>
  271. </el-table-column>
  272. <el-table-column
  273. v-if="!isCustomer"
  274. align="center"
  275. label="折让对应收款单号"
  276. prop="allowanceOrderNo"
  277. min-width="160"
  278. show-overflow-tooltip
  279. ></el-table-column>
  280. <el-table-column
  281. v-if="!isCustomer"
  282. align="center"
  283. label="政策文件流水号"
  284. prop="policyFileNo"
  285. min-width="160"
  286. show-overflow-tooltip
  287. ></el-table-column>
  288. <el-table-column
  289. v-if="!isCustomer"
  290. align="center"
  291. label="政策文号"
  292. prop="policyDocNo"
  293. min-width="160"
  294. show-overflow-tooltip
  295. ></el-table-column>
  296. <el-table-column
  297. v-if="!isCustomer"
  298. align="center"
  299. label="政策年份"
  300. prop="policyYear"
  301. min-width="160"
  302. show-overflow-tooltip
  303. ></el-table-column>
  304. <el-table-column
  305. v-if="!isCustomer"
  306. align="center"
  307. label="政策月份"
  308. prop="policyMonth"
  309. min-width="160"
  310. show-overflow-tooltip
  311. ></el-table-column>
  312. <el-table-column
  313. v-if="!isCustomer"
  314. align="center"
  315. label="政策归属部门"
  316. prop="policyOrg"
  317. min-width="160"
  318. show-overflow-tooltip
  319. ></el-table-column>
  320. <el-table-column
  321. align="center"
  322. v-if="!isCustomer"
  323. label="客户区域"
  324. prop="customerArea"
  325. min-width="160"
  326. show-overflow-tooltip
  327. ></el-table-column>
  328. <el-table-column
  329. v-if="!isCustomer"
  330. align="center"
  331. label="客户属性"
  332. prop="customerAttr"
  333. min-width="160"
  334. show-overflow-tooltip
  335. ></el-table-column>
  336. <el-table-column
  337. align="center"
  338. v-if="!isCustomer"
  339. label="奖励实际归属客户"
  340. prop="rewardActualCustomers"
  341. min-width="160"
  342. show-overflow-tooltip
  343. ></el-table-column>
  344. <el-table-column
  345. v-if="!isCustomer"
  346. align="center"
  347. label="备注1"
  348. prop="remark1"
  349. min-width="160"
  350. show-overflow-tooltip
  351. ></el-table-column>
  352. <el-table-column
  353. v-if="!isCustomer"
  354. align="center"
  355. label="备注2"
  356. prop="remark2"
  357. min-width="160"
  358. show-overflow-tooltip
  359. ></el-table-column>
  360. <el-table-column
  361. v-if="!isCustomer"
  362. align="center"
  363. label="制单人"
  364. prop="createBy"
  365. min-width="160"
  366. show-overflow-tooltip
  367. ></el-table-column>
  368. <el-table-column
  369. v-if="!isCustomer"
  370. align="center"
  371. label="制单时间"
  372. prop="createTime"
  373. min-width="160"
  374. show-overflow-tooltip
  375. ></el-table-column>
  376. <el-table-column
  377. v-if="!isCustomer"
  378. align="center"
  379. label="审核人"
  380. prop="examineBy"
  381. min-width="160"
  382. show-overflow-tooltip
  383. ></el-table-column>
  384. <el-table-column
  385. v-if="!isCustomer"
  386. align="center"
  387. label="审核时间"
  388. prop="examineTime"
  389. min-width="160"
  390. show-overflow-tooltip
  391. ></el-table-column>
  392. <el-table-column
  393. v-if="!isCustomer"
  394. align="center"
  395. label="确认人"
  396. prop="customerName"
  397. min-width="160"
  398. show-overflow-tooltip
  399. ></el-table-column>
  400. <el-table-column
  401. v-if="!isCustomer"
  402. align="center"
  403. label="确认时间"
  404. prop="customerConfirmTime"
  405. min-width="160"
  406. show-overflow-tooltip
  407. ></el-table-column>
  408. <el-table-column
  409. v-if="!isCustomer"
  410. align="center"
  411. label="复核人"
  412. prop="secondExamineBy"
  413. min-width="160"
  414. show-overflow-tooltip
  415. ></el-table-column>
  416. <el-table-column
  417. v-if="!isCustomer"
  418. align="center"
  419. label="复核时间"
  420. prop="secondExamineTime"
  421. min-width="160"
  422. show-overflow-tooltip
  423. ></el-table-column>
  424. <el-table-column
  425. v-if="isCustomer"
  426. align="center"
  427. label="确认时间"
  428. prop="customerConfirmTime"
  429. min-width="160"
  430. show-overflow-tooltip
  431. ></el-table-column>
  432. <el-table-column
  433. align="center"
  434. label="操作"
  435. min-width="240"
  436. show-overflow-tooltip
  437. fixed="right"
  438. >
  439. <template slot-scope="scope">
  440. <el-button
  441. type="text"
  442. class="textColor"
  443. v-if="
  444. !isCustomer &&
  445. $checkBtnRole('edit', $route.meta.roles) &&
  446. scope.row.examineStatus != 'FAIL_ONE'
  447. "
  448. @click="editFn(scope.row.rebateOrderId)"
  449. >编辑</el-button
  450. >
  451. <el-button
  452. type="text"
  453. class="textColor"
  454. v-show="
  455. scope.row.examineStatus == 'SAVE' &&
  456. !isCustomer &&
  457. $checkBtnRole('apply', $route.meta.roles)
  458. "
  459. @click="applyFn(scope.row.rebateOrderId)"
  460. >申请</el-button
  461. >
  462. <el-button
  463. type="text"
  464. class="textColor"
  465. v-show="
  466. scope.row.examineStatus == 'WAIT' &&
  467. !isCustomer &&
  468. $checkBtnRole('examine', $route.meta.roles)
  469. "
  470. @click="examineFn(scope.row.rebateOrderId)"
  471. >审核</el-button
  472. >
  473. <el-button
  474. type="text"
  475. class="textColor"
  476. v-show="
  477. (scope.row.examineStatus == 'OK_ONE' ||
  478. scope.row.examineStatus == 'OK' ||
  479. scope.row.examineStatus == 'FAIL') &&
  480. !isCustomer &&
  481. $checkBtnRole('examine', $route.meta.roles)
  482. "
  483. @click="reviewFn(scope.row.rebateOrderId)"
  484. >{{
  485. scope.row.examineStatus == "OK" ? "取消复核" : "复核"
  486. }}</el-button
  487. >
  488. <el-button
  489. type="text"
  490. class="textColor"
  491. v-show="
  492. (scope.row.examineStatus == 'WAIT' ||
  493. scope.row.examineStatus == 'SAVE') &&
  494. !isCustomer
  495. "
  496. @click="infoFn(scope.row.rebateOrderId)"
  497. >详情</el-button
  498. >
  499. <el-button
  500. type="text"
  501. class="textColor"
  502. v-show="
  503. (scope.row.examineStatus == 'OK_ONE' ||
  504. scope.row.examineStatus == 'FAIL_ONE' ||
  505. scope.row.examineStatus == 'FAIL' ||
  506. scope.row.examineStatus == 'OK') &&
  507. !isCustomer
  508. "
  509. @click="detail2(scope.row.rebateOrderId)"
  510. >详情</el-button
  511. >
  512. <el-button
  513. type="text"
  514. class="textColor"
  515. v-if="
  516. isCustomer &&
  517. scope.row.withholdAmount == 0 &&
  518. (scope.row.examineStatus == 'OK_ONE' ||
  519. scope.row.examineStatus == 'OK' ||
  520. scope.row.examineStatus == 'FAIL')
  521. "
  522. @click="
  523. confirmFn(
  524. scope.row.rebateOrderId,
  525. scope.row.customerIsConfirm
  526. )
  527. "
  528. >{{
  529. scope.row.customerIsConfirm == true ? "详情" : "确认"
  530. }}</el-button
  531. >
  532. </template>
  533. </el-table-column>
  534. </el-table>
  535. </div>
  536. <!-- 分页 -->
  537. <div class="fr">
  538. <el-pagination
  539. @size-change="handleSizeChange"
  540. @current-change="handleCurrentChange"
  541. :current-page="currentPage"
  542. :page-sizes="[10, 20, 30, 50]"
  543. :page-size="pageSize"
  544. layout="total, sizes, prev, pager, next, jumper"
  545. :total="listTotal"
  546. >
  547. </el-pagination>
  548. </div>
  549. </div>
  550. </div>
  551. <RebateListApply :detailId="detailId" v-else-if="showPage == 2" />
  552. <RebateListExamine
  553. @updateList="updateList"
  554. :detailId="detailId"
  555. v-else-if="showPage == 3"
  556. />
  557. <RebateListReview
  558. @updateList="updateList"
  559. :detailId="detailId"
  560. v-else-if="showPage == 4"
  561. />
  562. <!-- 详情 -->
  563. <RebateListDetail :detailId="detailId" v-else-if="showPage == 5" />
  564. <!-- 确定 -->
  565. <RebateListConfirm
  566. @updateList="updateList"
  567. :detailId="detailId"
  568. :isShow="isShow"
  569. v-else-if="showPage == 6"
  570. />
  571. <!-- 编辑 -->
  572. <RebateListEdit
  573. @updateList="updateList"
  574. :detailId="detailId"
  575. v-else-if="showPage == 7"
  576. />
  577. <!-- <EditDateTimeDialog
  578. :isShow.sync="isShowEditDateDialog"
  579. :dateForm.sync="dateForm"
  580. /> -->
  581. </div>
  582. </template>
  583. <script>
  584. import {
  585. getRebateOrderList,
  586. getRebateOrderApply,
  587. } from "@/api/finance/rebate_list";
  588. import RebateListApply from "./components/rebate_list-apply.vue";
  589. import RebateListExamine from "./components/rebate_list-examine.vue";
  590. import RebateListReview from "./components/rebate_list-review.vue";
  591. import RebateListDetail from "./components/rebate_list-detail";
  592. import RebateListConfirm from "./components/rebate_list-confirm";
  593. import RebateListEdit from "./components/rebate_list-edit.vue";
  594. export default {
  595. name: "rebate_list",
  596. components: {
  597. RebateListDetail,
  598. RebateListApply,
  599. RebateListExamine,
  600. RebateListReview,
  601. RebateListConfirm,
  602. RebateListEdit,
  603. },
  604. data() {
  605. return {
  606. currentPage: 1, // 当前页码
  607. pageSize: 10, // 每页数量
  608. listTotal: 0, // 列表总数
  609. dataList: [], // 列表数据
  610. searchForm: {
  611. customerName: "",
  612. walletName: "",
  613. customerNumber: "",
  614. startTime: "",
  615. endTime: "",
  616. examineStatus: "",
  617. }, //搜索表单
  618. listLoading: false, // 列表加载loading
  619. showPage: 1,
  620. detailId: null,
  621. isCustomer: null,
  622. secondId: null,
  623. isShow: null,
  624. };
  625. },
  626. computed: {
  627. exParams() {
  628. return {
  629. ...this.searchForm,
  630. pageSize: this.pageSize,
  631. pageNum: this.currentPage,
  632. };
  633. },
  634. },
  635. created() {
  636. this.getDataList({
  637. pageSize: this.pageSize,
  638. pageNum: this.currentPage,
  639. });
  640. const res = JSON.parse(localStorage.getItem("supply_user"));
  641. this.isCustomer = res.isCustomer;
  642. if (this.$route.query.id) {
  643. if (this.isCustomer) {
  644. this.confirmFn(this.$route.query.id, false);
  645. } else {
  646. this.examineFn(this.$route.query.id);
  647. }
  648. }
  649. },
  650. methods: {
  651. //切换radio获取数据
  652. changeRadioFn(v) {
  653. // console.log(111);
  654. this.currentPage = 1;
  655. this.getDataList({
  656. ...this.searchForm,
  657. pageSize: this.pageSize,
  658. pageNum: this.currentPage,
  659. });
  660. },
  661. //清除
  662. cancelFn() {
  663. this.$refs.searchForm.resetFields();
  664. },
  665. //搜索
  666. searchFn() {
  667. this.getDataList({
  668. ...this.searchForm,
  669. pageSize: this.pageSize,
  670. pageNum: this.currentPage,
  671. });
  672. },
  673. // 更改每页数量
  674. handleSizeChange(val) {
  675. this.pageSize = val;
  676. this.currentPage = 1;
  677. this.getDataList({
  678. pageNum: 1,
  679. pageSize: this.pageSize,
  680. ...this.searchForm,
  681. });
  682. },
  683. // 更改当前页
  684. handleCurrentChange(val) {
  685. this.currentPage = val;
  686. this.getDataList({
  687. pageNum: val,
  688. pageSize: this.pageSize,
  689. ...this.searchForm,
  690. });
  691. },
  692. //更新列表数据
  693. updateList() {
  694. this.getDataList({
  695. pageSize: this.pageSize,
  696. pageNum: this.currentPage,
  697. ...this.searchForm,
  698. });
  699. },
  700. //获取列表数据
  701. async getDataList(data) {
  702. const res = await getRebateOrderList(data);
  703. this.listTotal = res.data.total;
  704. let arr = res.data.records;
  705. arr.forEach((value) => {
  706. value.sums1 = [];
  707. value.sums2 = [
  708. "amount",
  709. "rebateAmount",
  710. "withholdAmount",
  711. "allowanceAmount",
  712. "handledAllowanceAmount",
  713. ];
  714. });
  715. if (this.isCustomer) {
  716. let arr2 = arr.filter((v) => {
  717. if (
  718. (v.examineStatus == "OK_ONE" ||
  719. v.examineStatus == "OK" ||
  720. v.examineStatus == "FAIL") &&
  721. v.withholdAmount == 0
  722. ) {
  723. return v;
  724. }
  725. });
  726. this.dataList = arr2;
  727. this.listTotal = arr2.length;
  728. } else {
  729. this.dataList = arr;
  730. this.listTotal = res.data.total;
  731. }
  732. },
  733. //确认
  734. confirmFn(id, isShow) {
  735. this.isShow = isShow;
  736. this.detailId = id;
  737. this.showPage = 6;
  738. },
  739. //复核
  740. reviewFn(id) {
  741. this.detailId = id;
  742. this.showPage = 4;
  743. },
  744. //审核
  745. examineFn(id) {
  746. this.detailId = id;
  747. this.showPage = 3;
  748. },
  749. //申请
  750. async applyFn(id) {
  751. await getRebateOrderApply({ id });
  752. this.getDataList({
  753. pageSize: this.pageSize,
  754. pageNum: this.currentPage,
  755. ...this.currentPage,
  756. });
  757. this.$message.success("申请成功");
  758. },
  759. //详情2
  760. detail2(id) {
  761. this.detailId = id;
  762. this.showPage = 2;
  763. },
  764. //详情
  765. infoFn(id) {
  766. this.detailId = id;
  767. this.showPage = 5;
  768. },
  769. //编辑
  770. editFn(id) {
  771. this.detailId = id;
  772. this.showPage = 7;
  773. },
  774. },
  775. };
  776. </script>
  777. <style lang="scss" scoped>
  778. .selectStyle {
  779. width: 100%;
  780. }
  781. </style>