|
|
@@ -49,10 +49,24 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
- <el-form-item label="初审人员" prop="FirstAuditName" :rules="{ required: true, message: '初审人员不能为空', trigger: 'change'}">
|
|
|
- <el-input ref="selectAuditer" readonly v-model="formData.FirstAuditName" placeholder="请选择初审人">
|
|
|
- <el-button slot="append" icon="el-icon-search" @click="chooseAuditorShow" :readonly="formData.Status > 0"></el-button>
|
|
|
- </el-input>
|
|
|
+ <el-form-item label="初审人员" prop="FirstAudit" :rules="{ required: true, message: '初审人员不能为空', trigger: 'change'}">
|
|
|
+ <!--<el-input ref="selectAuditer" readonly v-model="formData.FirstAuditName" placeholder="请选择初审人">-->
|
|
|
+ <!--<el-button slot="append" icon="el-icon-search" @click="chooseAuditorShow" :readonly="formData.Status > 0"></el-button>-->
|
|
|
+ <!--</el-input>-->
|
|
|
+ <el-select ref="selectAuditer"
|
|
|
+ v-model="formData.FirstAudit"
|
|
|
+ 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-col>
|
|
|
<el-col :span="6">
|
|
|
@@ -354,6 +368,7 @@
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
+ firOptions: [],
|
|
|
showaddmarketdialog: false,
|
|
|
dialogMakeSure: false,
|
|
|
audithistoryshow: false,
|
|
|
@@ -486,8 +501,18 @@
|
|
|
} else {
|
|
|
this.formData.Id = 0
|
|
|
}
|
|
|
+ this.getFirAuditerByDept()
|
|
|
},
|
|
|
methods: {
|
|
|
+ getFirAuditerByDept () {
|
|
|
+ let deptid = this.authUser.Profile.DepartmentId
|
|
|
+ let auditstepcode = 'FIRST_TRIAL' // 初审人
|
|
|
+ sipapi.getFirAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
|
|
|
+ this.firOptions = res.data.item
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
// 审批
|
|
|
approvalEntity () {
|
|
|
this.dialogMakeSure = true
|
|
|
@@ -633,11 +658,11 @@
|
|
|
this.formData.FirstAudit = val
|
|
|
this.formData.FirstAuditName = name
|
|
|
this.chooseAuditorVisible = false
|
|
|
- this.auditOrgChang(this.formData.FirstAudit)
|
|
|
+ // this.auditOrgChang(this.formData.FirstAudit)
|
|
|
},
|
|
|
- auditOrgChang (val) {
|
|
|
+ auditOrgChang () {
|
|
|
let auditstepcode = 'SECOND_TRIAL'
|
|
|
- sipapi.getAuditerByFirst(val, auditstepcode, this.$axios)
|
|
|
+ sipapi.getAuditerByFirst(this.formData.FirstAudit, auditstepcode, this.$axios)
|
|
|
.then(res => {
|
|
|
this.secauditerOptions = res.data.item
|
|
|
})
|