资质审核 角色回显问题

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) {
return axios(
{

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

Loading…
Cancel
Save