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
09f4ec29
authored
Mar 02, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
进一步优化
parent
9606ad6c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
13 deletions
app/Console/Commands/RefreshHistoryPurchaseUser.php
app/Http/Controllers/Api/SupplierApiController.php
app/Http/Services/SupplierService.php
app/Console/Commands/RefreshHistoryPurchaseUser.php
View file @
09f4ec29
...
@@ -65,15 +65,21 @@ class RefreshHistoryPurchaseUser extends Command
...
@@ -65,15 +65,21 @@ class RefreshHistoryPurchaseUser extends Command
$supplierCode
=
isset
(
$detail
[
'supplier_code'
])
?
$detail
[
'supplier_code'
]
:
''
;
$supplierCode
=
isset
(
$detail
[
'supplier_code'
])
?
$detail
[
'supplier_code'
]
:
''
;
$supplierName
=
isset
(
$detail
[
'supplier_name'
])
?
$detail
[
'supplier_name'
]
:
''
;
$supplierName
=
isset
(
$detail
[
'supplier_name'
])
?
$detail
[
'supplier_name'
]
:
''
;
$action
=
isset
(
$detail
[
'action'
])
?
$detail
[
'action'
]
:
''
;
$action
=
isset
(
$detail
[
'action'
])
?
$detail
[
'action'
]
:
''
;
$isNew
=
isset
(
$detail
[
'is_new'
])
?
$detail
[
'is_new'
]
:
false
;
// 获取分配的采购员信息
// 获取分配的采购员信息
$assignInfo
=
''
;
$assignInfo
=
''
;
if
(
isset
(
$detail
[
'assign_code_ids'
])
&&
!
empty
(
$detail
[
'assign_code_ids'
]))
{
if
(
isset
(
$detail
[
'assign_names'
])
&&
!
empty
(
$detail
[
'assign_names'
]))
{
$assignInfo
=
' 分配采购员codeId: '
.
implode
(
','
,
$detail
[
'assign_code_ids'
]);
$assignInfo
=
' 采购员: '
.
implode
(
','
,
$detail
[
'assign_names'
]);
}
elseif
(
isset
(
$detail
[
'assign_code_ids'
])
&&
!
empty
(
$detail
[
'assign_code_ids'
]))
{
$assignInfo
=
' 采购员codeId: '
.
implode
(
','
,
$detail
[
'assign_code_ids'
]);
}
}
$newFlag
=
$isNew
?
'[新增]'
:
'[补充]'
;
$this
->
info
(
sprintf
(
$this
->
info
(
sprintf
(
' [ID:%d %s] %s - %s%s'
,
' %s [ID:%d %s] %s - %s%s'
,
$newFlag
,
$supplierId
,
$supplierId
,
$supplierCode
,
$supplierCode
,
$supplierName
,
$supplierName
,
...
...
app/Http/Controllers/Api/SupplierApiController.php
View file @
09f4ec29
...
@@ -883,16 +883,6 @@ class SupplierApiController extends Controller
...
@@ -883,16 +883,6 @@ class SupplierApiController extends Controller
}
}
}
}
//刷新历史数据:自动分配猎芯采购和数据跟单员
public
function
RefreshHistoryPurchaseUser
(
$request
)
{
$mode
=
$request
->
get
(
'mode'
,
'debug'
);
// prod=生产模式执行数据处理,其他=调试模式
$num
=
$request
->
get
(
'num'
,
50
);
// 处理数量限制
$result
=
SupplierService
::
refreshHistoryPurchaseUser
(
$mode
,
$num
);
$this
->
response
(
0
,
'刷新完成'
,
$result
);
}
//获取审核流程
//获取审核流程
public
function
GetAuditFlow
(
$request
)
public
function
GetAuditFlow
(
$request
)
{
{
...
...
app/Http/Services/SupplierService.php
View file @
09f4ec29
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