Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
53681b11
Commit
53681b11
authored
Dec 17, 2025
by
qinjianhui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_order_select' into release
parents
c2097860
77a2f776
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
290 additions
and
75 deletions
+290
-75
src/components/RightClickMenu.vue
+2
-1
src/views/order/orderTracking/index.vue
+56
-10
src/views/order/orderTracking/indexcn.vue
+131
-41
src/views/order/podCN/index.vue
+57
-16
src/views/order/podUs/index.vue
+44
-7
No files found.
src/components/RightClickMenu.vue
View file @
53681b11
...
...
@@ -20,6 +20,7 @@
>
复制店铺单号
</div>
<div
v-if=
"showCopyCount"
class=
"menu-item"
@
click=
"onChangeCopy('count')"
>
统计数量
</div>
...
...
@@ -28,7 +29,7 @@
</
template
>
<
script
setup
lang=
"ts"
>
import
{
ref
,
defineExpose
,
onMounted
,
onUnmounted
}
from
'vue'
import
{
ref
,
onMounted
,
onUnmounted
}
from
'vue'
const
visible
=
ref
(
false
)
const
position
=
ref
({
x
:
0
,
y
:
0
})
...
...
src/views/order/orderTracking/index.vue
View file @
53681b11
...
...
@@ -706,6 +706,44 @@ function changeChinaTime(zone: string) {
})
}
const
handleRadioGroupClick
=
(
event
:
Event
)
=>
{
const
target
=
event
.
target
as
HTMLElement
const
radioButton
=
target
.
closest
(
'.el-radio-button'
)
if
(
radioButton
)
{
const
input
=
radioButton
.
querySelector
(
'input[type="radio"]'
,
)
as
HTMLInputElement
if
(
input
)
{
const
value
=
input
.
value
if
(
searchForm
.
value
.
customizedQuantity
===
value
)
{
event
.
preventDefault
()
event
.
stopPropagation
()
searchForm
.
value
.
customizedQuantity
=
''
}
}
}
}
const
handleMultiRadioGroupClick
=
(
event
:
Event
)
=>
{
const
target
=
event
.
target
as
HTMLElement
const
radioButton
=
target
.
closest
(
'.el-radio-button'
)
if
(
radioButton
)
{
const
input
=
radioButton
.
querySelector
(
'input[type="radio"]'
,
)
as
HTMLInputElement
if
(
input
)
{
const
value
=
input
.
value
===
'true'
?
true
:
false
if
(
searchForm
.
value
.
multi
===
value
)
{
event
.
preventDefault
()
event
.
stopPropagation
()
searchForm
.
value
.
multi
=
null
}
}
}
}
const
resultConfirm
=
()
=>
{
search
()
loadTabData
()
...
...
@@ -796,7 +834,7 @@ onMounted(() => {
clearable
filterable
popper-class=
"customize-select-style"
style=
"width: 1
5
0px"
style=
"width: 1
8
0px"
>
<ElOption
v-for=
"(item, index) in platformJson"
...
...
@@ -878,16 +916,27 @@ onMounted(() => {
</ElSelect>
</ElFormItem>
<ElFormItem
label=
"类型"
>
<ElFormItem
label=
"印刷"
@
click
.
stop=
"(e: Event) => handleRadioGroupClick(e)"
>
<el-radio-group
v-model=
"searchForm.customizedQuantity"
>
<el-radio-button
value=
"single"
>
单面
</el-radio-button>
<el-radio-button
value=
"multiple"
>
多面
</el-radio-button>
<el-radio-button
value=
"normal"
>
普品
</el-radio-button>
</el-radio-group>
</ElFormItem>
<ElFormItem
label=
"数量"
>
<el-radio-group
v-model=
"searchForm.multi"
>
<el-radio-button
:value=
"false"
>
单件
</el-radio-button>
<el-radio-button
:value=
"true"
>
多件
</el-radio-button>
<el-radio-group
v-model=
"searchForm.multi"
@
click
.
stop=
"(e: Event) => handleMultiRadioGroupClick(e)"
>
<el-radio-button
:value=
"false"
class=
"radioBtn"
>
单件
</el-radio-button
>
<el-radio-button
:value=
"true"
class=
"radioBtn"
>
多件
</el-radio-button
>
</el-radio-group>
</ElFormItem>
<ElFormItem>
...
...
@@ -1283,12 +1332,9 @@ onMounted(() => {
}
}
}
.
search-form
{
::v-deep
.el-radio-button
{
.
radioBtn
{
::v-deep
.el-radio-button
__inner
{
width
:
75px
;
.el-radio-button__inner
{
width
:
100%
;
}
}
}
</
style
>
src/views/order/orderTracking/indexcn.vue
View file @
53681b11
...
...
@@ -102,7 +102,8 @@ const tableColumns = computed(() => {
prop
:
'replaceShipment'
,
width
:
120
,
align
:
'center'
,
},{
},
{
label
:
'物流类型'
,
slot
:
'shipmentType'
,
prop
:
'shipmentType'
,
...
...
@@ -297,6 +298,24 @@ const goodsColumns = computed(() => {
},
]
})
const
productMarkList
=
[
{
label
:
'普通商品'
,
value
:
'normal'
,
},
{
label
:
'pod商品'
,
value
:
'pod'
,
},
{
label
:
'一件定制局部印'
,
value
:
'custom_part'
,
},
{
label
:
'一件定制满印'
,
value
:
'custom_full'
,
},
]
const
tableData
=
ref
<
PodCnOrderListData
[]
>
([])
const
goodsData
=
ref
<
ProductList
[]
>
([])
const
searchVisible
=
ref
(
false
)
...
...
@@ -377,7 +396,7 @@ const search = () => {
goodsData
.
value
=
[]
logList
.
value
=
[]
getOrderListFn
()
if
(
tabValue
.
value
===
'2'
)
{
if
(
tabValue
.
value
===
'2'
)
{
zoneType
.
value
=
'Asia/Shanghai'
operationLog
()
}
...
...
@@ -442,10 +461,10 @@ const submitExportForm = async () => {
...
params
,
...(
resourceType
===
2
?
{
...
searchForm
.
value
,
startTime
:
timeRange
.
value
?.[
0
]
||
null
,
endTime
:
timeRange
.
value
?.[
1
]
||
null
,
}
...
searchForm
.
value
,
startTime
:
timeRange
.
value
?.[
0
]
||
null
,
endTime
:
timeRange
.
value
?.[
1
]
||
null
,
}
:
{}),
})
ElMessage
.
success
(
'请求成功,请稍后到右上角[我的下载]中查看'
)
...
...
@@ -652,7 +671,7 @@ const refreshAddress = async () => {
ElMessage
.
success
(
'操作成功'
)
search
()
await
loadTabData
()
if
(
tabValue
.
value
===
'2'
)
{
if
(
tabValue
.
value
===
'2'
)
{
zoneType
.
value
=
'Asia/Shanghai'
await
operationLog
()
}
...
...
@@ -663,7 +682,6 @@ const refreshAddress = async () => {
}
}
/**
* @description: 获取打印面单
*/
...
...
@@ -751,6 +769,44 @@ const handleSelectionChange = (val: PodCnOrderListData[]) => {
selection
.
value
=
val
}
const
handleRadioGroupClick
=
(
event
:
Event
)
=>
{
const
target
=
event
.
target
as
HTMLElement
const
radioButton
=
target
.
closest
(
'.el-radio-button'
)
if
(
radioButton
)
{
const
input
=
radioButton
.
querySelector
(
'input[type="radio"]'
,
)
as
HTMLInputElement
if
(
input
)
{
const
value
=
input
.
value
if
(
searchForm
.
value
.
customizedQuantity
===
value
)
{
event
.
preventDefault
()
event
.
stopPropagation
()
searchForm
.
value
.
customizedQuantity
=
''
}
}
}
}
const
handleMultiRadioGroupClick
=
(
event
:
Event
)
=>
{
const
target
=
event
.
target
as
HTMLElement
const
radioButton
=
target
.
closest
(
'.el-radio-button'
)
if
(
radioButton
)
{
const
input
=
radioButton
.
querySelector
(
'input[type="radio"]'
,
)
as
HTMLInputElement
if
(
input
)
{
const
value
=
input
.
value
===
'true'
?
true
:
false
if
(
searchForm
.
value
.
multi
===
value
)
{
event
.
preventDefault
()
event
.
stopPropagation
()
searchForm
.
value
.
multi
=
null
}
}
}
}
/**
* @description: 页面添加回车监听
*/
...
...
@@ -814,7 +870,7 @@ onMounted(() => {
clearable
filterable
placeholder=
"请输入"
style=
"width: 1
5
0px"
style=
"width: 1
8
0px"
>
<el-option
v-for=
"item in warehouseList"
...
...
@@ -900,16 +956,27 @@ onMounted(() => {
</ElSelect>
</ElFormItem>
<!--
<ElFormItem
label=
"类型"
>
<el-radio-group
v-model=
"searchForm.customizedQuantity"
>
<ElFormItem
label=
"印刷"
>
<el-radio-group
v-model=
"searchForm.customizedQuantity"
@
click
.
stop=
"(e: Event) => handleRadioGroupClick(e)"
>
<el-radio-button
value=
"single"
>
单面
</el-radio-button>
<el-radio-button
value=
"multiple"
>
多面
</el-radio-button>
<el-radio-button
value=
"normal"
>
普品
</el-radio-button>
</el-radio-group>
</ElFormItem>
-->
</ElFormItem>
<ElFormItem
label=
"数量"
>
<el-radio-group
v-model=
"searchForm.multi"
>
<el-radio-button
:value=
"false"
>
单件
</el-radio-button>
<el-radio-button
:value=
"true"
>
多件
</el-radio-button>
<el-radio-group
v-model=
"searchForm.multi"
@
click
.
stop=
"(e: Event) => handleMultiRadioGroupClick(e)"
>
<el-radio-button
:value=
"false"
class=
"radioBtn"
>
单件
</el-radio-button
>
<el-radio-button
:value=
"true"
class=
"radioBtn"
>
多件
</el-radio-button
>
</el-radio-group>
</ElFormItem>
<ElFormItem>
...
...
@@ -1042,7 +1109,32 @@ onMounted(() => {
></ElOption>
</ElSelect>
</ElFormItem>
<ElFormItem
v-if=
"searchForm.replaceShipment || searchForm.replaceShipment===0"
label=
"物流类型"
>
<ElFormItem
label=
"商品类型"
>
<ElSelect
v-model=
"searchForm.productMark"
placeholder=
"请选择商品类型"
clearable
filterable
collapse-tags
collapse-tags-tooltip
:teleported=
"false"
style=
"width: 150px"
>
<ElOption
v-for=
"(item, index) in productMarkList"
:key=
"index"
:value=
"item.value"
:label=
"item.label"
></ElOption>
</ElSelect>
</ElFormItem>
<ElFormItem
v-if=
"
searchForm.replaceShipment ||
searchForm.replaceShipment === 0
"
label=
"物流类型"
>
<ElSelect
v-model=
"searchForm.shipmentType"
placeholder=
"物流类型"
...
...
@@ -1050,7 +1142,9 @@ onMounted(() => {
style=
"width: 150px"
>
<ElOption
v-for=
"(item, index) in searchForm.replaceShipment === 0? ['自提', '快递']:['自有物流', '工厂物流']"
v-for=
"(item, index) in searchForm.replaceShipment === 0
? ['自提', '快递']
: ['自有物流', '工厂物流']"
:key=
"index"
:value=
"index"
:label=
"item"
...
...
@@ -1084,7 +1178,7 @@ onMounted(() => {
<ElFormItem>
<span>
<ElButton
link
@
click=
"resetSearchForm"
style=
"font-size: 12px"
><span
title=
"重置查询条件"
>
重置
</span></ElButton
><span
title=
"重置查询条件"
>
重置
</span></ElButton
>
</span>
</ElFormItem>
...
...
@@ -1098,14 +1192,14 @@ onMounted(() => {
<ElFormItem>
<span>
<ElButton
type=
"primary"
@
click=
"getOrderByIdApi('getPrintOrder')"
>
获取打印面单
</ElButton
>
获取打印面单
</ElButton
>
</span>
</ElFormItem>
<ElFormItem>
<span>
<ElButton
type=
"success"
@
click=
"refreshAddress"
>
刷新地址
</ElButton
>
刷新地址
</ElButton
>
</span>
</ElFormItem>
...
...
@@ -1136,10 +1230,14 @@ onMounted(() => {
<div>
{{
getStatus
(
row
.
status
)
}}
</div>
</
template
>
<
template
#
shipmentType=
"{ row }"
>
{{
(
row
.
replaceShipment
===
0
?
[
'自提'
,
'快递'
]
:
[
'自有物流'
,
'工厂物流'
])[
row
.
shipmentType
]
}}
{{
(
row
.
replaceShipment
===
0
?
[
'自提'
,
'快递'
]
:
[
'自有物流'
,
'工厂物流'
])[
row
.
shipmentType
]
}}
</
template
>
<
template
#
replaceShipment=
"{ row }"
>
{{
[
'不代发'
,
'代发'
][
row
.
replaceShipment
]
}}
{{
[
'不代发'
,
'代发'
][
row
.
replaceShipment
]
}}
</
template
>
</TableView>
</div>
...
...
@@ -1163,7 +1261,7 @@ onMounted(() => {
<
template
#
other
>
<div
class=
"bottom-table"
>
<el-tabs
v-model=
"tabValue"
>
<el-tab-pane
name=
"1"
label=
"商品明细"
>
<el-tab-pane
name=
"1"
label=
"商品明细"
>
<TableView
ref=
"goodsRef"
v-loading=
"goodsLoading"
...
...
@@ -1176,7 +1274,7 @@ onMounted(() => {
</
template
>
</TableView>
</el-tab-pane>
<el-tab-pane
name=
"2"
label=
"操作日志"
@
tab-click=
"operationLog"
>
<el-tab-pane
name=
"2"
label=
"操作日志"
@
tab-click=
"operationLog"
>
<div>
<el-button
:type=
"zoneType === 'Asia/Shanghai' ? 'primary' : ''"
...
...
@@ -1184,27 +1282,24 @@ onMounted(() => {
link
style=
"margin-left: 10px"
@
click=
"changeChinaTime('Asia/Shanghai')"
>
北京时间
</el-button
>
>
北京时间
</el-button>
<el-button
:type=
"zoneType === 'America/New_York' ? 'primary' : ''"
size=
"small"
link
style=
"margin-left: 10px"
@
click=
"changeChinaTime('America/New_York')"
>
新泽西时间
</el-button
>
>
新泽西时间
</el-button>
<el-button
:type=
"zoneType === 'America/Los_Angeles' ? 'primary' : ''"
size=
"small"
link
style=
"margin-left: 10px"
@
click=
"changeChinaTime('America/Los_Angeles')"
>
洛杉矶时间
</el-button
>
>
洛杉矶时间
</el-button>
</div>
<LogList
...
...
@@ -1239,7 +1334,7 @@ onMounted(() => {
:loading=
"exportLoading"
type=
"primary"
@
click=
"submitExportForm"
>
确认
</el-button
>
确认
</el-button
>
</span>
</
template
>
...
...
@@ -1334,14 +1429,9 @@ onMounted(() => {
}
}
}
.search-form
{
::v-deep
.el-radio-button
{
.radioBtn
{
::v-deep
.el-radio-button__inner
{
width
:
75px
;
.el-radio-button__inner
{
width
:
100%
;
}
}
}
</
style
>
src/views/order/podCN/index.vue
View file @
53681b11
...
...
@@ -167,7 +167,7 @@
v-model
.
trim=
"searchForm.thirdSkuCode"
placeholder=
"库存SKU"
clearable
style=
"width: 1
5
0px"
style=
"width: 1
8
0px"
></ElInput>
</ElFormItem>
<ElFormItem
label=
"款号"
v-if=
"status !== 'BATCH_DOWNLOAD'"
>
...
...
@@ -229,13 +229,14 @@
<el-option
value=
"desc"
label=
"倒序"
></el-option>
</el-select>
</ElFormItem>
<ElFormItem
label=
"
类型
"
v-if=
"status !== 'BATCH_DOWNLOAD'"
>
<ElFormItem
label=
"
印刷
"
v-if=
"status !== 'BATCH_DOWNLOAD'"
>
<el-radio-group
v-model=
"searchForm.customizedQuantity"
@
click
.
stop=
"(e: Event) => handleRadioGroupClick(e)"
>
<el-radio-button
value=
"single"
>
单面
</el-radio-button>
<el-radio-button
value=
"multiple"
>
多面
</el-radio-button>
<el-radio-button
label=
"single"
>
单面
</el-radio-button>
<el-radio-button
label=
"multiple"
>
多面
</el-radio-button>
<el-radio-button
label=
"normal"
>
普品
</el-radio-button>
</el-radio-group>
</ElFormItem>
<ElFormItem
label=
"数量"
v-if=
"status !== 'BATCH_DOWNLOAD'"
>
...
...
@@ -243,8 +244,12 @@
v-model=
"searchForm.multi"
@
click
.
stop=
"(e: Event) => handleMultiRadioGroupClick(e)"
>
<el-radio-button
:value=
"false"
>
单件
</el-radio-button>
<el-radio-button
:value=
"true"
>
多件
</el-radio-button>
<el-radio-button
:value=
"false"
class=
"radioBtn"
>
单件
</el-radio-button
>
<el-radio-button
:value=
"true"
class=
"radioBtn"
>
多件
</el-radio-button
>
</el-radio-group>
</ElFormItem>
<ElFormItem
v-if=
"status !== 'BATCH_DOWNLOAD'"
>
...
...
@@ -372,6 +377,7 @@
></ElOption>
</ElSelect>
</ElFormItem>
<ElFormItem
v-if=
"searchForm.replaceShipment === 0"
label=
"物流类型"
...
...
@@ -2296,6 +2302,9 @@
<
div
class
=
"menu-item"
@
click
=
"rightChange('order-number')"
>
复制订单号
<
/div
>
<
div
class
=
"menu-item"
@
click
=
"rightChange('factorySubOrderNumber')"
>
复制生产单号
<
/div
>
<
/template
>
<
/RightClickMenu
>
<
el
-
dialog
...
...
@@ -4567,13 +4576,40 @@ const rightChange = async (code: string) => {
}
else
if
(
code
===
'copy_shopNumber'
)
{
const
str
=
(
tableData
.
value
as
ProductList
[]
|
PodCnOrderListData
[])
.
map
((
item
)
=>
item
?.
shopNumber
)
.
join
()
.
filter
(
Boolean
)
.
join
(
','
)
if
(
!
str
)
return
ElMessage
.
warning
(
'当前数据没有店铺单号'
)
navigator
.
clipboard
.
writeText
(
str
)
ElMessage
.
success
(
'复制成功'
)
}
else
if
(
code
===
'order-number'
)
{
const
str
=
(
tableData
.
value
as
ProductList
[]
|
PodCnOrderListData
[])
.
map
((
item
)
=>
item
?.
factoryOrderNumber
)
.
join
()
.
filter
(
Boolean
)
.
join
(
','
)
if
(
!
str
)
return
ElMessage
.
warning
(
'当前数据没有订单号'
)
navigator
.
clipboard
.
writeText
(
str
)
ElMessage
.
success
(
'复制成功'
)
}
else
if
(
code
===
'factorySubOrderNumber'
)
{
let
str
if
(
flat
)
{
str
=
(
tableData
.
value
as
(
ProductList
|
PodCnOrderListData
)[])
.
flatMap
(
(
item
)
=>
(
item
as
PodCnOrderListData
)?.
productList
?.
map
((
product
)
=>
product
.
factorySubOrderNumber
)
?.
filter
(
Boolean
)
??
[],
)
.
filter
(
Boolean
)
.
join
(
','
)
}
else
{
str
=
(
tableData
.
value
as
ProductList
[])
.
map
((
item
)
=>
item
?.
factorySubOrderNumber
)
.
filter
(
Boolean
)
.
join
(
','
)
}
if
(
!
str
)
return
ElMessage
.
warning
(
'当前数据没有生产单号'
)
navigator
.
clipboard
.
writeText
(
str
)
ElMessage
.
success
(
'复制成功'
)
}
...
...
@@ -6166,14 +6202,14 @@ useEnterKeyTrigger({
color
:
white
;
font
-
weight
:
bold
;
}
.
search
-
form
{
::
v
-
deep
.
el
-
radio
-
button
{
width
:
75
px
;
.
el
-
radio
-
button__inner
{
width
:
100
%
;
}
}
}
//
.search-form
{
//
::v-deep .el-radio-button
{
//
width: 75px;
//
.el-radio-button__inner
{
//
width: 100%;
//
}
//
}
//
}
.
triangle
-
container
-
wrap
{
position
:
absolute
;
top
:
0
;
...
...
@@ -6202,6 +6238,11 @@ useEnterKeyTrigger({
font
-
size
:
12
px
;
}
}
.
radioBtn
{
::
v
-
deep
.
el
-
radio
-
button__inner
{
width
:
75
px
;
}
}
<
/style
>
<
style
lang
=
"scss"
>
.
customize
-
select
-
style
{
...
...
src/views/order/podUs/index.vue
View file @
53681b11
...
...
@@ -132,7 +132,7 @@
<LogisticsWaySelect
v-model=
"searchForm.craftCode"
:company-list=
"craftList"
:start-width=
"'1
78
px'"
:start-width=
"'1
50
px'"
search-placeholder=
"搜索工艺名称"
start-placeholder=
"请选择工艺名称"
></LogisticsWaySelect>
...
...
@@ -142,7 +142,7 @@
v-model
.
trim=
"searchForm.thirdSkuCode"
placeholder=
"库存SKU"
clearable
style=
"width: 1
5
0px"
style=
"width: 1
8
0px"
></ElInput>
</ElFormItem>
<ElFormItem
label=
"款号"
v-if=
"status !== 'BATCH_DOWNLOAD'"
>
...
...
@@ -219,7 +219,7 @@
</ElSelect>
</ElFormItem>
<!--
</div>
-->
<ElFormItem
label=
"
类型
"
v-if=
"status !== 'BATCH_DOWNLOAD'"
>
<ElFormItem
label=
"
印刷
"
v-if=
"status !== 'BATCH_DOWNLOAD'"
>
<el-radio-group
v-model=
"searchForm.customizedQuantity"
@
click
.
stop=
"(e: Event) => handleRadioGroupClick(e)"
...
...
@@ -234,8 +234,12 @@
v-model=
"searchForm.multi"
@
click
.
stop=
"(e: Event) => handleMultiRadioGroupClick(e)"
>
<el-radio-button
:label=
"false"
>
单件
</el-radio-button>
<el-radio-button
:label=
"true"
>
多件
</el-radio-button>
<el-radio-button
:label=
"false"
class=
"radioBtn"
>
单件
</el-radio-button
>
<el-radio-button
:label=
"true"
class=
"radioBtn"
>
多件
</el-radio-button
>
</el-radio-group>
</ElFormItem>
<ElFormItem>
...
...
@@ -2542,6 +2546,9 @@
<
div
class
=
"menu-item"
@
click
=
"rightChange('order-number')"
>
复制订单号
<
/div
>
<
div
class
=
"menu-item"
@
click
=
"rightChange('factorySubOrderNumber')"
>
复制生产单号
<
/div
>
<
/template
>
<
/RightClickMenu
>
<
el
-
dialog
...
...
@@ -5178,13 +5185,38 @@ const rightChange = async (code: string) => {
}
else
if
(
code
===
'copy_shopNumber'
)
{
const
str
=
(
tableData
.
value
as
ProductList
[]
|
PodUsOrderListData
[])
.
map
((
item
)
=>
item
?.
shopNumber
)
.
join
()
.
filter
(
Boolean
)
.
join
(
','
)
if
(
!
str
)
return
ElMessage
.
warning
(
'当前数据没有店铺单号'
)
navigator
.
clipboard
.
writeText
(
str
)
ElMessage
.
success
(
'复制成功'
)
}
else
if
(
code
===
'order-number'
)
{
const
str
=
(
tableData
.
value
as
ProductList
[]
|
PodUsOrderListData
[])
.
map
((
item
)
=>
item
?.
factoryOrderNumber
)
.
join
()
.
filter
(
Boolean
)
.
join
(
','
)
if
(
!
str
)
return
ElMessage
.
warning
(
'当前数据没有订单号'
)
navigator
.
clipboard
.
writeText
(
str
)
ElMessage
.
success
(
'复制成功'
)
}
else
if
(
code
===
'factorySubOrderNumber'
)
{
let
str
if
(
flat
)
{
str
=
(
tableData
.
value
as
(
ProductList
|
PodUsOrderListData
)[])
.
flatMap
(
(
item
)
=>
(
item
as
PodUsOrderListData
)?.
productList
?.
map
((
product
)
=>
product
.
factorySubOrderNumber
)
?.
filter
(
Boolean
)
??
[],
)
.
filter
(
Boolean
)
.
join
(
','
)
}
else
{
str
=
(
tableData
.
value
as
ProductList
[])
.
map
((
item
)
=>
item
?.
factorySubOrderNumber
)
.
filter
(
Boolean
)
.
join
(
','
)
}
if
(
!
str
)
return
ElMessage
.
warning
(
'当前数据没有生产单号'
)
navigator
.
clipboard
.
writeText
(
str
)
ElMessage
.
success
(
'复制成功'
)
}
...
...
@@ -7218,6 +7250,11 @@ const printNormal = async () => {
font
-
size
:
12
px
;
}
}
.
radioBtn
{
::
v
-
deep
.
el
-
radio
-
button__inner
{
width
:
75
px
;
}
}
<
/style
>
<
style
lang
=
"scss"
>
.
customize
-
select
-
style
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment