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
9fffd651
authored
Aug 18, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整终端客户类型
parent
2ec9678d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
app/Http/Controllers/AddOrderController.php
public/js/add_order.js
app/Http/Controllers/AddOrderController.php
View file @
9fffd651
...
@@ -218,6 +218,7 @@ Class AddOrderController extends Controller
...
@@ -218,6 +218,7 @@ Class AddOrderController extends Controller
if
(
$company_info
)
{
if
(
$company_info
)
{
$invoice
->
customer_en
=
$company_info
->
customer_en
;
$invoice
->
customer_en
=
$company_info
->
customer_en
;
$invoice
->
customer_type
=
$company_info
->
customer_type
;
$invoice
->
product_use_classone_sn
=
$company_info
->
product_use_classone_sn
;
$invoice
->
product_use_classone_sn
=
$company_info
->
product_use_classone_sn
;
$invoice
->
product_use_classtwo_sn
=
$company_info
->
product_use_classtwo_sn
;
$invoice
->
product_use_classtwo_sn
=
$company_info
->
product_use_classtwo_sn
;
$invoice
->
customer_website
=
$company_info
->
customer_website
;
$invoice
->
customer_website
=
$company_info
->
customer_website
;
...
...
public/js/add_order.js
View file @
9fffd651
...
@@ -245,20 +245,16 @@
...
@@ -245,20 +245,16 @@
if
(
$
(
'.client-info'
).
css
(
'display'
)
==
'block'
)
{
if
(
$
(
'.client-info'
).
css
(
'display'
)
==
'block'
)
{
if
(
data
.
inv_type
==
3
||
data
.
inv_type
==
4
)
{
if
(
data
.
inv_type
==
3
||
data
.
inv_type
==
4
)
{
$
(
'.customer_cn'
).
val
(
data
.
tax_title
);
$
(
'.customer_cn'
).
val
(
data
.
tax_title
);
if
(
data
.
customer_en
&&
data
.
product_use_classone_sn
&&
data
.
product_use_classtwo_sn
&&
data
.
customer_website
)
{
// 信息都存在的话,客户类型为终端
$
(
'.customer_type'
).
val
(
1
);
}
$
(
'.customer_en'
).
val
(
data
.
customer_en
);
$
(
'.customer_en'
).
val
(
data
.
customer_en
);
$
(
'.customer_type'
).
val
(
data
.
customer_type
);
$
(
'.product_use_classone_sn'
).
val
(
data
.
product_use_classone_sn
);
$
(
'.product_use_classone_sn'
).
val
(
data
.
product_use_classone_sn
);
$
(
'.product_use_classone_sn'
).
change
();
// 添加change事件
$
(
'.product_use_classone_sn'
).
change
();
// 添加change事件
$
(
'.product_use_classtwo_sn'
).
val
(
data
.
product_use_classtwo_sn
);
$
(
'.product_use_classtwo_sn'
).
val
(
data
.
product_use_classtwo_sn
);
$
(
'.customer_website'
).
val
(
data
.
customer_website
);
$
(
'.customer_website'
).
val
(
data
.
customer_website
);
}
else
{
}
else
{
$
(
'.customer_cn'
).
val
(
''
);
$
(
'.customer_cn'
).
val
(
''
);
$
(
'.customer_type'
).
val
(
''
);
$
(
'.customer_en'
).
val
(
''
);
$
(
'.customer_en'
).
val
(
''
);
$
(
'.customer_type'
).
val
(
''
);
$
(
'.product_use_classone_sn'
).
val
(
''
);
$
(
'.product_use_classone_sn'
).
val
(
''
);
$
(
'.product_use_classone_sn'
).
change
();
$
(
'.product_use_classone_sn'
).
change
();
$
(
'.customer_website'
).
val
(
''
);
$
(
'.customer_website'
).
val
(
''
);
...
...
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