|
|
@@ -391,14 +391,28 @@
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
<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-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-input ref="selectAuditer"-->
|
|
|
+ <!--readonly-->
|
|
|
+ <!--v-model="auditerName"-->
|
|
|
+ <!--placeholder="请选择初审人">-->
|
|
|
+ <!--<el-button slot="append"-->
|
|
|
+ <!--icon="el-icon-search"-->
|
|
|
+ <!--@click="chooseAuditorShow"></el-button>-->
|
|
|
+ <!--</el-input>-->
|
|
|
</el-form-item>
|
|
|
<el-form-item label="复审人员">
|
|
|
<el-select ref="selectAuditer"
|
|
|
@@ -500,10 +514,10 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <choose-auditor ref="chooseAuditor"
|
|
|
- @close="setAuditer"
|
|
|
- @hideChooseAuditer="chooseAuditorVisible=false"
|
|
|
- :visible="chooseAuditorVisible"></choose-auditor>
|
|
|
+ <!--<choose-auditor ref="chooseAuditor"-->
|
|
|
+ <!--@close="setAuditer"-->
|
|
|
+ <!--@hideChooseAuditer="chooseAuditorVisible=false"-->
|
|
|
+ <!--:visible="chooseAuditorVisible"></choose-auditor>-->
|
|
|
<choose-auditor-fen ref="chooseAuditorFen"
|
|
|
@close="setAuditerFen"
|
|
|
@hideChooseAuditer="chooseAuditorVisibleFen=false"
|
|
|
@@ -532,7 +546,7 @@ import GoodsList from '@/components/oilsupplier/goodslist'
|
|
|
import SubfileList from '@/components/oilsupplier/subfilelist'
|
|
|
import GoodsInfo from '@/components/oilsupplier/goodsinfo'
|
|
|
import ChooseAuditorFen from '@/components/oilsupplier/chooseauditorfenban'
|
|
|
-import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
|
|
|
+// import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
|
|
|
import FloatImgBtn from '@/components/floatButton/index'
|
|
|
|
|
|
export default {
|
|
|
@@ -552,7 +566,7 @@ export default {
|
|
|
SubfileList, // 选择企业资质
|
|
|
GoodsInfo,
|
|
|
|
|
|
- ChooseAuditor
|
|
|
+ // ChooseAuditor
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters({
|
|
|
@@ -598,6 +612,7 @@ export default {
|
|
|
fushenauditer: '', // 复审人员
|
|
|
majorDept: [100000000, 100000001, 100000071], // 专业可是
|
|
|
userOptions: [],
|
|
|
+ firOptions: [],
|
|
|
UnitOrgOptions: [],
|
|
|
orgauditOptions: [],
|
|
|
UnitOrg: '',
|
|
|
@@ -834,7 +849,7 @@ export default {
|
|
|
}
|
|
|
this.isAccess()
|
|
|
// this.orgtreeChange(this.majorDept)
|
|
|
- this.changeOrgUnit(this.selectDept)
|
|
|
+ // this.changeOrgUnit(this.selectDept)
|
|
|
},
|
|
|
methods: {
|
|
|
tabclick () {
|
|
|
@@ -929,7 +944,7 @@ export default {
|
|
|
},
|
|
|
orgunitChange (val) {
|
|
|
let deptid = val
|
|
|
- let auditstepcode = 'SUB_OFFICE_JS'
|
|
|
+ let auditstepcode = 'SUB_OFFICE_WZ'
|
|
|
api.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
|
|
|
this.orgauditOptions = res.data.item
|
|
|
}).catch(err => {
|
|
|
@@ -1436,9 +1451,9 @@ export default {
|
|
|
// });
|
|
|
// },
|
|
|
|
|
|
- auditOrgChang (val) {
|
|
|
+ auditOrgChang () {
|
|
|
let auditstepcode = 'SECOND_TRIAL'
|
|
|
- api.getAuditerByFirst(val, auditstepcode, this.$axios)
|
|
|
+ api.getAuditerByFirst(this.auditer, auditstepcode, this.$axios)
|
|
|
.then(res => {
|
|
|
this.secauditerOptions = res.data.item
|
|
|
})
|
|
|
@@ -1655,19 +1670,34 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ getFirAuditerByDept () {
|
|
|
+ let deptid = this.authUser.Profile.DepartmentId
|
|
|
+ this.userOptions = []
|
|
|
+ let auditstepcode = 'FIRST_TRIAL' // 初审人
|
|
|
+ api.getFirAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
|
|
|
+ this.firOptions = res.data.item
|
|
|
+ // if (res.data.item != null && res.data.item.length > 0) {
|
|
|
+ // this.AuditorForm.UserId = res.data.item[0].Id
|
|
|
+ // }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
selectAuditOrg () {
|
|
|
+ this.getFirAuditerByDept()
|
|
|
+ this.changeOrgUnit(this.selectDept)
|
|
|
if (this.IsCompanyUser === 0) {
|
|
|
this.dialogVisible = true
|
|
|
} else if (this.IsCompanyUser === 1) {
|
|
|
this.dialogVisibleCom = true
|
|
|
}
|
|
|
},
|
|
|
- chooseAuditorShow () {
|
|
|
- this.$refs['chooseAuditor'].getorgtreelist(
|
|
|
- this.formData.SupplierTypeCode
|
|
|
- )
|
|
|
- this.chooseAuditorVisible = true
|
|
|
- },
|
|
|
+ // chooseAuditorShow () {
|
|
|
+ // this.$refs['chooseAuditor'].getorgtreelist(
|
|
|
+ // this.formData.SupplierTypeCode
|
|
|
+ // )
|
|
|
+ // this.chooseAuditorVisible = true
|
|
|
+ // },
|
|
|
setAuditer (val, name) {
|
|
|
this.auditer = val
|
|
|
this.auditerName = name
|