Commit 9fffd651 by 朱继来

调整终端客户类型

parent 2ec9678d
......@@ -218,6 +218,7 @@ Class AddOrderController extends Controller
if ($company_info) {
$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_classtwo_sn = $company_info->product_use_classtwo_sn;
$invoice->customer_website = $company_info->customer_website;
......
......@@ -245,20 +245,16 @@
if ($('.client-info').css('display') == 'block') {
if (data.inv_type == 3 || data.inv_type == 4) {
$('.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_type').val(data.customer_type);
$('.product_use_classone_sn').val(data.product_use_classone_sn);
$('.product_use_classone_sn').change(); // 添加change事件
$('.product_use_classtwo_sn').val(data.product_use_classtwo_sn);
$('.customer_website').val(data.customer_website);
} else {
$('.customer_cn').val('');
$('.customer_type').val('');
$('.customer_en').val('');
$('.customer_type').val('');
$('.product_use_classone_sn').val('');
$('.product_use_classone_sn').change();
$('.customer_website').val('');
......
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