Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
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
c399f924
authored
Aug 21, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整dgk
parent
43e3e993
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
34 deletions
public/js/add_order.js
resources/views/addOrder/content.blade.php
public/js/add_order.js
View file @
c399f924
...
@@ -753,38 +753,38 @@
...
@@ -753,38 +753,38 @@
var
product_use_classtwo_sn
=
$
(
'.product_use_classtwo_sn'
).
val
();
var
product_use_classtwo_sn
=
$
(
'.product_use_classtwo_sn'
).
val
();
var
customer_website
=
$
(
'.customer_website'
).
val
();
var
customer_website
=
$
(
'.customer_website'
).
val
();
if
(
!
customer_cn
)
{
//
if (!customer_cn) {
layer
.
msg
(
'请填写终端中文名称'
);
//
layer.msg('请填写终端中文名称');
return
false
;
//
return false;
}
//
}
if
(
customer_type
==
''
)
{
//
if (customer_type == '') {
layer
.
msg
(
'请选择客户类型'
);
//
layer.msg('请选择客户类型');
return
false
;
//
return false;
}
//
}
if
(
customer_type
==
1
)
{
// 若客户类型为终端,则外文名称,产品用途和网址为必填
//
if (customer_type == 1) { // 若客户类型为终端,则外文名称,产品用途和网址为必填
if
(
!
customer_en
)
{
//
if (!customer_en) {
layer
.
msg
(
'请填写终端英文名称'
);
//
layer.msg('请填写终端英文名称');
return
false
;
//
return false;
}
//
}
var
en_reg
=
/^
[
a-zA-Z0-9
\.\s\,\(\)]
+$/
;
//
var en_reg = /^[a-zA-Z0-9\.\s\,\(\)]+$/;
if
(
!
en_reg
.
test
(
customer_en
)){
//
if(!en_reg.test(customer_en)){
layer
.
msg
(
'请填写全英文名称'
);
//
layer.msg('请填写全英文名称');
return
false
;
//
return false;
}
//
}
if
(
product_use_classone_sn
==
''
)
{
//
if (product_use_classone_sn == '') {
layer
.
msg
(
'请选择产品用途一级分类'
);
//
layer.msg('请选择产品用途一级分类');
return
false
;
//
return false;
}
//
}
if
(
!
customer_website
)
{
//
if (!customer_website) {
layer
.
msg
(
'请填写客户网址'
);
//
layer.msg('请填写客户网址');
return
false
;
//
return false;
}
//
}
}
//
}
datax
.
customer_cn
=
customer_cn
;
datax
.
customer_cn
=
customer_cn
;
datax
.
customer_en
=
customer_en
;
datax
.
customer_en
=
customer_en
;
...
...
resources/views/addOrder/content.blade.php
View file @
c399f924
...
@@ -254,9 +254,7 @@
...
@@ -254,9 +254,7 @@
<option
value=
""
>
请选择
</option>
<option
value=
""
>
请选择
</option>
@if (Config('params.end_user_type'))
@if (Config('params.end_user_type'))
@foreach (Config('params.end_user_type') as $k => $v)
@foreach (Config('params.end_user_type') as $k => $v)
@if (in_array($k, [1, 3]))
<option
value=
"{{ $k }}"
>
{{ $v }}
</option>
<option
value=
"{{ $k }}"
>
{{ $v }}
</option>
@endif
@endforeach
@endforeach
@endif
@endif
</select>
</select>
...
...
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