realFundStat.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. <template>
  2. <div class="app-container organization-index">
  3. <div class="title-container">
  4. <breadcrumb id="breadcrumb-container" class="breadcrumb-container"/>
  5. </div>
  6. <y-page-list-layout :get-page-list="getMajorStat" :page-list="majorStat" :page-para="listQuery1" :pageSizes="[10, 20, 30, 50, 100, 200, 500, 1000]">
  7. <template slot="left">
  8. <el-input v-model="listQuery1.keyword" placeholder="项目编号、产品号、人员、金额" clearable
  9. style="width: 300px;float: left;">
  10. </el-input>
  11. <el-select clearable v-model="listQuery1.ifSaveFile" placeholder="归档状态" style="margin-left: 20px;width: 150px;float: left;">
  12. <el-option :value="false" label="未归档">未归档</el-option>
  13. <el-option :value="true" label="已归档">已归档</el-option>
  14. </el-select>
  15. <el-select clearable v-model="listQuery1.financial" placeholder="分类" style="width: 150px;float: left;margin-left:20px;">
  16. <el-option :value="true" label="金融">金融</el-option>
  17. <el-option :value="false" label="非金融">非金融</el-option>
  18. </el-select>
  19. <el-date-picker clearable v-model="claimDate" type="daterange" align="center" unlink-panels
  20. range-separator="至" start-placeholder="认领日期(开始)" end-placeholder="认领日期(结束)" :picker-options="pickerOptions"
  21. value-format="yyyy-MM-dd" style="margin-left: 20px;float: left;">
  22. </el-date-picker>
  23. <el-date-picker clearable v-model="paymentDate" type="daterange" align="center" unlink-panels
  24. range-separator="至" start-placeholder="到账日期(开始)" end-placeholder="到账日期(结束)" :picker-options="pickerOptions"
  25. value-format="yyyy-MM-dd" style="margin-left: 20px;float: left;">
  26. </el-date-picker>
  27. <el-button class="filter-item" style="margin-left:20px;float: left;" type="primary" @click="searchList1" round>搜索
  28. </el-button>
  29. <el-button class="filter-item" style="float: left;" round type="success" @click="resetSearch1()">重置
  30. </el-button>
  31. <el-button class="filter-item" style="float: left;" round type="info" @click="exportMajorStat()">导出
  32. </el-button>
  33. </template>
  34. <el-table
  35. size="medium"
  36. slot="table"
  37. row-key="id"
  38. :data="majorStat.records"
  39. fit border
  40. highlight-current-row
  41. :header-row-style="{color: '#333333'}"
  42. style="border-left: 1px solid #EBECED;border-right: 1px solid #EBECED;color: #333333;">
  43. <el-table-column label="序号" align="center" type="index">
  44. </el-table-column>
  45. <el-table-column label="分类" align="center">
  46. <template slot-scope="{row}">
  47. <span>{{ row.financial?'金融':'非金融' }}</span>
  48. </template>
  49. </el-table-column>
  50. <el-table-column label="是否归档" align="center">
  51. <template slot-scope="{row}">
  52. <span>{{ row.ifSaveFile?'已归档':'未归档' }}</span>
  53. </template>
  54. </el-table-column>
  55. <el-table-column label="项目编号" width="150" align="center">
  56. <template slot-scope="{row}">
  57. <span>{{ row.orderId }}</span>
  58. </template>
  59. </el-table-column>
  60. <el-table-column label="产品号" width="200" align="center">
  61. <template slot-scope="{row}">
  62. <span>{{ row.reportNo }}</span>
  63. </template>
  64. </el-table-column>
  65. <el-table-column label="产品类型" align="center">
  66. <template slot-scope="{row}">
  67. <span>{{ row.productionType==='REPORT'?'报告':(row.productionType==='STATEMENT'?'意见书':(row.productionType==='LETTER'?'复评函':'-'))}}</span>
  68. </template>
  69. </el-table-column>
  70. <el-table-column label="项目名称" width="150" show-overflow-tooltip align="center" >
  71. <template slot-scope="{row}">
  72. <span>{{ row.name }}</span>
  73. </template>
  74. </el-table-column>
  75. <el-table-column label="市场部" align="center">
  76. <template slot-scope="{row}">
  77. <span>{{ row.marketDepartment }}</span>
  78. </template>
  79. </el-table-column>
  80. <el-table-column label="评估部" align="center">
  81. <template slot-scope="{row}">
  82. <span>{{ row.evaluateDepartment }}</span>
  83. </template>
  84. </el-table-column>
  85. <el-table-column label="客户经理" align="center">
  86. <template slot-scope="{row}">
  87. <span>{{ row.clientManager }}</span>
  88. </template>
  89. </el-table-column>
  90. <el-table-column label="负责人" align="center">
  91. <template slot-scope="{row}">
  92. <span>{{ row.principal }}</span>
  93. </template>
  94. </el-table-column>
  95. <el-table-column label="到账时间" width="110" align="center">
  96. <template slot-scope="{row}">
  97. <span>{{ row.payDateTime }}</span>
  98. </template>
  99. </el-table-column>
  100. <el-table-column label="认领时间" width="110" align="center">
  101. <template slot-scope="{row}">
  102. <span>{{ row.claimDatetime }}</span>
  103. </template>
  104. </el-table-column>
  105. <el-table-column label="应收款(元)" align="center">
  106. <template slot-scope="{row}">
  107. <span>{{ row.orderShouldAmount }}</span>
  108. </template>
  109. </el-table-column>
  110. <el-table-column label="认领金额(元)" align="center">
  111. <template slot-scope="{row}">
  112. <span style="color:red">{{ row.claimAmount }}</span>
  113. </template>
  114. </el-table-column>
  115. <el-table-column label="认领人" align="center">
  116. <template slot-scope="{row}">
  117. <span>{{ row.claimUser }}</span>
  118. </template>
  119. </el-table-column>
  120. <!-- <el-table-column label="客户名称" align="center">
  121. <template slot-scope="{row}">
  122. <span>{{ row.clientName }}</span>
  123. </template>
  124. </el-table-column>
  125. <el-table-column label="业务来源" align="center">
  126. <template slot-scope="{row}">
  127. <span>{{ row.clientSubName }}</span>
  128. </template>
  129. </el-table-column>
  130. <el-table-column label="委托人" align="center">
  131. <template slot-scope="{row}">
  132. <span>{{ row.bailor }}</span>
  133. </template>
  134. </el-table-column> -->
  135. <el-table-column label="评估价值(万元)" align="center">
  136. <template slot-scope="{row}">
  137. <span>{{ row.evaluateAmount/10000 }}</span>
  138. </template>
  139. </el-table-column>
  140. </el-table>
  141. </y-page-list-layout>
  142. </div>
  143. </template>
  144. <script>
  145. import Breadcrumb from '@/components/Breadcrumb'
  146. import YPageListLayout from '@/components/YPageListLayout'
  147. export default {
  148. name: 'realFundStat',
  149. components: {
  150. Breadcrumb,
  151. YPageListLayout
  152. },
  153. data() {
  154. return {
  155. pickerOptions: {
  156. shortcuts: [{
  157. text: '最近一周',
  158. onClick(picker) {
  159. const end = new Date();
  160. const start = new Date();
  161. start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
  162. picker.$emit('pick', [start, end]);
  163. }
  164. }, {
  165. text: '最近一个月',
  166. onClick(picker) {
  167. const end = new Date();
  168. const start = new Date();
  169. start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
  170. picker.$emit('pick', [start, end]);
  171. }
  172. }, {
  173. text: '最近三个月',
  174. onClick(picker) {
  175. const end = new Date();
  176. const start = new Date();
  177. start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
  178. picker.$emit('pick', [start, end]);
  179. }
  180. }]
  181. },
  182. claimDate: [],
  183. paymentDate: '',
  184. listQuery1: {
  185. page: 1,
  186. size: 1000,
  187. descs: 'id',
  188. keyword:null,
  189. startDate: '',
  190. endDate: '',
  191. },
  192. majorStat:{
  193. records:[]
  194. }
  195. }
  196. },
  197. created() {
  198. this.claimDate.push(this.getDefaultStartDate());
  199. this.claimDate.push(this.getDefaultEndDate());
  200. this.getMajorStat();
  201. },
  202. methods: {
  203. handleClick(tab, event) {
  204. },
  205. getDefaultStartDate() {
  206. let currentDate = new Date();
  207. let currentYear = currentDate.getFullYear();
  208. var currentMonth = String(currentDate.getMonth()).padStart(2, "0");
  209. if (currentMonth=='00'){
  210. currentYear = currentYear-1;
  211. currentMonth = 12
  212. }
  213. return currentYear + '-' + currentMonth + '-' + '23'
  214. },
  215. getDefaultEndDate() {
  216. const currentDate = new Date();
  217. const currentYear = currentDate.getFullYear();
  218. var currentMonth = String(currentDate.getMonth() + 1).padStart(2, "0");
  219. return currentYear + '-' + currentMonth + '-' + '22'
  220. },
  221. resetSearch1() {
  222. this.$router.push({ query: {} });
  223. this.claimDate = [this.getDefaultStartDate(), this.getDefaultEndDate()];
  224. this.paymentDate = '',
  225. this.listQuery1 = {
  226. current: 1,
  227. size: 1000,
  228. descs: 'id',
  229. startDate:null,
  230. endDate:null,
  231. payStartDate:null,
  232. payEndDate:null
  233. }
  234. this.getMajorStat()
  235. },
  236. searchList1() {
  237. // 重置分页
  238. this.listQuery1.page = 1
  239. this.listQuery1.size = 1000
  240. if (this.claimDate){
  241. this.listQuery1.startDate = this.claimDate[0]+' 00:00:00';
  242. this.listQuery1.endDate = this.claimDate[1]+ ' 23:59:59';
  243. }
  244. if (this.paymentDate){
  245. this.listQuery1.payStartDate = this.paymentDate[0]+' 00:00:00';
  246. this.listQuery1.payEndDate = this.paymentDate[1]+ ' 23:59:59';
  247. }
  248. this.getMajorStat()
  249. },
  250. getMajorStat(){
  251. let loadingInstance = this.$loading({ fullscreen: true });
  252. if (this.claimDate) {
  253. this.listQuery1.startDate = this.claimDate[0] + ' 00:00:00';
  254. this.listQuery1.endDate = this.claimDate[1] + ' 23:59:59';
  255. }
  256. this.$api.financeClaim.getMajorStat(this.listQuery1).then(res=>{
  257. if (res.code === 200){
  258. loadingInstance.close();
  259. this.majorStat = res.data;
  260. }
  261. })
  262. },
  263. exportMajorStat(){
  264. this.$utils.exportUtil(
  265. "/financeClaim/major/stat/export", this.listQuery1,
  266. "导出"
  267. );
  268. }
  269. }
  270. }
  271. </script>
  272. <style scoped lang="scss">
  273. </style>