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
ea1ddf3a
authored
Jul 16, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
后台下单、审单digikey终端信息更改为选填
parent
71d54bda
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
60 deletions
public/js/add_order.js
public/js/change_order.js
resources/views/detail/detail_multi_info.php
public/js/add_order.js
View file @
ea1ddf3a
...
...
@@ -730,37 +730,31 @@
var
product_use_classone_sn
=
$
(
'.product_use_classone_sn'
).
val
();
var
product_use_classtwo_sn
=
$
(
'.product_use_classtwo_sn'
).
val
();
if
(
!
customer_cn
)
{
layer
.
msg
(
'请填写终端中文名称'
);
return
false
;
}
// var cn_reg = /^[\u4e00-\u9fa5]+$/;
// if(!cn_reg.test(customer_cn)){
// layer.msg('请填写全中文名称');
// return false;
// if (!customer_cn) {
// layer.msg('请填写终端中文名称');
// return false;
// }
if
(
!
customer_en
)
{
layer
.
msg
(
'请填写终端英文名称'
);
return
false
;
}
//
if (!customer_en) {
//
layer.msg('请填写终端英文名称');
//
return false;
//
}
var
en_reg
=
/^
[
a-zA-Z0-9
\.\s\,\(\)]
+$/
;
if
(
!
en_reg
.
test
(
customer_en
)){
layer
.
msg
(
'请填写全英文名称'
);
return
false
;
}
//
var en_reg = /^[a-zA-Z0-9\.\s\,\(\)]+$/;
//
if(!en_reg.test(customer_en)){
//
layer.msg('请填写全英文名称');
//
return false;
//
}
if
(
customer_type
==
''
)
{
layer
.
msg
(
'请选择客户类型'
);
return
false
;
}
//
if (customer_type == '') {
//
layer.msg('请选择客户类型');
//
return false;
//
}
if
(
product_use_classone_sn
==
''
)
{
layer
.
msg
(
'请选择产品用途一级分类'
);
return
false
;
}
//
if (product_use_classone_sn == '') {
//
layer.msg('请选择产品用途一级分类');
//
return false;
//
}
datax
.
customer_cn
=
customer_cn
;
datax
.
customer_en
=
customer_en
;
...
...
public/js/change_order.js
View file @
ea1ddf3a
...
...
@@ -377,39 +377,39 @@
var
business_type
=
$
(
'input[name=business_type]'
).
val
();
// 若存在digikey商品,终端客户信息必填 2020-4-26
if
(
is_dgk_exists
)
{
var
customer_cn
=
$
(
'.customer_cn'
).
val
();
var
customer_en
=
$
(
'.customer_en'
).
val
();
var
customer_type
=
$
(
'.customer_type'
).
val
();
var
product_use_classone_sn
=
$
(
'.product_use_classone_sn'
).
val
();
var
product_use_classtwo_sn
=
$
(
'.product_use_classtwo_sn'
).
val
();
if
(
!
customer_cn
)
{
layer
.
msg
(
'请填写终端中文名称'
);
return
false
;
}
if
(
!
customer_en
)
{
layer
.
msg
(
'请填写终端英文名称'
);
return
false
;
}
var
en_reg
=
/^
[
a-zA-Z0-9
\.\s\,\(\)]
+$/
;
if
(
!
en_reg
.
test
(
customer_en
)){
layer
.
msg
(
'请填写全英文名称'
);
return
false
;
}
if
(
customer_type
==
''
)
{
layer
.
msg
(
'请选择客户类型'
);
return
false
;
}
if
(
product_use_classone_sn
==
''
)
{
layer
.
msg
(
'请选择产品用途一级分类'
);
return
false
;
}
}
//
if (is_dgk_exists) {
//
var customer_cn = $('.customer_cn').val();
//
var customer_en = $('.customer_en').val();
//
var customer_type = $('.customer_type').val();
//
var product_use_classone_sn = $('.product_use_classone_sn').val();
//
var product_use_classtwo_sn = $('.product_use_classtwo_sn').val();
//
if (!customer_cn) {
//
layer.msg('请填写终端中文名称');
//
return false;
//
}
//
if (!customer_en) {
//
layer.msg('请填写终端英文名称');
//
return false;
//
}
//
var en_reg = /^[a-zA-Z0-9\.\s\,\(\)]+$/;
//
if(!en_reg.test(customer_en)){
//
layer.msg('请填写全英文名称');
//
return false;
//
}
//
if (customer_type == '') {
//
layer.msg('请选择客户类型');
//
return false;
//
}
//
if (product_use_classone_sn == '') {
//
layer.msg('请选择产品用途一级分类');
//
return false;
//
}
//
}
if
(
isNewClient
)
{
if
(
client_source
==
null
)
{
...
...
resources/views/detail/detail_multi_info.php
View file @
ea1ddf3a
...
...
@@ -200,7 +200,7 @@
<tr>
<td>
<?=
$order_extra
[
'customer_cn'
]
?>
</td>
<td>
<?=
$order_extra
[
'customer_en'
]
?>
</td>
<td>
<?=
Config
(
'params.end_user_type'
)[
$order_extra
[
'customer_type'
]]
?>
</td>
<td>
<?=
$order_extra
[
'customer_type'
]
?
Config
(
'params.end_user_type'
)[
$order_extra
[
'customer_type'
]]
:
''
?>
</td>
<td>
<?=
$order_extra
[
'product_use'
]
?>
</td>
</tr>
</table>
...
...
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