Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CnChunfeng
/
scm_wms_outstore_service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a6a22a6f
authored
May 17, 2020
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改代码
parent
04b5a429
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
app/Http/Model/Logic/OutStoreLogic.php
app/Http/Model/Logic/PickTaskLogic.php
app/Http/Model/Logic/OutStoreLogic.php
View file @
a6a22a6f
...
...
@@ -178,14 +178,20 @@ class OutStoreLogic
$outStoreDetailId
=
OutStoreDetailModel
::
insertGetId
(
$value
);
//is_apply_customs报关任务默认隐藏
$pickTaskData
=
PickTaskLogic
::
handleInsertData
([
// $pickTaskData = PickTaskLogic::handleInsertData([
// 'out_store_id'=>$outStoreId,'out_store_detail_id'=>$outStoreDetailId,'store_id'=>$insertData['store_id'],
// 'pick_task_id'=>$pickTaskId,'is_show'=>empty($insertData['is_apply_customs'])?1:0
// ],$value);
//
// foreach ($pickTaskData as $v){
// PickTaskDetailModel::insertGetId($v);
// }
PickTaskDetailModel
::
insertGetId
([
'out_store_id'
=>
$outStoreId
,
'out_store_detail_id'
=>
$outStoreDetailId
,
'store_id'
=>
$insertData
[
'store_id'
],
'pick_task_id'
=>
$pickTaskId
,
'is_show'
=>
empty
(
$insertData
[
'is_apply_customs'
])
?
1
:
0
]
,
$value
);
]);
foreach
(
$pickTaskData
as
$v
){
PickTaskDetailModel
::
insertGetId
(
$v
);
}
}
DB
::
commit
();
...
...
app/Http/Model/Logic/PickTaskLogic.php
View file @
a6a22a6f
...
...
@@ -99,7 +99,7 @@ class PickTaskLogic
if
(
empty
(
$isAllGoods
)){
//判断是当前商品是否是整拣
if
(
StockModel
::
where
(
'goods_id'
,
$outStoreDetail
[
'goods_id'
])
->
where
(
'warehousing_sn'
,
$outStoreDetail
[
'warehousing_sn'
])
->
sum
(
'stock'
)
==
$returData
[
0
][
'num
eb
r'
]){
if
(
StockModel
::
where
(
'goods_id'
,
$outStoreDetail
[
'goods_id'
])
->
where
(
'warehousing_sn'
,
$outStoreDetail
[
'warehousing_sn'
])
->
sum
(
'stock'
)
==
$returData
[
0
][
'num
be
r'
]){
$returData
[
0
][
'pick_remark'
]
=
'整拣'
;
}
else
{
$returData
[
0
][
'pick_remark'
]
=
'拆零'
;
...
...
@@ -452,6 +452,7 @@ class PickTaskLogic
{
$pickTaskDetailIdArr
=
$data
[
'pick_task_detail_id_arr'
];
self
::
checkIsPackCheck
(
$pickTaskDetailIdArr
,
'该单据已经复核,不可再拣货'
);
//获取可以拣货的数据
if
(
empty
(
$pickTaskDetail
=
PickTaskDetailModel
::
whereIn
(
'pick_task_detail_id'
,
$pickTaskDetailIdArr
)
->
where
(
'pick_status'
,
'='
,
3
)
->
get
()
->
toArray
())){
...
...
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