Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
6f9f5e9b
Commit
6f9f5e9b
authored
Feb 26, 2024
by
邓春圆
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/release' into release
parents
9840e6eb
1ba2fc7a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
9 deletions
+21
-9
utils.js
src/views/ecw/box/shippingAir/utils.js
+1
-1
utils.js
src/views/ecw/box/shippingSea/utils.js
+1
-1
edit.vue
src/views/ecw/coupon/edit.vue
+19
-7
No files found.
src/views/ecw/box/shippingAir/utils.js
View file @
6f9f5e9b
...
@@ -1158,7 +1158,7 @@ function getColmnMapping() {
...
@@ -1158,7 +1158,7 @@ function getColmnMapping() {
type
:
"
date
"
,
type
:
"
date
"
,
},
},
{
{
title
:
i18n
.
$t
(
"
卸货
时间
"
),
title
:
i18n
.
$t
(
"
到仓通过
时间
"
),
key
:
"
ulBoxTime
"
,
key
:
"
ulBoxTime
"
,
type
:
"
date
"
,
type
:
"
date
"
,
},
},
...
...
src/views/ecw/box/shippingSea/utils.js
View file @
6f9f5e9b
...
@@ -1151,7 +1151,7 @@ function getColmnMapping() {
...
@@ -1151,7 +1151,7 @@ function getColmnMapping() {
type
:
"
date
"
,
type
:
"
date
"
,
},
},
{
{
title
:
i18n
.
$t
(
"
卸
货
时间
"
),
title
:
i18n
.
$t
(
"
卸
柜通过
时间
"
),
key
:
"
ulBoxTime
"
,
key
:
"
ulBoxTime
"
,
type
:
"
date
"
,
type
:
"
date
"
,
},
},
...
...
src/views/ecw/coupon/edit.vue
View file @
6f9f5e9b
...
@@ -276,6 +276,7 @@ import Editor from '@/components/Editor'
...
@@ -276,6 +276,7 @@ import Editor from '@/components/Editor'
import
Selector
from
'
@/components/Selector/index
'
import
Selector
from
'
@/components/Selector/index
'
import
{
parseTime
}
from
'
@/utils/ruoyi
'
import
{
parseTime
}
from
'
@/utils/ruoyi
'
import
{
str2arr
}
from
'
@/utils/index
'
import
{
str2arr
}
from
'
@/utils/index
'
import
item
from
'
@/layout/components/Sidebar/Item.vue
'
export
default
{
export
default
{
...
@@ -447,6 +448,12 @@ export default {
...
@@ -447,6 +448,12 @@ export default {
getCoupon
(
this
.
$route
.
query
.
id
).
then
((
res
)
=>
{
getCoupon
(
this
.
$route
.
query
.
id
).
then
((
res
)
=>
{
this
.
form
=
res
.
data
;
this
.
form
=
res
.
data
;
// 线路种的渠道字段跟价格模块不同,需要转换兼容
if
(
this
.
form
.
lineIds
?.
length
)
{
this
.
form
.
lineIds
=
this
.
form
.
lineIds
.
map
(
item
=>
{
return
{...
item
,
shippingChannelId
:
item
.
channelId
}
})
}
[
'
orderAttr
'
,
'
isCargoControl
'
,
'
brand
'
,
'
documentDeclaration
'
].
forEach
(
field
=>
{
[
'
orderAttr
'
,
'
isCargoControl
'
,
'
brand
'
,
'
documentDeclaration
'
].
forEach
(
field
=>
{
this
.
$set
(
this
.
form
,
field
+
'
Arr
'
,
str2arr
(
res
.
data
[
field
]))
this
.
$set
(
this
.
form
,
field
+
'
Arr
'
,
str2arr
(
res
.
data
[
field
]))
})
})
...
@@ -663,13 +670,11 @@ export default {
...
@@ -663,13 +670,11 @@ export default {
})
})
this
.
$set
(
this
.
form
,
'
suitableProdType
'
,
this
.
isAllProduct
?
0
:
1
)
this
.
$set
(
this
.
form
,
'
suitableProdType
'
,
this
.
isAllProduct
?
0
:
1
)
let
data
=
Object
.
assign
({},
this
.
form
,
{
discountDetailedVOs
})
// 开始时间必填
let
data
=
Object
.
assign
({},
this
.
form
,
{
discountDetailedVOs
})
if
(
!
data
.
startTime
)
data
.
startTime
=
parseTime
(
Date
.
now
())
// '2022-01-01 00:00:00'
// 开始时间必填
// status必填
if
(
!
data
.
startTime
)
data
.
startTime
=
parseTime
(
Date
.
now
())
// '2022-01-01 00:00:00'
data
.
status
=
status
// status必填
data
.
status
=
status
data
.
couponIds
=
this
.
couponIds
.
join
(
'
,
'
)
data
.
couponIds
=
this
.
couponIds
.
join
(
'
,
'
)
// 费用类型 1 运输费 2 清关费 3 总费用(优惠卷专用)
// 费用类型 1 运输费 2 清关费 3 总费用(优惠卷专用)
...
@@ -683,6 +688,13 @@ export default {
...
@@ -683,6 +688,13 @@ export default {
}
}
this
.
$set
(
this
.
form
,
'
suitableProdType
'
,
this
.
isAllProduct
?
0
:
1
)
this
.
$set
(
this
.
form
,
'
suitableProdType
'
,
this
.
isAllProduct
?
0
:
1
)
// 优惠模块的线路渠道字段跟价格模块不同,需要转换
if
(
data
.
lineIds
?.
length
){
data
.
lineIds
=
data
.
lineIds
.
map
(
item
=>
{
return
{...
item
,
channelId
:
item
.
shippingChannelId
}
})
}
// 修改的提交
// 修改的提交
if
(
data
.
couponId
!=
null
)
{
if
(
data
.
couponId
!=
null
)
{
updateCoupon
(
data
).
then
((
response
)
=>
{
updateCoupon
(
data
).
then
((
response
)
=>
{
...
...
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