|
@@ -63,7 +63,7 @@
|
|
|
v-if="declareForm.businessType === 'COMMISSION_DECLARE_ASSET_EVALUATE'">
|
|
|
<el-form-item label="提成比例:" prop="ratio" label-width="140px" class="postInfo-container-item">
|
|
|
<el-input v-model="declareForm.ratio" type="number"
|
|
|
- :disabled="declareForm.businessType !== 'COMMISSION_DECLARE_ASSET_EVALUATE' || nodeBusinessInfo.nodeCode !== 'DEPARTMENT_LEADER_CHECK'">
|
|
|
+ :disabled="declareForm.businessType !== 'COMMISSION_DECLARE_ASSET_EVALUATE' || nodeBusinessInfo.nodeCode !== 'DEPARTMENT_LEADER_CHECK' || !couldEdit">
|
|
|
<template #suffix>
|
|
|
%
|
|
|
</template>
|
|
@@ -74,7 +74,7 @@
|
|
|
v-if="declareForm.businessType === 'COMMISSION_DECLARE_ASSET_EVALUATE'">
|
|
|
<el-form-item label="提成下限:" prop="definedLowLimitAmount" label-width="180px" class="postInfo-container-item">
|
|
|
<el-input v-model="declareForm.definedLowLimitAmount" type="number"
|
|
|
- :disabled="declareForm.businessType !== 'COMMISSION_DECLARE_ASSET_EVALUATE' || nodeBusinessInfo.nodeCode !== 'DEPARTMENT_LEADER_CHECK'">
|
|
|
+ :disabled="declareForm.businessType !== 'COMMISSION_DECLARE_ASSET_EVALUATE' || nodeBusinessInfo.nodeCode !== 'DEPARTMENT_LEADER_CHECK' || !couldEdit">
|
|
|
<template #suffix>
|
|
|
元
|
|
|
</template>
|
|
@@ -108,7 +108,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="12" :span="6"
|
|
|
- v-if="declareForm.businessType === 'COMMISSION_DECLARE_ASSET_EVALUATE' && nodeBusinessInfo.nodeCode === 'DEPARTMENT_LEADER_CHECK'">
|
|
|
+ v-if="declareForm.businessType === 'COMMISSION_DECLARE_ASSET_EVALUATE' && nodeBusinessInfo.nodeCode === 'DEPARTMENT_LEADER_CHECK' && couldEdit">
|
|
|
<el-button @click="updateAssetsCommissionDeclare()" style="margin-left: 30px;" type="danger" round>
|
|
|
修改提成比例与下限
|
|
|
</el-button>
|
|
@@ -173,6 +173,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
activeNames: ['board'],
|
|
|
+ couldEdit: true,
|
|
|
nodeBusinessInfo: {
|
|
|
currentNodePermission: {
|
|
|
commit: true,
|
|
@@ -211,10 +212,27 @@ export default {
|
|
|
|
|
|
},
|
|
|
users: [],
|
|
|
- cates: []
|
|
|
+ cates: [],
|
|
|
+ currentNode: {
|
|
|
+ flowId: null,
|
|
|
+ pnodeId: null,
|
|
|
+ nodeId: null,
|
|
|
+ flowCode: null,
|
|
|
+ nodeName: "",
|
|
|
+ nodeCode: null,
|
|
|
+ state: "",
|
|
|
+ instanceId: null,
|
|
|
+ sequence: null,
|
|
|
+ restartable: null,
|
|
|
+ reversible: null,
|
|
|
+ skippable: null,
|
|
|
+ terminable: null,
|
|
|
+ tasks: []
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ this.couldEdit = this.$route.query.couldEdit === 'true';
|
|
|
this.nodeBusinessInfo.businessId = this.$route.query.businessId;
|
|
|
this.nodeBusinessInfo.mainBusiness = this.$route.query.businessType;
|
|
|
this.declareForm.businessType = this.$route.query.businessType;
|
|
@@ -224,7 +242,6 @@ export default {
|
|
|
this.getDeclareDetail();
|
|
|
},
|
|
|
methods: {
|
|
|
-
|
|
|
getCurrentNodeInfo() {
|
|
|
if (this.nodeBusinessInfo.businessId) {
|
|
|
this.$api.workNodeInstance.currentNode({
|
|
@@ -232,6 +249,7 @@ export default {
|
|
|
"businessId": this.nodeBusinessInfo.businessId
|
|
|
}).then(res => {
|
|
|
if (res.code === 200 && res.data != null) {
|
|
|
+ this.currentNode = res.data;
|
|
|
this.nodeBusinessInfo.currentInstanceNodeId = res.data.instanceId;
|
|
|
this.nodeBusinessInfo.nodeCode = res.data.nodeCode;
|
|
|
}
|
|
@@ -269,6 +287,7 @@ export default {
|
|
|
declareDTO.id = this.businessId;
|
|
|
declareDTO.ratio = this.declareForm.ratio;
|
|
|
declareDTO.definedLowLimitAmount = this.declareForm.definedLowLimitAmount;
|
|
|
+ declareDTO.recordId = this.currentNode.tasks[0].recordId;
|
|
|
this.$api.commissonDeclare.updateAssetsCommissionDeclare(declareDTO).then(res => {
|
|
|
if (res.code === 200 && res.data) {
|
|
|
this.$notify({
|