Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
蒋勇
zhichan
Commits
731a1ea0
Commit
731a1ea0
authored
Dec 04, 2019
by
王栋源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wdy
parent
d4f2e317
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
22 deletions
+49
-22
jiaxiya/app/base/api/impl/transfer/tradeApi.js
+2
-1
jiaxiya/app/base/service/impl/transfer/tradetransferSve.js
+33
-17
jiaxiya/app/base/service/sve.base.js
+4
-4
jiaxiya/app/front/vues/pages/tansfersupplymaterail/tansfersupplymaterail.html
+10
-0
No files found.
jiaxiya/app/base/api/impl/transfer/tradeApi.js
View file @
731a1ea0
...
...
@@ -11,7 +11,8 @@ class TradeTransferAPI extends APIBase {
}
async
acceptOrder
(
pobj
,
query
)
{
return
await
this
.
tradetransferSve
.
createtransfer
(
pobj
);
pobj
.
channelParams
.
fq_ordernum
=
pobj
.
orderNo
;
return
await
this
.
tradetransferSve
.
createtransfer
(
pobj
.
channelParams
);
}
async
closeOrder
(
pobj
,
query
)
{
return
await
this
.
tradetransferSve
.
orderclose
(
pobj
);
...
...
jiaxiya/app/base/service/impl/transfer/tradetransferSve.js
View file @
731a1ea0
...
...
@@ -69,11 +69,14 @@ class TradetransferService extends ServiceBase {
var
transferinfo
=
await
this
.
findOne
({
ali_bizid
:
obj
.
BizId
});
if
(
transferinfo
)
{
return
{
"errorCode"
:
"OK"
,
"errorMsg"
:
"订单已存在"
,
"module"
:
{
"orderId"
:
transferinfo
.
fq_ordernum
},
"requestId"
:
obj
.
requestid
,
"success"
:
true
"status"
:
2
,
"msg"
:
"交付单已存在"
,
"data"
:
{
"orderNo"
:
obj
.
fq_ordernum
,
"channelServiceNo"
:
obj
.
BizId
,
"channelParams"
:
{}
},
"requestid"
:
obj
.
requestid
}
}
else
{
var
source
=
{
...
...
@@ -86,18 +89,30 @@ class TradetransferService extends ServiceBase {
fq_ordernum
:
obj
.
fq_ordernum
}
var
rtn
=
await
this
.
create
(
source
);
return
{
status
:
0
,
msg
:
"成功"
,
data
:
null
}
return
{
"errorCode"
:
"OK"
,
"errorMsg"
:
""
,
"module"
:
{
"orderNumber"
:
rtn
},
"requestId"
:
obj
.
requestid
,
"success"
:
true
if
(
rtn
){
return
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:
{
"orderNo"
:
obj
.
fq_ordernum
,
"channelServiceNo"
:
obj
.
BizId
,
"channelParams"
:
{}
},
"requestid"
:
obj
.
requestid
}
}
else
{
return
{
"status"
:
-
1
,
"msg"
:
"error"
,
"data"
:
{
"orderNo"
:
obj
.
fq_ordernum
,
"channelServiceNo"
:
obj
.
BizId
,
"channelParams"
:
{}
},
"requestid"
:
obj
.
requestid
}
}
}
}
//订单查询
...
...
@@ -279,7 +294,8 @@ class TradetransferService extends ServiceBase {
SellerIdCard
:
obj
.
seller_idcard
,
SellerProxy
:
obj
.
seller_proxy
,
RegistrationCert
:
obj
.
tm_cert_url
,
SellerApply
:
obj
.
seller_apply
SellerApply
:
obj
.
seller_apply
,
Notarization
:
obj
.
notarization
}
}
console
.
log
(
sobj
);
...
...
jiaxiya/app/base/service/sve.base.js
View file @
731a1ea0
...
...
@@ -12,7 +12,7 @@ class ServiceBase {
this
.
execS
=
system
.
getObject
(
"util.execClient"
);
this
.
channelApiUrl
=
settings
.
channelApiUrl
();
this
.
appInfo
=
{
aliyuntmtransfer
:
{
appkey
:
"20191
1131657"
,
secret
:
"eeb18393aade40149287b024d8ba0850
"
}
aliyuntmtransfer
:
{
appkey
:
"20191
2031344"
,
secret
:
"7cbb846246874167b5c7e01cd0016c88
"
}
};
}
...
...
@@ -146,10 +146,10 @@ class ServiceBase {
"sign"
:
"2FviZ9PGws8Pt1fBhq0t90mjUvI"
,
"actionBody"
:
obj
}
//
var tokenInfo = await this.getToken();
var
tokenInfo
=
await
this
.
getToken
();
var
reqUrl
=
this
.
channelApiUrl
+
"/action/tradetransfer/aliclienttransfer"
;
//
var rtn = await this.execS.execPostTK(sobj, reqUrl, tokenInfo.data.token);
var
rtn
=
await
this
.
execS
.
execPostTK
(
sobj
,
reqUrl
,
"token"
);
var
rtn
=
await
this
.
execS
.
execPostTK
(
sobj
,
reqUrl
,
tokenInfo
.
data
.
token
);
//
var rtn = await this.execS.execPostTK(sobj, reqUrl,"token");
return
rtn
;
}
...
...
jiaxiya/app/front/vues/pages/tansfersupplymaterail/tansfersupplymaterail.html
View file @
731a1ea0
...
...
@@ -72,6 +72,16 @@
mtype=
"test"
>
</gsb-aliupload>
</el-form-item>
<el-form-item
label=
"商标证书"
style=
"width:600px;"
>
<gsb-aliupload
v-model=
"supplymaterail.tm_cert_url"
@
uploadsuccess=
"upsuccess"
mtype=
"test"
>
</gsb-aliupload>
</el-form-item>
<el-form-item
label=
"公证书"
style=
"width:600px;"
>
<gsb-aliupload
v-model=
"supplymaterail.notarization_url"
@
uploadsuccess=
"upsuccess"
mtype=
"test"
>
</gsb-aliupload>
</el-form-item>
<div
style=
"clear:both;"
></div>
<div
style=
"text-align:center"
>
<el-button
@
click=
"onDlgFormClick(\'mysave\')"
>
保存
</el-button>
...
...
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