统一履约状态和节点日志展示并整理装柜与尾程界面
This commit is contained in:
@@ -40,6 +40,9 @@ describe('PalletLabelPrintDialog', () => {
|
||||
await flushPromises()
|
||||
const dialog = wrapper.getComponent(AppDialog)
|
||||
expect(dialog.props('title')).toBe(dense ? '散货托盘码 · HLCU1723867' : '散货托盘码')
|
||||
expect(dialog.text()).not.toContain('编号规则')
|
||||
expect(dialog.text()).not.toContain('一件代发托盘不在此清单')
|
||||
expect(dialog.find('section[data-tone]').exists()).toBe(false)
|
||||
wrapper.getComponent({ name: 'ElRadioGroup' }).vm.$emit('update:modelValue', 'WAREHOUSE')
|
||||
await flushPromises()
|
||||
wrapper.getComponent({ name: 'ElInputNumber' }).vm.$emit('update:modelValue', 1)
|
||||
@@ -58,7 +61,7 @@ describe('PalletLabelPrintDialog', () => {
|
||||
click.mockRestore()
|
||||
})
|
||||
|
||||
it('shows the server-generated internal code rule and both warehouse codes', async () => {
|
||||
it('keeps server-generated label numbers and warehouse codes without the extra numbering explanation', async () => {
|
||||
const wrapper = mount(PalletLabelPrintDialog, {
|
||||
props: { planId: '10', warehouseId: '20' },
|
||||
global: {
|
||||
@@ -67,7 +70,6 @@ describe('PalletLabelPrintDialog', () => {
|
||||
LoadErrorState: true,
|
||||
Printer: true,
|
||||
'el-button': { template: '<button @click="$emit(\'click\')"><slot /></button>' },
|
||||
'el-alert': { props: ['title'], template: '<p>{{ title }}</p>' },
|
||||
'el-radio-group': { template: '<div><slot /></div>' },
|
||||
'el-radio': { template: '<span><slot /></span>' },
|
||||
'el-select': { template: '<div><slot /></div>' },
|
||||
@@ -83,7 +85,7 @@ describe('PalletLabelPrintDialog', () => {
|
||||
await nextTick()
|
||||
|
||||
expect(preparePalletLabels).toHaveBeenCalledWith('10', '20')
|
||||
expect(wrapper.text()).toContain('HLCU1723867-FBA地址内部编号-三位序号')
|
||||
expect(wrapper.text()).not.toContain('编号规则')
|
||||
expect(wrapper.text()).toContain('ACY2')
|
||||
expect(wrapper.text()).toContain('101')
|
||||
expect(wrapper.text()).toContain('HLCU1723867-101-001')
|
||||
|
||||
Reference in New Issue
Block a user