Parcourir la source

客户分润认领:月份参数

Xiao_123 il y a 4 mois
Parent
commit
00a0008cd5

+ 0 - 31
src/views/salary/claim/components/form.vue

@@ -83,11 +83,7 @@ export default {
           handles: {
             change: (v) => {
               const nodes = this.$refs.form.$refs.organizationNo.getCheckedNodes()
-              // console.log(nodes, '选中nodes')
-              // console.log(nodes[0].data.organizationNo, '选中机构编码')
               this.getEmpData(nodes[0]?.data?.organizationNo, nodes[0]?.data?.organizationCategory)
-              // this.formValues.organizationNo = nodes[0].data.organizationNo
-              // this.formValues.organizationName = nodes[0].data.organizationName
             }
           }
         },
@@ -106,13 +102,6 @@ export default {
             loading: this.filterLoading,
             items: this.empList
           },
-          // handles: {
-          //   change: (v) => {
-          //     const item = this.items.find(e => e.personnelCode === v)
-          //     this.formValues.employeeName = item.employeeName
-          //     this.formValues.employeeCode = item.personnelCode
-          //   }
-          // },
           rules: [
             { required: true, message: '请选择分润员工', trigger: 'change' }
           ]
@@ -131,7 +120,6 @@ export default {
             { required: true, message: '请输入分润比例', trigger: 'blur' }
           ]
         }
-        // employeeProfitSharingRatio
       ]
     }
   },
@@ -159,29 +147,10 @@ export default {
       }
     },
     async open (item) {
-      // console.log(item, '分润认领')
       this.loading = true
       this.itemData = item || {}
       if (item?.employeeProfitSharingRatio) this.itemData.ratioShow = item.employeeProfitSharingRatio * 100
       this.$refs.dialog.open()
-      // if (!item) {
-      //   this.itemData = {}
-      //   this.formValues = {
-      //     employeeCode: null,
-      //     employeeName: null,
-      //     organizationNo: null,
-      //     organizationName: null
-      //   }
-      // } else {
-      //   await this.remoteMethod(item.employeeName)
-      //   this.itemData = item
-      //   this.formValues = {
-      //     employeeCode: item.employeeCode,
-      //     organizationName: item.organizationName,
-      //     organizationNo: item.organizationNo,
-      //     employeeName: item.employeeName
-      //   }
-      // }
       this.formValues.serialNumber = item.serialNumber
       this.formValues.customerId = item.customerId
       this.$nextTick(() => {

+ 15 - 1
src/views/salary/claim/sharingClaim/index.vue

@@ -20,6 +20,7 @@
 </template>
 
 <script>
+import { dateFormat } from '@/utils/date'
 import { getCustomerProfitSharingClaim } from '@/api/salary'
 import ClaimForm from '../components/form.vue'
 export default {
@@ -30,6 +31,18 @@ export default {
   data () {
     return {
       searchItems: [
+        {
+          label: '月份',
+          prop: 'month',
+          type: 'datePicker',
+          options: {
+            clearable: false,
+            type: 'month',
+            format: 'yyyy-MM',
+            valueFormat: 'yyyy-MM',
+            placeholder: '选择查询月份'
+          }
+        },
         {
           label: '客户编号',
           prop: 'customerId',
@@ -49,7 +62,8 @@ export default {
       ],
       searchValues: {
         subjectName: null,
-        customerId: null
+        customerId: null,
+        month: dateFormat('YYYY-mm', new Date())
       },
       headers: [
         { label: '客户编号', prop: 'customerId' },

+ 15 - 1
src/views/salary/claim/staff/index.vue

@@ -21,12 +21,25 @@
 </template>
 
 <script>
+import { dateFormat } from '@/utils/date'
 import { getCustomerProfitSharingClaim } from '@/api/salary'
 export default {
   name: 'salaryClaimStaff',
   data () {
     return {
       searchItems: [
+        {
+          label: '月份',
+          prop: 'month',
+          type: 'datePicker',
+          options: {
+            clearable: false,
+            type: 'month',
+            format: 'yyyy-MM',
+            valueFormat: 'yyyy-MM',
+            placeholder: '选择查询月份'
+          }
+        },
         {
           label: '客户编号',
           prop: 'customerId',
@@ -46,7 +59,8 @@ export default {
       ],
       searchValues: {
         subjectName: null,
-        customerId: null
+        customerId: null,
+        month: dateFormat('YYYY-mm', new Date())
       },
       headers: [
         { label: '客户编号', prop: 'customerId' },