|
|
@@ -23,6 +23,8 @@
|
|
|
v-if="auditBtn && this.formData.Status == '4' && this.formData.InStyle != '2'">专业审批</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity"
|
|
|
v-if="auditBtn && this.formData.Status == '5' && this.formData.InStyle != '3'">集中审批</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity"
|
|
|
+ v-if="this.formData.Status == '10'">分办</el-button>
|
|
|
<router-link :to="'/oilsupplier/supplieraudit'">
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
|
</router-link>
|
|
|
@@ -189,22 +191,21 @@
|
|
|
</el-card>
|
|
|
<el-dialog title="审核" :visible.sync="dialogMakeSure">
|
|
|
<el-form :model="shenheForm" label-width="100px" ref="shenheForm">
|
|
|
- <el-form-item label="专业科室" v-if="this.formData.Status == '1'">
|
|
|
- <!--<el-select ref="selectauditOrg" v-model="majorDept" placeholder="请选择"-->
|
|
|
- <!--style="width: 90%" filterable allow-create default-first-option>-->
|
|
|
- <!--<el-option-->
|
|
|
- <!--v-for="item in organizeOption"-->
|
|
|
- <!--:key="item.Id"-->
|
|
|
- <!--:label="item.Fullname"-->
|
|
|
- <!--:value="item.Id">-->
|
|
|
- <!--</el-option>-->
|
|
|
- <!--</el-select>-->
|
|
|
- <el-cascader :options="orgtreelist" :props="orgtreeprops" change-on-select :show-all-levels="false" filterable
|
|
|
+ <!-- <el-form-item label="专业科室" v-if="this.formData.Status == '1'"> -->
|
|
|
+ <!--<el-select ref="selectauditOrg" v-model="majorDept" placeholder="请选择"-->
|
|
|
+ <!--style="width: 90%" filterable allow-create default-first-option>-->
|
|
|
+ <!--<el-option-->
|
|
|
+ <!--v-for="item in organizeOption"-->
|
|
|
+ <!--:key="item.Id"-->
|
|
|
+ <!--:label="item.Fullname"-->
|
|
|
+ <!--:value="item.Id">-->
|
|
|
+ <!--</el-option>-->
|
|
|
+ <!--</el-select>-->
|
|
|
+ <!-- <el-cascader :options="orgtreelist" :props="orgtreeprops" change-on-select :show-all-levels="false" filterable
|
|
|
style="width: 100%" v-model="majorDept" placeholder="请选择组织">
|
|
|
</el-cascader>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item :label="aduitlabel"
|
|
|
- v-if="this.formData.Status != '2' && this.formData.Status != '4' && this.formData.Status !== '5' ">
|
|
|
+ </el-form-item> -->
|
|
|
+ <el-form-item :label="aduitlabel" v-if="this.formData.Status == '3'">
|
|
|
<el-select ref="selectAuditer" v-model="auditer" placeholder="请选择" style="width: 100%" filterable allow-create
|
|
|
default-first-option>
|
|
|
<el-option v-for="item in auditerOptions" :key="item.id" :label="item.realname" :value="item.id">
|
|
|
@@ -214,7 +215,7 @@
|
|
|
<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="2">退回</el-radio>
|
|
|
</template>
|
|
|
</el-form-item>
|
|
|
<el-form-item porp="AuditorRemark" label="意见"
|
|
|
@@ -234,7 +235,7 @@
|
|
|
<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="2">退回</el-radio>
|
|
|
</template>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="AuditorRemark" label="意见"
|
|
|
@@ -243,27 +244,26 @@
|
|
|
minlength="20"></el-input>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-divider></el-divider>
|
|
|
+ <!-- <el-divider></el-divider> -->
|
|
|
|
|
|
- <el-form-item :label="aduitlabel"
|
|
|
- v-if="this.formData.Status != '2' && this.formData.Status != '4' && this.formData.Status !== '5' ">
|
|
|
+ <el-form-item :label="aduitlabel" v-if="this.formData.Status == '3'">
|
|
|
<el-select ref="selectAuditer" v-model="auditer" placeholder="请选择" style="width: 100%" filterable allow-create
|
|
|
default-first-option>
|
|
|
<el-option v-for="item in secauditerOptions" :key="item.id" :label="item.realname" :value="item.id">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-divider></el-divider>
|
|
|
- <el-form-item label="专业科室" v-if="this.formData.Status == '1' && this.formData.InStyle != '2'">
|
|
|
- <!-- <el-select ref="selectAuditer" v-model="majorDept" placeholder="请选择" style="width: 90%" filterable allow-create
|
|
|
+ <!-- <el-divider></el-divider> -->
|
|
|
+ <!-- <el-form-item label="专业科室" v-if="this.formData.Status == '1' && this.formData.InStyle != '2'"> -->
|
|
|
+ <!-- <el-select ref="selectAuditer" v-model="majorDept" placeholder="请选择" style="width: 90%" filterable allow-create
|
|
|
default-first-option>
|
|
|
<el-option v-for="item in orgtreelist" :key="item.id" :label="item.name" :value="item.id">
|
|
|
</el-option>
|
|
|
</el-select> -->
|
|
|
- <el-cascader :options="orgtreelist" :props="orgtreeprops" :show-all-levels="false" filterable
|
|
|
+ <!-- <el-cascader :options="orgtreelist" :props="orgtreeprops" :show-all-levels="false" filterable
|
|
|
style="width: 100%" v-model="majorDept" placeholder="请选择组织" @change="orgtreeChange">
|
|
|
</el-cascader>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item> -->
|
|
|
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer" style="margin-top: -25px">
|
|
|
@@ -295,6 +295,41 @@
|
|
|
<el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog title="提交初审" :visible.sync="dialogVisible" width="520px">
|
|
|
+ <el-form ref="searchForm" label-width="100px">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="初审人员">
|
|
|
+ <el-input ref="selectAuditer" readonly v-model="auditerName" placeholder="请选择初审人">
|
|
|
+ <el-button slot="append" icon="el-icon-search" @click="chooseAuditorShow"></el-button>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="复审人员">
|
|
|
+ <el-select ref="selectAuditer" v-model="fushenauditer" placeholder="请选择复审人" style="width: 100%" filterable
|
|
|
+ allow-create default-first-option>
|
|
|
+ <el-option v-for="item in secauditerOptions" :key="item.id" :label="item.realname" :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="专业处室">
|
|
|
+ <el-cascader :options="orgtreelist" :props="orgtreeprops" :show-all-levels="false" filterable
|
|
|
+ style="width: 100%" v-model="majorDept" placeholder="请选择专业处室">
|
|
|
+ </el-cascader>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="说明">
|
|
|
+ <el-input v-model="auditform.AuditRemark" type="textarea" placeholder="请输入说明内容">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="mini" @click="dialogVisible = false">取 消</el-button>
|
|
|
+ <el-button size="mini" type="primary" @click="makeSure()">确定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
|
|
|
<choose-auditor ref="chooseAuditor" @close="setAuditer" @hideChooseAuditer="chooseAuditorVisible=false"
|
|
|
:visible="chooseAuditorVisible"></choose-auditor>
|
|
|
@@ -348,6 +383,7 @@
|
|
|
return {
|
|
|
auditer: '',
|
|
|
auditerName: '',
|
|
|
+ dialogVisible: false,
|
|
|
chooseAuditorVisible: false,
|
|
|
equipmentList: [], // 企业主要装备情况
|
|
|
performanceList: [], // 近三年主要工程业绩
|
|
|
@@ -362,7 +398,17 @@
|
|
|
orgtreelist: [],
|
|
|
secorgtreelist: [],
|
|
|
userOptions: [],
|
|
|
+ auditer: "",
|
|
|
+ auditerName: "",
|
|
|
+ fushenauditer: '', //复审人员
|
|
|
majorDept: [100000180, 100000192],
|
|
|
+ auditform: {
|
|
|
+ FirstAuditName: "",
|
|
|
+ SecondAudit: "",
|
|
|
+ ThirdAudit: "",
|
|
|
+ CertId: "",
|
|
|
+ AuditRemark: ""
|
|
|
+ },
|
|
|
serviceId: '',
|
|
|
certId: '',
|
|
|
classId: '01',
|
|
|
@@ -414,6 +460,7 @@
|
|
|
SafetyLicense: '',
|
|
|
TechServiceLic: '',
|
|
|
TJInNotify: '',
|
|
|
+ ProcessKey: '',
|
|
|
SpecIndustryCert: '',
|
|
|
LegalPerson: '',
|
|
|
CategoryCode: '',
|
|
|
@@ -478,11 +525,12 @@
|
|
|
WorkflowId: ''
|
|
|
},
|
|
|
entrydetail: {
|
|
|
- process: 'oil_supplier_apply_1',
|
|
|
+ process: '',
|
|
|
business: '',
|
|
|
instance: '',
|
|
|
status: ''
|
|
|
},
|
|
|
+ IsCompanyUser: '',
|
|
|
backhistroy: {
|
|
|
certId: '',
|
|
|
classId: '03',
|
|
|
@@ -494,6 +542,7 @@
|
|
|
this.companyid = this.authUser.Profile.Superior
|
|
|
this.serviceId = this.$route.params.opera + ''
|
|
|
this.certId = this.$route.query.certid + ''
|
|
|
+ this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
|
|
|
if (this.serviceId !== 'add' && this.serviceId > 0) {
|
|
|
this.formData.Id = this.serviceId
|
|
|
} else {
|
|
|
@@ -535,15 +584,28 @@
|
|
|
this.chooseAuditorVisible = true
|
|
|
},
|
|
|
setAuditer(val, name) {
|
|
|
- this.auditer = val
|
|
|
- this.auditerName = name
|
|
|
- this.chooseAuditorVisible = false
|
|
|
+ this.auditer = val;
|
|
|
+ this.auditerName = name;
|
|
|
+ this.chooseAuditorVisible = false;
|
|
|
+ this.auditOrgChang(this.auditer)
|
|
|
+ },
|
|
|
+ auditOrgChang(val) {
|
|
|
+ console.log("------val", val)
|
|
|
+ let auditstepcode = "SECOND_TRIAL";
|
|
|
+ api.getAuditerByFirst(val, auditstepcode, this.$axios)
|
|
|
+ .then(res => {
|
|
|
+ this.secauditerOptions = res.data.item
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
},
|
|
|
|
|
|
initDatas() {
|
|
|
if (this.formData.Id) {
|
|
|
api.getEntityAndCert(this.certId, this.$axios).then(res => {
|
|
|
this.formData = res.data
|
|
|
+ console.log("--this.formData--", this.formData)
|
|
|
this.formDataCert.WorkerTotal = this.formData.WorkerTotal
|
|
|
this.formDataCert.ContractNum = this.formData.ContractNum
|
|
|
this.formDataCert.UniversityNum = this.formData.UniversityNum
|
|
|
@@ -556,14 +618,14 @@
|
|
|
this.formDataCert.SkillerTotal = this.formData.SkillerTotal
|
|
|
this.formDataCert.Status = this.formData.Status
|
|
|
this.formDataCert.WorkflowId = this.formData.WorkflowId
|
|
|
- console.log("---", this.formData.Status,this.formData.InStyle)
|
|
|
+ console.log("---", this.formData.Status, this.formData.InStyle)
|
|
|
this.entrydetail.business = this.formData.BusinessKey
|
|
|
this.entrydetail.instance = this.formDataCert.WorkflowId
|
|
|
this.entrydetail.status = this.formData.Status
|
|
|
|
|
|
this.backhistroy.certId = this.certId
|
|
|
this.backhistroy.workflowId = this.formDataCert.WorkflowId
|
|
|
-
|
|
|
+ this.entrydetail.process = this.formData.ProcessKey
|
|
|
if (this.formData.Status === '1') {
|
|
|
this.aduitlabel = '复审人员'
|
|
|
this.auditTitle = '初审'
|
|
|
@@ -592,9 +654,10 @@
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- isAccess () {
|
|
|
+ isAccess() {
|
|
|
apiCert.isAccess(this.auditstepcode, this.$axios).then(res => {
|
|
|
this.auditBtn = res.data
|
|
|
+ console.log("------", this.auditBtn)
|
|
|
}).catch(err => {
|
|
|
console.log(err)
|
|
|
})
|
|
|
@@ -778,6 +841,8 @@
|
|
|
this.dialogAllocation = true
|
|
|
} else if (this.formData.Status === '1') {
|
|
|
this.dialogMakeSure2 = true
|
|
|
+ } else if (this.formData.Status === '10') {
|
|
|
+ this.dialogVisible = true
|
|
|
} else {
|
|
|
this.dialogMakeSure = true
|
|
|
}
|
|
|
@@ -787,7 +852,7 @@
|
|
|
},
|
|
|
// 审核通过
|
|
|
makeSure() {
|
|
|
- if (this.shenheForm.AuditorRemark.trim().length < 20 && this.formData.Status !== '3') {
|
|
|
+ if (this.shenheForm.AuditorRemark.trim().length < 20 && this.formData.Status !== '3'&& this.formData.Status !== '10') {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
message: '审批意见不能低于20个字符!'
|
|
|
@@ -795,13 +860,6 @@
|
|
|
return
|
|
|
}
|
|
|
if (this.shenheForm.SuccessStatus === 1) {
|
|
|
- if (this.formData.Status === '1' && this.majorDept.length === 0) {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '请选择专业科室!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
if (this.userOptions == null || this.userOptions.length === 0) {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
@@ -809,8 +867,7 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if ((!this.auditer || this.auditer === 0) && this.formData.Status !== '2' && this.formData.Status !== '4' &&
|
|
|
- this.formData.Status !== '5') {
|
|
|
+ if ((!this.auditer || this.auditer === 0) && this.formData.Status == '3') {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
message: '请选择审核人!'
|
|
|
@@ -825,11 +882,17 @@
|
|
|
let params = this.shenheForm
|
|
|
let audit = {
|
|
|
auditer: this.auditer,
|
|
|
- majorDept: this.majorDept[this.majorDept.length - 1]
|
|
|
+ majorDept: this.majorDept[this.majorDept.length - 1],
|
|
|
+ FirstAuditName: this.auditer,
|
|
|
+ SecondAudit: this.fushenauditer,
|
|
|
+ ThirdAudit: this.majorDept[this.majorDept.length - 1],
|
|
|
+ AuditRemark: this.auditform.AuditRemark
|
|
|
}
|
|
|
+ console.log(params, '---params----')
|
|
|
apiCert.auditEntityFir(this.certId, audit, params, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
this.initDatas()
|
|
|
+ this.dialogVisible = false
|
|
|
this.dialogMakeSure = false
|
|
|
this.dialogAllocation = false
|
|
|
this.dialogMakeSure2 = false
|