|
@@ -5,35 +5,25 @@
|
|
</div>
|
|
</div>
|
|
<y-page-list-layout :page-list="pageData" :page-para="listQuery" :get-page-list="assetsEvaluateDeclarePage">
|
|
<y-page-list-layout :page-list="pageData" :page-para="listQuery" :get-page-list="assetsEvaluateDeclarePage">
|
|
<template slot="left">
|
|
<template slot="left">
|
|
- <el-input v-model="listQuery.orderId" placeholder="订单号" clearable style="width: 200px;float: left;">
|
|
|
|
- </el-input>
|
|
|
|
- <el-input v-model="listQuery.name" placeholder="项目名称" clearable
|
|
|
|
- style="margin-left: 20px;width: 200px;float: left;">
|
|
|
|
- </el-input>
|
|
|
|
- <el-input v-model="listQuery.reportNo" placeholder="报告号" clearable
|
|
|
|
- style="margin-left: 20px;width: 200px;float: left;">
|
|
|
|
- </el-input>
|
|
|
|
- <el-select clearable v-model="listQuery.commissionRateId" placeholder="提成类型"
|
|
|
|
- style="margin-left: 20px;width: 200px;float: left;">
|
|
|
|
|
|
+ <el-input v-model="listQuery.orderId" placeholder="订单号" clearable style="width: 200px;float: left;"></el-input>
|
|
|
|
+ <el-input v-model="listQuery.name" placeholder="项目名称" clearable style="margin-left: 20px;width: 200px;float: left;"></el-input>
|
|
|
|
+ <el-input v-model="listQuery.reportNo" placeholder="报告号" clearable style="margin-left: 20px;width: 200px;float: left;"></el-input>
|
|
|
|
+ <el-select clearable v-model="listQuery.commissionRateId" placeholder="提成类型" style="margin-left: 20px;width: 200px;float: left;">
|
|
<el-option v-for="(c, id) in cates" :value="c.id" :label="c.name">{{ c.name }}</el-option>
|
|
<el-option v-for="(c, id) in cates" :value="c.id" :label="c.name">{{ c.name }}</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
<!-- <el-select clearable v-model="listQuery.declareType" placeholder="申报类型"
|
|
<!-- <el-select clearable v-model="listQuery.declareType" placeholder="申报类型"
|
|
style="margin-left: 20px;width: 200px;float: left;">
|
|
style="margin-left: 20px;width: 200px;float: left;">
|
|
<el-option :value="true" label="产品">产品</el-option>
|
|
<el-option :value="true" label="产品">产品</el-option>
|
|
<el-option :value="false" label="订单">订单</el-option>
|
|
<el-option :value="false" label="订单">订单</el-option>
|
|
- </el-select> -->
|
|
|
|
- <el-select clearable v-model="listQuery.declareResult" placeholder="审核状态"
|
|
|
|
- style="margin-left: 20px;width: 200px;float: left;">
|
|
|
|
|
|
+ </el-select>-->
|
|
|
|
+ <el-select clearable v-model="listQuery.declareResult" placeholder="审核状态" style="margin-left: 20px;width: 200px;float: left;">
|
|
<el-option value="待申报" label="待申报"></el-option>
|
|
<el-option value="待申报" label="待申报"></el-option>
|
|
<el-option value="审核中" label="审核中"></el-option>
|
|
<el-option value="审核中" label="审核中"></el-option>
|
|
<el-option value="审核通过" label="审核通过"></el-option>
|
|
<el-option value="审核通过" label="审核通过"></el-option>
|
|
<el-option value="审核拒绝" label="审核拒绝"></el-option>
|
|
<el-option value="审核拒绝" label="审核拒绝"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
- <el-button class="filter-item" style="margin-left:20px;float: left;" type="primary" @click="searchList()"
|
|
|
|
- round>搜索
|
|
|
|
- </el-button>
|
|
|
|
- <el-button class="filter-item" style="float: left;" round type="success" @click="resetSearch()">重置
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ <el-button class="filter-item" style="margin-left:20px;float: left;" type="primary" @click="searchList()" round>搜索</el-button>
|
|
|
|
+ <el-button class="filter-item" style="float: left;" round type="success" @click="resetSearch()">重置</el-button>
|
|
</template>
|
|
</template>
|
|
<parentTable :data="pageData.records" slot="table" style="width: 100%;">
|
|
<parentTable :data="pageData.records" slot="table" style="width: 100%;">
|
|
<el-table-column label="订单号" width="150" align="center">
|
|
<el-table-column label="订单号" width="150" align="center">
|
|
@@ -112,18 +102,14 @@
|
|
<el-table-column fixed="right" label="操作" align="center">
|
|
<el-table-column fixed="right" label="操作" align="center">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
<div>
|
|
<div>
|
|
- <el-button v-if="row.declareResult == null || row.declareResult == '审核拒绝'" type="text"
|
|
|
|
- size="small" @click="openAssetsAchievementRatioDialog(row)">申报</el-button>
|
|
|
|
- <el-button
|
|
|
|
- v-if="row.declareResult == '审核中' || row.declareResult == '审核通过' || row.declareResult == '审核拒绝'"
|
|
|
|
- type="text" size="small" @click="checkDetail(row.id)">查看</el-button>
|
|
|
|
|
|
+ <el-button v-if="row.declareResult == null || row.declareResult == '审核拒绝'" type="text" size="small" @click="openAssetsAchievementRatioDialog(row)">申报</el-button>
|
|
|
|
+ <el-button v-if="row.declareResult == '审核中' || row.declareResult == '审核通过' || row.declareResult == '审核拒绝'" type="text" size="small" @click="checkDetail(row.id)">查看</el-button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</parentTable>
|
|
</parentTable>
|
|
</y-page-list-layout>
|
|
</y-page-list-layout>
|
|
- <el-dialog :visible.sync="assetsAchievementRatioDialogVisible" @closed="resetBusinessPerformanceDistributionForm()"
|
|
|
|
- width="40%">
|
|
|
|
|
|
+ <el-dialog :visible.sync="assetsAchievementRatioDialogVisible" @closed="resetBusinessPerformanceDistributionForm()" width="40%">
|
|
<div v-if="businessPerformanceDistributionForm.distributionList !== null" class="createMajor-main-container">
|
|
<div v-if="businessPerformanceDistributionForm.distributionList !== null" class="createMajor-main-container">
|
|
<div class="postInfo-container">
|
|
<div class="postInfo-container">
|
|
<div>
|
|
<div>
|
|
@@ -135,56 +121,37 @@
|
|
</el-divider>
|
|
</el-divider>
|
|
</div>
|
|
</div>
|
|
<el-form :model="declareForm" ref="declareForm" :rules="rules">
|
|
<el-form :model="declareForm" ref="declareForm" :rules="rules">
|
|
- <el-form-item label="业务分类:" prop="commissionRateId" label-width="140px"
|
|
|
|
- class="postInfo-container-item">
|
|
|
|
- <el-select clearable v-model="declareForm.commissionRateId" placeholder="请选择业务分类"
|
|
|
|
- style="width: 100%;" @change="getAssetsEvaluateCateDetail()">
|
|
|
|
|
|
+ <el-form-item label="业务分类:" prop="commissionRateId" label-width="140px" class="postInfo-container-item">
|
|
|
|
+ <el-select clearable v-model="declareForm.commissionRateId" placeholder="请选择业务分类" style="width: 100%;" @change="getAssetsEvaluateCateDetail()">
|
|
<el-option v-for="(c, id) in cates" :value="c.id" :label="c.name">{{ c.name }}</el-option>
|
|
<el-option v-for="(c, id) in cates" :value="c.id" :label="c.name">{{ c.name }}</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="提成比例:" prop="ratio" label-width="140px" class="postInfo-container-item">
|
|
<el-form-item label="提成比例:" prop="ratio" label-width="140px" class="postInfo-container-item">
|
|
- <el-input v-model="declareForm.ratio" :placeholder="ratioPlaceholderData" type="number"
|
|
|
|
- :disabled="cateDetail == null || cateDetail.maxRatio == null">
|
|
|
|
- <template #suffix>
|
|
|
|
- %
|
|
|
|
- </template>
|
|
|
|
|
|
+ <el-input v-model="declareForm.ratio" :placeholder="ratioPlaceholderData" type="number" :disabled="cateDetail == null || cateDetail.maxRatio == null">
|
|
|
|
+ <template #suffix>%</template>
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<p style="color: red;">绩效比例&参与时长:</p>
|
|
<p style="color: red;">绩效比例&参与时长:</p>
|
|
- <el-row style="margin-top: 10px;margin-left: 40px;" v-for="(member, index) in assetsBusinessMembers"
|
|
|
|
- :key="index" class="row-style">
|
|
|
|
|
|
+ <el-row style="margin-top: 10px;margin-left: 40px;" v-for="(member, index) in assetsBusinessMembers" :key="index" class="row-style">
|
|
<el-col>
|
|
<el-col>
|
|
- <p style="width: 65px; display: inline-block; text-align: right;">
|
|
|
|
- {{ member.memberName }}:
|
|
|
|
- </p>
|
|
|
|
- <el-input-number
|
|
|
|
- v-model="businessPerformanceDistributionForm.distributionList[index].performanceDistribution"
|
|
|
|
- :precision="2" :step="0.1" :max="100">
|
|
|
|
- </el-input-number>
|
|
|
|
- <p style="margin-left: 5px; margin-right: 15px; display: inline-block;">
|
|
|
|
- %
|
|
|
|
- </p>
|
|
|
|
- <el-input-number
|
|
|
|
- v-model="businessPerformanceDistributionForm.distributionList[index].participationDuration"
|
|
|
|
- :step="1">
|
|
|
|
- </el-input-number>
|
|
|
|
- <p style="margin-left: 5px; display: inline-block;">
|
|
|
|
- 小时
|
|
|
|
- </p>
|
|
|
|
|
|
+ <p style="width: 65px; display: inline-block; text-align: right;">{{ member.memberName }}:</p>
|
|
|
|
+ <el-input-number v-model="businessPerformanceDistributionForm.distributionList[index].performanceDistribution" :precision="2" :step="0.1" :max="100"></el-input-number>
|
|
|
|
+ <p style="margin-left: 5px; margin-right: 15px; display: inline-block;">%</p>
|
|
|
|
+ <el-input-number v-model="businessPerformanceDistributionForm.distributionList[index].participationDuration" :step="1"></el-input-number>
|
|
|
|
+ <p style="margin-left: 5px; display: inline-block;">小时</p>
|
|
<p style="margin-left: 15px; display: inline-block;">
|
|
<p style="margin-left: 15px; display: inline-block;">
|
|
- <span v-if="member.memberType === '项目负责人'" style="color: blueviolet;">
|
|
|
|
- * {{ member.memberType }}
|
|
|
|
- </span>
|
|
|
|
- <span v-if="member.memberType === '项目参与人'">
|
|
|
|
- * {{ member.memberType }}
|
|
|
|
- </span>
|
|
|
|
- <span v-if="member.memberType === '签字师'" style="color: red;">
|
|
|
|
- * {{ member.memberType }}
|
|
|
|
- </span>
|
|
|
|
|
|
+ <span v-if="member.memberType === '项目负责人'" style="color: blueviolet;">* {{ member.memberType }}</span>
|
|
|
|
+ <span v-if="member.memberType === '项目参与人'">* {{ member.memberType }}</span>
|
|
|
|
+ <span v-if="member.memberType === '签字师'" style="color: red;">* {{ member.memberType }}</span>
|
|
</p>
|
|
</p>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
+ <el-row style="margin-top: 10px;margin-left: 40px;" class="row-style">
|
|
|
|
+ <el-col>
|
|
|
|
+ <el-button v-if="showDistributionButton" type="warning" @click="addUserDialogVisible = true, getAllUser()">添加人员</el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<span v-if="businessPerformanceDistributionForm.distributionList !== null" slot="footer" class="dialog-footer">
|
|
<span v-if="businessPerformanceDistributionForm.distributionList !== null" slot="footer" class="dialog-footer">
|
|
@@ -192,12 +159,17 @@
|
|
<el-button v-if="showDistributionButton" type="primary" @click="assetsDeclare()">提 交</el-button>
|
|
<el-button v-if="showDistributionButton" type="primary" @click="assetsDeclare()">提 交</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <el-dialog :visible.sync="addUserDialogVisible" width="350px">
|
|
|
|
+ <el-select v-model="addUser" filterable placeholder="新增人员(可搜索)" style=" width: 200px;margin-right: 10px;float: left;">
|
|
|
|
+ <el-option v-for="(u, id) in allUsers" :label="u.name" :key="u.id" :value="u"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ <el-button v-if="showDistributionButton" type="primary" @click="confirmAddUser()">确认</el-button>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import YPageListLayout from '@/components/YPageListLayout'
|
|
|
|
-import Breadcrumb from '@/components/Breadcrumb'
|
|
|
|
-
|
|
|
|
|
|
+import YPageListLayout from '@/components/YPageListLayout';
|
|
|
|
+import Breadcrumb from '@/components/Breadcrumb';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'declareAssetEvaluate',
|
|
name: 'declareAssetEvaluate',
|
|
@@ -205,40 +177,37 @@ export default {
|
|
Breadcrumb,
|
|
Breadcrumb,
|
|
YPageListLayout,
|
|
YPageListLayout,
|
|
},
|
|
},
|
|
- filters: {
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
|
|
+ filters: {},
|
|
data() {
|
|
data() {
|
|
var checkRatioValue = (rule, value, callback) => {
|
|
var checkRatioValue = (rule, value, callback) => {
|
|
if (this.cateDetail.maxRatio !== undefined && this.cateDetail.maxRatio !== null) {
|
|
if (this.cateDetail.maxRatio !== undefined && this.cateDetail.maxRatio !== null) {
|
|
if (this.declareForm.ratio >= this.cateDetail.minRatio && this.declareForm.ratio <= this.cateDetail.maxRatio) {
|
|
if (this.declareForm.ratio >= this.cateDetail.minRatio && this.declareForm.ratio <= this.cateDetail.maxRatio) {
|
|
callback();
|
|
callback();
|
|
} else {
|
|
} else {
|
|
- return callback(new Error('提成比例须在 ' + this.cateDetail.minRatio + "% - " + this.cateDetail.maxRatio + "% 之间"));
|
|
|
|
|
|
+ return callback(new Error('提成比例须在 ' + this.cateDetail.minRatio + '% - ' + this.cateDetail.maxRatio + '% 之间'));
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
callback();
|
|
callback();
|
|
}
|
|
}
|
|
};
|
|
};
|
|
return {
|
|
return {
|
|
|
|
+ allUsers: [],
|
|
rules: {
|
|
rules: {
|
|
- commissionRateId: [
|
|
|
|
- { required: true, message: '业务分类不能为空', trigger: 'blur' }
|
|
|
|
- ],
|
|
|
|
|
|
+ commissionRateId: [{ required: true, message: '业务分类不能为空', trigger: 'blur' }],
|
|
ratio: [
|
|
ratio: [
|
|
{ required: true, message: '提成比例不能为空', trigger: 'blur' },
|
|
{ required: true, message: '提成比例不能为空', trigger: 'blur' },
|
|
- { required: true, validator: checkRatioValue, trigger: 'blur' }
|
|
|
|
- ]
|
|
|
|
|
|
+ { required: true, validator: checkRatioValue, trigger: 'blur' },
|
|
|
|
+ ],
|
|
},
|
|
},
|
|
- ratioPlaceholderData: "请输入提成比例",
|
|
|
|
|
|
+ ratioPlaceholderData: '请输入提成比例',
|
|
pageData: { records: [] },
|
|
pageData: { records: [] },
|
|
listQuery: {
|
|
listQuery: {
|
|
page: 1,
|
|
page: 1,
|
|
size: 10,
|
|
size: 10,
|
|
descs: 'id',
|
|
descs: 'id',
|
|
name: null,
|
|
name: null,
|
|
- reportNo: null
|
|
|
|
- },// 项目所有参与人信息
|
|
|
|
|
|
+ reportNo: null,
|
|
|
|
+ }, // 项目所有参与人信息
|
|
assetsBusinessMembers: [],
|
|
assetsBusinessMembers: [],
|
|
cates: [],
|
|
cates: [],
|
|
cateDetail: null,
|
|
cateDetail: null,
|
|
@@ -252,7 +221,7 @@ export default {
|
|
businessType: 'COMMISSION_DECLARE_ASSET_EVALUATE',
|
|
businessType: 'COMMISSION_DECLARE_ASSET_EVALUATE',
|
|
commissionRateId: null,
|
|
commissionRateId: null,
|
|
ratio: null,
|
|
ratio: null,
|
|
- definedLowLimitAmount: null
|
|
|
|
|
|
+ definedLowLimitAmount: null,
|
|
},
|
|
},
|
|
showDistributionButton: null,
|
|
showDistributionButton: null,
|
|
assetsAchievementRatioDialogVisible: false,
|
|
assetsAchievementRatioDialogVisible: false,
|
|
@@ -262,9 +231,11 @@ export default {
|
|
businessType: null,
|
|
businessType: null,
|
|
reportNo: null,
|
|
reportNo: null,
|
|
userType: null,
|
|
userType: null,
|
|
- distributionList: []
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ distributionList: [],
|
|
|
|
+ },
|
|
|
|
+ addUserDialogVisible: false,
|
|
|
|
+ addUser: null,
|
|
|
|
+ };
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this.listQuery.name = this.$route.query.name;
|
|
this.listQuery.name = this.$route.query.name;
|
|
@@ -281,30 +252,30 @@ export default {
|
|
size: 10,
|
|
size: 10,
|
|
descs: 'id',
|
|
descs: 'id',
|
|
name: null,
|
|
name: null,
|
|
- reportNo: null
|
|
|
|
- }
|
|
|
|
- this.assetsEvaluateDeclarePage()
|
|
|
|
|
|
+ reportNo: null,
|
|
|
|
+ };
|
|
|
|
+ this.assetsEvaluateDeclarePage();
|
|
},
|
|
},
|
|
searchList() {
|
|
searchList() {
|
|
this.listQuery.current = 1;
|
|
this.listQuery.current = 1;
|
|
this.assetsEvaluateDeclarePage();
|
|
this.assetsEvaluateDeclarePage();
|
|
},
|
|
},
|
|
assetsEvaluateDeclarePage() {
|
|
assetsEvaluateDeclarePage() {
|
|
- this.$api.commissonDeclare.assetsEvaluateDeclarePage(this.listQuery).then(res => {
|
|
|
|
|
|
+ this.$api.commissonDeclare.assetsEvaluateDeclarePage(this.listQuery).then((res) => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
this.pageData = res.data;
|
|
this.pageData = res.data;
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ });
|
|
},
|
|
},
|
|
getAssetsEvaluateCate() {
|
|
getAssetsEvaluateCate() {
|
|
- this.$api.businessCommissionRate.cateList("ASSET_BUSINESS", "EVALUATOR").then(res => {
|
|
|
|
|
|
+ this.$api.businessCommissionRate.cateList('ASSET_BUSINESS', 'EVALUATOR').then((res) => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
this.cates = res.data;
|
|
this.cates = res.data;
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ });
|
|
},
|
|
},
|
|
getAssetsEvaluateCateDetail() {
|
|
getAssetsEvaluateCateDetail() {
|
|
- this.$api.businessCommissionRate.detail(this.declareForm.commissionRateId).then(res => {
|
|
|
|
|
|
+ this.$api.businessCommissionRate.detail(this.declareForm.commissionRateId).then((res) => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
this.cateDetail = res.data;
|
|
this.cateDetail = res.data;
|
|
this.declareForm.definedLowLimitAmount = this.cateDetail.lowLimitAmount;
|
|
this.declareForm.definedLowLimitAmount = this.cateDetail.lowLimitAmount;
|
|
@@ -312,13 +283,15 @@ export default {
|
|
this.declareForm.ratio = this.cateDetail.minRatio;
|
|
this.declareForm.ratio = this.cateDetail.minRatio;
|
|
} else {
|
|
} else {
|
|
this.declareForm.ratio = null;
|
|
this.declareForm.ratio = null;
|
|
- this.ratioPlaceholderData = "请输入提成比例 " + this.cateDetail.minRatio + "%" + " - " + this.cateDetail.maxRatio + "%";
|
|
|
|
|
|
+ this.ratioPlaceholderData = '请输入提成比例 ' + this.cateDetail.minRatio + '%' + ' - ' + this.cateDetail.maxRatio + '%';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ });
|
|
},
|
|
},
|
|
checkDetail(id) {
|
|
checkDetail(id) {
|
|
- this.$router.push(`/income/assets/declare/detail?businessId=${id}&businessType=COMMISSION_DECLARE_ASSET_EVALUATE&doWorkflow=${false}&back=${'/income/assets/declare/evaluate'}&couldEdit=${false}`)
|
|
|
|
|
|
+ this.$router.push(
|
|
|
|
+ `/income/assets/declare/detail?businessId=${id}&businessType=COMMISSION_DECLARE_ASSET_EVALUATE&doWorkflow=${false}&back=${'/income/assets/declare/evaluate'}&couldEdit=${false}`
|
|
|
|
+ );
|
|
},
|
|
},
|
|
// 打开绩效比例分配弹窗
|
|
// 打开绩效比例分配弹窗
|
|
openAssetsAchievementRatioDialog(row) {
|
|
openAssetsAchievementRatioDialog(row) {
|
|
@@ -339,7 +312,7 @@ export default {
|
|
this.businessPerformanceDistributionForm.userType = '评估人员';
|
|
this.businessPerformanceDistributionForm.userType = '评估人员';
|
|
let selectDTO = this.businessPerformanceDistributionForm;
|
|
let selectDTO = this.businessPerformanceDistributionForm;
|
|
selectDTO.distributionList = null;
|
|
selectDTO.distributionList = null;
|
|
- this.$api.businessPerformanceDistribution.getPerformanceDistributionList(this.businessPerformanceDistributionForm).then(res => {
|
|
|
|
|
|
+ this.$api.businessPerformanceDistribution.getPerformanceDistributionList(this.businessPerformanceDistributionForm).then((res) => {
|
|
if (res.code === 200 && res.data !== null && res.data.length > 0) {
|
|
if (res.code === 200 && res.data !== null && res.data.length > 0) {
|
|
this.businessPerformanceDistributionForm.distributionList = res.data;
|
|
this.businessPerformanceDistributionForm.distributionList = res.data;
|
|
this.getAssetsBusinessMembers(false, row);
|
|
this.getAssetsBusinessMembers(false, row);
|
|
@@ -348,29 +321,34 @@ export default {
|
|
this.showDistributionButton = true;
|
|
this.showDistributionButton = true;
|
|
this.getAssetsBusinessMembers(true, row);
|
|
this.getAssetsBusinessMembers(true, row);
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ });
|
|
},
|
|
},
|
|
// 获取项目参与人信息
|
|
// 获取项目参与人信息
|
|
getAssetsBusinessMembers(state, row) {
|
|
getAssetsBusinessMembers(state, row) {
|
|
let assetsBusinessMembersDTO = { businessId: null, reportNo: null };
|
|
let assetsBusinessMembersDTO = { businessId: null, reportNo: null };
|
|
assetsBusinessMembersDTO.businessId = row.businessId;
|
|
assetsBusinessMembersDTO.businessId = row.businessId;
|
|
assetsBusinessMembersDTO.reportNo = row.reportNo;
|
|
assetsBusinessMembersDTO.reportNo = row.reportNo;
|
|
- this.$api.assets.getAssetsBusinessMembers(assetsBusinessMembersDTO).then(res => {
|
|
|
|
|
|
+ this.$api.assets.getAssetsBusinessMembers(assetsBusinessMembersDTO).then((res) => {
|
|
// 返回不为空,且没有绩效分配信息
|
|
// 返回不为空,且没有绩效分配信息
|
|
if (res.code === 200 && res.data !== null) {
|
|
if (res.code === 200 && res.data !== null) {
|
|
this.assetsBusinessMembers = res.data;
|
|
this.assetsBusinessMembers = res.data;
|
|
if (state) {
|
|
if (state) {
|
|
this.businessPerformanceDistributionForm.distributionList = [];
|
|
this.businessPerformanceDistributionForm.distributionList = [];
|
|
for (let i = 0; i < this.assetsBusinessMembers.length; i++) {
|
|
for (let i = 0; i < this.assetsBusinessMembers.length; i++) {
|
|
- let memberInfo = { memberId: this.assetsBusinessMembers[i].memberId, performanceDistribution: 0, participationDuration: 0, memberType: this.assetsBusinessMembers[i].memberType }
|
|
|
|
|
|
+ let memberInfo = {
|
|
|
|
+ memberId: this.assetsBusinessMembers[i].memberId,
|
|
|
|
+ performanceDistribution: 0,
|
|
|
|
+ participationDuration: 0,
|
|
|
|
+ memberType: this.assetsBusinessMembers[i].memberType,
|
|
|
|
+ };
|
|
if (memberInfo.memberType === '签字师') {
|
|
if (memberInfo.memberType === '签字师') {
|
|
memberInfo.performanceDistribution = 8;
|
|
memberInfo.performanceDistribution = 8;
|
|
}
|
|
}
|
|
- this.businessPerformanceDistributionForm.distributionList.push(memberInfo)
|
|
|
|
|
|
+ this.businessPerformanceDistributionForm.distributionList.push(memberInfo);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ });
|
|
},
|
|
},
|
|
// 重置绩效分配表单
|
|
// 重置绩效分配表单
|
|
resetBusinessPerformanceDistributionForm() {
|
|
resetBusinessPerformanceDistributionForm() {
|
|
@@ -381,20 +359,20 @@ export default {
|
|
},
|
|
},
|
|
// 新增评估人员绩效申报
|
|
// 新增评估人员绩效申报
|
|
assetsDeclare() {
|
|
assetsDeclare() {
|
|
- this.$refs.declareForm.validate(valid => {
|
|
|
|
|
|
+ this.$refs.declareForm.validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
const sum = this.businessPerformanceDistributionForm.distributionList.reduce((accumulator, obj) => {
|
|
const sum = this.businessPerformanceDistributionForm.distributionList.reduce((accumulator, obj) => {
|
|
return accumulator + obj.performanceDistribution;
|
|
return accumulator + obj.performanceDistribution;
|
|
}, 0);
|
|
}, 0);
|
|
if (sum === 100) {
|
|
if (sum === 100) {
|
|
this.declareForm.distributionDto = this.businessPerformanceDistributionForm;
|
|
this.declareForm.distributionDto = this.businessPerformanceDistributionForm;
|
|
- this.$api.commissonDeclare.assetsDeclare(this.declareForm).then(res => {
|
|
|
|
|
|
+ this.$api.commissonDeclare.assetsDeclare(this.declareForm).then((res) => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
this.$notify({
|
|
this.$notify({
|
|
title: '成功',
|
|
title: '成功',
|
|
message: '提成申报已提交',
|
|
message: '提成申报已提交',
|
|
type: 'success',
|
|
type: 'success',
|
|
- duration: 2000
|
|
|
|
|
|
+ duration: 2000,
|
|
});
|
|
});
|
|
this.resetBusinessPerformanceDistributionForm();
|
|
this.resetBusinessPerformanceDistributionForm();
|
|
this.assetsEvaluateDeclarePage();
|
|
this.assetsEvaluateDeclarePage();
|
|
@@ -404,24 +382,45 @@ export default {
|
|
title: '失败',
|
|
title: '失败',
|
|
message: '提成申报提交失败,请联系管理员',
|
|
message: '提成申报提交失败,请联系管理员',
|
|
type: 'error',
|
|
type: 'error',
|
|
- duration: 2000
|
|
|
|
|
|
+ duration: 2000,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ });
|
|
} else {
|
|
} else {
|
|
this.$notify({
|
|
this.$notify({
|
|
title: '警告',
|
|
title: '警告',
|
|
message: '所有人员分配的绩效之和必须等于100%!',
|
|
message: '所有人员分配的绩效之和必须等于100%!',
|
|
type: 'error',
|
|
type: 'error',
|
|
- duration: 3000
|
|
|
|
|
|
+ duration: 3000,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- })
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-}
|
|
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ // 获取用户下拉列表
|
|
|
|
+ getAllUser() {
|
|
|
|
+ this.$api.user.simpleAll().then((res) => {
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
+ this.allUsers = res.data;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ // 确认添加项目参与人
|
|
|
|
+ confirmAddUser() {
|
|
|
|
+ let memberInfo = {
|
|
|
|
+ memberId: this.addUser.id,
|
|
|
|
+ performanceDistribution: 0,
|
|
|
|
+ participationDuration: 0,
|
|
|
|
+ memberType: '项目参与人',
|
|
|
|
+ memberName: this.addUser.name
|
|
|
|
+ };
|
|
|
|
+ this.businessPerformanceDistributionForm.distributionList.push(memberInfo);
|
|
|
|
+ this.assetsBusinessMembers.push(memberInfo);
|
|
|
|
+ this.addUser = null;
|
|
|
|
+ this.addUserDialogVisible = false;
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+};
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
/deep/.doWarehouseClass {
|
|
/deep/.doWarehouseClass {
|
|
@@ -431,7 +430,7 @@ export default {
|
|
.real-amount {
|
|
.real-amount {
|
|
/deep/ .el-form-item__label {
|
|
/deep/ .el-form-item__label {
|
|
color: red;
|
|
color: red;
|
|
- font-weight: bold
|
|
|
|
|
|
+ font-weight: bold;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|