|
|
@@ -2,8 +2,7 @@
|
|
|
<div>
|
|
|
<el-breadcrumb class="heading">
|
|
|
<el-breadcrumb-item :to="{ path: '/' }">平台首页</el-breadcrumb-item>
|
|
|
- <el-breadcrumb-item :to="{ path: '/oilsupplier/addtionaudit/techlist' }">基建类列表</el-breadcrumb-item>
|
|
|
- <el-breadcrumb-item>编辑</el-breadcrumb-item>
|
|
|
+ <el-breadcrumb-item>基建类-增项审核</el-breadcrumb-item>
|
|
|
</el-breadcrumb>
|
|
|
<el-card class="box-card">
|
|
|
<div slot="header">
|
|
|
@@ -25,9 +24,9 @@
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="auhistory">审批流程</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity"
|
|
|
v-if="auditBtn && this.formData.Status != '6'&& this.formData.Status != '10'">{{auditTitle}}</el-button>
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity"
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity"
|
|
|
v-if="this.formData.Status == '10'">分办</el-button>
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px;" onclick="window.history.go(-1)">返回</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px;" onclick="window.history.go(-1)">返回</el-button>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div>
|
|
|
@@ -102,12 +101,13 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="审核状态">
|
|
|
<template>
|
|
|
- <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="1">通过</el-radio>
|
|
|
- <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="2">未通过</el-radio>
|
|
|
+ <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="1" @change="radioChange">通过</el-radio>
|
|
|
+ <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="2" @change="radioChange">退回</el-radio>
|
|
|
</template>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="意见">
|
|
|
- <el-input type="textarea" v-model="shenheForm.AuditorRemark" placeholder="请输入审核说明"></el-input>
|
|
|
+ <el-form-item label="意见" :rules="[{ required: true, message: '请输入审批意见', trigger: 'blur' }]">
|
|
|
+ <el-input type="textarea" v-model="shenheForm.AuditorRemark" :placeholder="textplaceholder">
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer" style="margin-top: -25px">
|
|
|
@@ -119,13 +119,17 @@
|
|
|
<el-form :model="shenheForm" label-width="100px" ref="shenheForm">
|
|
|
<el-form-item label="审核状态">
|
|
|
<template>
|
|
|
- <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="1">通过</el-radio>
|
|
|
- <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="2">未通过</el-radio>
|
|
|
+ <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="1" @change="radioChange">通过</el-radio>
|
|
|
+ <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="2" @change="radioChange">退回</el-radio>
|
|
|
</template>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="意见">
|
|
|
- <el-input type="textarea" v-model="shenheForm.AuditorRemark" placeholder="请输入审核说明"></el-input>
|
|
|
+ <el-form-item label="意见" :rules="[{ required: true, message: '请输入审批意见', trigger: 'blur' }]">
|
|
|
+ <el-input type="textarea" v-model="shenheForm.AuditorRemark" :placeholder="textplaceholder">
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
+ <!-- <el-form-item label="意见">
|
|
|
+ <el-input type="textarea" v-model="shenheForm.AuditorRemark" placeholder="请输入审核说明"></el-input>
|
|
|
+ </el-form-item> -->
|
|
|
<!-- <el-form-item :label="aduitlabel"
|
|
|
v-if="this.formData.Status != '2' && this.formData.Status != '4' && this.formData.Status !== '5' ">
|
|
|
<el-select ref="selectAuditer" v-model="auditer" placeholder="请选择" style="width: 100%" filterable allow-create
|
|
|
@@ -200,7 +204,7 @@
|
|
|
</el-dialog>
|
|
|
<choose-auditor ref="chooseAuditor" @close="setAuditer" @hideChooseAuditer="chooseAuditorVisible=false"
|
|
|
:visible="chooseAuditorVisible"></choose-auditor>
|
|
|
- <el-dialog title="审批流程" :visible.sync="audithistoryshow" width="1200px">
|
|
|
+ <el-dialog title="审批流程" :visible.sync="audithistoryshow" width="1200px">
|
|
|
<wf-multi-history ref="WfHistory" :entryinfo="entrydetail"></wf-multi-history>
|
|
|
</el-dialog>
|
|
|
|
|
|
@@ -253,7 +257,8 @@
|
|
|
}
|
|
|
}
|
|
|
return {
|
|
|
- chooseAuditorVisible:false,
|
|
|
+ textplaceholder: '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)',
|
|
|
+ chooseAuditorVisible: false,
|
|
|
audithistoryshow: false,
|
|
|
auditerOptions: [], // 审核人员
|
|
|
secauditerOptions: [],
|
|
|
@@ -302,7 +307,8 @@
|
|
|
entrydetail: {
|
|
|
process: "",
|
|
|
business: "",
|
|
|
- instance: ""
|
|
|
+ instance: "",
|
|
|
+ Status: ""
|
|
|
},
|
|
|
dialogVisible: false, //增项分办
|
|
|
dialogTitle: '',
|
|
|
@@ -382,6 +388,7 @@
|
|
|
this.entrydetail.process = this.formData.ProcessKey
|
|
|
this.entrydetail.business = this.formData.BusinessKey
|
|
|
this.entrydetail.instance = this.formData.WorkFlowId;
|
|
|
+ this.entrydetail.status = this.formData.Status
|
|
|
if (this.formData.Status === '1') {
|
|
|
this.aduitlabel = '复审人员'
|
|
|
this.auditTitle = '初审'
|
|
|
@@ -418,13 +425,28 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
+ radioChange() {
|
|
|
+ if (this.shenheForm.SuccessStatus === 1) {
|
|
|
+ this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)'
|
|
|
+ } else {
|
|
|
+ if (this.formData.Status == '5') {
|
|
|
+ this.textplaceholder = ''
|
|
|
+ } else {
|
|
|
+ this.textplaceholder = '退回意见不能少于5个字'
|
|
|
+ }
|
|
|
+ this.shenheForm.AuditorRemark = ''
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
//获取供应方公司列表
|
|
|
getSupplierList() {
|
|
|
let _this = this
|
|
|
let params = {
|
|
|
SuppTypeCode: '02',
|
|
|
}
|
|
|
- _this.$axios.get('/suppliercertappend/getsupplier', {params})
|
|
|
+ _this.$axios.get('/suppliercertappend/getsupplier', {
|
|
|
+ params
|
|
|
+ })
|
|
|
.then(res => {
|
|
|
_this.supplierList = res.data
|
|
|
})
|
|
|
@@ -449,7 +471,6 @@
|
|
|
//访问接口
|
|
|
api.getListAppend(params, this.$axios).then(res => {
|
|
|
this.entityList = res.data.item
|
|
|
- console.log("------res.entityList==--", this.entityList)
|
|
|
// this.currentItemCount = res.data.currentItemCount
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
@@ -484,7 +505,6 @@
|
|
|
})
|
|
|
.then(res => {
|
|
|
_this.subfileList = res.data.items
|
|
|
- console.log("---this.subfileList---", this.subfileList)
|
|
|
_this.currentItemCount = res.data.currentItemCount
|
|
|
for (let idx in _this.subfileList) {
|
|
|
console.log(_this.subfileList[idx])
|
|
|
@@ -591,14 +611,32 @@
|
|
|
makeSure() {
|
|
|
console.log(this.auditer)
|
|
|
if (this.shenheForm.SuccessStatus === 1) {
|
|
|
- if ((!this.auditer || this.auditer === 0) && this.formData.Status !== '1' && this.formData.Status !== '2' && this.formData.Status !== '4' &&
|
|
|
- this.formData.Status !== '5'&& this.formData.Status !== '10') {
|
|
|
+ if ((!this.auditer || this.auditer === 0) && this.formData.Status !== '1' && this.formData.Status !== '2' &&
|
|
|
+ this.formData.Status !== '4' &&
|
|
|
+ this.formData.Status !== '5' && this.formData.Status !== '10') {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
message: '请选择审核人!'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ if (this.shenheForm.AuditorRemark.trim().length < 20 && this.formData.Status !== '3' && this.formData
|
|
|
+ .Status !== '5' && this.formData.Status !== '10') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '审批意见不能低于20个字符!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (this.shenheForm.AuditorRemark.trim().length < 5 && this.formData.Status !== '3' && this.formData
|
|
|
+ .Status !== '5' && this.formData.Status !== '10') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '退回意见不能低于5个字符!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
this.checkstatus()
|
|
|
},
|
|
|
@@ -611,7 +649,6 @@
|
|
|
SecondAudit: this.fushenauditer,
|
|
|
ThirdAudit: this.majorDept[this.majorDept.length - 1],
|
|
|
}
|
|
|
- console.log("---params",params)
|
|
|
api2.auditEntityFir(this.formData.Id, params, this.shenheForm, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
this.getEntityById()
|