Commit be93d8bc by 陶然

优化资源

parent 5ef2d2e1
//Version:0.14
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('b.1U(\'u.L.g\');b.1G(\'u.v.p.g.q.I.G.E\',{1j:\'1k.v.1l\',2:\'u.v.p.g.q.I.G.E\',1p:\'p.g.T.q\',1r:o,1z:{1s:\'1t\',1u:{8:1v,1w:0}},1h:{C:{A:\'1y\',z:\'x-P P-1q-1g\',3:{j:0,B:10 S()}},13:{Q:i(J){4 N=J(\'3.j\');15 16.L.18(N)}}},19:[{2:\'1a\',1b:\'1c\',O:[\'->\',{1e:\'12\',9:{K:\'{A}\',M:\'{z}\',1d:\'{!1x}\'},1A:\'Z\'}]}],1T:{1C:t,1W:\'1B\',2:\'l\'},O:[{2:\'l\',a:\'c-t 8-5\',d:\'1Y\',r:e,9:{h:\'{3.1Z}\'}},{2:\'l\',a:\'c-H 8-5\',d:\'20\',r:e,9:{h:\'{3.21}\'}},{2:\'22\',a:\'c-t 8-5\',d:\'25\',r:e,9:{h:\'{3.B}\'}},{2:\'2c\',d:\'26\',r:e,a:\'c-H 8-5\',29:\'F\',D:e,9:{h:\'{3.F}\'}},{d:\'2b\',2:\'1V\',D:o,24:o,1S:0,a:\'c-5 8-5\',1D:0.1,9:\'{3.j}\'},{2:\'l\',a:\'c-5 8-5\',D:o,d:\'1M\',9:{h:\'{Q}\'}}],1P:i(w,k){4 7=Y;4 6=7.11();6.n(\'A\',k.K);6.n(\'z\',k.M);6.n("W",w);4 m={};m.j=w.j;m.B=10 S();6.n(\'3\',m)},1R:{Z:i(k){4 s=Y;4 7=s.1Q();4 6=s.11();4 f={};f.1O=6.C.W.1N;f.U=[];f.U.1L(6.C.3);7.1K(\'1J...\');b.1I.1H({1F:\'/1E/p.g.T.q/2a.28\',27:f,23:i(y){1X X=b.1f(y.17);7.R();b.V(\'14!\');7.1i(\'1o\',s,X)},1n:i(y){b.V(\'1m!\');7.R()}})}}});',62,137,'||xtype|entity|let|100|_2201071508310|_2201071508311|small|bind|responsiveCls|Ext|big|fieldLabel|false|_2201071508312|Finances|value|function|Amount|_2201071508314|textfield|_2201071508315|set|true|Kivii|InvoiceApply|allowBlank|_2201071508313|60|App|Control|_2201071508317||_2201071508316|ButtonIcon|ButtonText|OperateTime|data|readOnly|Form|Type|Accept|40|Invoice|get|text|Const|iconCls|_22010715083110|items|fa|amountChineseBig|unmask|Date|Entities|Items|toast|owner|_2201071508318|this|_2201071508319|new|getViewModel|left|formulas|录入成功|return|KiviiContext|responseText|FinancesFunctionsMoneyToChineseBig|dockedItems|toolbar|dock|top|disabled|iconAlign|decode|in|viewModel|fireEvent|extend|System|EntityForm|录入失败|failure|entityCreated|entityType|sign|autoScroll|type|responsivecolumn|states|800|large|formIsValid|录入|layout|handler|right|labelWidth|step|Restful|url|define|request|Ajax|数据通讯中|mask|push|金额大写|Kvid|ApplyKvid|setOwner|getView|controller|minValue|defaults|require|numberfield|labelAlign|var|发票号码|SerialNumber|发票代码|SerialCode|datefield|success|hideTrigger|开票日期|发票类型|jsonData|json|internalCode|Result2|开票金额|categoryField'.split('|'),0,{}))
//Version:0.32 //Version:0.33
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('5.2V(\'t.U.m\');5.2M(\'t.z.H.m.L.F.15\',{1n:\'1o.z.1X\',1h:\'H.m.1I.L\',c:\'t.z.H.m.L.F.15\',1l:r,11:{1G:\'1v\',1y:{n:1q,1R:0}},24:{g:{I:{},b:q,a:0,v:q,P:\'\',s:q,A:\'\',w:q,O:q},1r:{1m:e(1c){4 l=1c(\'a\');R 1Y.U.1B(l)}}},1D:[{Z:\'0 3 -10 3\',c:\'1E\',j:{E:\'<p 1F="1H:1J">1K:{b}</p>\'},1L:{1M:\'1N\'}},\'->\',{19:\'1a\',V:\'1k\',j:{Y:\'{w}\',K:\'{O}\',1O:\'{!1Q}\',23:\'{!w}\'}}],1S:{Z:\'0 10 10 10\',1T:1U,1V:\'1W\',c:\'Q\'},1i:[{c:\'Q\',D:\'1Z\',20:o,1e:o,1d:\'14\',C:\'B-9 n-9\',21:{22:{1C:\'x-u u-1P-h\',1A:o,V:\'18\'}},j:{E:\'{P}\'}},{c:\'1p\',D:\'1z\',1t:\'1u\',1x:r,C:\'B-9 n-9\',1d:\'17\',1w:0,1s:2,j:{E:\'{a}\'},1e:o},{c:\'Q\',C:\'B-9 n-9\',D:\'2i\',26:r,j:{E:\'{1m}\'}},{c:\'2z\',D:\'2A&d;&d;&d;&d;&d;&d;&d;2B\',C:\'B-9 n-9\',j:\'{A}\'}],1j:e(8,k){4 6=T;4 1=6.S();4 16=6.2C();1.7(\'w\',k.Y);1.7(\'O\',k.K);4 l=12(12(8.a-8.2D).2E(2));16.17.2F(l);1.7(\'a\',l);1.7(\'v\',8.1g);1.7(\'I\',8);1.7(\'b\',\'2G\');G(8.b==="2H")1.7(\'b\',\'2I\');G(8.b==="2J")1.7(\'b\',\'2L\')},2U:{18:e(k,2N){4 f=T;4 6=f.W();4 1=f.S();4 y=5.13(\'t.z.H.m.F.14.2O\');4 J=5.13(\'5.2P.2Q\',{11:\'2R\',2S:\'2T...\',K:\'x-u u-2y\',19:\'1a\',1l:r,2K:2w,2x:27,28:r,29:o,1i:[y]});y.1j(1.g.I);J.2a();y.2b(\'2c\',e(k,8){J.2d();1.7(\'s\',8[0].1g);1.7(\'P\',8[0].2e)})},1k:e(k){4 f=T;4 6=f.W();4 1=f.S();G(1.g.a<=0){5.N(\'2f!\');R}4 i={};i.a=1.g.a;i.v=1.g.v;i.s=1.g.s;i.A=1.g.A;G(i==={})R;6.2g(\'2h...\');4 X=\'/2j/\'+6.1h+\'/F.2v\';5.2k.2l({2m:X,2n:i,2o:e(M){4 1b=5.2p(M.2q);6.1f();5.N(\'2r!\');6.2s(\'2t\',f,1b)},2u:e(M){6.1f();5.N(\'25!\')}})}}});',62,182,'|_2112291647520|||let|Ext|_2112291647521|set|_2112291647522|100|Amount|Type|xtype|nbsp|function|_2112291647523|data||_2112291647524|bind|_2112291647525|_2112291647526|Finances|small|false||null|true|AccountKvid|App|fa|PaymentKvid|ButtonText||_2112291647527|Control|Remark|big|responsiveCls|fieldLabel|value|Transfer|if|Kivii|owner|_2112291647529|iconCls|Payment|_2112291647528|toast|ButtonIcon|AccountName|textfield|return|getViewModel|this|Const|handler|getView|_21122916475212|text|margin||layout|parseFloat|create|Account|Form|_21122916475214|amount|_21122916475210|iconAlign|left|_21122916475213|get|reference|allowBlank|unmask|Kvid|entityType|items|setOwner|_21122916475211|autoScroll|amountChineseBig|extend|System|numberfield|800|formulas|decimalPrecision|emptyText|请输入数字|responsivecolumn|minValue|hideTrigger|states|充值金额|hideOnReadOnly|FinancesFunctionsMoneyToChineseBig|cls|tbar|displayfield|style|type|color|Entities|red|当前要充值的到账类型为|fieldStyle|fontSize|18px|disabled|ellipsis|formIsValid|large|defaults|labelWidth|60|labelAlign|right|EntityForm|KiviiContext|充值账户|editable|triggers|_21122916475216|hidden|viewModel|操作失败|readOnly|400|modal|resizable|show|on|entitySelected|close|Name|无可操作金额|mask|数据通讯中|金额大写|Restful|Ajax|request|url|jsonData|success|decode|responseText|操作成功|fireEvent|entityTransfer|failure|json|700|height|users|textarea|备|注|getReferences|AmountUsed|toFixed|setMaxValue|储值充值|UnBiz|非业务|Refund|width|退款|define|_21122916475215|Selector|window|Window|fit|title|选择充值目标账户|controller|require'.split('|'),0,{})) eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('5.2V(\'t.U.m\');5.2M(\'t.z.H.m.L.F.15\',{1n:\'1o.z.1X\',1h:\'H.m.1I.L\',c:\'t.z.H.m.L.F.15\',1l:r,11:{1G:\'1v\',1y:{n:1q,1R:0}},24:{g:{I:{},b:q,a:0,v:q,P:\'\',s:q,A:\'\',w:q,O:q},1r:{1m:e(1c){4 l=1c(\'a\');R 1Y.U.1B(l)}}},1D:[{Z:\'0 3 -10 3\',c:\'1E\',j:{E:\'<p 1F="1H:1J">1K:{b}</p>\'},1L:{1M:\'1N\'}},\'->\',{19:\'1a\',V:\'1k\',j:{Y:\'{w}\',K:\'{O}\',1O:\'{!1Q}\',23:\'{!w}\'}}],1S:{Z:\'0 10 10 10\',1T:1U,1V:\'1W\',c:\'Q\'},1i:[{c:\'Q\',D:\'1Z\',20:o,1e:o,1d:\'14\',C:\'B-9 n-9\',21:{22:{1C:\'x-u u-1P-h\',1A:o,V:\'18\'}},j:{E:\'{P}\'}},{c:\'1p\',D:\'1z\',1t:\'1u\',1x:r,C:\'B-9 n-9\',1d:\'17\',1w:0,1s:2,j:{E:\'{a}\'},1e:o},{c:\'Q\',C:\'B-9 n-9\',D:\'2i\',26:r,j:{E:\'{1m}\'}},{c:\'2z\',D:\'2A&d;&d;&d;&d;&d;&d;&d;2B\',C:\'B-9 n-9\',j:\'{A}\'}],1j:e(8,k){4 6=T;4 1=6.S();4 16=6.2C();1.7(\'w\',k.Y);1.7(\'O\',k.K);4 l=12(12(8.a-8.2D).2E(2));16.17.2F(l);1.7(\'a\',l);1.7(\'v\',8.1g);1.7(\'I\',8);1.7(\'b\',\'2G\');G(8.b==="2H")1.7(\'b\',\'2I\');G(8.b==="2J")1.7(\'b\',\'2L\')},2U:{18:e(k,2N){4 f=T;4 6=f.W();4 1=f.S();4 y=5.13(\'t.z.H.m.F.14.2O\');4 J=5.13(\'5.2P.2Q\',{11:\'2R\',2S:\'2T...\',K:\'x-u u-2y\',19:\'1a\',1l:r,2K:2w,2x:27,28:r,29:o,1i:[y]});y.1j(1.g.I);J.2a();y.2b(\'2c\',e(k,8){J.2d();1.7(\'s\',8[0].1g);1.7(\'P\',8[0].2e)})},1k:e(k){4 f=T;4 6=f.W();4 1=f.S();G(1.g.a<=0){5.N(\'2f!\');R}4 i={};i.a=1.g.a;i.v=1.g.v;i.s=1.g.s;i.A=1.g.A;G(i==={})R;6.2g(\'2h...\');4 X=\'/2j/\'+6.1h+\'/F.2v\';5.2k.2l({2m:X,2n:i,2o:e(M){4 1b=5.2p(M.2q);6.1f();5.N(\'2r!\');6.2s(\'2t\',f,1b)},2u:e(M){6.1f();5.N(\'25!\')}})}}});',62,182,'|_2201101006540|||let|Ext|_2201101006541|set|_2201101006542|100|Amount|Type|xtype|nbsp|function|_2201101006543|data||_2201101006544|bind|_2201101006545|_2201101006546|Finances|small|false||null|true|AccountKvid|App|fa|PaymentKvid|ButtonText||_2201101006547|Control|Remark|big|responsiveCls|fieldLabel|value|Transfer|if|Kivii|owner|_2201101006549|iconCls|Payment|_2201101006548|toast|ButtonIcon|AccountName|textfield|return|getViewModel|this|Const|handler|getView|_22011010065412|text|margin||layout|parseFloat|create|Account|Form|_22011010065414|amount|_22011010065410|iconAlign|left|_22011010065413|get|reference|allowBlank|unmask|Kvid|entityType|items|setOwner|_22011010065411|autoScroll|amountChineseBig|extend|System|numberfield|800|formulas|decimalPrecision|emptyText|请输入数字|responsivecolumn|minValue|hideTrigger|states|充值金额|hideOnReadOnly|FinancesFunctionsMoneyToChineseBig|cls|tbar|displayfield|style|type|color|Entities|red|当前要充值的到账类型为|fieldStyle|fontSize|18px|disabled|ellipsis|formIsValid|large|defaults|labelWidth|60|labelAlign|right|EntityForm|KiviiContext|充值账户|editable|triggers|_22011010065416|hidden|viewModel|操作失败|readOnly|400|modal|resizable|show|on|entitySelected|close|Name|无可操作金额|mask|数据通讯中|金额大写|Restful|Ajax|request|url|jsonData|success|decode|responseText|操作成功|fireEvent|entityTransfer|failure|json|700|height|users|textarea|备|注|getReferences|AmountUsed|toFixed|setMaxValue|储值充值|UnBiz|非业务|Refund|width|退款|define|_22011010065415|Selector|window|Window|fit|title|选择充值目标账户|controller|require'.split('|'),0,{}))
//Version:0.14 //Version:0.23
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('j.26(\'11.l.16.1a.19.P.15.C\',{24:\'1d.l.1i\',f:\'11.l.16.1a.19.P.15.C\',1b:\'/1c/1e.1f.1g.1s/1j.1l\',5:{},1m:i,1o:{1p:H},1h:[{f:\'E\',F:\'1t 1r\',G:\'Y-m-d\',w:1q,J:\'14\',K:i,L:{O:{M:2,I:\'x-h h-N\',17:\'U\'}},Q:{B:\'o\'}},{f:\'E\',F:\'1n\',G:\'Y-m-d\',w:1k,J:\'13\',K:i,L:{O:{M:2,I:\'x-h h-N\',17:\'T\'}},Q:{B:\'o\'}},{f:\'1P\',18:1,w:1v,1S:\'\',1T:\'1U\'}],1V:{1W:{1X:H,1Z:i},20:[{4:\'21\',3:\'22\',6:23},{3:\'1u\',4:\'25\',6:s},{3:\'1R\',4:\'1Y\',6:k},{3:\'1Q\',4:\'1E\',6:D},{3:\'1w\',4:\'1x\',6:s},{3:\'1y\',4:\'1z\',6:k},{3:\'1A\',4:\'1B\',6:k},{3:\'1C\',4:\'1D\',6:D},{3:\'1F\',4:\'1O\',6:s},{3:\'1G\',4:\'1H\',18:1}]},1I:{o:A(9,1J,1K){7 n=v;7 0=n.u();7 p=n.1L();7 8=p.14.12;7 a=p.13.12||q z();e(8===b){j.10("1M!");Z}e(8>a){j.10("1N!");Z}g 0.5.y;g 0.5.t;0.5.y=q z(8.X(),8.W(),8.V());0.5.t=q z(a.X(),a.W(),a.V()+1);0.r()},U:A(9){9.S(b);7 c=v;7 0=c.u();e(0.5===b)0.R({});g 0.5.y;0.r()},T:A(9){9.S(b);7 c=v;7 0=c.u();e(0.5===b)0.R({});g 0.5.t;0.r()}}});',62,131,'_2201041707490|||dataIndex|text|filter|width|let|_2201041707491|_2201041707492|_2201041707493|null|_2201041707494||if|xtype|delete|fa|false|Ext|100|Control||_2201041707496|_2201041707497|_2201041707495|new|reload|120|EndTime|getView|this|labelWidth||BeginTime|Date|function|select|Selector|150|datefield|fieldLabel|format|true|cls|reference|editable|triggers|weight|times|clear|Biz|listeners|setFilter|setValue|_2201041707498|_2201041707499|getDate|getMonth|getFullYear||return|toast|App|value|endTime|startTime|Report|Kivii|handler|flex|Settlement|Finances|dataSource|Restful|System|Njzj|Connects|Entities|tbar|EntitySelector|Query|30|json|selModel|结束|store|autoLoad|90|开始|NjzjReport|时间范围|NAME|60|SAMPLENAME|Samplename|TOTALPRICE|TotalPrice|LOGDATE|logDate|COMPANYNAME|Companyname|Compname|NAMEOFPRODUCTIONORG|TESTTASKNOFORCCC|Testtasknoforcc|controller|_22010417074911|_22010417074910|getReferences|请选择开始时间|开始日期不能大于结束日期|Nameofproductionorg|searchField|COMPNAME|FOLDERNO|queryField|emptyText|模糊搜索报告号|columns|defaults|menuDisabled|Folderno|sortable|items|序号|RN|50|extend|Name|define'.split('|'),0,{})) eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('r.22(\'1e.g.14.1a.1c.1i.1j.1k\',{2e:\'Z.g.1u\',e:\'1e.g.14.1a.1c.1i.1j.1k\',F:\'/E/G.H.J.1E/D.V\',1p:[\'Z.g.1o\'],6:{},1F:c,1q:{1r:M},1s:[{e:\'1t\',F:\'/E/G.H.J.1y/D.V\',1w:\'S\',1n:\'1D\',7:1C,w:c,B:{v:\'10\'}},{e:\'N\',K:\'1B 1A\',O:\'Y-m-d\',s:1z,P:\'1h\',w:c,T:{1m:{X:2,U:\'x-h h-R\',Q:\'13\'}},B:{v:\'q\'}},{e:\'N\',K:\'1x\',O:\'Y-m-d\',s:1v,P:\'1f\',w:c,T:{1m:{X:2,U:\'x-h h-R\',Q:\'12\'}},B:{v:\'q\'}},{e:\'25\',1l:1,s:24,2k:\'\',26:\'27\'}],28:{23:{2a:M,2b:c},2j:[{4:\'2c\',5:\'2d\',7:1G},{5:\'2f\',4:\'2g\',7:2h},{5:\'2i\',4:\'29\',7:z},{5:\'1H\',4:\'21\',7:W},{5:\'1Q\',4:\'1I\',7:1g},{5:\'1J\',4:\'1K\',7:z},{5:\'1L\',4:\'1M\',7:z},{5:\'1N\',4:\'1O\',7:W},{5:\'1P\',4:\'1R\',7:1g},{5:\'20\',4:\'1S\',1l:1}]},1T:{q:p(8,1U,18){3 b=n;3 0=b.o();3 C=b.1V();3 9=C.1h.1d;3 a=C.1f.1d||t u();j(9===f){r.1b("1W!");19}j(9>a){r.1b("1X!");19}l 0.6.y;l 0.6.A;0.6.y=t u(9.17(),9.16(),9.15());0.6.A=t u(a.17(),a.16(),a.15()+1);0.k()},13:p(8){8.11(f);3 i=n;3 0=i.o();j(0.6===f)0.I({});l 0.6.y;0.k()},12:p(8){8.11(f);3 i=n;3 0=i.o();j(0.6===f)0.I({});l 0.6.A;0.k()},10:p(8,L,18){3 b=n;3 0=b.o();0.6.1Y=L.1Z.S;0.k()}}});',62,145,'_2201050949130|||let|text|dataIndex|filter|width|_2201050949131|_2201050949132|_2201050949134|_2201050949133|false||xtype|null|Control|fa|_2201050949135|if|reload|delete||this|getView|function|_2201050949137|Ext|labelWidth|new|Date|select|editable||BeginTime|100|EndTime|listeners|_2201050949136|Query|Restful|dataSource|Njzj|Connects|setFilter|Entities|fieldLabel|_2201050949138|true|datefield|format|reference|handler|times|DEPT|triggers|cls|json|150|weight||System|_22010509491310|setValue|_22010509491311|_22010509491312|Kivii|getDate|getMonth|getFullYear|_2201050949139|return|Finances|toast|Settlement|value|App|endTime|120|startTime|Biz|Report|Selector|flex|clear|valueField|ComboSelector|requires|store|autoLoad|tbar|comboSelector|EntitySelector|30|keyField|结束|NjzjDepartment|90|开始|时间范围|350|DEPTNAME|NjzjReport|selModel|50|COMPNAME|Samplename|TOTALPRICE|TotalPrice|LOGDATE|logDate|COMPANYNAME|Companyname|NAMEOFPRODUCTIONORG|SAMPLENAME|Nameofproductionorg|Testtasknoforcc|controller|_22010509491313|getReferences|请选择开始时间|开始日期不能大于结束日期|Dept|data|TESTTASKNOFORCCC|Compname|define|defaults|60|searchField|emptyText|模糊搜索报告号|columns|Folderno|menuDisabled|sortable|序号|RN|extend|NAME|Name|170|FOLDERNO|items|queryField'.split('|'),0,{}))
//Version:0.33
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('j.46(\'11.1W.C\');j.41(\'11.V.H.C.I.1U\',{2W:\'2X.V.2Y\',8:\'11.V.H.C.I.1U\',21:\'H.C.1m.I\',1S:7,31:{1f:\'32\',33:{i:34,35:0}},1T:\'1X\',1p:\'x-K K-36-o\',37:{M:{5:{2d:{},y:1z,E:0,N:0,1o:0,U:\'H.C.1m.I\',1k:u.A.2j,1v:u.A.2r,1c:u.A.1b,2k:u.A.y,13:\'2p\'}},38:{28:k(1V){4 W=1V(\'5.E\');9 u.1W.3a(W)}}},1P:[{8:\'1N\',1M:\'1L\',1H:\'2b\',B:[\'->\',{h:\'1X\',1p:\'x-K K-3b\',3c:\'3d\',1F:\'2n\',r:{3r:\'{!3q}\'}}]}],1G:{8:\'3p\',3o:1n,3n:\'1x\',p:\'n-3m i-6\'},B:[{8:\'1Y\',w:\'3s\',p:\'n-1n i-6\',1Z:7,22:\'y\',29:\'1b\',23:{1f:\'11.V.H.C.I.24.25\'},F:b,r:{26:\'{5.X}\',a:\'{5.Z}\',s:\'{5.y}\'}},{8:\'1Y\',w:\'3l\',p:\'n-40 i-6\',s:7,1Z:b,22:\'y\',29:\'1b\',23:{1f:\'11.V.H.C.I.24.25\'},F:b,r:{26:\'{5.1k}\',a:\'{5.1v}\'}},{8:\'1g\',w:\'3g&c;&c;3f&c;3e\',1h:7,1j:0,p:\'n-30 i-6\',1i:0.1,F:b,s:7,r:{a:\'{5.N}\'}},{8:\'1g\',w:\'2V\',1h:7,1j:0,p:\'n-30 i-6\',1i:0.1,F:b,s:7,r:{a:\'{5.E}\'}},{8:\'1g\',w:\'2T\',1h:7,1j:0,p:\'n-20 i-6\',1i:0.1,F:b,s:7,r:{a:\'{5.1o}\'}},{8:\'2t\',w:\'2y\',F:b,s:7,p:\'n-20 i-6\',2u:\'13\',r:{a:\'{5.13}\'}},{p:\'n-1n i-6\',w:\'2x\',s:7,r:{a:\'{28}\'}},{w:\'2z&c;&c;2J&c;2B\',p:\'n-40 i-6\',F:b,s:7,r:\'{5.1c}\'},{8:\'2A\',w:\'2O&c;&c;&c;&c;&c;&c;&c;2M\',p:\'n-6 i-6\',r:{a:\'{5.18}\',s:\'{5.y}\'}},{8:\'2K\',1T:\'2H\',2G:7,2F:b,1S:7,p:\'n-6 i-6\',B:[{8:\'3t\',3u:\'19\',3v:{4u:4q,M:[],4k:\'1J\',4j:b},4i:[{4g:\'4e\',4d:[\'<1R>{G:S.1Q} ({4l.T} 4z)</1R>\',{1Q:k(G){q(G==="2h"){9"2f"}q(G==="2e"){9"2g"}q(G==="2m"){9"2l"}q(G==="2q"){9"2c"}9 G}}]}],1P:[{8:\'1N\',1M:\'1L\',1H:\'2b\',B:[{4h:\'0 3 -10 3\',8:\'47\',a:\'4m\',4n:{4o:\'4p\'}}]}],4r:{1G:{4t:7,4v:b},B:[{8:\'4w\'},{8:\'4y\',1q:\'4f\',h:\'45\',B:[{h:\'44\',1p:\'x-K K-3G-o\',1F:\'2s\'}],t:3E},{f:\'3K\',h:\'3D\',t:3B,1r:\'1s\',1t:k(a,1u,f){9 j.1w.1l(\'3A\')}},{f:\'3z\',h:\'3y\',t:3x},{f:\'3w\',h:\'3C\',t:6,1K:j.3L.3M.3N(\'Y-m-d\')},{f:\'N\',1q:\'1x\',h:\'43\',t:6,1r:\'1s\',1t:k(a,1u,f){9 j.1w.1l(\'¥{0}\',a.17(2))}},{f:\'E\',1q:\'1x\',h:\'3Z\',t:6,1r:\'1s\',1t:k(a,1u,f){9 j.1w.1l(\'¥{0}\',a.17(2))}},{f:\'1J\',h:\'3T\',t:1O,1K:\'2a\'},{f:\'1c\',h:\'3R\',t:1O},{f:\'3P\',h:\'3O\',t:3I},{f:\'18\',h:\'3Q\',3S:6,3U:1}]}}]}],3F:k(J){4 z=S;4 v=z.16();4 L=z.1y();4 2o=L.19.1C();4 g=z.4s();4 R={2d:{},y:1z,E:0,N:0,1o:0,U:\'H.C.1m.I\',1k:u.A.2j,1v:u.A.2r,1c:u.A.1b,2k:u.A.y,13:\'2p\'};1E(4 e=0;e<J.T;e++){4 Q=J[e];2o.3i(Q);R.Z=Q.Z;R.X=Q.X;R.U=Q.U}v.1e(\'5\',R);g.1D()},3j:{1D:k(){4 g=S;4 v=g.16();4 L=g.1y();4 D=L.19.1C().1I().B;4 W=0;4 1d=0;1E(4 e=0;e<D.T;e++){4 l=D[e].M;W+=1a(l.E);1d+=1a(l.N)}v.1e(\'5.N\',1a(1d.17(2)));v.1e(\'5.E\',1a(W.17(2)))},2a:k(O,2Z,l,39){q(O==="2h"){9"2f"}q(O==="2e"){9"2g"}q(O==="2m"){9"2l"}q(O==="2q"){9"2c"}9 O},2s:k(12,2I,2E,P,48,l){4 g=S;4 v=g.16();4 2i=v.M.5.y;q(2i!==1z){j.15("4a,4b");9}l.4c();g.1D()},2n:k(12){4 g=S;4 v=g.16();4 z=g.2U();4 L=g.1y();4 P=v.M.5;4 D=L.19.1C().1I().B;q(D.T<=0){j.15("3V,3W!");9}4 J=[];1E(4 e=0;e<D.T;e++){4 l=D[e].M;l.X=P.X;l.Z=P.Z;l.18=P.18;J.3X(l)}4 14={};14.3Y=P.U;14.42=J;12.1B(7);j.3H.3J({4x:\'/49/\'+z.21+\'/2C.2D\',2S:14,2L:k(1A){4 27=j.2N(1A.2P);j.15(\'2R!\');12.1B(b);z.2v(\'2w\',z,27.2Q)},3k:k(1A){j.15(\'3h!\');12.1B(b)}})}}});',62,284,'||||let|entity|100|true|xtype|return|value|false|nbsp||_2201101640340|dataIndex|_2201101640341|text|small|Ext|function|_2201101640342||big||responsiveCls|if|bind|readOnly|width|KiviiContext|_2201101640343|fieldLabel||Kvid|_2201101640344|CurrentMember|items|Finances|_2201101640345|Amount|allowBlank|name|Kivii|Settlement|_2201101640346|fa|_2201101640348|data|AmountPlan|_2201101640349|_2201101640347|_22011016403413|_22011016403411|this|length|BizType|Control|_22011016403412|PayerKvid||PayerName||App|_22011016403410|Currency|_22011016403414|toast|getViewModel|toFixed|Remark|details|parseFloat|FullName|OperatorName|_22011016403415|set|type|numberfield|hideTrigger|step|minValue|PayeeKvid|format|Entities|60|AmountPayment|iconCls|align|summaryType|sum|summaryRenderer|summaryData|PayeeName|String|right|getReferences|null|_22011016403417|setDisabled|getStore|_22011016403416|for|handler|defaults|overflowHandler|getData|Type|renderer|top|dock|toolbar|90|dockedItems|formatName|div|scrollable|title|MultiForm|get|Const|批量结算|windowSelector|editable||entityType|keyField|window|Customer|Selector|key|_22011016403422|amountChineseBig|valueField|_22011016403420|menu|快递费|Metadata|Report|合同费|报告费|Contract|_22011016403419|OrganizationKvid|OperatorKvid|服务费|Service|_22011016403421|_22011016403423|CNY|Express|OrganizationName|_22011016403418|categoryField|internalCode|fireEvent|entityCreated|金额大写|货币单位|操|textarea|人|Create|json|_22011016403424|collapsed|collapsible|结算项|_22011016403425|作|fieldset|success|注|decode|备|responseText|Results|结算成功|jsonData|已收款额|getView|总折后价|extend|System|EntityForm|_22011016403427||layout|responsivecolumn|states|600|large|newspaper|viewModel|formulas|_22011016403426|FinancesFunctionsMoneyToChineseBig|link|iconAlign|left|价|原|总|结算失败|add|controller|failure|收款单位|50|labelAlign|labelWidth|textfield|formIsValid|disabled|付款单位|grid|reference|store|OperateTime|120|所属部门|OwnerName|合计|170|操作日期|所属业务|80|setOwner|trash|Ajax|200|request|BizId|util|Format|dateRenderer|摘要|Summary|备注|操作人|minWidth|类型|flex|无结算项|无法新增|push|EntityType|结算金额||define|Items|原金额|移除|操作|require|displayfield|_22011016403428|Restful|已结算项目|无法移除|drop|groupHeaderTpl|groupingsummary|center|ftype|margin|features|autoLoad|groupField|rows|结算明细|fieldStyle|fontSize|20px|10000|columns|getController|menuDisabled|pageSize|sortable|rownumberer|url|actioncolumn|条'.split('|'),0,{}))
//Version:0.37 //Version:0.38
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('y.27(\'A.Q.g\');y.28(\'A.z.l.g.H.V\',{1z:\'1x.z.1u\',b:\'A.z.l.g.H.V\',q:\'l.g.p.H\',1a:j,16:{1l:\'1E\',1A:{5:1v,1s:0}},1r:\'1q\',w:\'x-o o-W\',1o:{M:{F:\'1p\',E:\'x-o o-W\',D:{},4:{1t:{},1F:1y,s:0,P:0,1B:\'1C\'}},1D:{11:C(O){d R=O(\'4.s\');1w 1n.Q.15(R)}}},17:[{b:\'18\',19:\'1b\',1c:\'1d\',S:[{1e:\'0 3 -10 3\',b:\'1f\',7:{f:\'<T 1g="1h:1i">1j:{D.1k}</T>\'},1m:{1G:\'25\'}},\'->\',{1I:\'29\',2a:\'I\',7:{13:\'{F}\',w:\'{E}\',2b:\'{!2c}\'}}]}],2d:{b:\'2e\',2f:2g,2h:\'2k\',9:\'8-2j 5-6\',},S:[{a:\'2s\',9:\'8-14 5-6\',h:c,7:\'{4.2l}\'},{b:\'L\',a:\'2m\',h:c,q:\'l.g.p.N\',9:\'8-i 5-6\',Z:\'2n\',v:c,7:{f:\'{4.2o}\'}},{a:\'2p\',9:\'8-i 5-6\',7:\'{4.2q}\'},{b:\'t\',a:\'2r\',u:j,U:0,9:\'8-20 5-6\',r:0.1,h:c,7:{f:\'{4.P}\'}},{b:\'t\',a:\'1H&2;&2;2i&2;26\',u:j,9:\'8-20 5-6\',r:0.1,h:c,7:{f:\'{4.s}\'}},{b:\'t\',a:\'1J&2;&2;&2;&2;&2;&2;&2;1K\',u:j,U:0,9:\'8-i 5-6\',r:0.1,h:c,7:{f:\'{4.1L}\'}},{b:\'L\',a:\'1M\',h:c,q:\'l.g.p.N\',9:\'8-i 5-6\',Z:\'X\',v:c,7:{f:\'{4.X}\'}},{9:\'8-14 5-6\',a:\'1N\',v:j,7:{f:\'{11}\'}},{a:\'1O&2;&2;&2;&2;&2;&2;&2;1P\',9:\'8-i 5-6\',7:\'{4.1Q}\'},{a:\'1R&2;&2;&2;&2;&2;&2;&2;1S\',9:\'8-i 5-6\',7:\'{4.1T}\'},{b:\'1U\',a:\'1V&2;&2;&2;&2;&2;&2;&2;1W\',9:\'8-6 5-6\',7:\'{4.1X}\'}],1Y:C(Y,12,n){d k=J;d e=k.K();d B={};y.1Z(B,Y);e.m(\'4\',B);e.m(\'D\',12);e.m(\'F\',n.13);e.m(\'E\',n.w)},21:{I:C(n){d G=J;d e=G.K();d k=G.22();k.23(\'24\',k,e.M.4);}}});',62,153,'||nbsp||entity|small|100|bind|big|responsiveCls|fieldLabel|xtype|false|let|_2112271547360|value|Finances|allowBlank|30|true|_2112271547361|Kivii|set|_2112271547362|fa|Entities|entityType|step|Amount|numberfield|hideTrigger|readOnly|iconCls||Ext|Control|App|_2112271547364|function|owner|ButtonIcon|ButtonText|_2112271547363|SettlementDetail|_2112271547365|this|getViewModel|categoryField|data|Settlement|get|AmountPlan|Const|_2112271547368|items|div|minValue|Form|linode|QuantityUnit|_2112271547367|internalCode||amountChineseBig|_2112271547366|text|40|FinancesFunctionsMoneyToChineseBig|layout|dockedItems|toolbar|dock|scrollable|top|overflowHandler|menu|margin|displayfield|style|color|red|所属业务|BizId|type|fieldStyle|KiviiContext|viewModel|添加|结算明细|title|large|Metadata|EntityForm|600|return|System|null|extend|states|Currency|CNY|formulas|responsivecolumn|Kvid|fontSize|折|iconAlign|数|量|Quantity|数量单位|金额大写|型|号|GoodsModel|规|格|GoodsSpecifications|textarea|备|注|Remark|setOwner|apply||controller|getView|fireEvent|entityAdd|20px|价|require|define|left|handler|disabled|formIsValid|defaults|textfield|labelWidth|60|labelAlign|后|50|right|GoodsFullName|条目类型|DetailType|Type|条目编号|GoodsId|条目原价|条目名称'.split('|'),0,{})) eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('y.27(\'A.Q.g\');y.28(\'A.z.l.g.H.V\',{1z:\'1x.z.1u\',b:\'A.z.l.g.H.V\',q:\'l.g.p.H\',1a:j,16:{1l:\'1E\',1A:{5:1v,1s:0}},1r:\'1q\',w:\'x-o o-W\',1o:{M:{F:\'1p\',E:\'x-o o-W\',D:{},4:{1t:{},1F:1y,s:0,P:0,1B:\'1C\'}},1D:{11:C(O){d R=O(\'4.s\');1w 1n.Q.15(R)}}},17:[{b:\'18\',19:\'1b\',1c:\'1d\',S:[{1e:\'0 3 -10 3\',b:\'1f\',7:{f:\'<T 1g="1h:1i">1j:{D.1k}</T>\'},1m:{1G:\'25\'}},\'->\',{1I:\'29\',2a:\'I\',7:{13:\'{F}\',w:\'{E}\',2b:\'{!2c}\'}}]}],2d:{b:\'2e\',2f:2g,2h:\'2k\',9:\'8-2j 5-6\',},S:[{a:\'2s\',9:\'8-14 5-6\',h:c,7:\'{4.2l}\'},{b:\'L\',a:\'2m\',h:c,q:\'l.g.p.N\',9:\'8-i 5-6\',Z:\'2n\',v:c,7:{f:\'{4.2o}\'}},{a:\'2p\',9:\'8-i 5-6\',7:\'{4.2q}\'},{b:\'t\',a:\'2r\',u:j,U:0,9:\'8-20 5-6\',r:0.1,h:c,7:{f:\'{4.P}\'}},{b:\'t\',a:\'1H&2;&2;2i&2;26\',u:j,9:\'8-20 5-6\',r:0.1,h:c,7:{f:\'{4.s}\'}},{b:\'t\',a:\'1J&2;&2;&2;&2;&2;&2;&2;1K\',u:j,U:0,9:\'8-i 5-6\',r:0.1,h:c,7:{f:\'{4.1L}\'}},{b:\'L\',a:\'1M\',h:c,q:\'l.g.p.N\',9:\'8-i 5-6\',Z:\'X\',v:c,7:{f:\'{4.X}\'}},{9:\'8-14 5-6\',a:\'1N\',v:j,7:{f:\'{11}\'}},{a:\'1O&2;&2;&2;&2;&2;&2;&2;1P\',9:\'8-i 5-6\',7:\'{4.1Q}\'},{a:\'1R&2;&2;&2;&2;&2;&2;&2;1S\',9:\'8-i 5-6\',7:\'{4.1T}\'},{b:\'1U\',a:\'1V&2;&2;&2;&2;&2;&2;&2;1W\',9:\'8-6 5-6\',7:\'{4.1X}\'}],1Y:C(Y,12,n){d k=J;d e=k.K();d B={};y.1Z(B,Y);e.m(\'4\',B);e.m(\'D\',12);e.m(\'F\',n.13);e.m(\'E\',n.w)},21:{I:C(n){d G=J;d e=G.K();d k=G.22();k.23(\'24\',k,e.M.4);}}});',62,153,'||nbsp||entity|small|100|bind|big|responsiveCls|fieldLabel|xtype|false|let|_2201101641440|value|Finances|allowBlank|30|true|_2201101641441|Kivii|set|_2201101641442|fa|Entities|entityType|step|Amount|numberfield|hideTrigger|readOnly|iconCls||Ext|Control|App|_2201101641444|function|owner|ButtonIcon|ButtonText|_2201101641443|SettlementDetail|_2201101641445|this|getViewModel|categoryField|data|Settlement|get|AmountPlan|Const|_2201101641448|items|div|minValue|Form|linode|QuantityUnit|_2201101641447|internalCode||amountChineseBig|_2201101641446|text|40|FinancesFunctionsMoneyToChineseBig|layout|dockedItems|toolbar|dock|scrollable|top|overflowHandler|menu|margin|displayfield|style|color|red|所属业务|BizId|type|fieldStyle|KiviiContext|viewModel|添加|结算明细|title|large|Metadata|EntityForm|600|return|System|null|extend|states|Currency|CNY|formulas|responsivecolumn|Kvid|fontSize|折|iconAlign|数|量|Quantity|数量单位|金额大写|型|号|GoodsModel|规|格|GoodsSpecifications|textarea|备|注|Remark|setOwner|apply||controller|getView|fireEvent|entityAdd|20px|价|require|define|left|handler|disabled|formIsValid|defaults|textfield|labelWidth|60|labelAlign|后|50|right|GoodsFullName|条目类型|DetailType|Type|条目编号|GoodsId|条目原价|条目名称'.split('|'),0,{}))
//Version:0.12 //Version:0.13
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('s.1A(\'t.2b.c\');s.1a(\'t.u.o.c.U.l.W\',{19:\'18.u.17\',15:\'o.c.R.l\',r:\'t.u.o.c.U.l.W\',13:\'/11/o.c.R.l/1t.1s\',1r:{},1q:e,1y:{1p:b},1m:[{r:\'1k\',1j:\'E\',z:1,1e:1g,g:\'A,C\',1z:\'1i\'}],1l:[{r:\'1n\'},{9:\'1u\',7:\'A\',n:b,a:p},{9:\'1v\',7:\'w\',f:e,n:b,a:G,D:\'V\'},{9:\'1w\',7:\'C\',a:p},{9:\'1x\',7:\'1f\',n:b,a:p},{9:\'1o\',7:\'1d\',Z:\'10\',f:e,a:B,1c:\'12\',14:k(L,16,7){5 s.1b.1h(\'{0}\',L.1M(2))}},{9:\'23\',7:\'24\',f:e,n:b,a:G,D:\'T\'},{9:\'25\',7:\'26\',f:b,a:27},{9:\'28\',7:\'29\',f:e,2a:B,z:1}],2d:k(m){8 6=2o;8 K=6.2e();8 i=K.E;i.I(m.2f);8 h={};h.2g=i.g;h.2h=i.y();8 v=6.2i(\'2j[g]\');2k(8 J 2l v){d=v[J];4(d===6)x;4(!d.g)x;3=d.y();h[d.g]=3}6.2m(h);8 j=\'Y\';8 q=F.H.2n;4(m.w==="21"){j=\'X,P\';q=F.H.2c;20 6.1B;i.I(\'\')}4(m.w==="O")j=\'O\';6.1C({1D:j,1E:q});6.S&&6.S()},1F:{T:k(3,Q,M,N){4(3===\'1G\'){5\'1H\'}4(3===\'1I\'){5\'1J\'}4(3===\'1K\'){5\'1L\'}5 3},V:k(3,Q,M,N){4(3===\'X\'){5\'1N\'}4(3===\'P\'){5\'1Y\'}4(3===\'1O\'){5\'1P\'}4(3===\'Y\'){5\'1Q\'}4(3===\'1R\'){5\'1S\'}4(3===\'1T\'){5\'1U\'}4(3===\'1V\'){5\'1W\'}4(3===\'1X\'){5\'1Z\'}4(3===\'2p\'){5\'22\'}5 3}}});',62,150,'|||_2112161731560|if|return|_2112161731561|dataIndex|let|text|width|true|Finances|_2112161731564|false|resizable|queryField|_2112161731563|_2112161731562|_2112161731565|function|Account|_2112161731566|sortable|Kivii|120|_2112161731567|xtype|Ext|App|Control|_2112161731568|Type|continue|getRawValue|flex|Name|100|SerialNumber|renderer|searchfield|KiviiContext|90|CurrentMember|setValue|_21121617315614|_21121617315615|value|_21121617315610|_2112161731569|Refund|Pos|_21121617315611|Entities|reload|_21121617315613|Transfer|_21121617315612|Selector|Cash|Deposit|align|right|Restful|sum|dataSource|summaryRenderer|entityType|summaryData|EntitySelector|System|extend|define|String|summaryType|Amount|labelWidth|OwnerName|60|format|模糊搜索|reference|searchField|columns|tbar|rownumberer|账户余额|autoLoad|selModel|filter|json|QueryEx|账号名称|账户类型|账号|账号所属|store|emptyText|require|searchFilter|setFilter|TypeIn|OwnerKvid|controller|CNY|人民币|USD|美元|EUR|欧元|toFixed|现金账户|Bank|银行账户|存款账户|Coupon|优惠券|StoredCard|储值卡|Biz|业务账户|Balance|刷卡账户|系统平衡|delete|UnBiz|折扣账户|币种单位|Currency|摘要|Summary|150|备注|Remark|minWidth|Const|Kvid|setOwner|getReferences|PayerName|QueryKeys|QueryValues|query|field|for|in|setSearchFilter|OrganizationKvid|this|Discount'.split('|'),0,{})) eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('r.28(\'p.25.i\');r.19(\'p.u.n.i.I.m.J\',{1a:\'1b.u.1c\',1d:\'n.i.N.m\',s:\'p.u.n.i.I.m.J\',1e:\'/1f/n.i.N.m/1g.1h\',1i:{},1k:f,1v:{1l:b},1m:[{s:\'1n\',1o:\'w\',A:1,1p:17,h:\'x,V\',1q:\'1r\'}],1s:[{s:\'1t\'},{8:\'1u\',6:\'x\',o:b,9:v},{8:\'18\',6:\'t\',e:f,o:b,9:K,L:\'T\'},{8:\'1j\',6:\'V\',9:v},{8:\'14\',6:\'13\',o:b,9:v},{8:\'16\',6:\'W\',10:\'Z\',e:f,9:C,Y:\'X\',11:l(B,12,6){5 r.15.1w(\'{0}\',B.1y(2))}},{8:\'1Y\',6:\'1Z\',e:f,o:b,9:K,L:\'G\'},{8:\'20\',6:\'21\',e:b,9:22},{8:\'23\',6:\'24\',e:f,1x:C,A:1}],26:l(k){a 7=1X;a U=7.2j();a c=U.w;c.y(k.29);a g={};g.2a=c.h;g.2b=c.E();a q=7.2c(\'2d[h]\');2e(a D 2f q){d=q[D];4(d===7)z;4(!d.h)z;3=d.E();g[d.h]=3}7.2g(g);a j=\'M\';4(k.t==="2h"){j=\'O,Q\';2i 7.27;c.y(\'\')}4(k.t==="F")j=\'F\';7.1W({1V:j,});7.H&&7.H()},1U:{G:l(3,S,R,P){4(3===\'1z\'){5\'1A\'}4(3===\'1B\'){5\'1C\'}4(3===\'1D\'){5\'1E\'}5 3},T:l(3,S,R,P){4(3===\'O\'){5\'1F\'}4(3===\'Q\'){5\'1G\'}4(3===\'1H\'){5\'1I\'}4(3===\'M\'){5\'1J\'}4(3===\'1K\'){5\'1L\'}4(3===\'1M\'){5\'1N\'}4(3===\'1O\'){5\'1P\'}4(3===\'1Q\'){5\'1R\'}4(3===\'1S\'){5\'1T\'}5 3}}});',62,144,'|||_2201101007460|if|return|dataIndex|_2201101007461|text|width|let|true|_2201101007462|_2201101007464|resizable|false|_2201101007463|queryField|Finances|_2201101007465|_2201101007466|function|Account|Kivii|sortable|App|_2201101007467|Ext|xtype|Type|Control|120|searchfield|Name|setValue|continue|flex|value|100|_22011010074613|getRawValue|Refund|_22011010074612|reload|Transfer|Selector|90|renderer|Deposit|Entities|Cash|_2201101007468|Pos|_2201101007469|_22011010074610|_22011010074611|_22011010074614|SerialNumber|Amount|sum|summaryType|right|align|summaryRenderer|summaryData|OwnerName|账号所属|String|账户余额|60|账户类型|define|extend|System|EntitySelector|entityType|dataSource|Restful|QueryEx|json|filter|账号|selModel|autoLoad|tbar|searchField|reference|labelWidth|emptyText|模糊搜索|columns|rownumberer|账号名称|store|format|minWidth|toFixed|CNY|人民币|USD|美元|EUR|欧元|现金账户|刷卡账户|Bank|银行账户|存款账户|Coupon|优惠券|StoredCard|储值卡|Biz|业务账户|Balance|系统平衡|Discount|折扣账户|controller|TypeIn|setFilter|this|币种单位|Currency|摘要|Summary|150|备注|Remark|Const|setOwner|searchFilter|require|PayerName|QueryKeys|QueryValues|query|field|for|in|setSearchFilter|UnBiz|delete|getReferences'.split('|'),0,{}))
//Version:0.13 //Version:0.14
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('d.39(\'n.Y.k\');d.2T(\'n.12.p.k.B.r\',{1G:\'1F.T.1E\',1D:\'p.k.1C.B\',f:\'n.12.p.k.B.r\',11:\'1B\',j:\'x-9 9-1A\',1z:{},1y:{v:{s:15,1x:15}},y:{q:\'{s}\'},1w:{1v:7,1u:1t},1s:[{1H:\'1I\'}],1J:[{f:\'1K\',N:\'20\',1Z:\'1Y\',m:[{f:\'1q\',O:1,U:R,1W:\'X,1V,13\',1U:\'21、1T\'},{5:\'1R\',j:\'x-9 9-1Q\',z:\'A\',u:\'1P\'},{5:\'1O\',j:\'x-9 9-16-5-o\',z:\'A\',u:\'I\',y:{1N:\'{!s}\'}}]},{f:\'1M\',N:\'1L\',1r:7,m:[{f:\'1S\',U:R,j:\'x-9 9-1a-19-o\',y:{5:\'1e{K}1f,1d\',1i:\'{K==0}\'},u:\'F\'}]}],1j:7,1k:{1c:{1h:7,h:b},m:[{f:\'1n\',w:\'1m\',c:b},{5:\'1l\',8:\'X\',h:7,a:S},{5:\'1g\',8:\'1o\',a:S},{5:\'1b\',8:\'13\',h:7,a:17},{5:\'18\',8:\'1X\',w:\'10\',c:b,a:22,2k:\'24\',2F:i(Z,2G,8){3 d.2H.2I(\'{0}\',Z.2J(2))}},{5:\'2K\',8:\'2L\',w:\'10\',c:b,t:2M.Y.2N,a:Q},{5:\'2O\',8:\'2P\',c:b,h:7,a:G,t:\'M\'},{5:\'2Q\',8:\'2U\',c:b,h:7,a:G,t:\'E\'},{5:\'2S\',8:\'23\',c:7,a:32},{5:\'2V\',8:\'37\',c:b,36:Q,O:1}]},35:{F:i(){P.D().34()},M:i(4,H,J,L){6(4===\'38\'){3\'33\'}6(4===\'31\'){3\'30\'}6(4===\'2Z\'){3\'2Y\'}3 4},E:i(4,H,J,L){6(4===\'2X\'){3\'2W\'}6(4===\'2E\'){3\'2R\'}6(4===\'2C\'){3\'2D\'}6(4===\'2i\'){3\'2h\'}6(4===\'2g\'){3\'2f\'}6(4===\'2e\'){3\'2d\'}6(4===\'2j\'){3\'2c\'}6(4===\'2a\'){3\'29\'}6(4===\'28\'){3\'27\'}3 4},I:i(14){g C=P;g l=C.D();g 26=C.25();6(!l.q){d.2b(\'2l\');3}g e=d.W(\'n.T.p.k.2t.r\');g V=d.W(\'d.2m.2A\',{2z:\'2y\',11:14.5,2x:7,j:\'x-9 9-16-5-o\',z:\'A\',a:2w,2v:2B,2u:7,c:b,m:[e]});e.2s(l.q.v);V.2r();e.2q();e.2p({2o:l.q.v.2n});e.1p()}}});',62,196,'|||return|_2112211541000|text|if|true|dataIndex|fa|width|false|resizable|Ext|_2112211541001|xtype|let|sortable|function|iconCls|Finances|_2112211541002|items|App||Kivii|selection|List|_2112211541004|renderer|handler|data|align||bind|iconAlign|left|Account|_2112211541003|getView|_21122115410011|_21122115410013|90|_21122115410010|_2112211541007|_2112211541009|selectionCount|_2112211541008|_21122115410012|dock|flex|this|100|60|240|Control|labelWidth|_2112211541005|create|Name|Const|value|right|title|View|OwnerName|_2112211541006|null|file|200|账户余额|square|check|账号所属|defaults|点击清除|已选择|条记录|账号|menuDisabled|hidden|columnLines|columns|账号名称|center|rownumberer|SerialNumber|reload|searchField|displayInfo|features|50|pageSize|autoLoad|store|lastOwnerKvid|viewModel|filter|users|账户管理|Entities|entityType|EntityList|System|extend|ftype|summary|dockedItems|toolbar|bottom|pagingtoolbar|disabled|明细|_21122115410015|user|开户|button|账户名称|emptyText|FullName|queryField|Amount|menu|overflowHandler|top|模糊搜索所属单位|120|Summary|sum|getViewModel|_21122115410014|折扣账户|Discount|系统平衡|Balance|toast|业务账户|储值卡|StoredCard|优惠券|Coupon|存款账户|Deposit|Biz|summaryType|请先选择账户|window|Kvid|AccountKvid|setFilter|clear|show|setOwner|AccountDetail|modal|height|1200|autoScroll|fit|layout|Window|700|Bank|银行账户|Pos|summaryRenderer|summaryData|String|format|toFixed|授信额度|CreditLine|KiviiContext|FinancesFunctionsMoneyToFmoney|币种单位|Currency|账户类型|刷卡账户|摘要|define|Type|备注|现金账户|Cash|欧元|EUR|美元|USD|150|人民币|clearSelections|controller|minWidth|Remark|CNY|require'.split('|'),0,{})) eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('d.36(\'l.11.g\');d.2Q(\'l.U.k.g.z.s\',{1G:\'1F.15.1E\',1D:\'k.g.1C.z\',f:\'l.U.k.g.z.s\',Z:\'1B\',n:\'x-c c-1A\',1z:{},1y:{w:{r:W,1x:W}},v:{q:\'{r}\'},1w:{1v:7,1u:1t},1s:[{1H:\'1J\'}],20:[{f:\'1K\',I:\'1Z\',1Y:\'1X\',p:[{f:\'1q\',H:1,L:Q,1V:\'13,1U,Y\',1T:\'1S、1R\'},{5:\'1Q\',n:\'x-c c-A-5-o\',10:\'12\',F:\'T\',v:{1P:\'{!r}\'}}]},{f:\'1O\',I:\'1N\',1M:7,p:[{f:\'1L\',L:Q,n:\'x-c c-1r-1I-o\',v:{5:\'1d{R}19,1a\',1b:\'{R==0}\'},F:\'J\'}]}],1e:7,1f:{1g:{1h:7,h:a},p:[{f:\'1n\',y:\'1m\',b:a},{5:\'1c\',8:\'13\',h:7,9:14},{5:\'17\',8:\'18\',9:14},{5:\'1k\',8:\'Y\',h:7,9:1l},{5:\'1j\',8:\'1i\',y:\'D\',b:a,9:1o,1W:\'21\',2r:j(E,23,8){3 d.2D.2E(\'{0}\',E.2F(2))}},{5:\'2G\',8:\'2H\',y:\'D\',b:a,t:2I.11.2J,9:G},{5:\'2K\',8:\'2L\',b:a,h:7,9:S,t:\'K\'},{5:\'2M\',8:\'2N\',b:a,h:7,9:S,t:\'P\'},{5:\'2O\',8:\'2R\',b:7,9:22},{5:\'2Z\',8:\'2S\',b:a,34:G,H:1}]},33:{J:j(){C.B().32()},K:j(4,O,N,M){6(4===\'31\'){3\'35\'}6(4===\'30\'){3\'2Y\'}6(4===\'2X\'){3\'2W\'}3 4},P:j(4,O,N,M){6(4===\'2V\'){3\'2U\'}6(4===\'2T\'){3\'2C\'}6(4===\'2P\'){3\'2A\'}6(4===\'2B\'){3\'24\'}6(4===\'25\'){3\'26\'}6(4===\'27\'){3\'28\'}6(4===\'29\'){3\'2a\'}6(4===\'2b\'){3\'2c\'}6(4===\'2d\'){3\'2e\'}3 4},T:j(X){i u=C;i m=u.B();i 2f=u.2g();6(!m.q){d.2h(\'2i\');3}i e=d.16(\'l.15.k.g.2j.s\');i V=d.16(\'d.2k.2y\',{2x:\'2w\',Z:X.5,2v:7,n:\'x-c c-A-5-o\',10:\'12\',9:2u,2t:2z,2s:7,b:a,p:[e]});e.2q(m.q.w);V.2p();e.2o();e.2n({2m:m.q.w.2l});e.1p()}}});',62,193,'|||return|_2201101541260|text|if|true|dataIndex|width|false|resizable|fa|Ext|_2201101541261|xtype|Finances|sortable|let|function|Kivii|App|_2201101541262|iconCls||items|selection|_2201101541264|List|renderer|_2201101541263|bind|data||align|Account|file|getView|this|right|value|handler|100|flex|dock|_22011015412613|_22011015412612|labelWidth|_2201101541268|_2201101541269|_22011015412610|_22011015412611|60|selectionCount|90|_2201101541267|View|_2201101541265|null|_2201101541266|OwnerName|title|iconAlign|Const|left|Name|240|Control|create|账号|SerialNumber|条记录|点击清除|hidden|账号名称|已选择|columnLines|columns|defaults|menuDisabled|Amount|账户余额|账号所属|200|center|rownumberer|120|reload|searchField|check|features|50|pageSize|autoLoad|store|lastOwnerKvid|viewModel|filter|users|账户管理|Entities|entityType|EntityList|System|extend|ftype|square|summary|toolbar|button|displayInfo|bottom|pagingtoolbar|disabled|明细|账户名称|模糊搜索所属单位|emptyText|FullName|queryField|summaryType|menu|overflowHandler|top|dockedItems|sum|150|summaryData|存款账户|Coupon|优惠券|StoredCard|储值卡|Biz|业务账户|Balance|系统平衡|Discount|折扣账户|_22011015412614|getViewModel|toast|请先选择账户|AccountDetail|window|Kvid|AccountKvid|setFilter|clear|show|setOwner|summaryRenderer|modal|height|1200|autoScroll|fit|layout|Window|700|银行账户|Deposit|刷卡账户|String|format|toFixed|授信额度|CreditLine|KiviiContext|FinancesFunctionsMoneyToFmoney|币种单位|Currency|账户类型|Type|摘要|Bank|define|Summary|Remark|Pos|现金账户|Cash|欧元|EUR|美元|备注|USD|CNY|clearSelections|controller|minWidth|人民币|require'.split('|'),0,{}))
//Version:0.25
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('j.3Q(\'K.1Y.w.C.z.1M.J.1H\',{2X:\'1F.L.2r\',f:\'K.1Y.w.C.z.1M.J.1H\',1p:\'/1z/17.15.G.1X/1y.1x\',2B:[\'1F.L.2l\'],1d:\'2m\',l:\'x-u u-2n-3-o\',2o:{k:{V:s},2p:{1S:p(1V){4 12=1V(\'N\');n(12===s)D\'14\';n(12.M>1)D\'2s\';D\'14\'}}},W:{18:\'{V}\'},2t:{2u:\'2v\',2w:7,2x:A,2y:\'y\'},2A:{2P:7,2j:2C},2D:[{f:\'2E\',1h:\'2F\',2G:7,E:[{f:\'2H\',2I:2J,l:\'x-u u-2K-2L-o\',W:{3:\'2M{1m}2N,2O\',2k:\'{1m==0}\'},1g:\'1q\'}]},{f:\'2z\',1h:\'23\',24:\'25\',E:[{f:\'26\',1p:\'/1z/17.15.G.29/1y.1x\',2b:\'1J\',2c:\'2d\',5:2i,2e:A,2g:{27:\'1O\'}},\'->\',{3:\'14\',l:\'x-u u-22\',1g:\'1I\',W:{3:\'{1S}\',28:\'{!V}\'}}]}],2f:{2a:{2h:7,2q:A},E:[{8:\'2Q\',3:\'2T\',5:2S},{8:\'X\',3:\'3F\',5:Q},{8:\'1t\',3:\'3E\',5:3D},{8:\'3C\',3:\'3B\',5:Q},{8:\'3A\',3:\'3G\',5:v},{8:\'3z\',3:\'3x\',5:v},{8:\'B\',3:\'3w\',5:Q},{8:\'3v\',3:\'3u\',5:Q},{8:\'3t\',3:\'3I\',5:3y},{8:\'1C\',3:\'3H\',5:3J},{8:\'3U\',3:\'3T\',5:v},{f:\'Z\',3:\'3S\',S:\'Y-m-d\',8:\'3R\',5:v},{f:\'Z\',3:\'3P\',S:\'Y-m-d\',8:\'3O\',5:v},{f:\'Z\',3:\'3N\',S:\'Y-m-d\',8:\'3M\',5:v},{8:\'1T\',3:\'3L\',3K:1}]},3r:{1q:p(){T.U().3s()},1a:p(9,1l=7){4 6={1o:{},I:s,3p:s,11:\'\',10:0,13:0,3g:0,1k:\'J\',3q:q.r.2U,2V:q.r.2W,2R:2Y 2Z(),30:q.r.31,32:q.r.33,34:q.r.35,36:q.r.I,1f:\'1s\',1P:[]};6.I=s;6.10=h(h(9.B).F(2));6.13=h(h(9.B).F(2));6.21=\'w.C.G.z\';6.11=9.X;6.37=9.1t;6.38=9.1C;1c(4 R 39 9){n(R===\'I\')3n;6.1o[R]=9[R]}n(1l){4 a={};a.1k="J";a.3m=1;a.3l="3k";a.1f=\'1s\';a.10=h(h(9.B).F(2));a.13=h(h(9.B).F(2));a.11=9.X;a.21=\'17.15.G.1X\';a.3j=9.1T;a.3i=\'3o\';6.1P.19(a)}D 6},1O:p(g,1K,3h){4 i=T;4 b=i.U();n(b.1L===s)b.3f({});b.1L.3e=1K.k.1J;b.16()},1I:p(g){4 i=T;4 b=i.U();4 O=i.3d();n(!b.18)D;n(O.k.N.M===1){4 1G=b.18.k;4 6=i.1a(1G,7);4 e=j.P(\'K.L.w.C.z.3c\',{1Z:A});4 t=j.P(\'j.1W.1U\',{1E:\'1N\',1d:g.3,l:g.l,1i:\'1n\',1B:7,5:1v,1w:1R,1j:7,1u:7,1e:7,E:[e]});t.1A();e.1r(6);e.1D(\'20\',p(g,9){t.1Q();b.16()})}3b{4 H=[];1c(4 c=0;c<O.k.N.M;c++){H.19(O.k.N[c].k)}4 1b=[];1c(4 c=0;c<H.M;c++){4 6=i.1a(H[c],7);1b.19(6)}4 e=j.P(\'K.L.w.C.z.3a\',{1Z:A});4 t=j.P(\'j.1W.1U\',{1E:\'1N\',1d:g.3,l:g.l,1i:\'1n\',1B:7,5:1v,1w:1R,1j:7,1u:7,1e:7,E:[e]});t.1A();e.1r(1b);e.1D(\'20\',p(g,9){t.1Q();b.16()})}}}});',62,243,'|||text|let|width|_2201101649500|true|dataIndex|_2201101649501|_2201101649502|_2201101649503|_2201101649506||_2201101649505|xtype|_2201101649504|parseFloat|_2201101649507|Ext|data|iconCls||if||function|KiviiContext|CurrentMember|null|_2201101649508|fa|120|Kivii|||Settlement|false|AGAMOUNT|Finances|return|items|toFixed|Entities|_2201101649509|Kvid|Contract|App|Control|length|selections|_22011016495010|create|100|key|format|this|getView|_22011016495012|bind|ACCORDNO||datecolumn|Amount|BizId|_22011016495014|AmountPlan|结算|Connects|reload|Njzj|selection|push|_22011016495011|_22011016495013|for|title|resizable|Currency|handler|dock|iconAlign|modal|Type|_22011016495019|selectionCount|left|Metadata|dataSource|_22011016495020|setOwner|CNY|COMPNAME|maximizable|1300|height|json|Query|Restful|show|autoScroll|PROJECTNAME|on|layout|System|_22011016495015|List|_22011016495016|DEPT|_22011016495017|filter|Biz|fit|_22011016495018|Details|close|720|settlementButtonText|TESTNOPRICETYPE|Window|get|window|NjzjContract|View|header|entityCreated|BizType|link|top|overflowHandler|menu|comboSelector|select|disabled|NjzjDepartment|defaults|keyField|valueField|DEPTNAME|editable|columns|listeners|menuDisabled|350|pageSize|hidden|ComboSelector|未结算合同|file|viewModel|formulas|sortable|EntityList|批量结算|selModel|selType|checkboxmodel|checkboxSelect|pruneRemoved|extensible|toolbar|store|requires|400|dockedItems|pagingtoolbar|bottom|displayInfo|button|labelWidth|60|check|square|已选择|条记录|点击清除|autoLoad|RN|OperateTime|50|序号|DepartmentName|OwnerKvid|DepartmentKvid|extend|new|Date|PayeeKvid|OrganizationKvid|PayeeName|OrganizationName|OperatorName|FullName|OperatorKvid|PayerName|Summary|in|MultiForm|else|Form|getViewModel|Dept|setFilter|AmountPayment|_22011016495021|GoodsSpecifications|GoodsFullName|次|QuantityUnit|Quantity|continue|批量结算明细|OffsetKvid|OwnerName|controller|clearSelections|DIVISIONNAME|协议折扣|DISCOUNT|协议金额|协议类型|150|ACCORDTYPE|CONTACTPERSONPHONE|联系人|CONTACTPERSON|190|企业名称|协议编号|联系电话|合作项目|事业部名称|180|flex|价格类型|BEGINDATE|签订日期|ENDDATE|终止日期|define|SIGNDATE|生效日期|负责人|SIGNER'.split('|'),0,{}))
//Version:0.53
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('k.4N(\'1g.27.U.L.P.2a.1s.2c\',{3S:\'2P.1h.3b\',t:\'1g.27.U.L.P.2a.1s.2c\',1P:\'/1B/X.W.M.2O/1A.1C\',3q:[\'2P.1h.3z\'],1n:\'3D\',A:\'x-r r-3F-3e-o\',n:{10:5 6(5 6().F(),5 6().I(),1),17:5 6(5 6().F(),5 6().I(),5 6().V()+1),},38:{p:{1t:g},3a:{2b:e(2I){3 1F=2I(\'1k\');j(1F===g)z\'1v\';j(1F.C>1)z\'3d\';z\'1v\'}}},1u:{1G:\'{1t}\'},3c:{34:\'2Y\',3B:8,3u:q,3k:\'y\'},2d:{3v:8,3w:3x},3C:[{t:\'2V\',1Q:\'36\',s:8,S:[{t:\'33\',13:24,A:\'x-r r-32-2Z-o\',1u:{a:\'2S{1V}3E,3H\',3A:\'{1V==0}\'},18:\'1N\'}]},{t:\'3G\',1Q:\'3h\',3f:\'3i\',S:[{t:\'3j\',1P:\'/1B/X.W.M.3l/1A.1C\',3m:\'2E\',2f:\'3n\',i:3o,Z:q,11:{12:\'2C\'}},{t:\'1O\',1M:\'3p 3r\',2o:\'Y-m-d\',13:3s,15:\'2R\',N:5 6(5 6().F(),5 6().I(),1),Z:q,21:{22:{2m:2,2k:\'x-r r-2j\',18:\'2x\'}},11:{12:\'1o\'}},{t:\'1O\',1M:\'3y\',2o:\'Y-m-d\',13:30,15:\'2Q\',N:5 6(5 6().F(),5 6().I(),5 6().V()+1),Z:q,21:{22:{2m:2,2k:\'x-r r-2j\',18:\'2y\'}},11:{12:\'1o\'}},{t:\'3g\',3t:\'2T\',2U:\'s\',2f:\'l\',N:\'1w\',Z:q,2W:8,15:\'2X\',2d:{31:[\'s\',\'l\'],p:[{s:\'2i\',l:\'1w\'},{s:\'2h\',l:\'2g\'},{s:\'2l\',l:\'35\'},{s:\'1K\',l:\'1J\'},{s:\'37\',l:\'39\'}]},11:{12:\'2F\'}},{t:\'3Y\',1L:1,13:24,15:\'l\',2H:\'1w\',3J:\'4A\'},{a:\'1v\',A:\'x-r r-4z\',18:\'2p\',1u:{a:\'{2b}\',4y:\'{!1t}\'}}]}],4x:{4w:{4v:8,4u:q},S:[{u:\'4t\',a:\'4s\',i:4r},{u:\'2g\',a:\'2h\',i:1y},{u:\'1p\',a:\'2i\',i:4q},{u:\'1W\',a:\'4p\',i:4o},{u:\'4n\',a:\'2l\',i:2n},{u:\'1x\',a:\'4m\',i:2n},{u:\'T\',a:\'4B\',i:1y},{u:\'4D\',a:\'4P\',i:1y},{u:\'1J\',a:\'1K\',1L:1}]},4Q:{1N:e(){B.D().4M()},1m:e(9,1Y=q){3 7={1Z:{},19:g,4E:g,1a:\'\',1r:0,1q:0,4L:0,1X:\'1s\',4K:K.J.4J,4I:K.J.4H,4G:5 6(),4F:K.J.4l,4C:K.J.4j,40:K.J.4k,3X:K.J.19,1U:\'2q\',1D:[]};7.19=g;7.1r=v(v(9.T).16(2));7.1q=v(v(9.T).16(2));7.2M=\'U.L.M.P\';7.1a=9.1p;7.3W=9.1W;7.3V=9.1x;1d(3 1b 3U 9){j(1b===\'19\')3T;7.1Z[1b]=9[1b]}j(1Y){3 b={};b.1X="3R";b.3Q=1;b.3P="3O";b.1U=\'2q\';b.1r=v(v(9.T).16(2));b.1q=v(v(9.T).16(2));b.1a=9.1p;b.2M=\'X.W.M.2O\';b.3N=9.1x;b.3M=\'3L\';7.1D.1f(b)}z 7},1o:e(c,3K,2D){3 h=B;3 4=h.D();3 Q=h.2G();3 G=Q.2R.N;3 R=Q.2Q.N||5 6();j(G===g){k.2K("3Z!");z}j(G>R){k.2K("41!");z}2J 4.n.10;2J 4.n.17;4.n.10=5 6(G.F(),G.I(),G.V());4.n.17=5 6(R.F(),R.I(),R.V()+1);4.E()},2x:e(c){c.2z(g);3 14=B;3 4=14.D();j(4.n===g)4.2A({});4.n.10=g;4.E()},2y:e(c){c.2z(g);3 14=B;3 4=14.D();j(4.n===g)4.2A({});4.n.17=g;4.E()},2C:e(c,O,2D){3 h=B;3 4=h.D();4.n.42=O.p.2E;4.E()},2F:e(c,O){3 h=B;3 Q=h.2G();3 1l=Q.l;1l.2H=O.p.l;1l.4h(\'4g\'+O.p.s)},2p:e(c){3 h=B;3 4=h.D();3 1c=h.4e();j(!4.1G)z;j(1c.p.1k.C===1){3 2B=4.1G.p;3 7=h.1m(2B);3 w=k.1i(\'1g.1h.U.L.P.4c\',{2w:q});3 H=k.1i(\'k.2v.2L\',{2t:\'2s\',1n:c.a,A:c.A,2N:\'2r\',2u:8,i:1I,1S:1R,20:8,29:8,28:8,S:[w]});w.1T(\'26\',e(c,9){H.2e();4.E()});k.4b.4a({49:\'/1B/X.W.M.48/1A.1C\',47:q,46:{45:7.1a,43:8},3I:e(1H){3 1j=k.4O(1H.44);j(1j.1E.C>0){1d(3 f=0;f<1j.1E.C;f++){3 b=1j.1E[f];7.1D.1f(b)}}H.25();w.23(7)},4d:e(1H){}})}4f{3 1e=[];1d(3 f=0;f<1c.p.1k.C;f++){1e.1f(1c.p.1k[f].p)}3 1z=[];1d(3 f=0;f<1e.C;f++){3 7=h.1m(1e[f],8);1z.1f(7)}3 w=k.1i(\'1g.1h.U.L.P.4i\',{2w:q});3 H=k.1i(\'k.2v.2L\',{2t:\'2s\',1n:c.a,A:c.A,2N:\'2r\',2u:8,i:1I,1S:1R,20:8,29:8,28:8,S:[w]});H.25();w.23(1z);w.1T(\'26\',e(c,9){H.2e();4.E()})}}}});',62,301,'|||let|_2201101649480|new|Date|_2201101649481|true|_2201101649482|text|_2201101649484|_2201101649483||function|_2201101649485|null|_2201101649486|width|if|Ext|search||filter||data|false|fa|displayInfo|xtype|dataIndex|parseFloat|_2201101649487|||return|iconCls|this|length|getView|reload|getFullYear|_2201101649489|_2201101649488|getMonth|CurrentMember|KiviiContext|Finances|Entities|value|_22011016494811|Settlement|_22011016494812|_22011016494810|items|TOTALPRICE|Kivii|getDate|Connects|Njzj||editable|BeginTime|listeners|select|labelWidth|_22011016494814|reference|toFixed|EndTime|handler|Kvid|BizId|key|_22011016494815|for|_22011016494816|push|App|Control|create|_22011016494813|selections|_22011016494823|_22011016494821|title|_22011016494817|NAME|AmountPlan|Amount|Report|_22011016494819|bind|结算|PREORDNO|SAMPLENAME|100|_22011016494822|Query|Restful|json|Details|Results|_22011016494818|selection|_22011016494820|1300|TESTTASKNOFORCCC|协议编号|flex|fieldLabel|_22011016494831|datefield|dataSource|dock|720|height|on|Currency|selectionCount|COMPNAME|Type|_22011016494830|Metadata|modal|triggers|clear|setOwner|60|show|entityCreated|View|resizable|maximizable|Biz|settlementButtonText|List|store|close|valueField|FOLDERNO|委托单号|样品编号|times|cls|生产单位|weight|120|format|_22011016494832|CNY|left|fit|layout|autoScroll|window|header|_22011016494829|_22011016494828|setValue|setFilter|_22011016494827|_22011016494826|_22011016494825|DEPT|_22011016494824|getReferences|queryField|get|delete|toast|Window|BizType|iconAlign|NjzjReport|System|endTime|startTime|已选择|local|displayField|pagingtoolbar|filterPickList|searchType|checkboxmodel|square||fields|check|button|selType|STRPRODUCTIONORG|bottom|客户类别|viewModel|STRCLIENTTYPE|formulas|EntityList|selModel|批量结算|pdf|overflowHandler|combo|top|menu|comboSelector|extensible|NjzjDepartment|keyField|DEPTNAME|350|时间范围|requires|开始|90|queryMode|pruneRemoved|autoLoad|pageSize|400|结束|ComboSelector|hidden|checkboxSelect|dockedItems|未结算报告|条记录|file|toolbar|点击清除|success|emptyText|_22011016494833|批量结算明细|GoodsSpecifications|GoodsFullName|次|QuantityUnit|Quantity|ReportItem|extend|continue|in|Summary|PayerName|OperatorKvid|searchField|请选择开始时间|OperatorName|开始日期不能大于结束日期|Dept|IsSerial|responseText|ReportId|jsonData|async|NjzjReportItem|url|request|Ajax|Form|failure|getViewModel|else|模糊搜索|setEmptyText|MultiForm|OrganizationName|FullName|OrganizationKvid|样品名称|NAMEOFPRODUCTIONORG|150|委托单位|170|50|序号|RN|sortable|menuDisabled|defaults|columns|disabled|link|模糊搜索样品编号|应收费用|PayeeName|LOGDATE|OffsetKvid|PayeeKvid|OperateTime|DepartmentKvid|OwnerKvid|DepartmentName|OwnerName|AmountPayment|clearSelections|define|decode|收样日期|controller'.split('|'),0,{}))
...@@ -544,6 +544,7 @@ Ext.define('App.Control.Kivii.Finances.Bill.Form', { ...@@ -544,6 +544,7 @@ Ext.define('App.Control.Kivii.Finances.Bill.Form', {
}, },
_onDownloadBill:function(_ctrl){ _onDownloadBill:function(_ctrl){
let _controller = this; let _controller = this;
let _view = _controller.getView();
let _vm = _controller.getViewModel(); let _vm = _controller.getViewModel();
let _kvid=_vm.data.entity.Kvid; let _kvid=_vm.data.entity.Kvid;
let _name=_vm.data.entity.PayerName+"_("+Ext.Date.format(new Date(_vm.data.entity.OperateTime),'Y')+'年'+Ext.Date.format(new Date(_vm.data.entity.OperateTime),'m')+'月账单)'; let _name=_vm.data.entity.PayerName+"_("+Ext.Date.format(new Date(_vm.data.entity.OperateTime),'Y')+'年'+Ext.Date.format(new Date(_vm.data.entity.OperateTime),'m')+'月账单)';
...@@ -584,11 +585,11 @@ Ext.define('App.Control.Kivii.Finances.Bill.Form', { ...@@ -584,11 +585,11 @@ Ext.define('App.Control.Kivii.Finances.Bill.Form', {
_includeDetail.value = true; _includeDetail.value = true;
_form.appendChild(_includeDetail); _form.appendChild(_includeDetail);
let _view = document.createElement('input'); let _temp = document.createElement('input');
_view.type = 'hidden'; _temp.type = 'hidden';
_view.name = 'View'; _temp.name = 'View';
_view.value = _entity[0].Path; _temp.value = _entity[0].Path;
_form.appendChild(_view); _form.appendChild(_temp);
let _fileName = document.createElement('input'); let _fileName = document.createElement('input');
_fileName.type = 'hidden'; _fileName.type = 'hidden';
......
...@@ -46,6 +46,14 @@ Ext.define('App.Control.Kivii.Finances.InvoiceApply.Execute.Form', { ...@@ -46,6 +46,14 @@ Ext.define('App.Control.Kivii.Finances.InvoiceApply.Execute.Form', {
bind: { bind: {
disabled: '{!formIsValid}' disabled: '{!formIsValid}'
} }
}, {
text: '手动录入',
iconCls: 'x-fa fa-sign-in',
iconAlign: 'left',
handler: '_onSaveInvoices',
bind: {
disabled: '{!formIsValid}'
}
}] }]
}], }],
items:[{ items:[{
...@@ -609,39 +617,32 @@ Ext.define('App.Control.Kivii.Finances.InvoiceApply.Execute.Form', { ...@@ -609,39 +617,32 @@ Ext.define('App.Control.Kivii.Finances.InvoiceApply.Execute.Form', {
_store.add(item); _store.add(item);
}, },
controller: { controller: {
// _onSaveVAtEntity: function(_ctrl) { _onSaveInvoices: function(_ctrl) {
// let _controller = this; let _controller = this;
// let _view = _controller.getView(); let _view = _controller.getView();
// let _vm = _controller.getViewModel(); let _vm = _controller.getViewModel();
// let _store = _view.down('gridpanel').getStore().data; // let _store = _view.down('gridpanel').getStore().data;
// let _item = {}; let _item = _vm.data.entity;
// _item.entity = _vm.data.entity; let _issue = Ext.create('App.Control.Kivii.Finances.InvoiceApply.Invoice.Accept.Form');
// _item.detail = _store.items[0].data; let _win = Ext.create('Ext.window.Window', {
// let _issue = null; layout: 'fit',
// if (_item.entity.Amount > 100000) { title: _ctrl.text,
// _issue = Ext.create('App.Control.Kivii.Finances.Apply.ExecuteVat.List'); iconCls: _ctrl.iconCls,
// } else { iconAlign: 'left',
// _issue = Ext.create('App.Control.Kivii.Finances.Apply.ExecuteVat.Form'); autoScroll: true,
// } width: 580,
// let _win = Ext.create('Ext.window.Window', { height: 280,
// layout: 'fit', modal: true,
// title: _ctrl.text, resizable: false,
// iconCls: 'x-fa fa-money', items: [_issue]
// iconAlign: 'left', });
// autoScroll: true, _win.show();
// width: 580, _issue.setOwner(_item,_ctrl);
// height: 280, _issue.on('entityCreated', function(_ctrl, _entity) {
// modal: true, _win.close();
// resizable: false, _view.fireEvent('entityExecuted', _controller, _entity);
// items: [_issue] });
// }); },
// _win.show();
// _issue.setOwner(_item);
// _issue.on('entityCreated', function(_ctrl, _entity) {
// _win.close();
// _view.fireEvent('entityCreated', _controller, _entity);
// });
// },
_onSaveEntity: function() { _onSaveEntity: function() {
let _controller = this; let _controller = this;
let _view = _controller.getView(); let _view = _controller.getView();
......
...@@ -226,7 +226,22 @@ Ext.define('App.Control.Kivii.Finances.InvoiceApply.Form', { ...@@ -226,7 +226,22 @@ Ext.define('App.Control.Kivii.Finances.InvoiceApply.Form', {
value: '{entity.Amount}' value: '{entity.Amount}'
}, },
allowBlank: false allowBlank: false
}, { },{
// xtype: 'radiogroup',
// fieldLabel: '发票类型',
// cls: 'x-check-group-alt',
// allowBlank: false,
// responsiveCls: 'big-50 small-100',
// // layout: 'anchor',
// name: 'Type',
// items: [
// {boxLabel: '专票', inputValue: 'VATS'},
// {boxLabel: '普票', inputValue: 'VAT'}//, checked: true}
// ],
// bind: {
// value: '{entity.Type}'
// }
// }, {
xtype: 'categoryField', xtype: 'categoryField',
fieldLabel: '发票类型', fieldLabel: '发票类型',
allowBlank: false, allowBlank: false,
......
Ext.require('App.Const.Finances');
Ext.define('App.Control.Kivii.Finances.InvoiceApply.Invoice.Accept.Form', {
extend: 'System.Control.EntityForm',
xtype: 'App.Control.Kivii.Finances.InvoiceApply.Invoice.Accept.Form',
entityType: 'Kivii.Finances.Entities.InvoiceApply',
autoScroll: true,
layout: {
type: 'responsivecolumn',
states: {
small: 800,
large: 0
}
},
viewModel: {
data: {
ButtonText: '录入',
ButtonIcon: 'x-fa fa-sign-in',
entity: {
Amount: 0,
OperateTime: new Date()
}
},
formulas: {
amountChineseBig: function(get) {
let _amount = get('entity.Amount');
return KiviiContext.Const.FinancesFunctionsMoneyToChineseBig(_amount);
}
}
},
dockedItems: [{
xtype: 'toolbar',
dock: 'top',
items: ['->', {
iconAlign: 'left',
bind: {
text: '{ButtonText}',
iconCls: '{ButtonIcon}',
disabled: '{!formIsValid}'
},
handler: '_onSaveEntity'
}]
}],
defaults: {
// margin: '0 10 10 10',
labelWidth: 60,
labelAlign: 'right',
xtype: 'textfield'
},
items: [{
xtype: 'textfield',
responsiveCls: 'big-60 small-100',
fieldLabel: '发票号码',
allowBlank: false,
bind: {
value: '{entity.SerialNumber}'
}
}, {
xtype: 'textfield',
responsiveCls: 'big-40 small-100',
fieldLabel: '发票代码',
allowBlank: false,
bind: {
value: '{entity.SerialCode}'
}
}, {
xtype: 'datefield',
responsiveCls: 'big-60 small-100',
fieldLabel: '开票日期',
allowBlank: false,
bind: {
value: '{entity.OperateTime}'
}
}, {
xtype: 'categoryField',
fieldLabel: '发票类型',
allowBlank: false,
responsiveCls: 'big-40 small-100',
internalCode: 'Type',
readOnly: false,
bind: {
value: '{entity.Type}'
}
}, {
fieldLabel: '开票金额',
xtype: 'numberfield',
readOnly: true,
hideTrigger: true,
minValue: 0,
responsiveCls: 'big-100 small-100',
step: 0.1,
bind: '{entity.Amount}'
}, {
xtype: 'textfield',
responsiveCls: 'big-100 small-100',
readOnly: true,
fieldLabel: '金额大写',
bind: {
value: '{amountChineseBig}'
}
}],
setOwner: function(_item, _ctrl) {
let _view = this;
let _vm = _view.getViewModel();
_vm.set('ButtonText', _ctrl.text);
_vm.set('ButtonIcon', _ctrl.iconCls);
_vm.set("owner", _item);
let _entity = {};
_entity.Amount = _item.Amount;
_entity.OperateTime = new Date();
_vm.set('entity', _entity);
},
controller: {
_onSaveEntity: function(_ctrl) {
let _controller = this;
let _view = _controller.getView();
let _vm = _controller.getViewModel();
let _jsonData = {};
_jsonData.ApplyKvid = _vm.data.owner.Kvid;
_jsonData.Items = [];
_jsonData.Items.push(_vm.data.entity);
_view.mask('数据通讯中...');
Ext.Ajax.request({
url: '/Restful/Kivii.Finances.Entities.InvoiceApply/Result2.json',
jsonData: _jsonData,
success: function(_response) {
var _rtns = Ext.decode(_response.responseText);
_view.unmask();
Ext.toast('录入成功!');
_view.fireEvent('entityCreated', _controller, _rtns);
},
failure: function(_response) {
Ext.toast('录入失败!');
_view.unmask();
}
});
}
}
});
\ No newline at end of file
...@@ -3,12 +3,23 @@ ...@@ -3,12 +3,23 @@
// entityType:'Kivii.Customers.Entities.Customer', // entityType:'Kivii.Customers.Entities.Customer',
xtype: 'App.Control.Kivii.Finances.Settlement.Biz.Report.Selector', xtype: 'App.Control.Kivii.Finances.Settlement.Biz.Report.Selector',
dataSource: '/Restful/Njzj.Connects.Entities.NjzjReport/Query.json', dataSource: '/Restful/Njzj.Connects.Entities.NjzjReport/Query.json',
requires:['System.Control.ComboSelector'],
filter: {}, filter: {},
selModel: false, selModel: false,
store: { store: {
autoLoad: true autoLoad: true
}, },
tbar: [{ tbar: [{
xtype: 'comboSelector',
dataSource: '/Restful/Njzj.Connects.Entities.NjzjDepartment/Query.json',
keyField: 'DEPT',
valueField: 'DEPTNAME',
width:350,
editable: false,
listeners: {
select: '_selectDepart'
}
},{
xtype: 'datefield', xtype: 'datefield',
fieldLabel: '时间范围 开始', fieldLabel: '时间范围 开始',
format: 'Y-m-d', format: 'Y-m-d',
...@@ -63,7 +74,7 @@ ...@@ -63,7 +74,7 @@
}, { }, {
dataIndex: 'NAME', dataIndex: 'NAME',
text: 'Name', text: 'Name',
width: 120 width: 170
}, { }, {
dataIndex: 'FOLDERNO', dataIndex: 'FOLDERNO',
text: 'Folderno', text: 'Folderno',
...@@ -134,6 +145,12 @@ ...@@ -134,6 +145,12 @@
if (_view.filter === null) _view.setFilter({}); if (_view.filter === null) _view.setFilter({});
delete _view.filter.EndTime; delete _view.filter.EndTime;
_view.reload(); _view.reload();
},
_selectDepart: function(_ctrl, _record, _eOpts) {
let _controller = this;
let _view = _controller.getView();
_view.filter.Dept=_record.data.DEPT;
_view.reload();
} }
} }
}); });
\ No newline at end of file
...@@ -87,17 +87,17 @@ Ext.define('App.Control.Kivii.Finances.Transfer.Account.Selector', { ...@@ -87,17 +87,17 @@ Ext.define('App.Control.Kivii.Finances.Transfer.Account.Selector', {
} }
_view.setSearchFilter(_searchFilter); _view.setSearchFilter(_searchFilter);
let _type = 'Deposit'; let _type = 'Deposit';
let _ownerKvid = KiviiContext.CurrentMember.OrganizationKvid; // let _ownerKvid = KiviiContext.CurrentMember.OrganizationKvid;
if (_entity.Type === "UnBiz") { if (_entity.Type === "UnBiz") {
_type = 'Cash,Pos'; _type = 'Cash,Pos';
_ownerKvid = KiviiContext.CurrentMember.Kvid; // _ownerKvid = KiviiContext.CurrentMember.Kvid;
delete _view.searchFilter; delete _view.searchFilter;
_search.setValue(''); _search.setValue('');
} }
if (_entity.Type === "Refund") _type = 'Refund'; if (_entity.Type === "Refund") _type = 'Refund';
_view.setFilter({ _view.setFilter({
TypeIn: _type, TypeIn: _type,
OwnerKvid: _ownerKvid // OwnerKvid: _ownerKvid
}); });
_view.reload && _view.reload(); _view.reload && _view.reload();
}, },
......
...@@ -33,11 +33,11 @@ Ext.define('App.View.Kivii.Finances.Account.List', { ...@@ -33,11 +33,11 @@ Ext.define('App.View.Kivii.Finances.Account.List', {
labelWidth: 60, labelWidth: 60,
queryField: 'Name,FullName,OwnerName', queryField: 'Name,FullName,OwnerName',
emptyText: '模糊搜索所属单位、账户名称' emptyText: '模糊搜索所属单位、账户名称'
}, { // }, {
text: '开户', // text: '开户',
iconCls: 'x-fa fa-user', // iconCls: 'x-fa fa-user',
iconAlign: 'left', // iconAlign: 'left',
handler: '_onCreateEntity' // handler: '_onCreateEntity'
}, { }, {
text: '明细', text: '明细',
iconCls: 'x-fa fa-file-text-o', iconCls: 'x-fa fa-file-text-o',
......
...@@ -255,6 +255,9 @@ Ext.define('App.View.Kivii.Finances.Settlement.List', { ...@@ -255,6 +255,9 @@ Ext.define('App.View.Kivii.Finances.Settlement.List', {
this.getView().reload(); this.getView().reload();
}, },
_renderType: function(_value, _meta, _record, _rowIndex) { _renderType: function(_value, _meta, _record, _rowIndex) {
if (_value === "Contract") {
return "合同费";
}
if (_value === "Report") { if (_value === "Report") {
return "报告费"; return "报告费";
} }
......
...@@ -73,10 +73,20 @@ namespace Kivii.Finances ...@@ -73,10 +73,20 @@ namespace Kivii.Finances
/// </summary> /// </summary>
/// <param name="currency"></param> /// <param name="currency"></param>
/// <returns></returns> /// <returns></returns>
public static Account GetDiscountAccount(this CurrencyUnit currency) public static Account GetDiscountAccount(this CurrencyUnit currency, Guid? ownerKvid = null, string ownerName = null)
{ {
if (ownerKvid == null)
{
ownerKvid = KiviiContext.CurrentMember.DepartmentKvid;
ownerName = KiviiContext.CurrentMember.DepartmentName;
}
if(ownerKvid==Guid.Empty)
{
ownerKvid = KiviiContext.CurrentMember.DepartmentKvid;
ownerName = KiviiContext.CurrentMember.DepartmentName;
}
(currency == CurrencyUnit.Unsupported).ThrowIfTrue("不支持的货币单位,不能查询折扣账户"); (currency == CurrencyUnit.Unsupported).ThrowIfTrue("不支持的货币单位,不能查询折扣账户");
var key = KiviiContext.GetUrnKey($"{AccountType.Discount}{currency}{KiviiContext.CurrentMember.DepartmentKvid}"); var key = KiviiContext.GetUrnKey($"{AccountType.Discount}{currency}{ownerKvid}");
//如果包含这个币种,直接返回 //如果包含这个币种,直接返回
if (_discountAccounts.ContainsKey(key)) if (_discountAccounts.ContainsKey(key))
{ {
...@@ -89,7 +99,7 @@ namespace Kivii.Finances ...@@ -89,7 +99,7 @@ namespace Kivii.Finances
var bizAccounts = conn.Select<Account>(o => o.Type == AccountType.Discount); var bizAccounts = conn.Select<Account>(o => o.Type == AccountType.Discount);
foreach (var account in bizAccounts) foreach (var account in bizAccounts)
{ {
_discountAccounts[KiviiContext.GetUrnKey($"{AccountType.Discount}{account.Currency}{KiviiContext.CurrentMember.DepartmentKvid}")] = account; _discountAccounts[KiviiContext.GetUrnKey($"{AccountType.Discount}{account.Currency}{ownerKvid}")] = account;
} }
//如果从数据库中得到了,直接返回 //如果从数据库中得到了,直接返回
if (_discountAccounts.ContainsKey(key)) if (_discountAccounts.ContainsKey(key))
...@@ -102,8 +112,8 @@ namespace Kivii.Finances ...@@ -102,8 +112,8 @@ namespace Kivii.Finances
rtns.Kvid = bizKvid; rtns.Kvid = bizKvid;
rtns.Type = AccountType.Discount; rtns.Type = AccountType.Discount;
rtns.Currency = currency; rtns.Currency = currency;
rtns.OwnerKvid = KiviiContext.CurrentMember.DepartmentKvid; rtns.OwnerKvid = ownerKvid.Value;
rtns.OwnerName = KiviiContext.CurrentMember.DepartmentName; rtns.OwnerName = ownerName;
rtns.Name = $"折扣帐户({rtns.OwnerName})"; rtns.Name = $"折扣帐户({rtns.OwnerName})";
rtns.SerialNumber = ""; rtns.SerialNumber = "";
rtns.CreditLine = 10000000000; rtns.CreditLine = 10000000000;
...@@ -112,7 +122,7 @@ namespace Kivii.Finances ...@@ -112,7 +122,7 @@ namespace Kivii.Finances
rtns.Remark = ""; rtns.Remark = "";
if (conn.Insert(rtns) == 1) if (conn.Insert(rtns) == 1)
{ {
_discountAccounts[KiviiContext.GetUrnKey($"{AccountType.Discount}{rtns.Currency}{KiviiContext.CurrentMember.DepartmentKvid}")] = rtns; _discountAccounts[KiviiContext.GetUrnKey($"{AccountType.Discount}{rtns.Currency}{ownerKvid}")] = rtns;
return rtns; return rtns;
} }
throw new Exception("系统创建折扣帐户失败,请联系系统管理员。"); throw new Exception("系统创建折扣帐户失败,请联系系统管理员。");
...@@ -123,10 +133,20 @@ namespace Kivii.Finances ...@@ -123,10 +133,20 @@ namespace Kivii.Finances
/// </summary> /// </summary>
/// <param name="currency"></param> /// <param name="currency"></param>
/// <returns></returns> /// <returns></returns>
public static Account GetBizAccount(this CurrencyUnit currency) public static Account GetBizAccount(this CurrencyUnit currency,Guid? ownerKvid = null, string ownerName = null)
{ {
(currency == CurrencyUnit.Unsupported).ThrowIfTrue("不支持的货币单位,不能查询业务账户"); (currency == CurrencyUnit.Unsupported).ThrowIfTrue("不支持的货币单位,不能查询业务账户");
var key = KiviiContext.GetUrnKey($"{AccountType.Biz}{currency}{KiviiContext.CurrentMember.DepartmentKvid}"); if (ownerKvid == null)
{
ownerKvid = KiviiContext.CurrentMember.DepartmentKvid;
ownerName = KiviiContext.CurrentMember.DepartmentName;
}
if (ownerKvid == Guid.Empty)
{
ownerKvid = KiviiContext.CurrentMember.DepartmentKvid;
ownerName = KiviiContext.CurrentMember.DepartmentName;
}
var key = KiviiContext.GetUrnKey($"{AccountType.Biz}{currency}{ownerKvid}");
//如果包含这个币种,直接返回 //如果包含这个币种,直接返回
if (_bizAccounts.ContainsKey(key)) if (_bizAccounts.ContainsKey(key))
{ {
...@@ -139,7 +159,7 @@ namespace Kivii.Finances ...@@ -139,7 +159,7 @@ namespace Kivii.Finances
var bizAccounts = conn.Select<Account>(o => o.Type == AccountType.Biz); var bizAccounts = conn.Select<Account>(o => o.Type == AccountType.Biz);
foreach (var account in bizAccounts) foreach (var account in bizAccounts)
{ {
_bizAccounts[KiviiContext.GetUrnKey($"{AccountType.Biz}{account.Currency}{KiviiContext.CurrentMember.DepartmentKvid}")] = account; _bizAccounts[KiviiContext.GetUrnKey($"{AccountType.Biz}{account.Currency}{ownerKvid}")] = account;
} }
//如果从数据库中得到了,直接返回 //如果从数据库中得到了,直接返回
if (_bizAccounts.ContainsKey(key)) if (_bizAccounts.ContainsKey(key))
...@@ -152,8 +172,8 @@ namespace Kivii.Finances ...@@ -152,8 +172,8 @@ namespace Kivii.Finances
rtns.Kvid = bizKvid; rtns.Kvid = bizKvid;
rtns.Type = AccountType.Biz; rtns.Type = AccountType.Biz;
rtns.Currency = currency; rtns.Currency = currency;
rtns.OwnerKvid = KiviiContext.CurrentMember.DepartmentKvid; rtns.OwnerKvid = ownerKvid.Value;
rtns.OwnerName = KiviiContext.CurrentMember.DepartmentName; rtns.OwnerName = ownerName;
rtns.Name = $"业务帐户({rtns.OwnerName})"; rtns.Name = $"业务帐户({rtns.OwnerName})";
rtns.SerialNumber = ""; rtns.SerialNumber = "";
rtns.CreditLine = 0; rtns.CreditLine = 0;
...@@ -162,7 +182,7 @@ namespace Kivii.Finances ...@@ -162,7 +182,7 @@ namespace Kivii.Finances
rtns.Remark = ""; rtns.Remark = "";
if (conn.Insert(rtns) == 1) if (conn.Insert(rtns) == 1)
{ {
_bizAccounts[KiviiContext.GetUrnKey($"{AccountType.Biz}{rtns.Currency}{KiviiContext.CurrentMember.DepartmentKvid}")] = rtns; _bizAccounts[KiviiContext.GetUrnKey($"{AccountType.Biz}{rtns.Currency}{ownerKvid}")] = rtns;
return rtns; return rtns;
} }
throw new Exception("系统创建业务帐户失败,请联系系统管理员。"); throw new Exception("系统创建业务帐户失败,请联系系统管理员。");
...@@ -173,11 +193,21 @@ namespace Kivii.Finances ...@@ -173,11 +193,21 @@ namespace Kivii.Finances
/// </summary> /// </summary>
/// <param name="payment"></param> /// <param name="payment"></param>
/// <returns></returns> /// <returns></returns>
public static Account GetPersonalAccount(this CurrencyUnit currency, AccountType accountType) public static Account GetPersonalAccount(this CurrencyUnit currency, AccountType accountType, Guid? ownerKvid = null, string ownerName = null)
{ {
(currency == CurrencyUnit.Unsupported).ThrowIfTrue("不支持的货币单位,不能查询个人账户"); (currency == CurrencyUnit.Unsupported).ThrowIfTrue("不支持的货币单位,不能查询个人账户");
(accountType != AccountType.Cash && accountType != AccountType.Pos).ThrowIfTrue("不支持的账户类型!,个人账户仅支持现金和刷卡账户!"); (accountType != AccountType.Cash && accountType != AccountType.Pos).ThrowIfTrue("不支持的账户类型!,个人账户仅支持现金和刷卡账户!");
var key = KiviiContext.GetUrnKey($"{accountType}{currency}{KiviiContext.CurrentMember.Kvid}"); if (ownerKvid == null)
{
ownerKvid = KiviiContext.CurrentMember.Kvid;
ownerName = KiviiContext.CurrentMember.FullName;
}
if (ownerKvid == Guid.Empty)
{
ownerKvid = KiviiContext.CurrentMember.Kvid;
ownerName = KiviiContext.CurrentMember.FullName;
}
var key = KiviiContext.GetUrnKey($"{accountType}{currency}{ownerKvid}");
//如果包含这个币种,直接返回 //如果包含这个币种,直接返回
if (_personalAccounts.ContainsKey(key)) if (_personalAccounts.ContainsKey(key))
{ {
...@@ -187,7 +217,7 @@ namespace Kivii.Finances ...@@ -187,7 +217,7 @@ namespace Kivii.Finances
var conn = KiviiContext.GetOpenedDbConnection<Account>(); var conn = KiviiContext.GetOpenedDbConnection<Account>();
//得到所有个人帐户,并赋值给静态变量,减少数据库操作 //得到所有个人帐户,并赋值给静态变量,减少数据库操作
var personalAccount = conn.Single<Account>(o => o.Type == accountType && o.OwnerKvid == KiviiContext.CurrentMember.Kvid); var personalAccount = conn.Single<Account>(o => o.Type == accountType && o.OwnerKvid == ownerKvid);
if (personalAccount != null) _personalAccounts[KiviiContext.GetUrnKey($"{personalAccount.Type}{currency}{personalAccount.OwnerKvid}")] = personalAccount; if (personalAccount != null) _personalAccounts[KiviiContext.GetUrnKey($"{personalAccount.Type}{currency}{personalAccount.OwnerKvid}")] = personalAccount;
//如果从数据库中得到了,直接返回 //如果从数据库中得到了,直接返回
if (_personalAccounts.ContainsKey(key)) if (_personalAccounts.ContainsKey(key))
...@@ -199,8 +229,8 @@ namespace Kivii.Finances ...@@ -199,8 +229,8 @@ namespace Kivii.Finances
rtns.Kvid = Guid.NewGuid(); rtns.Kvid = Guid.NewGuid();
rtns.Type = accountType; rtns.Type = accountType;
rtns.Currency = currency; rtns.Currency = currency;
rtns.OwnerKvid = KiviiContext.CurrentMember.Kvid; rtns.OwnerKvid = ownerKvid.Value;
rtns.OwnerName = KiviiContext.CurrentMember.FullName; rtns.OwnerName = ownerName;
rtns.Name = $"{rtns.OwnerName}{accountType}账户"; rtns.Name = $"{rtns.OwnerName}{accountType}账户";
rtns.SerialNumber = $"{accountType}{(DateTime.Now.Ticks - DateTime.Parse("1970-01-01").Ticks) / 10000}"; rtns.SerialNumber = $"{accountType}{(DateTime.Now.Ticks - DateTime.Parse("1970-01-01").Ticks) / 10000}";
rtns.CreditLine = 0; rtns.CreditLine = 0;
......
...@@ -177,5 +177,19 @@ ...@@ -177,5 +177,19 @@
<EmbeddedResource Include="Content\codet\Classic.View.Kivii.Finances.Payment.Split.List.js" /> <EmbeddedResource Include="Content\codet\Classic.View.Kivii.Finances.Payment.Split.List.js" />
<EmbeddedResource Include="Content\codet\Classic.View.Kivii.Finances.Settlement.List.js" /> <EmbeddedResource Include="Content\codet\Classic.View.Kivii.Finances.Settlement.List.js" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Content\codes\Classic.View.Kivii.Finances.Settlement.Biz.Report.List.js" />
<EmbeddedResource Include="Content\codet\Classic.View.Kivii.Finances.Settlement.Biz.Report.List.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Content\codes\11111Classic.Control.Kivii.Finances.InvoiceApply.Invoice.Accept.List.js" />
<EmbeddedResource Include="Content\codes\Classic.Control.Kivii.Finances.InvoiceApply.Invoice.Accept.Form.js" />
<EmbeddedResource Include="Content\codes\Classic.Control.Kivii.Finances.Settlement.MultiForm.js" />
<EmbeddedResource Include="Content\codes\Classic.View.Kivii.Finances.Settlement.Biz.Contract.List.js" />
<EmbeddedResource Include="Content\codet\11111Classic.Control.Kivii.Finances.InvoiceApply.Invoice.Accept.List.js" />
<EmbeddedResource Include="Content\codet\Classic.Control.Kivii.Finances.InvoiceApply.Invoice.Accept.Form.js" />
<EmbeddedResource Include="Content\codet\Classic.Control.Kivii.Finances.Settlement.MultiForm.js" />
<EmbeddedResource Include="Content\codet\Classic.View.Kivii.Finances.Settlement.Biz.Contract.List.js" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>
\ No newline at end of file
...@@ -96,7 +96,7 @@ namespace Kivii.Finances.Transforms ...@@ -96,7 +96,7 @@ namespace Kivii.Finances.Transforms
var request = new RestfulQuery<Account>(); var request = new RestfulQuery<Account>();
request = request.PopulateWith(this); request = request.PopulateWith(this);
var sqlExpress = autoQuery.CreateQuery(Request, conn, request, dynamicParams); var sqlExpress = autoQuery.CreateQuery(Request, conn, request, dynamicParams);
sqlExpress.Where(o => o.Type != AccountType.Balance); sqlExpress.Where(o => o.Type != AccountType.Balance && Sql.In(o.OwnerKvid, KiviiContext.CurrentMember.OrganizationKvid, KiviiContext.CurrentMember.DepartmentKvid, KiviiContext.CurrentMember.Kvid));
var rtns = autoQuery.Execute(Request, conn, request, sqlExpress); var rtns = autoQuery.Execute(Request, conn, request, sqlExpress);
return rtns; return rtns;
} }
...@@ -119,18 +119,22 @@ namespace Kivii.Finances.Transforms ...@@ -119,18 +119,22 @@ namespace Kivii.Finances.Transforms
} }
[Api(Description = "获取一个折扣账户")] [Api(Description = "获取折扣账户")]
[RequiresAnyRole(SystemRoles.Everyone)] [RequiresAnyRole(SystemRoles.Everyone)]
public class AccountGetDiscount : RestfulExecution<Account> public class AccountGetDiscount : RestfulExecution<Account>
{ {
public CurrencyUnit Currency { get; set; } public CurrencyUnit Currency { get; set; }
public string OwnerName { get; set; }
public Guid OwnerKvid { get; set; }
public override object OnExecution(IRequest req, IResponse res) public override object OnExecution(IRequest req, IResponse res)
{ {
(Currency == CurrencyUnit.Unsupported).ThrowIfTrue("不支持的货币单位!"); (Currency == CurrencyUnit.Unsupported).ThrowIfTrue("不支持的货币单位!");
var rtns = new RestfulReadResponse<Account>(); var rtns = new RestfulReadResponse<Account>();
rtns.Result = Currency.GetDiscountAccount(); rtns.Result = Currency.GetDiscountAccount(OwnerKvid, OwnerName);
return rtns; return rtns;
} }
...@@ -152,4 +156,26 @@ namespace Kivii.Finances.Transforms ...@@ -152,4 +156,26 @@ namespace Kivii.Finances.Transforms
return rtns; return rtns;
} }
} }
[Api(Description = "获取个人账户")]
[RequiresAnyRole(SystemRoles.Everyone)]
public class AccountGetPersonal : RestfulExecution<Account>
{
public CurrencyUnit Currency { get; set; }
public AccountType AccountType { get; set; }
public string OwnerName { get; set; }
public Guid OwnerKvid { get; set; }
public override object OnExecution(IRequest req, IResponse res)
{
(Currency == CurrencyUnit.Unsupported).ThrowIfTrue("不支持的货币单位!");
(AccountType != AccountType.Cash && AccountType != AccountType.Pos).ThrowIfTrue("不支持的账户类型!,个人账户仅支持现金和刷卡账户!");
var rtns = new RestfulReadResponse<Account>();
rtns.Result = Currency.GetPersonalAccount(AccountType, OwnerKvid, OwnerName);
return rtns;
}
}
} }
...@@ -795,5 +795,193 @@ namespace Kivii.Finances.Transforms ...@@ -795,5 +795,193 @@ namespace Kivii.Finances.Transforms
return rtns; return rtns;
} }
} }
[RequiresAnyRole(SystemRoles.Everyone)]
[Api(Description = "开票结果回写2")]
public class InvoiceApplyResult2 : RestfulExecution<InvoiceApply>
{
public Guid ApplyKvid { get; set; }
public List<Invoice> Items { get; set; }
//发票开具最大额度限制 默认10万
public decimal Limit { get; set; } = 100000;
public override object OnExecution(IRequest req, IResponse res)
{
ApplyKvid.ThrowIfEmpty("发票申请Kvid 不能为空!");
Items.ThrowIfNullOrEmpty("开票结果内容不能为空!");
foreach (var item in Items)
{
(item.OperateTime == DateTime.MinValue || item.OperateTime == DateTime.MaxValue).ThrowIfTrue("缺少开票日期信息!");
item.SerialCode.ThrowIfNullOrEmpty("缺少发票代码信息!");
item.SerialNumber.ThrowIfNullOrEmpty("缺少发票号码信息!");
item.Type.ThrowIfNullOrEmpty("缺少发票类型信息!");
(item.TaxRate < 0 || item.TaxRate > 1).ThrowIfTrue("缺少发票税率信息!");
(item.Amount == 0).ThrowIfTrue("缺少发票金额信息!");
}
var conn = KiviiContext.GetOpenedDbConnection<InvoiceApply>();
var apply = conn.SingleById<InvoiceApply>(ApplyKvid);
apply.ThrowIfNull("未找到对应发票申请信息!");
(apply.AmountInvoice == apply.Amount).ThrowIfTrue("此发票申请已开具发票!");
var applyRelations = conn.Select<InvoiceApply>(o => o.ParentKvid == apply.Kvid && o.OperateType == InvoiceApplyType.Related && o.OffsetKvid == Guid.Empty);
var logs = new List<EntityLog<InvoiceApply>>();
var updateApplys = new List<InvoiceApply>();
var insertInvoices = new List<Invoice>();
var insertInvoiceDetails = new List<InvoiceDetail>();
foreach (var info in Items)
{
#region 开票成功的情况处理
var time = info.OperateTime;//DateTime.ParseExact(info[0], "yyyy-MM-ddHH:mm:ss", CultureInfo.InvariantCulture);//开票时间
var code = info.SerialCode;//info[4];//开票代码
var number = info.SerialNumber;//System.Text.RegularExpressions.Regex.Replace(info[5], @"[^0-9]+", "");//开票号码,唯一
var type = info.Type;//info[3].Split(':')[1];//开票类型
var currentAmount = info.Amount;
var taxRate = info.TaxRate;
var invoiceKvid = Guid.NewGuid();
var invoice = new Invoice();
invoice.RootKvid = invoiceKvid;
invoice.Kvid = invoiceKvid;
invoice.ApplyKvid = ApplyKvid;
invoice.OwnerKvid = apply.OwnerKvid;
invoice.OwnerName = apply.OwnerName;
invoice.Currency = CurrencyUnit.CNY;
invoice.Type = type;
invoice.Category = apply.OperateType.ToString();
invoice.OperateTime = time;
invoice.SerialCode = code;
invoice.SerialNumber = number;
invoice.Status = 1;
invoice.Amount = currentAmount;
invoice.AmountUntaxed = Math.Round(currentAmount / (1 + taxRate), 2);
invoice.AmountTax = currentAmount - invoice.AmountUntaxed;
invoice.TaxRate = taxRate;
invoice.PayeeKvid = apply.PayeeKvid;
invoice.PayeeName = apply.PayeeName;
invoice.PayeeTaxNumber = apply.PayeeTaxNumber;
invoice.PayeeCompanyAddress = apply.PayeeCompanyAddress;
invoice.PayeePhone = apply.PayeePhone;
invoice.PayeeRegisteredBank = apply.PayeeRegisteredBank;
invoice.PayeeBankAccount = apply.PayeeBankAccount;
invoice.PayerKvid = apply.PayerKvid;
invoice.PayerName = apply.PayerName;
invoice.PayerTaxNumber = apply.PayerTaxNumber;
invoice.PayerCompanyAddress = apply.PayerCompanyAddress;
invoice.PayerPhone = apply.PayerPhone;
invoice.PayerRegisteredBank = apply.PayerRegisteredBank;
invoice.PayerBankAccount = apply.PayerBankAccount;
invoice.OperatorName = apply.OperatorName;
invoice.Remark = apply.Remark;
invoice.Metadata = new Dictionary<string, string>();
invoice.Metadata["PayeeOperatorName"] = apply.Metadata.ContainsKey("PayeeOperatorName") ? apply.Metadata["PayeeOperatorName"] : "";
invoice.Metadata["ReviewerName"] = apply.Metadata.ContainsKey("ReviewerName") ? apply.Metadata["ReviewerName"] : "";
insertInvoices.Add(invoice);
//conn.Insert(invoice);
var detail = new InvoiceDetail();
detail.InvoiceKvid = invoiceKvid;
detail.GoodsFullName = "录入明细";//item.GoodsFullName;
//detail.GoodsSpecifications = item.GoodsSpecifications;
detail.Quantity = 1;//item.Quantity;
detail.AmountUntaxed = invoice.AmountUntaxed;
detail.Amount = invoice.Amount;
detail.AmountTax = invoice.AmountTax;
detail.QuantityUnitPriceUntaxed = Math.Round(detail.AmountUntaxed / detail.Quantity, 2);
detail.TaxRate = invoice.TaxRate;
insertInvoiceDetails.Add(detail);
//conn.Insert(detail);
#endregion
#region 更新申请状态
if (!applyRelations.IsNullOrEmpty())
{
foreach (var item in applyRelations)
{
//无需更新
if (item.AmountInvoice >= item.Amount) continue;
var relationAmount = item.Amount - item.AmountInvoice;
var amount = relationAmount <= invoice.Amount ? relationAmount : invoice.Amount;
item.AmountInvoice += amount;
item.AddOnlyProperties(o => o.AmountInvoice);
if (item.AmountInvoice == item.Amount)
{
item.Status = (int)InvoiceApplyStatus.Completed;
item.AddOnlyProperties(o => o.Status);
}
updateApplys.Add(item);
//conn.UpdateOnly(item);
}
}
apply.AmountInvoice += invoice.Amount;
apply.AddOnlyProperties(o => o.AmountInvoice);
if (apply.AmountInvoice == apply.Amount)
{
apply.Status = (int)InvoiceApplyStatus.Completed;
apply.AddOnlyProperties(o => o.Status);
}
updateApplys.Add(apply);
//conn.UpdateOnly(apply);
#endregion
}
#region 收款与发票关联
var payments = conn.Select<Payment>(o => Sql.In(o.Kvid, applyRelations.ConvertAll(p => p.BizKvid)));//Type:Bank,Split,Pos,Cash,WeChat...
List<Payment> parentPayments = new List<Payment>();//也要更新父级的AmountInvoice
if (!payments.IsNullOrEmpty())
{
var correlatedInvoices = insertInvoices.Correlating(payments);
insertInvoices.AddRange(correlatedInvoices);
var currentRootKvids = payments.Where(o => o.Type == PaymentType.Split).ToList().ConvertAll(p => p.RootKvid);
if (!currentRootKvids.IsNullOrEmpty()) parentPayments = conn.Select<Payment>(o => o.OffsetKvid == Guid.Empty && Sql.In(o.Kvid, currentRootKvids));
}
#endregion
var rtns = new RestfulUpdateResponse<InvoiceApply>();
rtns.Results = new List<InvoiceApply>();
var trans = conn.OpenTransaction();
try
{
if (!logs.IsNullOrEmpty()) logs.ForEach(o => conn.Insert(o));
if (!updateApplys.IsNullOrEmpty())
{
updateApplys.ForEach(o => conn.UpdateOnly(o));
rtns.Results.AddRange(updateApplys);
}
if (!insertInvoices.IsNullOrEmpty())
{
foreach (var item in insertInvoices)
{
if (item.Type == "Relation") item.SerialNumber = item.GetSubSerialNumber(conn);
conn.Insert(item);
}
}
if (!insertInvoiceDetails.IsNullOrEmpty()) insertInvoiceDetails.ForEach(o => conn.Insert(o));
if (!payments.IsNullOrEmpty())
{
payments.ForEach(o => conn.UpdateOnly(o));
}
if (!parentPayments.IsNullOrEmpty())
{
parentPayments.ForEach(o => o.RecalculateAmountInvoice(conn));
}
trans.Commit();
}
catch (Exception ex)
{
trans.Rollback();
throw ex;
}
return rtns;
}
}
#endregion #endregion
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment