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
b751174a
authored
Nov 26, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_order_invoice_20181123' into development
parents
011fdea9
48887e9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
public/js/order.js
public/js/order.js
View file @
b751174a
...
@@ -686,10 +686,28 @@
...
@@ -686,10 +686,28 @@
$
(
'#inv_type'
).
click
(
function
(){
$
(
'#inv_type'
).
click
(
function
(){
var
val
=
$
(
this
).
val
();
var
val
=
$
(
this
).
val
();
if
(
val
==
2
)
{
if
(
val
==
1
)
{
// 不开票
$
(
'.tax_title_section'
).
hide
();
$
(
'.add_tax'
).
hide
();
$
(
'input[name=tax_title]'
).
val
(
''
);
$
(
'input[name=tax_no]'
).
val
(
''
);
$
(
'input[name=bank_name]'
).
val
(
''
);
$
(
'input[name=bank_account]'
).
val
(
''
);
$
(
'input[name=company_phone]'
).
val
(
''
);
$
(
'textarea[name=company_address]'
).
val
(
''
);
}
else
if
(
val
==
2
)
{
// 普票
$
(
'.tax_title_section'
).
show
();
$
(
'.add_tax'
).
hide
();
$
(
'.add_tax'
).
hide
();
$
(
'.invoice_title'
).
attr
(
'colspan'
,
3
);
$
(
'.invoice_title'
).
attr
(
'colspan'
,
3
);
}
else
{
$
(
'input[name=tax_no]'
).
val
(
''
);
$
(
'input[name=bank_name]'
).
val
(
''
);
$
(
'input[name=bank_account]'
).
val
(
''
);
$
(
'input[name=company_phone]'
).
val
(
''
);
$
(
'textarea[name=company_address]'
).
val
(
''
);
}
else
{
// 增票
$
(
'.tax_title_section'
).
show
();
$
(
'.add_tax'
).
show
();
$
(
'.add_tax'
).
show
();
$
(
'.invoice_title'
).
attr
(
'colspan'
,
0
);
$
(
'.invoice_title'
).
attr
(
'colspan'
,
0
);
}
}
...
...
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