rebate_list-review.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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 v-if="this.searchForm.secondExamineBy != null" disabled v-model="searchForm.secondExamineBy" placeholder=""></el-input>
  39. <el-input v-else disabled v-model="searchForm.examineBy" placeholder=""></el-input>
  40. </el-form-item>
  41. </el-col>
  42. <el-col :xs="24" :sm="12" :lg="6">
  43. <el-form-item label="审批日期" prop="">
  44. <el-input v-if="this.searchForm.secondExamineTime != null" disabled v-model="searchForm.secondExamineTime" placeholder=""></el-input>
  45. <el-input v-else disabled v-model="searchForm.examineTime" placeholder=""></el-input>
  46. </el-form-item>
  47. </el-col>
  48. </el-row>
  49. </el-form>
  50. </div>
  51. <!-- 列表 -->
  52. <div class="mymain-container">
  53. <div class="table">
  54. <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
  55. <el-table-column label="序号" align="left" width="100" type="index" show-overflow-tooltip></el-table-column>
  56. <el-table-column align="left" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip>
  57. <template slot-scope="scope">
  58. <CopyButton :copyText="scope.row.customerNumber" />
  59. <span>{{scope.row.customerNumber}}</span>
  60. </template>
  61. </el-table-column>
  62. <el-table-column align="left" label="经销商名称" prop="customerName" min-width="260" show-overflow-tooltip>
  63. <template slot-scope="scope">
  64. <CopyButton :copyText="scope.row.customerName" />
  65. <span>{{scope.row.customerName}}</span>
  66. </template>
  67. </el-table-column>
  68. <el-table-column align="left" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip></el-table-column>
  69. <el-table-column align="right" label="返利总金额" prop="amount" min-width="160" show-overflow-tooltip></el-table-column>
  70. <el-table-column align="right" label="暂扣返利" prop="withholdAmount" min-width="160" show-overflow-tooltip></el-table-column>
  71. <el-table-column align="left" label="政策文件流水号" prop="policyFileNo" min-width="160" show-overflow-tooltip>
  72. <template slot-scope="scope">
  73. <CopyButton :copyText="scope.row.policyFileNo" />
  74. <span>{{scope.row.policyFileNo}}</span>
  75. </template>
  76. </el-table-column>
  77. <el-table-column align="left" label="政策文号" prop="policyDocNo" min-width="160" show-overflow-tooltip>
  78. <template slot-scope="scope">
  79. <CopyButton :copyText="scope.row.policyDocNo" />
  80. <span>{{scope.row.policyDocNo}}</span>
  81. </template>
  82. </el-table-column>
  83. <el-table-column align="left" label="政策年份" prop="policyYear" min-width="160" show-overflow-tooltip></el-table-column>
  84. <el-table-column align="left" label="政策月份" prop="policyMonth" min-width="160" show-overflow-tooltip></el-table-column>
  85. <el-table-column align="left" label="政策归属部门" prop="policyOrg" min-width="160" show-overflow-tooltip></el-table-column>
  86. <el-table-column align="left" label="客户区域" prop="customerArea" min-width="160" show-overflow-tooltip></el-table-column>
  87. <el-table-column align="left" label="客户属性" prop="customerAttr" min-width="160" show-overflow-tooltip></el-table-column>
  88. <el-table-column align="left" label="奖励实际归属客户" prop="rewardActualCustomers" min-width="160" show-overflow-tooltip></el-table-column>
  89. <el-table-column align="left" label="备注1" prop="remark1" min-width="160" show-overflow-tooltip></el-table-column>
  90. <el-table-column align="left" label="备注2" prop="remark2" min-width="160" show-overflow-tooltip></el-table-column>
  91. </el-table>
  92. </div>
  93. </div>
  94. <span>返利单复核及办理折让</span>
  95. <el-divider></el-divider>
  96. <!-- 列表 -->
  97. <div class="mymain-container">
  98. <div class="table">
  99. <el-table v-loading="listLoading" :data="dataList2" element-loading-text="Loading" border fit highlight-current-row stripe @selection-change="selectionChangeFn">
  100. <el-table-column align="center" type="selection" prop="" min-width="160" show-overflow-tooltip></el-table-column>
  101. <el-table-column align="left" label="返利单号" prop="rebateOrderId" min-width="160" show-overflow-tooltip>
  102. <template slot-scope="scope">
  103. <CopyButton :copyText="scope.row.rebateOrderId" />
  104. <span>{{scope.row.rebateOrderId}}</span>
  105. </template>
  106. </el-table-column>
  107. <el-table-column align="left" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip>
  108. <template slot-scope="scope">
  109. <CopyButton :copyText="scope.row.customerNumber" />
  110. <span>{{scope.row.customerNumber}}</span>
  111. </template>
  112. </el-table-column>
  113. <el-table-column align="left" label="经销商名称" prop="customerName" min-width="160" show-overflow-tooltip>
  114. <template slot-scope="scope">
  115. <CopyButton :copyText="scope.row.customerName" />
  116. <span>{{scope.row.customerName}}</span>
  117. </template>
  118. </el-table-column>
  119. <el-table-column align="left" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip></el-table-column>
  120. <el-table-column align="right" label="总返利金额" prop="amount" min-width="160" show-overflow-tooltip></el-table-column>
  121. <el-table-column align="right" label="返利金额" prop="rebateAmount" min-width="160" show-overflow-tooltip></el-table-column>
  122. <el-table-column align="right" label="折让金额" prop="allowanceAmount" min-width="160" show-overflow-tooltip></el-table-column>
  123. <el-table-column align="right" label="暂扣返利" prop="withholdAmount" min-width="160" show-overflow-tooltip></el-table-column>
  124. <el-table-column align="left" label="折让编号" prop="allowanceCode" min-width="160" show-overflow-tooltip>
  125. <template slot-scope="scope">
  126. <el-input v-model="scope.row.allowanceCode"></el-input>
  127. </template>
  128. </el-table-column>
  129. <el-table-column align="left" label="折让账号" prop="allowanceAccount" min-width="160" show-overflow-tooltip>
  130. <template slot-scope="scope">
  131. <el-input v-model="scope.row.allowanceAccount"></el-input>
  132. </template>
  133. </el-table-column>
  134. <el-table-column align="right" label="已办理折让金额" prop="handledAllowanceAmount" min-width="160" show-overflow-tooltip></el-table-column>
  135. <el-table-column align="left" label="折让对应收款单号" prop="allowanceOrderNo" min-width="160" show-overflow-tooltip>
  136. <template slot-scope="scope">
  137. <CopyButton :copyText="scope.row.allowanceOrderNo" />
  138. <span>{{scope.row.allowanceOrderNo}}</span>
  139. </template>
  140. </el-table-column>
  141. <el-table-column align="left" label="确认人" prop="customerName" min-width="160" show-overflow-tooltip></el-table-column>
  142. <el-table-column align="left" label="确认日期" prop="customerConfirmTime" min-width="160" show-overflow-tooltip></el-table-column>
  143. <el-table-column align="left" label="复核人" prop="secondExamineBy" min-width="160" show-overflow-tooltip></el-table-column>
  144. <el-table-column align="left" label="复核日期" prop="secondExamineTime" min-width="160" show-overflow-tooltip></el-table-column>
  145. </el-table>
  146. </div>
  147. </div>
  148. <div class="diy-table-1">
  149. <el-row :gutter="0">
  150. <el-col :span="12" class="item">
  151. <div class="label">复核人</div>
  152. <div class="value">{{ this.name }}</div>
  153. </el-col>
  154. <el-col :span="12" class="item">
  155. <div class="label">操作</div>
  156. <div class="value">
  157. <el-radio v-model="examineStatus" label="OK">复核通过</el-radio>
  158. <el-radio v-model="examineStatus" label="FAIL">取消复核</el-radio>
  159. </div>
  160. </el-col>
  161. <el-col :span="24" class="item">
  162. <div class="label">复核说明</div>
  163. <div class="value">
  164. <el-input v-model="examineRemark" placeholder="复核说明"></el-input>
  165. </div>
  166. </el-col>
  167. </el-row>
  168. </div>
  169. <br />
  170. <el-button type="primary" size="small" @click="btnFn">确定</el-button>
  171. </div>
  172. </template>
  173. <script>
  174. import {
  175. getRebateOrderDetail,
  176. getRebateOrderExamine2,
  177. } from "@/api/finance/rebate_list";
  178. import { mapGetters } from "vuex";
  179. export default {
  180. props: {
  181. detailId: {
  182. type: String,
  183. required: true,
  184. },
  185. },
  186. computed: { ...mapGetters(["name"]) },
  187. data() {
  188. return {
  189. examineRemark: "",
  190. examineStatus: "OK",
  191. searchForm: {
  192. rebateOrderId: "",
  193. theTime: "",
  194. createBy: "",
  195. createTime: "",
  196. remark: "",
  197. },
  198. dataList: [],
  199. dataList2: [],
  200. selectArr: [],
  201. listLoading: false, // 列表加载loading
  202. };
  203. },
  204. created() {
  205. this.getDataList();
  206. },
  207. methods: {
  208. //选择项发生改变
  209. selectionChangeFn(row) {
  210. console.log(row);
  211. this.selectArr = row;
  212. },
  213. //确定
  214. async btnFn() {
  215. if (this.selectArr.length == 0) {
  216. this.$message.warning("请选择复核单据");
  217. return;
  218. }
  219. await getRebateOrderExamine2({
  220. id: this.detailId,
  221. examineRemark: this.examineRemark,
  222. examineStatus: this.examineStatus,
  223. items: this.selectArr,
  224. });
  225. this.$emit("updateList");
  226. this.$message.success("复核成功");
  227. this.$parent.showPage = 1;
  228. },
  229. //获取详情数据
  230. async getDataList() {
  231. let res = await getRebateOrderDetail({ id: this.detailId });
  232. this.searchForm.rebateOrderId = res.data.id;
  233. this.searchForm.theTime = res.data.theTime;
  234. this.searchForm.createBy = res.data.createBy;
  235. this.searchForm.createTime = res.data.createTime;
  236. this.searchForm.remark = res.data.remark;
  237. this.searchForm.secondExamineBy = res.data.secondExamineBy;
  238. this.searchForm.secondExamineTime = res.data.secondExamineTime;
  239. this.searchForm.examineBy = res.data.examineBy;
  240. this.searchForm.examineTime = res.data.examineTime;
  241. this.dataList = res.data.items;
  242. this.dataList2 = res.data.items;
  243. },
  244. goBack() {
  245. this.$parent.showPage = 1;
  246. },
  247. },
  248. };
  249. </script>
  250. <style></style>