Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meibuyu-micro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
without authentication
meibuyu-micro
Commits
701e94ff
Commit
701e94ff
authored
Sep 07, 2020
by
fuyunnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加仓库 给订单系统 恢复库存的操作
parent
92dd2a35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
37 deletions
+46
-37
StoreServiceInterface.php
src/Service/Interfaces/StoreServiceInterface.php
+46
-37
No files found.
src/Service/Interfaces/StoreServiceInterface.php
View file @
701e94ff
...
...
@@ -25,22 +25,22 @@ interface StoreServiceInterface
* author: fuyunnan
* @param array $data 需要入库的数组 格式 入库添加
* *
data[master][warehousing_date]:2020-01-08 入库时间
data[master][creator_id]:12 创建人id
data[master][warehouse_id]:2 仓库id
data[master][type_id]:1 入库单类型
data[master][source_no]:no_121333 来源单号 (选填)
data[master][stock_up_status]:1二次质检状态 (选填)
data[master][remark]:备注 (选填)
data[master][status]:2 状态 (选填 不填默认1)
*
* 产品二维数组
data[goods][0][product_id]:16 产品id
data[goods][0][should_cnt]:133 应入数量
data[goods][0][real_cnt]:10 实入数量
data[goods][1][product_id]:18
data[goods][1][should_cnt]:10
data[goods][1][real_cnt]:15
*
data[master][warehousing_date]:2020-01-08 入库时间
*
data[master][creator_id]:12 创建人id
*
data[master][warehouse_id]:2 仓库id
*
data[master][type_id]:1 入库单类型
*
data[master][source_no]:no_121333 来源单号 (选填)
*
data[master][stock_up_status]:1二次质检状态 (选填)
*
data[master][remark]:备注 (选填)
*
data[master][status]:2 状态 (选填 不填默认1)
*
* 产品二维数组
*
data[goods][0][product_id]:16 产品id
*
data[goods][0][should_cnt]:133 应入数量
*
data[goods][0][real_cnt]:10 实入数量
*
data[goods][1][product_id]:18
*
data[goods][1][should_cnt]:10
*
data[goods][1][real_cnt]:15
*
* 或者参考yapi http://api.huaperfect.com/project/38/interface/api/1617
*
...
...
@@ -51,30 +51,28 @@ interface StoreServiceInterface
public
function
createWarehousing
(
array
$data
)
:
array
;
/**
* description:批量创建出库单
* author: fuyunnan
* [
'main' => [
'creator_id' => 1,
'warehouse_id' => 1,
'type' => 5,
],
'products' => [
[
'source_no' => 1,
'product_id' => 1,
'real_cnt' => 1
],
[
'source_no' => 1,
'product_id' => 1,
'real_cnt' => 1
]
]
]
*
'main' => [
*
'creator_id' => 1,
*
'warehouse_id' => 1,
*
'type' => 5,
*
],
*
'products' => [
*
[
*
'source_no' => 1,
*
'product_id' => 1,
*
'real_cnt' => 1
*
],
*
[
*
'source_no' => 1,
*
'product_id' => 1,
*
'real_cnt' => 1
*
]
*
]
*
]
*
* @param array $attributes 提交的数组 或参考yapi http://api.huaperfect.com/project/38/interface/api/6968
* @return array
...
...
@@ -173,6 +171,17 @@ interface StoreServiceInterface
* @throws
* Date: 2020/7/31
*/
public
function
checkStock
(
$ids
)
:
array
;
public
function
checkStock
(
$ids
)
:
array
;
/**
* description:出库单 恢复库存 出库单定为已取消
* author: fuyunnan
* @param string $sourceNo 来源单号
* @return int
* @throws
* Date: 2020/9/7
*/
public
function
restoreStock
(
$sourceNo
)
:
int
;
}
\ 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