优化
This commit is contained in:
@@ -42,11 +42,14 @@ test('贴标货物明细支持手动添加和编辑', () => {
|
||||
assert.match(view, /<el-input v-model="row\.sku" :readonly="props\.service === 'disposal'"/)
|
||||
})
|
||||
|
||||
test('贴标货物明细拆分为箱唛换标和 SKU 换标页签', () => {
|
||||
assert.match(view, /el-tab-pane label="箱唛换标" name="carton"/)
|
||||
assert.match(view, /el-tab-pane label="SKU 换标" name="sku"/)
|
||||
test('贴标货物明细在同一页面支持三种换标类型', () => {
|
||||
assert.match(view, /el-radio-group v-model="labelingMode" aria-label="换标类型"/)
|
||||
assert.match(view, /el-radio-button value="carton">只换箱唛/)
|
||||
assert.match(view, /el-radio-button value="sku">只换 SKU 标签/)
|
||||
assert.match(view, /el-radio-button value="carton_and_sku">SKU 和箱唛都换/)
|
||||
assert.doesNotMatch(view, /el-tab-pane label="箱唛换标"/)
|
||||
assert.doesNotMatch(view, /el-tab-pane label="SKU 换标"/)
|
||||
assert.match(view, /interface SkuRelabelRow/)
|
||||
assert.match(view, /来源库存箱 \*/)
|
||||
assert.match(view, /我方箱唛 \*/)
|
||||
assert.match(view, /换标数量(件)\*/)
|
||||
assert.match(view, /buildSkuRelabelItems/)
|
||||
@@ -55,6 +58,15 @@ test('贴标货物明细拆分为箱唛换标和 SKU 换标页签', () => {
|
||||
assert.doesNotMatch(view, /SKU 换标提交待接口接入/)
|
||||
})
|
||||
|
||||
test('箱唛相关换标必须选择四选一派送方式', () => {
|
||||
assert.match(view, /label="卡车派送" value="TRUCK"/)
|
||||
assert.match(view, /label="快递派送" value="EXPRESS"/)
|
||||
assert.match(view, /label="卡车自提" value="TRUCK_PICKUP"/)
|
||||
assert.match(view, /label="快递自提" value="EXPRESS_PICKUP"/)
|
||||
assert.match(api, /RelabelDeliveryMethod = 'TRUCK' \| 'EXPRESS' \| 'TRUCK_PICKUP' \| 'EXPRESS_PICKUP'/)
|
||||
assert.match(view, /labelingMode\.value !== 'sku' && !form\.deliveryMethod/)
|
||||
})
|
||||
|
||||
test('一次申请单选入仓单且每项保留原库存归属', () => {
|
||||
assert.doesNotMatch(view, /multiple filterable collapse-tags/)
|
||||
assert.match(view, /String\(candidate\.inboundOrderId\) === inboundOrderId/)
|
||||
|
||||
Reference in New Issue
Block a user