|
|
@@ -9,19 +9,19 @@ $(document).ready(function() {
|
|
9
|
9
|
var edit_id = helper.request.queryString("edit_id");
|
|
10
|
10
|
if (edit_id) {
|
|
11
|
11
|
getCustomer(edit_id); //获取客户信息
|
|
12
|
|
- getTaxDetail(edit_id).then(function(data){
|
|
13
|
|
- if($.cookie("userRoleId") == '17' || $.cookie("userRoleId") == '57' ){
|
|
14
|
|
- $('.hide_btn').show();$('.hide_btnd').show();
|
|
15
|
|
- $('#btn_editTax').show();
|
|
16
|
|
- }
|
|
17
|
|
- //监管
|
|
18
|
|
- if($.cookie("userRoleId") == '54'){
|
|
19
|
|
- $('.hide_btn').show();$('.hide_btnd').hide();
|
|
20
|
|
- $('#btn_editTax').show();
|
|
21
|
|
- }
|
|
22
|
|
- taxCusFinId = data.F_CusFinId;// 财税信息自增id
|
|
23
|
|
- taxCustomerId = data.F_CustomerId;// 客户id
|
|
24
|
|
- }); //获取财税情况
|
|
|
12
|
+ // getTaxDetail(edit_id).then(function(data){
|
|
|
13
|
+ // if($.cookie("userRoleId") == '17' || $.cookie("userRoleId") == '57' ){
|
|
|
14
|
+ // $('.hide_btn').show();$('.hide_btnd').show();
|
|
|
15
|
+ // $('#btn_editTax').show();
|
|
|
16
|
+ // }
|
|
|
17
|
+ // //监管
|
|
|
18
|
+ // if($.cookie("userRoleId") == '54'){
|
|
|
19
|
+ // $('.hide_btn').show();$('.hide_btnd').hide();
|
|
|
20
|
+ // $('#btn_editTax').show();
|
|
|
21
|
+ // }
|
|
|
22
|
+ // taxCusFinId = data.F_CusFinId;// 财税信息自增id
|
|
|
23
|
+ // taxCustomerId = data.F_CustomerId;// 客户id
|
|
|
24
|
+ // }); //获取财税情况
|
|
25
|
25
|
}
|
|
26
|
26
|
});
|
|
27
|
27
|
|
|
|
@@ -37,40 +37,18 @@ function getCustomer(ids) {
|
|
37
|
37
|
if (cusBase) {
|
|
38
|
38
|
$('#customer_key').text(cusBase.F_KeyWords); //string 关键词
|
|
39
|
39
|
$('#customer_code').text(cusBase.F_CustomerCode); //string 客户编号
|
|
40
|
|
- $('#customer_companyname').text(cusBase.F_CompanyName); //string 公司名称
|
|
41
|
|
- $('#customer_comaddress').text(cusBase.F_CompanyAddress); //string 公司地址
|
|
42
|
|
- $('#customer_legalName').text(cusBase.F_LegalName); //string 法人姓名
|
|
43
|
|
- if(cusBase.F_LegalTel){
|
|
44
|
|
- $('#customer_lehalTel').html('<a href="jvascript:;" onclick="calloutopt('+ cusBase.F_LegalTel +')">'+ helper.filter.cutTel(cusBase.F_LegalTel) +'<img src="../img/Phones.png" alt="phone" /></a>'); //string 法人电话
|
|
45
|
|
- }
|
|
46
|
|
- $('#customer_subtrade').text(cusBase.F_SubTrade); // int 所属行业
|
|
47
|
|
- $('#customer_taxCategory').text(cusBase.F_TaxCategory); // int 税务类别
|
|
48
|
|
- $('#customer_invoiceRange').text(cusBase.F_InvoiceRange); //string 开票范围
|
|
49
|
|
- $('#customer_taxPointDes').text(cusBase.F_TaxPointDes); //string 税点描述
|
|
50
|
|
- $('#customer_layer').text(cusBase.F_Layer); // int 客户信誉等级
|
|
51
|
|
- $('#customer_berelatedAcc').text(cusBase.F_BeRelatedAcc); //string 客户归属涉税会计
|
|
52
|
|
- $('#customer_beauditAcc').text(cusBase.F_BeAuditAcc); //string 客户归属审核会计
|
|
53
|
|
- $('#customer_bemakeAcc').text(cusBase.F_BeMakeAcc); //string 客户归属做账会计
|
|
|
40
|
+ $('#customer_companyname').text(cusBase.F_CompanyName); //string 名称
|
|
|
41
|
+ $('#customer_address').text(cusBase.F_CompanyAddress); //string 地址
|
|
|
42
|
+ $('#customer_legalName').text(cusBase.F_LegalName); //string 姓名 F_LegalTel
|
|
|
43
|
+ $('#customer_lehalTel').text(cusBase.F_LegalTel); //string 姓名
|
|
|
44
|
+
|
|
|
45
|
+
|
|
54
|
46
|
|
|
55
|
|
- $('#customer_RegisteredAddress').text(cusBase.F_RegisteredAddress); // string 注册地址
|
|
56
|
|
- $('#customer_LegalIDCards').text(cusBase.F_LegalIDCards); // string 法人身份证
|
|
57
|
|
- $('#customer_Qualification').text(cusBase.F_Qualification); // string 企业资质荣誉
|
|
58
|
|
- $('#customer_FinancialManager').text(cusBase.F_FinancialManager); // string 客户公司财务负责人
|
|
59
|
|
- $('#customer_BusinessOwner').text(cusBase.F_BusinessOwner); // string 客户归属业务负责人
|
|
60
|
|
- $('#customer_Remark1').text(cusBase.F_Remark1); // string 备注1(输入框即可)
|
|
61
|
|
- $('#customer_Remark2').text(cusBase.F_Remark2); // string 备注2(输入框即可)
|
|
62
|
|
- $('#customer_Remark3').text(cusBase.F_Remark3); // string 备注3(输入框即可)
|
|
63
|
47
|
|
|
64
|
|
- $('#customer_service').text(cusBase.F_CusService); // string 客服
|
|
65
|
|
- $('#customer_handoverDate').text(cusBase.F_HandoverDate); // string 交接日期
|
|
66
|
|
- $('#customer_feeExpires').text(cusBase.F_FeeExpires && cusBase.F_FeeExpires.split(' ')[0]); // datetime 代理费到期日期
|
|
67
|
48
|
|
|
68
|
|
- $('#customer_isbankSlips').text(cusBase.F_ISBankSlips ? '是' : '否'); // string 是否需要去银行拿回单(一般纳税人)
|
|
69
|
|
- $('#customer_address').text(cusBase.F_Address); // string 联系地址
|
|
70
|
|
- $('#customer_address1').text(cusBase.F_Address); // string 联系地址1
|
|
71
|
|
- $('#customer_address2').text(cusBase.F_Address1); // string 联系地址2
|
|
72
|
|
- $('#customer_address3').text(cusBase.F_Address2); // string 联系地址3
|
|
73
|
|
- $('#customer_address4').text(cusBase.F_Address3); // string 联系地址4
|
|
|
49
|
+
|
|
|
50
|
+
|
|
|
51
|
+
|
|
74
|
52
|
|
|
75
|
53
|
}
|
|
76
|
54
|
var cusLists = data.data && data.data.ContactList;
|