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
6b40fe4a
authored
Aug 12, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复
parent
a21f672b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
2 deletions
.gitignore
app/Http/Services/DataService.php
storage/framework/views/587faa134dc1f8953abf61cb2995b8264ba36a12.php
storage/framework/views/d4d13e9bcdea7366e4952031431aae4b22f055c1.php
.gitignore
View file @
6b40fe4a
...
...
@@ -8,4 +8,5 @@ Homestead.json
/vendor/_laravel_idea/*
/vendor/_laravel_idea
/vendor/_laravel_ide
/storage/framework/views
\ No newline at end of file
/storage/framework/views
/storage
app/Http/Services/DataService.php
View file @
6b40fe4a
...
...
@@ -807,4 +807,14 @@ class DataService
continue
;
}
}
//同步供应商到erp
public
static
function
syncSupplierToErp
()
{
$supplierIds
=
SupplierChannelModel
::
where
(
'is_type'
,
0
)
->
where
(
'group_code'
,
'!='
,
''
)
->
pluck
(
'supplier_id'
)
->
toArray
();
foreach
(
$supplierIds
as
$supplierId
)
{
(
new
SyncSupplierService
())
->
syncSupplierToErp
(
$supplierId
);
}
}
}
storage/framework/views/587faa134dc1f8953abf61cb2995b8264ba36a12.php
View file @
6b40fe4a
...
...
@@ -236,6 +236,22 @@
</div>
<div
class=
"layui-inline"
>
<?php
$multiTransformableSelectPresenter
=
app
(
'App\Presenters\Filter\MultiTransformableSelectPresenter'
);
?>
<?php
echo
$multiTransformableSelectPresenter
->
render
([
'has_yunxin_agreement'
=>
'采购合作框架协议'
],
[
'has_yunxin_agreement'
=>
[
1
=>
'有'
,
-
1
=>
'无'
]]);
?>
</div>
<div
class=
"layui-inline"
>
<?php
$statusPresenter
=
app
(
'App\Presenters\StatusPresenter'
);
?>
<?php
echo
$statusPresenter
->
render
(
'has_supplier_account'
,
'启用芯链账号'
,
''
,[
1
=>
'是'
,
-
1
=>
'否'
]);
?>
</div>
<div
class=
"layui-inline"
>
<?php
$statusPresenter
=
app
(
'App\Presenters\StatusPresenter'
);
?>
<?php
echo
$statusPresenter
->
render
(
'has_order_contract'
,
'通过芯链上传合同'
,
''
,[
1
=>
'有'
,
-
1
=>
'无'
]);
?>
</div>
<div
class=
"layui-inline"
>
<?php
$statusPresenter
=
app
(
'App\Presenters\StatusPresenter'
);
?>
<?php
echo
$statusPresenter
->
render
(
'is_entity'
,
'实体名单'
,
''
,
config
(
'field.IsEntity'
));
?>
...
...
storage/framework/views/d4d13e9bcdea7366e4952031431aae4b22f055c1.php
View file @
6b40fe4a
...
...
@@ -176,6 +176,12 @@
width
:
120
,
},
{
field
:
'has_yunxin_agreement'
,
title
:
'采购合作框架协议'
,
align
:
'center'
,
width
:
140
,
},
{
field
:
'channel_username'
,
title
:
'采购员'
,
align
:
'center'
,
width
:
130
,
templet
:
function
(
data
)
{
if
(
data
.
resign_channel_username
)
{
if
(
data
.
on_job_channel_username
)
{
...
...
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