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
7d81d8df
authored
Jul 28, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
temp
parent
53515f75
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
17 deletions
app/Http/Controllers/SupplierController.php
resources/views/web/supplier/SupplierPayType.blade.php
app/Http/Controllers/SupplierController.php
View file @
7d81d8df
...
...
@@ -203,7 +203,6 @@ class SupplierController extends Controller
}
else
{
$this
->
data
[
'title'
]
=
'添加供应商'
;
}
return
$this
->
view
(
'新增供应商'
);
}
...
...
@@ -248,7 +247,7 @@ class SupplierController extends Controller
$supplier
[
'customer_tags'
]
=
$customerTags
?
implode
(
','
,
$customerTags
[
'list'
])
:
''
;
$supplierModel
=
new
SupplierChannelModel
();
$supplierModel
->
where
(
'supplier_id'
,
$supplierId
)
->
update
([
'customer_tags'
=>
$supplier
[
'customer_tags'
]
?:
''
,
'customer_tags'
=>
$supplier
[
'customer_tags'
]
?:
''
,
]);
$this
->
data
[
'supplier'
]
=
$supplier
;
$this
->
data
[
'address'
]
=
$supplierService
->
getAddress
(
$supplierId
);
...
...
resources/views/web/supplier/SupplierPayType.blade.php
View file @
7d81d8df
...
...
@@ -30,12 +30,12 @@
<input
class=
"layui-input valueInput"
type=
"hidden"
id=
"pay_type_value"
name=
"pay_type_value"
value=
"{{$supplier['pay_type_value'] or ''}}"
>
<select
lay-filter=
"pay_type_month"
>
<option
value=
""
>
请选择
</option>
<option
value=
"7"
@
if
(
array_get
($
supplier
,'
pay_type_value
')=='
7
'
)
selected=
'selected'
@
endif
>
7
</option>
<option
value=
"15"
@
if
(
array_get
($
supplier
,'
pay_type_value
')=='
15
'
)
selected=
'selected'
@
endif
>
15
</option>
<option
value=
"30"
@
if
(
array_get
($
supplier
,'
pay_type_value
')=='
30
'
)
selected=
'selected'
@
endif
>
30
</option>
<option
value=
"45"
@
if
(
array_get
($
supplier
,'
pay_type_value
')=='
45
'
)
selected=
'selected'
@
endif
>
45
</option>
<option
value=
"60"
@
if
(
array_get
($
supplier
,'
pay_type_value
')=='
60
'
)
selected=
'selected'
@
endif
>
60
</option>
<option
value=
"90"
@
if
(
array_get
($
supplier
,'
pay_type_value
')=='
90
'
)
selected=
'selected'
@
endif
>
90
</option>
<option
value=
"7"
@
if
(
!
empty
($
supplier
)&&
array_get
($
supplier
,'
pay_type_value
')=='
7
'
)
selected=
'selected'
@
endif
>
7
</option>
<option
value=
"15"
@
if
(
!
empty
($
supplier
)&&
array_get
($
supplier
,'
pay_type_value
')=='
15
'
)
selected=
'selected'
@
endif
>
15
</option>
<option
value=
"30"
@
if
(
!
empty
($
supplier
)&&
array_get
($
supplier
,'
pay_type_value
')=='
30
'
)
selected=
'selected'
@
endif
>
30
</option>
<option
value=
"45"
@
if
(
!
empty
($
supplier
)&&
array_get
($
supplier
,'
pay_type_value
')=='
45
'
)
selected=
'selected'
@
endif
>
45
</option>
<option
value=
"60"
@
if
(
!
empty
($
supplier
)&&
array_get
($
supplier
,'
pay_type_value
')=='
60
'
)
selected=
'selected'
@
endif
>
60
</option>
<option
value=
"90"
@
if
(
!
empty
($
supplier
)&&
array_get
($
supplier
,'
pay_type_value
')=='
90
'
)
selected=
'selected'
@
endif
>
90
</option>
</select>
</div>
&
nbsp天
...
...
@@ -50,7 +50,7 @@
<select
lay-filter=
"pay_type_monthly"
>
<option
value=
""
>
请选择
</option>
@for($i = 1; $i
<
=
31
;
$
i
++)
<
option
value=
"{{$i}}"
@
if
(
array_get
($
supplier
,'
pay_type_value
')==$
i
)
selected=
'selected'
@
endif
>
{{$i}}
</option>
<
option
value=
"{{$i}}"
@
if
(
!
empty
($
supplier
)&&
array_get
($
supplier
,'
pay_type_value
')==$
i
)
selected=
'selected'
@
endif
>
{{$i}}
</option>
@endfor
</select>
</div>
...
...
@@ -65,18 +65,18 @@
<input
class=
"layui-input valueInput"
type=
"hidden"
id=
"pay_type_value_weekly"
name=
"pay_type_value"
value=
"{{$supplier['pay_type_value'] or ''}}"
>
<select
lay-filter=
"pay_type_weekly"
>
<option
value=
""
>
请选择
</option>
<option
value=
"1"
@
if
(
array_get
($
supplier
,'
pay_type_value
')=='
1
'
)
selected=
'selected'
@
endif
>
周一
</option>
<option
value=
"2"
@
if
(
array_get
($
supplier
,'
pay_type_value
')=='
2
'
)
selected=
'selected'
@
endif
>
周二
</option>
<option
value=
"3"
@
if
(
array_get
($
supplier
,'
pay_type_value
')=='
3
'
)
selected=
'selected'
@
endif
>
周三
</option>
<option
value=
"4"
@
if
(
array_get
($
supplier
,'
pay_type_value
')=='
4
'
)
selected=
'selected'
@
endif
>
周四
</option>
<option
value=
"5"
@
if
(
array_get
($
supplier
,'
pay_type_value
')=='
5
'
)
selected=
'selected'
@
endif
>
周五
</option>
<option
value=
"6"
@
if
(
array_get
($
supplier
,'
pay_type_value
')=='
6
'
)
selected=
'selected'
@
endif
>
周六
</option>
<option
value=
"7"
@
if
(
array_get
($
supplier
,'
pay_type_value
')=='
7
'
)
selected=
'selected'
@
endif
>
周日
</option>
<option
value=
"1"
@
if
(
!
empty
($
supplier
)&&
array_get
($
supplier
,'
pay_type_value
')=='
1
'
)
selected=
'selected'
@
endif
>
周一
</option>
<option
value=
"2"
@
if
(
!
empty
($
supplier
)&&
array_get
($
supplier
,'
pay_type_value
')=='
2
'
)
selected=
'selected'
@
endif
>
周二
</option>
<option
value=
"3"
@
if
(
!
empty
($
supplier
)&&
array_get
($
supplier
,'
pay_type_value
')=='
3
'
)
selected=
'selected'
@
endif
>
周三
</option>
<option
value=
"4"
@
if
(
!
empty
($
supplier
)&&
array_get
($
supplier
,'
pay_type_value
')=='
4
'
)
selected=
'selected'
@
endif
>
周四
</option>
<option
value=
"5"
@
if
(
!
empty
($
supplier
)&&
array_get
($
supplier
,'
pay_type_value
')=='
5
'
)
selected=
'selected'
@
endif
>
周五
</option>
<option
value=
"6"
@
if
(
!
empty
($
supplier
)&&
array_get
($
supplier
,'
pay_type_value
')=='
6
'
)
selected=
'selected'
@
endif
>
周六
</option>
<option
value=
"7"
@
if
(
!
empty
($
supplier
)&&
array_get
($
supplier
,'
pay_type_value
')=='
7
'
)
selected=
'selected'
@
endif
>
周日
</option>
</select>
</div>
</div>
</div>
@if (!empty($supplier)
&&
$supplier['pay_type']
==2)
@if (!empty($supplier)
&&
array_get($supplier,'pay_type')
==2)
<div
class=
"pay_type_2_div"
>
<input
type=
"hidden"
class=
"valueInput"
name=
"pay_type_value"
>
<input
type=
"hidden"
class=
"valueInput"
name=
"pay_type_extra"
value=
""
>
...
...
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