Showing
3 changed files
with
16 additions
and
10 deletions
... | @@ -86,8 +86,8 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -86,8 +86,8 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
86 | }); | 86 | }); |
87 | 87 | ||
88 | //行转换 | 88 | //行转换 |
89 | - function getSelectedRow(){ | 89 | + function getSelectedRow(inst){ |
90 | - var row = this.grid.datagrid('getSelected'); | 90 | + var row = inst.grid.datagrid('getSelected'); |
91 | return row?{ | 91 | return row?{ |
92 | actId:row.ACT_ID, | 92 | actId:row.ACT_ID, |
93 | actCode:row.ACT_CODE, | 93 | actCode:row.ACT_CODE, |
... | @@ -109,39 +109,39 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -109,39 +109,39 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
109 | function addWindow(inst){ | 109 | function addWindow(inst){ |
110 | //添加账套详情页面 | 110 | //添加账套详情页面 |
111 | index.showPanel({text:resource.title.detail,url:"./accountSetDetail/accountSetDetailAdd"}, true, function(){ | 111 | index.showPanel({text:resource.title.detail,url:"./accountSetDetail/accountSetDetailAdd"}, true, function(){ |
112 | - this.grid.datagrid("reload"); | 112 | + inst.grid.datagrid("reload"); |
113 | }); | 113 | }); |
114 | } | 114 | } |
115 | //编辑页面弹出绑定按钮 | 115 | //编辑页面弹出绑定按钮 |
116 | function editWindow(inst){ | 116 | function editWindow(inst){ |
117 | - var row = getSelectedRow.call(this); | 117 | + var row = getSelectedRow.call(this,inst); |
118 | if(row == null){ | 118 | if(row == null){ |
119 | $.messager.alert(resource.msg_title, resource.msgEditTip); | 119 | $.messager.alert(resource.msg_title, resource.msgEditTip); |
120 | }else{ | 120 | }else{ |
121 | index.showPanel({text:resource.title.detail,url:"./accountSetDetail/accountSetDetailEdit?actId="+row.actId+"&actCode="+row.actCode}, true, function(){ | 121 | index.showPanel({text:resource.title.detail,url:"./accountSetDetail/accountSetDetailEdit?actId="+row.actId+"&actCode="+row.actCode}, true, function(){ |
122 | - this.grid.datagrid("reload"); | 122 | + inst.grid.datagrid("reload"); |
123 | }); | 123 | }); |
124 | } | 124 | } |
125 | } | 125 | } |
126 | //删除 | 126 | //删除 |
127 | function deleteData(inst){ | 127 | function deleteData(inst){ |
128 | - var accountSet = getSelectedRow.call(this); | 128 | + var accountSet = getSelectedRow.call(this,inst); |
129 | if(accountSet == null){ | 129 | if(accountSet == null){ |
130 | $.messager.alert(resource.msg_title, resource.msgRemoveTip); | 130 | $.messager.alert(resource.msg_title, resource.msgRemoveTip); |
131 | }else{ | 131 | }else{ |
132 | - if(accountSet.actType==resource.accountset.title.sonAccount){ | 132 | + if(accountSet.actType==resource.title.sonAccount){ |
133 | $.messager.confirm(resource.msg_title, resource.confirmDelete, function(r){ | 133 | $.messager.confirm(resource.msg_title, resource.confirmDelete, function(r){ |
134 | if(r){ | 134 | if(r){ |
135 | accountSet.enable = ""; | 135 | accountSet.enable = ""; |
136 | $.JSON("./accountSet/delete.json", accountSet, function(result){ | 136 | $.JSON("./accountSet/delete.json", accountSet, function(result){ |
137 | - if(responseUtils(result)){ | 137 | + if($.response(result)){ |
138 | - this.grid.datagrid("reload"); | 138 | + inst.grid.datagrid("reload"); |
139 | } | 139 | } |
140 | }); | 140 | }); |
141 | } | 141 | } |
142 | }); | 142 | }); |
143 | }else{ | 143 | }else{ |
144 | - $.messager.alert(resource.msg_title, resource.accountset.title.overActCntdelt); | 144 | + $.messager.alert(resource.msg_title, resource.title.overActCntdelt); |
145 | } | 145 | } |
146 | } | 146 | } |
147 | } | 147 | } | ... | ... |
This diff is collapsed. Click to expand it.
... | @@ -13,6 +13,12 @@ define({ | ... | @@ -13,6 +13,12 @@ define({ |
13 | deleteRank:'系统默认等级不能删除!', | 13 | deleteRank:'系统默认等级不能删除!', |
14 | select:'请选择', | 14 | select:'请选择', |
15 | noLimit:'不限', | 15 | noLimit:'不限', |
16 | + mustSubmitAccountBeforeSecondGroup:'新增第二个网点组之前,需要保存账套信息,是否保存?', | ||
17 | + saveTitle:'确定保存?', | ||
18 | + confirmDelete:'你确定要删除这条信息吗?', | ||
19 | + onAddCannot:"确认新增当前选择数据?", | ||
20 | + onDeleteCannot:"数据删除后无法恢复,确认删除当前选择数据?", | ||
21 | + onDeleteGroupCannot:"网点组删除后,其下的网点同时删除,且无法恢复,请确认删除当前网点组?", | ||
16 | title:{ | 22 | title:{ |
17 | name:'CRM账套', | 23 | name:'CRM账套', |
18 | detail:'CRM账套详情', | 24 | detail:'CRM账套详情', | ... | ... |
-
Please register or login to post a comment