Commit af74a79f by wusiyi

fix: 修改podus补货校验复制

parent 8a4496b4
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
{{ '选择异常' }} {{ '选择异常' }}
</el-button> </el-button>
<el-button type="success" @click="copyAllCode('factoryOrderNumber')"> <el-button type="success" @click="copyAllCode('factoryOrderNumber')">
{{ '复制工厂订单号' }} {{ '复制结果' }}
</el-button> </el-button>
</div> </div>
<div style="height: 50vh; overflow: auto"> <div style="height: 50vh; overflow: auto">
...@@ -119,7 +119,17 @@ const copyAllCode = (field: string) => { ...@@ -119,7 +119,17 @@ const copyAllCode = (field: string) => {
if (!selectedList.value.length) { if (!selectedList.value.length) {
return ElMessage.warning('请先选择数据') 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) console.log('复制店铺单号', str)
copyText(str) copyText(str)
...@@ -128,7 +138,6 @@ const copyAllCode = (field: string) => { ...@@ -128,7 +138,6 @@ const copyAllCode = (field: string) => {
function closedFn() { function closedFn() {
if (key === 'stockOut') return if (key === 'stockOut') return
emits('confirm', selectedList.value) 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