|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<m-dialog title="分润认领" ref="dialog" @sure="onSure">
|
|
|
<m-divider content-position="left">基准分润</m-divider>
|
|
|
- <m-form :items="showItemForm" v-model="itemData" v-loading="loading"></m-form>
|
|
|
+ <m-form :items="showItemForm" v-model="itemData"></m-form>
|
|
|
<m-divider content-position="left">新增分润认领</m-divider>
|
|
|
<m-form ref="form" :items="formItems" v-model="formValues" v-loading="loading"></m-form>
|
|
|
</m-dialog>
|
|
@@ -17,6 +17,12 @@ import {
|
|
|
import { getRosterList } from '@/api/system'
|
|
|
export default {
|
|
|
name: 'ClaimForm',
|
|
|
+ props: {
|
|
|
+ staff: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false
|
|
|
+ }
|
|
|
+ },
|
|
|
data () {
|
|
|
return {
|
|
|
formValues: {
|
|
@@ -154,9 +160,15 @@ export default {
|
|
|
this.loading = true
|
|
|
this.itemData = item || {}
|
|
|
if (item?.employeeProfitSharingRatio) this.itemData.ratioShow = item.employeeProfitSharingRatio * 100
|
|
|
+ this.formValues = {
|
|
|
+ serialNumber: item.serialNumber,
|
|
|
+ customerId: item.customerId,
|
|
|
+ organizationNo: null,
|
|
|
+ unifiedCertificationNumber: null,
|
|
|
+ employeeProfitSharingRatio: null
|
|
|
+ }
|
|
|
this.$refs.dialog.open()
|
|
|
- this.formValues.serialNumber = item.serialNumber
|
|
|
- this.formValues.customerId = item.customerId
|
|
|
+
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.form.clearValidate()
|
|
|
this.loading = false
|