资质审核 角色回显问题

ywj_dev
wangwei 2 years ago
parent 3cb83ffcb6
commit ddafe0c629

@ -42,6 +42,18 @@ export function auditCompany(query) {
} }
export function getRoId(params) {
return axios(
{
url: "/api/pur/supCompany/getRoId",
method: "get",
params: params
}
);
}
export function addCompany(query) { export function addCompany(query) {
return axios( return axios(
{ {

@ -135,7 +135,7 @@
<el-select v-model="inputQuery.roleId" placeholder="请选择角色" style="width: 90%" clearable> <el-select v-model="inputQuery.roleId" placeholder="请选择角色" style="width: 90%" clearable>
<el-option <el-option
v-for="item in roleList" v-for="item in roleList"
:key="item.roleName" :key="item.roleId"
:label="item.roleName" :label="item.roleName"
:value="item.roleId"> :value="item.roleId">
<span style="float: left">{{ item.roleName }}</span> <span style="float: left">{{ item.roleName }}</span>
@ -245,7 +245,7 @@
</template> </template>
<script> <script>
import {modifyCompany, auditCompany,printSupCert, verifyTemplateFile} from "../../../api/purchase/supCompany"; import {modifyCompany, auditCompany,printSupCert, verifyTemplateFile,getRoId} from "../../../api/purchase/supCompany";
import { import {
provinceAndCityData, provinceAndCityData,
regionData, regionData,
@ -407,6 +407,8 @@ export default {
}; };
}, },
created() { created() {
debugger
this.getRoIds();
this.getCompanyCertList(); this.getCompanyCertList();
this.customerlist(); this.customerlist();
this.selectedOptions = this.inputQuery.areaCode.split(","); this.selectedOptions = this.inputQuery.areaCode.split(",");
@ -438,7 +440,6 @@ export default {
}).catch(() => { }).catch(() => {
}); });
}, },
onRejectSubmit() { onRejectSubmit() {
this.$prompt('请输入驳回意见', '提示', { this.$prompt('请输入驳回意见', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
@ -541,6 +542,13 @@ export default {
} }
, ,
getRoIds(){
let params={companyId:this.inputQuery.customerId}
getRoId(params).then((res) =>{
debugger
this.inputQuery.roleId=parseInt(res.data.roleId);
})
},
getCompanyCertList() { getCompanyCertList() {
this.certLoading = true; this.certLoading = true;
this.certQuery.customerId = this.inputQuery.customerId; this.certQuery.customerId = this.inputQuery.customerId;

Loading…
Cancel
Save