|
@@ -270,7 +270,7 @@
|
|
|
<!-- 添加链属框 -->
|
|
|
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="140px" :inline="true">
|
|
|
- <el-form-item label="企业编号" prop="scyId" v-if="idShow" >
|
|
|
+ <el-form-item label="企业编号" prop="scyId" style="display:none" >
|
|
|
<el-input v-model="form.scyId" disabled />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="企业类型" prop="scrReceiveType">
|
|
@@ -304,7 +304,7 @@
|
|
|
v-for="item in companyList"
|
|
|
:key="item.value"
|
|
|
:label="item.label"
|
|
|
- :value="item.label">
|
|
|
+ :value="item.value">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -397,7 +397,6 @@ export default {
|
|
|
spareTitol: 0,
|
|
|
// 公司数据
|
|
|
companyList: [],
|
|
|
- companyIdList:[],
|
|
|
//链属表格数据
|
|
|
companyRelList: [],
|
|
|
//链属未认证列表数据
|
|
@@ -557,7 +556,6 @@ export default {
|
|
|
this.getList();
|
|
|
this.getSpare();
|
|
|
this.getCompanyList();
|
|
|
- this.getCompanyIdList();
|
|
|
this.getUser();
|
|
|
},
|
|
|
activated() {
|
|
@@ -576,7 +574,6 @@ export default {
|
|
|
this.getList();
|
|
|
this.getSpare();
|
|
|
this.getCompanyList();
|
|
|
- this.getCompanyIdList();
|
|
|
this.getUser();
|
|
|
},
|
|
|
mounted() {
|
|
@@ -667,6 +664,7 @@ export default {
|
|
|
this.$refs.upload.clearFiles();
|
|
|
this.$alert(response.msg, "导入结果", { dangerouslyUseHTMLString: true });
|
|
|
this.getList();
|
|
|
+ this.getSpare();
|
|
|
},
|
|
|
// 提交上传文件
|
|
|
submitFileForm() {
|
|
@@ -706,29 +704,13 @@ export default {
|
|
|
}
|
|
|
);
|
|
|
},
|
|
|
- //查询企业
|
|
|
- getCompanyIdList(query){
|
|
|
- this.loading = true;
|
|
|
- this.companyQueryParams.scyType = '01';
|
|
|
- this.companyQueryParams.scyName = query;
|
|
|
- listCompany(this.companyQueryParams).then(response => {
|
|
|
- if(response){
|
|
|
- if(response.data){
|
|
|
- if(response.data.records.length > 0){
|
|
|
- this.companyIdList = response.data.records;
|
|
|
- this.loading = false;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
//查询所有企业
|
|
|
getCompanyList(){
|
|
|
this.loading = true;
|
|
|
listAllCompany().then(response => {
|
|
|
this.comlist = response.data;
|
|
|
this.listCom = this.comlist.map(item => {
|
|
|
- return { value: item.scyName, label: item.scyName };
|
|
|
+ return { value: item.scyId, label: item.scyName };
|
|
|
});
|
|
|
})
|
|
|
},
|
|
@@ -755,19 +737,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- //清空企业
|
|
|
- clearBoth(){
|
|
|
- this.$set(this.templateForm, "scyId", '');
|
|
|
- this.companyQueryParams.scyType = '01';
|
|
|
- listCompany(this.companyQueryParams).then(response => {
|
|
|
- this.companyIdList = response.data.records;
|
|
|
- })
|
|
|
- },
|
|
|
//选择企业后反显
|
|
|
choice(item){
|
|
|
- let scyName = item;
|
|
|
- if(scyName){
|
|
|
- listCompanyQuery(scyName).then(response => {
|
|
|
+ debugger
|
|
|
+ let scyId = item;
|
|
|
+ if(scyId){
|
|
|
+ listCompanyQuery(scyId).then(response => {
|
|
|
if(response.data.length > 0){
|
|
|
this.$set(this.form, "scySocialCode", response.data[0].scySocialCode);
|
|
|
}else{
|
|
@@ -792,15 +767,7 @@ export default {
|
|
|
},
|
|
|
// 表单重置
|
|
|
reset() {
|
|
|
- this.form = {
|
|
|
- scyId: null,
|
|
|
- scrLaunchType : null,
|
|
|
- scyName: null,
|
|
|
- scySocialCode: null,
|
|
|
- scrContarct : null,
|
|
|
- scrContarctPhone : null,
|
|
|
- scrContarctEmail : null
|
|
|
- };
|
|
|
+ this.clearRemote();
|
|
|
this.resetForm("form");
|
|
|
},
|
|
|
/** 搜索按钮操作 */
|
|
@@ -826,6 +793,7 @@ export default {
|
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
handleAdd() {
|
|
|
+ this.reset();
|
|
|
this.open = true;
|
|
|
this.title = "新增链属";
|
|
|
},
|