|
@@ -1,4 +1,5 @@
|
1
|
1
|
<template>
|
|
2
|
+ <!-- 销售收入核定 -->
|
2
|
3
|
<div class="pricemoitorrecord">
|
3
|
4
|
<a-card :bordered="false">
|
4
|
5
|
<a-space class="search">
|
|
@@ -6,21 +7,17 @@
|
6
|
7
|
<span style="width: 70px; margin-right: 8px; text-align: right; display: block; line-height: 30px">
|
7
|
8
|
企业名称
|
8
|
9
|
</span>
|
9
|
|
- <a-input style="width: 220px" v-model:value="SearchFormDel.unitName" placeholder="请输入" />
|
|
10
|
+ <a-input style="width: 220px" v-model:value="SearchFormDel.dwmc" placeholder="请输入" />
|
10
|
11
|
</div>
|
11
|
12
|
<div class="silt-title">
|
12
|
13
|
<span style="width: 70px; margin-right: 8px; text-align: right; display: block; line-height: 30px">
|
13
|
14
|
库区名称
|
14
|
15
|
</span>
|
15
|
|
- <a-input style="width: 220px" v-model:value="SearchFormDel.unitName" placeholder="请输入" />
|
16
|
|
- <!-- <a-select style="width: 220px" v-model:value="SearchFormDel.unitName">
|
17
|
|
- <a-select-option :value="1">1</a-select-option>
|
18
|
|
- </a-select> -->
|
|
16
|
+ <a-input style="width: 220px" v-model:value="SearchFormDel.orgName" placeholder="请输入" />
|
19
|
17
|
</div>
|
20
|
18
|
<div class="btnBox">
|
21
|
19
|
<a-button type="primary" class="primarySele" @click="Search"> 查询 </a-button>
|
22
|
20
|
<a-button class="primarySele snowy-buttom-left" @click="onReset"> 重置 </a-button>
|
23
|
|
- <a-button type="primary" class="primarySele" @click="onView('add', {})"> 新增 </a-button>
|
24
|
21
|
</div>
|
25
|
22
|
</a-space>
|
26
|
23
|
</a-card>
|
|
@@ -28,17 +25,9 @@
|
28
|
25
|
<div class="list" style="margin-top: 10px">
|
29
|
26
|
<a-table :dataSource="tableData" :pagination="pagination" :columns="tableColumns">
|
30
|
27
|
<template #bodyCell="{ column, record }">
|
31
|
|
- <template v-if="column.dataIndex === 'creditLevel'">
|
32
|
|
- <div v-if="record.creditLevel == '1'">一级</div>
|
33
|
|
- <div v-if="record.creditLevel == '2'">二级</div>
|
34
|
|
- <div v-if="record.creditLevel == '3'">三级</div>
|
35
|
|
- </template>
|
36
|
28
|
<template v-if="column.key === '操作'">
|
37
|
29
|
<a-button type="link" @click="onView('view', record)">查看</a-button>
|
38
|
|
- <a-button type="link" @click="onView('edit', record)">编辑</a-button>
|
39
|
|
- <a-popconfirm title="确定要删除吗?" @confirm="onView('del', record)">
|
40
|
|
- <a-button type="link">删除</a-button>
|
41
|
|
- </a-popconfirm>
|
|
30
|
+ <a-button type="link" @click="onView('edit', record)">修改</a-button>
|
42
|
31
|
</template>
|
43
|
32
|
</template>
|
44
|
33
|
</a-table>
|
|
@@ -46,74 +35,72 @@
|
46
|
35
|
</div>
|
47
|
36
|
</template>
|
48
|
37
|
<script setup name="sharing">
|
49
|
|
- import { listPagination } from '@/hook/listlistPagination.js'
|
50
|
|
- import { reactive, ref } from 'vue'
|
51
|
|
- import business from '@/api/basic.info/verifyQuery.js'
|
52
|
|
- import { useRouter } from 'vue-router'
|
53
|
|
- import { defineComponent } from 'vue'
|
54
|
|
- const formRef = ref(null)
|
55
|
|
- const router = useRouter()
|
56
|
|
- const tableColumns = [
|
57
|
|
- {
|
58
|
|
- title: '序号',
|
59
|
|
- dataIndex: 'Index',
|
60
|
|
- align: 'center',
|
61
|
|
- customRender: ({ text, record, index }) => {
|
62
|
|
- return `${index + 1}`
|
63
|
|
- }
|
64
|
|
- },
|
65
|
|
- { title: '企业名称', align: 'center', dataIndex: 'unitName' },
|
66
|
|
- { title: '库区名称', align: 'center', dataIndex: 'dwdm' },
|
67
|
|
- { title: '合同编号', align: 'center', dataIndex: 'updateTime' },
|
68
|
|
- { title: '结算金额', align: 'center', dataIndex: 'fddbr' },
|
69
|
|
- { title: '结算时间', align: 'center', dataIndex: 'creditLevel' },
|
70
|
|
- { title: '操作', align: 'center', key: '操作' }
|
71
|
|
- ]
|
72
|
|
-
|
73
|
|
- const { DEl, change, tableData, onSearch, handlePageChange, pagination, Search, onReset, SearchFormDel } =
|
74
|
|
- listPagination({ unitName: '', fddbr: '' }, business.XYDAlist, business.XYDAXdel, { sortOrder: 'ASCEND' })
|
75
|
|
- setTimeout(() => {
|
76
|
|
- tableData.value = [{ 1: 1 }]
|
77
|
|
- }, 1000)
|
78
|
|
- // 查看表单数据
|
79
|
|
- const onView = (record, row) => {
|
80
|
|
- switch (record) {
|
81
|
|
- case 'add':
|
82
|
|
- router.push('/Arevenue/AverificationDel?add')
|
83
|
|
- break
|
84
|
|
- case 'del':
|
85
|
|
- DEl(row)
|
86
|
|
- break
|
87
|
|
- case 'view':
|
88
|
|
- router.push(`/Arevenue/AverificationDel?codeLJH=${true}&id=${row.id}`)
|
89
|
|
- break
|
90
|
|
- case 'edit':
|
91
|
|
- router.push(`/Arevenue/AverificationDel?codeLJH=1&id=${row.id}`)
|
92
|
|
- break
|
93
|
|
- default:
|
94
|
|
- // router.push('/business/personnelDel')
|
95
|
|
- break
|
|
38
|
+import { listPagination } from '@/hook/listlistPagination.js'
|
|
39
|
+import { useRouter } from 'vue-router'
|
|
40
|
+import financialSupervisionApi from '@/api/financialSupervision.info/financialSupervision.js'
|
|
41
|
+const router = useRouter()
|
|
42
|
+const tableColumns = [
|
|
43
|
+ {
|
|
44
|
+ title: '序号',
|
|
45
|
+ dataIndex: 'Index',
|
|
46
|
+ align: 'center',
|
|
47
|
+ customRender: ({ text, record, index }) => {
|
|
48
|
+ return `${index + 1}`
|
96
|
49
|
}
|
|
50
|
+ },
|
|
51
|
+ { title: '企业名称', align: 'center', dataIndex: 'dwmc' },
|
|
52
|
+ { title: '库区名称', align: 'center', dataIndex: 'orgName' },
|
|
53
|
+ { title: '合同编号', align: 'center', dataIndex: 'contractNumber' },
|
|
54
|
+ { title: '结算金额', align: 'center', dataIndex: 'moneyQuantity' },
|
|
55
|
+ { title: '核定时间', align: 'center', dataIndex: 'updatedate' },
|
|
56
|
+ { title: '操作', align: 'center', key: '操作' }
|
|
57
|
+]
|
|
58
|
+
|
|
59
|
+const { DEl, change, tableData, onSearch, handlePageChange, pagination, Search, onReset, SearchFormDel } =
|
|
60
|
+ listPagination({ orgName: '', dwmc: '' }, financialSupervisionApi.fsSaleRevenuePage, financialSupervisionApi.fsSaleRevenueDetail, {
|
|
61
|
+ sortOrder: 'ASCEND'
|
|
62
|
+ })
|
|
63
|
+// setTimeout(() => {
|
|
64
|
+// tableData.value = [{ 1: 1 }]
|
|
65
|
+// }, 1000)
|
|
66
|
+
|
|
67
|
+// 查看表单数据
|
|
68
|
+const onView = (record, row) => {
|
|
69
|
+ switch (record) {
|
|
70
|
+ case 'add':
|
|
71
|
+ router.push('/Arevenue/AverificationDel?add')
|
|
72
|
+ break
|
|
73
|
+ case 'del':
|
|
74
|
+ DEl(row)
|
|
75
|
+ break
|
|
76
|
+ case 'view':
|
|
77
|
+ router.push(`/Arevenue/AverificationDel?codeLJH=${true}&id=${row.id}`)
|
|
78
|
+ break
|
|
79
|
+ case 'edit':
|
|
80
|
+ router.push(`/Arevenue/AverificationDel?codeLJH=1&id=${row.id}`)
|
|
81
|
+ break
|
|
82
|
+ default:
|
|
83
|
+ break
|
97
|
84
|
}
|
|
85
|
+}
|
98
|
86
|
</script>
|
99
|
87
|
<style lang="less" scoped>
|
100
|
|
- .search {
|
101
|
|
- padding-top: 20px;
|
102
|
|
- // padding-left: 50px;
|
103
|
|
- margin-bottom: 32px;
|
104
|
|
- .btnBox {
|
105
|
|
- width: 100%;
|
106
|
|
- display: inline-block;
|
107
|
|
- display: flex;
|
108
|
|
- justify-content: space-around;
|
109
|
|
- align-items: center;
|
110
|
|
- .primarySele {
|
111
|
|
- margin-left: 20px;
|
112
|
|
- margin-right: 20px;
|
113
|
|
- }
|
114
|
|
- }
|
115
|
|
- }
|
116
|
|
- .silt-title {
|
|
88
|
+.search {
|
|
89
|
+ padding-top: 20px;
|
|
90
|
+ margin-bottom: 32px;
|
|
91
|
+ .btnBox {
|
|
92
|
+ width: 100%;
|
|
93
|
+ display: inline-block;
|
117
|
94
|
display: flex;
|
|
95
|
+ justify-content: space-around;
|
|
96
|
+ align-items: center;
|
|
97
|
+ .primarySele {
|
|
98
|
+ margin-left: 20px;
|
|
99
|
+ margin-right: 20px;
|
|
100
|
+ }
|
118
|
101
|
}
|
|
102
|
+}
|
|
103
|
+.silt-title {
|
|
104
|
+ display: flex;
|
|
105
|
+}
|
119
|
106
|
</style>
|