Commit 4028271f by 刘泽奇

Merge branch 'channel-access' of gitlab.gongsibao.com:jiangyong/zhichan into channel-access

parents 2e15fcb8 b4494084
......@@ -68,12 +68,13 @@
</div>
<div class="cell-group submitwrap">
<el-button>提交</el-button>
<el-button @click="submitAdd">提交</el-button>
</div>
</div>
</div>
</template>
<script>
import req from "axios";
export default {
data() {
return {
......@@ -145,7 +146,84 @@ export default {
notes: ""
};
},
methods: {}
methods: {
submitAdd() {
// 非空判断
if (this.gardenValue == "") {
this.$message("云公司注册园区不能为空");
return;
}
if (this.natureValue == "") {
this.$message("云公司注册类型不能为空");
return;
}
if (this.tissueValue == "") {
this.$message("云公司产品类型不能为空");
return;
}
if (this.notes == "") {
this.$message("云公司注册方案备注不能为空");
return;
}
console.log(
"按提交按钮的提交前的参数:",
"注册园区:",
this.gardenValue,
"注册类型:",
this.natureValue,
"产品类型:",
this.tissueValue,
"方案备注:",
this.notes
);
req
.post(
"/api/web/action/icapi/springBoard",
{
actionType: "submitProgramme",
actionBody: {
needNo: "N202002141324bupnr8L",
solutionContent: {
bizType: "companyreg_cloud", // 注册类型:
notes: this.notes, // 方案备注
solution: {
// 公司注册方案
entName: "", //公司名称
province: "", // 注册地区:省
city: "", // 注册地区:市
taxpayerType: "", // 纳税人类型
entNature: "", // 公司性质
organizationType: "", // 组织类型
industry: "", // 从事行业
businessScope: "", // 经营范围
// 云上公司注册方案
regPark: this.gardenValue, // 注册园区
regType: this.natureValue, // 注册类型
productType: this.tissueValue // 产品类型
}
}
}
},
{
headers: {
token: "3260d5a2452441dd93ecc7ecb35f6dc0",
userpin: "39fcf7bc5f6c4e55a1f85d750e37316b"
}
}
)
.then(res => {
console.log("提交公司注册方案", res);
if (res.data.status == 0) {
this.$message("公司注册方案提交成功");
// 清空 字段
} else {
this.$message("公司注册方案提交失败");
}
});
}
}
};
</script>
<style lang="scss">
......
......@@ -234,7 +234,8 @@ export default {
.cell-group {
margin-top: 20px;
box-sizing: border-box;
padding-left: 55px;
/* padding-left: 55px; */
padding-left: 75px;
> span {
display: inline-block;
width: 94px;
......
......@@ -184,6 +184,7 @@
</div>
</template>
<script>
import req from "axios";
export default {
data() {
return {
......@@ -277,6 +278,27 @@ export default {
modifyOrder() {
this.modifyShow = !this.modifyShow;
}
},
created() {
req
.post(
"/api/web/action/icapi/springBoard",
{
actionType: "getProgrammeInfoByNeedNo",
actionBody: {
needNo: "N202002141324bupnr8L"
}
},
{
headers: {
token: "3260d5a2452441dd93ecc7ecb35f6dc0",
userpin: "39fcf7bc5f6c4e55a1f85d750e37316b"
}
}
)
.then(res => {
console.log("获取详情", res);
});
}
};
</script>
......
......@@ -114,24 +114,27 @@
<el-input v-model="notes" placeholder="请输入该方案其他备注"></el-input>
</div>
<div class="cell-group submitwrap">
<el-button>提交</el-button>
<el-button @click="submitAdd">提交</el-button>
</div>
</div>
</div>
</template>
<script>
import req from "axios";
export default {
data() {
return {
name: "",
options: [
{
value: "选项1",
label: "黄金糕"
// value: "选项1",
// label: "黄金糕"
value: "北京",
label: "北京"
},
{
value: "选项2",
label: "双皮奶"
value: "上海",
label: "上海"
}
],
region: "",
......@@ -209,7 +212,116 @@ export default {
]
};
},
methods: {}
created() {},
methods: {
submitAdd() {
// 非空判断
if (this.name == "") {
this.$message("公司注册名称不能为空");
return;
}
if (this.region == "") {
this.$message("公司注册地区省份不能为空");
return;
}
if (this.value == "") {
this.$message("公司注册地区市区不能为空");
return;
}
if (this.taxpayerValue == "") {
this.$message("公司注册纳税人类型不能为空");
return;
}
if (this.natureValue == "") {
this.$message("公司注册公司性质不能为空");
return;
}
if (this.tissueValue == "") {
this.$message("公司注册组织类型不能为空");
return;
}
if (this.industryValue == "") {
this.$message("公司注册从事行业不能为空");
return;
}
if (this.scope == "") {
this.$message("公司注册经营范围不能为空");
return;
}
if (this.notes == "") {
this.$message("公司注册方案备注不能为空");
return;
}
console.log(
"按提交按钮的提交前的参数:",
"公司名称:",
this.name,
"注册地区-省:",
this.region,
"注册地区-市:",
this.value,
"纳税人类型:",
this.taxpayerValue,
"公司性质:",
this.natureValue,
"组织类型:",
this.tissueValue,
"从事行业:",
this.industryValue,
"经营范围:",
this.scope,
"方案备注:",
this.notes
);
req
.post(
"/api/web/action/icapi/springBoard",
{
actionType: "submitProgramme",
actionBody: {
needNo: "N202002141324bupnr8L",
solutionContent: {
bizType: "companyreg", // 注册类型:
notes: this.notes, // 方案备注
solution: {
// 公司注册方案
entName: this.name, //公司名称
province: this.region, // 注册地区:省
city: this.value, // 注册地区:市
taxpayerType: this.taxpayerValue, // 纳税人类型
entNature: this.natureValue, // 公司性质
organizationType: this.tissueValue, // 组织类型
industry: this.industryValue, // 从事行业
businessScope: this.scope, // 经营范围
// 云上公司注册方案
regPark: "", // 注册园区
regType: "", // 注册类型
productType: "" // 产品类型
}
}
}
},
{
headers: {
token: "3260d5a2452441dd93ecc7ecb35f6dc0",
userpin: "39fcf7bc5f6c4e55a1f85d750e37316b"
}
}
)
.then(res => {
console.log("提交公司注册方案", res);
if (res.data.status == 0) {
this.$message("公司注册方案提交成功");
// 清空 字段
} else {
this.$message("公司注册方案提交失败");
}
});
}
}
};
</script>
<style lang="scss">
......
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