|
@@ -16,18 +16,24 @@
|
|
|
@click="exportExcel">导出</el-button>
|
|
@click="exportExcel">导出</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status=='7'&&auditBtn"
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status=='7'&&auditBtn"
|
|
|
@click="commonAuditClick(7)">企管法规处审批</el-button>
|
|
@click="commonAuditClick(7)">企管法规处审批</el-button>
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status=='4'&&auditBtn"
|
|
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status=='4'&&auditBtn && formData.IsBusiness != 1"
|
|
|
@click="commonAuditClick(4)">专业处室审核</el-button>
|
|
@click="commonAuditClick(4)">专业处室审核</el-button>
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status=='3'&&auditBtn"
|
|
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status=='3'&&auditBtn && formData.IsBusiness != 1"
|
|
|
@click="commonAuditClick(3)">专业处室分办</el-button>
|
|
@click="commonAuditClick(3)">专业处室分办</el-button>
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status=='2'&&auditBtn"
|
|
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status=='2'&&auditBtn && formData.IsBusiness != 1"
|
|
|
@click="commonAuditClick(2)">复审</el-button>
|
|
@click="commonAuditClick(2)">复审</el-button>
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status=='1'&&auditBtn"
|
|
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status=='1'&&auditBtn && formData.IsBusiness != 1"
|
|
|
@click="commonAuditClick(1)">初审</el-button>
|
|
@click="commonAuditClick(1)">初审</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px"
|
|
<el-button type="primary" size="mini" style="margin-left: 8px"
|
|
|
- v-if="Number(formData.Status)<=0&&formData.Id!=0&&checkBUtton"
|
|
|
|
|
|
|
+ v-if="Number(formData.Status)<=0&&formData.Id!=0&&checkBUtton && formData.IsBusiness != 1"
|
|
|
@click="commonAuditClick(0)">提交审核</el-button>
|
|
@click="commonAuditClick(0)">提交审核</el-button>
|
|
|
|
|
|
|
|
|
|
+ <!--业务处室分办发起-->
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px"
|
|
|
|
|
+ v-if="Number(formData.Status) <= 0 && formData.Id != 0 && checkBtnForBus"
|
|
|
|
|
+ @click="commonAuditClick(301)">处室提交审核</el-button> <!-- 业务处室分办为3 -->
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status == '4' && auditBtn && formData.IsBusiness == 1"
|
|
|
|
|
+ @click="commonAuditClick(401)">专业处室审核</el-button>
|
|
|
<!-- <el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick(7)">企管法规处</el-button>
|
|
<!-- <el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick(7)">企管法规处</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick(4)">专业处室审核</el-button>
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick(4)">专业处室审核</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick(3)">专业科室接收</el-button>
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick(3)">专业科室接收</el-button>
|
|
@@ -35,8 +41,11 @@
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick(1)">提交审核</el-button> -->
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick(1)">提交审核</el-button> -->
|
|
|
|
|
|
|
|
<el-button type="primary" size="mini"
|
|
<el-button type="primary" size="mini"
|
|
|
- v-if="(Number(formData.Status) <= 0 && saveButton) || (formData.Status == '4' && auditBtn) || (formData.Status == '7' && auditBtn)"
|
|
|
|
|
- @click="onSeaveBigAdd">保存</el-button>
|
|
|
|
|
|
|
+ v-if="((Number(formData.Status) <= 0 && saveButton) || (formData.Status == '4' && auditBtn) || (formData.Status == '7' && auditBtn)) && formData.IsBusiness != 1"
|
|
|
|
|
+ @click="onSeaveBigAdd(1)">保存</el-button>
|
|
|
|
|
+ <el-button type="primary" size="mini"
|
|
|
|
|
+ v-if="(Number(formData.Status) <=0 && saveButtonForBusiness) || (formData.Status == '7' && saveButtonForBusiness) && formData.IsBusiness == 1"
|
|
|
|
|
+ @click="onSaveEvaByBusiness(1)">保存</el-button> <!-- 处室保存 -->
|
|
|
<el-button @click="onBack" type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
<el-button @click="onBack" type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
@@ -116,21 +125,22 @@
|
|
|
<el-tab-pane label="业绩评价" name="2">
|
|
<el-tab-pane label="业绩评价" name="2">
|
|
|
<evaluation-list ref="evaluation_list_one" :evaluateId="formData.Id" category="0" v-if="contractData.ContractClass"
|
|
<evaluation-list ref="evaluation_list_one" :evaluateId="formData.Id" category="0" v-if="contractData.ContractClass"
|
|
|
:ContractClass="contractData.ContractClass"
|
|
:ContractClass="contractData.ContractClass"
|
|
|
|
|
+ :isBusiness="isBusiness"
|
|
|
:disabledForm="auditBtnBoolean"></evaluation-list>
|
|
:disabledForm="auditBtnBoolean"></evaluation-list>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
<!-- v-if="formData.Status=='4'||Number(formData.Status)>4" -->
|
|
<!-- v-if="formData.Status=='4'||Number(formData.Status)>4" -->
|
|
|
<el-tab-pane label="基本条件评价" name="4" v-if="contractData.ContractClass=='02'">
|
|
<el-tab-pane label="基本条件评价" name="4" v-if="contractData.ContractClass=='02'">
|
|
|
<base-list ref="evaluation_listType_one" :evaluateId="formData.Id" category="0"
|
|
<base-list ref="evaluation_listType_one" :evaluateId="formData.Id" category="0"
|
|
|
- :ContractClass="contractData.ContractClass" :disabledForm="auditBtnBoolean"></base-list>
|
|
|
|
|
|
|
+ :ContractClass="contractData.ContractClass" :isBusiness="isBusiness" :disabledForm="auditBtnBoolean"></base-list>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="专业处室业绩评价" name="3"
|
|
<el-tab-pane label="专业处室业绩评价" name="3"
|
|
|
- v-if="departmentBoolean||Number(formData.Status)>4||Number(formData.Status)<=-4">
|
|
|
|
|
|
|
+ v-if="(departmentBoolean||Number(formData.Status)>4||Number(formData.Status)<=-4) && formData.IsBusiness != 1">
|
|
|
<evaluation-list ref="evaluation_list_two" :evaluateId="formData.Id" category="1" v-if="contractData.ContractClass"
|
|
<evaluation-list ref="evaluation_list_two" :evaluateId="formData.Id" category="1" v-if="contractData.ContractClass"
|
|
|
:ContractClass="contractData.ContractClass"
|
|
:ContractClass="contractData.ContractClass"
|
|
|
:disabledForm="auditBtnBooleanZhuan"></evaluation-list>
|
|
:disabledForm="auditBtnBooleanZhuan"></evaluation-list>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
<el-tab-pane
|
|
<el-tab-pane
|
|
|
- v-if="(departmentBoolean||Number(formData.Status)>4||Number(formData.Status)<=-4)&&contractData.ContractClass=='02'"
|
|
|
|
|
|
|
+ v-if="(departmentBoolean||Number(formData.Status)>4||Number(formData.Status)<=-4)&&contractData.ContractClass=='02' && formData.IsBusiness != 1"
|
|
|
label="专业处室基本条件评价" name="5">
|
|
label="专业处室基本条件评价" name="5">
|
|
|
<base-list ref="evaluation_listType_two" :evaluateId="formData.Id" category="1"
|
|
<base-list ref="evaluation_listType_two" :evaluateId="formData.Id" category="1"
|
|
|
:ContractClass="contractData.ContractClass" :disabledForm="auditBtnBooleanZhuan"></base-list>
|
|
:ContractClass="contractData.ContractClass" :disabledForm="auditBtnBooleanZhuan"></base-list>
|
|
@@ -188,8 +198,9 @@ export default {
|
|
|
|
|
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ isBusiness: 0,
|
|
|
IsFinal: 0,
|
|
IsFinal: 0,
|
|
|
-
|
|
|
|
|
|
|
+ checkBtnForBus: false, // 业务处室分办提交审核权限
|
|
|
routeData: {}, // 上一页面传过来的值
|
|
routeData: {}, // 上一页面传过来的值
|
|
|
routeDataType: '', // 上一页面传过来的type
|
|
routeDataType: '', // 上一页面传过来的type
|
|
|
|
|
|
|
@@ -232,16 +243,16 @@ export default {
|
|
|
|
|
|
|
|
departmentBoolean: false,
|
|
departmentBoolean: false,
|
|
|
checkBUtton: false, // 提交审核按钮
|
|
checkBUtton: false, // 提交审核按钮
|
|
|
- saveButton: false // 保存按钮
|
|
|
|
|
-
|
|
|
|
|
|
|
+ saveButton: false,
|
|
|
|
|
+ saveButtonForBusiness: false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created () {
|
|
created () {
|
|
|
// this.routeData = this.$route.query.item
|
|
// this.routeData = this.$route.query.item
|
|
|
this.routeDataType = this.$route.query.type
|
|
this.routeDataType = this.$route.query.type
|
|
|
-
|
|
|
|
|
|
|
+ this.isBusiness = this.$route.query.isBusiness == 1 ? 1 : 0
|
|
|
// console.log('跳转数据', this.routeData)
|
|
// console.log('跳转数据', this.routeData)
|
|
|
- this.serviceId = this.$route.params.opera
|
|
|
|
|
|
|
+ this.serviceId = this.$route.params.opera // 评价的ID
|
|
|
// this.getDictOptions()
|
|
// this.getDictOptions()
|
|
|
|
|
|
|
|
this.IsFinal = this.$route.query.IsFinal
|
|
this.IsFinal = this.$route.query.IsFinal
|
|
@@ -325,6 +336,30 @@ export default {
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
|
|
+ let dataBusSave = {
|
|
|
|
|
+ percode: 'oil_contract.Review.Business.Save'
|
|
|
|
|
+ }
|
|
|
|
|
+ permissionApi.permissionIsauth(dataBusSave, this.$axios).then(res => {
|
|
|
|
|
+ if (res.data.code == 0) {
|
|
|
|
|
+ if (res.data.message == '有权限') {
|
|
|
|
|
+ this.saveButtonForBusiness = true
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }).catch(err => {
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
|
|
+ let dataBusReview = {
|
|
|
|
|
+ percode: 'oil_contract.Review.Business.Check'
|
|
|
|
|
+ }
|
|
|
|
|
+ permissionApi.permissionIsauth(dataBusReview, this.$axios).then(res => {
|
|
|
|
|
+ if (res.data.code == 0) {
|
|
|
|
|
+ if (res.data.message == '有权限') {
|
|
|
|
|
+ this.checkBtnForBus = true
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }).catch(err => {
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
// 刷新数据接口
|
|
// 刷新数据接口
|
|
|
refreshPage () {
|
|
refreshPage () {
|
|
@@ -390,15 +425,29 @@ export default {
|
|
|
this.onSeaveBigAdd()
|
|
this.onSeaveBigAdd()
|
|
|
this.$refs.submitpopup.dialogCommonAuditMakeSureVisible = true
|
|
this.$refs.submitpopup.dialogCommonAuditMakeSureVisible = true
|
|
|
break
|
|
break
|
|
|
- // 企管法规处
|
|
|
|
|
|
|
+ // 专业科室提交评价审核
|
|
|
|
|
+ case 301:
|
|
|
|
|
+ this.onSaveEvaByBusiness()
|
|
|
|
|
+ this.$refs.submitpopup.auditOrgChangeForBusiness()
|
|
|
|
|
+ this.$refs.submitpopup.dialogBusinessOfficeSeparateSubmitVisible = true
|
|
|
|
|
+ break
|
|
|
|
|
+ case 401:
|
|
|
|
|
+ this.onSaveEvaByBusiness()
|
|
|
|
|
+ this.$refs.submitpopup.dialogCommonAuditMakeSureVisible = true
|
|
|
|
|
+ break
|
|
|
|
|
+ // 企管法规处
|
|
|
case 7:
|
|
case 7:
|
|
|
- this.onSeaveBigAdd()
|
|
|
|
|
|
|
+ if (this.formData.IsBusiness == 1) {
|
|
|
|
|
+ this.onSaveEvaByBusiness()
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.onSeaveBigAdd()
|
|
|
|
|
+ }
|
|
|
this.$refs.submitpopup.dialogCommonAuditMakeSureVisible = true
|
|
this.$refs.submitpopup.dialogCommonAuditMakeSureVisible = true
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
// 保存评价
|
|
// 保存评价
|
|
|
- onSeaveBigAdd () {
|
|
|
|
|
|
|
+ onSeaveBigAdd (val) {
|
|
|
if (this.formData.Status <= 0) { // 普通二级用户评价evaluation_listType_one
|
|
if (this.formData.Status <= 0) { // 普通二级用户评价evaluation_listType_one
|
|
|
this.evaluation_list = this.$refs.evaluation_list_one.entityListData.entityList
|
|
this.evaluation_list = this.$refs.evaluation_list_one.entityListData.entityList
|
|
|
if (this.contractData.ContractClass == '02') {
|
|
if (this.contractData.ContractClass == '02') {
|
|
@@ -415,9 +464,9 @@ export default {
|
|
|
this.$refs.evaluation_list_one.$refs.formEvaluation.validate((valid) => {
|
|
this.$refs.evaluation_list_one.$refs.formEvaluation.validate((valid) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
if (this.formData.Id == 0 || this.formData.Id == undefined || this.formData.Id == null) {
|
|
if (this.formData.Id == 0 || this.formData.Id == undefined || this.formData.Id == null) {
|
|
|
- this.addEvaluate()
|
|
|
|
|
|
|
+ this.addEvaluate(0)
|
|
|
} else {
|
|
} else {
|
|
|
- this.updateEvaluate()
|
|
|
|
|
|
|
+ this.updateEvaluate(val, 0)
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
this.$message.error('业绩评价填写的分数有误')
|
|
this.$message.error('业绩评价填写的分数有误')
|
|
@@ -515,6 +564,33 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ // 业务处室保存评价
|
|
|
|
|
+ onSaveEvaByBusiness (val) {
|
|
|
|
|
+ if (this.formData.Status <= 0) { // 业务处室保存评价
|
|
|
|
|
+ this.evaluation_list = this.$refs.evaluation_list_one.entityListData.entityList
|
|
|
|
|
+ if (this.contractData.ContractClass == '02') {
|
|
|
|
|
+ this.evaluation_list = this.evaluation_list.concat(this.$refs.evaluation_listType_one.entityListData.entityList)
|
|
|
|
|
+ }
|
|
|
|
|
+ var list = this.evaluation_list
|
|
|
|
|
+ for (var i = 0; i < list.length; i++) {
|
|
|
|
|
+ if (Number(list[i].Score) > Number(list[i].NormalScore)) {
|
|
|
|
|
+ this.$message.error('业绩评价填写的分数不能大于标准分值')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$refs.evaluation_list_one.$refs.formEvaluation.validate((valid) => {
|
|
|
|
|
+ if (valid) {
|
|
|
|
|
+ if (this.formData.Id == 0 || this.formData.Id == undefined || this.formData.Id == null) {
|
|
|
|
|
+ this.addEvaluate(1)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.updateEvaluate(val, 1)
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.error('业绩评价填写的分数有误')
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
// 专业处室评价
|
|
// 专业处室评价
|
|
|
majorEvaluate () {
|
|
majorEvaluate () {
|
|
|
// var formData = this.evaluation_list
|
|
// var formData = this.evaluation_list
|
|
@@ -535,14 +611,14 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
// 新增评价
|
|
// 新增评价
|
|
|
- addEvaluate () {
|
|
|
|
|
|
|
+ addEvaluate (isBusiness) {
|
|
|
var formData = {
|
|
var formData = {
|
|
|
ContractId: this.contractData.Id,
|
|
ContractId: this.contractData.Id,
|
|
|
Items: this.evaluation_list,
|
|
Items: this.evaluation_list,
|
|
|
- IsFinal: Number(this.IsFinal) // 是否履行,最终
|
|
|
|
|
|
|
+ IsFinal: Number(this.IsFinal), // 是否履行,最终
|
|
|
|
|
+ IsBusiness: isBusiness == 1 ? 1 : 0
|
|
|
}
|
|
}
|
|
|
api.addContractEvaluate(formData, this.$axios).then(res => {
|
|
api.addContractEvaluate(formData, this.$axios).then(res => {
|
|
|
- console.log('新增', res)
|
|
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
this.formData.Id = res.data.item
|
|
this.formData.Id = res.data.item
|
|
|
this.$message({
|
|
this.$message({
|
|
@@ -556,19 +632,22 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
// 编辑评价
|
|
// 编辑评价
|
|
|
- updateEvaluate () {
|
|
|
|
|
|
|
+ updateEvaluate (val, isBusiness) {
|
|
|
var formData = {
|
|
var formData = {
|
|
|
ContractId: this.contractData.Id,
|
|
ContractId: this.contractData.Id,
|
|
|
- Items: this.evaluation_list
|
|
|
|
|
|
|
+ Items: this.evaluation_list,
|
|
|
|
|
+ IsBusiness: isBusiness == 1 ? 1 : 0
|
|
|
}
|
|
}
|
|
|
api.updateContractEvaluate(this.formData.Id, formData, this.$axios).then(res => {
|
|
api.updateContractEvaluate(this.formData.Id, formData, this.$axios).then(res => {
|
|
|
- console.log('编辑', res)
|
|
|
|
|
|
|
+ console.log('编辑11111', val)
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
// this.formData.Id = res.data.item
|
|
// this.formData.Id = res.data.item
|
|
|
- this.$message({
|
|
|
|
|
- type: 'success',
|
|
|
|
|
- message: res.data.message
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ if (val) {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: res.data.message
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
this.refreshPage()
|
|
this.refreshPage()
|
|
|
}
|
|
}
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|