Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
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
af339173
authored
Mar 15, 2024
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
同步代购脚本以及放开新增银行按钮
parent
4679a707
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
app/Http/Services/DataService.php
app/Http/routes.php
resources/views/web/supplier/SupplierReceipt.blade.php
app/Http/Services/DataService.php
View file @
af339173
...
@@ -442,4 +442,12 @@ class DataService
...
@@ -442,4 +442,12 @@ class DataService
}
}
function
syncDaigouSuppliersToErp
(){
$supplierIdList
=
SupplierChannelModel
::
whereIn
(
'supplier_name'
,
config
(
'field.SkipChangeSupplierTypeNames'
))
->
pluck
(
'supplier_id'
)
->
toArray
();
foreach
(
$supplierIdList
as
$supplierId
)
{
(
new
SyncSupplierService
())
->
syncSupplierToErp
(
$supplierId
);
}
}
}
}
app/Http/routes.php
View file @
af339173
...
@@ -60,7 +60,7 @@ Route::group(['middleware' => ['web'], 'namespace' => 'Api'], function () {
...
@@ -60,7 +60,7 @@ Route::group(['middleware' => ['web'], 'namespace' => 'Api'], function () {
Route
::
match
([
'get'
,
'post'
],
'/api/supplier_memo/{key}'
,
'SupplierMemoApiController@Entrance'
);
Route
::
match
([
'get'
,
'post'
],
'/api/supplier_memo/{key}'
,
'SupplierMemoApiController@Entrance'
);
//单独的统计接口
//单独的统计接口
Route
::
match
([
'get'
,
'post'
],
'/statisticsSkuNumber'
,
function
()
{
Route
::
match
([
'get'
,
'post'
],
'/statisticsSkuNumber'
,
function
()
{
(
new
\App\Http\Services\DataService
())
->
s
tatisticsSkuNumberFromSKu
();
(
new
\App\Http\Services\DataService
())
->
s
yncDaigouSuppliersToErp
();
});
});
});
});
...
...
resources/views/web/supplier/SupplierReceipt.blade.php
View file @
af339173
<div
class=
"layui-row"
>
<div
class=
"layui-row"
>
@if($operate == 'update')
@if($operate == 'update')
<div
class=
"layui-btn-group demoTable"
style=
"margin-top: 5px"
>
<div
class=
"layui-btn-group demoTable"
style=
"margin-top: 5px"
>
{{--
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"add_bank"
>
新增
</button>
--}}
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"add_bank"
>
新增
</button>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"update_bank"
>
修改
</button>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"update_bank"
>
修改
</button>
{{--
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"delete_bank"
>
删除
</button>
--}}
{{--
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"delete_bank"
>
删除
</button>
--}}
</div>
</div>
...
...
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