rebate_list-review.vue 14 KB

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