This commit is contained in:
2026-08-14 16:06:30 +08:00
parent 1c1c48f8d3
commit d1b4a4d3f3
26 changed files with 187 additions and 29 deletions
@@ -172,7 +172,7 @@ describe('PartnersView real API integration', () => {
it('updates filters locally and only requests after search', async () => {
const wrapper = await mountView()
const keywordInput = wrapper.find('input[placeholder="单位名称、编码、联系人或电话"]')
const keywordInput = wrapper.find('input[placeholder="请输入往来单位名称"]')
await keywordInput.setValue('深圳')
await flushPromises()
@@ -61,7 +61,7 @@ const filters = ref<PartnerFilters>({
})
const appliedFilters = ref<PartnerFilters>({ ...filters.value })
const queryFields = computed<QueryField[]>(() => [
{ key: 'keyword', type: 'input', label: '往来单位关键词', placeholder: '单位名称、编码、联系人或电话' },
{ key: 'keyword', type: 'input', label: '往来单位名称', placeholder: '请输入往来单位名称' },
{
key: 'type',
type: 'select',
@@ -131,7 +131,7 @@ describe('ExpressCompaniesView query and table migration', () => {
it('does not request with edited filters until search is submitted', async () => {
const wrapper = await mountView()
await wrapper.find('input[placeholder="快递公司名称或编码"]').setValue('顺丰')
await wrapper.find('input[placeholder="请输入快递公司名称"]').setValue('顺丰')
await flushPromises()
expect(listPlatformExpressCompanies).toHaveBeenCalledTimes(1)
@@ -45,7 +45,7 @@ type ExpressCompanyFilters = QueryModel & {
const filters = ref<ExpressCompanyFilters>({ keyword: '', status: '' })
const appliedFilters = ref<ExpressCompanyFilters>({ ...filters.value })
const queryFields = computed<QueryField[]>(() => [
{ key: 'keyword', type: 'input', label: '快递公司关键词', placeholder: '快递公司名称或编码', props: { maxlength: 128, 'aria-label': '快递公司关键词' } },
{ key: 'keyword', type: 'input', label: '快递公司名称', placeholder: '请输入快递公司名称', props: { maxlength: 128, 'aria-label': '快递公司名称' } },
{
key: 'status',
type: 'select',