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" > -
关联账号
- - - - - - - - {{inCodeGap == false ? '获取验证码' : codeGap+'s后再次获取'}} - -
基础信息
@@ -190,6 +164,31 @@ v-model="form.contactsAddressDetail" > +
关联账号
+ + + + + + + {{inCodeGap == false ? '获取验证码' : codeGap+'s后再次获取'}} + +
提交 @@ -231,20 +230,20 @@ export default { }, // 获取验证码 getCode() { - let num = setInterval(() => { - this.inCodeGap = true; - this.codeGap -= 1; - if(this.codeGap < 1) { - clearInterval(num); - if(this.codeGap < 1) { - this.inCodeGap = false; - this.codeGap = 60; - } - } - },1000) sendTelCode({ tel: this.form.tel }).then((res) => { if (res) { - // this.$message.success("取消成功"); + let num = setInterval(() => { + this.inCodeGap = false; + this.inCodeGap = true; + this.codeGap -= 1; + if(this.codeGap < 1) { + clearInterval(num); + if(this.codeGap < 1) { + this.inCodeGap = false; + this.codeGap = 60; + } + } + },1000) this.$message.success(res.msg); } }); diff --git a/src/views/Manage/OrderManage/_addOrder.vue b/src/views/Manage/OrderManage/_addOrder.vue index 6b2a9d0..fa88454 100644 --- a/src/views/Manage/OrderManage/_addOrder.vue +++ b/src/views/Manage/OrderManage/_addOrder.vue @@ -240,6 +240,7 @@ export default { \ No newline at end of file diff --git a/src/views/Manage/SettleRequestManage/_detail.vue b/src/views/Manage/SettleRequestManage/_detail.vue index 18a3aef..c7adeb6 100644 --- a/src/views/Manage/SettleRequestManage/_detail.vue +++ b/src/views/Manage/SettleRequestManage/_detail.vue @@ -122,8 +122,13 @@ export default { this.$router.go(-1); }, auditSubmit(){ - isPass(this.appForm).then( () => { - + isPass(this.appForm).then((res) => { + if (res.code === 200) { + this.$message.success(res.msg); + this.$router.go(-1); + } else { + this.$message.error(res.msg); + } }) this.auditShow = false },