rebate_list-apply.vue 14 KB

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