|
@@ -242,6 +242,7 @@ export default {
|
|
|
formLabelWidth: '110px',
|
|
formLabelWidth: '110px',
|
|
|
readonly: true,
|
|
readonly: true,
|
|
|
instid:'',
|
|
instid:'',
|
|
|
|
|
+ currentName: '',//当前流程节点名称
|
|
|
configData: { methodName: '' },
|
|
configData: { methodName: '' },
|
|
|
formId: this.params.attrs.id,
|
|
formId: this.params.attrs.id,
|
|
|
form: {
|
|
form: {
|
|
@@ -420,6 +421,11 @@ export default {
|
|
|
this.form = Object.assign(this.form, data)
|
|
this.form = Object.assign(this.form, data)
|
|
|
this.getConfigData(this.form)
|
|
this.getConfigData(this.form)
|
|
|
this.instid = await this.fetchInstanceId(data.id);
|
|
this.instid = await this.fetchInstanceId(data.id);
|
|
|
|
|
+ this.currentName = await this.fetchTaskId(this.instid)
|
|
|
|
|
+ //根据流程节点判断是否可编辑
|
|
|
|
|
+ if (this.currentName === '编制') {
|
|
|
|
|
+ this.readonly = false
|
|
|
|
|
+ }
|
|
|
this.loadCompleted = true
|
|
this.loadCompleted = true
|
|
|
console.log('流程id',this.instid )
|
|
console.log('流程id',this.instid )
|
|
|
})
|
|
})
|
|
@@ -434,6 +440,13 @@ export default {
|
|
|
});
|
|
});
|
|
|
return instres.variables.data[0]?.id_ || '';
|
|
return instres.variables.data[0]?.id_ || '';
|
|
|
},
|
|
},
|
|
|
|
|
+ async fetchTaskId(instid) {//获取当前task信息
|
|
|
|
|
+ const taskres = await this.$common.request('query', {
|
|
|
|
|
+ key: 'xnyzcxlcid',
|
|
|
|
|
+ params: [instid]
|
|
|
|
|
+ });
|
|
|
|
|
+ return taskres.variables.data[0]?.NAME_ || ''
|
|
|
|
|
+ },
|
|
|
getConfigData({ zhiBiaoId,fangFaId }) {
|
|
getConfigData({ zhiBiaoId,fangFaId }) {
|
|
|
getConfigDetail({ id: zhiBiaoId }).then((res) => {
|
|
getConfigDetail({ id: zhiBiaoId }).then((res) => {
|
|
|
const {
|
|
const {
|