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
ba1c5de8
Commit
ba1c5de8
authored
Apr 24, 2020
by
zhaoxiqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
237f96f9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
5 deletions
+19
-5
bpo-web/app/base/api/impl/econtractApi.js
+0
-1
bpo-web/app/base/api/impl/testApi.js
+15
-2
bpo-web/app/base/db/models/enttemplate.js
+2
-0
bpo-web/app/base/service/impl/entcontractSve.js
+2
-2
No files found.
bpo-web/app/base/api/impl/econtractApi.js
View file @
ba1c5de8
...
@@ -91,7 +91,6 @@ class EcontractApi {
...
@@ -91,7 +91,6 @@ class EcontractApi {
console
.
log
(
e
);
console
.
log
(
e
);
}
}
}
}
console
.
log
(
ids
)
this
.
addqrcodeurl
({
ids
:
ids
});
this
.
addqrcodeurl
({
ids
:
ids
});
return
errors
;
return
errors
;
}
}
...
...
bpo-web/app/base/api/impl/testApi.js
View file @
ba1c5de8
...
@@ -87,5 +87,19 @@ class TestApi {
...
@@ -87,5 +87,19 @@ class TestApi {
}
}
}
}
}
}
async
sssss
(
obj
){
if
(
obj
.
ss
in
{
"12"
:
""
,
"13"
:
""
})
{
console
.
log
(
"ok"
)
}
else
{
console
.
log
(
"no"
)
}
}
}
}
module
.
exports
=
TestApi
;
module
.
exports
=
TestApi
;
\ No newline at end of file
bpo-web/app/base/db/models/enttemplate.js
View file @
ba1c5de8
...
@@ -9,6 +9,8 @@ module.exports = (db, DataTypes) => {
...
@@ -9,6 +9,8 @@ module.exports = (db, DataTypes) => {
appid
:
DataTypes
.
STRING
,
appid
:
DataTypes
.
STRING
,
mcthid
:
DataTypes
.
STRING
,
mcthid
:
DataTypes
.
STRING
,
key
:
DataTypes
.
STRING
,
key
:
DataTypes
.
STRING
,
merchantApi
:
DataTypes
.
STRING
,
mainId
:
DataTypes
.
STRING
,
},{
},{
paranoid
:
true
,
//假的删除
paranoid
:
true
,
//假的删除
underscored
:
true
,
underscored
:
true
,
...
...
bpo-web/app/base/service/impl/entcontractSve.js
View file @
ba1c5de8
...
@@ -474,7 +474,7 @@ class EntcontractService extends ServiceBase {
...
@@ -474,7 +474,7 @@ class EntcontractService extends ServiceBase {
type
:
"0"
,
// 类型 0 一般纳税人 1 小规模纳税人
type
:
"0"
,
// 类型 0 一般纳税人 1 小规模纳税人
companyName
:
params
.
merchantName
,
//商户名称
companyName
:
params
.
merchantName
,
//商户名称
mobile
:
params
.
mobile
,
//手机号
mobile
:
params
.
mobile
,
//手机号
mainId
:
settings
.
apiconfig
.
getmainId
()
,
//代征主体 67731101 测试 67731504
mainId
:
enttemplate
.
mainId
,
//代征主体 67731101 测试 67731504
signedName
:
params
.
merchantName
,
//合同名称 使用商户名称
signedName
:
params
.
merchantName
,
//合同名称 使用商户名称
beginTime
:
moment
().
format
(
"YYYY-MM-DD"
),
//当前时间, // 签约开始时间
beginTime
:
moment
().
format
(
"YYYY-MM-DD"
),
//当前时间, // 签约开始时间
invalidTime
:
moment
().
add
(
2
,
'y'
).
format
(
"YYYY-MM-DD"
),
// 签约失效时间
invalidTime
:
moment
().
add
(
2
,
'y'
).
format
(
"YYYY-MM-DD"
),
// 签约失效时间
...
@@ -539,7 +539,7 @@ class EntcontractService extends ServiceBase {
...
@@ -539,7 +539,7 @@ class EntcontractService extends ServiceBase {
erchants
:
erchants
erchants
:
erchants
}
}
}
}
let
url
=
settings
.
apiconfig
.
settleApiConfig
().
createM
erchantApi
;
let
url
=
enttemplate
.
m
erchantApi
;
console
.
log
(
"有赞商户创建url:"
,
url
);
console
.
log
(
"有赞商户创建url:"
,
url
);
let
rs
=
await
axios
({
let
rs
=
await
axios
({
method
:
'post'
,
method
:
'post'
,
...
...
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