优化
This commit is contained in:
@@ -6,6 +6,17 @@ const view = readFileSync(new URL('./WarehouseServiceView.vue', import.meta.url)
|
||||
const api = readFileSync(new URL('../api/warehouseServices.ts', import.meta.url), 'utf8')
|
||||
const warehouseApi = readFileSync(new URL('../../first-leg/api/firstLeg.ts', import.meta.url), 'utf8')
|
||||
|
||||
test('总文件可以独立清除并重选同名文件,提交时禁止清除', () => {
|
||||
assert.match(view, /@click="clearCreateTotalFile\('CARTON_TOTAL'\)"/)
|
||||
assert.match(view, /@click="clearCreateTotalFile\('SKU_TOTAL'\)"/)
|
||||
const clear = view.slice(view.indexOf('function clearCreateTotalFile'), view.indexOf('function chooseCreateTotalFile'))
|
||||
assert.match(clear, /if \(saving.value\) return/)
|
||||
assert.match(clear, /file.value = null/)
|
||||
assert.match(clear, /input.value.value = ''/)
|
||||
assert.match(view, /aria-label="清除箱唛总文件" :disabled="saving"/)
|
||||
assert.match(view, /aria-label="清除 SKU 总文件" :disabled="saving"/)
|
||||
})
|
||||
|
||||
test('贴标申请从当前客户仍有库存的历史入仓单选择来源', () => {
|
||||
assert.match(view, /海外操作仓(中转仓)/)
|
||||
assert.match(view, /选择有库存的历史入仓单/)
|
||||
@@ -163,3 +174,7 @@ test('客户详情进入页面后直接回显完工照片并支持大图预览',
|
||||
assert.match(view, /:preview-src-list="completionPhotoPreviewUrls"/)
|
||||
assert.doesNotMatch(view, />照片 \{\{ index \+ 1 \}\}<\/el-button>/)
|
||||
})
|
||||
|
||||
test('进入复核后客户订单回显换标完成状态', () => {
|
||||
assert.match(view, /\['CUSTOMER_CONFIRM_PENDING', 'READY_FOR_OUTBOUND', 'COMPLETED'\]\.includes\(value\) \? '换标完成'/)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user