|
|
@@ -14,12 +14,17 @@
|
|
|
<!--<el-button type="primary" size="mini" style="margin-left: 8px" @click="allocationBtn" v-if="this.formData.Status == '3'">提交专业审批</el-button>-->
|
|
|
<!--<el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity" v-else>审批</el-button>-->
|
|
|
<!--<el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity"-->
|
|
|
- <!--v-if="auditBtn && this.formData.Status != '6'">{{auditTitle}}</el-button>-->
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity" v-if="auditBtn && this.formData.Status == '1'">初审</el-button>
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity" v-if="auditBtn && this.formData.Status == '2'">复审</el-button>
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity" v-if="auditBtn && this.formData.Status == '3'">提交专业审批</el-button>
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity" v-if="auditBtn && this.formData.Status == '4'">专业审批</el-button>
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity" v-if="auditBtn && this.formData.Status == '5'">集中审批</el-button>
|
|
|
+ <!--v-if="auditBtn && this.formData.Status != '6'">{{auditTitle}}</el-button>-->
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity"
|
|
|
+ v-if="auditBtn && this.formData.Status == '1'">初审</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity"
|
|
|
+ v-if="auditBtn && this.formData.Status == '2'">复审</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity"
|
|
|
+ v-if="auditBtn && this.formData.Status == '3'">提交专业审批</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity"
|
|
|
+ v-if="auditBtn && this.formData.Status == '4'">专业审批</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity"
|
|
|
+ v-if="auditBtn && this.formData.Status == '5'">集中审批</el-button>
|
|
|
<router-link :to="'/oilsupplier/supplieraudit'">
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
|
</router-link>
|
|
|
@@ -216,7 +221,6 @@
|
|
|
</el-dialog>
|
|
|
<el-dialog title="审核" :visible.sync="dialogMakeSure2">
|
|
|
<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>
|
|
|
@@ -226,24 +230,31 @@
|
|
|
<el-form-item label="意见">
|
|
|
<el-input type="textarea" v-model="shenheForm.AuditorRemark" placeholder="请输入审核说明"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="专业科室" v-if="this.formData.Status == '1'">
|
|
|
- <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="复审部门" v-if="this.formData.Status == '1'">
|
|
|
+ <el-divider></el-divider>
|
|
|
+ <!-- <el-form-item label="复审部门" v-if="this.formData.Status == '1'">
|
|
|
<el-cascader :options="secorgtreelist" :props="orgtreeprops" change-on-select :show-all-levels="false"
|
|
|
- filterable style="width: 100%" @change="auditOrgChange" placeholder="请选择组织">
|
|
|
+ filterable style="width: 100%" @change="auditOrgChange" placeholder="请选择组织">
|
|
|
</el-cascader>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item> -->
|
|
|
<el-form-item :label="aduitlabel"
|
|
|
- v-if="this.formData.Status != '2' && this.formData.Status != '4' && this.formData.Status !== '5' ">
|
|
|
+ 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
|
|
|
- default-first-option>
|
|
|
+ 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'">
|
|
|
+ <!-- <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
|
|
|
+ style="width: 100%" v-model="majorDept" placeholder="请选择组织">
|
|
|
+ </el-cascader>
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer" style="margin-top: -25px">
|
|
|
<el-button size="small" @click="dialogMakeSure2 = false">取 消</el-button>
|
|
|
@@ -252,18 +263,21 @@
|
|
|
</el-dialog>
|
|
|
<el-dialog title="分配" :visible.sync="dialogAllocation">
|
|
|
<el-form :model="shenheForm" label-width="100px" ref="shenheForm">
|
|
|
- <el-form-item label="审批人部门">
|
|
|
+ <!-- <el-form-item label="审批人部门">
|
|
|
<el-cascader :options="secorgtreelist" :props="orgtreeprops" change-on-select :show-all-levels="false"
|
|
|
filterable style="width: 100%" @change="auditOrgChange" placeholder="请选择组织">
|
|
|
</el-cascader>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item> -->
|
|
|
<el-form-item label="审批人">
|
|
|
- <el-select ref="selectAuditer" v-model="auditer" placeholder="请选择" style="width: 90%" filterable allow-create
|
|
|
+ <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-form-item label="意见">
|
|
|
+ <el-input type="textarea" v-model="shenheForm.AuditorRemark" placeholder="请输入审核说明"></el-input>
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer" style="margin-top: -25px">
|
|
|
<el-button size="small" @click="dialogAllocation = false">取 消</el-button>
|
|
|
@@ -328,7 +342,7 @@
|
|
|
organizeOption: [],
|
|
|
orgtreelist: [],
|
|
|
secorgtreelist: [],
|
|
|
- majorDept: [],
|
|
|
+ majorDept: [100000180,100000210],
|
|
|
serviceId: '',
|
|
|
certId: '',
|
|
|
classId: '02',
|
|
|
@@ -342,9 +356,10 @@
|
|
|
auditTitle: '审批',
|
|
|
auditstepcode: '',
|
|
|
auditBtn: false,
|
|
|
+ companyid: '',
|
|
|
orgtreeprops: {
|
|
|
value: 'id',
|
|
|
- label: 'Fullname',
|
|
|
+ label: 'name',
|
|
|
children: 'children'
|
|
|
},
|
|
|
shenheForm: {
|
|
|
@@ -457,6 +472,7 @@
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ this.companyid = this.authUser.Profile.Superior
|
|
|
this.serviceId = this.$route.params.opera + ''
|
|
|
this.certId = this.$route.query.certid + ''
|
|
|
if (this.serviceId !== 'add' && this.serviceId > 0) {
|
|
|
@@ -464,10 +480,10 @@
|
|
|
} else {
|
|
|
this.formData.Id = 0
|
|
|
}
|
|
|
- // this.getDictOptions()
|
|
|
+ this.getDictOptions()
|
|
|
this.initDatas()
|
|
|
- this.getorgtreelist()
|
|
|
- this.getorgtreelistbydeptid()
|
|
|
+ // this.getorgtreelist()
|
|
|
+ // this.getorgtreelistbydeptid()
|
|
|
},
|
|
|
methods: {
|
|
|
equipmentdialog() {
|
|
|
@@ -529,7 +545,6 @@
|
|
|
this.$refs['patentList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
this.$refs['winningList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
this.$refs['businessList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
- this.getDictOptions()
|
|
|
this.isAccess()
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
@@ -551,8 +566,9 @@
|
|
|
}
|
|
|
api.getDictListByStatus(params, this.$axios).then(res => {
|
|
|
this.dictData = res.data.items
|
|
|
- this.auditerOptions = res.data.items['Auditer']
|
|
|
- this.organizeOption = res.data.items['Organizes']
|
|
|
+ this.orgtreelist = window.toolfun_gettreejson(res.data.items['ProOrgList'], 'id', 'pId', 'id,name')
|
|
|
+ // this.auditerOptions = res.data.items['Auditer']
|
|
|
+ // this.organizeOption = res.data.items['Organizes']
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
@@ -598,7 +614,9 @@
|
|
|
} else {
|
|
|
return
|
|
|
}
|
|
|
- let deptid = val[val.length - 1]
|
|
|
+ let deplist = []
|
|
|
+ deplist = this.companyid.split(",")
|
|
|
+ let deptid = deplist[deplist.length - 1]
|
|
|
console.log(deptid)
|
|
|
this.auditerOptions = []
|
|
|
this.auditer = ''
|
|
|
@@ -715,6 +733,7 @@
|
|
|
},
|
|
|
|
|
|
AuditEntity() {
|
|
|
+ this.auditOrgChange()
|
|
|
if (this.formData.Status === '3') {
|
|
|
this.dialogAllocation = true
|
|
|
} else if (this.formData.Status === '1') {
|