|
|
@@ -170,12 +170,12 @@
|
|
|
|
|
|
|
|
|
<el-tab-pane label="准入范围" :disabled="!certId">
|
|
|
- <business-list ref="businessList" :data.sync="businessList" :canadd="add_flat" height="360px"
|
|
|
+ <business-list ref="businessList" :data.sync="businessList" :canadd="false" height="360px"
|
|
|
style="margin-top: 20px"></business-list>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
<el-tab-pane label="企业资质" :disabled="!certId">
|
|
|
- <subfile-list ref="subfileList" :data.sync="subfileList" :canadd="add_flat" height="360px" style="margin-top: 20px"></subfile-list>
|
|
|
+ <subfile-list ref="subfileList" :data.sync="subfileList" :canadd="false" height="360px" style="margin-top: 20px"></subfile-list>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
|
@@ -197,10 +197,15 @@
|
|
|
<el-dialog title="审核" :visible.sync="dialogMakeSure">
|
|
|
<el-form :model="shenheForm" label-width="100px" ref="shenheForm">
|
|
|
<el-form-item label="专业科室" v-if="this.AnnualStatus == '0'">
|
|
|
- <el-cascader :options="orgtreelist" :props="orgtreeprops" change-on-select :show-all-levels="false" filterable
|
|
|
+ <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-item label="专业科室" v-if="this.AnnualStatus == '0'">
|
|
|
+ <el-cascader :options="orgtreelist" :props="proorgtreeprops" change-on-select :show-all-levels="false" filterable
|
|
|
+ style="width: 100%" v-model="majorDept" placeholder="请选择组织">
|
|
|
+ </el-cascader>
|
|
|
+ </el-form-item> -->
|
|
|
<el-form-item label="审核状态">
|
|
|
<template>
|
|
|
<el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="1">通过</el-radio>
|
|
|
@@ -217,13 +222,8 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <el-dialog title="提交专业审批" :visible.sync="dialogProfAudit" width="420px">
|
|
|
+ <el-dialog title="分配" :visible.sync="dialogProfAudit" width="420px">
|
|
|
<el-form ref="searchForm" label-width="110px">
|
|
|
- <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 label="审批人">
|
|
|
<el-select ref="selectAuditer" v-model="ProfAuditThen" placeholder="请选择" style="width: 100%" filterable
|
|
|
allow-create default-first-option>
|
|
|
@@ -231,6 +231,9 @@
|
|
|
</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>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button size="mini" @click="dialogProfAudit = false">取 消</el-button>
|
|
|
@@ -292,6 +295,7 @@
|
|
|
canUpdateSupplier: true,
|
|
|
dictData: null,
|
|
|
applyLoading: false,
|
|
|
+ subfileList:[],
|
|
|
majorDept: [],
|
|
|
auditbusList: [], // 待审核业务
|
|
|
secauditerOptions: [], //专业审批人
|
|
|
@@ -403,7 +407,7 @@
|
|
|
},
|
|
|
orgtreeprops: {
|
|
|
value: 'id',
|
|
|
- label: 'Fullname',
|
|
|
+ label: 'name',
|
|
|
children: 'children'
|
|
|
},
|
|
|
formDataCert: {
|
|
|
@@ -429,6 +433,7 @@
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ this.companyid = this.authUser.Profile.Superior
|
|
|
this.serviceId = this.$route.params.opera;
|
|
|
if (this.$route.query.certid) {
|
|
|
this.certId = this.$route.query.certid + ''
|
|
|
@@ -439,14 +444,14 @@
|
|
|
this.WorkflowId = this.$route.query.WorkflowId + ''
|
|
|
this.annualId = this.$route.query.annualId
|
|
|
this.Step = parseInt(this.$route.query.Step)
|
|
|
- this.getDictOptions()
|
|
|
+ //this.getDictOptions()
|
|
|
this.formData.Id = this.serviceId
|
|
|
this.initDatas()
|
|
|
this.backhistroy.certId = this.annualId
|
|
|
this.backhistroy.workflowId = this.WorkflowId
|
|
|
|
|
|
this.getorgtreelist()
|
|
|
- this.getorgtreelistbydeptid()
|
|
|
+ //this.getorgtreelistbydeptid()
|
|
|
},
|
|
|
methods: {
|
|
|
inputCompany(val) {
|
|
|
@@ -614,17 +619,6 @@
|
|
|
let params = {
|
|
|
IsInnerOrganize: 1
|
|
|
}
|
|
|
- // _this.$axios.get('organizes/orgalllist', {
|
|
|
- // params
|
|
|
- // })
|
|
|
- // .then(res => {
|
|
|
- // _this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
|
|
|
- // if (_this.authUser.Profile.IsCompanyUser === 0) {
|
|
|
- // this.secOrganize = _this.authUser.Profile.Superior.split(',').map((val) => {
|
|
|
- // return parseInt(val)
|
|
|
- // })
|
|
|
- // this.auditOrgChang(this.secOrganize)
|
|
|
- // }
|
|
|
api.getDictListByStatus(params, this.$axios).then(res => {
|
|
|
this.dictData = res.data.items
|
|
|
this.orgtreelist = window.toolfun_gettreejson(res.data.items['ProOrgList'], 'id', 'pId', 'id,name')
|
|
|
@@ -649,17 +643,35 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- auditOrgChange(val) {
|
|
|
+ auditOrgChange() {
|
|
|
+ // let auditstepcode = ''
|
|
|
+ // if (this.AnnualStatus === '1') {
|
|
|
+ // auditstepcode = 'PROF_AUDIT'
|
|
|
+ // } else {
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // let deptid = val[val.length - 1]
|
|
|
+ // this.auditerOptions = []
|
|
|
+ // api.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
|
|
|
+ // this.secauditerOptions = res.data.item
|
|
|
+ // }).catch(err => {
|
|
|
+ // console.error(err)
|
|
|
+ // })
|
|
|
let auditstepcode = ''
|
|
|
- if (this.AnnualStatus === '1') {
|
|
|
+ if (this.AnnualStatus == 1) {
|
|
|
auditstepcode = 'PROF_AUDIT'
|
|
|
} 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 = ''
|
|
|
api.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
|
|
|
this.secauditerOptions = res.data.item
|
|
|
+ console.log("--this.secauditerOptions----",this.secauditerOptions)
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
@@ -671,6 +683,7 @@
|
|
|
},
|
|
|
profAudit() {
|
|
|
this.shenheForm.AnnualId = parseInt(this.annualId)
|
|
|
+ this.auditOrgChange()
|
|
|
this.dialogProfAudit = true
|
|
|
},
|
|
|
//审核通过
|