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
58ff0e8d
Commit
58ff0e8d
authored
Mar 27, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
4d5ee299
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
116 additions
and
1 deletions
+116
-1
xgg-deliver/app/base/controller/impl/order/orderCtl.js
+26
-0
xgg-deliver/app/base/service/impl/order/orderSve.js
+9
-0
xgg-deliver/app/front/entry/public/apidoc/order/deliver.md
+50
-1
xgg-deliver/app/front/entry/public/apidoc/order/order.md
+31
-0
No files found.
xgg-deliver/app/base/controller/impl/order/orderCtl.js
View file @
58ff0e8d
...
@@ -469,6 +469,31 @@ class OrderCtl extends CtlBase {
...
@@ -469,6 +469,31 @@ class OrderCtl extends CtlBase {
}
}
}
}
async
businessCompletion
(
pobj
,
pobj2
,
req
)
{
if
(
!
pobj
.
id
)
{
return
system
.
getResult
(
null
,
`参数错误 订单ID不能为空`
);
}
if
(
!
pobj
.
status
)
{
return
system
.
getResult
(
null
,
`参数错误 状态码不能为空`
);
}
try
{
return
await
this
.
orderSve
.
handleStatus
(
pobj
);
}
catch
(
error
)
{
console
.
log
(
error
);
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
async
updateOBusinessmenProinvce
(
pobj
,
pobj2
,
req
)
{
if
(
!
pobj
.
id
)
{
return
system
.
getResult
(
null
,
`参数错误 订单ID不能为空`
);
}
try
{
return
await
this
.
orderSve
.
updateOBusinessmenProinvce
(
pobj
);
}
catch
(
error
)
{
console
.
log
(
error
);
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
}
}
module
.
exports
=
OrderCtl
;
module
.
exports
=
OrderCtl
;
\ No newline at end of file
xgg-deliver/app/base/service/impl/order/orderSve.js
View file @
58ff0e8d
...
@@ -111,7 +111,15 @@ class OrderService extends ServiceBase {
...
@@ -111,7 +111,15 @@ class OrderService extends ServiceBase {
console
.
log
(
error
);
console
.
log
(
error
);
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
}
/**
* 更新个体户信息
* @param {*} params
*/
async
updateOBusinessmenProinvce
(
params
)
{
var
rs
=
await
this
.
callms
(
"order"
,
"updateOBusinessmenProinvce"
,
params
);
return
rs
;
}
}
}
}
module
.
exports
=
OrderService
;
module
.
exports
=
OrderService
;
\ No newline at end of file
xgg-deliver/app/front/entry/public/apidoc/order/deliver.md
View file @
58ff0e8d
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
1.
[
编辑
](
#deliverEdit
)
1.
[
编辑
](
#deliverEdit
)
1.
[
订单关闭
](
#deliverClose
)
1.
[
订单关闭
](
#deliverClose
)
1.
[
创建进度
](
#deliverHandle
)
1.
[
创建进度
](
#deliverHandle
)
1.
[
更新个体户
](
#updateOBusinessmenProinvce
)
## **<a name="handlePage"> 订单办理 </a>**
## **<a name="handlePage"> 订单办理 </a>**
[
返回到目录
](
#menu
)
[
返回到目录
](
#menu
)
...
@@ -371,3 +371,51 @@
...
@@ -371,3 +371,51 @@
}
}
```
```
## **<a name="updateOBusinessmenProinvce"> 更新个体户 </a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/order/orderCtl/updateOBusinessmenProinvce
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
```
javascript
{
"id"
:
"1"
,
// 个体户id 必填
"name"
:
"1"
,
// 个体户名字
"credit_code"
:
"1"
,
// 个体户社会信用代码
"legal_name"
:
"1"
,
// 法人名字
"reg_date"
:
"1"
,
// 注册时间
"business_place"
:
"1"
,
// 个体户经营地址
"business_scope"
:
"1"
,
// 个体户经营范围 Array 例如:[{...},{...}]
"business_img"
:
"1"
,
// 个体户营业执照
"business_gov_file"
:
"1"
,
// 个体户官方文件
"gongzhang"
:
"1"
,
// 个体户公章
"caiwuzhang"
:
"1"
,
// 个体户财务章
"fapiaozhang"
:
"1"
,
// 个体户发票章
"hetongzhang"
:
"1"
,
// 个体户合同章
"farenzhang"
:
"1"
,
// 个体户法人章
"zhang_gov_file"
:
"1"
,
// 个体户章官方文件
"is_bank"
:
"1"
,
// 是否开户 BOOLEAN true:已经开户 false:未开户
"bank_name"
:
"1"
,
// 账户名称
"bank_no"
:
"1"
,
// 银行账户
"bank"
:
"1"
,
// 银行名称
"bank_gov_file"
:
"1"
,
// 银行官方文件
"tax_reg_day"
:
"1"
,
// 税务报道时间
"tax_org"
:
"1"
,
// 税务登记机构
"tax_gov_file"
:
"1"
,
// 官方文件
"ca_img"
:
"1"
,
// 电子钥匙
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:
null
}
```
\ No newline at end of file
xgg-deliver/app/front/entry/public/apidoc/order/order.md
View file @
58ff0e8d
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
1.
[
核定税种
](
#taxCategoryDetermine
)
1.
[
核定税种
](
#taxCategoryDetermine
)
1.
[
交付商提交审核
](
#submitAudit
)
1.
[
交付商提交审核
](
#submitAudit
)
1.
[
交付商订单交付
](
#mailed
)
1.
[
交付商订单交付
](
#mailed
)
1.
[
业务完成
](
#businessCompletion
)
## **<a name="processList"> 业务进度字典 </a>**
## **<a name="processList"> 业务进度字典 </a>**
[
返回到目录
](
#menu
)
[
返回到目录
](
#menu
)
...
@@ -882,3 +883,32 @@
...
@@ -882,3 +883,32 @@
}
}
```
```
## **<a name="businessCompletion"> 业务完成 </a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/order/orderCtl/businessCompletion
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
```
javascript
{
"id"
:
"1567514119003310"
,
"status"
:
"1210"
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:
null
,
"requestid"
:
"6c308d46116945968592fbce5f3f4a95"
}
```
\ No newline at end of file
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