rebate_list-detail.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <template>
  2. <div>
  3. <div class="sty">
  4. <el-page-header @back="goBack" content="销售返利单"> </el-page-header>
  5. </div>
  6. <el-divider></el-divider>
  7. <!-- 表头 -->
  8. <div>
  9. <el-form ref="searchForm" :model="searchForm" label-width="100px" size="small" label-position="left">
  10. <el-row :gutter="20">
  11. <el-col :xs="24" :sm="12" :lg="6">
  12. <el-form-item label="返利单号" prop="">
  13. <el-input disabled v-model="searchForm.rebateOrderId" placeholder=""></el-input>
  14. </el-form-item>
  15. </el-col>
  16. <el-col :xs="24" :sm="12" :lg="6">
  17. <el-form-item label="返利日期" prop="">
  18. <el-input disabled v-model="searchForm.theTime" placeholder=""></el-input>
  19. </el-form-item>
  20. </el-col>
  21. <el-col :xs="24" :sm="12" :lg="6">
  22. <el-form-item label="备注" prop="">
  23. <el-input disabled v-model="searchForm.remark" placeholder=""></el-input>
  24. </el-form-item>
  25. </el-col>
  26. <el-col :xs="24" :sm="12" :lg="6">
  27. <el-form-item label="制单人" prop="">
  28. <el-input disabled v-model="searchForm.createBy" placeholder=""></el-input>
  29. </el-form-item>
  30. </el-col>
  31. <el-col :xs="24" :sm="12" :lg="6">
  32. <el-form-item label="制单日期" prop="">
  33. <el-input disabled v-model="searchForm.createTime" placeholder=""></el-input>
  34. </el-form-item>
  35. </el-col>
  36. <!-- <el-col :xs="24" :sm="12" :lg="6">
  37. <el-form-item label="审批人" prop="">
  38. <el-input placeholder=""></el-input>
  39. </el-form-item>
  40. </el-col>
  41. <el-col :xs="24" :sm="12" :lg="6">
  42. <el-form-item label="审批日期" prop="">
  43. <el-input placeholder=""></el-input>
  44. </el-form-item>
  45. </el-col> -->
  46. </el-row>
  47. </el-form>
  48. </div>
  49. <!-- 列表 -->
  50. <div class="mymain-container">
  51. <div class="table">
  52. <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
  53. <el-table-column label="序号" align="center" width="100" type="index" show-overflow-tooltip></el-table-column>
  54. <el-table-column align="center" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip></el-table-column>
  55. <el-table-column align="center" label="经销商名称" prop="customerName" min-width="160" show-overflow-tooltip></el-table-column>
  56. <el-table-column align="center" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip></el-table-column>
  57. <el-table-column align="center" label="返利总金额" prop="amount" min-width="160" show-overflow-tooltip></el-table-column>
  58. <el-table-column align="center" label="暂扣返利" prop="withholdAmount" min-width="160" show-overflow-tooltip></el-table-column>
  59. <el-table-column align="center" label="政策文件流水号" prop="policyFileNo" min-width="160" show-overflow-tooltip></el-table-column>
  60. <el-table-column align="center" label="政策文号" prop="policyDocNo" min-width="160" show-overflow-tooltip></el-table-column>
  61. <el-table-column align="center" label="政策年份" prop="policyYear" min-width="160" show-overflow-tooltip></el-table-column>
  62. <el-table-column align="center" label="政策月份" prop="policyMonth" min-width="160" show-overflow-tooltip></el-table-column>
  63. <el-table-column align="center" label="政策归属部门" prop="policyOrg" min-width="160" show-overflow-tooltip></el-table-column>
  64. <el-table-column align="center" label="客户区域" prop="customerArea" min-width="160" show-overflow-tooltip></el-table-column>
  65. <el-table-column align="center" label="客户属性" prop="customerAttr" min-width="160" show-overflow-tooltip></el-table-column>
  66. <el-table-column align="center" label="奖励实际归属客户" prop="rewardActualCustomers" min-width="160" show-overflow-tooltip></el-table-column>
  67. <el-table-column align="center" label="备注1" prop="remark1" min-width="160" show-overflow-tooltip></el-table-column>
  68. <el-table-column align="center" label="备注2" prop="remark2" min-width="160" show-overflow-tooltip></el-table-column>
  69. </el-table>
  70. </div>
  71. </div>
  72. <!-- <div v-if="isShow">
  73. <span>审批记录</span>
  74. <el-divider></el-divider>
  75. <div class="diy-table-1">
  76. <el-row :gutter="0">
  77. <el-col :span="12" class="item">
  78. <div class="label">审批人</div>
  79. <div class="value">{{ examineBy }}</div>
  80. </el-col>
  81. <el-col :span="12" class="item">
  82. <div class="label">审批结果</div>
  83. <div class="value">
  84. <el-radio v-model="examineStatus" label="OK">通过</el-radio>
  85. <el-radio v-model="examineStatus" label="FAIL">驳回</el-radio>
  86. </div>
  87. </el-col>
  88. <el-col :span="24" class="item">
  89. <div class="label">审批说明</div>
  90. <div class="value">
  91. <el-input
  92. v-model="examineRemark"
  93. placeholder="请输入内容"
  94. ></el-input>
  95. </div>
  96. </el-col>
  97. </el-row>
  98. </div>
  99. </div> -->
  100. </div>
  101. </template>
  102. <script>
  103. import { getRebateOrderDetail } from "@/api/finance/rebate_list";
  104. export default {
  105. props: {
  106. detailId: {
  107. type: String,
  108. required: true,
  109. },
  110. },
  111. data() {
  112. return {
  113. currentPage: 1, // 当前页码
  114. pageSize: 10, // 每页数量
  115. listTotal: 0, // 列表总数
  116. dataList: [], // 列表数据
  117. searchForm: {}, //搜索表单
  118. listLoading: false, // 列表加载loading
  119. examineBy: "",
  120. examineRemark: "",
  121. examineStatus: "",
  122. isShow: false,
  123. };
  124. },
  125. created() {
  126. this.getDataList();
  127. },
  128. methods: {
  129. goBack() {
  130. this.$parent.showPage = 1;
  131. },
  132. //获取详情数据
  133. async getDataList() {
  134. let res = await getRebateOrderDetail({ id: this.detailId });
  135. console.log(res, 11111);
  136. this.searchForm.rebateOrderId = res.data.id;
  137. this.searchForm.theTime = res.data.theTime;
  138. this.searchForm.createBy = res.data.createBy;
  139. this.searchForm.createTime = res.data.createTime;
  140. this.searchForm.remark = res.data.remark;
  141. this.dataList = res.data.items;
  142. this.examineBy = res.data.examineBy;
  143. this.examineRemark = res.data.examineRemark;
  144. // if (
  145. // res.data.examineStatus == "SAVE" ||
  146. // res.data.examineStatus == "WAIT"
  147. // ) {
  148. // this.isShow = false;
  149. // }
  150. },
  151. },
  152. };
  153. </script>
  154. <style></style>