|
@@ -38,9 +38,9 @@
|
|
|
<el-input :disabled="true" :readonly="true" placeholder="请填写项目编号" v-model="scope.row.no"/>
|
|
|
</template>
|
|
|
</vxe-table-column>
|
|
|
- <vxe-table-column field="projectLeader" align="center" title="项目负责人" :edit-render="{}">
|
|
|
+ <vxe-table-column field="leader" align="center" title="项目负责人" :edit-render="{}">
|
|
|
<template v-slot:edit="scope">
|
|
|
- <el-input :disabled="true" placeholder="请填写项目负责人" v-model="scope.row.projectLeader"/>
|
|
|
+ <el-input :disabled="true" placeholder="请填写项目负责人" v-model="scope.row.leader"/>
|
|
|
</template>
|
|
|
</vxe-table-column>
|
|
|
<vxe-table-column field="createTime" align="center" title="创建时间" :edit-render="{}">
|
|
@@ -113,6 +113,7 @@
|
|
|
import UpLoadComponent from '@/views/common/UpLoadComponent'
|
|
|
import ProjectForm from './ProjectForm'
|
|
|
import dictService from "@/api/sys/dictService";
|
|
|
+ import CommonApi from '@/api/cw/common/CommonApi'
|
|
|
export default {
|
|
|
props: {
|
|
|
businessId: {
|
|
@@ -148,6 +149,7 @@
|
|
|
types:[], //用印类型
|
|
|
number:'', //用印份数
|
|
|
projectId:'',
|
|
|
+ procInsId: '',
|
|
|
},
|
|
|
programRow:'',
|
|
|
baseKey:'',
|
|
@@ -157,9 +159,11 @@
|
|
|
}
|
|
|
},
|
|
|
SignetService: null,
|
|
|
+ commonApi: null,
|
|
|
created () {
|
|
|
console.log('jld ')
|
|
|
this.signetService = new SignetService()
|
|
|
+ this.commonApi = new CommonApi()
|
|
|
this.getTypeList()
|
|
|
},
|
|
|
mounted () {
|
|
@@ -225,6 +229,7 @@
|
|
|
types:[], //用印类型
|
|
|
number:'', //用印份数
|
|
|
projectId:'',
|
|
|
+ procInsId: '',
|
|
|
}
|
|
|
this.typeData.forEach(option => {
|
|
|
option.disabled = false
|
|
@@ -247,6 +252,9 @@
|
|
|
if (this.commonJS.isEmpty(this.inputForm.createDate)) {
|
|
|
this.inputForm.createDate = this.moment(new Date()).format('YYYY-MM-DD')
|
|
|
}
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.projectList)) {
|
|
|
+ this.inputForm.projectList = []
|
|
|
+ }
|
|
|
if (this.status === 'audit' || this.status === 'taskFormDetail') {
|
|
|
method = 'view'
|
|
|
}
|
|
@@ -284,19 +292,22 @@
|
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
throw new Error()
|
|
|
} else {
|
|
|
- if (this.$store.state.user.name==='leader'){
|
|
|
- this.inputForm.status= '5'
|
|
|
- }else {
|
|
|
- this.inputForm.status= '2'
|
|
|
- }
|
|
|
+ this.inputForm.status= '2'
|
|
|
+ this.commonApi.getTaskNameByProcInsId(this.inputForm.procInsId).then((data)=> {
|
|
|
+ if (this.commonJS.isNotEmpty(data)) {
|
|
|
+ if (data === '总经理审核') {
|
|
|
+ this.inputForm.status = '5'
|
|
|
+ }
|
|
|
+ }
|
|
|
let param = {status: this.inputForm.status, id: this.inputForm.id}
|
|
|
- this.inputForm=JSON.stringify(this.inputForm)
|
|
|
+ this.inputForm = JSON.stringify(this.inputForm)
|
|
|
this.signetService.updateStatusById(param).then(() => {
|
|
|
callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
this.loading = false
|
|
|
}).catch(() => {
|
|
|
this.loading = false
|
|
|
})
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -431,7 +442,7 @@
|
|
|
r.projectId=item.id
|
|
|
r.name = item.name
|
|
|
r.no = item.no
|
|
|
- r.projectLeader = item.projectLeader
|
|
|
+ r.leader = item.projectLeader
|
|
|
r.createTime = item.createTime
|
|
|
console.log('2',this.inputForm.projectList[this.programRow])
|
|
|
} else {
|
|
@@ -439,7 +450,7 @@
|
|
|
projectId: item.id,
|
|
|
name: item.name,
|
|
|
no: item.no,
|
|
|
- projectLeader: item.projectLeader,
|
|
|
+ leader: item.projectLeader,
|
|
|
createTime: item.createTime,
|
|
|
}
|
|
|
this.$refs.baseTable.insertAt(r)
|