|
|
@@ -23,6 +23,7 @@ function getCustomer(ids) {
|
|
23
|
23
|
token: $.cookie("token")
|
|
24
|
24
|
}, function(data) {
|
|
25
|
25
|
if (data.state.toLowerCase() == "success") {
|
|
|
26
|
+ $('#contactLists').hide();
|
|
26
|
27
|
var cusBase = data.data.CustomerBase;
|
|
27
|
28
|
if (cusBase) {
|
|
28
|
29
|
// $('#customer_key').val(cusBase.F_KeyWords); //string 关键词
|
|
|
@@ -51,7 +52,7 @@ function getCustomer(ids) {
|
|
51
|
52
|
$('#customer_Remark3').val(cusBase.F_Remark3); // string 备注3(输入框即可)
|
|
52
|
53
|
$('#customer_code').trigger('blur');
|
|
53
|
54
|
}
|
|
54
|
|
- var cusLists = data.data.ContactList;
|
|
|
55
|
+ /* var cusLists = data.data.ContactList;
|
|
55
|
56
|
if (cusLists && cusLists.length > 0) {
|
|
56
|
57
|
for (var i = 0; i < cusLists.length; i++) {
|
|
57
|
58
|
var tplstr = '';
|
|
|
@@ -125,7 +126,7 @@ function getCustomer(ids) {
|
|
125
|
126
|
|
|
126
|
127
|
}
|
|
127
|
128
|
indexNum = cusLists.length;
|
|
128
|
|
- }
|
|
|
129
|
+ } */
|
|
129
|
130
|
}
|
|
130
|
131
|
});
|
|
131
|
132
|
}
|
|
|
@@ -189,12 +190,14 @@ function saveCustomer() {
|
|
189
|
190
|
return;
|
|
190
|
191
|
}
|
|
191
|
192
|
}
|
|
192
|
|
- var wURL, loadIndex;
|
|
|
193
|
+ var wURL, loadIndex, contactLists;
|
|
193
|
194
|
var edit_id = helper.request.queryString("edit_id");
|
|
194
|
195
|
if (edit_id) {
|
|
195
|
196
|
wURL = "CustomerNew/Update";
|
|
|
197
|
+ contactLists = null;
|
|
196
|
198
|
} else {
|
|
197
|
199
|
wURL = "CustomerNew/Add";
|
|
|
200
|
+ contactLists = getFields();
|
|
198
|
201
|
}
|
|
199
|
202
|
$.ajax({
|
|
200
|
203
|
type: 'post',
|
|
|
@@ -223,7 +226,7 @@ function saveCustomer() {
|
|
223
|
226
|
F_BeRelatedAcc: $('#customer_berelatedAcc').val(), //string 客户归属涉税会计
|
|
224
|
227
|
F_BeAuditAcc: $('#customer_beauditAcc').val(), //string 客户归属审核会计
|
|
225
|
228
|
F_BeMakeAcc: $('#customer_bemakeAcc').val(), //string 客户归属做账会计
|
|
226
|
|
- ContactList: getFields(), //List联系人列表
|
|
|
229
|
+ ContactList: contactLists, //List联系人列表
|
|
227
|
230
|
F_RegisteredAddress: $('#customer_RegisteredAddress').val(), // string 注册地址
|
|
228
|
231
|
F_LegalIDCards: $('#customer_LegalIDCards').val(), // string 法人身份证
|
|
229
|
232
|
F_Qualification: $('#customer_Qualification').val(), // string 企业资质荣誉
|