Commit a5b57acd authored by xiejb's avatar xiejb

高级搜索 重置按钮b报错问题

parent dfa0bc12
......@@ -163,13 +163,13 @@ export default {
titleInitial(model) {
let str = ''
if (this.isJudgeStrNull(model.companyname)) {
str = model.companyname
str = model.companyname + '/'
}
if (this.isJudgeStrNull(model.erp_user)) {
str = str + '/('+ model.erp_user + ')'
str = str + '('+ model.erp_user + ')'
}
if (this.isJudgeStrNull(model.partyOpcode)) {
str = str + '/' + model.partyOpcode
str = str + model.partyOpcode
}
return str
},
......
......@@ -347,17 +347,13 @@ export default {
this.$emit('onsearch', this.moreSearchInfo)
},
onCleanClick() {
this.moreSearchInfo = {
supplier: [], // 供应商
consignor: [], // 货主
goods: '', // 商品
client: [], // 客户
orderNo: '',
time: {
start: getFormateDate(new Date(), 'yyyy-MM-dd'),
end: getFormateDate(new Date(), 'yyyy-MM-dd')
},
}
this.moreSearchInfo.supplier = []
this.moreSearchInfo.consignor = []
this.moreSearchInfo.client = []
this.moreSearchInfo.orderNo = ''
this.moreSearchInfo.goods = ''
this.moreSearchInfo.time.start = getFormateDate(new Date(), 'yyyy-MM-dd')
this.moreSearchInfo.time.end = getFormateDate(new Date(), 'yyyy-MM-dd')
this.onQuickDateChoose(0, '')
// console.log(this.moreSearchInfo)
// this.moreSearchShow = false
......@@ -435,13 +431,13 @@ export default {
// return model.companyname + '/(' + model.erp_user + ')'
let str = ''
if (this.isJudgeStrNull(model.companyname)) {
str = model.companyname
str = model.companyname + '/'
}
if (this.isJudgeStrNull(model.erp_user)) {
str = str + '/('+ model.erp_user + ')'
str = str + '('+ model.erp_user + ')'
}
if (this.isJudgeStrNull(model.partyOpcode)) {
str = str + '/' + model.partyOpcode
str = str + model.partyOpcode
}
return str
},
......
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 to comment