|
@@ -297,6 +297,7 @@
|
|
import UpLoadComponent from '@/views/common/UpLoadComponent'
|
|
import UpLoadComponent from '@/views/common/UpLoadComponent'
|
|
import WorkClientChooseRadio from '../workClientInfo/WorkClientChooseRadio'
|
|
import WorkClientChooseRadio from '../workClientInfo/WorkClientChooseRadio'
|
|
import userService from '@/api/sys/UserService'
|
|
import userService from '@/api/sys/UserService'
|
|
|
|
+ import CommonApi from '@/api/cw/common/CommonApi'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
props: {
|
|
props: {
|
|
@@ -373,8 +374,10 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
ProjectInfoService:null,
|
|
ProjectInfoService:null,
|
|
|
|
+ commonApi: null,
|
|
created () {
|
|
created () {
|
|
this.projectInfoService=new ProjectInfoService()
|
|
this.projectInfoService=new ProjectInfoService()
|
|
|
|
+ this.commonApi = new CommonApi()
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
bus: {
|
|
bus: {
|
|
@@ -674,20 +677,31 @@
|
|
// } else {
|
|
// } else {
|
|
this.loading = true
|
|
this.loading = true
|
|
this.inputForm.files = this.$refs.uploadComponent.getDataList()
|
|
this.inputForm.files = this.$refs.uploadComponent.getDataList()
|
|
- if (this.$store.state.user.office.name ==='总经办'){
|
|
|
|
- this.inputForm.status = '5'
|
|
|
|
- }else {
|
|
|
|
- this.inputForm.status = '2'
|
|
|
|
- //根据合同类型获取下一节点审核人
|
|
|
|
- console.log('this.inputForm.contractTypeFirstValue',this.inputForm.contractTypeFirstValue)
|
|
|
|
- if (this.inputForm.contractTypeFirstValue == '1'||this.inputForm.contractTypeFirstValue == '3'){
|
|
|
|
- const data1 = await userService.queryByName("潘文超")
|
|
|
|
- this.inputForm.assignee = data1.id
|
|
|
|
|
|
+
|
|
|
|
+ await this.commonApi.getTaskNameByProcInsId(this.inputForm.procInsId).then((data1) => {
|
|
|
|
+ console.log('data',data1)
|
|
|
|
+ if (this.commonJS.isNotEmpty(data1)) {
|
|
|
|
+ if (data1 === '分管领导审批') {
|
|
|
|
+ this.inputForm.status = '5'
|
|
}else {
|
|
}else {
|
|
- const data1 = await userService.queryByName("杨慧")
|
|
|
|
- this.inputForm.assignee = data1.id
|
|
|
|
|
|
+ this.inputForm.status = '2'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ })
|
|
|
|
+ // if (this.$store.state.user.office.name ==='总经办'){
|
|
|
|
+ // this.inputForm.status = '5'
|
|
|
|
+ // }else {
|
|
|
|
+
|
|
|
|
+ //根据合同类型获取下一节点审核人
|
|
|
|
+ // console.log('this.inputForm.contractTypeFirstValue',this.inputForm.contractTypeFirstValue)
|
|
|
|
+ // if (this.inputForm.contractTypeFirstValue == '1'||this.inputForm.contractTypeFirstValue == '3'){
|
|
|
|
+ // const data1 = await userService.queryByName("潘文超")
|
|
|
|
+ // this.inputForm.assignee = data1.id
|
|
|
|
+ // }else {
|
|
|
|
+ // const data1 = await userService.queryByName("杨慧")
|
|
|
|
+ // this.inputForm.assignee = data1.id
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
let param = {status: this.inputForm.status, id: this.inputForm.id}
|
|
let param = {status: this.inputForm.status, id: this.inputForm.id}
|
|
this.projectInfoService.updateStatusById(param).then((data) => {
|
|
this.projectInfoService.updateStatusById(param).then((data) => {
|
|
callback(data.businessTable, data.businessId, this.inputForm)
|
|
callback(data.businessTable, data.businessId, this.inputForm)
|