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

View File

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

View File

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

View File

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