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
b09b7594
Commit
b09b7594
authored
Mar 12, 2024
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 发货问题修改
parent
4a49723e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
23 deletions
+38
-23
src/components/LogList.vue
+25
-3
src/types/api/order.ts
+1
-0
src/views/order/index.vue
+12
-20
No files found.
src/components/LogList.vue
View file @
b09b7594
<
template
>
<div
class=
"log-list"
>
<div
v-for=
"l in logList"
:key=
"l.id"
class=
"log-item flex flex-align-center"
>
<div
v-for=
"l in logList"
:key=
"l.id"
class=
"log-item flex flex-align-center"
>
<div
class=
"log-item-icon"
>
<Icon
name=
"a-2labadianji3x"
/>
</div>
<div
class=
"log-item-time"
>
<span>
{{
l
.
createTime
}}
</span>
</div>
<div
class=
"log-item-name"
>
<div
v-if=
"l.employeeName"
class=
"log-item-name"
>
<span>
{{
l
.
employeeName
}}
</span>
</div>
<div
class=
"log-item-content"
>
<div
class=
"log-item-content"
:title=
"l.description"
>
<span>
{{
l
.
description
}}
</span>
</div>
</div>
...
...
@@ -39,4 +43,22 @@ defineProps({
.log-item
div
:not
(
:last-child
)
{
margin-right
:
6px
;
}
.log-item-time
{
width
:
140px
;
}
.log-item-name
{
width
:
100px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.log-item-content
{
flex
:
1
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
</
style
>
src/types/api/order.ts
View file @
b09b7594
...
...
@@ -19,6 +19,7 @@ export interface OrderData {
id
:
number
namespace
?:
string
erpId
?:
number
count
?:
number
orderNumber
?:
string
erpOrderNumber
?:
string
facotoryNo
?:
string
...
...
src/views/order/index.vue
View file @
b09b7594
...
...
@@ -194,14 +194,6 @@
<
/div
>
<
div
class
=
"order-list-expand_item_info_title"
>
<
span
class
=
"order-list-expand_item_label"
>
付款时间
:
<
/spa
n
>
<
span
class
=
"order-list-expand_item_value"
>
{{
row
.
paymentTime
||
'--'
}}
<
/span
>
<
/div
>
<
div
class
=
"order-list-expand_item_info_title"
>
<
span
class
=
"order-list-expand_item_label"
>
确认时间
:
<
/spa
n
>
<
span
class
=
"order-list-expand_item_value"
>
{{
...
...
@@ -243,7 +235,10 @@
>
操作日志
<
/ElButto
n
>
<
/div
>
<
div
class
=
"order-list-expand_item_info_title"
>
<
div
v
-
if
=
"statusCode === 1 || statusCode === 3"
class
=
"order-list-expand_item_info_title"
>
<
ElButton
text
type
=
"danger"
@
click
=
"cancelOrder(row.id)"
>
取消
<
/ElButto
n
>
...
...
@@ -265,12 +260,6 @@
<
span
class
=
"value"
>
{{
scope
.
row
.
orderNumber
}}
<
/span
>
<
/div
>
<
div
class
=
"order-detail_item"
>
<
span
class
=
"label"
>
店铺单号
:
<
/span
>
<
span
class
=
"value"
:
title
=
"scope.row.shopNumber"
>
{{
scope
.
row
.
shopNumber
||
'--'
}}
<
/span
>
<
/div
>
<
div
class
=
"order-detail_item"
>
<
span
class
=
"label"
>
工厂
:
<
/span
>
<
span
class
=
"value"
:
title
=
"scope.row.facotoryNo"
>
{{
scope
.
row
.
facotoryNo
||
'--'
...
...
@@ -765,15 +754,18 @@ const saveShipment = async () => {
const
data
:
ShipmentOrderRes
[]
=
[]
orderList
.
value
.
forEach
((
item
)
=>
{
shipmentForm
.
value
.
namespace
=
item
.
namespace
const
subOrder
=
item
.
productList
?.
map
((
jj
)
=>
{
return
{
const
order
=
[]
for
(
const
jj
of
item
.
productList
||
[])
{
if
(
jj
.
count
===
0
)
break
const
subOrder
=
{
erpSubOrderNumber
:
jj
.
erpSubOrderNumber
,
subOrderNumber
:
jj
.
subOrderNumber
,
sendOutQuantity
:
jj
.
count
,
}
}
)
if
(
subOrder
)
{
data
.
push
(...
subOrder
)
order
.
push
(
subOrder
)
}
if
(
order
)
{
data
.
push
(...
order
)
}
}
)
try
{
...
...
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