rebate_list-apply.vue 14 KB

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