Commit 6ea82874 by LJM

bug

parent c2ce38e3
Showing with 16 additions and 15 deletions
...@@ -682,24 +682,25 @@ export default { ...@@ -682,24 +682,25 @@ export default {
return; return;
} }
var time = new Date();//当前时间 if (status == 1) {
time_arr = this.multipleSelection.map(obj => { var time = new Date();//当前时间
return obj.cp_time; time_arr = this.multipleSelection.map(obj => {
}); return obj.cp_time;
var times = time_arr.filter((item) => {
if (new Date(item) < time) {
return item;
}
});
if (times.length > 0) {
this.$message({
message: '您勾选的数据中,有型号的“上架有效期”低于当前的日期,请先维护上架有效期;',
type: 'warning'
}); });
return; var times = time_arr.filter((item) => {
if (new Date(item) < time) {
return item;
}
});
if (times.length > 0) {
this.$message({
message: '您勾选的数据中,有型号的“上架有效期”低于当前的日期,请先维护上架有效期;',
type: 'warning'
});
return;
}
} }
sku_ids = this.multipleSelection.map(obj => { sku_ids = this.multipleSelection.map(obj => {
return obj.goods_id; return obj.goods_id;
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment