Commit eff43e41 authored by Smile's avatar Smile Committed by wux

bug225 (web)首页/我发出的/我收到的/控货管理查询条件“编号”输入空格查询不到数据。

parent 287ace7d
...@@ -341,6 +341,9 @@ export default { ...@@ -341,6 +341,9 @@ export default {
if (this.dynamicStatusList){ if (this.dynamicStatusList){
this.queryParams.dynamicStatusList=this.dynamicStatusList this.queryParams.dynamicStatusList=this.dynamicStatusList
} }
if (this.queryParams.searchKey !== null && this.queryParams.searchKey !== ''){
this.queryParams.searchKey = this.queryParams.searchKey.replace(/\s+/g, '');
}
getIssued(this.queryParams).then((r) => { getIssued(this.queryParams).then((r) => {
this.sendOrderList = r.data.list.slice(0, 3) this.sendOrderList = r.data.list.slice(0, 3)
}) })
......
...@@ -273,6 +273,9 @@ export default { ...@@ -273,6 +273,9 @@ export default {
if (this.dynamicStatusList){ if (this.dynamicStatusList){
this.queryParams.dynamicStatusList=this.dynamicStatusList this.queryParams.dynamicStatusList=this.dynamicStatusList
} }
if (this.queryParams.searchKey !== null && this.queryParams.searchKey !== ''){
this.queryParams.searchKey = this.queryParams.searchKey.replace(/\s+/g, '');
}
return Object.assign({}, this.queryParams, timeParams) return Object.assign({}, this.queryParams, timeParams)
}, },
exclude() { exclude() {
......
...@@ -188,6 +188,9 @@ export default { ...@@ -188,6 +188,9 @@ export default {
if (this.dynamicStatusList){ if (this.dynamicStatusList){
this.queryParams.dynamicStatusList=this.dynamicStatusList this.queryParams.dynamicStatusList=this.dynamicStatusList
} }
if (this.queryParams.searchKey !== null && this.queryParams.searchKey !== ''){
this.queryParams.searchKey = this.queryParams.searchKey.replace(/\s+/g, '');
}
return Object.assign({}, this.queryParams, timeParams) return Object.assign({}, this.queryParams, timeParams)
}, },
isChinese() { isChinese() {
......
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