|
|
@@ -1013,6 +1013,7 @@
|
|
|
}
|
|
|
}
|
|
|
return {
|
|
|
+ is_todo: '0',
|
|
|
equipmentList: [], // 企业主要设备
|
|
|
performanceList: [], // 近三年主要业绩
|
|
|
patentList: [], // 专利及专有技术
|
|
|
@@ -1343,6 +1344,9 @@
|
|
|
this.serviceId = this.$route.params.opera
|
|
|
this.AppendId = this.serviceId
|
|
|
this.editFlag = '1'
|
|
|
+ if (this.$route.query.is_todo == 1) {
|
|
|
+ this.is_todo = '1'
|
|
|
+ }
|
|
|
this.getEntityById()
|
|
|
this.getAppendApplyIsNeedPay()
|
|
|
this.dialogFormData.SupplierCertAppendId = this.AppendId
|
|
|
@@ -1567,25 +1571,25 @@
|
|
|
AuditEntity () {
|
|
|
this.auditOrgChange()
|
|
|
if (this.formData.Status === '3') {
|
|
|
- console.log('11')
|
|
|
+ // console.log('11')
|
|
|
this.dialogAllocation = true
|
|
|
} else if (this.formData.Status === '1') {
|
|
|
- console.log('22')
|
|
|
+ // console.log('22')
|
|
|
this.dialogMakeSure2 = true
|
|
|
} else if (this.formData.Status === '10') {
|
|
|
- console.log('33')
|
|
|
+ // console.log('33')
|
|
|
this.getFirAuditerByDept()
|
|
|
this.changeOrgUnit(this.selectDept)
|
|
|
this.dialogSecUnitSeparateVisible = true
|
|
|
} else {
|
|
|
- console.log('44')
|
|
|
+ // console.log('44')
|
|
|
this.dialogMakeSure = true
|
|
|
this.radioChange()
|
|
|
}
|
|
|
},
|
|
|
// 二级单位分办审批会话框 ⬇
|
|
|
secUnitSeparateAuditClick (val) {
|
|
|
- console.log('二级单位分办审批会话框')
|
|
|
+ // console.log('二级单位分办审批会话框')
|
|
|
this.auditOrgChange()
|
|
|
this.btnstatus = val
|
|
|
this.getFirAuditerByDept()
|
|
|
@@ -1594,7 +1598,7 @@
|
|
|
},
|
|
|
// 二级单位分办审批结果确认 ⬇
|
|
|
secUnitSeparateAuditMakeSure () {
|
|
|
- console.log('二级单位分办审批结果确认')
|
|
|
+ // console.log('二级单位分办审批结果确认')
|
|
|
// this.shenheForm.SuccessStatus = 1
|
|
|
let checkRes = this.secUnitSeparateAuditParamsCheck()
|
|
|
if (!checkRes) {
|
|
|
@@ -1608,17 +1612,21 @@
|
|
|
ThirdAudit: this.selectDept,
|
|
|
AuditRemark: this.shenheForm.AuditorRemark
|
|
|
}
|
|
|
- console.log('二级单位分办审批结果提交参数:', params)
|
|
|
+ // console.log('二级单位分办审批结果提交参数:', params)
|
|
|
let _this = this
|
|
|
api2.separateAuditEntity(this.AppendId, params, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
- console.log('审批提交,成功返回')
|
|
|
+ // console.log('审批提交,成功返回')
|
|
|
+ if (this.is_todo === '1') {
|
|
|
+ this.$router.push('/')
|
|
|
+ } else {
|
|
|
+ _this.getEntityById()
|
|
|
+ _this.isAccess()
|
|
|
+ }
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
|
})
|
|
|
- _this.getEntityById()
|
|
|
- _this.isAccess()
|
|
|
_this.btnloading = false
|
|
|
_this.dialogSecUnitSeparateVisible = false
|
|
|
} else {
|
|
|
@@ -1703,21 +1711,24 @@
|
|
|
SupplierId: this.formData.SupplierId
|
|
|
}
|
|
|
this.btnLoading = true
|
|
|
- console.log(params, '退回参数')
|
|
|
- console.log(this.formData.Id, 'id')
|
|
|
+ // console.log(params, '退回参数')
|
|
|
+ // console.log(this.formData.Id, 'id')
|
|
|
api2.updateIsStorage(this.formData.Id, params, this.$axios).then(res => {
|
|
|
this.dialogVisibleBack = false
|
|
|
- if (this.$refs['WfHistory']) {
|
|
|
- this.$refs['WfHistory'].getHistoryTask()
|
|
|
- }
|
|
|
if (res.data.code === 0) {
|
|
|
+ if (this.is_todo === '1') {
|
|
|
+ this.$router.push('/')
|
|
|
+ } else {
|
|
|
+ if (this.$refs['WfHistory']) {
|
|
|
+ this.$refs['WfHistory'].getHistoryTask()
|
|
|
+ this.getEntityById()
|
|
|
+ this.isAccess()
|
|
|
+ }
|
|
|
+ }
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
|
})
|
|
|
- this.getEntityById()
|
|
|
- this.isAccess()
|
|
|
- // this.$router.push('/')
|
|
|
this.btnLoading = false
|
|
|
} else {
|
|
|
this.$message({
|
|
|
@@ -1746,10 +1757,14 @@
|
|
|
let _this = this
|
|
|
api2.updateIsStorage(this.formData.Id, params, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
- _this.getEntityById()
|
|
|
- _this.isAccess()
|
|
|
- if (_this.$refs['WfHistory']) {
|
|
|
- _this.$refs['WfHistory'].getHistoryTask()
|
|
|
+ if (this.is_todo === '1') {
|
|
|
+ this.$router.push('/')
|
|
|
+ } else {
|
|
|
+ _this.getEntityById()
|
|
|
+ _this.isAccess()
|
|
|
+ if (_this.$refs['WfHistory']) {
|
|
|
+ _this.$refs['WfHistory'].getHistoryTask()
|
|
|
+ }
|
|
|
}
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
@@ -1774,13 +1789,13 @@
|
|
|
},
|
|
|
// 分办之后的各级审批 --审批 包含:二级单位初审、复审, 业务处室专业审核、企管法规处审核
|
|
|
commonAuditClick () {
|
|
|
- console.log('审批公共会话框')
|
|
|
+ // console.log('审批公共会话框')
|
|
|
this.dialogCommonAuditMakeSureVisible = true
|
|
|
this.radioChange()
|
|
|
},
|
|
|
commonAuditMakeSure () {
|
|
|
let checkRes = this.commonAuditParamsCheck()
|
|
|
- console.log('审批结果公共提交,参数检查结果', checkRes)
|
|
|
+ // console.log('审批结果公共提交,参数检查结果', checkRes)
|
|
|
if (!checkRes) {
|
|
|
return false
|
|
|
}
|
|
|
@@ -1789,18 +1804,21 @@
|
|
|
result: this.shenheForm.SuccessStatus,
|
|
|
AuditRemark: this.shenheForm.AuditorRemark
|
|
|
}
|
|
|
- console.log('审批结果提交参数:', params)
|
|
|
+ // console.log('审批结果提交参数:', params)
|
|
|
let _this = this
|
|
|
api2.commonAuditEntity(this.formData.Id, params, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
- console.log('审批提交,成功返回')
|
|
|
+ // console.log('审批提交,成功返回')
|
|
|
+ if (this.is_todo === '1') {
|
|
|
+ this.$router.push('/')
|
|
|
+ } else {
|
|
|
+ _this.getEntityById()
|
|
|
+ _this.isAccess()
|
|
|
+ }
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
|
})
|
|
|
- _this.getEntityById()
|
|
|
- _this.isAccess()
|
|
|
- // _this.$refs['WfHistory'].getHistoryTask()
|
|
|
} else {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
@@ -1889,9 +1907,9 @@
|
|
|
},
|
|
|
// 专业处室分办审批
|
|
|
businessOfficeSeparateAuditClick () {
|
|
|
- console.log('专业处室分办审批提交按钮')
|
|
|
+ // console.log('专业处室分办审批提交按钮')
|
|
|
this.auditOrgChange()
|
|
|
- console.log('请求部门结束')
|
|
|
+ // console.log('请求部门结束')
|
|
|
this.dialogBusinessOfficeSeparateAuditVisible = true
|
|
|
},
|
|
|
businessOfficeSeparateAuditMakeSure () {
|
|
|
@@ -1924,20 +1942,23 @@
|
|
|
AuditRemark: this.shenheForm.AuditorRemark
|
|
|
}
|
|
|
this.btnloading = true
|
|
|
- console.log('业务处室专业审批, 提交参数: ', params)
|
|
|
+ // console.log('业务处室专业审批, 提交参数: ', params)
|
|
|
let _this = this
|
|
|
api2.businessOfficeSeparateAuditEntity(this.formData.Id, params, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
- console.log('审批提交,成功返回')
|
|
|
+ // console.log('审批提交,成功返回')
|
|
|
+ if (this.is_todo === '1') {
|
|
|
+ this.$router.push('/')
|
|
|
+ } else {
|
|
|
+ _this.getEntityById()
|
|
|
+ _this.isAccess()
|
|
|
+ }
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
|
})
|
|
|
_this.btnloading = false
|
|
|
_this.dialogBusinessOfficeSeparateAuditVisible = false
|
|
|
- _this.getEntityById()
|
|
|
- _this.isAccess()
|
|
|
- // _this.$refs['WfHistory'].getHistoryTask()
|
|
|
} else {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
@@ -1951,12 +1972,12 @@
|
|
|
},
|
|
|
// 集中评审按钮
|
|
|
concentrateAuditClick () {
|
|
|
- console.log('集中评审按钮')
|
|
|
+ // console.log('集中评审按钮')
|
|
|
this.dialogConcentrateAuditVisible = true
|
|
|
this.radioChange()
|
|
|
},
|
|
|
concentrateAuditEntityMakeSure () {
|
|
|
- console.log('集中评审提交审核结果')
|
|
|
+ // console.log('集中评审提交审核结果')
|
|
|
let checkRes = this.concentrateAuditParamsCheck()
|
|
|
if (!checkRes) {
|
|
|
return false
|
|
|
@@ -1969,14 +1990,17 @@
|
|
|
let _this = this
|
|
|
api2.commonAuditEntity(this.formData.Id, params, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
- console.log('审批提交,成功返回')
|
|
|
+ // console.log('审批提交,成功返回')
|
|
|
+ if (this.is_todo === '1') {
|
|
|
+ this.$router.push('/')
|
|
|
+ } else {
|
|
|
+ _this.getEntityById()
|
|
|
+ _this.isAccess()
|
|
|
+ }
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
|
})
|
|
|
- _this.getEntityById()
|
|
|
- _this.isAccess()
|
|
|
- // _this.$refs['WfHistory'].getHistoryTask()
|
|
|
_this.dialogConcentrateAuditVisible = false
|
|
|
_this.btnloading = false
|
|
|
} else {
|
|
|
@@ -1991,7 +2015,7 @@
|
|
|
})
|
|
|
},
|
|
|
concentrateAuditParamsCheck () {
|
|
|
- console.log('集中评审提交参数检查')
|
|
|
+ // console.log('集中评审提交参数检查')
|
|
|
if (this.shenheForm.SuccessStatus === 1) {
|
|
|
if (this.shenheForm.AuditorRemark.trim().length < 1) {
|
|
|
this.$message({
|
|
|
@@ -2012,7 +2036,7 @@
|
|
|
return true
|
|
|
},
|
|
|
paySureClick () {
|
|
|
- console.log('交费按钮')
|
|
|
+ // console.log('交费按钮')
|
|
|
this.$confirm('是否确认交费', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
@@ -2027,16 +2051,16 @@
|
|
|
})
|
|
|
},
|
|
|
payMakeSure () {
|
|
|
- console.log('交费结果确认')
|
|
|
+ // console.log('交费结果确认')
|
|
|
this.loading = true
|
|
|
let params = {
|
|
|
payStatus: this.payStatus
|
|
|
}
|
|
|
- console.log('交费结果确认提交参数:', this.certId, this.AppendId)
|
|
|
+ // console.log('交费结果确认提交参数:', this.certId, this.AppendId)
|
|
|
let _this = this
|
|
|
api2.updatePayStatus(this.AppendId, params, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
- console.log('交费成功')
|
|
|
+ // console.log('交费成功')
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
|
@@ -2096,7 +2120,7 @@
|
|
|
params
|
|
|
})
|
|
|
.then(res => {
|
|
|
- console.log('这是', res.data.items)
|
|
|
+ // console.log('这是', res.data.items)
|
|
|
_this.subfileList1 = res.data.items
|
|
|
_this.currentItemCountProject = res.data.currentItemCount
|
|
|
for (let idx in _this.subfileList1) {
|