材料管理-日期清除bug修复

This commit is contained in:
jxj_yjl 2023-04-28 18:06:38 +08:00
parent c1c3cdd81e
commit b4fa567591
4 changed files with 24 additions and 23 deletions

View File

@ -603,7 +603,7 @@ export default {
},
data() {
return {
timeValue: '',
timeValue: [],
isShow: false,
deliteShow: false,
detailData: {},
@ -663,10 +663,10 @@ export default {
},
methods: {
//
getTime(val) {
if (val) {
this.searchForm.startTime = val[0]
this.searchForm.endTime = val[1]
getTime() {
if (this.timeValue) {
this.searchForm.startTime = this.timeValue[0]
this.searchForm.endTime = this.timeValue[1]
} else {
this.searchForm.startTime = ''
this.searchForm.endTime = ''
@ -747,7 +747,6 @@ export default {
},
edit(obj) {
console.log('obj=======', obj);
this.title = '编辑入库'
this.dialogShow = true
this.addForm = JSON.parse(JSON.stringify(obj))
@ -822,6 +821,7 @@ export default {
this.getList()
},
refresh() {
this.timeValue=[]
this.searchForm = {}
this.pagInfo.pageNo = 1 //
this.pagInfo.pageSize = 10 //

View File

@ -603,7 +603,7 @@ export default {
},
data() {
return {
timeValue: '',
timeValue: [],
isShow: false,
deliteShow: false,
detailData: {},
@ -663,10 +663,10 @@ export default {
},
methods: {
//
getTime(val) {
if (val) {
this.searchForm.startTime = val[0]
this.searchForm.endTime = val[1]
getTime() {
if (this.timeValue) {
this.searchForm.startTime = this.timeValue[0]
this.searchForm.endTime = this.timeValue[1]
} else {
this.searchForm.startTime = ''
this.searchForm.endTime = ''
@ -820,6 +820,7 @@ export default {
this.getList()
},
refresh() {
this.timeValue=[]
this.searchForm = {}
this.pagInfo.pageNo = 1 //
this.pagInfo.pageSize = 10 //

View File

@ -603,7 +603,7 @@ export default {
},
data() {
return {
timeValue: '',
timeValue: [],
isShow: false,
deliteShow: false,
detailData: {},
@ -663,10 +663,10 @@ export default {
},
methods: {
//
getTime(val) {
if (val) {
this.searchForm.startTime = val[0]
this.searchForm.endTime = val[1]
getTime() {
if (this.timeValue) {
this.searchForm.startTime = this.timeValue[0]
this.searchForm.endTime = this.timeValue[1]
} else {
this.searchForm.startTime = ''
this.searchForm.endTime = ''
@ -821,6 +821,7 @@ export default {
this.getList()
},
refresh() {
this.timeValue=[]
this.searchForm = {}
this.pagInfo.pageNo = 1 //
this.pagInfo.pageSize = 10 //

View File

@ -603,7 +603,7 @@ export default {
},
data() {
return {
timeValue: '',
timeValue: [],
isShow: false,
deliteShow: false,
detailData: {},
@ -663,10 +663,10 @@ export default {
},
methods: {
//
getTime(val) {
if (val) {
this.searchForm.startTime = val[0]
this.searchForm.endTime = val[1]
getTime() {
if (this.timeValue) {
this.searchForm.startTime = this.timeValue[0]
this.searchForm.endTime = this.timeValue[1]
} else {
this.searchForm.startTime = ''
this.searchForm.endTime = ''
@ -745,7 +745,6 @@ export default {
this.materialData = []
this.addForm = {}
},
edit(obj) {
this.title = '编辑出场登记'
this.dialogShow = true
@ -810,7 +809,6 @@ export default {
});
});
},
SizeChange(val) {
this.pagInfo.pageSize = val
this.getList()
@ -820,6 +818,7 @@ export default {
this.getList()
},
refresh() {
this.timeValue=[]
this.searchForm = {}
this.pagInfo.pageNo = 1 //
this.pagInfo.pageSize = 10 //