|
|
@@ -566,9 +566,23 @@
|
|
|
</el-col>
|
|
|
<el-col :span="24" v-if="shenheForm.SuccessStatus == 1">
|
|
|
<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-input ref="selectAuditer" readonly v-model="auditerName" placeholder="请选择初审人">-->
|
|
|
+ <!--<el-button slot="append" icon="el-icon-search" @click="chooseAuditorShow"></el-button>-->
|
|
|
+ <!--</el-input>-->
|
|
|
+ <el-select ref="selectAuditer"
|
|
|
+ v-model="auditer"
|
|
|
+ placeholder="请选择初审人"
|
|
|
+ style="width: 100%"
|
|
|
+ filterable
|
|
|
+ allow-create
|
|
|
+ default-first-option
|
|
|
+ @change="auditOrgChang()">
|
|
|
+ <el-option v-for="item in firOptions"
|
|
|
+ :key="item.Id"
|
|
|
+ :label="item.Realname"
|
|
|
+ :value="item.Id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="复审人员">
|
|
|
<el-select ref="selectAuditer" v-model="fushenauditer" placeholder="请选择复审人" style="width: 100%" filterable
|
|
|
@@ -682,6 +696,7 @@ import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
|
|
|
}
|
|
|
}
|
|
|
return {
|
|
|
+ firOptions: [],
|
|
|
btnloading: false,
|
|
|
activeName: '0',
|
|
|
supplierId: '',
|
|
|
@@ -980,7 +995,7 @@ import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
|
|
|
this.getorgtreelist()
|
|
|
this.getorgtreelistbydeptid()
|
|
|
this.getSupplierList() // 获取供应方公司列表
|
|
|
- this.changeOrgUnit(this.selectDept)
|
|
|
+ // this.changeOrgUnit(this.selectDept)
|
|
|
},
|
|
|
methods: {
|
|
|
// 获取需要修改的增项信息
|
|
|
@@ -1091,7 +1106,16 @@ import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+ getFirAuditerByDept () {
|
|
|
+ let deptid = this.authUser.Profile.DepartmentId
|
|
|
+ this.userOptions = []
|
|
|
+ let auditstepcode = 'FIRST_TRIAL' // 初审人
|
|
|
+ suppapi.getFirAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
|
|
|
+ this.firOptions = res.data.item
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
AuditEntity () {
|
|
|
this.auditOrgChange()
|
|
|
if (this.formData.Status === '3') {
|
|
|
@@ -1099,6 +1123,8 @@ import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
|
|
|
} else if (this.formData.Status === '1') {
|
|
|
this.dialogMakeSure2 = true
|
|
|
} else if (this.formData.Status === '10') {
|
|
|
+ this.getFirAuditerByDept()
|
|
|
+ this.changeOrgUnit(this.selectDept)
|
|
|
this.dialogVisible = true
|
|
|
} else {
|
|
|
this.dialogMakeSure = true
|
|
|
@@ -1505,12 +1531,12 @@ import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
|
|
|
this.auditer = val
|
|
|
this.auditerName = name
|
|
|
this.chooseAuditorVisible = false
|
|
|
- this.auditOrgChang(this.auditer)
|
|
|
+ // this.auditOrgChang(this.auditer)
|
|
|
},
|
|
|
- auditOrgChang (val) {
|
|
|
+ auditOrgChang () {
|
|
|
let auditstepcode = 'SECOND_TRIAL'
|
|
|
suppapi
|
|
|
- .getAuditerByFirst(val, auditstepcode, this.$axios)
|
|
|
+ .getAuditerByFirst(this.auditer, auditstepcode, this.$axios)
|
|
|
.then(res => {
|
|
|
this.secauditerOptions = res.data.item
|
|
|
})
|