|
@@ -9,7 +9,11 @@
|
|
|
|
|
|
<script>
|
|
|
import { mapGetters } from 'vuex'
|
|
|
-import { getCustomerProfitSharingClaimAdd } from '@/api/salary'
|
|
|
+import {
|
|
|
+ getCustomerProfitSharingClaimDeptAdd,
|
|
|
+ getCustomerProfitSharingClaimStaffAdd,
|
|
|
+ getCustomerProfitSharingClaimAdd
|
|
|
+} from '@/api/salary'
|
|
|
import { getRosterList } from '@/api/system'
|
|
|
export default {
|
|
|
name: 'ClaimForm',
|
|
@@ -165,7 +169,8 @@ export default {
|
|
|
}
|
|
|
this.loading = true
|
|
|
try {
|
|
|
- await getCustomerProfitSharingClaimAdd({
|
|
|
+ const api = this.itemData?.isDept ? getCustomerProfitSharingClaimDeptAdd : this.staff ? getCustomerProfitSharingClaimStaffAdd : getCustomerProfitSharingClaimAdd
|
|
|
+ await api({
|
|
|
...this.formValues,
|
|
|
employeeProfitSharingRatio: this.formValues.employeeProfitSharingRatio / 100
|
|
|
})
|