rebate_list.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506
  1. <template>
  2. <div class="app-container">
  3. <div v-if="showPage == 1">
  4. <el-radio-group @change="changeRadioFn" v-model="searchForm.examineStatus" size="mini">
  5. <el-radio-button label="">全部</el-radio-button>
  6. <el-radio-button label="SAVE">保存</el-radio-button>
  7. <el-radio-button label="WAIT">待审核</el-radio-button>
  8. <el-radio-button label="OK_ONE">初审通过</el-radio-button>
  9. <el-radio-button label="FAIL_ONE">初审不通过</el-radio-button>
  10. <el-radio-button label="OK">复核通过</el-radio-button>
  11. <el-radio-button label="FAIL">复核不通过</el-radio-button>
  12. <el-radio-button label="CLOSE">已关闭</el-radio-button>
  13. <el-radio-button label="OK_ONE_AND_CONFIRM">已确认未复核</el-radio-button>
  14. </el-radio-group>
  15. <br /><br />
  16. <!-- 筛选条件 -->
  17. <div>
  18. <el-form ref="searchForm" :model="searchForm" label-width="100px" size="mini" label-position="left">
  19. <el-row :gutter="20">
  20. <el-col :xs="24" :sm="12" :lg="6">
  21. <el-form-item label="经销商名称" prop="customerName">
  22. <el-input v-model="searchForm.customerName" placeholder="请输入经销商名称"></el-input>
  23. </el-form-item>
  24. </el-col>
  25. <el-col :xs="24" :sm="12" :lg="6">
  26. <el-form-item label="返利类型" prop="walletName">
  27. <el-input v-model="searchForm.walletName" placeholder="请输入"></el-input>
  28. </el-form-item>
  29. </el-col>
  30. <el-col :xs="24" :sm="12" :lg="6">
  31. <el-form-item label="经销商编码" prop="customerNumber">
  32. <el-input v-model="searchForm.customerNumber" placeholder="请输入"></el-input>
  33. </el-form-item>
  34. </el-col>
  35. <el-col :xs="24" :sm="12" :lg="6">
  36. <el-form-item label="返利单号" prop="id">
  37. <el-input v-model="searchForm.id" placeholder="请输入"></el-input>
  38. </el-form-item>
  39. </el-col>
  40. <el-col :xs="24" :sm="12" :lg="6">
  41. <el-form-item label="开始时间" prop="startTime">
  42. <el-date-picker class="selectStyle" v-model="searchForm.startTime" placeholder="选择日期" type="datetime" value-format="yyyy-MM-dd HH:mm:ss">
  43. </el-date-picker>
  44. </el-form-item>
  45. </el-col>
  46. <el-col :xs="24" :sm="12" :lg="6">
  47. <el-form-item label="结束时间" prop="endTime">
  48. <el-date-picker class="selectStyle" v-model="searchForm.endTime" placeholder="选择日期" type="datetime" value-format="yyyy-MM-dd HH:mm:ss">
  49. </el-date-picker>
  50. </el-form-item>
  51. </el-col>
  52. <el-col :xs="24" :sm="12" :lg="6">
  53. <el-form-item label="商家已确认" prop="isConfirm">
  54. <el-radio-group v-model="searchForm.isConfirm">
  55. <el-radio-button label="">全部</el-radio-button>
  56. <el-radio-button label="true">是</el-radio-button>
  57. <el-radio-button label="false">否</el-radio-button>
  58. </el-radio-group>
  59. </el-form-item>
  60. </el-col>
  61. <el-col :xs="24" :sm="12" :lg="6">
  62. <el-form-item label="" class="fr">
  63. <el-button size="mini" @click="cancelFn">清空</el-button>
  64. <el-button size="mini" type="primary" @click="searchFn">搜索</el-button>
  65. </el-form-item>
  66. </el-col>
  67. </el-row>
  68. </el-form>
  69. </div>
  70. <!-- 按钮 -->
  71. <div class="btn-group clearfix">
  72. <div class="fl">
  73. <el-popconfirm style="margin-right:15px" v-if="$checkBtnRole('del', $route.meta.roles)" class="delClass" @onConfirm="deleFn" title="确定删除吗?">
  74. <el-button :disabled="deleList.length < 1" slot="reference" type="danger" icon="el-icon-minus" size="mini">批量删除</el-button>
  75. </el-popconfirm>
  76. <el-popconfirm style="margin-right:15px" v-if="$checkBtnRole('apply', $route.meta.roles) && searchForm.examineStatus ==='SAVE'" class="delClass" @onConfirm="batchApplication" title="确定执行批量审核吗?">
  77. <el-button :disabled="deleList.length < 1" slot="reference" type="warning" icon="el-icon-finished" size="mini">批量申请</el-button>
  78. </el-popconfirm>
  79. <el-popconfirm style="margin-right:15px" v-if="$checkBtnRole('examine', $route.meta.roles) && searchForm.examineStatus ==='WAIT'" class="delClass" @onConfirm="batchAudit" title="确定执行批量审核吗?">
  80. <el-button :disabled="deleList.length < 1" slot="reference" type="warning" icon="el-icon-finished" size="mini">批量审核</el-button>
  81. </el-popconfirm>
  82. <!-- <el-button @click="batchApplication" :disabled='deleList.length < 1' size="mini" type="warning" icon="el-icon-finished" v-if="$checkBtnRole('examine', $route.meta.roles) && searchForm.examineStatus ==='SAVE'">批量申请</el-button> -->
  83. </div>
  84. <div class="fr">
  85. <ExportButton :exUrl="'/rebate/order/export'" :exParams="exParams" />
  86. </div>
  87. </div>
  88. <!-- 列表 -->
  89. <div class="mymain-container">
  90. <div class="table">
  91. <el-table @selection-change="selectionChangeFn" v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe show-summary :summary-method="$getSummaries">
  92. <el-table-column v-if="$checkBtnRole('del', $route.meta.roles)" :selectable='selectableFn' align="center" type="selection" width="51" show-overflow-tooltip></el-table-column>
  93. <el-table-column align="left" label="状态" prop="examineStatus" min-width="160" show-overflow-tooltip v-if="!isCustomer">
  94. <template slot-scope="scope">
  95. <el-tag size="mini" v-show="scope.row.examineStatus == 'SAVE'">保存</el-tag>
  96. <el-tag size="mini" v-show="scope.row.examineStatus == 'WAIT'" type="warning">待审核</el-tag>
  97. <el-tag size="mini" v-show="scope.row.examineStatus == 'OK_ONE'" type="success">初审通过</el-tag>
  98. <el-tag size="mini" v-show="scope.row.examineStatus == 'FAIL_ONE'" type="danger">初审不通过</el-tag>
  99. <el-tag size="mini" v-show="scope.row.examineStatus == 'OK'" type="success">复核通过</el-tag>
  100. <el-tag size="mini" v-show="scope.row.examineStatus == 'FAIL'" type="danger">不通过</el-tag>
  101. <el-tag size="mini" v-show="scope.row.examineStatus == 'CLOSE'" type="info">已关闭</el-tag>
  102. </template>
  103. </el-table-column>
  104. <el-table-column v-if="isCustomer" align="left" label="是否确认" prop="customerIsConfirm" min-width="160" show-overflow-tooltip>
  105. <template slot-scope="scope">
  106. <el-tag size="mini" v-show="scope.row.customerIsConfirm == true">已确认</el-tag>
  107. <el-tag size="mini" v-show="scope.row.customerIsConfirm == false">未确认</el-tag>
  108. </template>
  109. </el-table-column>
  110. <el-table-column align="left" label="返利单号" prop="rebateOrderId" min-width="200" show-overflow-tooltip>
  111. <template slot-scope="scope">
  112. <CopyButton :copyText="scope.row.rebateOrderId" />
  113. <span>{{scope.row.rebateOrderId}}</span>
  114. </template>
  115. </el-table-column>
  116. <el-table-column align="left" label="返利日期" prop="theTime" min-width="180" show-overflow-tooltip></el-table-column>
  117. <el-table-column v-if="isCustomer" align="left" label="标题备注" prop="policyDocNo" min-width="160" show-overflow-tooltip></el-table-column>
  118. <el-table-column v-if="!isCustomer" align="left" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip>
  119. <template slot-scope="scope">
  120. <CopyButton :copyText="scope.row.customerNumber" />
  121. <span>{{scope.row.customerNumber}}</span>
  122. </template>
  123. </el-table-column>
  124. <el-table-column v-if="!isCustomer" align="left" label="经销商名称" prop="customerName" min-width="260" show-overflow-tooltip>
  125. <template slot-scope="scope">
  126. <CopyButton :copyText="scope.row.customerName" />
  127. <span>{{scope.row.customerName}}</span>
  128. </template>
  129. </el-table-column>
  130. <el-table-column align="left" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip></el-table-column>
  131. <el-table-column align="right" label="总返利金额" prop="amount" min-width="160" show-overflow-tooltip>
  132. <template slot-scope="scope">
  133. {{ scope.row.amount | numToFixed }}
  134. </template>
  135. </el-table-column>
  136. <el-table-column align="right" label="返利金额" prop="rebateAmount" min-width="160" show-overflow-tooltip>
  137. <template slot-scope="scope">
  138. {{ scope.row.rebateAmount | numToFixed }}
  139. </template>
  140. </el-table-column>
  141. <el-table-column align="right" label="暂扣返利" prop="withholdAmount" min-width="160" show-overflow-tooltip>
  142. <template slot-scope="scope">
  143. {{ scope.row.withholdAmount | numToFixed }}
  144. </template>
  145. </el-table-column>
  146. <el-table-column align="right" label="折让金额" prop="allowanceAmount" min-width="160" show-overflow-tooltip>
  147. <template slot-scope="scope">
  148. {{ scope.row.allowanceAmount | numToFixed }}
  149. </template>
  150. </el-table-column>
  151. <el-table-column v-if="!isCustomer" align="left" label="折让编号" prop="allowanceCode" min-width="160" show-overflow-tooltip></el-table-column>
  152. <el-table-column v-if="!isCustomer" align="left" label="折让账号" prop="allowanceAccount" min-width="160" show-overflow-tooltip></el-table-column>
  153. <el-table-column v-if="!isCustomer" align="right" label="已办理折让金额" prop="handledAllowanceAmount" min-width="160" show-overflow-tooltip>
  154. <template slot-scope="scope">
  155. {{ scope.row.handledAllowanceAmount | numToFixed }}
  156. </template>
  157. </el-table-column>
  158. <el-table-column v-if="!isCustomer" align="left" label="折让对应收款单号" prop="allowanceOrderNo" min-width="160" show-overflow-tooltip></el-table-column>
  159. <el-table-column v-if="!isCustomer" align="left" label="政策文件流水号" prop="policyFileNo" min-width="160" show-overflow-tooltip></el-table-column>
  160. <el-table-column v-if="!isCustomer" align="left" label="政策文号" prop="policyDocNo" min-width="160" show-overflow-tooltip></el-table-column>
  161. <el-table-column v-if="!isCustomer" align="left" label="政策年份" prop="policyYear" min-width="160" show-overflow-tooltip></el-table-column>
  162. <el-table-column v-if="!isCustomer" align="left" label="政策月份" prop="policyMonth" min-width="160" show-overflow-tooltip></el-table-column>
  163. <el-table-column v-if="!isCustomer" align="left" label="政策归属部门" prop="policyOrg" min-width="160" show-overflow-tooltip></el-table-column>
  164. <el-table-column align="left" v-if="!isCustomer" label="客户区域" prop="customerArea" min-width="160" show-overflow-tooltip></el-table-column>
  165. <el-table-column v-if="!isCustomer" align="left" label="客户属性" prop="customerAttr" min-width="160" show-overflow-tooltip></el-table-column>
  166. <el-table-column align="left" v-if="!isCustomer" label="奖励实际归属客户" prop="rewardActualCustomers" min-width="160" show-overflow-tooltip></el-table-column>
  167. <el-table-column v-if="!isCustomer" align="left" label="备注1" prop="remark1" min-width="160" show-overflow-tooltip></el-table-column>
  168. <el-table-column v-if="!isCustomer" align="left" label="备注2" prop="remark2" min-width="160" show-overflow-tooltip></el-table-column>
  169. <el-table-column v-if="!isCustomer" align="left" label="制单人" prop="createBy" min-width="160" show-overflow-tooltip></el-table-column>
  170. <el-table-column v-if="!isCustomer" align="left" label="制单时间" prop="createTime" min-width="160" show-overflow-tooltip></el-table-column>
  171. <el-table-column v-if="!isCustomer" align="left" label="审核人" prop="examineBy" min-width="160" show-overflow-tooltip></el-table-column>
  172. <el-table-column v-if="!isCustomer" align="left" label="审核时间" prop="examineTime" min-width="160" show-overflow-tooltip></el-table-column>
  173. <el-table-column v-if="!isCustomer" align="left" label="确认人" prop="customerName" min-width="160" show-overflow-tooltip></el-table-column>
  174. <el-table-column v-if="!isCustomer" align="left" label="确认时间" prop="customerConfirmTime" min-width="160" show-overflow-tooltip></el-table-column>
  175. <el-table-column v-if="!isCustomer" align="left" label="复核人" prop="secondExamineBy" min-width="160" show-overflow-tooltip></el-table-column>
  176. <el-table-column v-if="!isCustomer" align="left" label="复核时间" prop="secondExamineTime" min-width="160" show-overflow-tooltip></el-table-column>
  177. <el-table-column v-if="isCustomer" align="left" label="确认时间" prop="customerConfirmTime" min-width="160" show-overflow-tooltip></el-table-column>
  178. <el-table-column align="center" label="操作" min-width="240" show-overflow-tooltip fixed="right">
  179. <template slot-scope="scope">
  180. <el-button type="text" class="textColor" v-if="
  181. !isCustomer &&
  182. $checkBtnRole('edit', $route.meta.roles) &&
  183. scope.row.examineStatus != 'FAIL_ONE'
  184. " @click="editFn(scope.row.rebateOrderId)">编辑</el-button>
  185. <el-button type="text" class="textColor" v-show="
  186. scope.row.examineStatus == 'SAVE' &&
  187. !isCustomer &&
  188. $checkBtnRole('apply', $route.meta.roles)
  189. " @click="applyFn(scope.row.rebateOrderId)">申请</el-button>
  190. <el-button type="text" class="textColor" v-show="
  191. scope.row.examineStatus == 'WAIT' &&
  192. !isCustomer &&
  193. $checkBtnRole('examine', $route.meta.roles)
  194. " @click="examineFn(scope.row.rebateOrderId)">审核</el-button>
  195. <el-button type="text" class="textColor" v-show="
  196. (scope.row.examineStatus == 'OK_ONE' ||
  197. scope.row.examineStatus == 'OK' ||
  198. scope.row.examineStatus == 'FAIL') &&
  199. !isCustomer &&
  200. $checkBtnRole('examine', $route.meta.roles)
  201. " @click="reviewFn(scope.row.rebateOrderId)">{{
  202. scope.row.examineStatus == "OK" ? "取消复核" : "复核"
  203. }}</el-button>
  204. <el-button type="text" class="textColor" v-show="
  205. (scope.row.examineStatus == 'WAIT' ||
  206. scope.row.examineStatus == 'SAVE') &&
  207. !isCustomer
  208. " @click="infoFn(scope.row.rebateOrderId)">详情</el-button>
  209. <el-button type="text" class="textColor" v-show="
  210. (scope.row.examineStatus == 'OK_ONE' ||
  211. scope.row.examineStatus == 'FAIL_ONE' ||
  212. scope.row.examineStatus == 'FAIL' ||
  213. scope.row.examineStatus == 'OK') &&
  214. !isCustomer
  215. " @click="detail2(scope.row.rebateOrderId)">详情</el-button>
  216. <el-button type="text" class="textColor" v-if="
  217. isCustomer &&
  218. scope.row.withholdAmount == 0 &&
  219. (scope.row.examineStatus == 'OK_ONE' ||
  220. scope.row.examineStatus == 'OK' ||
  221. scope.row.examineStatus == 'FAIL')
  222. " @click="
  223. confirmFn(
  224. scope.row.rebateOrderId,
  225. scope.row.customerIsConfirm,
  226. )
  227. ">{{
  228. scope.row.customerIsConfirm == true && scope.row.examineStatus == 'OK_ONE' ? "编辑" : scope.row.customerIsConfirm == false?'确定':'详情'
  229. }}</el-button>
  230. </template>
  231. </el-table-column>
  232. </el-table>
  233. </div>
  234. <!-- 分页 -->
  235. <div class="fr">
  236. <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[10, 20, 30, 50]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="listTotal">
  237. </el-pagination>
  238. </div>
  239. </div>
  240. </div>
  241. <RebateListApply :detailId="detailId" v-else-if="showPage == 2" />
  242. <RebateListExamine @updateList="updateList" :detailId="detailId" v-else-if="showPage == 3" />
  243. <RebateListReview @updateList="updateList" :detailId="detailId" v-else-if="showPage == 4" />
  244. <!-- 详情 -->
  245. <RebateListDetail :detailId="detailId" v-else-if="showPage == 5" />
  246. <!-- 确定 -->
  247. <RebateListConfirm @updateList="updateList" :detailId="detailId" :isShow="isShow" v-else-if="showPage == 6" />
  248. <!-- 编辑 -->
  249. <RebateListEdit @updateList="updateList" :detailId="detailId" v-else-if="showPage == 7" />
  250. <ExamineDialog :isShow.sync="isShowExamineDialog" :examineForm.sync="examineForm" />
  251. </div>
  252. </template>
  253. <script>
  254. import {
  255. getRebateOrderList,
  256. getRebateOrderApply,
  257. getRebateOrderBatchDel,
  258. getRebateOrderApplyBatch,
  259. getRebateOrderExamineBatch,
  260. } from "@/api/finance/rebate_list";
  261. import RebateListApply from "./components/rebate_list-apply.vue";
  262. import RebateListExamine from "./components/rebate_list-examine.vue";
  263. import RebateListReview from "./components/rebate_list-review.vue";
  264. import RebateListDetail from "./components/rebate_list-detail";
  265. import RebateListConfirm from "./components/rebate_list-confirm";
  266. import RebateListEdit from "./components/rebate_list-edit.vue";
  267. import ExamineDialog from "@/components/Common/examine-dialog";
  268. export default {
  269. name: "rebate_list",
  270. components: {
  271. RebateListDetail,
  272. RebateListApply,
  273. RebateListExamine,
  274. RebateListReview,
  275. RebateListConfirm,
  276. RebateListEdit,
  277. ExamineDialog,
  278. },
  279. data() {
  280. return {
  281. deleList: [],
  282. currentPage: 1, // 当前页码
  283. pageSize: 10, // 每页数量
  284. listTotal: 0, // 列表总数
  285. dataList: [], // 列表数据
  286. searchForm: {
  287. id: "",
  288. customerName: "",
  289. walletName: "",
  290. customerNumber: "",
  291. startTime: "",
  292. endTime: "",
  293. examineStatus: "",
  294. isConfirm: "",
  295. }, //搜索表单
  296. listLoading: false, // 列表加载loading
  297. showPage: 1,
  298. detailId: null,
  299. isCustomer: null,
  300. secondId: null,
  301. isShow: null,
  302. isShowExamineDialog: false,
  303. examineForm: {
  304. status: "",
  305. remark: "",
  306. },
  307. };
  308. },
  309. computed: {
  310. exParams() {
  311. return {
  312. ...this.searchForm,
  313. pageSize: this.pageSize,
  314. pageNum: this.currentPage,
  315. };
  316. },
  317. },
  318. created() {
  319. this.getDataList();
  320. const res = JSON.parse(localStorage.getItem("supply_user"));
  321. this.isCustomer = res.isCustomer;
  322. if (this.$route.query.id) {
  323. if (this.isCustomer) {
  324. this.confirmFn(this.$route.query.id, false);
  325. } else {
  326. this.examineFn(this.$route.query.id);
  327. }
  328. }
  329. },
  330. methods: {
  331. //批量审核
  332. batchAudit() {
  333. this.isShowExamineDialog = true;
  334. },
  335. //提交批量审核
  336. async submitExamineForm() {
  337. let res = this.deleList.toString();
  338. await getRebateOrderExamineBatch({
  339. ids: res,
  340. examineStatus: this.examineForm.status,
  341. examineRemark: this.examineForm.remark,
  342. });
  343. this.deleList = [];
  344. this.isShowExamineDialog = false;
  345. this.getDataList();
  346. this.$message.success("批量审批成功");
  347. },
  348. //批量申请
  349. async batchApplication() {
  350. let res = this.deleList.toString();
  351. await getRebateOrderApplyBatch({ ids: res });
  352. this.getDataList();
  353. this.$message.success("批量申请成功");
  354. this.deleList = [];
  355. },
  356. // 批量删除
  357. selectionChangeFn(value) {
  358. const res = value.map((v) => v.rebateOrderId);
  359. this.deleList = res;
  360. },
  361. //删除
  362. async deleFn() {
  363. let res = this.deleList.toString();
  364. // console.log(res);
  365. await getRebateOrderBatchDel({ ids: res });
  366. this.getDataList();
  367. this.$message.success("删除成功");
  368. this.deleList = [];
  369. },
  370. selectableFn(row, index) {
  371. // console.log(row, index, 444);
  372. // if (row.examineStatus !== "SAVE") {
  373. // return false;
  374. // } else {
  375. // return true;
  376. // }
  377. return true;
  378. },
  379. //切换radio获取数据
  380. changeRadioFn(v) {
  381. this.currentPage = 1;
  382. this.getDataList();
  383. },
  384. //清除
  385. cancelFn() {
  386. this.$refs.searchForm.resetFields();
  387. },
  388. //搜索
  389. searchFn() {
  390. this.currentPage = 1;
  391. this.getDataList();
  392. },
  393. // 更改每页数量
  394. handleSizeChange(val) {
  395. this.pageSize = val;
  396. this.getDataList();
  397. },
  398. // 更改当前页
  399. handleCurrentChange(val) {
  400. this.currentPage = val;
  401. this.getDataList();
  402. },
  403. //更新列表数据
  404. updateList() {
  405. this.getDataList();
  406. },
  407. //获取列表数据
  408. async getDataList() {
  409. let params = {
  410. pageSize: this.pageSize,
  411. pageNum: this.currentPage,
  412. customerName: this.searchForm.customerName,
  413. customerNumber: this.searchForm.customerNumber,
  414. endTime: this.searchForm.endTime,
  415. examineStatus: this.searchForm.examineStatus,
  416. id: this.searchForm.id,
  417. isConfirm: this.searchForm.isConfirm,
  418. isSecondExamine: "",
  419. startTime: this.searchForm.startTime,
  420. walletName: this.searchForm.walletName,
  421. };
  422. const res = await getRebateOrderList(params);
  423. this.listTotal = res.data.total;
  424. let arr = res.data.records;
  425. arr.forEach((value) => {
  426. value.sums1 = [];
  427. value.sums2 = [
  428. "amount",
  429. "rebateAmount",
  430. "withholdAmount",
  431. "allowanceAmount",
  432. "handledAllowanceAmount",
  433. ];
  434. });
  435. if (this.isCustomer) {
  436. let arr2 = arr.filter((v) => {
  437. if (
  438. (v.examineStatus == "OK_ONE" ||
  439. v.examineStatus == "OK" ||
  440. v.examineStatus == "FAIL") &&
  441. v.withholdAmount == 0
  442. ) {
  443. return v;
  444. }
  445. });
  446. this.dataList = arr2;
  447. this.listTotal = arr2.length;
  448. } else {
  449. this.dataList = arr;
  450. this.listTotal = res.data.total;
  451. }
  452. },
  453. //确认
  454. confirmFn(id, isShow) {
  455. this.isShow = isShow;
  456. this.detailId = id;
  457. this.showPage = 6;
  458. },
  459. //复核
  460. reviewFn(id) {
  461. this.detailId = id;
  462. this.showPage = 4;
  463. },
  464. //审核
  465. examineFn(id) {
  466. this.detailId = id;
  467. this.showPage = 3;
  468. },
  469. //申请
  470. async applyFn(id) {
  471. await getRebateOrderApply({ id });
  472. this.getDataList();
  473. this.$message.success("申请成功");
  474. },
  475. //详情2
  476. detail2(id) {
  477. this.detailId = id;
  478. this.showPage = 2;
  479. },
  480. //详情
  481. infoFn(id) {
  482. this.detailId = id;
  483. this.showPage = 5;
  484. },
  485. //编辑
  486. editFn(id) {
  487. this.detailId = id;
  488. this.showPage = 7;
  489. },
  490. },
  491. };
  492. </script>
  493. <style lang="scss" scoped>
  494. .selectStyle {
  495. width: 100%;
  496. }
  497. </style>