|
|
@@ -272,9 +272,15 @@
|
|
|
</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="请选择专业处室" @change="orgtreeChange()">
|
|
|
- </el-cascader>
|
|
|
+ <!--<el-cascader :options="orgtreelist" :props="orgtreeprops" :show-all-levels="false" filterable-->
|
|
|
+ <!--style="width: 100%" v-model="majorDept" placeholder="请选择专业处室" @change="orgtreeChange()">-->
|
|
|
+ <!--</el-cascader>-->
|
|
|
+ <el-select v-model="selectDept" filterable
|
|
|
+ placeholder="请选择" style="width: 100%" @change="changeOrgUnit">
|
|
|
+ <el-option v-for="item in allorgunitOptions" :key="item.Id" :label="item.Fullname"
|
|
|
+ :value="item.Id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
@@ -293,18 +299,18 @@
|
|
|
<el-form ref="searchForm" label-width="100px">
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
- <el-form-item label="分办人员">
|
|
|
- <el-input ref="selectAuditerFen" readonly v-model="auditerName" placeholder="请选择分办人">
|
|
|
- <el-button slot="append" icon="el-icon-search" @click="chooseAuditorShowFen"></el-button>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- <!--<el-form-item label="分办单位">-->
|
|
|
- <!--<el-select filterable v-model="auditerName" maxlength="255" clearable placeholder="请选择分办单位" style="width: 100%" @change="orgunitChange()">-->
|
|
|
- <!--<el-option v-for="item in UnitOrgOptions" :key="item.Id" :label="item.Fullname"-->
|
|
|
- <!--:value="item.Id">-->
|
|
|
- <!--</el-option>-->
|
|
|
- <!--</el-select>-->
|
|
|
+ <!--<el-form-item label="分办人员">-->
|
|
|
+ <!--<el-input ref="selectAuditerFen" readonly v-model="auditerName" placeholder="请选择分办人">-->
|
|
|
+ <!--<el-button slot="append" icon="el-icon-search" @click="chooseAuditorShowFen"></el-button>-->
|
|
|
+ <!--</el-input>-->
|
|
|
<!--</el-form-item>-->
|
|
|
+ <el-form-item label="分办单位">
|
|
|
+ <el-select filterable v-model="UnitOrg" maxlength="255" clearable placeholder="请选择分办单位" style="width: 100%" @change="orgunitChange">
|
|
|
+ <el-option v-for="item in UnitOrgOptions" :key="item.Id" :label="item.Fullname"
|
|
|
+ :value="item.Id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="说明">
|
|
|
@@ -409,6 +415,10 @@
|
|
|
majorDept: [100000000, 100000001, 100000071], //专业可是
|
|
|
userOptions: [],
|
|
|
UnitOrgOptions: [],
|
|
|
+ orgauditOptions: [],
|
|
|
+ UnitOrg: '',
|
|
|
+ allorgunitOptions: [],
|
|
|
+ selectDept: 100000071,
|
|
|
dialogVisibleCom: false,
|
|
|
showReturn: 1,
|
|
|
IsCompanyUser: 0,
|
|
|
@@ -634,7 +644,8 @@
|
|
|
this.initDatas();
|
|
|
}
|
|
|
this.isAccess()
|
|
|
- this.orgtreeChange(this.majorDept)
|
|
|
+ // this.orgtreeChange(this.majorDept)
|
|
|
+ this.changeOrgUnit(this.selectDept)
|
|
|
},
|
|
|
methods: {
|
|
|
nextStep(){
|
|
|
@@ -707,11 +718,19 @@
|
|
|
})
|
|
|
|
|
|
},
|
|
|
- orgunitChange () {
|
|
|
- this.userOptions = []
|
|
|
- let deptid = val[val.length - 1]
|
|
|
+ orgunitChange (val) {
|
|
|
+ let deptid = val
|
|
|
let auditstepcode = 'SUB_OFFICE'
|
|
|
api.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
|
|
|
+ this.orgauditOptions = res.data.item
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ changeOrgUnit (val) {
|
|
|
+ let auditstepcode = 'PROF_RECE'
|
|
|
+ api.getAuditerByDept(val, auditstepcode, this.$axios).then(res => {
|
|
|
+ console.log(res.data.item, 'res.data.item==')
|
|
|
this.userOptions = res.data.item
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
@@ -1097,8 +1116,10 @@
|
|
|
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')
|
|
|
- console.log(res.data.items['UnitOrgList'], '===单位')
|
|
|
this.UnitOrgOptions = res.data.items['UnitOrgList']
|
|
|
+ this.UnitOrg = res.data.items['Register'].CheckUnitId
|
|
|
+ this.allorgunitOptions = res.data.items['Allunitorglist']
|
|
|
+ this.orgunitChange(this.UnitOrg)
|
|
|
// this.auditerOptions = res.data.items['Auditer']
|
|
|
// this.organizeOption = res.data.items['Organizes']
|
|
|
}).catch(err => {
|
|
|
@@ -1366,7 +1387,7 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.majorDept.length === 0) {
|
|
|
+ if (this.selectDept === 0) {
|
|
|
this.$message({
|
|
|
type: "warning",
|
|
|
message: "请选择专业处室!"
|
|
|
@@ -1410,19 +1431,25 @@
|
|
|
})
|
|
|
},
|
|
|
SubpEntity() {
|
|
|
- if (this.auditer === "") {
|
|
|
+ if (this.orgauditOptions == null || this.orgauditOptions.length === 0) {
|
|
|
this.$message({
|
|
|
- type: "warning",
|
|
|
- message: "请选择分办人!"
|
|
|
+ type: 'warning',
|
|
|
+ message: '该单位没有分办人员!'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ // if (this.auditer === "") {
|
|
|
+ // this.$message({
|
|
|
+ // type: "warning",
|
|
|
+ // message: "请选择分办人!"
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
this.applyLoading = true
|
|
|
- this.auditform.FirstAuditName = this.auditer
|
|
|
+ this.auditform.FirstAuditName = this.UnitOrg
|
|
|
this.auditform.CertId = this.certId
|
|
|
console.log("--this.audiform--", this.auditform)
|
|
|
- apiCert
|
|
|
- .auditEntity(this.certId, this.auditform, this.$axios)
|
|
|
+ apiCert.auditEntity(this.certId, this.auditform, this.$axios)
|
|
|
.then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
// 保存成功后,初始化数据,变成修改
|
|
|
@@ -1477,5 +1504,5 @@
|
|
|
<style>
|
|
|
.mycard .el-card__header {
|
|
|
padding : 8px;
|
|
|
- }
|
|
|
+ }
|
|
|
</style>
|