122b46d8 by zhaoqian

权利人

1 parent 000e2cd7
......@@ -222,7 +222,7 @@
<td colspan="3">
<el-select class="formSelect" v-model="item.zjzlbsm">
<el-option
v-for="item in $store.state.zjlxList"
v-for="item in $store.state.zjzlList"
:key="item.bsm"
:label="item.mc"
:value="item.bsm"
......@@ -232,7 +232,7 @@
</td>
</tr>
<!-- <tr :key="item.dh">-->
<tr>
<tr :key="'dh'+item.index">
<td>证件号码</td>
<td colspan="3">
<input type="text" class="formInput" v-model="item.zjh" />
......@@ -368,13 +368,13 @@
zjh: "",
zjzlbsm: "",
},
qllxList: [],
zjlxList: [],
gjList: [],
ssList: [],
xbList: [],
sshyList: [],
gyfsList: [],
// qlrlxList: [],
// zjzlList: [],
// gjList: [],
// ssList: [],
// xbList: [],
// sshyList: [],
// gyfsList: [],
};
},
methods: {
......@@ -474,29 +474,6 @@
});
}
},
getDdic(){
getDdicByMC("权利人类型").then((res)=>{
this.qllxList=res.result;
})
getDdicByMC("证件种类").then((res)=>{
this.zjlxList=res.result;
})
getDdicByMC("国家和地区").then((res)=>{
this.gjList=res.result;
})
getDdicByMC("省市").then((res)=>{
this.ssList=res.result;
})
getDdicByMC("性别").then((res)=>{
this.xbList=res.result;
})
getDdicByMC("所属行业").then((res)=>{
this.sshyList=res.result;
})
getDdicByMC("共有方式").then((res)=>{
this.gyfsList=res.result;
})
},
getQlrInfo(){
console.log("===========================")
console.log(this.bsm)
......@@ -516,7 +493,6 @@
this.getQlrInfo();
},
mounted() {
this.getDdic();
}
};
</script>
......
......@@ -23,7 +23,10 @@ const store = new Vuex.Store({
zrzbsm: '',
xmmc: '',
zdmj: '',
zdzl: ''
zdzl: '',
qllxList: [],
zjlxList: [],
gyfsList: [],
},
modules: {
user,
......
......@@ -250,7 +250,8 @@ export default {
s.ssList = s.ssList.length == 0 ?await this.getDicData("省市") : s.ssList;
s.qlrlxList = s.qlrlxList.length == 0 ?await this.getDicData("权利人类型") : s.qlrlxList;
s.xbList = s.xbList.length == 0 ? await this.getDicData("性别") : s.xbList;
s.sshyList = s.sshyList.length == 0 ?await this.getDicData("国民经济行业分类代码") : s.sshyList;
s.sshyList = s.sshyList.length == 0 ?await this.getDicData("所属行业") : s.sshyList;
s.gyfsList = s.gyfsList.length == 0 ?await this.getDicData("共有方式") : s.gyfsList;
},
async getDicData(name) {
return await getDdicByMC(name).then((res)=> {
......