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
e93195ff
authored
Jul 28, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
详情标准必填
parent
efbb8d39
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
306 additions
and
182 deletions
app/Http/Controllers/Api/SupplierApiController.php
app/Http/Services/SupplierService.php
app/Http/Transformers/SupplierTransformer.php
app/Http/Validators/SupplierValidator.php
config/fixed.php
config/validate.php
resources/views/script/supplier/SkuRulerScript.blade.php
resources/views/script/supplier/SupplierRulerScript.blade.php
resources/views/web/PrintSupplier.blade.php
resources/views/web/SupplierDetail.blade.php
resources/views/web/UpdateSupplier.blade.php
resources/views/web/supplier/SkuRuler.blade.php
resources/views/web/supplier/SupplierBase.blade.php
resources/views/web/supplier/SupplierRuler.blade.php
app/Http/Controllers/Api/SupplierApiController.php
View file @
e93195ff
...
@@ -69,10 +69,13 @@ class SupplierApiController extends Controller
...
@@ -69,10 +69,13 @@ class SupplierApiController extends Controller
//标签
//标签
'system_tags'
,
'system_tags'
,
'customer_tags'
,
'customer_tags'
,
'level'
,
'level'
,
'has_certification'
,
'has_certification'
,
'sku_mode'
,
'sku_tag'
,
'main_customers'
,
'ticket_time'
,
'billing_period_detail'
,
];
];
public
function
Entrance
(
Request
$request
,
$id
)
public
function
Entrance
(
Request
$request
,
$id
)
...
...
app/Http/Services/SupplierService.php
View file @
e93195ff
...
@@ -53,7 +53,7 @@ class SupplierService
...
@@ -53,7 +53,7 @@ class SupplierService
{
{
$supplierTransformer
=
new
SupplierTransformer
();
$supplierTransformer
=
new
SupplierTransformer
();
//先处理下数据
//先处理下数据
$channel
=
$supplierTransformer
->
transform
Form
Data
(
$channel
);
$channel
=
$supplierTransformer
->
transform
Post
Data
(
$channel
);
$logService
=
new
LogService
();
$logService
=
new
LogService
();
$model
=
new
SupplierChannelModel
();
$model
=
new
SupplierChannelModel
();
//获取未修改前的供应商,做数据比较存储
//获取未修改前的供应商,做数据比较存储
...
...
app/Http/Transformers/SupplierTransformer.php
View file @
e93195ff
...
@@ -125,8 +125,10 @@ class SupplierTransformer
...
@@ -125,8 +125,10 @@ class SupplierTransformer
$supplier
[
'last_update_name'
]
=
$log
[
'admin_name'
]
?:
'无'
;
$supplier
[
'last_update_name'
]
=
$log
[
'admin_name'
]
?:
'无'
;
$supplier
[
'last_update_time'
]
=
empty
(
$supplier
[
'last_update_time'
])
?
date
(
'Y-m-d H:i:s'
,
$supplier
[
'last_update_time'
]
=
empty
(
$supplier
[
'last_update_time'
])
?
date
(
'Y-m-d H:i:s'
,
$log
[
'add_time'
])
:
'无'
;
$log
[
'add_time'
])
:
'无'
;
$supplier
[
'has_certification'
]
=
array_get
(
config
(
'fixed.CertificationStatus'
),
$supplier
[
'has_certification'
],
$supplier
[
'has_certification'
]
=
array_get
(
config
(
'fixed.CertificationStatus'
),
''
);
$supplier
[
'has_certification'
],
''
);
$supplier
[
'sku_tag_name'
]
=
array_get
(
config
(
'field.SkuTag'
),
$supplier
[
'sku_tag'
],
'无'
);
$supplier
[
'sku_mode_name'
]
=
array_get
(
config
(
'field.SkuMode'
),
$supplier
[
'sku_mode'
],
'无'
);
return
$supplier
;
return
$supplier
;
}
}
...
@@ -187,7 +189,7 @@ class SupplierTransformer
...
@@ -187,7 +189,7 @@ class SupplierTransformer
}
}
//转换表单数据
//转换表单数据
public
function
transform
Form
Data
(
$channel
)
public
function
transform
Post
Data
(
$channel
)
{
{
if
(
!
empty
(
$channel
[
'stockup_type'
]))
{
if
(
!
empty
(
$channel
[
'stockup_type'
]))
{
$stockupType
=
array_keys
(
$channel
[
'stockup_type'
]);
$stockupType
=
array_keys
(
$channel
[
'stockup_type'
]);
...
...
app/Http/Validators/SupplierValidator.php
View file @
e93195ff
...
@@ -21,15 +21,18 @@ class SupplierValidator
...
@@ -21,15 +21,18 @@ class SupplierValidator
'legal_representative'
=>
'required'
,
'legal_representative'
=>
'required'
,
'stockup_type'
=>
'required'
,
'stockup_type'
=>
'required'
,
'main_brands'
=>
'required'
,
'main_brands'
=>
'required'
,
'main_customers'
=>
'max:100'
,
'ticket_time'
=>
'max:20'
,
// 'supplier_address' => 'required',
// 'supplier_address' => 'required',
'region'
=>
'required'
,
'region'
=>
'required'
,
'cn_delivery_time'
=>
'regex:/^\d+\-\d$/'
,
'cn_delivery_time'
=>
'regex:/^\d+\-\d$/'
,
'us_delivery_time'
=>
'regex:/^\d+\-\d$/'
,
'us_delivery_time'
=>
'regex:/^\d+\-\d$/'
,
'shipping_address'
=>
'max:100'
,
'shipping_address'
=>
'
required|
max:100'
,
'return_address'
=>
'max:100'
,
'return_address'
=>
'max:100'
,
'return_consignee'
=>
'max:50'
,
'return_consignee'
=>
'max:50'
,
'return_phone'
=>
'max:50'
,
'return_phone'
=>
'max:50'
,
'business_license'
=>
'required'
,
'business_license'
=>
'required'
,
'established_time'
=>
'required'
,
'cn_ratio'
=>
'min:1'
,
'cn_ratio'
=>
'min:1'
,
'us_ratio'
=>
'min:1'
,
'us_ratio'
=>
'min:1'
,
];
];
...
@@ -69,7 +72,7 @@ class SupplierValidator
...
@@ -69,7 +72,7 @@ class SupplierValidator
if
(
empty
(
$request
->
get
(
'supplier_id'
)))
{
if
(
empty
(
$request
->
get
(
'supplier_id'
)))
{
$count
=
$supplierModel
->
where
(
'supplier_name'
,
$request
->
get
(
'supplier_name'
))
->
count
();
$count
=
$supplierModel
->
where
(
'supplier_name'
,
$request
->
get
(
'supplier_name'
))
->
count
();
$companyNameCount
=
$supplierModel
->
where
(
'register_company_name'
,
$companyNameCount
=
$supplierModel
->
where
(
'register_company_name'
,
$request
->
get
(
'register_company_name'
))
->
where
(
'register_company_name'
,
'!='
,
''
)
->
count
();
$request
->
get
(
'register_company_name'
))
->
where
(
'register_company_name'
,
'!='
,
''
)
->
count
();
}
else
{
}
else
{
$count
=
$supplierModel
->
where
(
'supplier_name'
,
$request
->
get
(
'supplier_name'
))
$count
=
$supplierModel
->
where
(
'supplier_name'
,
$request
->
get
(
'supplier_name'
))
->
where
(
'supplier_id'
,
'!='
,
$request
->
get
(
'supplier_id'
))
->
count
();
->
where
(
'supplier_id'
,
'!='
,
$request
->
get
(
'supplier_id'
))
->
count
();
...
@@ -101,6 +104,7 @@ class SupplierValidator
...
@@ -101,6 +104,7 @@ class SupplierValidator
'purchase_uid.required'
=>
'渠道开发员不能为空'
,
'purchase_uid.required'
=>
'渠道开发员不能为空'
,
'cn_ratio.min'
=>
'人民币系数必须是大于1的浮点数'
,
'cn_ratio.min'
=>
'人民币系数必须是大于1的浮点数'
,
'business_license.required'
=>
'营业执照不能为空'
,
'business_license.required'
=>
'营业执照不能为空'
,
'established_time.required'
=>
'成立时间不能为空'
,
'us_ratio.min'
=>
'美金系数必须是大于1的浮点数'
,
'us_ratio.min'
=>
'美金系数必须是大于1的浮点数'
,
'us_delivery_time.regex'
=>
'香港货期格式不正确'
,
'us_delivery_time.regex'
=>
'香港货期格式不正确'
,
'cn_delivery_time.regex'
=>
'大陆货期格式不正确'
,
'cn_delivery_time.regex'
=>
'大陆货期格式不正确'
,
...
@@ -115,11 +119,16 @@ class SupplierValidator
...
@@ -115,11 +119,16 @@ class SupplierValidator
'supplier_email.required'
=>
'联系方式的邮箱不能为空'
,
'supplier_email.required'
=>
'联系方式的邮箱不能为空'
,
'supplier_email.email'
=>
'联系方式的邮箱格式不对'
,
'supplier_email.email'
=>
'联系方式的邮箱格式不对'
,
'can_check_uids.required'
=>
'联系方式对应的采购员不能为空'
,
'can_check_uids.required'
=>
'联系方式对应的采购员不能为空'
,
'shipping_address.required'
=>
'发货地址不能为空'
,
'shipping_address.max'
=>
'发货地址不能超过100个字符'
,
'shipping_address.max'
=>
'发货地址不能超过100个字符'
,
'return_address.max'
=>
'退货地址不能超过100个字符'
,
'return_address.max'
=>
'退货地址不能超过100个字符'
,
'return_consignee.max'
=>
'退货收货人不能超过50个字符'
,
'return_consignee.max'
=>
'退货收货人不能超过50个字符'
,
'return_phone.max'
=>
'退货收货人电话不能超过50个字符'
,
'return_phone.max'
=>
'退货收货人电话不能超过50个字符'
,
'main_brands.require'
=>
'主营品牌不能为空'
,
'main_brands.require'
=>
'主营品牌不能为空'
,
'main_customers.max'
=>
'3-5家客户描述不能超过100个字符'
,
'ticket_time.max'
=>
'到票时间不能超过20个字符'
,
'billing_period_detail.require'
=>
'账期详情不能为空'
,
'billing_period_detail.max'
=>
'账期详情不能超过100个字符'
,
];
];
}
}
...
...
config/fixed.php
View file @
e93195ff
...
@@ -66,11 +66,13 @@ return [
...
@@ -66,11 +66,13 @@ return [
],
],
'StockupType'
=>
[
'StockupType'
=>
[
1
=>
'联营'
,
1
=>
'联营-现货'
,
2
=>
'自营'
,
6
=>
'联营-期货'
,
3
=>
'代购'
,
3
=>
'联营-代购'
,
4
=>
'寄售'
,
7
=>
'联营-原厂直供'
,
5
=>
'云芯'
,
2
=>
'自营-自采'
,
4
=>
'自营-寄售'
,
5
=>
'联营-云芯商家'
,
],
],
'SupplierPayType'
=>
[
'SupplierPayType'
=>
[
...
...
config/validate.php
View file @
e93195ff
...
@@ -48,5 +48,10 @@ return [
...
@@ -48,5 +48,10 @@ return [
'customer_tags'
=>
'自定义标签'
,
'customer_tags'
=>
'自定义标签'
,
'level'
=>
'等级'
,
'level'
=>
'等级'
,
'has_certification'
=>
'认证'
,
'has_certification'
=>
'认证'
,
'sku_mode_name'
=>
'SKU 模式'
,
'sku_tag_name'
=>
'SKU 标签'
,
'main_customers'
=>
'3-5家客户'
,
'ticket_time'
=>
'到票时间'
,
'billing_period_detail'
=>
'账期详情'
,
]
]
];
];
\ No newline at end of file
resources/views/script/supplier/SkuRulerScript.blade.php
0 → 100644
View file @
e93195ff
<script>
layui
.
use
([
'table'
,
'form'
,
'element'
,
'layer'
,
'admin'
,
'laydate'
,
'xmSelect'
],
function
()
{
let
form
=
layui
.
form
;
if
({{
$supplier
[
'sku_audit_ruler'
][
'skip'
]}}){
$
(
function
()
{
$
(
'.audit_ruler_item'
).
attr
(
'disabled'
,
true
);
form
.
render
()
})
}
//点击无需审核,所有选项变灰
form
.
on
(
'radio(is_skip)'
,
function
(
data
){
if
(
data
.
value
===
'1'
)
{
$
(
'.audit_ruler_item'
).
attr
(
'disabled'
,
true
);
form
.
render
()
}
else
{
$
(
'.audit_ruler_item'
).
attr
(
'disabled'
,
false
);
form
.
render
()
}
console
.
log
(
data
.
elem
);
//得到radio原始DOM对象
console
.
log
(
data
.
value
);
//被点击的radio的value值
});
});
</script>
\ No newline at end of file
resources/views/script/supplier/SupplierRulerScript.blade.php
View file @
e93195ff
...
@@ -16,26 +16,5 @@
...
@@ -16,26 +16,5 @@
$
(
'#hk_max'
).
val
(
9999999
);
$
(
'#hk_max'
).
val
(
9999999
);
}
}
});
});
if
({{
$supplier
[
'sku_audit_ruler'
][
'skip'
]}}){
$
(
function
()
{
$
(
'.audit_ruler_item'
).
attr
(
'disabled'
,
true
);
form
.
render
()
})
}
//点击无需审核,所有选项变灰
form
.
on
(
'radio(is_skip)'
,
function
(
data
){
if
(
data
.
value
===
'1'
)
{
$
(
'.audit_ruler_item'
).
attr
(
'disabled'
,
true
);
form
.
render
()
}
else
{
$
(
'.audit_ruler_item'
).
attr
(
'disabled'
,
false
);
form
.
render
()
}
console
.
log
(
data
.
elem
);
//得到radio原始DOM对象
console
.
log
(
data
.
value
);
//被点击的radio的value值
});
});
});
</script>
</script>
\ No newline at end of file
resources/views/web/PrintSupplier.blade.php
View file @
e93195ff
...
@@ -79,11 +79,11 @@
...
@@ -79,11 +79,11 @@
</tr>
</tr>
<tr>
<tr>
<td
width=
"20%"
colspan=
"1"
>
付款币别
</td>
<td
width=
"20%"
colspan=
"1"
>
付款币别
</td>
<td
width=
"80%"
colspan=
"5"
style=
"text-align: left;padding-left: 20px"
>
{{$printData['currency_name']
?:
''}}
</td>
<td
width=
"80%"
colspan=
"5"
style=
"text-align: left;padding-left: 20px"
>
{{$printData['currency_name']
or
''}}
</td>
</tr>
</tr>
<tr>
<tr>
<td
width=
"20%"
colspan=
"1"
>
供应商付款方式
</td>
<td
width=
"20%"
colspan=
"1"
>
供应商付款方式
</td>
<td
width=
"80%"
colspan=
"5"
style=
"text-align: left;padding-left: 20px"
>
{{$printData['pay_type_name']
?:
''}}
</td>
<td
width=
"80%"
colspan=
"5"
style=
"text-align: left;padding-left: 20px"
>
{{$printData['pay_type_name']
or
''}}
</td>
</tr>
</tr>
<tr>
<tr>
<td
width=
"20%"
colspan=
"1"
>
付款时间
</td>
<td
width=
"20%"
colspan=
"1"
>
付款时间
</td>
...
@@ -91,11 +91,11 @@
...
@@ -91,11 +91,11 @@
</tr>
</tr>
<tr>
<tr>
<td
width=
"20%"
colspan=
"1"
>
供应商到票时间*
</td>
<td
width=
"20%"
colspan=
"1"
>
供应商到票时间*
</td>
<td
width=
"80%"
colspan=
"5"
style=
"text-align: left;padding-left: 20px"
>
???
</td>
<td
width=
"80%"
colspan=
"5"
style=
"text-align: left;padding-left: 20px"
>
{{$printData['ticket_time'] or ''}}
</td>
</tr>
</tr>
<tr>
<tr>
<td
width=
"20%"
colspan=
"1"
>
账期详情*
</td>
<td
width=
"20%"
colspan=
"1"
>
账期详情*
</td>
<td
width=
"80%"
colspan=
"5"
style=
"text-align: left;padding-left: 20px"
>
???
</td>
<td
width=
"80%"
colspan=
"5"
style=
"text-align: left;padding-left: 20px"
>
{{$printData['billing_period_detail'] or ''}}
</td>
</tr>
</tr>
<tr>
<tr>
<td
width=
"20%"
colspan=
"1"
>
业务负责人
</td>
<td
width=
"20%"
colspan=
"1"
>
业务负责人
</td>
...
...
resources/views/web/SupplierDetail.blade.php
View file @
e93195ff
...
@@ -10,6 +10,10 @@
...
@@ -10,6 +10,10 @@
width
:
100%
;
width
:
100%
;
z-index
:
10
;
z-index
:
10
;
}
}
.required_field
{
color
:
red
;
margin-right
:
5px
;
}
</style>
</style>
<div
class=
"layui-card"
>
<div
class=
"layui-card"
>
<div
class=
"layui-card-header fix-top"
>
<div
class=
"layui-card-header fix-top"
>
...
@@ -92,6 +96,7 @@
...
@@ -92,6 +96,7 @@
<li
class=
"layui-this"
id=
"base_info"
>
基本信息
</li>
<li
class=
"layui-this"
id=
"base_info"
>
基本信息
</li>
<li
id=
"contact"
>
联系人
</li>
<li
id=
"contact"
>
联系人
</li>
<li
id=
"ruler"
>
特殊规则
</li>
<li
id=
"ruler"
>
特殊规则
</li>
<li
id=
"ruler"
>
SKU概况
</li>
</ul>
</ul>
<div
class=
"layui-tab-content"
>
<div
class=
"layui-tab-content"
>
<div
class=
"layui-tab-item layui-show"
>
<div
class=
"layui-tab-item layui-show"
>
...
@@ -101,7 +106,7 @@
...
@@ -101,7 +106,7 @@
<b>
基本资料
</b>
<b>
基本资料
</b>
</blockquote>
</blockquote>
<div
class=
"layui-row"
>
<div
class=
"layui-row"
>
供应商名称 :{{$supplier['supplier_name']}}
<span
class=
"required_field"
>
*
</span>
供应商名称 :{{$supplier['supplier_name']}}
</div>
</div>
<div
class=
"layui-row"
>
<div
class=
"layui-row"
>
注册公司名 :{{$supplier['supplier_name']}}
注册公司名 :{{$supplier['supplier_name']}}
...
@@ -111,15 +116,20 @@
...
@@ -111,15 +116,20 @@
</div>
</div>
<div
class=
"layui-row"
>
<div
class=
"layui-row"
>
<div
class=
"layui-col-md2"
>
<div
class=
"layui-col-md2"
>
所在区域 :{{$supplier['region_name']}}
<span
class=
"required_field"
>
*
</span>
所在区域 :{{$supplier['region_name']}}
</div>
</div>
<div
class=
"layui-col-md3"
>
<div
class=
"layui-col-md3"
>
所属省市 :{{$province_city}}
<span
class=
"required_field"
>
*
</span>
所属省市 :{{$province_city}}
</div>
</div>
</div>
</div>
<div
class=
"layui-row"
>
<div
class=
"layui-row"
>
<div
class=
"layui-col-md6"
>
<span
class=
"required_field"
>
*
</span>
注册地址 :{{$supplier['supplier_address']}}
</div>
</div>
<div
class=
"layui-row"
>
<div
class=
"layui-col-md2"
>
<div
class=
"layui-col-md2"
>
法人代表 :{{$supplier['legal_representative']}}
<span
class=
"required_field"
>
*
</span>
法人代表 :{{$supplier['legal_representative']}}
</div>
</div>
<div
class=
"layui-col-md3"
>
<div
class=
"layui-col-md3"
>
成立时间 :{{$supplier['established_time']}}
成立时间 :{{$supplier['established_time']}}
...
@@ -129,14 +139,17 @@
...
@@ -129,14 +139,17 @@
资信调查 :{{$supplier['credit_investigation']}}
资信调查 :{{$supplier['credit_investigation']}}
</div>
</div>
<div
class=
"layui-row"
>
<div
class=
"layui-row"
>
主营品牌 :{{$supplier['main_brand_names']}}
<span
class=
"required_field"
>
*
</span>
主营品牌 :{{$supplier['main_brand_names']}}
</div>
<div
class=
"layui-row"
>
3-5家客户 :{{$supplier['main_customers']}}
</div>
</div>
<div
class=
"layui-row"
>
<div
class=
"layui-row"
>
<div
class=
"layui-col-md2"
>
<div
class=
"layui-col-md2"
>
公司性质 : {{$supplier['supplier_group_name']}}
公司性质 : {{$supplier['supplier_group_name']}}
</div>
</div>
<div
class=
"layui-col-md3"
>
<div
class=
"layui-col-md3"
>
合作类型 :{{$supplier['stockup_type_name']}}
<span
class=
"required_field"
>
*
</span>
合作类型 :{{$supplier['stockup_type_name']}}
</div>
</div>
</div>
</div>
<div
class=
"layui-row"
>
<div
class=
"layui-row"
>
...
@@ -144,15 +157,29 @@
...
@@ -144,15 +157,29 @@
结算币种 :{{$supplier['currency_name']}}
结算币种 :{{$supplier['currency_name']}}
</div>
</div>
<div
class=
"layui-col-md3"
>
<div
class=
"layui-col-md3"
>
@if ($supplier['currency']==1)
<span
class=
"required_field"
>
*
</span>
@endif
公司税号 :{{$supplier['tax_number']}}
公司税号 :{{$supplier['tax_number']}}
</div>
</div>
</div>
</div>
<div
class=
"layui-row"
>
<div
class=
"layui-col-md2"
>
到票时间 :{{$supplier['ticket_time']}}
</div>
<div
class=
"layui-col-md3"
>
<span
class=
"required_field"
>
*
</span>
账期详情 :{{$supplier['billing_period_detail']}}
</div>
</div>
<div
class=
"layui-row"
style=
"width: 700px"
>
<div
class=
"layui-row"
style=
"width: 700px"
>
@if (!empty($attachment))
@if (!empty($attachment))
@foreach($attachment as $key=>$item)
@foreach($attachment as $key=>$item)
@if(in_array($key,array_keys(config('fixed.FileNameMapping'))))
@if(in_array($key,array_keys(config('fixed.FileNameMapping'))))
@if (!empty($item))
@if (!empty($item))
<div
class=
"layui-col-md12"
>
<div
class=
"layui-col-md12"
>
@if ($key=='business_license')
<span
class=
"required_field"
>
*
</span>
@endif
{{array_get(config('fixed.FileNameMapping'),$key)}} :
{{array_get(config('fixed.FileNameMapping'),$key)}} :
@foreach($item as $k=>$v)
@foreach($item as $k=>$v)
<a
href=
"{{$v['url']}}"
style=
"color: dodgerblue"
<a
href=
"{{$v['url']}}"
style=
"color: dodgerblue"
...
@@ -190,10 +217,10 @@
...
@@ -190,10 +217,10 @@
</blockquote>
</blockquote>
<div
class=
"layui-row"
>
<div
class=
"layui-row"
>
<div
class=
"layui-col-md2"
>
<div
class=
"layui-col-md2"
>
等级 :{{$supplier['level']
}}
等级 :{{$supplier['level']?:'无'
}}
</div>
</div>
<div
class=
"layui-col-md3"
>
<div
class=
"layui-col-md3"
>
认证 :{{$supplier['has_certification']
}}
认证 :{{$supplier['has_certification']?:'无'
}}
</div>
</div>
</div>
</div>
<div
class=
"layui-row"
>
<div
class=
"layui-row"
>
...
@@ -293,6 +320,7 @@
...
@@ -293,6 +320,7 @@
</div>
</div>
@endif
@endif
</div>
</div>
<hr>
<blockquote
class=
"layui-elem-quote layui-text"
>
<blockquote
class=
"layui-elem-quote layui-text"
>
<b>
采购价格系数调整
</b>
<b>
采购价格系数调整
</b>
</blockquote>
</blockquote>
...
@@ -302,6 +330,7 @@
...
@@ -302,6 +330,7 @@
基数为1,如利润为10%,请填写1.1
基数为1,如利润为10%,请填写1.1
</div>
</div>
</div>
</div>
<hr>
<blockquote
class=
"layui-elem-quote layui-text"
>
<blockquote
class=
"layui-elem-quote layui-text"
>
<b>
货期调整
</b>
<b>
货期调整
</b>
</blockquote>
</blockquote>
...
@@ -321,87 +350,102 @@
...
@@ -321,87 +350,102 @@
单位为工作日,周. 格式 : 2-6 工作日,1-2 周
单位为工作日,周. 格式 : 2-6 工作日,1-2 周
</div>
</div>
</div>
</div>
<blockquote
class=
"layui-elem-quote layui-text"
>
<hr>
<b>
上传商品规则
</b>
</div>
</blockquote>
</div>
<div
class=
"layui-row"
>
<div
class=
"layui-tab-item"
>
<div
class=
"layui-form"
>
<blockquote
class=
"layui-elem-quote layui-text"
>
<div
class=
"layui-form-item"
>
<b>
SKU配置
</b>
<div
class=
"layui-inline"
>
</blockquote>
<label
class=
"layui-form-label"
>
数据新增规则 :
</label>
<div
class=
"layui-row"
style=
"margin-left: 20px"
>
<div
class=
"layui-input-inline"
style=
"width: 380px;margin-top: 0px"
>
<div
class=
"layui-col-md2"
>
@if(!empty($supplier['sku_upload_ruler']))
SKU 标签 :{{$supplier['sku_tag_name'] or ''}}
@foreach($supplier['sku_upload_ruler'] as $key=>$flag)
</div>
@if(!empty(array_get(config('fixed.SkuUploadRuler'),$key)))
<div
class=
"layui-col-md3"
>
<input
type=
"checkbox"
name=
"sku_upload_ruler[{{$key}}]"
SKU 模式 :{{$supplier['sku_mode_name'] or ''}}
lay-skin=
"primary"
</div>
@
if
($
flag
)
</div>
checked
<hr>
@
endif
<blockquote
class=
"layui-elem-quote layui-text"
>
disabled
<b>
上传商品规则
</b>
title=
"{{array_get(config('fixed.SkuUploadRuler'),$key)}}"
>
</blockquote>
@endif
<div
class=
"layui-row"
>
@endforeach
<div
class=
"layui-form"
>
@else
<div
class=
"layui-form-item"
>
@foreach(config('fixed.SkuUploadRuler') as $key=>$flag)
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
数据新增规则 :
</label>
<div
class=
"layui-input-inline"
style=
"width: 380px;margin-top: 0px"
>
@if(!empty($supplier['sku_upload_ruler']))
@foreach($supplier['sku_upload_ruler'] as $key=>$flag)
@if(!empty(array_get(config('fixed.SkuUploadRuler'),$key)))
<input
type=
"checkbox"
name=
"sku_upload_ruler[{{$key}}]"
<input
type=
"checkbox"
name=
"sku_upload_ruler[{{$key}}]"
lay-skin=
"primary"
lay-skin=
"primary"
@
if
($
flag
)
checked
@
endif
disabled
disabled
title=
"{{$flag}}"
>
title=
"{{array_get(config('fixed.SkuUploadRuler'),$key)}}"
>
@endforeach
@endif
@endif
@endforeach
</div>
@else
<div
class=
"layui-form-mid layui-word-aux"
>
@foreach(config('fixed.SkuUploadRuler') as $key=>$flag)
SKU数据导入条件勾选后只要满足该条件,就可以导入数据;默认导入条件是有库存、价格、起订量且起订量>库存
<input
type=
"checkbox"
name=
"sku_upload_ruler[{{$key}}]"
</div>
lay-skin=
"primary"
disabled
title=
"{{$flag}}"
>
@endforeach
@endif
</div>
<div
class=
"layui-form-mid layui-word-aux"
>
SKU数据导入条件勾选后只要满足该条件,就可以导入数据;默认导入条件是有库存、价格、起订量且起订量>库存
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-row"
>
</div>
<div
class=
"layui-form"
>
<div
class=
"layui-row"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form"
>
<div
class=
"layui-inline"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
审核内容配置 :
</label>
<div
class=
"layui-inline"
>
<div
class=
"layui-input-inline"
style=
"width: 205px;margin-top: 0;"
>
<label
class=
"layui-form-label"
>
审核内容配置 :
</label>
<input
type=
"radio"
name=
"sku_audit_ruler[skip]"
lay-filter=
"is_skip"
<div
class=
"layui-input-inline"
style=
"width: 205px;margin-top: 0;"
>
disabled
<input
type=
"radio"
name=
"sku_audit_ruler[skip]"
lay-filter=
"is_skip"
@
if
($
supplier
['
sku_audit_ruler
']['
skip
']==
1
)
checked
disabled
@
endif
value=
"1"
@
if
($
supplier
['
sku_audit_ruler
']['
skip
']==
1
)
checked
title=
"无需审核"
>
@
endif
value=
"1"
<input
type=
"radio"
name=
"sku_audit_ruler[skip]"
lay-filter=
"is_skip"
title=
"无需审核"
>
disabled
<input
type=
"radio"
name=
"sku_audit_ruler[skip]"
lay-filter=
"is_skip"
@
if
($
supplier
['
sku_audit_ruler
']['
skip
']==
0
)
checked
@
endif
value=
"0"
disabled
title=
"需要审核内容"
>
@
if
($
supplier
['
sku_audit_ruler
']['
skip
']==
0
)
checked
@
endif
value=
"0"
</div>
title=
"需要审核内容"
>
<div
class=
"layui-input-inline"
style=
"width: 700px;margin-top: 0;"
>
</div>
@if(!empty($supplier['sku_audit_ruler']))
<div
class=
"layui-input-inline"
style=
"width: 700px;margin-top: 0;"
>
@foreach($supplier['sku_audit_ruler']['audit_ruler'] as $key=>$flag)
@if(!empty($supplier['sku_audit_ruler']))
@if(!empty(array_get(config('fixed.SkuAuditRuler.audit_ruler'),$key)))
@foreach($supplier['sku_audit_ruler']['audit_ruler'] as $key=>$flag)
<input
type=
"checkbox"
name=
"sku_audit_ruler[{{$key}}]"
@if(!empty(array_get(config('fixed.SkuAuditRuler.audit_ruler'),$key)))
lay-skin=
"primary"
<input
type=
"checkbox"
name=
"sku_audit_ruler[{{$key}}]"
class=
"audit_ruler_item"
lay-skin=
"primary"
disabled
class=
"audit_ruler_item"
@
if
($
flag
)
disabled
checked
@
if
($
flag
)
@
endif
checked
title=
"{{array_get(config('fixed.SkuAuditRuler.name_map'),$key)}}"
>
@
endif
@endif
@endforeach
@else
@foreach(config('fixed.SkuAuditRuler.audit_ruler') as $key=>$flag)
<input
type=
"checkbox"
name=
"sku_audit_ruler[{{$key}}]"
disabled
lay-skin=
"primary"
class=
"audit_ruler_item"
title=
"{{array_get(config('fixed.SkuAuditRuler.name_map'),$key)}}"
>
title=
"{{array_get(config('fixed.SkuAuditRuler.name_map'),$key)}}"
>
@endforeach
@endif
@endif
@endforeach
</div>
@else
@foreach(config('fixed.SkuAuditRuler.audit_ruler') as $key=>$flag)
<input
type=
"checkbox"
name=
"sku_audit_ruler[{{$key}}]"
disabled
lay-skin=
"primary"
class=
"audit_ruler_item"
title=
"{{array_get(config('fixed.SkuAuditRuler.name_map'),$key)}}"
>
@endforeach
@endif
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<hr>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
resources/views/web/UpdateSupplier.blade.php
View file @
e93195ff
...
@@ -103,6 +103,12 @@
...
@@ -103,6 +103,12 @@
@endif
@endif
id="ruler">特殊规则
id="ruler">特殊规则
</li>
</li>
<li
@
if
(
request
()
-
>
get('tab')=='sku_ruler')
class="layui-this"
@endif
id="sku_ruler">SKU概况
</li>
</ul>
</ul>
<div
class=
"layui-tab-content"
>
<div
class=
"layui-tab-content"
>
<div
class=
"layui-tab-item @if(request()->get('tab')=='base_info'||empty(request()->get('tab'))) layui-show @endif"
>
<div
class=
"layui-tab-item @if(request()->get('tab')=='base_info'||empty(request()->get('tab'))) layui-show @endif"
>
...
@@ -218,7 +224,9 @@
...
@@ -218,7 +224,9 @@
@include('web.supplier.SupplierRuler')
@include('web.supplier.SupplierRuler')
</div>
</div>
</div>
</div>
<div
class=
"layui-tab-item"
>
内容4
</div>
<div
class=
"layui-tab-item"
@
if
(
request
()
-
>
get('tab')=='sku_ruler') layui-show @endif">
@include('web.supplier.SkuRuler')
</div>
<div
class=
"layui-tab-item"
>
内容5
</div>
<div
class=
"layui-tab-item"
>
内容5
</div>
</div>
</div>
</div>
</div>
...
...
resources/views/web/supplier/SkuRuler.blade.php
0 → 100644
View file @
e93195ff
<blockquote
class=
"layui-elem-quote layui-text"
>
<b>
SKU配置
</b>
</blockquote>
<div
class=
"layui-form-item"
>
<div
class=
"layui-col-md3"
>
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('sku_tag','SKU 标签',!empty($supplier)?$supplier['sku_tag']:'',config('field.SkuTag'),['width'=>'150px']) !!}
</div>
<div
class=
"layui-col-md3"
>
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('sku_mode','SKU 模式',!empty($supplier)?$supplier['sku_mode']:'',config('field.SkuMode'),['width'=>'150px']) !!}
</div>
<div
class=
"layui-col-md6"
>
</div>
</div>
<blockquote
class=
"layui-elem-quote layui-text"
>
<b>
SKU相关设置 - 联营库存数据
</b>
</blockquote>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
style=
"width: 100%"
>
<label
class=
"layui-form-label"
>
数据新增规则 :
</label>
<div
class=
"layui-input-inline"
style=
"width: 380px"
>
@if(!empty($supplier['sku_upload_ruler']))
@foreach($supplier['sku_upload_ruler'] as $key=>$flag)
@if(!empty(array_get(config('fixed.SkuUploadRuler'),$key)))
<input
type=
"checkbox"
name=
"sku_upload_ruler[{{$key}}]"
lay-skin=
"primary"
@
if
($
flag
)
checked
@
endif
title=
"{{array_get(config('fixed.SkuUploadRuler'),$key)}}"
>
@endif
@endforeach
@else
@foreach(config('fixed.SkuUploadRuler') as $key=>$flag)
<input
type=
"checkbox"
name=
"sku_upload_ruler[{{$key}}]"
lay-skin=
"primary"
title=
"{{$flag}}"
>
@endforeach
@endif
</div>
<div
class=
"layui-form-mid layui-word-aux"
>
SKU数据导入条件勾选后只要满足该条件,就可以导入数据;默认导入条件是有库存、价格、起订量且起订量>库存
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
style=
"width: 100%"
>
<label
class=
"layui-form-label"
>
审核内容配置 :
</label>
<div
class=
"layui-input-inline"
style=
"width: 205px"
>
<input
type=
"radio"
name=
"sku_audit_ruler[skip]"
lay-filter=
"is_skip"
@
if
($
supplier
['
sku_audit_ruler
']['
skip
']==
1
)
checked
@
endif
value=
"1"
title=
"无需审核"
>
<input
type=
"radio"
name=
"sku_audit_ruler[skip]"
lay-filter=
"is_skip"
@
if
($
supplier
['
sku_audit_ruler
']['
skip
']==
0
)
checked
@
endif
value=
"0"
title=
"需要审核内容"
>
</div>
<div
class=
"layui-input-inline"
style=
"width: 700px"
>
@if(!empty($supplier['sku_audit_ruler']))
@foreach($supplier['sku_audit_ruler']['audit_ruler'] as $key=>$flag)
@if(!empty(array_get(config('fixed.SkuAuditRuler.audit_ruler'),$key)))
<input
type=
"checkbox"
name=
"sku_audit_ruler[{{$key}}]"
lay-skin=
"primary"
class=
"audit_ruler_item"
@
if
($
flag
)
checked
@
endif
title=
"{{array_get(config('fixed.SkuAuditRuler.name_map'),$key)}}"
>
@endif
@endforeach
@else
@foreach(config('fixed.SkuAuditRuler.audit_ruler') as $key=>$flag)
<input
type=
"checkbox"
name=
"sku_audit_ruler[{{$key}}]"
lay-skin=
"primary"
checked
class=
"audit_ruler_item"
title=
"{{array_get(config('fixed.SkuAuditRuler.name_map'),$key)}}"
>
@endforeach
@endif
</div>
</div>
</div>
@include('script.supplier.SkuRulerScript')
\ No newline at end of file
resources/views/web/supplier/SupplierBase.blade.php
View file @
e93195ff
...
@@ -111,6 +111,15 @@
...
@@ -111,6 +111,15 @@
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
3-5家客户 :
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
name=
"main_customers"
id=
"main_customers"
placeholder=
"请输入3-5家客户"
class=
"layui-input"
value=
"{{$supplier['main_customers'] or ''}}"
>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
><span
class=
"require"
>
*
</span>
合作类型
</label>
<label
class=
"layui-form-label"
><span
class=
"require"
>
*
</span>
合作类型
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
...
@@ -132,7 +141,7 @@
...
@@ -132,7 +141,7 @@
<div
class=
"layui-col-md4"
>
<div
class=
"layui-col-md4"
>
@inject('statusPresenter','App\Presenters\StatusPresenter')
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('supplier_group','公司性质',!empty($supplier)?array_get($supplier,'supplier_group',null):'',
{!! $statusPresenter->render('supplier_group','公司性质',!empty($supplier)?array_get($supplier,'supplier_group',null):'',
config('fixed.SupplierGroup'),['required'=>true
,'width'=>'150px'
]) !!}
config('fixed.SupplierGroup'),['required'=>true]) !!}
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -154,6 +163,27 @@
...
@@ -154,6 +163,27 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
到票时间 :
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
style=
"width: 170px"
name=
"ticket_time"
id=
"ticket_time"
placeholder=
"请输入到票时间"
class=
"layui-input"
value=
"{{$supplier['ticket_time'] or ''}}"
>
</div>
</div>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
><span
class=
"require"
>
*
</span>
账期详情
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
name=
"billing_period_detail"
style=
"width: 470px"
placeholder=
"请输入账期详情"
class=
"layui-input"
value=
"{{$supplier['billing_period_detail'] or ''}}"
>
</div>
</div>
</div>
@include('web.supplier.SupplierFile')
@include('web.supplier.SupplierFile')
@if($operate!='add')
@if($operate!='add')
...
...
resources/views/web/supplier/SupplierRuler.blade.php
View file @
e93195ff
...
@@ -99,68 +99,4 @@
...
@@ -99,68 +99,4 @@
</div>
</div>
</div>
</div>
<blockquote
class=
"layui-elem-quote layui-text"
>
<b>
SKU相关设置 - 联营库存数据
</b>
</blockquote>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
style=
"width: 100%"
>
<label
class=
"layui-form-label"
>
数据新增规则 :
</label>
<div
class=
"layui-input-inline"
style=
"width: 380px"
>
@if(!empty($supplier['sku_upload_ruler']))
@foreach($supplier['sku_upload_ruler'] as $key=>$flag)
@if(!empty(array_get(config('fixed.SkuUploadRuler'),$key)))
<input
type=
"checkbox"
name=
"sku_upload_ruler[{{$key}}]"
lay-skin=
"primary"
@
if
($
flag
)
checked
@
endif
title=
"{{array_get(config('fixed.SkuUploadRuler'),$key)}}"
>
@endif
@endforeach
@else
@foreach(config('fixed.SkuUploadRuler') as $key=>$flag)
<input
type=
"checkbox"
name=
"sku_upload_ruler[{{$key}}]"
lay-skin=
"primary"
title=
"{{$flag}}"
>
@endforeach
@endif
</div>
<div
class=
"layui-form-mid layui-word-aux"
>
SKU数据导入条件勾选后只要满足该条件,就可以导入数据;默认导入条件是有库存、价格、起订量且起订量>库存
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
style=
"width: 100%"
>
<label
class=
"layui-form-label"
>
审核内容配置 :
</label>
<div
class=
"layui-input-inline"
style=
"width: 205px"
>
<input
type=
"radio"
name=
"sku_audit_ruler[skip]"
lay-filter=
"is_skip"
@
if
($
supplier
['
sku_audit_ruler
']['
skip
']==
1
)
checked
@
endif
value=
"1"
title=
"无需审核"
>
<input
type=
"radio"
name=
"sku_audit_ruler[skip]"
lay-filter=
"is_skip"
@
if
($
supplier
['
sku_audit_ruler
']['
skip
']==
0
)
checked
@
endif
value=
"0"
title=
"需要审核内容"
>
</div>
<div
class=
"layui-input-inline"
style=
"width: 700px"
>
@if(!empty($supplier['sku_audit_ruler']))
@foreach($supplier['sku_audit_ruler']['audit_ruler'] as $key=>$flag)
@if(!empty(array_get(config('fixed.SkuAuditRuler.audit_ruler'),$key)))
<input
type=
"checkbox"
name=
"sku_audit_ruler[{{$key}}]"
lay-skin=
"primary"
class=
"audit_ruler_item"
@
if
($
flag
)
checked
@
endif
title=
"{{array_get(config('fixed.SkuAuditRuler.name_map'),$key)}}"
>
@endif
@endforeach
@else
@foreach(config('fixed.SkuAuditRuler.audit_ruler') as $key=>$flag)
<input
type=
"checkbox"
name=
"sku_audit_ruler[{{$key}}]"
lay-skin=
"primary"
checked
class=
"audit_ruler_item"
title=
"{{array_get(config('fixed.SkuAuditRuler.name_map'),$key)}}"
>
@endforeach
@endif
</div>
</div>
</div>
@include('script.supplier.SupplierRulerScript')
@include('script.supplier.SupplierRulerScript')
\ No newline at end of file
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