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
1061be54
Commit
1061be54
authored
Feb 24, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
bf8c34ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
xgg-admin/app/base/service/impl/business/businessmenSve.js
+10
-4
xgg-admin/app/base/system.js
+1
-1
No files found.
xgg-admin/app/base/service/impl/business/businessmenSve.js
View file @
1061be54
...
@@ -45,7 +45,7 @@ class BusinessmenService extends ServiceBase {
...
@@ -45,7 +45,7 @@ class BusinessmenService extends ServiceBase {
deliver
=
deliver
.
data
;
deliver
=
deliver
.
data
;
let
data
=
{
let
data
=
{
customerName
:
businessmen
.
name
,
customerName
:
businessmen
.
name
,
initPeriod
:
new
Date
(
moment
().
format
(
"YYYY-MM"
)
+
"-01 00:00:00"
).
getTime
(
),
initPeriod
:
Number
(
moment
().
format
(
"YYYYMM"
)
),
// initPeriod: moment().format("YYYYMM"),
// initPeriod: moment().format("YYYYMM"),
accountStandard
:
1
,
accountStandard
:
1
,
valueAddedTax
:
2
,
valueAddedTax
:
2
,
...
@@ -57,11 +57,17 @@ class BusinessmenService extends ServiceBase {
...
@@ -57,11 +57,17 @@ class BusinessmenService extends ServiceBase {
let
url
=
settings
.
ntapi
().
createCustomer
;
let
url
=
settings
.
ntapi
().
createCustomer
;
let
res
=
await
this
.
callApi
(
url
,
data
,
"建账"
);
let
res
=
await
this
.
callApi
(
url
,
data
,
"建账"
);
console
.
log
(
res
);
console
.
log
(
res
);
if
(
!
res
||
!
res
.
data
||
!
res
.
data
.
datas
)
{
if
(
!
res
||
!
res
.
data
)
{
return
system
.
getResult
(
null
,
"建账失败"
);
return
system
.
getResult
(
null
,
"建账失败"
);
}
}
// let _d = res.data.datas;
if
(
res
.
data
)
{
// return await this.callms("order", "createAccount", params);
await
this
.
callms
(
"order"
,
"createAccount"
,
{
id
:
params
.
id
,
province
:
params
.
province
,
customer_id
:
res
.
data
,
});
}
return
system
.
getResultSuccess
();
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
);
console
.
log
(
error
);
return
system
.
getResult
(
error
);
return
system
.
getResult
(
error
);
...
...
xgg-admin/app/base/system.js
View file @
1061be54
...
@@ -182,7 +182,7 @@ class System {
...
@@ -182,7 +182,7 @@ class System {
// merchant: "http://127.0.0.1:3101" + path,
// merchant: "http://127.0.0.1:3101" + path,
// 订单服务
// 订单服务
order
:
domain
+
":3103"
+
path
,
order
:
domain
2
+
":3103"
+
path
,
// order: "http://127.0.0.1:3103" + path,
// order: "http://127.0.0.1:3103" + path,
// 发票服务
// 发票服务
...
...
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