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
5c4a79ef
authored
2 weeks ago
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复
parent
a01d853d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
app/Http/Services/SyncSupplierService.php
resources/views/web/SupplierList.blade.php
app/Http/Services/SyncSupplierService.php
View file @
5c4a79ef
...
...
@@ -13,6 +13,7 @@ use App\Model\SupplierContactModel;
use
App\Model\SupplierReceiptModel
;
use
App\Model\SupplierSyncModel
;
use
App\Model\UserInfoModel
;
use
http\Exception\InvalidArgumentException
;
use
Illuminate\Support\Arr
;
use
Illuminate\Support\Facades\DB
;
use
Illuminate\Support\Facades\Log
;
...
...
@@ -32,7 +33,7 @@ class SyncSupplierService
}
if
(
!
$supplier
[
'group_code'
])
{
return
true
;
throw
new
InvalidArgumentException
(
'供应商还没有生成内部编码,无法同步'
)
;
}
//先去sync表查询记录是否存在,不存在新增,存在修改
...
...
This diff is collapsed.
Click to expand it.
resources/views/web/SupplierList.blade.php
View file @
5c4a79ef
...
...
@@ -35,11 +35,12 @@
{{-- 拉黑--}}
{{-- </button>--}}
@endif
@if(request()->user->userId==1000 || request()->user->userId==2082)
<button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" title="
该操作可以将供应商同步到供应商
"
<button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" title="
该操作可以将供应商同步到供应商
"
id="
sync_supplier_to_erp
">
金蝶同步
</button>
</button>
@if(request()->user->userId==1000 || request()->user->userId==2082)
<button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" title="
该操作可以将供应商同步到一体化
"
id="
sync_supplier_to_united
">
一体化同步
...
...
This diff is collapsed.
Click to expand it.
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