diff --git a/admin.zip b/admin.zip
index d77cbf5..c510f6d 100644
Binary files a/admin.zip and b/admin.zip differ
diff --git a/src/api/basic/console/index.js b/src/api/basic/console/index.js
index f3856d4..692265d 100644
--- a/src/api/basic/console/index.js
+++ b/src/api/basic/console/index.js
@@ -59,4 +59,13 @@ export function userUnbindingCommunity(params) {
method: 'get',
params: params,
})
+}
+
+// 校验公司名称
+export function checkCompanyName(params) {
+ return httpService({
+ url: `/user/settledApplication/checkCompanyName`,
+ method: 'get',
+ params: params,
+ })
}
\ No newline at end of file
diff --git a/src/api/manage/index.js b/src/api/manage/index.js
index 643cdf5..31eff28 100644
--- a/src/api/manage/index.js
+++ b/src/api/manage/index.js
@@ -23,7 +23,7 @@ export function isPass(params) {
return httpService({
url: `/user/settledApplication/isPass`,
method: 'post',
- params: params,
+ data: params,
})
}
diff --git a/src/views/Basic/home/depend/settledForm.js b/src/views/Basic/home/depend/settledForm.js
index d3c5544..53aaa19 100644
--- a/src/views/Basic/home/depend/settledForm.js
+++ b/src/views/Basic/home/depend/settledForm.js
@@ -19,6 +19,23 @@ export const form = {
businessLicenseImgUrls:[],
othersImgUrls:[],
}
+
+//企业名称校验
+import {checkCompanyName} from "@/api/basic/console"
+const handleConfirm = (rule,value,callback) => {
+ if(!value){
+ callback();
+ }else{
+ checkCompanyName({companyName: value}).then(res => {
+ if (res.data == '该企业已入驻') {
+ callback(new Error("该企业已入驻!"));
+ } else {
+ callback();
+ }
+ })
+ }
+}
+
export const rules = {
tel: [
{
@@ -42,9 +59,10 @@ export const rules = {
companyName: [
{
required: true,
- message: "请输入公司名称",
+ message: "请输入企业名称",
trigger: "blur",
- }],
+ },
+ {validator: (rule,value,callback) => handleConfirm(rule,value,callback)}],
socialCreditCode: [
{
required: true,
diff --git a/src/views/Basic/home/newOrder.vue b/src/views/Basic/home/newOrder.vue
index 24df8ca..d402202 100644
--- a/src/views/Basic/home/newOrder.vue
+++ b/src/views/Basic/home/newOrder.vue
@@ -139,7 +139,7 @@ export default {
methods: {
getApi() {
let obj = {pageNum: 1,size: 1000};
- getChargingList(Object.assign(obj, {name: ''})).then(res => {
+ getChargingList(Object.assign(obj, {name: '',status: 1})).then(res => {
let data = res.data.rows;
this.modelData = data
})
@@ -225,6 +225,14 @@ export default {
createOrder(this.form).then((res) => {
if (res.code === 200) {
this.$message.success(res.msg);
+ let data = res.data
+ let routeData = this.$router.resolve({
+ path: '/Manage/Pay',
+ query: {
+ htmls: data
+ }
+ });
+ window.open(routeData.href, '_blank');
this.$router.go(-1);
} else {
this.$message.error(res.msg);
@@ -233,6 +241,7 @@ export default {
}
})
},
+
cancel() {
this.$router.go(-1);
}
diff --git a/src/views/Basic/home/settled.vue b/src/views/Basic/home/settled.vue
index 5ea6d11..491e789 100644
--- a/src/views/Basic/home/settled.vue
+++ b/src/views/Basic/home/settled.vue
@@ -11,32 +11,6 @@
layout="vertical"
:wrapper-col="wrapperCol"
>
-