rebate_list-review.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  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
  10. ref="searchForm"
  11. :model="searchForm"
  12. label-width="100px"
  13. size="small"
  14. label-position="left"
  15. >
  16. <el-row :gutter="20">
  17. <el-col :xs="24" :sm="12" :lg="6">
  18. <el-form-item label="返利单号" prop="">
  19. <el-input
  20. v-model="searchForm.rebateOrderId"
  21. placeholder="请输入"
  22. ></el-input>
  23. </el-form-item>
  24. </el-col>
  25. <el-col :xs="24" :sm="12" :lg="6">
  26. <el-form-item label="返利日期" prop="">
  27. <el-input
  28. v-model="searchForm.theTime"
  29. placeholder="请输入"
  30. ></el-input>
  31. </el-form-item>
  32. </el-col>
  33. <el-col :xs="24" :sm="12" :lg="6">
  34. <el-form-item label="备注" prop="">
  35. <el-input
  36. v-model="searchForm.remark"
  37. placeholder="请输入"
  38. ></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
  44. v-model="searchForm.createBy"
  45. placeholder="请输入"
  46. ></el-input>
  47. </el-form-item>
  48. </el-col>
  49. <el-col :xs="24" :sm="12" :lg="6">
  50. <el-form-item label="制单日期" prop="">
  51. <el-input
  52. v-model="searchForm.createTime"
  53. placeholder="请输入"
  54. ></el-input>
  55. </el-form-item>
  56. </el-col>
  57. <el-col :xs="24" :sm="12" :lg="6">
  58. <el-form-item label="审批人" prop="">
  59. <el-input placeholder="请输入"></el-input>
  60. </el-form-item>
  61. </el-col>
  62. <el-col :xs="24" :sm="12" :lg="6">
  63. <el-form-item label="审批日期" prop="">
  64. <el-input placeholder="请输入"></el-input>
  65. </el-form-item>
  66. </el-col>
  67. <el-col :xs="24" :sm="12" :lg="6">
  68. <el-form-item label="关闭人" prop="">
  69. <el-input placeholder="请输入"></el-input>
  70. </el-form-item>
  71. </el-col>
  72. <el-col :xs="24" :sm="12" :lg="6">
  73. <el-form-item label="关闭日期" prop="">
  74. <el-input placeholder="请输入"></el-input>
  75. </el-form-item>
  76. </el-col>
  77. </el-row>
  78. </el-form>
  79. </div>
  80. <!-- 列表 -->
  81. <div class="mymain-container">
  82. <div class="table">
  83. <el-table
  84. v-loading="listLoading"
  85. :data="dataList"
  86. element-loading-text="Loading"
  87. border
  88. fit
  89. highlight-current-row
  90. stripe
  91. >
  92. <el-table-column
  93. label="序号"
  94. align="center"
  95. width="100"
  96. type="index"
  97. show-overflow-tooltip
  98. ></el-table-column>
  99. <el-table-column
  100. align="center"
  101. label="经销商编码"
  102. prop="customerNumber"
  103. min-width="160"
  104. show-overflow-tooltip
  105. ></el-table-column>
  106. <el-table-column
  107. align="center"
  108. label="经销商名称"
  109. prop="customerName"
  110. min-width="160"
  111. show-overflow-tooltip
  112. ></el-table-column>
  113. <el-table-column
  114. align="center"
  115. label="返利类型"
  116. prop="walletName"
  117. min-width="160"
  118. show-overflow-tooltip
  119. ></el-table-column>
  120. <el-table-column
  121. align="center"
  122. label="返利总金额"
  123. prop="amount"
  124. min-width="160"
  125. show-overflow-tooltip
  126. ></el-table-column>
  127. <el-table-column
  128. align="center"
  129. label="暂扣返利"
  130. prop="withholdAmount"
  131. min-width="160"
  132. show-overflow-tooltip
  133. ></el-table-column>
  134. <el-table-column
  135. align="center"
  136. label="政策文件流水号"
  137. prop="policyFileNo"
  138. min-width="160"
  139. show-overflow-tooltip
  140. ></el-table-column>
  141. <el-table-column
  142. align="center"
  143. label="政策文号"
  144. prop="policyDocNo"
  145. min-width="160"
  146. show-overflow-tooltip
  147. ></el-table-column>
  148. <el-table-column
  149. align="center"
  150. label="政策年份"
  151. prop="policyYear"
  152. min-width="160"
  153. show-overflow-tooltip
  154. ></el-table-column>
  155. <el-table-column
  156. align="center"
  157. label="政策月份"
  158. prop="policyMonth"
  159. min-width="160"
  160. show-overflow-tooltip
  161. ></el-table-column>
  162. <el-table-column
  163. align="center"
  164. label="政策归属部门"
  165. prop="policyOrg"
  166. min-width="160"
  167. show-overflow-tooltip
  168. ></el-table-column>
  169. <el-table-column
  170. align="center"
  171. label="客户区域"
  172. prop="customerArea"
  173. min-width="160"
  174. show-overflow-tooltip
  175. ></el-table-column>
  176. <el-table-column
  177. align="center"
  178. label="客户属性"
  179. prop="customerAttr"
  180. min-width="160"
  181. show-overflow-tooltip
  182. ></el-table-column>
  183. <el-table-column
  184. align="center"
  185. label="奖励实际归属客户"
  186. prop="rewardActualCustomers"
  187. min-width="160"
  188. show-overflow-tooltip
  189. ></el-table-column>
  190. <el-table-column
  191. align="center"
  192. label="备注1"
  193. prop="remark1"
  194. min-width="160"
  195. show-overflow-tooltip
  196. ></el-table-column>
  197. <el-table-column
  198. align="center"
  199. label="备注2"
  200. prop="remark2"
  201. min-width="160"
  202. show-overflow-tooltip
  203. ></el-table-column>
  204. </el-table>
  205. </div>
  206. </div>
  207. <span>返利单复核及办理折让</span>
  208. <el-divider></el-divider>
  209. <!-- 列表 -->
  210. <div class="mymain-container">
  211. <div class="table">
  212. <el-table
  213. v-loading="listLoading"
  214. :data="dataList2"
  215. element-loading-text="Loading"
  216. border
  217. fit
  218. highlight-current-row
  219. stripe
  220. >
  221. <el-table-column
  222. align="center"
  223. type="selection"
  224. prop=""
  225. min-width="160"
  226. show-overflow-tooltip
  227. ></el-table-column>
  228. <el-table-column
  229. align="center"
  230. label="返利单号"
  231. prop="rebateOrderId"
  232. min-width="160"
  233. show-overflow-tooltip
  234. ></el-table-column>
  235. <el-table-column
  236. align="center"
  237. label="经销商编码"
  238. prop="customerNumber"
  239. min-width="160"
  240. show-overflow-tooltip
  241. ></el-table-column>
  242. <el-table-column
  243. align="center"
  244. label="经销商名称"
  245. prop="customerName"
  246. min-width="160"
  247. show-overflow-tooltip
  248. ></el-table-column>
  249. <el-table-column
  250. align="center"
  251. label="返利类型"
  252. prop="walletName"
  253. min-width="160"
  254. show-overflow-tooltip
  255. ></el-table-column>
  256. <el-table-column
  257. align="center"
  258. label="总返利金额"
  259. prop="amount"
  260. min-width="160"
  261. show-overflow-tooltip
  262. ></el-table-column>
  263. <el-table-column
  264. align="center"
  265. label="返利金额"
  266. prop=""
  267. min-width="160"
  268. show-overflow-tooltip
  269. ></el-table-column>
  270. <el-table-column
  271. align="center"
  272. label="折让金额"
  273. prop="allowanceAmount"
  274. min-width="160"
  275. show-overflow-tooltip
  276. ></el-table-column>
  277. <el-table-column
  278. align="center"
  279. label="暂扣返利"
  280. prop="withholdAmount"
  281. min-width="160"
  282. show-overflow-tooltip
  283. ></el-table-column>
  284. <el-table-column
  285. align="center"
  286. label="折让编号"
  287. prop="allowanceCode"
  288. min-width="160"
  289. show-overflow-tooltip
  290. >
  291. <template slot-scope="scope">
  292. <el-input v-model="scope.row.allowanceCode"></el-input>
  293. </template>
  294. </el-table-column>
  295. <el-table-column
  296. align="center"
  297. label="折让账号"
  298. prop="allowanceAccount"
  299. min-width="160"
  300. show-overflow-tooltip
  301. >
  302. <template slot-scope="scope">
  303. <el-input v-model="scope.row.allowanceAccount"></el-input>
  304. </template>
  305. </el-table-column>
  306. <el-table-column
  307. align="center"
  308. label="已办理折让金额"
  309. prop="handledAllowanceAmount"
  310. min-width="160"
  311. show-overflow-tooltip
  312. ></el-table-column>
  313. <el-table-column
  314. align="center"
  315. label="折让对应收款单号"
  316. prop="allowanceOrderNo"
  317. min-width="160"
  318. show-overflow-tooltip
  319. ></el-table-column>
  320. <el-table-column
  321. align="center"
  322. label="确认人"
  323. prop="customerName"
  324. min-width="160"
  325. show-overflow-tooltip
  326. ></el-table-column>
  327. <el-table-column
  328. align="center"
  329. label="确认日期"
  330. prop="customerConfirmTime"
  331. min-width="160"
  332. show-overflow-tooltip
  333. ></el-table-column>
  334. <el-table-column
  335. align="center"
  336. label="复核人"
  337. prop="secondExamineBy"
  338. min-width="160"
  339. show-overflow-tooltip
  340. ></el-table-column>
  341. <el-table-column
  342. align="center"
  343. label="复核日期"
  344. prop="secondExamineTime"
  345. min-width="160"
  346. show-overflow-tooltip
  347. ></el-table-column>
  348. </el-table>
  349. </div>
  350. </div>
  351. <div class="diy-table-1">
  352. <el-row :gutter="0">
  353. <el-col :span="12" class="item">
  354. <div class="label">复核人</div>
  355. <div class="value">{{ this.name }}</div>
  356. </el-col>
  357. <el-col :span="12" class="item">
  358. <div class="label">操作</div>
  359. <div class="value">
  360. <el-radio v-model="examineStatus" label="OK">复核通过</el-radio>
  361. <el-radio v-model="examineStatus" label="FALL">取消复核</el-radio>
  362. </div>
  363. </el-col>
  364. <el-col :span="24" class="item">
  365. <div class="label">复核状态</div>
  366. <div class="value">
  367. <el-input v-model="examineRemark" placeholder=""></el-input>
  368. </div>
  369. </el-col>
  370. </el-row>
  371. </div>
  372. <br />
  373. <el-button type="primary" size="small" @click="btnFn">确定</el-button>
  374. </div>
  375. </template>
  376. <script>
  377. import {
  378. getRebateOrderDetail,
  379. getRebateOrderExamine2,
  380. } from "@/api/finance/rebate_list";
  381. import { mapGetters } from "vuex";
  382. export default {
  383. props: {
  384. detailId: {
  385. type: String,
  386. required: true,
  387. },
  388. },
  389. computed: { ...mapGetters(["name"]) },
  390. data() {
  391. return {
  392. examineRemark: "",
  393. examineStatus: "",
  394. searchForm: {
  395. rebateOrderId: "",
  396. theTime: "",
  397. createBy: "",
  398. createTime: "",
  399. remark: "",
  400. },
  401. dataList: [],
  402. dataList2: [],
  403. listLoading: false, // 列表加载loading
  404. };
  405. },
  406. created() {
  407. this.getDataList();
  408. },
  409. methods: {
  410. //确定
  411. async btnFn() {
  412. await getRebateOrderExamine2({
  413. id: this.detailId,
  414. examineRemark: this.examineRemark,
  415. examineStatus: this.examineStatus,
  416. });
  417. this.$message.success("复核成功");
  418. },
  419. //获取详情数据
  420. async getDataList() {
  421. let res = await getRebateOrderDetail({ id: this.detailId });
  422. this.searchForm.rebateOrderId = res.data.id;
  423. this.searchForm.theTime = res.data.theTime;
  424. this.searchForm.createBy = res.data.createBy;
  425. this.searchForm.createTime = res.data.createTime;
  426. this.searchForm.remark = res.data.remark;
  427. this.dataList = res.data.items;
  428. this.dataList2 = res.data.items;
  429. },
  430. goBack() {
  431. this.$parent.showPage = 1;
  432. },
  433. },
  434. };
  435. </script>
  436. <style>
  437. </style>