|
@@ -35,14 +35,22 @@
|
|
<el-input v-model="corp_certificate_num" style="width:400px"></el-input>
|
|
<el-input v-model="corp_certificate_num" style="width:400px"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="证件类型" width="100px">
|
|
<el-form-item label="证件类型" width="100px">
|
|
- <select name="art-cate" v-model="corp_certificate_type_name" style="height:35px">
|
|
|
|
- <option disabled selected style="display: block;">请选择证件类型</option>
|
|
|
|
- <option v-for="(item,index) in arr "
|
|
|
|
- :key="index"
|
|
|
|
- :value="item.name">{{item.name}}</option>
|
|
|
|
- </select>
|
|
|
|
|
|
+ <el-select name="art-cate" v-model="corp_certificate_type_name" placeholder="选择证件类型" style="height:35px">
|
|
|
|
+ <el-option v-for='item in type_list' :key="item.key" :label="item.label"
|
|
|
|
+ :value="item.key"
|
|
|
|
+ />
|
|
|
|
+ </el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="所属字段表模板" width="200px">
|
|
|
|
+ <el-select name="art-cate" v-model="fieldTemplateId" placeholder="请选择字段表模板" style="height:35px" >
|
|
|
|
+ <el-option v-for="(item,index) in fieldTemplateList "
|
|
|
|
+ :key="index"
|
|
|
|
+ :label="item.templateName"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ />
|
|
|
|
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
<el-button class="model_add_button " size="small" round type="primary" @click="submit()">完成</el-button>
|
|
<el-button class="model_add_button " size="small" round type="primary" @click="submit()">完成</el-button>
|
|
@@ -87,22 +95,36 @@ export default {
|
|
selected5: true,
|
|
selected5: true,
|
|
selected6: false,
|
|
selected6: false,
|
|
input:'',
|
|
input:'',
|
|
|
|
+
|
|
|
|
+
|
|
cooperatorField : [],
|
|
cooperatorField : [],
|
|
cooperatorProduct : [],
|
|
cooperatorProduct : [],
|
|
productStatus : "",
|
|
productStatus : "",
|
|
arr: [{ name: '统一社会信用代码' }, { name: '组织机构代码' }, ],
|
|
arr: [{ name: '统一社会信用代码' }, { name: '组织机构代码' }, ],
|
|
-
|
|
|
|
|
|
+ type_list: [
|
|
|
|
+ {
|
|
|
|
+ key: 1,
|
|
|
|
+ label: "统一社会信用代码"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ key: 2,
|
|
|
|
+ label: "组织机构代码"
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
cooperator_name : this.$route.query.cooperatorName,
|
|
cooperator_name : this.$route.query.cooperatorName,
|
|
corp_certificate_num : this.$route.query.cooperatorNum,
|
|
corp_certificate_num : this.$route.query.cooperatorNum,
|
|
corp_certificate_type_name : "",
|
|
corp_certificate_type_name : "",
|
|
corp_certificate_type : "",
|
|
corp_certificate_type : "",
|
|
fieldTemplateList : "",
|
|
fieldTemplateList : "",
|
|
- fieldTemplateNo : "",
|
|
|
|
|
|
+ fieldTemplateNa : "",
|
|
cooperatorId : this.$route.query.cooperatorId,
|
|
cooperatorId : this.$route.query.cooperatorId,
|
|
cooperatorName : this.$route.query.cooperatorName,
|
|
cooperatorName : this.$route.query.cooperatorName,
|
|
cooperatorNum : this.$route.query.cooperatorNum,
|
|
cooperatorNum : this.$route.query.cooperatorNum,
|
|
createTime : this.$route.query.createTime,
|
|
createTime : this.$route.query.createTime,
|
|
corpCertificateType:this.$route.query.corpCertificateType,
|
|
corpCertificateType:this.$route.query.corpCertificateType,
|
|
|
|
+ templateId:this.$route.query.templateId,
|
|
|
|
+ templateName:this.$route.query.templateName,
|
|
|
|
+ fieldTemplateId:this.$route.query.templateName
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -117,13 +139,13 @@ export default {
|
|
this.corp_certificate_type_name = "统一社会信用代码"
|
|
this.corp_certificate_type_name = "统一社会信用代码"
|
|
else
|
|
else
|
|
this.corp_certificate_type_name = "组织机构代码"
|
|
this.corp_certificate_type_name = "组织机构代码"
|
|
- // fieldTemplateLists().then(
|
|
|
|
- // res=>
|
|
|
|
- // {
|
|
|
|
- // this.fieldTemplateList=res.data.field_template_list;
|
|
|
|
- // console.log(this.fieldTemplateList)
|
|
|
|
- // }
|
|
|
|
- // )
|
|
|
|
|
|
+ fieldTemplateLists().then(
|
|
|
|
+ res=>
|
|
|
|
+ {
|
|
|
|
+ this.fieldTemplateList=res.data.field_template_list;
|
|
|
|
+ console.log(this.fieldTemplateList)
|
|
|
|
+ }
|
|
|
|
+ )
|
|
},
|
|
},
|
|
beforeUpdate() {},
|
|
beforeUpdate() {},
|
|
updated() {},
|
|
updated() {},
|
|
@@ -203,10 +225,14 @@ export default {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/cooperatorDetailed',
|
|
path: '/cooperatorDetailed',
|
|
query: {
|
|
query: {
|
|
|
|
+
|
|
|
|
+ corpCertificateType:this.corpCertificateType,
|
|
cooperatorId : this.cooperatorId,
|
|
cooperatorId : this.cooperatorId,
|
|
cooperatorName: this.cooperatorName,
|
|
cooperatorName: this.cooperatorName,
|
|
cooperatorNum : this.cooperatorNum,
|
|
cooperatorNum : this.cooperatorNum,
|
|
- createTime : this.createTime
|
|
|
|
|
|
+ createTime : this.createTime,
|
|
|
|
+ templateId : this.templateId,
|
|
|
|
+
|
|
}// 要传递的参数
|
|
}// 要传递的参数
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -239,7 +265,7 @@ export default {
|
|
message: '编辑成功',
|
|
message: '编辑成功',
|
|
type: 'success'
|
|
type: 'success'
|
|
});
|
|
});
|
|
- cooperatorEdit(this.cooperatorId, this.cooperator_name, this.corp_certificate_num, this.corp_certificate_type).then(
|
|
|
|
|
|
+ cooperatorEdit(this.cooperatorId, this.cooperator_name, this.corp_certificate_num, this.corp_certificate_type,this.fieldTemplateId).then(
|
|
res=>
|
|
res=>
|
|
{
|
|
{
|
|
this.$router.push({
|
|
this.$router.push({
|