|
@@ -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(() => {
|