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;
}
};