|
|
@@ -4,31 +4,6 @@ $(function(){
|
|
4
|
4
|
adddep();//获取部门
|
|
5
|
5
|
//点击编辑保存
|
|
6
|
6
|
$('#save_edit').click(function(){
|
|
7
|
|
-// var F_Department=$('#customer_code').val();
|
|
8
|
|
-// var F_Section=$('#customer_legalName').val();
|
|
9
|
|
-// var F_Telephone=$('#customer_lehalTel').val();
|
|
10
|
|
-// var F_Physician=$('#customer_comaddress').val();
|
|
11
|
|
-// var F_Title=$('#customer_keshi').val();
|
|
12
|
|
-// $.post(huayi.config.callcenter_url + "Conversation/Update",{
|
|
13
|
|
-// id:edit_id,
|
|
14
|
|
-// F_Type:1,
|
|
15
|
|
-// F_Department:F_Department,
|
|
16
|
|
-// F_Section:F_Section,
|
|
17
|
|
-// F_Telephone:F_Telephone,
|
|
18
|
|
-// F_Physician:F_Physician,
|
|
19
|
|
-// F_Title:F_Title,
|
|
20
|
|
-// "token": $.cookie("token")
|
|
21
|
|
-// },function(res){
|
|
22
|
|
-// if (res.state == "success") {
|
|
23
|
|
-// var index = parent.layer.getFrameIndex(window.name);
|
|
24
|
|
-// parent.layer.close(index);
|
|
25
|
|
-// parent.$('.phonelistZJ').bootstrapTable('refresh');
|
|
26
|
|
-// parent.layer.msg("保存成功");
|
|
27
|
|
-// } else {
|
|
28
|
|
-// $('#save_edit').attr("disabled", false);
|
|
29
|
|
-// $('#save_edit').text('保存');
|
|
30
|
|
-// }
|
|
31
|
|
-// })
|
|
32
|
7
|
$.ajax({
|
|
33
|
8
|
type: 'post',
|
|
34
|
9
|
url: huayi.config.callcenter_url + "Conversation/Update",
|
|
|
@@ -40,14 +15,12 @@ $.ajax({
|
|
40
|
15
|
loadIndex = layer.load();
|
|
41
|
16
|
},
|
|
42
|
17
|
data: {
|
|
43
|
|
- id:edit_id,
|
|
44
|
|
-// id:did,
|
|
|
18
|
+ id: edit_id,
|
|
45
|
19
|
F_Department: did, //部门id
|
|
46
|
20
|
F_Type: 1, // 否 string id
|
|
47
|
|
-// F_Department:$('#customer_code').val(), //string
|
|
48
|
|
- F_Section:$('#customer_legalName').val(), //string
|
|
49
|
|
- F_Telephone:$('#customer_lehalTel').val(), //string 客户电话
|
|
50
|
|
- F_Physician:$('#customer_comaddress').val(), //string 客户地址
|
|
|
21
|
+ F_Section: $('#customer_legalName').val(), //string
|
|
|
22
|
+ F_Telephone: $('#customer_lehalTel').val(), //string 客户电话
|
|
|
23
|
+ F_Physician: $('#customer_comaddress').val(), //string 客户地址
|
|
51
|
24
|
F_Title: $('#customer_keshi').val(), // string 是否需要去银行拿回单(一般纳税人)
|
|
52
|
25
|
token: $.cookie("token")
|
|
53
|
26
|
},
|
|
|
@@ -96,16 +69,14 @@ function getEditInfo(edit_id){
|
|
96
|
69
|
token: $.cookie("token")
|
|
97
|
70
|
}, function(data) {
|
|
98
|
71
|
if(data.state=='success'){
|
|
99
|
|
- var F_Department=data.data.F_Department;//部门
|
|
100
|
|
- var F_Section=data.data.F_Section;//科室
|
|
101
|
|
- var F_Telephone=data.data.F_Telephone;//电话
|
|
102
|
|
- var F_Physician=data.data.F_Physician;//医师
|
|
103
|
|
- var F_Title=data.data.F_Title;//科室
|
|
104
|
|
- $('#customer_code').val(F_Department);
|
|
105
|
|
- $('#customer_legalName').val(F_Section);
|
|
106
|
|
- $('#customer_lehalTel').val(F_Telephone);
|
|
107
|
|
- $('#customer_comaddress').val(F_Physician);
|
|
108
|
|
- $('#customer_keshi').val(F_Title);
|
|
|
72
|
+ var data = data.data;
|
|
|
73
|
+ did = data.F_Department + ""; //部门id
|
|
|
74
|
+ $('.clear_button').val(data.F_DepartmentName); //部门名称
|
|
|
75
|
+ $('#customer_legalName option:selected').text(data.F_SectionName); //科室名称
|
|
|
76
|
+ $('#customer_legalName option:selected').val(data.F_Section); //科室id
|
|
|
77
|
+ $('#customer_lehalTel').val(data.F_Telephone); //电话
|
|
|
78
|
+ $('#customer_comaddress').val(data.F_Physician); //医师姓名
|
|
|
79
|
+ $('#customer_keshi').val(data.F_Title); //职称
|
|
109
|
80
|
}
|
|
110
|
81
|
|
|
111
|
82
|
})
|