Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FmTakeaway
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
0
Merge Requests
0
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
shangshang.dai
FmTakeaway
Commits
a2a1efaa
Commit
a2a1efaa
authored
Jun 02, 2017
by
ss.dai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 1:配送费字段根据门店配送类型区分为 自配送、三方配送、平台配送
parent
01b524b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
fmPlugin/fmPlugin.cpp
+20
-5
No files found.
fmPlugin/fmPlugin.cpp
View file @
a2a1efaa
...
@@ -615,13 +615,28 @@ QByteArray FmPlugin::_GetFeeData(const OrderObject *orderObject, QString uuid)
...
@@ -615,13 +615,28 @@ QByteArray FmPlugin::_GetFeeData(const OrderObject *orderObject, QString uuid)
array
.
insert
(
0
,
cObj0
);
array
.
insert
(
0
,
cObj0
);
QString
sendFeeName
;
if
(
orderObject
->
delivery_type
==
1
)
{
sendFeeName
=
QString
(
"平台配送费"
);
}
else
{
if
(
!
orderObject
->
delivery_party
.
compare
(
"自配送"
))
{
sendFeeName
=
QString
(
"自配送费"
);
}
else
{
sendFeeName
=
QString
(
"三方配送费"
);
}
}
cObj1
.
insert
(
"line"
,
2
);
cObj1
.
insert
(
"line"
,
2
);
cObj1
.
insert
(
"itemName"
,
"配送费"
);
cObj1
.
insert
(
"itemName"
,
sendFeeName
);
cObj1
.
insert
(
"total"
,
sendFee
);
cObj1
.
insert
(
"total"
,
sendFee
);
cObj1
.
insert
(
"customFieldS1"
,
""
);
cObj1
.
insert
(
"customFieldS1"
,
""
);
cObj1
.
insert
(
"customFieldS2"
,
""
);
cObj1
.
insert
(
"customFieldS2"
,
""
);
cObj1
.
insert
(
"customFieldN1"
,
0
);
cObj1
.
insert
(
"customFieldN1"
,
0
);
cObj1
.
insert
(
"customFieldN2"
,
0
);
cObj1
.
insert
(
"customFieldN2"
,
0
);
cObj1
.
insert
(
"note"
,
""
);
cObj1
.
insert
(
"note"
,
""
);
array
.
insert
(
1
,
cObj1
);
array
.
insert
(
1
,
cObj1
);
rObj
.
insert
(
"details"
,
array
);
rObj
.
insert
(
"details"
,
array
);
...
...
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