Anthony

bizEntity 模块化

1 -define(function() { 1 +define(['i18n!bizEntity/nls/resource', 'cls', 'base/index', 'index/index'], function (resource, Class, base, indexlayout) {
2 return { 2 return {
3 + resource:resource,
3 init:function(pltId) { 4 init:function(pltId) {
4 - var panel = getSelectedPanel(); 5 + var panel = indexlayout.getSelectedPanel();
5 var params=panel.panel("options").tabParams; 6 var params=panel.panel("options").tabParams;
6 var page = panel.children('.pl-biz-details').layout({ 7 var page = panel.children('.pl-biz-details').layout({
7 fit:true 8 fit:true
...@@ -122,34 +123,33 @@ define(function() { ...@@ -122,34 +123,33 @@ define(function() {
122 var distBEPARENT = distributorForm.find(".BEPARENT"); 123 var distBEPARENT = distributorForm.find(".BEPARENT");
123 var distPTVALID = distributorForm.find(".PTVALID"); 124 var distPTVALID = distributorForm.find(".PTVALID");
124 var distINDEX = distributorForm.find(".INDEX"); 125 var distINDEX = distributorForm.find(".INDEX");
125 - //验证 126 +
126 - initValidateboxForm();
127 formTextBox(); 127 formTextBox();
128 maxLength(); 128 maxLength();
129 //限制输入字段长度 129 //限制输入字段长度
130 function maxLength(){ 130 function maxLength(){
131 - maxlengthUtils(beCode,50); 131 + base.maxlength(beCode,50);
132 - maxlengthUtils(beName,120); 132 + base.maxlength(beName,120);
133 - maxlengthUtils(beDesc,200); 133 + base.maxlength(beDesc,200);
134 - maxlengthUtils(beChief,20); 134 + base.maxlength(beChief,20);
135 - maxlengthUtils(ptTphone,20); 135 + base.maxlength(ptTphone,20);
136 - maxlengthUtils(ptPhone,30); 136 + base.maxlength(ptPhone,30);
137 - maxlengthUtils(ptPost,20); 137 + base.maxlength(ptPost,20);
138 - maxlengthUtils(ptEmail,60); 138 + base.maxlength(ptEmail,60);
139 - maxlengthUtils(ptTaxrate,3); 139 + base.maxlength(ptTaxrate,3);
140 - maxlengthUtils(ptAddr,200); 140 + base.maxlength(ptAddr,200);
141 - maxlengthUtils(bebCode,30); 141 + base.maxlength(bebCode,30);
142 - maxlengthUtils(bebName,30); 142 + base.maxlength(bebName,30);
143 - maxlengthUtils(bebDesc,200); 143 + base.maxlength(bebDesc,200);
144 - maxlengthUtils(invoBEINAME,120); 144 + base.maxlength(invoBEINAME,120);
145 - maxlengthUtils(invoBEITAXNUM,30); 145 + base.maxlength(invoBEITAXNUM,30);
146 - maxlengthUtils(invoBEITAXRATE,3); 146 + base.maxlength(invoBEITAXRATE,3);
147 - maxlengthUtils(invoPTPHONE,30); 147 + base.maxlength(invoPTPHONE,30);
148 - maxlengthUtils(invoPTADDR,100); 148 + base.maxlength(invoPTADDR,100);
149 - maxlengthUtils(accBEASOURCE,120); 149 + base.maxlength(accBEASOURCE,120);
150 - maxlengthUtils(accBEANAME,120); 150 + base.maxlength(accBEANAME,120);
151 - maxlengthUtils(accBEAACCOUNT,30); 151 + base.maxlength(accBEAACCOUNT,30);
152 - maxlengthUtils(accBEARATE,6); 152 + base.maxlength(accBEARATE,6);
153 } 153 }
154 154
155 function formTextBox(){ 155 function formTextBox(){
...@@ -164,28 +164,28 @@ define(function() { ...@@ -164,28 +164,28 @@ define(function() {
164 beDesc.textbox(); 164 beDesc.textbox();
165 beValid.combobox({ 165 beValid.combobox({
166 data: [{ 166 data: [{
167 - text: resource.btn.yes, 167 + text: base.resource.btn.yes,
168 value: 1, 168 value: 1,
169 selected:true 169 selected:true
170 },{ 170 },{
171 - text: resource.btn.no, 171 + text: base.resource.btn.no,
172 value: 0 172 value: 0
173 }] 173 }]
174 }); 174 });
175 payPTVALID.combobox({ 175 payPTVALID.combobox({
176 data: [{ 176 data: [{
177 - "text": resource.btn.yes, 177 + "text": base.resource.btn.yes,
178 "value": 1, 178 "value": 1,
179 "selected":true 179 "selected":true
180 },{ 180 },{
181 - "text": resource.btn.no, 181 + "text": base.resource.btn.no,
182 "value": 0 182 "value": 0
183 }] 183 }]
184 }); 184 });
185 beChief.textbox({ 185 beChief.textbox({
186 }); 186 });
187 ptTphone.textbox({ 187 ptTphone.textbox({
188 - validType:'Mobile' 188 + validType:'chinaMobile'
189 }); 189 });
190 ptPhone.textbox({ 190 ptPhone.textbox({
191 validType:'ptphone' 191 validType:'ptphone'
...@@ -204,7 +204,7 @@ define(function() { ...@@ -204,7 +204,7 @@ define(function() {
204 ptCurrency.combobox({ 204 ptCurrency.combobox({
205 required:true, 205 required:true,
206 valueField : 'cuid', 206 valueField : 'cuid',
207 - textField : 'cuname', 207 + textField : 'cuname'
208 }); 208 });
209 distCHANNEL.combobox({ 209 distCHANNEL.combobox({
210 required:true, 210 required:true,
...@@ -219,12 +219,12 @@ define(function() { ...@@ -219,12 +219,12 @@ define(function() {
219 invoCUID.combobox({ 219 invoCUID.combobox({
220 required:true, 220 required:true,
221 valueField : 'cuid', 221 valueField : 'cuid',
222 - textField : 'cuname', 222 + textField : 'cuname'
223 }); 223 });
224 accCUID.combobox({ 224 accCUID.combobox({
225 required:true, 225 required:true,
226 valueField : 'cuid', 226 valueField : 'cuid',
227 - textField : 'cuname', 227 + textField : 'cuname'
228 }); 228 });
229 accBEARATE.textbox({ 229 accBEARATE.textbox({
230 required:true, 230 required:true,
...@@ -332,30 +332,30 @@ define(function() { ...@@ -332,30 +332,30 @@ define(function() {
332 }); 332 });
333 ptValidBook.combobox({ 333 ptValidBook.combobox({
334 data: [{ 334 data: [{
335 - text: resource.btn.yes, 335 + text: base.resource.btn.yes,
336 value:1 336 value:1
337 },{ 337 },{
338 - text: resource.btn.no, 338 + text: base.resource.btn.no,
339 value: 0 339 value: 0
340 }] 340 }]
341 }); 341 });
342 payBEPINCOME.combobox({ 342 payBEPINCOME.combobox({
343 data: [{ 343 data: [{
344 - text: resource.btn.yes, 344 + text: base.resource.btn.yes,
345 value:1, 345 value:1,
346 selected:true 346 selected:true
347 },{ 347 },{
348 - text: resource.btn.no, 348 + text: base.resource.btn.no,
349 value: 0 349 value: 0
350 }] 350 }]
351 }); 351 });
352 payBEPPOINT.combobox({ 352 payBEPPOINT.combobox({
353 data: [{ 353 data: [{
354 - text: resource.btn.yes, 354 + text: base.resource.btn.yes,
355 value:1, 355 value:1,
356 selected:true 356 selected:true
357 },{ 357 },{
358 - text: resource.btn.no, 358 + text: base.resource.btn.no,
359 value: 0 359 value: 0
360 }] 360 }]
361 }); 361 });
...@@ -366,22 +366,22 @@ define(function() { ...@@ -366,22 +366,22 @@ define(function() {
366 prompt:"不限" 366 prompt:"不限"
367 }); 367 });
368 368
369 - readonlyUtils(distBRNAME.searchbox({ 369 + base.readonly(distBRNAME.searchbox({
370 required:true, 370 required:true,
371 searcher:chooseBrank, 371 searcher:chooseBrank,
372 prompt:"" 372 prompt:""
373 })); 373 }));
374 - readonlyUtils(distBEPARENT.searchbox({ 374 + base.readonly(distBEPARENT.searchbox({
375 required:true, 375 required:true,
376 searcher:chooseBizEntity 376 searcher:chooseBizEntity
377 })); 377 }));
378 distPTVALID.combobox({ 378 distPTVALID.combobox({
379 data: [{ 379 data: [{
380 - text: resource.btn.yes, 380 + text: base.resource.btn.yes,
381 value:1, 381 value:1,
382 selected:true 382 selected:true
383 },{ 383 },{
384 - text: resource.btn.no, 384 + text: base.resource.btn.no,
385 value: 0 385 value: 0
386 }] 386 }]
387 }); 387 });
...@@ -401,14 +401,16 @@ define(function() { ...@@ -401,14 +401,16 @@ define(function() {
401 var button = panel.find(".toolbar"); 401 var button = panel.find(".toolbar");
402 button.rs_toolbar({ 402 button.rs_toolbar({
403 buttons:[{ 403 buttons:[{
404 - text:resource.btn.save, 404 + text:base.resource.btn.save,
405 iconCls:'btn-save', 405 iconCls:'btn-save',
406 handler:saveBtn 406 handler:saveBtn
407 }], 407 }],
408 tools:[{ 408 tools:[{
409 - text:resource.btn.refresh, 409 + text:base.resource.btn.refresh,
410 iconCls:'btn-refresh', 410 iconCls:'btn-refresh',
411 - handler:panelRefreshUtils 411 + handler:function(){
412 + indexlayout.getSelectedPanel().panel("refresh");
413 + }
412 }], 414 }],
413 content:button.children('div.pointDetail') 415 content:button.children('div.pointDetail')
414 }); 416 });
...@@ -417,7 +419,7 @@ define(function() { ...@@ -417,7 +419,7 @@ define(function() {
417 $(document.body).children(".window").children(".pl-role-details-type").parent().remove(); 419 $(document.body).children(".window").children(".pl-role-details-type").parent().remove();
418 var dialog = page.find(".pl-role-details-type"); 420 var dialog = page.find(".pl-role-details-type");
419 dialog.dialog({ 421 dialog.dialog({
420 - title:resource.site.orgTypeDialogTitle, 422 + title:resource.orgTypeDialogTitle,
421 closed:true, 423 closed:true,
422 closable:false, 424 closable:false,
423 width:'629', 425 width:'629',
...@@ -429,7 +431,7 @@ define(function() { ...@@ -429,7 +431,7 @@ define(function() {
429 } 431 }
430 if(!params.id){ 432 if(!params.id){
431 $.post("./bizEntity/setCode.json",null,function(result){ 433 $.post("./bizEntity/setCode.json",null,function(result){
432 - if(responseUtils(result)){ 434 + if($.response(result)){
433 beCode.textbox("setValue",result.value.code); 435 beCode.textbox("setValue",result.value.code);
434 } 436 }
435 }); 437 });
...@@ -448,7 +450,7 @@ define(function() { ...@@ -448,7 +450,7 @@ define(function() {
448 } 450 }
449 function loadForm(){ 451 function loadForm(){
450 $.post("./bizEntity/findBizENtity.json",{id:params.id},function(result){ 452 $.post("./bizEntity/findBizENtity.json",{id:params.id},function(result){
451 - if(responseUtils(result)){ 453 + if($.response(result)){
452 formInfo.find(".ID").val(result.value.id); 454 formInfo.find(".ID").val(result.value.id);
453 beCode.textbox("setValue",result.value.code); 455 beCode.textbox("setValue",result.value.code);
454 beName.textbox("setValue",result.value.name); 456 beName.textbox("setValue",result.value.name);
...@@ -504,15 +506,15 @@ define(function() { ...@@ -504,15 +506,15 @@ define(function() {
504 toolbar:$('<div class="clearfix"></div>').rs_toolbar({ 506 toolbar:$('<div class="clearfix"></div>').rs_toolbar({
505 title:"结算账套", 507 title:"结算账套",
506 buttons:[{ 508 buttons:[{
507 - text:resource.btn.add, 509 + text:base.resource.btn.add,
508 iconCls:'btn-add', 510 iconCls:'btn-add',
509 handler: openSetOfBookDialog 511 handler: openSetOfBookDialog
510 },{ 512 },{
511 - text:resource.btn.edit, 513 + text:base.resource.btn.edit,
512 iconCls:'btn-edit', 514 iconCls:'btn-edit',
513 handler: editSetOfBookDialog 515 handler: editSetOfBookDialog
514 },{ 516 },{
515 - text:resource.btn.remove, 517 + text:base.resource.btn.remove,
516 iconCls:'btn-remove', 518 iconCls:'btn-remove',
517 handler:removeSetOfBookDialog 519 handler:removeSetOfBookDialog
518 }], 520 }],
...@@ -521,18 +523,18 @@ define(function() { ...@@ -521,18 +523,18 @@ define(function() {
521 columns:[[ 523 columns:[[
522 {field:'ck',checkbox:true }, 524 {field:'ck',checkbox:true },
523 {field:'BEBID', hidden:true}, 525 {field:'BEBID', hidden:true},
524 - {field:'BEBCODE',title:resource.bizentity.grid.bebcode, width:150}, 526 + {field:'BEBCODE',title:resource.grid.bebcode, width:150},
525 - {field:'bizInvoiceList',title:resource.bizentity.grid.bizinvoicelist,hidden:true}, 527 + {field:'bizInvoiceList',title:resource.grid.bizinvoicelist,hidden:true},
526 - {field:'bizAccountList',title:resource.bizentity.grid.bizaccountlist,hidden:true}, 528 + {field:'bizAccountList',title:resource.grid.bizaccountlist,hidden:true},
527 - {field:'bizPaywayList',title:resource.bizentity.grid.bizpaywaylist,hidden:true}, 529 + {field:'bizPaywayList',title:resource.grid.bizpaywaylist,hidden:true},
528 - {field:'BEBNAME',title:resource.bizentity.grid.bebname, width:200}, 530 + {field:'BEBNAME',title:resource.grid.bebname, width:200},
529 - {field:'BENAME',title:resource.bizentity.grid.bename, width:120}, 531 + {field:'BENAME',title:resource.grid.bename, width:120},
530 - {field:'BEBDESC',title:resource.bizentity.grid.bebdesc, width:300}, 532 + {field:'BEBDESC',title:resource.grid.bebdesc, width:300},
531 - {field:'PTVALID',title:resource.bizentity.grid.ptvalid, width:100,formatter: function(value,row,index){ 533 + {field:'PTVALID',title:resource.grid.ptvalid, width:100,formatter: function(value,row,index){
532 if(parseInt(value)==1){ 534 if(parseInt(value)==1){
533 - return resource.btn.yes; 535 + return base.resource.btn.yes;
534 }else if(parseInt(value)==0){ 536 }else if(parseInt(value)==0){
535 - return resource.btn.no; 537 + return base.resource.btn.no;
536 }else{return "";} 538 }else{return "";}
537 } 539 }
538 }, 540 },
...@@ -637,13 +639,13 @@ define(function() { ...@@ -637,13 +639,13 @@ define(function() {
637 if(beOrgType.val()==6){ 639 if(beOrgType.val()==6){
638 initTab3=$("<div class='details-tab-3'></div>").appendTo(channel).datagrid({ 640 initTab3=$("<div class='details-tab-3'></div>").appendTo(channel).datagrid({
639 toolbar:$('<div class="clearfix"></div>').rs_toolbar({ 641 toolbar:$('<div class="clearfix"></div>').rs_toolbar({
640 - title:resource.bizentity.bizChannelgridtitle, 642 + title:resource.bizChannelgridtitle,
641 buttons:[{ 643 buttons:[{
642 - text:resource.btn.add, 644 + text:base.resource.btn.add,
643 iconCls:'btn-add', 645 iconCls:'btn-add',
644 handler: openChannel 646 handler: openChannel
645 },{ 647 },{
646 - text:resource.btn.remove, 648 + text:base.resource.btn.remove,
647 iconCls:'btn-remove', 649 iconCls:'btn-remove',
648 handler: removeChannel 650 handler: removeChannel
649 }], 651 }],
...@@ -660,25 +662,25 @@ define(function() { ...@@ -660,25 +662,25 @@ define(function() {
660 {field:'CHDESC',title:resource.channel.grid.desc, width:300}, 662 {field:'CHDESC',title:resource.channel.grid.desc, width:300},
661 {field:'BRNAME',title:resource.channel.grid.brand, width:260,formatter:formatText}, 663 {field:'BRNAME',title:resource.channel.grid.brand, width:260,formatter:formatText},
662 {field:'PTVALID',title:resource.channel.grid.valid, width:80,formatter: function(value,row,index){ 664 {field:'PTVALID',title:resource.channel.grid.valid, width:80,formatter: function(value,row,index){
663 - return value>0?resource.btn.yes:resource.btn.no; 665 + return value>0?base.resource.btn.yes:base.resource.btn.no;
664 }} 666 }}
665 ]] 667 ]]
666 }); 668 });
667 }else{ 669 }else{
668 initTab3=$("<div class='details-tab-3'></div>").appendTo(channel).datagrid({ 670 initTab3=$("<div class='details-tab-3'></div>").appendTo(channel).datagrid({
669 toolbar:$('<div class="clearfix"></div>').rs_toolbar({ 671 toolbar:$('<div class="clearfix"></div>').rs_toolbar({
670 - title:resource.bizentity.bizChannelgridtitle, 672 + title:resource.bizChannelgridtitle,
671 buttons:[{ 673 buttons:[{
672 - text:resource.btn.add, 674 + text:base.resource.btn.add,
673 iconCls:'btn-add', 675 iconCls:'btn-add',
674 handler: openDistributor 676 handler: openDistributor
675 }, 677 },
676 { 678 {
677 - text:resource.btn.edit, 679 + text:base.resource.btn.edit,
678 iconCls:'btn-edit', 680 iconCls:'btn-edit',
679 handler: editDistributor 681 handler: editDistributor
680 },{ 682 },{
681 - text:resource.btn.remove, 683 + text:base.resource.btn.remove,
682 iconCls:'btn-remove', 684 iconCls:'btn-remove',
683 handler: removeChannel 685 handler: removeChannel
684 }], 686 }],
...@@ -695,9 +697,9 @@ define(function() { ...@@ -695,9 +697,9 @@ define(function() {
695 {field:'CHNAME',title:resource.channel.grid.name, width:120}, 697 {field:'CHNAME',title:resource.channel.grid.name, width:120},
696 {field:'CHDESC',title:resource.channel.grid.desc, width:300}, 698 {field:'CHDESC',title:resource.channel.grid.desc, width:300},
697 {field:'BRNAME',title:resource.channel.grid.brand, width:260,formatter:formatText}, 699 {field:'BRNAME',title:resource.channel.grid.brand, width:260,formatter:formatText},
698 - {field:'BENAME',title:resource.bizentity.bizChannelgrid.beName, width:120}, 700 + {field:'BENAME',title:resource.bizChannelgrid.beName, width:120},
699 {field:'PTVALID',title:resource.channel.grid.valid, width:80,formatter: function(value,row,index){ 701 {field:'PTVALID',title:resource.channel.grid.valid, width:80,formatter: function(value,row,index){
700 - return value>0?resource.btn.yes:resource.btn.no; 702 + return value>0?base.resource.btn.yes:base.resource.btn.no;
701 }} 703 }}
702 ]] 704 ]]
703 }); 705 });
...@@ -713,7 +715,7 @@ define(function() { ...@@ -713,7 +715,7 @@ define(function() {
713 var channel = page.children(".setOfBook-dialog"); 715 var channel = page.children(".setOfBook-dialog");
714 channel.dialog({ 716 channel.dialog({
715 buttons:[{text:"确定",handler:addSetOfBook 717 buttons:[{text:"确定",handler:addSetOfBook
716 - },{text:resource.btn.cancel,handler:hideWindow}], 718 + },{text:base.resource.btn.cancel,handler:hideWindow}],
717 closed:true, 719 closed:true,
718 width:'85%', 720 width:'85%',
719 height:'550' 721 height:'550'
...@@ -724,15 +726,15 @@ define(function() { ...@@ -724,15 +726,15 @@ define(function() {
724 toolbar:$('<div class="clearfix"></div>').rs_toolbar({ 726 toolbar:$('<div class="clearfix"></div>').rs_toolbar({
725 //title:"开票信息", 727 //title:"开票信息",
726 buttons:[{ 728 buttons:[{
727 - text:resource.btn.add, 729 + text:base.resource.btn.add,
728 iconCls:'btn-add', 730 iconCls:'btn-add',
729 handler: openBizInvoice 731 handler: openBizInvoice
730 },{ 732 },{
731 - text:resource.btn.edit, 733 + text:base.resource.btn.edit,
732 iconCls:'btn-edit', 734 iconCls:'btn-edit',
733 handler: editBizInvoice 735 handler: editBizInvoice
734 },{ 736 },{
735 - text:resource.btn.remove, 737 + text:base.resource.btn.remove,
736 iconCls:'btn-remove', 738 iconCls:'btn-remove',
737 handler: removeBizInvoice 739 handler: removeBizInvoice
738 }], 740 }],
...@@ -740,15 +742,15 @@ define(function() { ...@@ -740,15 +742,15 @@ define(function() {
740 fitColumns:true, 742 fitColumns:true,
741 columns:[[ 743 columns:[[
742 {field:'ck',checkbox:true }, 744 {field:'ck',checkbox:true },
743 - {field:'BEINAME',title:resource.bizentity.grid.beiname, width:100}, 745 + {field:'BEINAME',title:resource.grid.beiname, width:100},
744 - {field:'BEITAXNUM',title:resource.bizentity.grid.beitaxnum, width:100}, 746 + {field:'BEITAXNUM',title:resource.grid.beitaxnum, width:100},
745 - {field:'BEITAXRATE',title:resource.bizentity.grid.beitaxrate, width:100,formatter:function(value,row,index){ 747 + {field:'BEITAXRATE',title:resource.grid.beitaxrate, width:100,formatter:function(value,row,index){
746 return value+"%"; 748 return value+"%";
747 }}, 749 }},
748 - {field:'PTPHONE',title:resource.bizentity.grid.ptphone, width:100}, 750 + {field:'PTPHONE',title:resource.grid.ptphone, width:100},
749 - {field:'PTADDR',title:resource.bizentity.grid.ptaddr, width:100}, 751 + {field:'PTADDR',title:resource.grid.ptaddr, width:100},
750 {field:'CUID', width:100,hidden:true}, 752 {field:'CUID', width:100,hidden:true},
751 - {field:'CUNAME',title:resource.bizentity.grid.cuname, width:100} 753 + {field:'CUNAME',title:resource.grid.cuname, width:100}
752 ]] 754 ]]
753 }); 755 });
754 756
...@@ -756,15 +758,15 @@ define(function() { ...@@ -756,15 +758,15 @@ define(function() {
756 toolbar:$('<div class="clearfix"></div>').rs_toolbar({ 758 toolbar:$('<div class="clearfix"></div>').rs_toolbar({
757 //title:"常用账户", 759 //title:"常用账户",
758 buttons:[{ 760 buttons:[{
759 - text:resource.btn.add, 761 + text:base.resource.btn.add,
760 iconCls:'btn-add', 762 iconCls:'btn-add',
761 handler: openBizAccount 763 handler: openBizAccount
762 },{ 764 },{
763 - text:resource.btn.edit, 765 + text:base.resource.btn.edit,
764 iconCls:'btn-edit', 766 iconCls:'btn-edit',
765 handler: editBizAccount 767 handler: editBizAccount
766 },{ 768 },{
767 - text:resource.btn.remove, 769 + text:base.resource.btn.remove,
768 iconCls:'btn-remove', 770 iconCls:'btn-remove',
769 handler: removeBizAccount 771 handler: removeBizAccount
770 }], 772 }],
...@@ -773,12 +775,12 @@ define(function() { ...@@ -773,12 +775,12 @@ define(function() {
773 columns:[[ 775 columns:[[
774 {field:'ck',checkbox:true}, 776 {field:'ck',checkbox:true},
775 {field:'UUID',title:"UUID",hidden:true}, 777 {field:'UUID',title:"UUID",hidden:true},
776 - {field:'BEASOURCE',title:resource.bizentity.grid.beasource, width:100}, 778 + {field:'BEASOURCE',title:resource.grid.beasource, width:100},
777 - {field:'BEANAME',title:resource.bizentity.grid.beaname, width:100}, 779 + {field:'BEANAME',title:resource.grid.beaname, width:100},
778 - {field:'BEAACCOUNT',title:resource.bizentity.grid.beaaccount, width:100}, 780 + {field:'BEAACCOUNT',title:resource.grid.beaaccount, width:100},
779 - {field:'BEARATE',title:resource.bizentity.grid.bearate, width:100}, 781 + {field:'BEARATE',title:resource.grid.bearate, width:100},
780 {field:'CUID', width:100,hidden:true}, 782 {field:'CUID', width:100,hidden:true},
781 - {field:'CUNAME',title:resource.bizentity.grid.cuname, width:100} 783 + {field:'CUNAME',title:resource.grid.cuname, width:100}
782 ]] 784 ]]
783 }); 785 });
784 786
...@@ -786,15 +788,15 @@ define(function() { ...@@ -786,15 +788,15 @@ define(function() {
786 toolbar:$('<div class="clearfix"></div>').rs_toolbar({ 788 toolbar:$('<div class="clearfix"></div>').rs_toolbar({
787 //title:"收款方式", 789 //title:"收款方式",
788 buttons:[{ 790 buttons:[{
789 - text:resource.btn.add, 791 + text:base.resource.btn.add,
790 iconCls:'btn-add', 792 iconCls:'btn-add',
791 handler: openBizPayway 793 handler: openBizPayway
792 },{ 794 },{
793 - text:resource.btn.edit, 795 + text:base.resource.btn.edit,
794 iconCls:'btn-edit', 796 iconCls:'btn-edit',
795 handler: editBizPayway 797 handler: editBizPayway
796 },{ 798 },{
797 - text:resource.btn.remove, 799 + text:base.resource.btn.remove,
798 iconCls:'btn-remove', 800 iconCls:'btn-remove',
799 handler: removeBizPayway 801 handler: removeBizPayway
800 }], 802 }],
...@@ -803,25 +805,25 @@ define(function() { ...@@ -803,25 +805,25 @@ define(function() {
803 columns:[[ 805 columns:[[
804 {field:'ck',checkbox:true }, 806 {field:'ck',checkbox:true },
805 {field:'UUID',title:"UUID", hidden:true}, 807 {field:'UUID',title:"UUID", hidden:true},
806 - {field:'PWID',title:resource.bizentity.grid.pwid, hidden:true}, 808 + {field:'PWID',title:resource.grid.pwid, hidden:true},
807 - {field:'PWNAME',title:resource.bizentity.grid.pwname, width:100}, 809 + {field:'PWNAME',title:resource.grid.pwname, width:100},
808 - {field:'CUNAME',title:resource.bizentity.grid.cunanme, width:100}, 810 + {field:'CUNAME',title:resource.grid.cunanme, width:100},
809 - {field:'CURATE',title:resource.bizentity.grid.curate, width:100}, 811 + {field:'CURATE',title:resource.grid.curate, width:100},
810 - {field:'BEPPROCEEDS',title:resource.bizentity.grid.bepproceeds, width:100}, 812 + {field:'BEPPROCEEDS',title:resource.grid.bepproceeds, width:100},
811 - {field:'BEPPAYEE',title:resource.bizentity.grid.beppayee, width:100}, 813 + {field:'BEPPAYEE',title:resource.grid.beppayee, width:100},
812 - {field:'BEPACCOUNT',title:resource.bizentity.grid.bepaccount, width:100}, 814 + {field:'BEPACCOUNT',title:resource.grid.bepaccount, width:100},
813 - {field:'BEPINCOME',title:resource.bizentity.grid.bepincome, width:100,formatter:function(value,row,index){ 815 + {field:'BEPINCOME',title:resource.grid.bepincome, width:100,formatter:function(value,row,index){
814 - return value>0?resource.btn.yes:resource.btn.no; 816 + return value>0?base.resource.btn.yes:base.resource.btn.no;
815 }}, 817 }},
816 - {field:'BEPPOINT',title:resource.bizentity.grid.beppoint, width:100,formatter:function(value,row,index){ 818 + {field:'BEPPOINT',title:resource.grid.beppoint, width:100,formatter:function(value,row,index){
817 - return value>0?resource.btn.yes:resource.btn.no; 819 + return value>0?base.resource.btn.yes:base.resource.btn.no;
818 }}, 820 }},
819 - {field:'PIID',title:resource.bizentity.grid.piid, width:100}, 821 + {field:'PIID',title:resource.grid.piid, width:100},
820 - {field:'PTVALID',title:resource.bizentity.grid.ptvalid, width:100,formatter:function(value,row,index){ 822 + {field:'PTVALID',title:resource.grid.ptvalid, width:100,formatter:function(value,row,index){
821 if(parseInt(value)==1){ 823 if(parseInt(value)==1){
822 - return resource.btn.yes; 824 + return base.resource.btn.yes;
823 }else if(parseInt(value)==0){ 825 }else if(parseInt(value)==0){
824 - return resource.btn.no; 826 + return base.resource.btn.no;
825 }else{return "";} 827 }else{return "";}
826 } 828 }
827 } 829 }
...@@ -832,8 +834,8 @@ define(function() { ...@@ -832,8 +834,8 @@ define(function() {
832 $(document.body).children(".window").children(".bizInvoice-dialog").parent().remove(); 834 $(document.body).children(".window").children(".bizInvoice-dialog").parent().remove();
833 var channel = page.children(".bizInvoice-dialog"); 835 var channel = page.children(".bizInvoice-dialog");
834 channel.dialog({ 836 channel.dialog({
835 - buttons:[{text:resource.btn.confirm,handler:addBizInvoice 837 + buttons:[{text:base.resource.btn.confirm,handler:addBizInvoice
836 - },{text:resource.btn.cancel,handler:function(){ 838 + },{text:base.resource.btn.cancel,handler:function(){
837 bizInvoiceDialog.dialog("close"); 839 bizInvoiceDialog.dialog("close");
838 }}], 840 }}],
839 closed:true, 841 closed:true,
...@@ -847,8 +849,8 @@ define(function() { ...@@ -847,8 +849,8 @@ define(function() {
847 $(document.body).children(".window").children(".bizAccount-dialog").parent().remove(); 849 $(document.body).children(".window").children(".bizAccount-dialog").parent().remove();
848 var channel = page.children(".bizAccount-dialog"); 850 var channel = page.children(".bizAccount-dialog");
849 channel.dialog({ 851 channel.dialog({
850 - buttons:[{text:resource.btn.confirm,handler:addBizAccount 852 + buttons:[{text:base.resource.btn.confirm,handler:addBizAccount
851 - },{text:resource.btn.cancel,handler:function(){ 853 + },{text:base.resource.btn.cancel,handler:function(){
852 bizAccountDialog.dialog("close"); 854 bizAccountDialog.dialog("close");
853 }}], 855 }}],
854 closed:true, 856 closed:true,
...@@ -862,8 +864,8 @@ define(function() { ...@@ -862,8 +864,8 @@ define(function() {
862 $(document.body).children(".window").children(".bizPayway-dialog").parent().remove(); 864 $(document.body).children(".window").children(".bizPayway-dialog").parent().remove();
863 var channel = page.children(".bizPayway-dialog"); 865 var channel = page.children(".bizPayway-dialog");
864 channel.dialog({ 866 channel.dialog({
865 - buttons:[{text:resource.btn.confirm,handler:addBizPayway 867 + buttons:[{text:base.resource.btn.confirm,handler:addBizPayway
866 - },{text:resource.btn.cancel,handler:function(){ 868 + },{text:base.resource.btn.cancel,handler:function(){
867 bizPaywayDialog.dialog("close"); 869 bizPaywayDialog.dialog("close");
868 }}], 870 }}],
869 closed:true, 871 closed:true,
...@@ -877,8 +879,8 @@ define(function() { ...@@ -877,8 +879,8 @@ define(function() {
877 $(document.body).children(".window").children(".channelDialog").parent().remove(); 879 $(document.body).children(".window").children(".channelDialog").parent().remove();
878 var channel = page.children(".channelDialog"); 880 var channel = page.children(".channelDialog");
879 channel.dialog({ 881 channel.dialog({
880 - buttons:[{text:resource.btn.confirm,handler:addChannel 882 + buttons:[{text:base.resource.btn.confirm,handler:addChannel
881 - },{text:resource.btn.cancel,handler:hideWindow}], 883 + },{text:base.resource.btn.cancel,handler:hideWindow}],
882 closed:true, 884 closed:true,
883 width:'500', 885 width:'500',
884 height:'auto' 886 height:'auto'
...@@ -890,8 +892,8 @@ define(function() { ...@@ -890,8 +892,8 @@ define(function() {
890 $(document.body).children(".window").children(".distributorDialog").parent().remove(); 892 $(document.body).children(".window").children(".distributorDialog").parent().remove();
891 var channel = page.children(".distributorDialog"); 893 var channel = page.children(".distributorDialog");
892 channel.dialog({ 894 channel.dialog({
893 - buttons:[{text:resource.btn.confirm,handler:addDistributor 895 + buttons:[{text:base.resource.btn.confirm,handler:addDistributor
894 - },{text:resource.btn.cancel,handler:hideWindow}], 896 + },{text:base.resource.btn.cancel,handler:hideWindow}],
895 closed:true, 897 closed:true,
896 width:'500', 898 width:'500',
897 height:'auto' 899 height:'auto'
...@@ -900,7 +902,7 @@ define(function() { ...@@ -900,7 +902,7 @@ define(function() {
900 } 902 }
901 // 打开结算账套dialog 903 // 打开结算账套dialog
902 function openSetOfBookDialog() { 904 function openSetOfBookDialog() {
903 - setOfBookDialog.show().window("center").dialog("open").dialog('setTitle',resource.bizentity.closeAct).find(".setOfBookForm").form("clear"); 905 + setOfBookDialog.show().window("center").dialog("open").dialog('setTitle',resource.closeAct).find(".setOfBookForm").form("clear");
904 bizInvoice.datagrid('loadData', { total: 0, rows: [] }); 906 bizInvoice.datagrid('loadData', { total: 0, rows: [] });
905 bizAccount.datagrid('loadData', { total: 0, rows: [] }); 907 bizAccount.datagrid('loadData', { total: 0, rows: [] });
906 bizPayway.datagrid('loadData', { total: 0, rows: [] }); 908 bizPayway.datagrid('loadData', { total: 0, rows: [] });
...@@ -913,14 +915,14 @@ define(function() { ...@@ -913,14 +915,14 @@ define(function() {
913 var row = initTab2.datagrid("getSelected"); 915 var row = initTab2.datagrid("getSelected");
914 var rowIndex = initTab2.datagrid('getRowIndex', row); 916 var rowIndex = initTab2.datagrid('getRowIndex', row);
915 if(row==null){ 917 if(row==null){
916 - $.messager.alert(resource.msg_title, resource.msgEditTip); 918 + $.messager.alert(base.resource.msg_title, base.resource.msgEditTip);
917 }else{ 919 }else{
918 if(row.BEBDEFAULT=='1'){ 920 if(row.BEBDEFAULT=='1'){
919 - return $.messager.alert(resource.msg_title, resource.bizentity.check.defaultBookEdit); 921 + return $.messager.alert(base.resource.msg_title, resource.check.defaultBookEdit);
920 } 922 }
921 if(row.BEBID){ 923 if(row.BEBID){
922 $.JSON("./bizSetOfBook/query.json",{id:row.BEBID},function(result){ 924 $.JSON("./bizSetOfBook/query.json",{id:row.BEBID},function(result){
923 - if(responseUtils(result)){ 925 + if($.response(result)){
924 bebCode.textbox("setValue",result.value.code); 926 bebCode.textbox("setValue",result.value.code);
925 bebName.textbox("setValue",result.value.name); 927 bebName.textbox("setValue",result.value.name);
926 beNameBook.text(result.value.bizEntity.name); 928 beNameBook.text(result.value.bizEntity.name);
...@@ -960,12 +962,12 @@ define(function() { ...@@ -960,12 +962,12 @@ define(function() {
960 for(var i=0;i<tab2Rows.length;i++){ 962 for(var i=0;i<tab2Rows.length;i++){
961 if(editBebName==""){ 963 if(editBebName==""){
962 if(bebName.textbox("getValue")==tab2Rows[i].BEBNAME){ 964 if(bebName.textbox("getValue")==tab2Rows[i].BEBNAME){
963 - return $.messager.alert(resource.msg_title,resource.bizentity.check.bookName); 965 + return $.messager.alert(base.resource.msg_title,resource.check.bookName);
964 } 966 }
965 }else{ 967 }else{
966 if(bebName.textbox("getValue")!=editBebName){ 968 if(bebName.textbox("getValue")!=editBebName){
967 if(bebName.textbox("getValue")==tab2Rows[i].BEBNAME){ 969 if(bebName.textbox("getValue")==tab2Rows[i].BEBNAME){
968 - return $.messager.alert(resource.msg_title,resource.bizentity.check.bookName); 970 + return $.messager.alert(base.resource.msg_title,resource.check.bookName);
969 } 971 }
970 } 972 }
971 } 973 }
...@@ -973,14 +975,14 @@ define(function() { ...@@ -973,14 +975,14 @@ define(function() {
973 //判断结算账套名称是否重复 975 //判断结算账套名称是否重复
974 if(!params.id){ 976 if(!params.id){
975 $.post('./bizSetOfBook/existsName.json',{name:bebName.textbox("getValue")}, function(result) { 977 $.post('./bizSetOfBook/existsName.json',{name:bebName.textbox("getValue")}, function(result) {
976 - if(responseUtils(result)){ 978 + if($.response(result)){
977 setOfBook(); 979 setOfBook();
978 } 980 }
979 }); 981 });
980 }else{ 982 }else{
981 if(bebName.textbox("getValue")!=editBebName){ 983 if(bebName.textbox("getValue")!=editBebName){
982 $.post('./bizSetOfBook/existsName.json',{name:bebName.textbox("getValue")}, function(result) { 984 $.post('./bizSetOfBook/existsName.json',{name:bebName.textbox("getValue")}, function(result) {
983 - if(responseUtils(result)){ 985 + if($.response(result)){
984 setOfBook(); 986 setOfBook();
985 } 987 }
986 }); 988 });
...@@ -1079,11 +1081,11 @@ define(function() { ...@@ -1079,11 +1081,11 @@ define(function() {
1079 var row = bizInvoice.datagrid("getSelected"); 1081 var row = bizInvoice.datagrid("getSelected");
1080 var rowIndex = bizInvoice.datagrid('getRowIndex', row); 1082 var rowIndex = bizInvoice.datagrid('getRowIndex', row);
1081 if(row==null){ 1083 if(row==null){
1082 - $.messager.alert(resource.msg_title, resource.msgEditTip); 1084 + $.messager.alert(base.resource.msg_title, base.resource.msgEditTip);
1083 }else{ 1085 }else{
1084 if(row.BEIID){ 1086 if(row.BEIID){
1085 $.JSON("./bizInvoice/query.json",{id:row.BEIID},function(result){ 1087 $.JSON("./bizInvoice/query.json",{id:row.BEIID},function(result){
1086 - if(responseUtils(result)){ 1088 + if($.response(result)){
1087 invoBEINAME.textbox("setValue",result.value.name); 1089 invoBEINAME.textbox("setValue",result.value.name);
1088 invoBEITAXNUM.textbox("setValue",result.value.taxnum); 1090 invoBEITAXNUM.textbox("setValue",result.value.taxnum);
1089 invoBEITAXRATE.textbox("setValue",Number(result.value.taxrate)*100); 1091 invoBEITAXRATE.textbox("setValue",Number(result.value.taxrate)*100);
...@@ -1106,9 +1108,9 @@ define(function() { ...@@ -1106,9 +1108,9 @@ define(function() {
1106 var row = bizInvoice.datagrid("getSelected"); 1108 var row = bizInvoice.datagrid("getSelected");
1107 var rowIndex = bizInvoice.datagrid('getRowIndex', row); 1109 var rowIndex = bizInvoice.datagrid('getRowIndex', row);
1108 if(row==null){ 1110 if(row==null){
1109 - $.messager.alert(resource.msg_title, resource.msgRemoveTip); 1111 + $.messager.alert(base.resource.msg_title, base.resource.msgRemoveTip);
1110 }else{ 1112 }else{
1111 - $.messager.confirm(resource.msg_title, resource.confirmDelete, function(r){ 1113 + $.messager.confirm(base.resource.msg_title, base.resource.confirmDelete, function(r){
1112 if(r){ 1114 if(r){
1113 bizInvoice.datagrid('deleteRow', rowIndex); 1115 bizInvoice.datagrid('deleteRow', rowIndex);
1114 } 1116 }
...@@ -1121,12 +1123,12 @@ define(function() { ...@@ -1121,12 +1123,12 @@ define(function() {
1121 for(var i=0;i<invoiceRows.length;i++){ 1123 for(var i=0;i<invoiceRows.length;i++){
1122 if(editBeiName==""){ 1124 if(editBeiName==""){
1123 if(invoBEINAME.textbox("getValue")==invoiceRows[i].BEINAME){ 1125 if(invoBEINAME.textbox("getValue")==invoiceRows[i].BEINAME){
1124 - return $.messager.alert(resource.msg_title,resource.bizentity.check.beiName); 1126 + return $.messager.alert(base.resource.msg_title,resource.check.beiName);
1125 } 1127 }
1126 }else{ 1128 }else{
1127 if(invoBEINAME.textbox("getValue")!=editBeiName){ 1129 if(invoBEINAME.textbox("getValue")!=editBeiName){
1128 if(invoBEINAME.textbox("getValue")==invoiceRows[i].BEINAME){ 1130 if(invoBEINAME.textbox("getValue")==invoiceRows[i].BEINAME){
1129 - return $.messager.alert(resource.msg_title,resource.bizentity.check.beiName); 1131 + return $.messager.alert(base.resource.msg_title,resource.check.beiName);
1130 } 1132 }
1131 } 1133 }
1132 } 1134 }
...@@ -1165,11 +1167,11 @@ define(function() { ...@@ -1165,11 +1167,11 @@ define(function() {
1165 var row = bizAccount.datagrid("getSelected"); 1167 var row = bizAccount.datagrid("getSelected");
1166 var rowIndex = bizAccount.datagrid('getRowIndex', row); 1168 var rowIndex = bizAccount.datagrid('getRowIndex', row);
1167 if(row==null){ 1169 if(row==null){
1168 - $.messager.alert(resource.msg_title, resource.msgEditTip); 1170 + $.messager.alert(base.resource.msg_title, base.resource.msgEditTip);
1169 }else{ 1171 }else{
1170 if(row.BEAID){ 1172 if(row.BEAID){
1171 $.JSON("./bizAccount/query.json",{id:row.BEAID},function(result){ 1173 $.JSON("./bizAccount/query.json",{id:row.BEAID},function(result){
1172 - if(responseUtils(result)){ 1174 + if($.response(result)){
1173 accBEASOURCE.textbox("setValue",result.value.source); 1175 accBEASOURCE.textbox("setValue",result.value.source);
1174 accBEANAME.textbox("setValue",result.value.name); 1176 accBEANAME.textbox("setValue",result.value.name);
1175 accBEAACCOUNT.textbox("setValue",result.value.account); 1177 accBEAACCOUNT.textbox("setValue",result.value.account);
...@@ -1190,18 +1192,18 @@ define(function() { ...@@ -1190,18 +1192,18 @@ define(function() {
1190 var row = bizAccount.datagrid("getSelected"); 1192 var row = bizAccount.datagrid("getSelected");
1191 var rowIndex = bizAccount.datagrid('getRowIndex', row); 1193 var rowIndex = bizAccount.datagrid('getRowIndex', row);
1192 if(row==null){ 1194 if(row==null){
1193 - $.messager.alert(resource.msg_title, resource.msgRemoveTip); 1195 + $.messager.alert(base.resource.msg_title, base.resource.msgRemoveTip);
1194 }else{ 1196 }else{
1195 var uuid=row.UUID; 1197 var uuid=row.UUID;
1196 var accRows = bizPayway.datagrid("getRows"); 1198 var accRows = bizPayway.datagrid("getRows");
1197 for (var i = 0; i < accRows.length; i++) { 1199 for (var i = 0; i < accRows.length; i++) {
1198 if(accRows[i].UUID==uuid){ 1200 if(accRows[i].UUID==uuid){
1199 - $.messager.alert(resource.msg_title, resource.bizentity.check.actCntdelet); 1201 + $.messager.alert(base.resource.msg_title, resource.check.actCntdelet);
1200 return; 1202 return;
1201 } 1203 }
1202 } 1204 }
1203 1205
1204 - $.messager.confirm(resource.msg_title, resource.confirmDelete, function(r){ 1206 + $.messager.confirm(base.resource.msg_title, base.resource.confirmDelete, function(r){
1205 if(r){ 1207 if(r){
1206 bizAccount.datagrid('deleteRow', rowIndex); 1208 bizAccount.datagrid('deleteRow', rowIndex);
1207 } 1209 }
...@@ -1254,7 +1256,7 @@ define(function() { ...@@ -1254,7 +1256,7 @@ define(function() {
1254 } 1256 }
1255 mapaccount=map; 1257 mapaccount=map;
1256 payBEPACCOUNT.combobox("loadData",accounts); 1258 payBEPACCOUNT.combobox("loadData",accounts);
1257 - bizPaywayDialog.show().addClass("add").window("center").dialog("open").dialog('setTitle',resource.bizentity.paymentmethod).find(".bizPaywayForm").form("clear"); 1259 + bizPaywayDialog.show().addClass("add").window("center").dialog("open").dialog('setTitle',resource.paymentmethod).find(".bizPaywayForm").form("clear");
1258 payPTVALID.combobox("setValue",'1'); 1260 payPTVALID.combobox("setValue",'1');
1259 } 1261 }
1260 1262
...@@ -1270,11 +1272,11 @@ define(function() { ...@@ -1270,11 +1272,11 @@ define(function() {
1270 var row = bizPayway.datagrid("getSelected"); 1272 var row = bizPayway.datagrid("getSelected");
1271 var rowIndex = bizPayway.datagrid('getRowIndex', row); 1273 var rowIndex = bizPayway.datagrid('getRowIndex', row);
1272 if(row==null){ 1274 if(row==null){
1273 - $.messager.alert(resource.msg_title, resource.msgEditTip); 1275 + $.messager.alert(base.resource.msg_title, base.resource.msgEditTip);
1274 }else{ 1276 }else{
1275 if(row.BEPID){ 1277 if(row.BEPID){
1276 $.JSON("./bizPayway/query.json",{id:row.BEPID},function(result){ 1278 $.JSON("./bizPayway/query.json",{id:row.BEPID},function(result){
1277 - if(responseUtils(result)){ 1279 + if($.response(result)){
1278 1280
1279 var accRows = bizAccount.datagrid("getRows"); 1281 var accRows = bizAccount.datagrid("getRows");
1280 var accounts=[]; 1282 var accounts=[];
...@@ -1338,16 +1340,16 @@ define(function() { ...@@ -1338,16 +1340,16 @@ define(function() {
1338 bizPaywayDialog.find(".bizPaywayForm").form("load",row); 1340 bizPaywayDialog.find(".bizPaywayForm").form("load",row);
1339 } 1341 }
1340 payINDEX.val(rowIndex); 1342 payINDEX.val(rowIndex);
1341 - bizPaywayDialog.show().removeClass("add").window("center").dialog("open").dialog('setTitle',resource.bizentity.paymentmethod).find(".bizPaywayForm"); 1343 + bizPaywayDialog.show().removeClass("add").window("center").dialog("open").dialog('setTitle',resource.paymentmethod).find(".bizPaywayForm");
1342 } 1344 }
1343 } 1345 }
1344 function removeBizPayway(){ 1346 function removeBizPayway(){
1345 var row = bizPayway.datagrid("getSelected"); 1347 var row = bizPayway.datagrid("getSelected");
1346 var rowIndex = bizPayway.datagrid('getRowIndex', row); 1348 var rowIndex = bizPayway.datagrid('getRowIndex', row);
1347 if(row==null){ 1349 if(row==null){
1348 - $.messager.alert(resource.msg_title, resource.msgRemoveTip); 1350 + $.messager.alert(base.resource.msg_title, base.resource.msgRemoveTip);
1349 }else{ 1351 }else{
1350 - $.messager.confirm(resource.msg_title, resource.confirmDelete, function(r){ 1352 + $.messager.confirm(base.resource.msg_title, base.resource.confirmDelete, function(r){
1351 if(r){ 1353 if(r){
1352 bizPayway.datagrid('deleteRow', rowIndex); 1354 bizPayway.datagrid('deleteRow', rowIndex);
1353 } 1355 }
...@@ -1384,12 +1386,12 @@ define(function() { ...@@ -1384,12 +1386,12 @@ define(function() {
1384 var row = initTab2.datagrid("getSelected"); 1386 var row = initTab2.datagrid("getSelected");
1385 var rowIndex = initTab2.datagrid('getRowIndex', row); 1387 var rowIndex = initTab2.datagrid('getRowIndex', row);
1386 if(row==null){ 1388 if(row==null){
1387 - $.messager.alert(resource.msg_title, resource.msgRemoveTip); 1389 + $.messager.alert(base.resource.msg_title, base.resource.msgRemoveTip);
1388 }else{ 1390 }else{
1389 if(row.BEBDEFAULT=='1'){ 1391 if(row.BEBDEFAULT=='1'){
1390 - return $.messager.alert(resource.msg_title, resource.bizentity.check.defaultBookDelete); 1392 + return $.messager.alert(base.resource.msg_title, resource.check.defaultBookDelete);
1391 } 1393 }
1392 - $.messager.confirm(resource.msg_title, resource.confirmDelete, function(r){ 1394 + $.messager.confirm(base.resource.msg_title, base.resource.confirmDelete, function(r){
1393 if(r){ 1395 if(r){
1394 if(row.BEBID != undefined){ 1396 if(row.BEBID != undefined){
1395 delbebIds.push( 1397 delbebIds.push(
...@@ -1404,7 +1406,7 @@ define(function() { ...@@ -1404,7 +1406,7 @@ define(function() {
1404 1406
1405 // 打开经营渠道dialog (总部) 1407 // 打开经营渠道dialog (总部)
1406 function openChannel(){ 1408 function openChannel(){
1407 - channelDialog.show().window("center").dialog("open").dialog('setTitle',resource.bizentity.channelTitle).find(".channelForm"); 1409 + channelDialog.show().window("center").dialog("open").dialog('setTitle',resource.channelTitle).find(".channelForm");
1408 distributorForm.find('.CHANNELTEXTEDIT').hide(); 1410 distributorForm.find('.CHANNELTEXTEDIT').hide();
1409 distributorForm.find('.CHANNELEDIT').show(); 1411 distributorForm.find('.CHANNELEDIT').show();
1410 channelDialog.find(".channel").combobox('clear'); 1412 channelDialog.find(".channel").combobox('clear');
...@@ -1414,13 +1416,13 @@ define(function() { ...@@ -1414,13 +1416,13 @@ define(function() {
1414 var chId=channelDialog.find(".channel").combobox("getValue"); 1416 var chId=channelDialog.find(".channel").combobox("getValue");
1415 for(var i=0;i<rows.length;i++){ 1417 for(var i=0;i<rows.length;i++){
1416 if(chId==rows[i].CHID){ 1418 if(chId==rows[i].CHID){
1417 - return $.messager.alert(resource.msg_title, resource.bizentity.check.channelValid); 1419 + return $.messager.alert(base.resource.msg_title, resource.check.channelValid);
1418 } 1420 }
1419 } 1421 }
1420 1422
1421 var item = channelDialog.find(".channel").combobox("getValue"); 1423 var item = channelDialog.find(".channel").combobox("getValue");
1422 $.post("./channel/findDetails.json",{id:item},function(result){ 1424 $.post("./channel/findDetails.json",{id:item},function(result){
1423 - if(responseUtils(result)){ 1425 + if($.response(result)){
1424 var Invoice ={ 1426 var Invoice ={
1425 CHNAME:result.value.name, 1427 CHNAME:result.value.name,
1426 CHDESC:result.value.desc, 1428 CHDESC:result.value.desc,
...@@ -1438,7 +1440,7 @@ define(function() { ...@@ -1438,7 +1440,7 @@ define(function() {
1438 1440
1439 //打开经营渠道dialog (分销商) 1441 //打开经营渠道dialog (分销商)
1440 function openDistributor(){ 1442 function openDistributor(){
1441 - distributorDialog.show().window("center").dialog("open").dialog('setTitle',resource.bizentity.channelTitle).find(".distributorForm").form("clear"); 1443 + distributorDialog.show().window("center").dialog("open").dialog('setTitle',resource.channelTitle).find(".distributorForm").form("clear");
1442 distributorForm.find('.CHANNELTEXTEDIT').hide(); 1444 distributorForm.find('.CHANNELTEXTEDIT').hide();
1443 distributorForm.find('.CHANNELEDIT').show(); 1445 distributorForm.find('.CHANNELEDIT').show();
1444 distINDEX.val(""); 1446 distINDEX.val("");
...@@ -1451,15 +1453,15 @@ define(function() { ...@@ -1451,15 +1453,15 @@ define(function() {
1451 var row = initTab3.datagrid("getSelected"); 1453 var row = initTab3.datagrid("getSelected");
1452 var rowIndex = initTab3.datagrid('getRowIndex', row); 1454 var rowIndex = initTab3.datagrid('getRowIndex', row);
1453 if(row==null){ 1455 if(row==null){
1454 - $.messager.alert(resource.msg_title, resource.msgEditTip); 1456 + $.messager.alert(base.resource.msg_title, base.resource.msgEditTip);
1455 }else{ 1457 }else{
1456 if(row.BECID){ 1458 if(row.BECID){
1457 $.post("./bizChannel/findByBecId.json",{becId:row.BECID},function(result){ 1459 $.post("./bizChannel/findByBecId.json",{becId:row.BECID},function(result){
1458 - if(responseUtils(result)){ 1460 + if($.response(result)){
1459 distCHANNEL.combobox('clear'); 1461 distCHANNEL.combobox('clear');
1460 chidck=result.value.chid; 1462 chidck=result.value.chid;
1461 $.post("./channel/findList.json",{'id':result.value.beparent},function(r){ 1463 $.post("./channel/findList.json",{'id':result.value.beparent},function(r){
1462 - if(responseUtils(r)){ 1464 + if($.response(r)){
1463 if(r.list.length>0){ 1465 if(r.list.length>0){
1464 distCHANNEL.combobox('loadData',r.list); 1466 distCHANNEL.combobox('loadData',r.list);
1465 distCHANNEL.combobox("setValue",result.value.chid); 1467 distCHANNEL.combobox("setValue",result.value.chid);
...@@ -1485,7 +1487,7 @@ define(function() { ...@@ -1485,7 +1487,7 @@ define(function() {
1485 1487
1486 distCHANNEL.combobox('clear'); 1488 distCHANNEL.combobox('clear');
1487 $.post("./channel/findList.json",{'id':row.BEPARENT},function(r){ 1489 $.post("./channel/findList.json",{'id':row.BEPARENT},function(r){
1488 - if(responseUtils(r)){ 1490 + if($.response(r)){
1489 if(r.list.length>0){ 1491 if(r.list.length>0){
1490 distCHANNEL.combobox('loadData',r.list); 1492 distCHANNEL.combobox('loadData',r.list);
1491 distCHANNEL.combobox("setValue",row.CHID); 1493 distCHANNEL.combobox("setValue",row.CHID);
...@@ -1500,7 +1502,7 @@ define(function() { ...@@ -1500,7 +1502,7 @@ define(function() {
1500 } 1502 }
1501 distINDEX.val(rowIndex); 1503 distINDEX.val(rowIndex);
1502 1504
1503 - distributorDialog.show().removeClass("add").window("center").dialog("open").dialog('setTitle',resource.bizentity.channelTitle).find(".distributorForm"); 1505 + distributorDialog.show().removeClass("add").window("center").dialog("open").dialog('setTitle',resource.channelTitle).find(".distributorForm");
1504 } 1506 }
1505 } 1507 }
1506 1508
...@@ -1514,7 +1516,7 @@ define(function() { ...@@ -1514,7 +1516,7 @@ define(function() {
1514 var chId=distributorForm.find(".CHANNEL").combobox("getValue"); 1516 var chId=distributorForm.find(".CHANNEL").combobox("getValue");
1515 for(var i=0;i<rows.length;i++){ 1517 for(var i=0;i<rows.length;i++){
1516 if(chId==rows[i].CHID){ 1518 if(chId==rows[i].CHID){
1517 - return $.messager.alert(resource.msg_title, resource.bizentity.check.channelValid); 1519 + return $.messager.alert(base.resource.msg_title, resource.check.channelValid);
1518 } 1520 }
1519 } 1521 }
1520 }else{ 1522 }else{
...@@ -1523,7 +1525,7 @@ define(function() { ...@@ -1523,7 +1525,7 @@ define(function() {
1523 if(chId!=chidck){ 1525 if(chId!=chidck){
1524 for(var i=0;i<rows.length;i++){ 1526 for(var i=0;i<rows.length;i++){
1525 if(chId==rows[i].CHID){ 1527 if(chId==rows[i].CHID){
1526 - return $.messager.alert(resource.msg_title, resource.bizentity.check.channelValid); 1528 + return $.messager.alert(base.resource.msg_title, resource.check.channelValid);
1527 } 1529 }
1528 } 1530 }
1529 } 1531 }
...@@ -1550,9 +1552,9 @@ define(function() { ...@@ -1550,9 +1552,9 @@ define(function() {
1550 var row = initTab3.datagrid("getSelected"); 1552 var row = initTab3.datagrid("getSelected");
1551 var rowIndex = initTab3.datagrid('getRowIndex', row); 1553 var rowIndex = initTab3.datagrid('getRowIndex', row);
1552 if(row==null){ 1554 if(row==null){
1553 - $.messager.alert(resource.msg_title, resource.msgRemoveTip); 1555 + $.messager.alert(base.resource.msg_title, base.resource.msgRemoveTip);
1554 }else{ 1556 }else{
1555 - $.messager.confirm(resource.msg_title, resource.confirmDelete, function(r){ 1557 + $.messager.confirm(base.resource.msg_title, base.resource.confirmDelete, function(r){
1556 if(r){ 1558 if(r){
1557 initTab3.datagrid('deleteRow', rowIndex); 1559 initTab3.datagrid('deleteRow', rowIndex);
1558 } 1560 }
...@@ -1561,7 +1563,7 @@ define(function() { ...@@ -1561,7 +1563,7 @@ define(function() {
1561 } 1563 }
1562 //总部 1564 //总部
1563 var channelCombox = $.post("./channel/channelList.json",null,function(r){ 1565 var channelCombox = $.post("./channel/channelList.json",null,function(r){
1564 - if(responseUtils(r)){ 1566 + if($.response(r)){
1565 channelDialog.find(".channel").combobox( 1567 channelDialog.find(".channel").combobox(
1566 {data:r.list, 1568 {data:r.list,
1567 width:300, 1569 width:300,
...@@ -1571,7 +1573,7 @@ define(function() { ...@@ -1571,7 +1573,7 @@ define(function() {
1571 }); 1573 });
1572 /*// 分销商 1574 /*// 分销商
1573 var distCHANNEL = $.post("./channel/findList.json",{'id':distributorForm.find(".BEID").val()},function(r){ 1575 var distCHANNEL = $.post("./channel/findList.json",{'id':distributorForm.find(".BEID").val()},function(r){
1574 - if(responseUtils(r)){ 1576 + if($.response(r)){
1575 distributorForm.find(".CHANNEL").combobox( 1577 distributorForm.find(".CHANNEL").combobox(
1576 {data:r.list, 1578 {data:r.list,
1577 width:300, 1579 width:300,
...@@ -1587,7 +1589,7 @@ define(function() { ...@@ -1587,7 +1589,7 @@ define(function() {
1587 // 选择适用经营品牌 1589 // 选择适用经营品牌
1588 function chooseBrank(){ 1590 function chooseBrank(){
1589 var chid=distributorForm.find(".CHANNEL").combobox("getValue"); 1591 var chid=distributorForm.find(".CHANNEL").combobox("getValue");
1590 - showCondObject({id:'5b6e6fc2-71fc-4ca5-90fc-d24abbe6533e',showGrid:true,refresh:true,singleSelect:false,onBeforeLoad:function(params){ 1592 + base.showCondObject({id:'5b6e6fc2-71fc-4ca5-90fc-d24abbe6533e',showGrid:true,refresh:true,singleSelect:false,onBeforeLoad:function(params){
1591 //params["fb650b21-d3e5-4ab1-b0ad-eee9b0400d98"]=distributorForm.find(".BEID").val(); 1593 //params["fb650b21-d3e5-4ab1-b0ad-eee9b0400d98"]=distributorForm.find(".BEID").val();
1592 //params["e3b9bb7b-54a6-11e6-8096-6c626db0ae88"]=chid 1594 //params["e3b9bb7b-54a6-11e6-8096-6c626db0ae88"]=chid
1593 params["677cc424-5967-11e6-8096-6c626db0ae88"]=1; 1595 params["677cc424-5967-11e6-8096-6c626db0ae88"]=1;
...@@ -1607,7 +1609,7 @@ define(function() { ...@@ -1607,7 +1609,7 @@ define(function() {
1607 }; 1609 };
1608 // 选择上级经营主体 1610 // 选择上级经营主体
1609 function chooseBizEntity(){ 1611 function chooseBizEntity(){
1610 - showCondObject({id:"6bb37d77-118d-46dd-ab76-af904810c47d", showGrid:true, refresh:true, singleSelect:true,onBeforeLoad:function(params){ 1612 + base.showCondObject({id:"6bb37d77-118d-46dd-ab76-af904810c47d", showGrid:true, refresh:true, singleSelect:true,onBeforeLoad:function(params){
1611 return params["7b4ce7b5-5b1e-48cd-987d-12ac4b91a4aa"]=1; 1613 return params["7b4ce7b5-5b1e-48cd-987d-12ac4b91a4aa"]=1;
1612 }}, function(row){ 1614 }}, function(row){
1613 distributorForm.find(".BEID").val(row.BEID); 1615 distributorForm.find(".BEID").val(row.BEID);
...@@ -1615,7 +1617,7 @@ define(function() { ...@@ -1615,7 +1617,7 @@ define(function() {
1615 //distCHANNEL.combobox('reload','./channel/findList.json?id='+distributorForm.find(".BEID").val()); 1617 //distCHANNEL.combobox('reload','./channel/findList.json?id='+distributorForm.find(".BEID").val());
1616 distCHANNEL.combobox('clear'); 1618 distCHANNEL.combobox('clear');
1617 $.post("./channel/findList.json",{'id':distributorForm.find(".BEID").val()},function(r){ 1619 $.post("./channel/findList.json",{'id':distributorForm.find(".BEID").val()},function(r){
1618 - if(responseUtils(r)){ 1620 + if($.response(r)){
1619 distCHANNEL.combobox('loadData',r.list); 1621 distCHANNEL.combobox('loadData',r.list);
1620 } 1622 }
1621 }); 1623 });
...@@ -1635,20 +1637,20 @@ define(function() { ...@@ -1635,20 +1637,20 @@ define(function() {
1635 function saveBtn(){ 1637 function saveBtn(){
1636 if(formInfo.find(".ID").val()!=""){ 1638 if(formInfo.find(".ID").val()!=""){
1637 if(Number(pltId)!=1){ 1639 if(Number(pltId)!=1){
1638 - return $.messager.alert(resource.msg_title,resource.bizentity.check.editVaild); 1640 + return $.messager.alert(base.resource.msg_title,resource.check.editVaild);
1639 } 1641 }
1640 } 1642 }
1641 1643
1642 var tab2Rows = initTab2.datagrid("getRows"); 1644 var tab2Rows = initTab2.datagrid("getRows");
1643 - var proMsg=resource.users.saveTitle; 1645 + var proMsg=resource.saveTitle;
1644 if(tab2Rows.length==0){ 1646 if(tab2Rows.length==0){
1645 - //return $.messager.alert(resource.msg_title,resource.bizentity.check.setOfBook); 1647 + //return $.messager.alert(base.resource.msg_title,resource.check.setOfBook);
1646 - proMsg=resource.bizentity.check.proMsgSaveTitle; 1648 + proMsg=resource.check.proMsgSaveTitle;
1647 } 1649 }
1648 1650
1649 var tab3Rows = initTab3.datagrid("getRows"); 1651 var tab3Rows = initTab3.datagrid("getRows");
1650 if(tab3Rows.length==0){ 1652 if(tab3Rows.length==0){
1651 - return $.messager.alert(resource.msg_title,resource.bizentity.check.channel); 1653 + return $.messager.alert(base.resource.msg_title,resource.check.channel);
1652 } 1654 }
1653 1655
1654 tabs.tabs("select",0); 1656 tabs.tabs("select",0);
...@@ -1658,7 +1660,7 @@ define(function() { ...@@ -1658,7 +1660,7 @@ define(function() {
1658 if(!initTab1.find(".details-tab-form").form("validate")){ 1660 if(!initTab1.find(".details-tab-form").form("validate")){
1659 return; 1661 return;
1660 } 1662 }
1661 - $.messager.confirm(resource.msg_title,proMsg, function(r){ 1663 + $.messager.confirm(base.resource.msg_title,proMsg, function(r){
1662 if(r){ 1664 if(r){
1663 var setOfRows = initTab2.datagrid("getRows"); 1665 var setOfRows = initTab2.datagrid("getRows");
1664 var channleRows = initTab3.datagrid("getRows"); 1666 var channleRows = initTab3.datagrid("getRows");
...@@ -1751,8 +1753,8 @@ define(function() { ...@@ -1751,8 +1753,8 @@ define(function() {
1751 bizEntity.bizSetOfBookList = bizSetOfBookList; 1753 bizEntity.bizSetOfBookList = bizSetOfBookList;
1752 bizEntity.bizChannelList = bizChannelList; 1754 bizEntity.bizChannelList = bizChannelList;
1753 $.JSON("./bizEntity/insert.json",bizEntity , function(result){ 1755 $.JSON("./bizEntity/insert.json",bizEntity , function(result){
1754 - if(responseUtils(result)){ 1756 + if($.response(result)){
1755 - closeSelectedPanel(); 1757 + indexlayout.closeSelectedPanel();
1756 } 1758 }
1757 }); 1759 });
1758 } 1760 }
......
1 -define(function(){ 1 +define(['i18n!bizEntity/nls/resource', 'cls', 'base/index', 'index/index'], function (resource, Class, base, indexlayout){
2 return { 2 return {
3 + resource:resource,
3 init:function(pltId){ 4 init:function(pltId){
4 var body=$(document.body); 5 var body=$(document.body);
5 - var pannel = getSelectedPanel();//初始化面板 6 + var pannel = indexlayout.getSelectedPanel();//初始化面板
6 var page = pannel.children(".bizEntity-index-page").layout({ 7 var page = pannel.children(".bizEntity-index-page").layout({
7 fit:true 8 fit:true
8 });//定义面板内div 9 });//定义面板内div
...@@ -14,44 +15,46 @@ define(function(){ ...@@ -14,44 +15,46 @@ define(function(){
14 return $('<div></div>').appendTo(center).datagrid({ 15 return $('<div></div>').appendTo(center).datagrid({
15 url:'./query/'+condId+'.json', 16 url:'./query/'+condId+'.json',
16 toolbar:$('<div class="clearfix"></div>').rs_toolbar({ 17 toolbar:$('<div class="clearfix"></div>').rs_toolbar({
17 - title: resource.bizentity.title, 18 + title: resource.title,
18 - authz:getAuthzUtils('bizEntity'), 19 + authz:base.getAuthz('bizEntity'),
19 buttons:[{ 20 buttons:[{
20 - text:resource.btn.select, 21 + text:base.resource.btn.select,
21 iconCls:'btn-select select-condition', 22 iconCls:'btn-select select-condition',
22 code:'view', 23 code:'view',
23 handler: function(){ 24 handler: function(){
24 - showCondObject(condId,datagridReload); 25 + base.showCondObject(condId,datagridReload);
25 } 26 }
26 },{ 27 },{
27 - text:resource.btn.add, 28 + text:base.resource.btn.add,
28 iconCls:'btn-add', 29 iconCls:'btn-add',
29 code:'edit', 30 code:'edit',
30 handler: addBizEntity 31 handler: addBizEntity
31 },{ 32 },{
32 - text:resource.btn.edit, 33 + text:base.resource.btn.edit,
33 iconCls:'btn-edit', 34 iconCls:'btn-edit',
34 code:'edit', 35 code:'edit',
35 handler: editBizEntity 36 handler: editBizEntity
36 },{ 37 },{
37 - text:resource.btn.remove, 38 + text:base.resource.btn.remove,
38 iconCls:'btn-remove', 39 iconCls:'btn-remove',
39 code:'edit', 40 code:'edit',
40 handler: removeBizEntity 41 handler: removeBizEntity
41 }], 42 }],
42 tools:[{ 43 tools:[{
43 - text:resource.btn.refresh, 44 + text:base.resource.btn.refresh,
44 iconCls:'btn-refresh', 45 iconCls:'btn-refresh',
45 - handler:panelRefreshUtils 46 + handler:function(){
47 + indexlayout.getSelectedPanel().panel("refresh");
48 + }
46 }] 49 }]
47 }), 50 }),
48 columns:[[ 51 columns:[[
49 {field:'ck',checkbox:true }, 52 {field:'ck',checkbox:true },
50 - {field:'BECODE',title:resource.bizentity.grid.code, width:150}, 53 + {field:'BECODE',title:resource.grid.code, width:150},
51 - {field:'BENAME',title:resource.bizentity.grid.name, width:200}, 54 + {field:'BENAME',title:resource.grid.name, width:200},
52 - {field:'ORGTYPE',title:resource.bizentity.grid.type, width:120}, 55 + {field:'ORGTYPE',title:resource.grid.type, width:120},
53 - {field:'BEDESC',title:resource.bizentity.grid.desc, width:300,formatter:formatText}, 56 + {field:'BEDESC',title:resource.grid.desc, width:300,formatter:formatText},
54 - {field:'VALID',title:resource.bizentity.grid.valid, width:100} 57 + {field:'VALID',title:resource.grid.valid, width:100}
55 ]], 58 ]],
56 onLoadSuccess:function(data){ 59 onLoadSuccess:function(data){
57 if(Number(pltId)!=1){ 60 if(Number(pltId)!=1){
...@@ -70,27 +73,29 @@ define(function(){ ...@@ -70,27 +73,29 @@ define(function(){
70 } 73 }
71 //新建经营主体 74 //新建经营主体
72 function addBizEntity(){ 75 function addBizEntity(){
73 - showTabUtils({text:resource.bizentity.detailTitle,url:'./bizEntity/details'},true,function(){grid.datagrid("reload");}); 76 + indexlayout.showPanel({text:resource.detailTitle,url:'./bizEntity/details'},true,function(){grid.datagrid("reload");});
74 } 77 }
75 //编辑的经营主体 78 //编辑的经营主体
76 function editBizEntity(){ 79 function editBizEntity(){
77 var row=grid.datagrid('getSelected'); 80 var row=grid.datagrid('getSelected');
78 if(row){ 81 if(row){
79 - showTabUtils({text:resource.bizentity.detailTitle,url:'./bizEntity/details',id:row.BEID},true,function(){grid.datagrid("reload");}); 82 + indexlayout.showPanel({text:resource.detailTitle,url:'./bizEntity/details',id:row.BEID},true,function(){grid.datagrid("reload");});
80 }else{ 83 }else{
81 - $.messager.alert(resource.msg_title,resource.msgEditTip); 84 + $.messager.alert(base.resource.msg_title,base.resource.msgEditTip);
82 } 85 }
83 } 86 }
84 //删除主体 87 //删除主体
85 function removeBizEntity(){ 88 function removeBizEntity(){
86 var row=grid.datagrid('getSelected'); 89 var row=grid.datagrid('getSelected');
87 if(row==null){ 90 if(row==null){
88 - $.messager.alert(resource.msg_title, resource.msgRemoveTip); 91 + $.messager.alert(base.resource.msg_title, resource.msgRemoveTip);
89 }else{ 92 }else{
90 - $.messager.confirm(resource.msg_title, resource.confirmDelete, function(r){ 93 + $.messager.confirm(base.resource.msg_title, resource.confirmDelete, function(r){
91 if(r){ 94 if(r){
92 $.post("./bizEntity/delete.json",{id:row.BEID},function(result){ 95 $.post("./bizEntity/delete.json",{id:row.BEID},function(result){
93 - if(responseUtils(result)){ 96 + console.log(result);
97 + if($.response(result)){
98 + console.log(result);
94 grid.datagrid("reload"); 99 grid.datagrid("reload");
95 } 100 }
96 }); 101 });
...@@ -103,7 +108,7 @@ define(function(){ ...@@ -103,7 +108,7 @@ define(function(){
103 if(params){ 108 if(params){
104 grid.datagrid("reload",params); 109 grid.datagrid("reload",params);
105 }else{ 110 }else{
106 - grid.datagrid("reload",getCondObjectValue(condId)); 111 + grid.datagrid("reload",base.getCondObjectValue(condId));
107 } 112 }
108 } 113 }
109 } 114 }
......
1 +define({
2 +});
...\ No newline at end of file ...\ No newline at end of file
1 +define({
2 + root:{
3 + title:'经营主体',
4 + detailTitle:'经营主体详情',
5 + channelTitle:'主体经营渠道',
6 + closeAct:'结算账套',
7 + paymentmethod:'收款方式',
8 + saveTitle:'确定保存?',
9 + orgTypeDialogTitle:'选择新建的组织类型',
10 + msgRemoveTip:'请选择要删除的数据!',
11 + confirmDelete:'你确定要删除这条信息吗?',
12 + grid:{
13 + code:'编号',
14 + name:'名称',
15 + desc:'描述 ',
16 + type:'组织类型',
17 + valid:'可用',
18 + bebcode:'编号',
19 + bebname:'名称',
20 + bename:'主体名称',
21 + bebdesc:'描述',
22 + ptvalid:'可用',
23 + beiname:'开票单位名称',
24 + beitaxnum:'税务登记号',
25 + beitaxrate:'税率',
26 + ptphone:'电话',
27 + ptaddr:'地址',
28 + cuname:'币种单位',
29 + bizinvoicelist:'开票信息',
30 + bizaccountlist:'常用账户',
31 + bizpaywaypist:'收款方式',
32 + beasource:'收支渠道/银行',
33 + beaname:'账户名',
34 + beaaccount:'BEAACCOUNT',
35 + bearate:'交易费率',
36 + pwid:'收款方式ID',
37 + pwname:'收款方式名称',
38 + curate:'汇率',
39 + bepproceeds:'收款渠道/银行',
40 + beppayee:'收款人',
41 + bepaccount:'收款账号',
42 + bepincome:'计销售收入',
43 + beppoint:'消费积分',
44 + piid:'调用支付接口'
45 + },
46 + channel:{
47 + title:'经营渠道',
48 + grid:{
49 + name:'名称',
50 + desc:'描述 ',
51 + brand:'经营品牌',
52 + valid:'可用'
53 + },
54 + check:{
55 + valid:'只有系统管理平台才能编辑渠道信息!'
56 + }
57 + },
58 + bizChannelgridtitle:'经营渠道',
59 + bizChannelgrid:{
60 + beName:'上级经营主体'
61 + },
62 + check:{
63 + setOfBook:'每个经营主体必须创建至少一个结算账套',
64 + channel:'每个经营主体必须创建至少一个经营渠道',
65 + bookName:'该结算账套的名称已与当前主体的其它已有结算账套重复',
66 + beiName:'一个结算账套内开票名称禁止重复',
67 + numberLetterValid:'编号只能输入数字、字母或其组合',
68 + ptphone:'请输入正确的号码,格式如:0519-83360776或83360776,3~4位区号加7~8位号码,区号可以省略!',
69 + decimalValid:'只能输入1位整数并且小数位最多4位小数,例如:1.1234',
70 + integer:'税率范围0-100%',
71 + channelValid:'当前选择的经营渠道与列表中的经营渠道有重复,请重新选择!',
72 + editVaild:'只有系统管理平台才能编辑经营主体信息!',
73 + defaultBookEdit:'默认结算账套不能修改!',
74 + defaultBookDelete:'默认结算账套不能删除!',
75 + proMsgSaveTitle:'您当前未设置结算账套,新增时系统会默认帮您生成一个默认的结算账套,确定继续吗?',
76 + orgtypeValid:'请先选择销售类型!',
77 + actCntdelet:'该账户已经被已有收款方式使用,不能删除!'
78 + }
79 + },
80 + "en-US": true,
81 + "en-US-paris": true
82 +});
...\ No newline at end of file ...\ No newline at end of file