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
5c5eb12f
authored
Jan 09, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化性能
parent
1cd2513c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
app/Http/Controllers/Api/SkuApiController.php
app/Http/Controllers/SkuController.php
resources/views/web/SetSupplierSkuCpTimeLimit.blade.php
app/Http/Controllers/Api/SkuApiController.php
View file @
5c5eb12f
...
...
@@ -233,6 +233,7 @@ class SkuApiController extends Controller
'futures_cp_time_day'
=>
$request
->
input
(
'futures_cp_time_day'
),
];
if
(
empty
(
$cpTimeData
[
'cp_time_day'
])
&&
$cpTimeData
[
'day_type'
]
==
1
)
{
$this
->
response
(
-
1
,
'货期有效期天数不能为0'
);
}
...
...
app/Http/Controllers/SkuController.php
View file @
5c5eb12f
...
...
@@ -153,6 +153,8 @@ class SkuController extends Controller
$supplier
=
$supplier
->
toArray
();
$supplierCodes
[
$supplier
[
'supplier_code'
]]
=
$supplier
[
'supplier_name'
]
.
'('
.
$supplier
[
'supplier_code'
]
.
')'
;
}
$supplierData
=
SupplierService
::
getSupplierCodeListForXmSelect
();
$this
->
data
[
'supplierData'
]
=
$supplierData
;
$this
->
data
[
'title'
]
=
'商品有效期配置'
;
$this
->
data
[
'supplierCodes'
]
=
$supplierCodes
;
return
$this
->
view
(
'商品有效期配置'
);
...
...
resources/views/web/SetSupplierSkuCpTimeLimit.blade.php
View file @
5c5eb12f
...
...
@@ -19,9 +19,8 @@
</div>
<div
class=
"layui-form-item"
style=
"display: none"
id=
"supplier_code_div"
>
<div
class=
"layui-inline"
style=
"margin-left: 73px;"
>
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('supplier_code','供应商编码',null,
$supplierCodes,['required'=>true,'width'=>'350px']) !!}
@inject('multiSelectorPresenter','App\Presenters\MultiSelectorPresenter')
{!! $multiSelectorPresenter->render('supplier_code','供应商选择','',$supplierData,['required'=>true,'radio'=>'true','width'=>'400px']) !!}
</div>
</div>
<div
class=
"layui-form-item"
>
...
...
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