添加订单信息
- + + + 线下 @@ -14,6 +16,8 @@ 微信 + + @@ -21,9 +25,13 @@ + + + + @@ -34,9 +42,13 @@ + + ¥ {{form.payPrice}} + + @@ -44,6 +56,8 @@ + +
高级配置
@@ -102,11 +116,11 @@ export default { customizedDemand: '' //定制需求 }, rules: { - payType: [{ required: true, message: "请选择类型", trigger: "blur" }], - chargingTemplateId: [{ required: true, message: "请选择模版", trigger: "blur" }], - modelFunctionId: [{ required: true, message: "请选择模块", trigger: "blur" }], - timeTypeId: [{ required: true, message: "请选择时长", trigger: "blur" }], - communityId: [{ required: true, message: "请选择小区", trigger: "blur" }], + payType: [{ required: true, message: "请选择类型", trigger: "change" }], + chargingTemplateId: [{ required: true, message: "请选择模版", trigger: "change" }], + modelFunctionId: [{ required: true, message: "请选择模块", trigger: "change" }], + timeTypeId: [{ required: true, message: "请选择时长", trigger: "change" }], + communityId: [{ required: true, message: "请选择小区", trigger: "change" }], }, comData: [], //小区列表 //功能列表 @@ -149,10 +163,12 @@ export default { modelFunctionId: this.form.modelFunctionId, timeTypeId: this.form.timeTypeId }; - calcAmount(obj).then(res => { - let data = res.data; - this.form.payPrice = data * 1 - }); + if(obj.modelFunctionId.length != 0) { + calcAmount(obj).then(res => { + let data = res.data; + this.form.payPrice = data * 1 + }); + } } }, modelChange(val) { @@ -204,12 +220,16 @@ export default { } }, addConfirm() { - createOrder(this.form).then((res) => { - if (res.code === 200) { - this.$message.success(res.msg); - this.$router.go(-1); - } else { - this.$message.error(res.msg); + this.$refs.order.validate((valid) => { + if(valid) { + createOrder(this.form).then((res) => { + if (res.code === 200) { + this.$message.success(res.msg); + this.$router.go(-1); + } else { + this.$message.error(res.msg); + } + }) } }) }, @@ -223,5 +243,6 @@ export default { \ No newline at end of file diff --git a/src/views/Basic/home/settled.vue b/src/views/Basic/home/settled.vue index b0adbc7..5ea6d11 100644 --- a/src/views/Basic/home/settled.vue +++ b/src/views/Basic/home/settled.vue @@ -32,7 +32,10 @@ v-model="form.code" style="width: 60%; margin-right: 10px" /> - 获取验证码 + + + {{inCodeGap == false ? '获取验证码' : codeGap+'s后再次获取'}} +
基础信息
- - + @@ -114,23 +116,23 @@ label="营业执照有效期限结束时间(如长期可不选)" prop="licenseTimeEnd" > - + - 请上传法人身份证正面照、反面照,文件大小不超过5mb,支持jpg、png格式 + + 请上传法人身份证正面照、反面照, + 文件大小不超过5mb,支持jpg、png格式 + - 头像面 + 头像面 - 国徽面 + 国徽面 @@ -138,10 +140,10 @@ - 请上传公司营业执照,文件大小不超过5mb,支持jpg、png格式 + + 请上传公司营业执照, + 文件大小不超过5mb,支持jpg、png格式 + 公司营业执照 @@ -152,9 +154,11 @@ 如从事某些特定行业,需要上传对应的资质证书,文件大小不超过5mb,支持jpg、png格式 + 文件大小不超过5mb,支持jpg、png格式 + @@ -195,8 +199,10 @@ diff --git a/src/views/Login/index.vue b/src/views/Login/index.vue index 947d7f7..89be304 100644 --- a/src/views/Login/index.vue +++ b/src/views/Login/index.vue @@ -2,7 +2,7 @@
- 智慧小区后台管理系统 + 小蜜蜂系统控制台