Explorar o código

客户分润认领列表接口

Xiao_123 hai 4 meses
pai
achega
ba0dfc1f7a

+ 6 - 1
src/api/salary.js

@@ -161,7 +161,12 @@ export function getSalaryFixedEmployeeStatistics (data) {
   return http.post('/employee/basic/salary/month/trend', data)
 }
 
-// 客户分润认领 列表
+// 分润认领 列表
+export function getProfitSharingClaim (data) {
+  return http.post('/customer/performance/page', data)
+}
+
+// 员工分润认领 列表
 export function getCustomerProfitSharingClaim (data) {
   return http.post('/customer/performance/customer/page', data)
 }

+ 5 - 2
src/views/salary/claim/sharingClaim/index.vue

@@ -21,7 +21,7 @@
 
 <script>
 import { dateFormat } from '@/utils/date'
-import { getCustomerProfitSharingClaim } from '@/api/salary'
+import { getProfitSharingClaim } from '@/api/salary'
 import ClaimForm from '../components/form.vue'
 export default {
   name: 'salaryClaimSharing',
@@ -70,8 +70,11 @@ export default {
         { label: '一级科目编码/名称', prop: 'oneLevelSubject' },
         { label: '二级科目编码/名称', prop: 'twoLevelSubject' },
         { label: '金额', prop: 'amount' },
+        { label: '机构名称', prop: 'organizationName' },
         { label: '统一认证号1', prop: 'unifiedCertificationNumber1' },
+        { label: '员工姓名1', prop: 'employeeName1' },
         { label: '统一认证号2', prop: 'unifiedCertificationNumber2' },
+        { label: '员工姓名2', prop: 'employeeName2' },
         { label: '数据日期', prop: 'dataDate' },
         { label: '管户层级标识', prop: 'customerLevelIdentifier' },
         { label: '客户类别标识', prop: 'customerCategoryIdentifier' },
@@ -94,7 +97,7 @@ export default {
     async onInit () {
       this.loading = true
       try {
-        const { data } = await getCustomerProfitSharingClaim({
+        const { data } = await getProfitSharingClaim({
           ...this.pageInfo,
           ...this.searchValues
         })

+ 6 - 3
src/views/salary/claim/staff/index.vue

@@ -10,11 +10,11 @@
       :total="total"
       @page-change="onPageChange"
     >
-      <template #card-tools>
+      <!-- <template #card-tools>
         <m-button type="orange" icon="el-icon-plus" @click="onAdd">新增</m-button>
-      </template>
+      </template> -->
       <template #actions="{ row }">
-        <m-button type="primary" text @click="onEdit(row)">编辑</m-button>
+        <m-button type="primary" text @click="onEdit(row)">分润认领</m-button>
       </template>
     </m-table>
   </div>
@@ -67,8 +67,11 @@ export default {
         { label: '一级科目编码/名称', prop: 'oneLevelSubject' },
         { label: '二级科目编码/名称', prop: 'twoLevelSubject' },
         { label: '金额', prop: 'amount' },
+        { label: '机构名称', prop: 'organizationName' },
         { label: '统一认证号1', prop: 'unifiedCertificationNumber1' },
+        { label: '员工姓名1', prop: 'employeeName1' },
         { label: '统一认证号2', prop: 'unifiedCertificationNumber2' },
+        { label: '员工姓名2', prop: 'employeeName2' },
         { label: '数据日期', prop: 'dataDate' },
         { label: '管户层级标识', prop: 'customerLevelIdentifier' },
         { label: '客户类别标识', prop: 'customerCategoryIdentifier' },