Commit b751174a by 朱继来

Merge branch 'zjl_order_invoice_20181123' into development

parents 011fdea9 48887e9e
Showing with 20 additions and 2 deletions
...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment