Browse Source

取消盘点创建时时间限制

fix_bug_pro20231227
qb 1 year ago
parent
commit
340f29dc45
  1. 41
      src/views/distribution/checkInventoryTask/createTask.vue

41
src/views/distribution/checkInventoryTask/createTask.vue

@ -453,20 +453,19 @@ export default {
*/
timeChange(value) {
//
const _time = new Date().getTime();
//
const _isTime = value.every(item => {
console.log('item.toLocaleString() :>> ', item.toLocaleString());
return _time < item.getTime();
});
if (!_isTime) {
this.form.time = [];
return this.$message({
type: 'error',
message: '开始时间不能小于当前时间',
});
}
// const _time = new Date().getTime();
// //
// const _isTime = value.every(item => {
// console.log('item.toLocaleString() :>> ', item.toLocaleString());
// return _time < item.getTime();
// });
// if (!_isTime) {
// this.form.time = [];
// return this.$message({
// type: 'error',
// message: '',
// });
// }
// _time.toLocaleTimeString()
// console.log('_time.toLocaleTimeString() :>> ', _time.toLocaleString());
},
@ -766,15 +765,15 @@ export default {
this.view = true;
console.log(this.view);
this.form = row;
console.log(row,'任务信息');
console.log(row, '任务信息');
console.log(this.$router);
this.$router.push({
path: '/distribution/checkInventoryTask/createTaskfrom',
query: {
id: row.id,
// ...
}
});
path: '/distribution/checkInventoryTask/createTaskfrom',
query: {
id: row.id,
// ...
},
});
},
/**

Loading…
Cancel
Save