From 32c17daabae6ab44c1963ef7e56c648a5133e7d9 Mon Sep 17 00:00:00 2001
From: xiezhijun <15270898033@163.com>
Date: Fri, 8 Jan 2021 20:13:48 +0800
Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E9=A1=B5=E9=9D=A2=E4=BC=98?=
=?UTF-8?q?=E5=8C=96=E3=80=81=E6=9A=82=E5=81=9C=E8=AE=B0=E5=BD=95=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
stdiet-ui/src/views/custom/order/index.vue | 4 ++--
.../src/views/custom/order/orderPause.vue | 23 ++++++++++++++++---
2 files changed, 22 insertions(+), 5 deletions(-)
diff --git a/stdiet-ui/src/views/custom/order/index.vue b/stdiet-ui/src/views/custom/order/index.vue
index e92e9ebe8..aba3bb8f9 100644
--- a/stdiet-ui/src/views/custom/order/index.vue
+++ b/stdiet-ui/src/views/custom/order/index.vue
@@ -250,7 +250,7 @@
-
+
{
this.form = response.data;
- this.form.giveServeDay = this.form.giveServeDay == 0 ? null : parseInt(this.form.giveServeDay+"");
+ this.form.giveServeDay = parseInt(this.form.giveServeDay+"");
this.open = true;
this.title = "修改销售订单";
});
diff --git a/stdiet-ui/src/views/custom/order/orderPause.vue b/stdiet-ui/src/views/custom/order/orderPause.vue
index 12adfd663..afc9d7a4b 100644
--- a/stdiet-ui/src/views/custom/order/orderPause.vue
+++ b/stdiet-ui/src/views/custom/order/orderPause.vue
@@ -145,7 +145,7 @@
-
+
-->
-
+
-
+
@@ -195,6 +195,13 @@
export default {
name: "Pause",
data() {
+ const checkcDateScope = (rule, value, callback) => {
+ if (this.dateScope == null || this.dateScope == undefined || this.dateScope.length == 0) {
+ return callback(new Error('日期范围不能为空'))
+ }
+ callback();
+ }
+
return {
// 遮罩层
loading: true,
@@ -232,6 +239,12 @@
dateScope:[beginTime, endTime],
// 表单校验
rules: {
+ dateScope: [
+ {required: true, trigger: "blur", validator: checkcDateScope}
+ ],
+ reason: [
+ {required: true, message: "暂停理由不能为空", trigger: "blur"}
+ ]
}
};
},
@@ -361,6 +374,10 @@
this.download(response.msg);
}).catch(function() {});
}
+ },
+ checkcDateScope(value){
+ console.log(value[0]);
+ return false;
}
};