rebate_list-apply.vue 13 KB

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