优化样式
This commit is contained in:
@@ -103,6 +103,27 @@ test('仓储转运换标资料按步骤分组展示', () => {
|
||||
assert.match(view, /warehouse-transfer-relabel/)
|
||||
})
|
||||
|
||||
test('仓储转运需要换标时上传总文件并挂到关联换标单', () => {
|
||||
const transferRelabelSection = view.split('warehouse-transfer-relabel">')[1]?.split('warehouse-transfer-submit-bar')[0] || ''
|
||||
assert.match(transferRelabelSection, /warehouse-transfer-total-files/)
|
||||
assert.match(transferRelabelSection, />贴标总文件</)
|
||||
assert.match(transferRelabelSection, />箱唛总文件</)
|
||||
assert.match(transferRelabelSection, />SKU 总文件</)
|
||||
assert.match(view, /action === 'submit' && requiresBothTotalFiles\.value/)
|
||||
assert.match(view, /const submitted = await submitTransfer\(transferNo\)/)
|
||||
assert.match(view, /submitted\.relabelNo \|\| created\.relabelNo/)
|
||||
assert.match(view, /uploadRelabelFile\(relabelNo, 'CARTON_TOTAL', cartonTotalFile\.value\)/)
|
||||
assert.match(view, /uploadRelabelFile\(relabelNo, 'SKU_TOTAL', skuTotalFile\.value\)/)
|
||||
assert.match(view, /转运单已提交,附件待补传/)
|
||||
})
|
||||
|
||||
test('仓储转运换标总文件与明细模板在桌面端左右排列', () => {
|
||||
assert.match(view, /class="warehouse-transfer-file-groups"/)
|
||||
assert.match(view, /\.warehouse-transfer-file-groups\{display:grid;grid-template-columns:minmax\(0,1\.15fr\) minmax\(360px,\.85fr\)/)
|
||||
assert.match(view, /\.warehouse-transfer-total-files,\.warehouse-transfer-template-group\{height:100%;margin:0\}/)
|
||||
assert.match(view, /@media\(max-width:1180px\)\{\.warehouse-transfer-file-groups\{grid-template-columns:minmax\(0,1fr\)\}\}/)
|
||||
})
|
||||
|
||||
test('上门提货不提交物流号,需要换标时随转运单登记申请', () => {
|
||||
assert.match(view, /trackingNo:\s*form\.deliveryMethod === 'CUSTOMER_DELIVERY'\s*\?[^:]+:\s*undefined/)
|
||||
assert.match(view, /relabelItems: form\.relabel/)
|
||||
|
||||
Reference in New Issue
Block a user