Compare commits

...

2 Commits

Author SHA1 Message Date
Leo
9794bec2ae 1 2026-02-05 12:11:28 +08:00
Leo
7a39dd32cf 1 2026-02-05 12:09:24 +08:00
2 changed files with 7 additions and 15 deletions

View File

@@ -396,7 +396,6 @@ export default {
},
created() {
this.loadERPAccounts();
// 不自动加载列表,等用户选择账号后再加载
},
methods: {
/** 查询闲鱼商品列表 */
@@ -420,6 +419,11 @@ export default {
loadERPAccounts() {
getERPAccounts().then(response => {
this.erpAccountList = response.data || [];
// 自动将第一个ERP账号作为参数并调用列表数据
if (this.erpAccountList.length > 0 && !this.queryParams.appid) {
this.queryParams.appid = this.erpAccountList[0].value;
this.getList();
}
});
},
/** 加载会员名列表 */

View File

@@ -1819,29 +1819,17 @@ export default {
return 'info' // 其他状态
},
/** 准备查询参数:去除空格并在关键词搜索时清空日期 */
/** 准备查询参数:去除空格,保留日期等所有搜索条件 */
prepareQueryParams() {
const textKeys = ['remark', 'orderSearch', 'distributionMark', 'modelNumber', 'link', 'buyer', 'address', 'status']
let hasKeyword = false
textKeys.forEach(key => {
const value = this.queryParams[key]
if (typeof value === 'string') {
const trimmed = value.trim()
if (trimmed) {
this.queryParams[key] = trimmed
hasKeyword = true
} else {
this.queryParams[key] = undefined
}
this.queryParams[key] = trimmed || undefined
}
})
if (hasKeyword) {
this.dateRange = []
this.queryParams.beginTime = null
this.queryParams.endTime = null
}
},
/** 退货复制 */