Commit af74a79f by wusiyi

fix: 修改podus补货校验复制

parent 8a4496b4
......@@ -26,7 +26,7 @@
{{ '选择异常' }}
</el-button>
<el-button type="success" @click="copyAllCode('factoryOrderNumber')">
{{ '复制工厂订单号' }}
{{ '复制结果' }}
</el-button>
</div>
<div style="height: 50vh; overflow: auto">
......@@ -119,7 +119,17 @@ const copyAllCode = (field: string) => {
if (!selectedList.value.length) {
return ElMessage.warning('请先选择数据')
}
const str = selectedList.value.map((el) => el[field as keyof IList]).join(',')
const str = selectedList.value
.map(
(el) =>
'工厂订单号:' +
el['factoryOrderNumber'] +
',' +
'处理结果:' +
el['message'],
)
.join('\n')
console.log('复制店铺单号', str)
copyText(str)
......@@ -128,7 +138,6 @@ const copyAllCode = (field: string) => {
function closedFn() {
if (key === 'stockOut') return
emits('confirm', selectedList.value)
}
// 监听弹窗状态
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment