Commit 555a596d by 尹亚亭

a

parent 5f9b2e4b
...@@ -18,8 +18,9 @@ ...@@ -18,8 +18,9 @@
<div class="select"> <div class="select">
<el-select v-model="gardenValue" placeholder="请选择"> <el-select v-model="gardenValue" placeholder="请选择">
<el-option <el-option
v-for="item in garden" v-for="(item,index) in garden"
:key="item.value" :key="item.value"
@click.native="getAreaIndex(index)"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
></el-option> ></el-option>
...@@ -61,7 +62,7 @@ ...@@ -61,7 +62,7 @@
<div class="cell-group"> <div class="cell-group">
<span> <span>
<span>*</span> <!-- <span>*</span> -->
方案备注: 方案备注:
</span> </span>
<el-input type="textarea" :rows="3" placeholder="请输入该方案其他备注" v-model="notes"></el-input> <el-input type="textarea" :rows="3" placeholder="请输入该方案其他备注" v-model="notes"></el-input>
...@@ -84,69 +85,80 @@ export default { ...@@ -84,69 +85,80 @@ export default {
natureValue: "", natureValue: "",
industryValue: "文化传媒类", industryValue: "文化传媒类",
tissueValue: "", tissueValue: "",
nature: [], // 注册类型数据
tissue: [], // 产品类型数据
garden: [ garden: [
{ {
value: "上海云上公司", value: "贵州园区",
label: "上海云上公司" label: "贵州园区"
},
{
value: "东莞云上公司",
label: "东莞云上公司"
},
{
value: "东营云上公司",
label: "东营云上公司"
},
{
value: "中山云上公司",
label: "中山云上公司"
},
{
value: "重庆云上公司",
label: "重庆云上公司"
},
{
value: "郑州云上公司",
label: "郑州云上公司"
},
{
value: "贵州云上公司",
label: "贵州云上公司"
},
{
value: "开封云上公司",
label: "开封云上公司"
}
],
nature: [
{
value: "个体户注册",
label: "个体户注册"
},
{
value: "个人独资企业",
label: "个人独资企业"
}
],
tissue: [
{
label: "个体商户注册刻章服务",
value: "个体商户注册刻章服务"
},
{
label: "内资小规模有限公司",
value: "内资小规模有限公司"
}, },
{ {
label: "内资小规模有限公司注册刻章服务", value: "开封园区",
value: "内资小规模有限公司注册刻章服务" label: "开封园区"
} }
], ],
nature: [],
alltissue: [],
notes: "" notes: ""
}; };
}, },
methods: { methods: {
getAreaIndex(index) {
this.natureValue = "";
this.tissueValue = ""; //清空紧接着的后两项的选择
if (index == 0) {
this.nature = [
{
value: "个体商户",
label: "个体商户"
},
{
value: "个人独资企业",
label: "个人独资企业"
},
{
value: "有限合伙企业",
label: "有限合伙企业"
}
];
this.tissue = [
{
label: "个体商户注册刻章服务",
value: "个体商户注册刻章服务"
},
{
label: "个人独资企业注册刻章服务",
value: "个人独资企业注册刻章服务"
},
{
label: "有限合伙企业注册刻章服务",
value: "有限合伙企业注册刻章服务"
}
];
}
if (index == 1) {
this.nature = [
{
value: "个体商户",
label: "个体商户"
},
{
value: "个人独资企业",
label: "个人独资企业"
}
];
this.tissue = [
{
label: "个体商户注册刻章服务",
value: "个体商户注册刻章服务"
},
{
label: "个人独资企业注册刻章服务",
value: "个人独资企业注册刻章服务"
}
];
}
}, // 获取地区索引
submitAdd() { submitAdd() {
// 非空判断 // 非空判断
if (this.gardenValue == "") { if (this.gardenValue == "") {
...@@ -161,10 +173,6 @@ export default { ...@@ -161,10 +173,6 @@ export default {
this.$message("云公司产品类型不能为空"); this.$message("云公司产品类型不能为空");
return; return;
} }
if (this.notes == "") {
this.$message("云公司注册方案备注不能为空");
return;
}
console.log( console.log(
"按提交按钮的提交前的参数:", "按提交按钮的提交前的参数:",
...@@ -184,7 +192,8 @@ export default { ...@@ -184,7 +192,8 @@ export default {
{ {
actionType: "submitProgramme", actionType: "submitProgramme",
actionBody: { actionBody: {
needNo: "N202002141324bupnr8L", // needNo: "N202002141324bupnr8L",
needNo: this.$route.query.needNo,
solutionContent: { solutionContent: {
bizType: "companyreg_cloud", // 注册类型: bizType: "companyreg_cloud", // 注册类型:
notes: this.notes, // 方案备注 notes: this.notes, // 方案备注
...@@ -200,7 +209,14 @@ export default { ...@@ -200,7 +209,14 @@ export default {
businessScope: "", // 经营范围 businessScope: "", // 经营范围
// 云上公司注册方案 // 云上公司注册方案
regPark: this.gardenValue, // 注册园区 regPark: this.gardenValue, // 注册园区
regType: this.natureValue, // 注册类型 regType:
this.natureValue == "个体商户"
? "person"
: this.natureValue == "个人独资企业"
? "enterprise"
: this.natureValue == "有限合伙企业"
? "enterprise"
: "", // 注册类型
productType: this.tissueValue // 产品类型 productType: this.tissueValue // 产品类型
} }
} }
...@@ -208,7 +224,8 @@ export default { ...@@ -208,7 +224,8 @@ export default {
}, },
{ {
headers: { headers: {
token: "3260d5a2452441dd93ecc7ecb35f6dc0", // token: "3260d5a2452441dd93ecc7ecb35f6dc0",
token: this.$route.query.token,
userpin: "39fcf7bc5f6c4e55a1f85d750e37316b" userpin: "39fcf7bc5f6c4e55a1f85d750e37316b"
} }
} }
...@@ -218,6 +235,10 @@ export default { ...@@ -218,6 +235,10 @@ export default {
if (res.data.status == 0) { if (res.data.status == 0) {
this.$message("公司注册方案提交成功"); this.$message("公司注册方案提交成功");
// 清空 字段 // 清空 字段
this.gardenValue = "";
this.natureValue = "";
this.tissueValue = "";
this.notes = "";
} else { } else {
this.$message("公司注册方案提交失败"); this.$message("公司注册方案提交失败");
} }
......
...@@ -24,15 +24,16 @@ ...@@ -24,15 +24,16 @@
<div class="region"> <div class="region">
<el-select v-model="region" placeholder="请选择"> <el-select v-model="region" placeholder="请选择">
<el-option <el-option
v-for="item in options" v-for="(item,index) in options"
:key="item.value" :key="index"
@click.native="getAreaIndex(index)"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
></el-option> ></el-option>
</el-select> </el-select>
<el-select v-model="value" placeholder="请选择"> <el-select v-model="value" placeholder="请选择">
<el-option <el-option
v-for="item in options" v-for="item in cities"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
...@@ -58,7 +59,7 @@ ...@@ -58,7 +59,7 @@
</div> </div>
<div class="cell-group"> <div class="cell-group">
<span> <span>
<span>*</span> <!-- <span>*</span> -->
公司性质: 公司性质:
</span> </span>
<div class="select"> <div class="select">
...@@ -101,14 +102,14 @@ ...@@ -101,14 +102,14 @@
</div> </div>
<div class="cell-group"> <div class="cell-group">
<span> <span>
<span>*</span> <!-- <span>*</span> -->
经营范围: 经营范围:
</span> </span>
<el-input type="textarea" :rows="3" placeholder="请自定义输入公司经营范围,每个经营项以“ ;”隔开" v-model="scope"></el-input> <el-input type="textarea" :rows="3" placeholder="请自定义输入公司经营范围,每个经营项以“ ;”隔开" v-model="scope"></el-input>
</div> </div>
<div class="cell-group"> <div class="cell-group">
<span> <span>
<span>*</span> <!-- <span>*</span> -->
方案备注: 方案备注:
</span> </span>
<el-input v-model="notes" placeholder="请输入该方案其他备注"></el-input> <el-input v-model="notes" placeholder="请输入该方案其他备注"></el-input>
...@@ -125,16 +126,167 @@ export default { ...@@ -125,16 +126,167 @@ export default {
data() { data() {
return { return {
name: "", name: "",
cities: [], // 省对应的城市区域集合 实现联动
options: [ options: [
{ {
// value: "选项1", label: "北京市",
// label: "黄金糕" value: "北京市",
value: "北京", children: [
label: "北京" {
value: "朝阳区",
label: "朝阳区"
},
{
value: "海淀区",
label: "海淀区"
},
{
value: "顺义区",
label: "顺义区"
},
{
value: "东城区",
label: "东城区"
},
{
value: "西城区",
label: "西城区"
},
{
value: "丰台区",
label: "丰台区"
},
{
value: "石景山区",
label: "石景山区"
}
]
},
{
value: "上海市",
label: "上海市",
children: [
{
value: "杨浦区",
label: "杨浦区"
},
{
value: "嘉定区",
label: "嘉定区"
},
{
value: "崇明区",
label: "崇明区"
}
]
},
{
label: "杭州市",
value: "杭州市",
children: [
{
value: "西湖区",
label: "西湖区"
},
{
value: "江干区",
label: "江干区"
},
{
value: "余杭区",
label: "余杭区"
},
{
value: "上城区",
label: "上城区"
},
{
value: "拱墅区",
label: "拱墅区"
},
{
value: "滨江区",
label: "滨江区"
},
{
value: "下城区",
label: "下城区"
},
{
value: "萧山区",
label: "萧山区"
}
]
},
{
value: "深圳市",
label: "深圳市",
children: [
{
value: "南山区",
label: "南山区"
},
{
value: "福田区",
label: "福田区"
},
{
value: "罗湖区",
label: "罗湖区"
},
{
value: "龙岗区",
label: "龙岗区"
},
{
value: "前海自贸区",
label: "前海自贸区"
}
]
},
{
label: "成都市",
value: "成都市",
children: [
{
value: "锦江区",
label: "锦江区"
},
{
value: "高新区",
label: "高新区"
},
{
value: "武侯区",
label: "武侯区"
},
{
value: "金牛区",
label: "金牛区"
},
{
value: "青羊区",
label: "青羊区"
},
{
value: "天府新区",
label: "天府新区"
}
]
}, },
{ {
value: "上海", label: "广州市",
label: "上海" value: "广州市",
children: [
{
value: "天河区",
label: "天河区"
},
{
value: "越秀区",
label: "越秀区"
}
]
} }
], ],
region: "", region: "",
...@@ -173,20 +325,20 @@ export default { ...@@ -173,20 +325,20 @@ export default {
], ],
nature: [ nature: [
{ {
value: "有限公司", value: "股份",
label: "有限公司" label: "股份"
},
{
value: "股份有限公司",
label: "股份有限公司"
}, },
{ {
value: "集团有限公司", value: "集团",
label: "集团有限公司" label: "集团"
} }
], ],
tissue: [ tissue: [
{ {
value: "有限公司",
label: "有限公司"
},
{
label: "个人独资", label: "个人独资",
value: "个人独资" value: "个人独资"
}, },
...@@ -212,8 +364,11 @@ export default { ...@@ -212,8 +364,11 @@ export default {
] ]
}; };
}, },
created() {},
methods: { methods: {
getAreaIndex(index) {
this.value = ""; // 点击 省级 城市区域的value清空
this.cities = this.options[index].children;
}, // 获取地区索引
submitAdd() { submitAdd() {
// 非空判断 // 非空判断
if (this.name == "") { if (this.name == "") {
...@@ -233,10 +388,10 @@ export default { ...@@ -233,10 +388,10 @@ export default {
this.$message("公司注册纳税人类型不能为空"); this.$message("公司注册纳税人类型不能为空");
return; return;
} }
if (this.natureValue == "") { // if (this.natureValue == "") {
this.$message("公司注册公司性质不能为空"); // this.$message("公司注册公司性质不能为空");
return; // return;
} // } // 公司性质 股份和 集团 在提交给后端后,可以为空
if (this.tissueValue == "") { if (this.tissueValue == "") {
this.$message("公司注册组织类型不能为空"); this.$message("公司注册组织类型不能为空");
return; return;
...@@ -245,14 +400,6 @@ export default { ...@@ -245,14 +400,6 @@ export default {
this.$message("公司注册从事行业不能为空"); this.$message("公司注册从事行业不能为空");
return; return;
} }
if (this.scope == "") {
this.$message("公司注册经营范围不能为空");
return;
}
if (this.notes == "") {
this.$message("公司注册方案备注不能为空");
return;
}
console.log( console.log(
"按提交按钮的提交前的参数:", "按提交按钮的提交前的参数:",
...@@ -282,7 +429,8 @@ export default { ...@@ -282,7 +429,8 @@ export default {
{ {
actionType: "submitProgramme", actionType: "submitProgramme",
actionBody: { actionBody: {
needNo: "N202002141324bupnr8L", // needNo: "N202002141324bupnr8L",
needNo: this.$route.query.needNo,
solutionContent: { solutionContent: {
bizType: "companyreg", // 注册类型: bizType: "companyreg", // 注册类型:
notes: this.notes, // 方案备注 notes: this.notes, // 方案备注
...@@ -306,7 +454,8 @@ export default { ...@@ -306,7 +454,8 @@ export default {
}, },
{ {
headers: { headers: {
token: "3260d5a2452441dd93ecc7ecb35f6dc0", // token: "3260d5a2452441dd93ecc7ecb35f6dc0",
token: this.$route.query.token,
userpin: "39fcf7bc5f6c4e55a1f85d750e37316b" userpin: "39fcf7bc5f6c4e55a1f85d750e37316b"
} }
} }
...@@ -316,6 +465,15 @@ export default { ...@@ -316,6 +465,15 @@ export default {
if (res.data.status == 0) { if (res.data.status == 0) {
this.$message("公司注册方案提交成功"); this.$message("公司注册方案提交成功");
// 清空 字段 // 清空 字段
this.name = "";
this.region = "";
this.value = "";
this.taxpayerValue = "";
this.natureValue = "";
this.tissueValue = "";
this.industryValue = "";
this.scope = "";
this.notes = "";
} else { } else {
this.$message("公司注册方案提交失败"); this.$message("公司注册方案提交失败");
} }
...@@ -413,8 +571,12 @@ export default { ...@@ -413,8 +571,12 @@ export default {
} }
> .industry { > .industry {
display: inline-block; display: inline-block;
width: 430px; /* width: 430px; */
width: 600px;
.el-radio-button__inner { .el-radio-button__inner {
padding: 0;
line-height: 34px;
text-align: center;
width: 100px; width: 100px;
height: 34px; height: 34px;
background: rgba(255, 255, 255, 1); background: rgba(255, 255, 255, 1);
...@@ -446,7 +608,7 @@ export default { ...@@ -446,7 +608,7 @@ export default {
.el-radio-button__inner:hover { .el-radio-button__inner:hover {
color: #333; color: #333;
} }
.el-radio-button:nth-child(4n) { .el-radio-button:nth-child(5n) {
.el-radio-button__inner { .el-radio-button__inner {
margin-right: 0; margin-right: 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment