Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meibuyu-rpc
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
0
Merge Requests
0
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-rpc
Commits
57d45fa6
Commit
57d45fa6
authored
Nov 06, 2020
by
fuyunnan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fuyunnan-dev-code' into test
parents
dc449ce1
2ee0e6ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
110 additions
and
2 deletions
+110
-2
StoreMaterialServiceInterface.php
...ervice/Interfaces/Store/StoreMaterialServiceInterface.php
+98
-2
functions.php
src/functions.php
+12
-0
No files found.
src/Service/Interfaces/Store/StoreMaterialServiceInterface.php
View file @
57d45fa6
...
@@ -12,7 +12,7 @@ interface StoreMaterialServiceInterface
...
@@ -12,7 +12,7 @@ interface StoreMaterialServiceInterface
{
{
/**
/**
* description:创建原料入库单
* description:创建原料入库单
*
*
* data[master][warehousing_date]:2020-01-08 入库时间
* data[master][warehousing_date]:2020-01-08 入库时间
* data[master][creator_id]:12 创建人id
* data[master][creator_id]:12 创建人id
* data[master][warehouse_id]:2 仓库id
* data[master][warehouse_id]:2 仓库id
...
@@ -28,7 +28,7 @@ interface StoreMaterialServiceInterface
...
@@ -28,7 +28,7 @@ interface StoreMaterialServiceInterface
* data[goods][1][material_id]:18
* data[goods][1][material_id]:18
* data[goods][1][should_cnt]:10
* data[goods][1][should_cnt]:10
* data[goods][1][real_cnt]:15
* data[goods][1][real_cnt]:15
*
*
* author: fuyunnan
* author: fuyunnan
* @param array $attributes 需要入库的数组 格式请参考yapi 入库添加
* @param array $attributes 需要入库的数组 格式请参考yapi 入库添加
* @return array
* @return array
...
@@ -36,4 +36,100 @@ interface StoreMaterialServiceInterface
...
@@ -36,4 +36,100 @@ interface StoreMaterialServiceInterface
* Date: 2020/7/6
* Date: 2020/7/6
*/
*/
public
function
createMaterialWarehousing
(
array
$attributes
)
:
array
;
public
function
createMaterialWarehousing
(
array
$attributes
)
:
array
;
/**
* description:批量创建入库单
* author: fuyunnan
* @param
* @return array
* @throws
* Date: 2020/10/31
*/
public
function
createBatchMaterialWarehousing
(
$attributes
)
:
array
;
/**
* description:批量创建出库单
* author: fuyunnan
* @param
* @return array
* @throws
* Date: 2020/10/31
*/
public
function
createBatchExMaterialWarehouse
(
$attributes
)
:
array
;
/**
* description:批量修改入库单
* author: fuyunnan
* @param
* @return array
* @throws
* Date: 2020/10/31
*/
public
function
updateBatchMaterialWarehousing
(
$attributes
)
:
array
;
/**
* description:批量修改出库单
* author: fuyunnan
* @param
* @return array
* @throws
* Date: 2020/10/31
*/
public
function
updateBatchExMaterialWarehouse
(
$attributes
)
:
array
;
/**
* description:通过原料id数组获取库存列表 给订单系统查询的接口 返回当前原料分组后的库存
* author: fuyunnan
* @param array $ids 原料ids 数组
* @param array $wareIds 仓库数组id
* @return array
* @throws
* Date: 2020/7/27
*/
public
function
getGroupMaterialStock
(
$ids
,
$wareIds
=
[])
:
array
;
/**
* description:批量查看入库单信息
* author: fuyunnan
* @param array $ids 入库单ids数组
* @param array $relations 关联关系 ['material_warehousing_order_materials']
* @return array
* @throws
* Date: 2020/10/31
*/
public
function
showBatchWarehousing
(
$ids
,
$relations
=
[])
:
array
;
/**
* description:批量查看出库单信息
* author: fuyunnan
* @param array $ids 出库单ids数组
* @param array $relations 关联关系 ['material_ex_warehouse_order_materials']
* @return array
* @throws
* Date: 2020/10/31
*/
public
function
showBatchExeWarehouse
(
$ids
,
$relations
=
[])
:
array
;
/**
* description:批量调拨库存方法
* author: fuyunnan
* @param array $data 表单
* @return array
* @throws
* Date: 2020/11/3
*/
public
function
transferToStock
(
$data
)
:
array
;
/**
* description:整合 先出库 然后 再入库数量 失败回滚
* author: fuyunnan
* @param array $outData 出库数组
* @param array $inData 出库数组
* @return array
* @throws
* Date: 2020/11/5
*/
public
function
transferUpdateOutAfterIn
(
$outData
,
$inData
)
:
array
;
}
}
src/functions.php
View file @
57d45fa6
...
@@ -787,3 +787,15 @@ if (!function_exists('str_replace_first')) {
...
@@ -787,3 +787,15 @@ if (!function_exists('str_replace_first')) {
return
$subject
;
return
$subject
;
}
}
}
}
if
(
!
function_exists
(
'create_file_dir'
))
{
/**
* 检查当前目录是否存在 不存在就创建一个目录
* @param mixed $dir 文件目录
* @return bool
* @author zero
*/
function
create_file_dir
(
$dir
)
{
return
!
is_dir
(
$dir
)
&&
mkdir
(
$dir
,
0777
,
true
);
}
}
\ 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