Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
Kivii.Biz.Finances.V2.0
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陶然
Kivii.Biz.Finances.V2.0
Commits
5ef2d2e1
Commit
5ef2d2e1
authored
Jan 04, 2022
by
陶然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
c56bed1e
Show whitespace changes
Inline
Side-by-side
Showing
81 changed files
with
10819 additions
and
33 deletions
+10819
-33
App.Const.Finances.js
Src/Content/codes/App.Const.Finances.js
+2
-0
Classic.Control.Kivii.Finances.AccountDetail.List.js
...odes/Classic.Control.Kivii.Finances.AccountDetail.List.js
+2
-0
Classic.Control.Kivii.Finances.Bill.Form.js
...Content/codes/Classic.Control.Kivii.Finances.Bill.Form.js
+2
-0
Classic.Control.Kivii.Finances.Bill.Settlement.Selector.js
...lassic.Control.Kivii.Finances.Bill.Settlement.Selector.js
+2
-0
Classic.Control.Kivii.Finances.Bill.Template.Selector.js
.../Classic.Control.Kivii.Finances.Bill.Template.Selector.js
+2
-0
Classic.Control.Kivii.Finances.Debiting.Payment.Selector.js
...assic.Control.Kivii.Finances.Debiting.Payment.Selector.js
+2
-0
Classic.Control.Kivii.Finances.InvoiceApply.Execute.Form.js
...assic.Control.Kivii.Finances.InvoiceApply.Execute.Form.js
+2
-0
Classic.Control.Kivii.Finances.InvoiceApply.Form.js
...codes/Classic.Control.Kivii.Finances.InvoiceApply.Form.js
+2
-0
Classic.Control.Kivii.Finances.InvoiceApply.Payment.Selector.js
...c.Control.Kivii.Finances.InvoiceApply.Payment.Selector.js
+2
-0
Classic.Control.Kivii.Finances.InvoiceApplyDetail.Form.js
...Classic.Control.Kivii.Finances.InvoiceApplyDetail.Form.js
+2
-0
Classic.Control.Kivii.Finances.InvoiceTitle.Form.js
...codes/Classic.Control.Kivii.Finances.InvoiceTitle.Form.js
+2
-0
Classic.Control.Kivii.Finances.InvoiceTitle.Selector.js
...s/Classic.Control.Kivii.Finances.InvoiceTitle.Selector.js
+2
-0
Classic.Control.Kivii.Finances.Paying.Payment.Selector.js
...Classic.Control.Kivii.Finances.Paying.Payment.Selector.js
+2
-0
Classic.Control.Kivii.Finances.Payment.Accept.Form.js
...des/Classic.Control.Kivii.Finances.Payment.Accept.Form.js
+2
-0
Classic.Control.Kivii.Finances.Payment.Filter.Form.js
...des/Classic.Control.Kivii.Finances.Payment.Filter.Form.js
+2
-0
Classic.Control.Kivii.Finances.Payment.Offset.List.js
...des/Classic.Control.Kivii.Finances.Payment.Offset.List.js
+2
-0
Classic.Control.Kivii.Finances.Payment.Transfer.Form.js
...s/Classic.Control.Kivii.Finances.Payment.Transfer.Form.js
+2
-0
Classic.Control.Kivii.Finances.Payment.Used.List.js
...codes/Classic.Control.Kivii.Finances.Payment.Used.List.js
+2
-0
Classic.Control.Kivii.Finances.Settlement.Biz.Report.Selector.js
....Control.Kivii.Finances.Settlement.Biz.Report.Selector.js
+2
-0
Classic.Control.Kivii.Finances.Settlement.Customer.Create.Form.js
...Control.Kivii.Finances.Settlement.Customer.Create.Form.js
+2
-0
Classic.Control.Kivii.Finances.Settlement.Customer.Selector.js
...ic.Control.Kivii.Finances.Settlement.Customer.Selector.js
+2
-0
Classic.Control.Kivii.Finances.Settlement.Form.js
...t/codes/Classic.Control.Kivii.Finances.Settlement.Form.js
+2
-0
Classic.Control.Kivii.Finances.Settlement.Paying.Form.js
.../Classic.Control.Kivii.Finances.Settlement.Paying.Form.js
+2
-0
Classic.Control.Kivii.Finances.SettlementDetail.Form.js
...s/Classic.Control.Kivii.Finances.SettlementDetail.Form.js
+2
-0
Classic.Control.Kivii.Finances.Transfer.Account.Selector.js
...assic.Control.Kivii.Finances.Transfer.Account.Selector.js
+2
-0
Classic.View.Kivii.Finances.Account.List.js
...Content/codes/Classic.View.Kivii.Finances.Account.List.js
+2
-0
Classic.View.Kivii.Finances.Bill.List.js
Src/Content/codes/Classic.View.Kivii.Finances.Bill.List.js
+2
-0
Classic.View.Kivii.Finances.Invoice.Debit.List.js
...t/codes/Classic.View.Kivii.Finances.Invoice.Debit.List.js
+2
-0
Classic.View.Kivii.Finances.Invoice.List.js
...Content/codes/Classic.View.Kivii.Finances.Invoice.List.js
+2
-0
Classic.View.Kivii.Finances.InvoiceApply.Current.List.js
.../Classic.View.Kivii.Finances.InvoiceApply.Current.List.js
+2
-0
Classic.View.Kivii.Finances.InvoiceApply.List.js
...nt/codes/Classic.View.Kivii.Finances.InvoiceApply.List.js
+2
-0
Classic.View.Kivii.Finances.InvoiceApply.Payment.List.js
.../Classic.View.Kivii.Finances.InvoiceApply.Payment.List.js
+2
-0
Classic.View.Kivii.Finances.InvoiceTitle.List.js
...nt/codes/Classic.View.Kivii.Finances.InvoiceTitle.List.js
+2
-0
Classic.View.Kivii.Finances.Payment.Accept.List.js
.../codes/Classic.View.Kivii.Finances.Payment.Accept.List.js
+2
-0
Classic.View.Kivii.Finances.Payment.Filter.List.js
.../codes/Classic.View.Kivii.Finances.Payment.Filter.List.js
+2
-0
Classic.View.Kivii.Finances.Payment.List.js
...Content/codes/Classic.View.Kivii.Finances.Payment.List.js
+2
-0
Classic.View.Kivii.Finances.Payment.Split.List.js
...t/codes/Classic.View.Kivii.Finances.Payment.Split.List.js
+2
-0
Classic.View.Kivii.Finances.Settlement.List.js
...tent/codes/Classic.View.Kivii.Finances.Settlement.List.js
+2
-0
App.Const.Finances.js
Src/Content/codet/App.Const.Finances.js
+116
-0
Classic.Control.Kivii.Finances.AccountDetail.List.js
...odet/Classic.Control.Kivii.Finances.AccountDetail.List.js
+150
-0
Classic.Control.Kivii.Finances.Bill.Form.js
...Content/codet/Classic.Control.Kivii.Finances.Bill.Form.js
+609
-0
Classic.Control.Kivii.Finances.Bill.Settlement.Selector.js
...lassic.Control.Kivii.Finances.Bill.Settlement.Selector.js
+226
-0
Classic.Control.Kivii.Finances.Bill.Template.Selector.js
.../Classic.Control.Kivii.Finances.Bill.Template.Selector.js
+39
-0
Classic.Control.Kivii.Finances.Debiting.Payment.Selector.js
...assic.Control.Kivii.Finances.Debiting.Payment.Selector.js
+77
-0
Classic.Control.Kivii.Finances.InvoiceApply.Execute.Form.js
...assic.Control.Kivii.Finances.InvoiceApply.Execute.Form.js
+676
-0
Classic.Control.Kivii.Finances.InvoiceApply.Form.js
...codet/Classic.Control.Kivii.Finances.InvoiceApply.Form.js
+417
-0
Classic.Control.Kivii.Finances.InvoiceApply.Payment.Selector.js
...c.Control.Kivii.Finances.InvoiceApply.Payment.Selector.js
+105
-0
Classic.Control.Kivii.Finances.InvoiceApplyDetail.Form.js
...Classic.Control.Kivii.Finances.InvoiceApplyDetail.Form.js
+174
-0
Classic.Control.Kivii.Finances.InvoiceTitle.Form.js
...codet/Classic.Control.Kivii.Finances.InvoiceTitle.Form.js
+60
-0
Classic.Control.Kivii.Finances.InvoiceTitle.Selector.js
...t/Classic.Control.Kivii.Finances.InvoiceTitle.Selector.js
+77
-0
Classic.Control.Kivii.Finances.Paying.Payment.Selector.js
...Classic.Control.Kivii.Finances.Paying.Payment.Selector.js
+150
-0
Classic.Control.Kivii.Finances.Payment.Accept.Form.js
...det/Classic.Control.Kivii.Finances.Payment.Accept.Form.js
+173
-0
Classic.Control.Kivii.Finances.Payment.Filter.Form.js
...det/Classic.Control.Kivii.Finances.Payment.Filter.Form.js
+137
-0
Classic.Control.Kivii.Finances.Payment.Offset.List.js
...det/Classic.Control.Kivii.Finances.Payment.Offset.List.js
+261
-0
Classic.Control.Kivii.Finances.Payment.Transfer.Form.js
...t/Classic.Control.Kivii.Finances.Payment.Transfer.Form.js
+177
-0
Classic.Control.Kivii.Finances.Payment.Used.List.js
...codet/Classic.Control.Kivii.Finances.Payment.Used.List.js
+265
-0
Classic.Control.Kivii.Finances.Settlement.Biz.Report.Selector.js
....Control.Kivii.Finances.Settlement.Biz.Report.Selector.js
+140
-0
Classic.Control.Kivii.Finances.Settlement.Customer.Create.Form.js
...Control.Kivii.Finances.Settlement.Customer.Create.Form.js
+47
-0
Classic.Control.Kivii.Finances.Settlement.Customer.Selector.js
...ic.Control.Kivii.Finances.Settlement.Customer.Selector.js
+60
-0
Classic.Control.Kivii.Finances.Settlement.Form.js
...t/codet/Classic.Control.Kivii.Finances.Settlement.Form.js
+838
-0
Classic.Control.Kivii.Finances.Settlement.Paying.Form.js
.../Classic.Control.Kivii.Finances.Settlement.Paying.Form.js
+291
-0
Classic.Control.Kivii.Finances.SettlementDetail.Form.js
...t/Classic.Control.Kivii.Finances.SettlementDetail.Form.js
+180
-0
Classic.Control.Kivii.Finances.Transfer.Account.Selector.js
...assic.Control.Kivii.Finances.Transfer.Account.Selector.js
+149
-0
Classic.View.Kivii.Finances.Account.List.js
...Content/codet/Classic.View.Kivii.Finances.Account.List.js
+210
-0
Classic.View.Kivii.Finances.Bill.List.js
Src/Content/codet/Classic.View.Kivii.Finances.Bill.List.js
+350
-0
Classic.View.Kivii.Finances.Invoice.Debit.List.js
...t/codet/Classic.View.Kivii.Finances.Invoice.Debit.List.js
+457
-0
Classic.View.Kivii.Finances.Invoice.List.js
...Content/codet/Classic.View.Kivii.Finances.Invoice.List.js
+504
-0
Classic.View.Kivii.Finances.InvoiceApply.Current.List.js
.../Classic.View.Kivii.Finances.InvoiceApply.Current.List.js
+413
-0
Classic.View.Kivii.Finances.InvoiceApply.List.js
...nt/codet/Classic.View.Kivii.Finances.InvoiceApply.List.js
+435
-0
Classic.View.Kivii.Finances.InvoiceApply.Payment.List.js
.../Classic.View.Kivii.Finances.InvoiceApply.Payment.List.js
+196
-0
Classic.View.Kivii.Finances.InvoiceTitle.List.js
...nt/codet/Classic.View.Kivii.Finances.InvoiceTitle.List.js
+175
-0
Classic.View.Kivii.Finances.Payment.Accept.List.js
.../codet/Classic.View.Kivii.Finances.Payment.Accept.List.js
+416
-0
Classic.View.Kivii.Finances.Payment.Filter.List.js
.../codet/Classic.View.Kivii.Finances.Payment.Filter.List.js
+326
-0
Classic.View.Kivii.Finances.Payment.List.js
...Content/codet/Classic.View.Kivii.Finances.Payment.List.js
+557
-0
Classic.View.Kivii.Finances.Payment.Split.List.js
...t/codet/Classic.View.Kivii.Finances.Payment.Split.List.js
+532
-0
Classic.View.Kivii.Finances.Settlement.List.js
...tent/codet/Classic.View.Kivii.Finances.Settlement.List.js
+465
-0
PaymentExtension.cs
Src/Extensions/PaymentExtension.cs
+2
-1
Kivii.Biz.Finances.V2.0.csproj
Src/Kivii.Biz.Finances.V2.0.csproj
+79
-0
AssemblyInfo.cs
Src/Properties/AssemblyInfo.cs
+2
-2
RestfulPayment.Accept.cs
Src/Transforms/RestfulPayment.Accept.cs
+27
-27
RestfulPayment.cs
Src/Transforms/RestfulPayment.cs
+3
-3
No files found.
Src/Content/codes/App.Const.Finances.js
0 → 100644
View file @
5ef2d2e1
//Version:0.07
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.k=j.k||{};j.k.12=D(v){8 7=1k.14(v);8 f=u y("15","16","17","18","19","1a","1b","1c","1d","1e");8 N=u y("","1j","13","1l");8 H=u y("","M","X","1m");8 J=u y("T","S","R","Q");8 w="11";8 F=U.V;8 b;8 c;8 6="";8 o;5(7===""){a""}7=B(7);5(7>=F){a"Y"}5(7===0){6=f[0]+w;a 6}7=7.W();5(7.Z(".")==-1){b=7;c=
\'\'
}C{o=7.9(".");b=o[0];c=o[1].E(0,4)}5(L(b,10)>0){h=0;A=b.e;z(i=0;i<A;i++){n=b.E(i,1);p=A-i-1;q=p/4;m=p%4;5(n=="0"){h++}C{5(h>0){6+=f[0]}h=0;6+=f[L(n)]+N[m]}5(m===0&&h<4){6+=H[q]}}6+=w;}5(c!==
\'\'
){I=c.e;z(i=0;i<I;i++){n=c.E(i,1);5(n!=
\'
0
\'
){6+=f[1i(n)]+J[i]}}}5(6===
\'\'
){6+=f[0]+w}a 6};j.k.1h=D(v){a v/1g+
\'
M
\'
};j.k.1f=D(s,n){5(s<0){n=n>0&&n<=O?n:2;s=0-s;s=B((s+"").P(/[^
\\
d
\\
.-]/g,"")).K(n)+"";l=s.9(".")[0].9("").x(),r=s.9(".")[1];t="";z(i=0;i<l.e;i++){t+=l[i]+((i+1)%3===0&&(i+1)!=l.e?",":"")}a"-"+t.9("").x().G("")+"."+r}C{n=n>0&&n<=O?n:2;s=B((s+"").P(/[^
\\
d
\\
.-]/g,"")).K(n)+"";l=s.9(".")[0].9("").x(),r=s.9(".")[1];t="";z(i=0;i<l.e;i++){t+=l[i]+((i+1)%3===0&&(i+1)!=l.e?",":"")}a t.9("").x().G("")+"."+r}};'
,
62
,
85
,
'|||||if|ChineseStr|money|var|split|return|IntegerNum|DecimalNum||length|cnNums||zeroCount||KiviiContext|Const||||parts||||||new|_2111101452170|cnIntLast|reverse|Array|for|IntLen|parseFloat|else|function|substr|maxNum|join|cnIntUnits|decLen|cnDecUnits|toFixed|parseInt|万|cnIntRadice|20|replace|厘|毫|分|角|999999999999999|9999|toString|亿|超出最大处理数字|indexOf||元|FinancesFunctionsMoneyToChineseBig|佰|abs|零|壹|贰|叁|肆|伍|陆|柒|捌|玖|FinancesFunctionsMoneyToFmoney|10000|FinancesFunctionsMoneyToChineseSimple|Number|拾|Math|仟|兆'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.AccountDetail.List.js
0 → 100644
View file @
5ef2d2e1
//Version:0.02
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
;}(
'q.26(
\'
C.l.p
\'
);q.1F(
\'
C.A.z.p.y.W
\'
,{1i:
\'
1a.A.1u
\'
,1v:
\'
z.p.1w.y
\'
,h:
\'
C.A.z.p.y.W
\'
,1z:{3:{Q:18,8:{}}},S:{1q:
\'
{Q}
\'
},1y:{1x:t,1t:1s,1r:[{1m:
\'
M
\'
,1p:
\'
1o
\'
}]},1n:[{1B:
\'
1l
\'
}],1e:[{h:
\'
19
\'
,Z:1,1b:1c,1k:
\'
o,r,X
\'
,1d:
\'
1f
\'
},{1g:
\'
0 0 -9 10
\'
,h:
\'
1h
\'
,S:{j:
\'
1j:{8.1A} ({8.1C})
\'
},1M:{1E:
\'
1Z
\'
}}],20:t,21:{22:{23:t,1Y:t},24:[{h:
\'
25
\'
,n:
\'
29
\'
},{h:
\'
27
\'
,7:
\'
28
\'
,D:
\'
Y-m-d H:i
\'
,6:
\'
M
\'
,a:s},{7:
\'
1W
\'
,6:
\'
o
\'
,a:L,},{7:
\'
1X
\'
,6:
\'
r
\'
,a:L,},{7:
\'
1D
\'
,6:
\'
K
\'
,n:
\'
w
\'
,G:
\'
13
\'
,a:s,R:
\'
P
\'
,N:e(j,J,6){5 q.T.D(
\'
{0}
\'
,j.O(2))}},{7:
\'
1G
\'
,6:
\'
K
\'
,n:
\'
w
\'
,G:
\'
14
\'
,a:s,R:
\'
P
\'
,N:e(j,J,6){5 q.T.D(
\'
{0}
\'
,j.O(2))}},{7:
\'
1H
\'
,6:
\'
1I
\'
,n:
\'
w
\'
,G:E.l.F,a:s},{7:
\'
1J
\'
,6:
\'
1K
\'
,a:1L},{7:
\'
1N
\'
,6:
\'
X
\'
,1V:1O,Z:1}]},1P:e(8){u 11=17;u g=11.V();g.1Q(
\'
8
\'
,8)},1R:{13:e(k,B,4,v){c(4.3.I===4.3.f){5 E.l.F(k)}b{5 0.15}},14:e(k,B,4,v){c(4.3.x===4.3.f){5 E.l.F(k)}b{5 0.15}},1S:e(k,B,4,v){u 12=17;u g=12.V();c(g.3.8.16!==
\'
1T
\'
&&g.3.8.16!==
\'
1U
\'
){c(4.3.x===4.3.f){5 4.3.r}b c(4.3.I===4.3.f){5 4.3.o}b{5
\'
U
\'
}}b{c(4.3.I===4.3.f){5 4.3.r}b c(4.3.x===4.3.f){5 4.3.o}b{5
\'
U
\'
}}}}});'
,
62
,
134
,
'|||data|_2112211540260|return|dataIndex|text|_2112211540261||width|else|if||function|AccountKvid|_2112211540262|xtype||value|_2112211540263|Const||align|PayerName|Finances|Ext|PayeeName|120|true|let|_2112211540264|right|PayerAccountKvid|AccountDetail|Kivii|Control|_2112211540265|App|format|KiviiContext|FinancesFunctionsMoneyToFmoney|renderer||PayeeAccountKvid|summaryData|AmountPayment|150|CreateTime|summaryRenderer|toFixed|sum|_21122115402610|summaryType|bind|String|未知问题|getViewModel|List|Remark||flex||_2112211540269|_2112211540266|_2112211540268|_2112211540267|00|Type|this|null|searchField|System|labelWidth|60|emptyText|tbar|模糊搜索收付款单位|margin|displayfield|extend|账号名称|queryField|summary|property|features|DESC|direction|selection|sorters|200|pageSize|EntityList|entityType|Entities|autoLoad|store|viewModel|OwnerName|ftype|Name|借|fontSize|define|贷|帐户余额|Amount|摘要|Summary|250|fieldStyle|备注|100|setOwner|set|controller|_21122115402611|Balance|Discount|minWidth|付款单位|收款单位|sortable|16px|columnLines|columns|defaults|menuDisabled|items|rownumberer|require|datecolumn|交易日期|center'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.Bill.Form.js
0 → 100644
View file @
5ef2d2e1
//Version:0.84
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
;}(
'6.5s(
\'
16.3r.N
\'
);6.4Z(
\'
16.13.W.N.19.2v
\'
,{3V:
\'
3J.13.3H
\'
,p:
\'
16.13.W.N.19.2v
\'
,1N:
\'
W.N.3j.19
\'
,2O:7,21:{1c:
\'
3P
\'
,3W:{y:3v,4k:0}},1C:
\'
4v
\'
,F:
\'
x-G G-4a-l-o
\'
,4c:{B:{5:{4d:{},8:1l,14:0,1V:0,1b:0,49:1d.1r.46,3Z:1d.1r.4h,1Z:2h 1t(),3w:1d.1r.3C,39:1d.1r.3A,2e:1d.1r.2i,3O:1d.1r.8,26:
\'
3Q
\'
,1n:[]}},4e:{2R:9(S){4 X=S(
\'
5.14
\'
);g 1d.3r.3U(X)},3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 a=0;a<z.1n.K;a++){4 C=z.1n[a];1U.1Q(C)}},2p:9(11){}})}},4W:{1M:9(){4 f=18;4 k=f.1f();4 O=f.1x();4 P=O.1k.1s().1F().A;4 X=0;4 2l=0;4 1a=0;1i(4 a=0;a<P.K;a++){4 C=P[a].B;X+=C.14;2l+=C.1V;1a+=C.1b}k.2m(
\'
5.1b
\'
,2q(1a.1m(2)));k.2m(
\'
5.1V
\'
,2q(2l.1m(2)));k.2m(
\'
5.14
\'
,2q(X.1m(2)))},38:9(v){4 f=18;4 k=f.1f();4 R=k.B.5.8;t(R!==1l){6.1j("4V,4U");g}4 O=f.1x();4 1R=O.1k.1s();4 u=6.1h(
\'
16.13.W.N.19.1X.1D
\'
,{3g:e});4 Z=6.1h(
\'
6.1A.2k
\'
,{21:
\'
2j
\'
,1C:v.l,F:v.F,23:
\'
22
\'
,29:7,L:4T,2r:3v,2y:7,3i:7,2s:7,A:[u]});Z.2t();u.2C(
\'
3b
\'
,9(v,1u){Z.2o();4 1T=1R.1F().A;1i(4 a=0;a<1u.K;a++){t(1T.K<=0)1R.1Q(1u[a]);1i(4 1S=0;1S<1T.K;1S++){t(1T[1S].B.8===1u[a].8)4S;1R.1Q(1u[a])}}f.1M()})},3t:9(v,4R,4Q,2b,4P,C){4 f=18;4 k=f.1f();4 R=k.B.5.8;t(R!==1l){6.1j("4O,4Y!");g}C.4N();f.1M()},3n:9(v){4 f=18;4 k=f.1f();4 h=f.3e();4 O=f.1x();4 2b=k.B.5;4 2a=[];4 P=O.1k.1s().1F().A;t(P.K<=0){6.1j("3a,3c!");g}1i(4 a=0;a<P.K;a++){4 C=P[a].B;2a.4L(C.8)}4 1H={};1H.4K=2b;1H.4J=2a;v.25(7);6.2u.2z({2x:
\'
/1Y/
\'
+h.1N+
\'
/4I.2A
\'
,4H:1H,24:9(11){4 12=6.28(11.2w);6.1j(
\'
4G!
\'
);v.25(e);h.4F(
\'
4E
\'
,h,12.27)},2p:9(11){6.1j(
\'
4D!
\'
);v.25(e)}})},3f:9(v){4 f=18;4 h=f.3e();4 k=f.1f();4 O=f.1x();4 P=O.1k.1s().1F().A;t(P.K<=0){6.1j("3a,3c!");g}4 u=6.1h(
\'
16.13.W.N.1X.4C.2v
\'
,{3g:e});4 Z=6.1h(
\'
6.1A.2k
\'
,{21:
\'
2j
\'
,1C:v.l,F:v.F,23:
\'
22
\'
,29:7,L:4M,2r:51,2y:7,3i:7,2s:7,A:[u]});u.2B(P);Z.2t();u.2C(
\'
5d
\'
,9(v,z){Z.2o();6.2u.2z({2x:
\'
/1Y/W.N.3j.19/52.2A
\'
,3l:{8:k.B.5.8},24:9(11){4 12=6.28(11.2w);t(12.27.K===1){h.2B(12.27[0])}},2p:9(11){}})})},3p:9(v){4 f=18;4 k=f.1f();4 R=k.B.5.8;4 37=k.B.5.2g+"5o("+6.1t.1g(2h 1t(k.B.5.1Z),
\'
Y
\'
)+
\'
5n
\'
+6.1t.1g(2h 1t(k.B.5.1Z),
\'
m
\'
)+
\'
5m)
\'
;4 1E=6.1h(
\'
16.13.W.N.19.5l.1D
\'
);4 Z=6.1h(
\'
6.1A.2k
\'
,{21:
\'
2j
\'
,1C:
\'
5k
\'
,F:v.F,23:
\'
22
\'
,29:7,L:5j,2r:5i,2y:7,2s:e,A:[1E]});Z.2t();1E.5h({5g:
\'
19
\'
});1E.2C(
\'
3b
\'
,9(v,z){Z.2o();4 1w=17.1o("5f");1w.2d.5p="5e";4 u=17.1o(
\'
5c
\'
);4 1z=17.1o(
\'
1O
\'
);1z.1c=
\'
15
\'
;1z.V=
\'
8
\'
;1z.b=R;u.1p(1z);4 1y=17.1o(
\'
1O
\'
);1y.1c=
\'
15
\'
;1y.V=
\'
3d
\'
;1y.b=7;u.1p(1y);4 h=17.1o(
\'
1O
\'
);h.1c=
\'
15
\'
;h.V=
\'
5b
\'
;h.b=z[0].5a;u.1p(h);4 1B=17.1o(
\'
1O
\'
);1B.1c=
\'
15
\'
;1B.V=
\'
59
\'
;1B.b=37;u.1p(1B);1w.1p(u);17.2I.1p(1w);u.58=
\'
57
\'
;u.56=
\'
/1Y/
\'
+h.1N+
\'
/2Z.55
\'
;u.54();17.2I.53(1w)})}}});'
,
62
,
373
,
'||||let|entity|Ext|true|Kvid|function|_2112241656440|value|||false|_2112241656441|return|_2112241656442|||_2112241656443|text||||xtype|nbsp|100||if|_2112241656445|_2112241656444|bind||small|_2112241656446|items|data|_2112241656447||dataIndex|iconCls|fa||big|responsiveCls|length|width||Finances|_2112241656449|_21122416564410|readOnly|_2112241656448|get||fieldLabel|name|Kivii|_21122416564411||_21122416564412||_21122416564413|_21122416564414|Control|Amount|hidden|App|document|this|Bill|_21122416564415|AmountPayment|type|KiviiContext|allowBlank|getViewModel|format|create|for|toast|details|null|toFixed|Details|createElement|appendChild|div|CurrentMember|getStore|Date|_21122416564416|handler|_21122416564417|getReferences|_21122416564419|_21122416564418|window|_21122416564420|title|Selector|_21122416564427|getData|align|_21122416564426|right|summaryType|sum|summaryRenderer|_21122416564423|entityType|input|150|add|_21122416564422|_21122416564424|_21122416564421|_21122416564425|AmountPlan|summaryData|Settlement|Restful|OperateTime||layout|left|iconAlign|success|setDisabled|Currency|Results|decode|autoScroll|_21122416564429|_21122416564428|String|style|OperatorName|90|PayerName|new|FullName|fit|Window|_21122416564430|set|editable|close|failure|parseFloat|height|resizable|show|Ajax|Form|responseText|url|modal|request|json|setOwner|on|displayfield|margin|minValue|menu|账单明细|body|readEntity|numberfield|formatName|hideTrigger|Result|scrollable|Summary|Remark|amountChineseBig|付款单位|expend|top|overflowHandler|defaults|step|dock|Read||toolbar|20px|fontSize|fieldStyle|dockedItems|plus|_21122416564434|_21122416564433|PayeeName|无账单明细|entitySelected|无法生成账单|IncludeDetail|getView|_21122416564436|header|description|maximizable|Entities|hiddenPaying|params|color|_21122416564435|windowSelector|_21122416564432|valueField|Const|Customer|_21122416564431|keyField|600|PayeeKvid|key|pageSize|注|OrganizationName|store|OrganizationKvid|reference|创建|10000|备|EntityForm|未完成收款登记|System|fieldset|collapsible|red|grid|OperatorKvid|responsivecolumn|CNY|已完成收款登记|collapsed|green|FinancesFunctionsMoneyToChineseBig|extend|states|操|要|OwnerKvid||internalCode|labelAlign|货币单位|PayerKvid|categoryField|DepartmentName|收款单位|已收金额|OwnerName|file|账单金额|viewModel|Metadata|formulas|labelWidth|textarea|DepartmentKvid|download|摘|large|人|作|groupField|金额大写|操作日期|disabled|formIsValid|altFormats|datefield|收款登记|账单管理|tags|下载|textfield|Type|getController|features|Paying|生成账单失败|entityCreated|fireEvent|生成账单成功|jsonData|Create|SettlementKvids|Item|push|900|drop|已生成账单|_21122416564437|_21122416564438|_21122416564439|break|1200|无法新增|已制作账单|controller|autoLoad|无法移除内容|define||500|Archiving|removeChild|submit|xlsx|action|GET|method|__fileName|Path|View|form|entityPaying|none|iframe|Tags|setFilter|350|700|选择模板|Template|月账单|年|_|display|isArray|removeAll|require|快递费|合计|所属业务|BizId|80|添加|center|trash|columns|menuDisabled|移除|sortable|操作|rownumberer|flex|服务费|Express|Service|minWidth|备注|摘要|ftype|操作人|已付金额|折后价|原价|groupHeaderTpl|rows|条|Report|报告费|groupingsummary|actioncolumn|'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.Bill.Settlement.Selector.js
0 → 100644
View file @
5ef2d2e1
//Version:0.09
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'
,
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'
,6:
\'
2Q
\'
,8:p,A:
\'
z
\'
,w:c(7,D,4){9 e.u.k(
\'
¥{0}
\'
,7.S(2))}},{4:
\'
2C
\'
,O:
\'
N
\'
,6:
\'
2B
\'
,8:p,A:
\'
z
\'
,w:c(7,D,4){9 e.u.k(
\'
¥{0}
\'
,7.S(2))}},{4:
\'
2D
\'
,O:
\'
N
\'
,6:
\'
2d
\'
,8:p,A:
\'
z
\'
,w:c(7,D,4){9 e.u.k(
\'
¥{0}
\'
,7.S(2))}},{4:
\'
2e
\'
,6:
\'
2f
\'
,8:M,1v:
\'
1n
\'
},{4:
\'
1x
\'
,6:
\'
2g
\'
,8:M},{4:
\'
2h
\'
,6:
\'
2i
\'
,8:2j},{4:
\'
2k
\'
,6:
\'
2l
\'
,2m:p,1m:1}]},2n:{1n:c(n,2o,10,2p){f(n==="2q"){9"2r"}f(n==="2s"){9"2t"}f(n==="2u"){9"2v"}9 n},1w:c(j,10){5 q=F;5 3=q.H();3.a.1t=10.1y.g;3.E()},X:c(j,2w,2x){5 q=F;5 3=q.H();5 L=q.2y();5 i=L.1h.7;5 t=L.1u.7||J Q();f(i===l){e.1q("2z!");9}f(i>t){e.1q("2A!");9}I 3.a.K;I 3.a.Z;3.a.K=J Q(i.1k(),i.1l(),i.1r());3.a.Z=J Q(t.1k(),t.1l(),t.1r()+1);3.E()},1c:c(j){j.13(l);5 G=F;5 3=G.H();f(3.a===l)3.1d({});I 3.a.K;3.E()},1i:c(j){j.13(l);5 G=F;5 3=G.H();f(3.a===l)3.1d({});I 3.a.Z;3.E()}}});'
,
62
,
188
,
'|||_2112241400380|dataIndex|let|text|value|width|return|filter|false|function||Ext|if|isBilled|xtype|_2112241400382|_2112241400381|format|null||_2112241400383|Finances|100|_2112241400385|displayInfo|true|_2112241400384|String|Settlement|summaryRenderer|||sum|summaryType|Kivii|fa|summaryData|reload|this|_2112241400386|getView|delete|new|OperateTimeGreaterThanOrEqualTo|_2112241400387|90|right|align|listeners|Date|reference|toFixed|Control|select|labelWidth|App|_2112241400388||OperateTimeLessThan|_2112241400389|editable|times|setValue|cls|store|120|PayerName|BizId|weight|clear|datefield|_21122414003812|setFilter|fieldLabel|triggers|OperateTime|startTime|_21122414003810|handler|getFullYear|getMonth|flex|_21122414003813|Entities|Bill|toast|getDate|Selector|IsBilled|endTime|renderer|_21122414003811|OperatorName|data|dataSource|Restful|extend|已做账单|System|开始|entityType|时间范围|未做账单|EntitySelector|结束|全部|fields|extensible|pruneRemoved|pageSize|define|checkboxSelect|checkboxmodel|selType|50|selModel|sorters|property|direction|DESC|tbar|combo|queryMode|local|displayField|valueField|filterPickList|IsPayed|json|QueryEx|autoLoad|dateRenderer|60|searchField|已付金额|Type|类型|操作人|Summary|摘要|200|Remark|备注|minWidth|controller|_21122414003814|_21122414003817|Report|报告费|Service|服务费|Express|快递费|_21122414003816|_21122414003815|getReferences|请选择开始时间|开始日期不能大于结束日期|结算金额|Amount|AmountPayment|AmountPlan|queryField|emptyText|模糊搜索付款单位|所属业务或操作人|columns|defaults|menuDisabled|sortable|items|rownumberer|所属业务|原金额|合计|170|所属部门|OwnerName|Const|Format|require|操作日期|付款单位||util'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.Bill.Template.Selector.js
0 → 100644
View file @
5ef2d2e1
//Version:0.03
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.K(
\'
e.5.4.3.8.a.9
\'
,{p:
\'
o.5.n
\'
,m:
\'
4.l.k.j
\'
,7:
\'
e.5.4.3.8.a.9
\'
,h:{g:
\'
/3/8/f
\'
},q:r,C:{t:L},i:[{7:
\'
J
\'
,b:1,I:H,G:
\'
c
\'
,F:
\'
E
\'
}],M:[{7:
\'
D
\'
},{2:
\'
c
\'
,0:
\'
B
\'
,6:A},{2:
\'
z
\'
,0:
\'
y
\'
,6:d},{2:
\'
x
\'
,0:
\'
w
\'
,6:d},{2:
\'
v
\'
,0:
\'
u
\'
,b:1}]});'
,
49
,
49
,
'text||dataIndex|Finances|Kivii|Control|width|xtype|Bill|Selector|Template|flex|Name|80|App|Files|FolderPath|globalFilter|tbar|DbFile|Entities|Storages|entityType|EntitySelector|System|extend|selModel|false|Ext|autoLoad|所属路径|DbFolderPath|版本|Version|文件类型|Extension|150|文件名称|store|rownumberer|模糊搜索文件名称|emptyText|queryField|60|labelWidth|searchField|define|true|columns'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.Debiting.Payment.Selector.js
0 → 100644
View file @
5ef2d2e1
//Version:0.05
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
;}(
'g.1z(
\'
b.a.4
\'
);g.12(
\'
b.9.7.4.e.6.o
\'
,{11:
\'
10.9.Z
\'
,X:
\'
7.4.c.6
\'
,5:
\'
b.9.7.4.e.6.o
\'
,U:
\'
/T/7.4.c.6/P.N
\'
,13:{},M:f,z:{A:B,C:L,D:[{E:
\'
l
\'
,F:
\'
G
\'
}]},I:[{5:
\'
J
\'
,K:
\'
O
\'
,r:1,14:1h,16:
\'
p
\'
,15:
\'
1n
\'
}],1o:[{5:
\'
1p
\'
,8:
\'
1q
\'
,1r:f},{2:
\'
1u
\'
,0:
\'
p
\'
,3:1v},{2:
\'
1w
\'
,8:
\'
h
\'
,0:
\'
i
\'
,j:w.a.v,3:k},{2:
\'
1x
\'
,8:
\'
h
\'
,0:
\'
i
\'
,j:
\'
x
\'
,3:k},{5:
\'
1i
\'
,2:
\'
1k
\'
,1g:
\'
Y-m-d H:m
\'
,0:
\'
l
\'
,3:n},{2:
\'
1e
\'
,0:
\'
1d
\'
,3:1c},{2:
\'
1b
\'
,0:
\'
1a
\'
,3:19},{2:
\'
18
\'
,0:
\'
17
\'
,3:n},{2:
\'
1m
\'
,0:
\'
y
\'
,r:1}],1f:{x:1j(s,t,u,1t){1l q=s-u.1y.1s;t.Q=
\'
R-S:#V
\'
;W w.a.v(q)}}});'
,
62
,
98
,
'dataIndex||text|width|Finances|xtype|Payment|Kivii|align|Control|Const|App|Entities||Debiting|false|Ext|right|Amount|renderer|110|OperateTime||150|Selector|PayerName|_2112101513030|flex|_2112101513033|_2112101513031|_2112101513032|FinancesFunctionsMoneyToFmoney|KiviiContext|_2112101513034|Remark|store|autoLoad|true|pageSize|sorters|property|direction|DESC||tbar|searchField|reference|50|selModel|json|searchfield|InvoiceDebitQuery|style|background|color|Restful|dataSource|B4EEB4|return|entityType||EntitySelector|System|extend|define|filter|labelWidth|emptyText|queryField|Summary|摘要|180|PayerAccountSerialNumber|付款账号|280|PayerAccountName|付款银行|controller|format|60|datecolumn|function|发生日期|let|备注|模糊搜索付款单位|columns|rownumberer|center|resizable|AmountInvoice|_2112101513035|付款单位|220|发生金额|可用金额|data|require'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.InvoiceApply.Execute.Form.js
0 → 100644
View file @
5ef2d2e1
//Version:0.22
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
;}(
't.5I(
\'
13.3i.T
\'
);t.4Q(
\'
13.11.X.T.1J.2g.1W
\'
,{43:
\'
44.11.46
\'
,b:
\'
13.11.X.T.1J.2g.1W
\'
,47:
\'
X.T.2U.1J
\'
,K:{1L:
\'
48
\'
,49:
\'
4a
\'
,M:
\'
4b
\'
},1S:m,4c:
\'
3j
\'
,3t:{4d:{2L:l(1F){7 3h=1F(
\'
8.k
\'
);B 4e.3i.4f(3h)},4g:l(1F){7 1M=1F(
\'
8.24
\'
);1b(1M===
\'
4i
\'
)B w;1b(1M===
\'
4j
\'
)B m;B w}}},3e:[{b:
\'
1R
\'
,1Y:
\'
P
\'
,h:[{j:
\'
0 0 -9 3
\'
,b:
\'
Q
\'
,e:{v:
\'
4k:{1s.4y},4x:{1s.k}
\'
},3z:{3y:
\'
3K
\'
}},
\'
->
\'
,{s:
\'
4w
\'
,Z:
\'
x-N N-4v
\'
,1u:
\'
12
\'
,1E:
\'
33
\'
,e:{3V:
\'
{!4u}
\'
}}]}],h:[{b:
\'
L
\'
,E:3p,K:
\'
1v
\'
,h:[{b:
\'
L
\'
,j:
\'
10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&6;&6;&6;&6;&6;5i
\'
,u:1,e:{v:
\'
{8.4Z}
\'
}},{p:
\'
4Y&6;&6;&6;&6;&6;&6;&6;4D
\'
,4F:
\'
4G
\'
,u:1,e:{v:
\'
{8.4I}
\'
}}]}],3O:l(1G){7 g=W;7 A=g.V();7 3a=g.4J();A.1p(
\'
8
\'
,1G);7 2d={};t.4K(2d,1G);A.1p(
\'
1s
\'
,2d);7 S=3a.29.1I();7 c={};c.2c="2E";c.2b="2C";c.2B="2A";c.1l=0.2z;c.J=1;c.k=d(1G.k.y(2));c.2a=
\'
2j
\'
;c.C=(d(c.k)/(1+d(c.1l))).y(2);c.Y=(d(c.k)-d(c.C)).y(2);c.1n=(d(c.k)/d(c.J)).y(2);c.1o=(d(c.C)/d(c.J)).y(2);S.2m(c)},2I:{33:l(){7 n=W;7 g=n.18();7 A=n.V();7 S=g.5P(
\'
5Q
\'
).1I().a;7 28=[];30(7 i=0;i<S.h.2Z;i++){1b(S.h[i].a.k<=0)5O;28.5K(S.h[i].a)}7 1t=A.a.8;1b(1t.k!==A.a.1s.k){t.2O("5M!");B}t.5H.5o({5p:
\'
/5q/X.T.2U.1J/2g.5t
\'
,5x:{5G:1t,29:28},4A:l(25){7 3d=t.3Z(25.42);t.2O(
\'
4l
\'
);g.4m(
\'
4p
\'
,n,3d)},4h:l(25){}})}}});'
,
62
,
368
,
'||||||nbsp|let|entity||data|xtype|item|parseFloat|bind|_2112301614481|_2112301614480|items||margin|Amount|function|true|_2112301614482||fieldLabel|_2112301614483|width|text|Ext|columnWidth|value|false||toFixed|_2112301614484|_2112301614485|return|AmountUntaxed|_2112301614486|height|style|right|dataIndex|_2112301614487|Quantity|layout|container|align|fa|allowBlank|top|displayfield|180|_2112301614488|Finances|10px|getViewModel|this|Kivii|AmountTax|iconCls||Control|left|App|renderer|textfield|_2112301614489|span|getView|border|solid|if|selection|replace|usMoney|Format|font|size|util|C1C1C1|editor|TaxRate|16px|QuantityUnitPrice|QuantityUnitPriceUntaxed|set|_21123016144811|readOnly|owner|_21123016144815|iconAlign|column|_21123016144814|号|_21123016144812|div|_21123016144810|word|1px|flex|handler|get|_21123016144813|120|getStore|InvoiceApply|_21123016144816|type|_21123016144818|defaults|modifyEntity|_21123016144819|不含税|toolbar|autoScroll|fit|window|_21123016144817|Form|含税|dock|color||green|listeners|enforceMaxLength|Type|_21123016144822|80|labelWidth|_21123016144820|Details|QuantityUnit|GoodsFullName|GoodsId|_21123016144821|人|开|Execute|labelAlign|65|次|150|金额|add|value1|editable|numberfield|hideTrigger|PayeeBankAccount|称|单价|change|windowSelector|value2|100|方|06|3040601000000000000|GoodsModel|产品质量委托检验|value3|发票1|value4|名|hidden|controller|keyField|总额|amountChineseBig|Selector|InvoiceTitle|toast|BankAccount|value5Field|BankName|value4Field|Phone|Entities|value3Field|value2Field|TaxNumber|value1Field|length|for|CompanyName|valueField|_21123016144832|maxLength||Kvid|CompanyAddress|break|wrap|_21123016144831|地|址|_21123016144833|dockedItems|PayeeCompanyAddress|电|_21123016144835|Const|execute|话|Payee|PayeePhone|_21123016144828|Metadata|200|行|PayeeRegisteredBank|账|viewModel|_21123016144827|_21123016144829|_21123016144830|户|fontSize|fieldStyle|create|center|38px|html|5px|hbox|PayerBankAccount|PayerRegisteredBank|PayerPhone|_21123016144823|20px|_21123016144825|_21123016144824|PayerCompanyAddress|setOwner|PayerTaxNumber|_21123016144834|value5|edit|纳|税|disabled|PayeeTaxNumber|_21123016144826|key|decode|PayeeName|PayeeOperatorName|responseText|extend|System||EntityForm|entityType|vbox|pack|start|stretch|id|formulas|KiviiContext|FinancesFunctionsMoneyToChineseBig|isVAT|failure|VATS|VAT|申请人|已进入开票列队中|fireEvent|售|销|entityExecuted|PayerName|PayeeKvid|PayerKvid|购|formIsValid|save|开票|总金额|CreatorName|买|success|编辑|entityList|注|InvoiceApplyDetail|emptyText|备注信息会在开具的发票备注栏体现|getData|Remark|getReferences|apply|trash|removeEntity|sortable|menuDisabled|操作|define|actioncolumn|款|收|税额|undefined|header|190|备|Summary||clearSelections|复|close|核|entityUpdated|on|ReviewerName|show|resizable|_21123016144838|modal|550|900|票|_21123016144839|OperatorName|摘|要|title|Window|税率|_21123016144837|red|request|url|Restful|bottom|添加|json|_21123016144836|选中列以编辑|总税额|jsonData|getCmp|datachanged|autoSync|pageSize|store|null|400|reference|Item|Ajax|require|rownumberer|push|columns|申请明细金额与申请原始金额不一致|GoodsSpecifications|continue|down|gridpanel|规格型号|数量|名称|组别|单位'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.InvoiceApply.Form.js
0 → 100644
View file @
5ef2d2e1
//Version:0.60
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
;}(
'f.3m(
\'
J.2h.k
\'
);f.3u(
\'
J.G.t.k.1u.1S
\'
,{32:
\'
33.G.34
\'
,a:
\'
J.G.t.k.1u.1S
\'
,2B:
\'
t.k.1y.1u
\'
,z:{1l:
\'
36
\'
,37:{C:38,39:0}},3a:l,3b:{M:{1J:
\'
3c
\'
,1H:
\'
x-1N 1N-3d
\'
,O:[],4:{3e:{},K:1G,L:1G,1m:0,1q:
\'
2x
\'
,11:2i.3f.3g,3h:
\'
3i
\'
}},30:{2y:h(2n){e 2g=2n(
\'
4.1m
\'
);1E 2i.2h.3j(2g)}}},31:[{a:
\'
3k
\'
,2Z:
\'
1r
\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h(m,2X){e r=1z;e v=r.2w();e 6=r.1d();e q=6.M.4;f.1b.1a({19:
\'
/1s/t.k.1y.T/2s.1c
\'
,2t:{y:q.11},1p:h(i){e 7=f.1o(i.1n);1v(7.c.2v<=0)1E f.N(
\'
2z,2E!
\'
);6.8(
\'
4.11
\'
,7.c[0].y);6.8(
\'
4.2F
\'
,7.c[0].K);6.8(
\'
4.1x
\'
,7.c[0].13);6.8(
\'
4.1K
\'
,7.c[0].15);6.8(
\'
4.1I
\'
,7.c[0].16);6.8(
\'
4.1t
\'
,7.c[0].Y);6.8(
\'
4.1w
\'
,7.c[0].12)},1f:h(i){f.N(
\'
2u!
\'
)}})},2D:h(m){e r=1z;e v=r.2w();e 6=r.1d();m.1L(l);f.1b.1a({19:
\'
/1s/
\'
+v.2B+
\'
/3M.1c
\'
,3S:{3F:6.M.4,O:6.M.O},1p:h(i){e 7=f.1o(i.1n);f.N(
\'
3G!
\'
);m.1L(d);v.3V(
\'
3U
\'
,r,7.c[0])},1f:h(i){m.1L(d)}})}}});'
,
62
,
247
,
'|||nbsp|entity||_2112301615460|_2112301615461|set|bind|xtype|fieldLabel|Results|false|let|Ext|margin|function|_2112301615462|readOnly|Finances|true|_2112301615463|columnWidth|height|container|_2112301615466|_2112301615464|items|Kivii|value|_2112301615465|100||CompanyName|layout|applyType|180|small|allowBlank|style|right|Control|big|responsiveCls|App|Kvid|Type|data|toast|PaymentKvids|border|displayInfo|10px|width|InvoiceTitle|solid|PayerName|50|word|BankName|C1C1C1||PayeeName|BankAccount|TaxNumber|号|CompanyAddress|Phone|textfield|div|url|request|Ajax|json|getViewModel|labelWidth|failure|column|defaults|labelAlign|editable|valueField|type|Amount|responseText|decode|success|OperateType|top|Restful|PayeeRegisteredBank|InvoiceApply|if|PayeeBankAccount|PayeeTaxNumber|Entities|this|PayerBankAccount|PayerRegisteredBank|PayerPhone|PayerCompanyAddress|return|PayerTaxNumber|null|ButtonIcon|PayeePhone|ButtonText|PayeeCompanyAddress|setDisabled|value4|fa|value4Field|value5Field|window|税|Form|Selector|Payee|value5|key|value1|value3Field|value3|纳|value2|名|value1Field|38px|left|font|html|wrap|break|方|5px|hbox|value2Field|flex|65|_21123016154610|Const|KiviiContext|windowSelector|16px|称|keyField|get|1px|size|地|text|Query|params|请重试|length|getView|Debit|amountChineseBig|未找到对应抬头信息|Payment|entityType|_2112301615468|_2112301615467|请先添加|PayeeKvid|电|PayerKvid|账|_2112301615469|iconCls|行|址|户|话|开|controller|handler|60|formIsValid|200|购|买|_21123016154611|disabled|dock|formulas|dockedItems|extend|System|EntityForm||responsivecolumn|states|600|large|autoscroll|viewModel|申请|plus|Metadata|CurrentMember|OrganizationName|Currency|CNY|FinancesFunctionsMoneyToChineseBig|toolbar|afterrender|require|getReferences|setReadOnly|local|queryMode|申请类型|combo|金额大写|define|internalCode|发票类型|categoryField|decimalPrecision|minValue|hideTrigger|请输入数字|emptyText|申请金额|numberfield|Item|申请成功|displayField|reference|setOwner|listeners|Summary|Apply|要|摘|filterPickList|售|销|jsonData|借票申请|entityCreated|fireEvent|到账申请|fields|store'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.InvoiceApply.Payment.Selector.js
0 → 100644
View file @
5ef2d2e1
//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
;}(
'1F.1S(
\'
q.g.b.c.t.e.u
\'
,{P:
\'
Q.g.R
\'
,S:
\'
b.c.s.e
\'
,9:
\'
q.g.b.c.t.e.u
\'
,T:
\'
/U/b.c.s.e/V.W
\'
,X:{},Z:{12:a},1d:{13:
\'
14
\'
,15:a,16:v,N:
\'
y
\'
},18:[{19:
\'
0 3 -10 3
\'
,9:
\'
1a
\'
,1b:
\'
<j 1c="O:11">x,z</j>
\'
,A:{C:
\'
L
\'
}},{9:
\'
D
\'
,n:1,F:I,M:
\'
r,l,K,B
\'
,J:
\'
G、o、E
\'
}],17:{1e:{1E:a,1g:a},1V:[{9:
\'
1U
\'
,h:
\'
1T
\'
,1f:v},{4:
\'
1R
\'
,5:
\'
r
\'
,7:1Q},{4:
\'
o
\'
,5:
\'
l
\'
,7:1O},{4:
\'
1J
\'
,h:
\'
k
\'
,5:
\'
1X
\'
,7:1W},{4:
\'
1H
\'
,h:
\'
k
\'
,5:
\'
1I
\'
,7:p},{4:
\'
1G
\'
,5:
\'
1K
\'
,1L:
\'
w
\'
,7:p},{9:
\'
1M
\'
,4:
\'
1N
\'
,1P:
\'
Y-m-d H:i
\'
,5:
\'
1r
\'
,7:f},{4:
\'
1h
\'
,5:
\'
1i
\'
,7:f},{4:
\'
1j
\'
,5:
\'
1k
\'
,1l:f,n:1}]},1m:{w:1n(2,1o,1p,1q){8(2===
\'
1s
\'
){6
\'
1D
\'
}8(2===
\'
1t
\'
){6
\'
1u
\'
}8(2===
\'
1v
\'
){6
\'
1w
\'
}8(2===
\'
1x
\'
){6
\'
1y
\'
}8(2===
\'
1z
\'
){6
\'
1A
\'
}8(2===
\'
1B
\'
){6
\'
1C
\'
}6 2}}});'
,
62
,
122
,
'||_2112101359530||text|dataIndex|return|width|if|xtype|true|Kivii|Finances||Payment|150|Control|align||div|right|PayerName||flex|付款单位|100|App|SerialNumber|Entities|InvoiceApply|Selector|false|_2112101359531|若未找到开票收款||请先到账管理中认领|fieldStyle|PayerAccountSerialNumber|fontSize|searchField|收付款账号或名称|labelWidth|模糊搜索流水号||60|emptyText|PayerAccountName|20px|queryField|extensible|color|extend|System|EntitySelector|entityType|dataSource|Restful|InvoiceApplyQuery|json|filter||store||red|autoLoad|selType|checkboxmodel|checkboxSelect|pruneRemoved|columns|tbar|margin|displayfield|value|style|selModel|defaults|resizable|sortable|摘要|Summary|备注|Remark|minWidth|controller|function|_2112101359534|_2112101359533|_2112101359532|OperateTime|Cash|Pos|刷卡|AliPay|支付宝|WeChat|微信|Bank|银行转账|Split|已认领到账|现金|menuDisabled|Ext|付款类型|开票金额|AmountInvoice|发生金额|Type|renderer|datecolumn|发生日期|220|format|120|流水号|define|center|rownumberer|items|110|Amount'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.InvoiceApplyDetail.Form.js
0 → 100644
View file @
5ef2d2e1
//Version:0.06
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
;}(
'2e.1L(
\'
13.F.t.s.q.17
\'
,{1E:
\'
1D.F.1C
\'
,7:
\'
13.F.t.s.q.17
\'
,G:
\'
t.s.E.q
\'
,1i:{1B:
\'
1g
\'
,1A:{b:1z,1y:0}},1x:{N:{4:{},O:0},1w:{1v:I(v){a u=v(
\'
4.A
\'
);a D=v(
\'
4.14
\'
);a Y=v(
\'
4.H
\'
);a B=(g(u)/(1+g(Y))).o(2);a T=(g(u)-g(B)).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:e,i:e,c:
\'
f-w b-6
\'
,8:
\'
{4.1j}
\'
},{7:
\'
j
\'
,d:
\'
16(1a)
\'
,n:e,i:e,c:
\'
f-C b-6
\'
,8:
\'
{4.1c}
\'
},{7:
\'
j
\'
,d:
\'
1b(1a)
\'
,n:e,i:e,c:
\'
f-w b-6
\'
,8:
\'
{4.18}
\'
},{7:
\'
j
\'
,d:
\'
1T
\'
,n:e,i:e,c:
\'
f-C b-6
\'
,8:
\'
{4.19}
\'
},{7:
\'
1W
\'
,d:
\'
1q
\'
,c:
\'
f-6 b-6
\'
,n:h,8:{K:
\'
{4.1X}
\'
}}],1V:I(P,M){a r=k;a p=r.V();p.m(
\'
4
\'
,P);a L=0;1U(a z=0;z<M.1S;z++){a 1h=M[z].N;L+=1h.A}p.m(
\'
O
\'
,L.o(2))},1N:{Z:I(1M){a J=k,r=J.1F();a p=J.V();r.1s(
\'
1t
\'
,r,p.N.4)}}});'
,
62
,
139
,
'||||entity|nbsp|100|xtype|bind||let|small|responsiveCls|fieldLabel|true|big|parseFloat|false|hideTrigger|numberfield|this|allowBlank|set|readOnly|toFixed|_2111171511070|InvoiceApplyDetail|_2111171511071|Finances|Kivii|_2111171511072|get|60||textfield|_2111171511074|Amount|_2111171511073|40|_2111171511075|Entities|Control|entityType|TaxRate|function|_2111171511078|value|_2111171511077|_2111171511076|data|currentAmount|_21111715110710|GoodsId|_21111715110711|_21111715110712|_21111715110713|categoryField|getViewModel|fieldStyle|internalCode|_21111715110715|_2111171511079||displayfield|fa|App|Quantity|margin|单价|Form|AmountUntaxed|AmountTax|不含税|金额|QuantityUnitPriceUntaxed|fontSize|20px|含税|responsivecolumn|_21111715110714|layout|QuantityUnitPrice|autoScroll|defaults|已有明细总额|labelWidth|tbar|80|备注|return|fireEvent|entityUpdated|当前明细金额|calculating|formulas|viewModel|large|1000|states|type|EntityForm|System|extend|getView|text|formIsValid|iconCls|税|率|define|_21111715110716|controller|数|量|数量单位|QuantityUnit|length|税额|for|setOwner|textarea|MatchText|保存|货品规格||GoodsSpecifications|货品名称|link|iconAlign|GoodsFullName|handler|disabled|left|组别是用于当前申请多张发票时|不同组别会分别开具到对应组别的发票上|组|别|items|Ext'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.InvoiceTitle.Form.js
0 → 100644
View file @
5ef2d2e1
//Version:0.03
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
;}(
'T.1m(
\'
l.8.7.6.5.h
\'
,{C:
\'
D.8.E
\'
,F:
\'
7.6.G.5
\'
,i:
\'
l.8.7.6.5.h
\'
,H:{J:
\'
Q
\'
,K:{k:L,z:0}},N:[
\'
->
\'
,{O:
\'
P
\'
,B:
\'
x-m m-I
\'
,w:
\'
v
\'
,u:
\'
d
\'
,2:{s:
\'
{!r}
\'
}}],p:{y:o,t:
\'
q
\'
,i:
\'
M
\'
,R:
\'
0 10 10 10
\'
,1o:
\'
1n-j k-j
\'
},1l:[{3:
\'
1k
\'
,2:
\'
{4.1j}
\'
,f:e},{3:
\'
1i&1;&1;&1;&1;&1;&1;&1;1h
\'
,2:
\'
{4.1g}
\'
,f:e,1f:/^[A-a-9]{15}$|^[A-a-9]{18}$|^[A-a-9]{19}$/,17:
\'
16,
\\
n
\\
13,12,11
\'
},{3:
\'
Z
\'
,2:
\'
{4.Y}
\'
},{3:
\'
X
\'
,2:
\'
{4.W}
\'
},{3:
\'
V
\'
,2:
\'
{4.U}
\'
},{3:
\'
1a
\'
,2:
\'
{4.1q}
\'
}],14:{d:1b(){b c=1p;b 1c=c.1d();b g=c.1e();g.S()}}})'
,
62
,
89
,
'|nbsp|bind|fieldLabel|entity|InvoiceTitle|Finances|Kivii|Control||Z0|let|_2111171430340|_2111171430342|false|allowBlank|_2111171430341|Form|xtype|100|small|App|fa||60|defaults|right|formIsValid|disabled|labelAlign|handler|left|iconAlign||labelWidth|large||iconCls|extend|System|EntityForm|entityType|Entities|layout|save|type|states|1000|textfield|tbar|text|保存|responsivecolumn|margin|saveEntity|Ext|BankName|开户银行|Phone|电话号码|CompanyAddress|单位地址||20位|18位|n15位|controller||请输入正确的税号|regexText||20|银行账户|function|_2111171430343|getViewModel|getView|regex|TaxNumber|号|税|CompanyName|公司名称|items|define|big|responsiveCls|this|BankAccount'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.InvoiceTitle.Selector.js
0 → 100644
View file @
5ef2d2e1
//Version:0.05
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
;}(
'4.1t(
\'
f.b.a.7.8.1n
\'
,{G:
\'
v.b.w
\'
,z:
\'
a.7.I.8
\'
,J:{},K:t,N:{P:d},Q:[{k:
\'
R
\'
,m:1,U:u,V:
\'
l,n
\'
,S:
\'
O
\'
},{0:
\'
M
\'
,L:
\'
x-i i-H
\'
,r:
\'
s
\'
,F:
\'
h
\'
}],E:[{k:
\'
D
\'
,C:
\'
B
\'
,},{0:
\'
A
\'
,2:
\'
l
\'
,3:j},{0:
\'
y
\'
,2:
\'
n
\'
,3:T},{0:
\'
W
\'
,2:
\'
1l
\'
,Y:1g,m:1},{0:
\'
1h
\'
,2:
\'
1i
\'
,3:1j},{0:
\'
1k
\'
,2:
\'
1m
\'
,3:1s},{0:
\'
1o
\'
,2:
\'
1p
\'
,3:j}],1q:{h:c(1r){6 g=1f;6 p=g.1e();6 9=4.o(
\'
f.b.a.7.8.1d
\'
);6 5=4.o(
\'
4.1c.1b
\'
,{1a:
\'
19
\'
,r:
\'
s
\'
,18:d,3:17,16:15,14:d,13:t,12:[9]});5.11();9.e(
\'
10
\'
,c(){5.q()});5.e(
\'
q
\'
,c(){p.Z().X()})}}});'
,
62
,
92
,
'text||dataIndex|width|Ext|_2111171415440|let|Finances|InvoiceTitle|_2111171415441|Kivii|Control|function|true|on|App|_2111171415443|_2111171415444|fa|150|xtype|CompanyName|flex|TaxNumber|create|_2111171415442|close|iconAlign|left|false|60|System|EntitySelector||税号|entityType|公司名称|center|align|rownumberer|columns|handler|extend|plus|Entities|filter|selModel|iconCls|添加|store|模糊搜索公司名称|autoLoad|tbar|searchField|emptyText|160|labelWidth|queryField|公司地址|reload|minWidth|getStore|entityCreated|show|items|resizable|modal|380|height|560|autoScroll|fit|layout|Window|window|Form|getView|this|100|电话号码|Phone|120|开户银行|CompanyAddress|BankName|Selector|银行账户|BankAccount|controller|_2111171415445|200|define'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.Paying.Payment.Selector.js
0 → 100644
View file @
5ef2d2e1
//Version:0.16
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
;}(
'L.2n(
\'
D.q.h
\'
);L.1A(
\'
D.z.l.h.S.k.R
\'
,{1r:
\'
1l.z.1k
\'
,1i:
\'
l.h.V.k
\'
,p:
\'
D.z.l.h.S.k.R
\'
,1x:
\'
/1C/l.h.V.k/1g.1h
\'
,1j:{},1n:t,1o:{1p:v,1q:1s,1t:[{1u:
\'
N
\'
,1v:
\'
1w
\'
}]},1e:[{p:
\'
1y
\'
,1z:
\'
H
\'
,K:1,1f:1B,a:
\'
s
\'
,1a:
\'
10
\'
}],11:v,12:{13:{1c:v,18:t},19:[{p:
\'
1d
\'
,r:
\'
1b
\'
,14:t},{5:
\'
17
\'
,2:
\'
s
\'
,6:16},{5:
\'
15
\'
,r:
\'
u
\'
,2:
\'
y
\'
,o:C.q.A,6:O},{5:
\'
1m
\'
,r:
\'
u
\'
,2:
\'
y
\'
,o:
\'
F
\'
,6:O},{5:
\'
2b
\'
,r:
\'
u
\'
,2:
\'
1E
\'
,o:
\'
J
\'
,6:w},{p:
\'
24
\'
,5:
\'
25
\'
,26:
\'
Y-m-d
\'
,2:
\'
N
\'
,6:w},{5:
\'
27
\'
,2:
\'
28
\'
,o:
\'
Z
\'
,6:w},{5:
\'
29
\'
,2:
\'
2a
\'
,6:2d},{5:
\'
2c
\'
,2:
\'
2m
\'
,6:2e},{5:
\'
1D
\'
,2:
\'
2f
\'
,6:2g},{5:
\'
2h
\'
,2:
\'
2i
\'
,K:1}]},2j:n(G){9 8=2k;9 I=8.2l();9 j=I.H;j.23(G.s);9 i={};i.22=j.a;i.21=j.U();9 x=8.20(
\'
1F[a]
\'
);1G(9 X 1H x){f=x[X];3(f===8)T;3(!f.a)T;0=f.U();i[f.a]=0}8.1I(i);8.Q&&8.Q()},1J:{Z:n(0,7,g,B){7.e=
\'
c-b:#M
\'
;3(0===
\'
1K
\'
){7.e=
\'
c-b:#W
\'
;4
\'
1L
\'
}3(0===
\'
1M
\'
){7.e=
\'
c-b:#1N
\'
;4
\'
1O
\'
}3(0===
\'
1P
\'
){4
\'
1Q
\'
}3(0===
\'
1R
\'
){4
\'
1S
\'
}3(0===
\'
1T
\'
){4
\'
1U
\'
}3(0===
\'
1V
\'
){4
\'
1W
\'
}3(0===
\'
1X
\'
){4
\'
1Y
\'
}4 0},F:n(0,7,g,B){9 P=0-g.E.1Z;7.e=
\'
c-b:#M
\'
;4 C.q.A(P)},J:n(0,7,g,B){3(0!==g.E.y){7.e=
\'
c-b:#W
\'
}4 C.q.A(0)},}});'
,
62
,
148
,
'_2112201606230||dataIndex|if|return|text|width|_2112201606231|_2112201606232|let|queryField|color|background||style|_2112201606235|_2112201606233|Finances|_2112201606234|_2112201606236|Payment|Kivii||function|renderer|xtype|Const|align|PayerName|false|right|true|100|_2112201606238|Amount|Control|FinancesFunctionsMoneyToFmoney|_2112201606237|KiviiContext|App|data|_21122016062311|_21122016062314|searchfield|_21122016062315|_2112201606239|flex|Ext|B4EEB4|OperateTime|110|_21122016062310|reload|Selector|Paying|continue|getRawValue|Entities|F0E68C|_21122016062313||_21122016062312|模糊搜索付款单位|columnLines|columns|defaults|resizable|发生金额|210|付款单位|sortable|items|emptyText|center|menuDisabled|rownumberer|tbar|labelWidth|PayQuery|json|entityType|filter|EntitySelector|System|可用金额|selModel|store|autoLoad|pageSize|extend|50|sorters|property|direction|DESC|dataSource|searchField|reference|define|60|Restful|摘要|AmountInvoice|field|for|in|setSearchFilter|controller|UnBiz|非业务|Refund|FFC0CB|退款|Split|业务认领|Pos|刷卡|Cash|现金|AliPay|支付宝|WeChat|微信支付|AmountUsed|query|QueryValues|QueryKeys|setValue|datecolumn|发生日期|format|付款类型|Type|付款银行|PayerAccountName|开票金额|付款账号|280|180|Summary|150|备注|Remark|setOwner|this|getReferences|PayerAccountSerialNumber|require'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.Payment.Accept.Form.js
0 → 100644
View file @
5ef2d2e1
//Version:0.07
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
;}(
'm.2C(
\'
K.D.F.H.I.C.T
\'
,{1U:
\'
1u.D.1v
\'
,Y:
\'
F.H.1w.I
\'
,g:
\'
K.D.F.H.I.C.T
\'
,1B:j,1C:
\'
1E
\'
,1O:{g:
\'
1F
\'
,1G:n,1H:
\'
1I
\'
,8:
\'
7-1J 5-3
\'
,},1K:{q:{w:
\'
1s
\'
,r:
\'
x-L L-1N
\'
,4:{1t:{},1D:t,s:t,k:
\'
M
\'
,1r:1d.1b.17,19:
\'
1a
\'
}}},1c:[
\'
->
\'
,{1e:
\'
W
\'
,6:{13:
\'
{w}
\'
,16:
\'
{r}
\'
,18:
\'
{!1q}
\'
}}],1h:[{b:
\'
1i
\'
,8:
\'
7-n 5-3
\'
,o:d,6:
\'
{4.1j}
\'
},{g:
\'
1g
\'
,b:
\'
1k
\'
,1l:
\'
1m
\'
,1n:j,8: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c f=i.X();c h=i.10();c v=h.q.4;25(v.s===t)20;i.12(e,v)},12:l(e,G){c i=y;c f=i.X();e.A(j);m.1V.1T({1S:
\'
/2d/
\'
+f.Y+
\'
/C.2f
\'
,2q:{2g:G,k:G.k},2A:l(E){c Z=m.2y(E.2w);m.11("2k!");f.1M(
\'
1A
\'
,f,Z.1z);e.A(d)},1y:l(E){m.11("1x!");e.A(d)}})}}});'
,
62
,
163
,
'|nbsp||100|entity|small|bind|big|responsiveCls|name|type|fieldLabel|let|false|_2112291523290|_2112291523291|xtype|_2112291523293|_2112291523292|true|OwnerType|function|Ext|60|allowBlank|40|data|ButtonIcon|Type|null|set|_2112291523296|ButtonText||this|editable|setDisabled|reference|Accept|Control|_2112291523294|Kivii|_2112291523295|Finances|Payment|fields|App|fa|Organization|combo|queryMode|local|displayField|valueField|filterPickList|Form|_21122915232911|store|_2112291523299|getView|entityType|_2112291523297|getViewModel|toast|_2112291523298|text|_21122915232910|PaymentType|iconCls|OrganizationName|disabled|Currency|CNY|CurrentMember|tbar|KiviiContext|handler|getReferences|numberfield|items|付款单位|PayerName|发生金额|emptyText|请输入数字|hideTrigger|amount|minValue|formIsValid|PayeeName|新增|Metadata|System|EntityForm|Entities|新增失败|failure|Results|entityCreated|autoScroll|layout|Kvid|responsivecolumn|textfield|labelWidth|labelAlign|right|50|viewModel|decimalPrecision|fireEvent|plus|defaults|value|OperateTime|datefield|url|request|extend|Ajax|当前组织|当前部门|Department|当前人员|return|Member|摘|要|Summary|if|textarea|备|注|controller|setReadOnly|Remark|setOwner|Restful|Amount|json|Item|操作日期|类|型|新增成功|银行到账|Bank|现金|Cash|刷卡|jsonData|Pos|PayerAccountOwnerName|银行卡号|PayerAccountSerialNumber|付款银行|responseText|PayerAccountName|decode|所属范围|success|付款账户|define'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.Payment.Filter.Form.js
0 → 100644
View file @
5ef2d2e1
//Version:0.18
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.2c(
\'
x.R.q
\'
);b.1V(
\'
x.A.z.q.v.U.T
\'
,{1p:
\'
1q.A.1r
\'
,Y:
\'
z.q.1s.v
\'
,l:
\'
x.A.z.q.v.U.T
\'
,1z:m,1A:{L:
\'
1B
\'
,1n:{E:1o,1v:0}},1e:{7:{o:j,5:0,t:[],d:j,s:j,w:j},17:{M:k(S){3 9=S(
\'
5
\'
);i 19.R.1b(9)}}},1c:[
\'
->
\'
,{1l:
\'
1d
\'
,1f:
\'
Z
\'
,D:{V:
\'
{s}
\'
,X:
\'
{w}
\'
,1g:
\'
{!1h}
\'
,1i:
\'
{!s}
\'
}}],1j:{1k:
\'
0 10 10 10
\'
,1C:1E,1N:
\'
1G
\'
,l:
\'
Q
\'
},1Z:[{l:
\'
1F
\'
,N:
\'
20
\'
,21:
\'
22
\'
,25:m,P:
\'
O-p E-p
\'
,24:
\'
C
\'
,26:0,27:2,D:{K:
\'
{5}
\'
},28:29},{l:
\'
Q
\'
,P:
\'
O-p E-p
\'
,N:
\'
1X
\'
,1H:m,D:{K:
\'
{M}
\'
}}],1L:k(f,h){3 6=11;3 4=6.12();3 H=6.1M();3 c=h.L;e(f.F<=0)i;4.a(
\'
s
\'
,h.V);4.a(
\'
w
\'
,h.X);e(f.F>1){4.a(
\'
o
\'
,
\'
16
\'
+c);H.C.1P(m);3 B=[];3 9=0;1R(3 u=0;u<f.F;u++){3 8=f[u].7;B.1S(8.d);9+=n(n(8.5-8.J).I(2))}4.a(
\'
5
\'
,9);4.a(
\'
t
\'
,B)}15{4.a(
\'
o
\'
,c);3 8=f[0].7;3 9=n(n(8.5-8.J).I(2));H.C.1m(9);4.a(
\'
5
\'
,9);4.a(
\'
d
\'
,8.d)}},1U:{Z:k(h){3 r=11;3 6=r.1T();3 4=r.12();3 c=4.7.o;e(c===j)i;e(4.7.5<=0){b.y(
\'
1Q!
\'
);i}3 g={};e(c.1O(
\'
16
\'
)!==-1)g.t=4.7.t;15{g.5=4.7.5;g.d=4.7.d}e(g==={})i;6.1K(
\'
1J...
\'
);3 13=
\'
/1I/
\'
+6.Y+
\'
/
\'
+c+
\'
.1W
\'
;b.23.1Y({2b:13,2a:g,1a:k(G){3 14=b.18(G.1y);6.W();b.y(
\'
1x!
\'
);6.1D(
\'
1w
\'
,r,14)},1u:k(G){b.y(
\'
1t!
\'
);6.W()}})}}});'
,
62
,
137
,
'|||let|_2112291526390|Amount|_2112291526391|data|_2112291526392|_2112291526393|set|Ext|_2112291526394|Kvid|if|_2112291526396|_2112291526395|_2112291526397|return|null|function|xtype|true|parseFloat|Type|100|Finances|_2112291526398|ButtonText|Kvids|_2112291526399|Payment|ButtonIcon|App|toast|Kivii|Control|_21122915263912|amount|bind|small|length|_21122915263910|_21122915263911|toFixed|AmountSplited|value|type|amountChineseBig|fieldLabel|big|responsiveCls|textfield|Const|get|Form|Filter|text|unmask|iconCls|entityType|_21122915263915||this|getViewModel|_21122915263914|_21122915263913|else|Multi|formulas|decode|KiviiContext|success|FinancesFunctionsMoneyToChineseBig|tbar|left|viewModel|handler|disabled|formIsValid|hidden|defaults|margin|iconAlign|setMaxValue|states|800|extend|System|EntityForm|Entities|操作失败|failure|large|entitySplited|操作成功|responseText|autoScroll|layout|responsivecolumn|labelWidth|fireEvent|60|numberfield|right|readOnly|Restful|数据通讯中|mask|setOwner|getReferences|labelAlign|indexOf|setReadOnly|无可操作金额|for|push|getView|controller|define|json|金额大写|request|items|认领金额|emptyText|请输入数字|Ajax|reference|hideTrigger|minValue|decimalPrecision|allowBlank|false|jsonData|url|require'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.Payment.Offset.List.js
0 → 100644
View file @
5ef2d2e1
//Version:0.12
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
;}(
'a.3t(
\'
W.14.r
\'
);a.3F(
\'
W.X.w.r.z.1P.1O
\'
,{1U:
\'
20.X.22
\'
,27:
\'
w.r.13.z
\'
,f:
\'
W.X.w.r.z.1P.1O
\'
,25:
\'
/1N/w.r.13.z/2e.1K
\'
,2b:
\'
2a
\'
,u:
\'
x-q q-1H-28-o
\'
,C:{P:5 4(5 4().n(),5 4().p(),1),O:5 4(5 4().n(),5 4().p(),5 4().E()+1)},26:{F:{Z:1L}},11:{S:
\'
{Z}
\'
},2g:{24:D,23:1W,2h:[{2K:
\'
1n
\'
,2J:
\'
2I
\'
}]},2G:{2F:
\'
2C
\'
,2A:D,2y:L,2v:
\'
y
\'
},2u:[{2L:
\'
2N
\'
}],2j:[{f:
\'
2k
\'
,1f:
\'
2l
\'
,2m:D,R:[{f:
\'
2n
\'
,I:1j,u:
\'
x-q q-2o-2p-o
\'
,11:{8:
\'
2q{1a}1C,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:1s},{8:
\'
3P
\'
,7:
\'
3Q
\'
,1i:1}]},Q:{3R:
\'
1e
\'
},3S:{1g:e(){v.B().3T()},1e:e(t,1R){v.B().U()},1b:e(j,3U,3V,3u){9(j===
\'
3C
\'
){3
\'
3s
\'
}9(j===
\'
36
\'
){3
\'
35
\'
}9(j===
\'
34
\'
){3
\'
33
\'
}9(j===
\'
32
\'
){3
\'
31
\'
}9(j===
\'
2Z
\'
){3
\'
37
\'
}3 j},15:e(t,2Y,1R){6 b=v;6 c=b.B();6 N=b.2W();6 l=N.1z.g;6 A=N.1M.g||5 4();9(l===1L){a.V("2V!");3}9(l>A){a.V("2U!");3}1J c.C.P;1J c.C.O;c.C.P=5 4(l.n(),l.p(),l.E());c.C.O=5 4(A.n(),A.p(),A.E()+1);c.U()},1I:e(t){6 b=v;6 c=b.B();6 K=b.1E();6 k=K.F.1F||[];9(!c.S)3;9(k.J<=0)3;6 1D=a.2T(
\'
a.1H.2S
\'
,{u:t.u,2R:
\'
1G
\'
,2Q:
\'
2X
\'
});1D.39(t.8,
\'
3i
\'
+k.J+
\'
1C?
\'
,b.1B,b);3},1B:e(1Q){9(1Q!==
\'
3a
\'
)3;6 b=v;6 c=b.B();6 K=b.1E();6 k=K.F.1F||[];9(!c.S)3;9(k.J<=0)3;6 10=[];3q(6 G=0;G<k.J;G++){10.3p(k[G].F.3o)}a.3n.3m({3l:
\'
/1N/w.r.13.z/3k.1K
\'
,3r:{3j:10},3h:e(T){6 3g=a.3f(T.3e);a.V(
\'
3d!
\'
);c.U()},3c:e(T){3b.2O()}})}}});'
,
62
,
246
,
'|||return|Date|new|let|dataIndex|text|if|Ext|_2111181638110|_2111181638111||function|xtype|value|width||_2111181638113|_2111181638112|_2111181638114||getFullYear||getMonth|fa|Finances|format|_2111181638116|iconCls|this|Kivii|||Payment|_2111181638115|getView|filter|true|getDate|data|_2111181638117||labelWidth|length|_2111181638118|false|renderer|_21111816381113|OperateTimeLessThan|OperateTimeGreaterThanOrEqualTo|listeners|items|selection|_21111816381112|reload|toast|App|Control||_21111816381110|_21111816381111|bind|align|Entities|Const|_2111181638119|summaryRenderer|summaryData|summaryType|sum|selectionCount|_21111816381116|String|SerialNumber|_21111816381114|dock|_21111816381121|付款单位|flex|60|PayerName|PayerAccountSerialNumber|select|OperateTime|handler|editable|toFixed|reference|100|KiviiContext|PayerAccountName|datefield|FinancesFunctionsMoneyToFmoney|fieldLabel|right|startTime|150|_21111816381119|条记录|_21111816381118|getViewModel|selections|left|window|_21111816381117|delete|json|null|endTime|Restful|List|Offset|_21111816381120|_21111816381115|disabled|sortable|extend|模糊搜索流水号|800|收付款账号或名称|menuDisabled|撤销作废|System|defaults|EntityList|pageSize|autoLoad|dataSource|viewModel|entityType|close|columns|作废流水|title|emptyText|arrow|OffsetQuery|circle|store|sorters|searchField|dockedItems|pagingtoolbar|bottom|displayInfo|button|check|square|已选择|点击清除|hidden|toolbar|features|extensible|top|overflowHandler|pruneRemoved|menu|checkboxSelect|时间范围|checkboxmodel|开始|90|selType|selModel|结束|DESC|direction|property|ftype|queryField|summary|unmask|center|closeAction|iconAlign|MessageBox|create|开始日期不能大于结束日期|请选择开始时间|getReferences|destroy|_21111816381122|Bank||微信|WeChat|支付宝|AliPay|刷卡|Pos|银行转账|rownumberer|confirm|yes|_21111816381127|failure|撤销作废成功|responseText|decode|_21111816381126|success|您确认要撤销选中的|Kvids|OffsetCancel|url|request|Ajax|Kvid|push|for|jsonData|现金|require|_21111816381123|摘要|Summary|datecolumn|110|发生日期|Amount|发生金额|Cash|220|合计|define|付款银行|120|流水号|280|付款账号|resizable|180|付款类型|Type|备注|Remark|activate|controller|clearSelections|_21111816381125|_21111816381124|开票金额|AmountInvoice'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.Payment.Transfer.Form.js
0 → 100644
View file @
5ef2d2e1
//Version:0.32
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
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.Payment.Used.List.js
0 → 100644
View file @
5ef2d2e1
//Version:0.21
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
;}(
'e.3V(
\'
16.1l.v
\'
);e.46(
\'
16.15.G.v.B.1D.1b
\'
,{20:
\'
2k.15.2e
\'
,29:
\'
G.v.14.B
\'
,g:
\'
16.15.G.v.B.1D.1b
\'
,2L:
\'
/1V/G.v.14.B/2s.1e
\'
,2r:
\'
2A
\'
,C:
\'
x-w w-1A-2D
\'
,k:{1f:0,X:5 4(5 4().p(),5 4().q(),1),T:5 4(5 4().p(),5 4().q(),5 4().K()+1)},2N:{j:{W:F}},S:{17:
\'
{W}
\'
},2O:{2P:A,2R:2T,2C:[{2h:
\'
1E
\'
,2i:
\'
2g
\'
}]},2n:{2d:
\'
2b
\'
,28:A,24:I,21:
\'
y
\'
},2E:[{2J:
\'
2U
\'
}],2z:[{g:
\'
2t
\'
,1H:
\'
2S
\'
,2o:A,Z:[{g:
\'
2q
\'
,P:1C,C:
\'
x-w w-2u-2v-o
\'
,S:{9:
\'
2w{1k}1X,2x
\'
,2y:
\'
{1k==0}
\'
},1z:
\'
1h
\'
}]},{g:
\'
2B
\'
,1H:
\'
2F
\'
,2G:
\'
2H
\'
,Z:[{g:
\'
1c
\'
,19:
\'
2I 2K
\'
,O:
\'
Y-m-d
\'
,P:2M,1o:
\'
1Q
\'
,1x:I,l:5 4(5 4().p(),5 4().q(),1),U:{1p:
\'
10
\'
}},{g:
\'
1c
\'
,19:
\'
2Q
\'
,O:
\'
Y-m-d
\'
,P:30,1o:
\'
1P
\'
,1x:I,l:5 4(5 4().p(),5 4().q(),5 4().K()+1),U:{1p:
\'
10
\'
}},{g:
\'
2p
\'
,1d:1,P:1C,2f:
\'
1r,1t,1Z,1q,1n,1a
\'
,22:
\'
23、1s、25、26
\'
,},{9:
\'
27
\'
,C:
\'
x-w w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 6=c.z();3 J=c.1T();3 f=J.j.1R||[];8(!6.17)7;8(f.D<=0)7;3 1O=e.34(
\'
e.33.32
\'
,{C:r.C,31:
\'
2Z
\'
,2Y:
\'
36
\'
});1O.3g(r.9,
\'
3h
\'
+f.D+
\'
1X?
\'
,c.1W,c);7},1W:a(18){8(18!==
\'
3i
\'
)7;3 c=u;3 6=c.z();3 J=c.1T();3 f=J.j.1R||[];8(!6.17)7;8(f.D<=0)7;3 Q=[];3z(3 n=0;n<f.D;n++){8(f[n].j.1J==="1I")1L;8(f[n].j.1K(
\'
M
\'
)&&f[n].j.M!==F)1L;Q.3y(f[n].j.1M)}8(Q.D<=0){e.N("3x,3w!");7}e.3v.3u({3t:
\'
/1V/G.v.14.B/3s.1e
\'
,3r:{3q:Q},3p:a(13){3 3o=e.3n(13.3m);e.N(
\'
3l!
\'
);6.L()},3k:a(13){3j.2W()}})}}});'
,
62
,
257
,
'|||let|Date|new|_2112291654260|return|if|text|function|dataIndex|_2112291654261||Ext|_2112291654262|xtype|width||data|filter|value||_2112291654263||getFullYear|getMonth|_2112291654265|_2112291654266|_2112291654264|this|Finances|fa|||getView|true|Payment|iconCls|length|_2112291654267|null|Kivii||false|_21122916542610|getDate|reload|OffsetKvid|toast|format|labelWidth|_2112291654269|_2112291654268|bind|OperateTimeLessThan|listeners|_21122916542611|_21122916542614|OperateTimeGreaterThanOrEqualTo||items|_21122916542612|_21122916542613|150|_21122916542615|Entities|Control|App|selection|_21122916542620|fieldLabel|PayeeAccountSerialNumber|List|datefield|flex|json|AmountNotEqualTo|_21122916542626|_21122916542625|_21122916542624|_21122916542623|selectionCount|Const|_21122916542622|PayeeAccountOwnerName|reference|select|PayeeAccountName|SerialNumber|付款单位|PayerName|align|summaryType|sum|editable|summaryRenderer|handler|sign|renderer|60|Used|OperateTime|summaryData|_21122916542621|dock|DynamicPay|Type|hasOwnProperty|continue|Kvid|delete|_21122916542617|endTime|startTime|selections|_21122916542616|getViewModel|_21122916542618|Restful|_21122916542619|条记录|columns|PayeeName|extend|extensible|emptyText|模糊搜索流水号|pruneRemoved|充值账户名|充值账号或名称|充值撤销|checkboxSelect|entityType|sortable|checkboxmodel|out|selType|EntityList|queryField|DESC|property|direction|disabled|System|menuDisabled|defaults|selModel|displayInfo|searchField|button|title|UsedQuery|pagingtoolbar|check|square|已选择|点击清除|hidden|dockedItems|使用记录|toolbar|sorters|in|features|top|overflowHandler|menu|时间范围|ftype|开始|dataSource|90|viewModel|store|autoLoad|结束|pageSize|bottom|800|summary|rownumberer|unmask|resizable|closeAction|left||iconAlign|MessageBox|window|create|开始日期不能大于结束日期|destroy|请选择开始时间|_21122916542627|收款登记|充值|Transfer|FinancesFunctionsMoneyToFmoney|KiviiContext|center|getReferences|confirm|您确认要撤销选中的|yes|_21122916542629|failure|撤销成功|responseText|decode|_21122916542628|success|PaymentKvids|jsonData|TransferCancel|url|request|Ajax|请重新选择|无符合撤销的数据|push|for|color|background|FF0000|clearSelections|datecolumn|Summary|摘要|100|类型|110|toFixed|String|Amount|right|发生金额|220|合计|120|流水号|发生日期|style|require|充值账号|controller|充值账户|280|账户所属|ParentKvid|setFilter|setOwner|activate|Remark|define|备注|180'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.Settlement.Biz.Report.Selector.js
0 → 100644
View file @
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
)
+
'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;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
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.Settlement.Customer.Create.Form.js
0 → 100644
View file @
5ef2d2e1
//Version:0.03
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
;}(
'O.Y(
\'
e.5.1.7.f.2.a.9
\'
,{y:
\'
w.5.v
\'
,6:
\'
e.5.1.7.f.2.a.9
\'
,t:
\'
1.s.r.2
\'
,q:{z:
\'
o
\'
,},n:{m:l},k:j,i:[
\'
->
\'
,{u:
\'
A
\'
,10:
\'
x-8 8-Z
\'
,B:
\'
X
\'
,W:
\'
b
\'
,3:{V:
\'
{!U}
\'
}}],T:[{6:
\'
S
\'
,d:
\'
c-0 h-0
\'
,3:{R:
\'
{4.Q}
\'
,P:
\'
{4.C}
\'
},g:
\'
N
\'
,M:L},{6:
\'
K
\'
,d:
\'
c-0 h-0
\'
,3:
\'
{4.J}
\'
,g:
\'
I
\'
,}],H:{b:G(F){E.D().p()}}});'
,
62
,
63
,
'100|Kivii|Customer|bind|entity|Control|xtype|Finances|fa|Form|Create|_2111191638590|big|responsiveCls|App|Settlement|fieldLabel|small|tbar|true|autoScroll|60|labelWidth|defaults|responsivecolumn|saveEntity|layout|Entities|Customers|entityType|text|EntityForm|System||extend|type|保存|iconAlign|Kvid|getView|this|_2111191638591|function|controller|备注信息|Remark|textarea|false|allowBlank|客户全称|Ext|readOnly|FullName|value|textfield|items|formIsValid|disabled|handler|left|define|save|iconCls'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.Settlement.Customer.Selector.js
0 → 100644
View file @
5ef2d2e1
//Version:0.06
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.1l(
\'
a.2.0.9.d.7.v
\'
,{1e:
\'
F.2.G
\'
,H:
\'
0.I.J.7
\'
,8:
\'
a.2.0.9.d.7.v
\'
,K:{},M:g,T:{N:h},O:[{8:
\'
P
\'
,u:1,D:R,S:
\'
n,E,L,z
\'
,w:
\'
C
\'
},{6:
\'
A
\'
,c:
\'
x-i i-y
\'
,q:
\'
r
\'
,B:
\'
p
\'
}],Q:[{8:
\'
1k
\'
},{6:
\'
W
\'
,s:
\'
n
\'
,t:1j},{6:
\'
1i
\'
,s:
\'
1h
\'
,u:1}],1g:{p:e(b){3 o=1f;3 j=o.V();3 f=5.m(
\'
a.2.0.9.d.7.1d.1c
\'
,{1b:g});3 4=5.m(
\'
5.1a.19
\'
,{18:
\'
17
\'
,16:b.6,c:b.c,q:
\'
r
\'
,15:h,t:14,13:12,11:h,10:g,Z:[f]});4.Y();f.l(
\'
X
\'
,e(){4.k()});4.l(
\'
k
\'
,e(){j.U()})}}});'
,
62
,
84
,
'Kivii||Control|let|_2111191640250|Ext|text|Customer|xtype|Finances|App|_2111191640252|iconCls|Settlement|function|_2111191640251|false|true|fa|_2111191640253|close|on|create|FullName|_2111191640254|_2111191640255|iconAlign|left|dataIndex|width|flex|Selector|emptyText||plus|WebSite|快速添加|handler|模糊搜索客户信息|labelWidth|Mobilephone|System|EntitySelector|entityType|Customers|Entities|filter|Email|selModel|autoLoad|tbar|searchField|columns|60|queryField|store|reload|getView|客户名称|entityCreated|show|items|resizable|modal|250|height|600|autoScroll|title|fit|layout|Window|window|header|Form|Create|extend|this|controller|Remark|备注|180|rownumberer|define'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.Settlement.Form.js
0 → 100644
View file @
5ef2d2e1
//Version:2.07
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
;}(
'8.6m(
\'
1c.3A.19
\'
);8.5F(
\'
1c.1d.1e.19.1G.26
\'
,{4O:
\'
4K.1d.4I
\'
,h:
\'
1c.1d.1e.19.1G.26
\'
,1x:
\'
1e.19.2m.1G
\'
,2q:b,2W:{27:
\'
4z
\'
,4y:{A:4B,4U:0}},1J:
\'
5r
\'
,I:
\'
x-C C-5q-o
\'
,5p:{v:{5:{1a:{},f:W,28:W,1t:
\'\'
,12:0,1u:0,18:0,3i:1o.1A.5o,4V:1o.1A.5m,3t:5l 5i(),3x:1o.1A.5h,3y:1o.1A.59,4c:1o.1A.2B,4Y:1o.1A.f,24:
\'
4t
\'
,1R:[]}},52:{2Z:9(G){4 17=G(
\'
5.12
\'
);a 1o.3A.5a(17)},3b:9(G){4 X=G(
\'
5.f
\'
);4 1E=G(
\'
5.28
\'
);4 17=G(
\'
5.12
\'
);4 1z=G(
\'
5.18
\'
);e(X===W)a b;e(1E!==W)a b;e(1z<=0)a r;a b},3v:9(G){4 X=G(
\'
5.f
\'
);4 1E=G(
\'
5.28
\'
);4 17=G(
\'
5.12
\'
);4 1z=G(
\'
5.18
\'
);e(X===W)a b;e(1E!==W)a b;e(17===1z)a r;a b},4r:9(G){4 1E=G(
\'
5.28
\'
);4 2j=G(
\'
5.1t
\'
);4 17=G(
\'
5.12
\'
);4 1z=G(
\'
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q("2c,2F");a}4 w=6.1b();4 15=w.1i.1m();4 4u={1a:{},1q:
\'
2k
\'
,f:W,12:0,1u:0,4q:1,2f:
\'
6e
\'
,24:
\'
4t
\'
};4 22=7.v.5;4 1g=8.1v(
\'
1c.1d.1e.19.4b.26
\'
,{4a:r});4 1s=8.1v(
\'
8.1l.3P
\'
,{2W:
\'
3O
\'
,1J:u.E,I:u.I,1n:
\'
1j
\'
,3N:b,13:3M,3L:3K,3Q:b,3J:b,3H:b,16:[1g]});1s.3G();1g.2N(4u,22,u);1g.3F(
\'
3E
\'
,9(u,S){1s.3B();15.2p(S);6.1w()})},4v:9(u,3C,3I,k,3R,U){4 6=N;4 7=6.V();4 X=7.v.5.f;e(X!==W){8.Q("2c,6d");a}4 w=6.1b();4 15=w.1i.1m();4 22=7.v.5;4 1g=8.1v(
\'
1c.1d.1e.19.4b.26
\'
,{4a:r});4 1s=8.1v(
\'
8.1l.3P
\'
,{2W:
\'
3O
\'
,1J:k.E,I:k.I,1n:
\'
1j
\'
,3N:b,13:3M,3L:3K,3Q:b,3J:b,3H:b,16:[1g]});1s.3G();1g.2N(U.v,22,k);1g.3F(
\'
3E
\'
,9(u,S){1s.3B();U.K(S,W);15.6c();6.1w()})},3D:9(u,3C,3I,k,3R,U){4 6=N;4 7=6.V();4 X=7.v.5.f;e(X!==W){8.Q("2c,6b");a}U.6a();6.1w()},3S:9(u){4 6=N;4 7=6.V();4 y=6.1U();4 w=6.1b();4 k=7.v.5;k.1R=[];4 X=7.v.5.f;e(X!==W){8.Q("2c,2F!");a}4 1p=w.1i.1m().3T().16;e(1p.1k<=0){8.Q("69,2F!");a}1S(4 L=0;L<1p.1k;L++){2E U=1p[L].v;k.1R.2X(U)}4 z={};z.25=y.1x;z.68=k;u.2C(b);8.1K.1V({1T:
\'
/1W/
\'
+y.1x+
\'
/67.1P
\'
,1Q:z,1O:9(R){4 J=8.1N(R.1M);8.Q(
\'
66!
\'
);u.2C(r);y.2S(
\'
65
\'
,y,J.1C)},1H:9(R){8.Q(
\'
64!
\'
);u.2C(r)}})},49:9(u){4 6=N;4 7=6.V();4 y=6.1U();4 k=7.v.5;e(k.18!==0){8.Q(
\'
47,46!
\'
);a}4 1X=8.1v(
\'
8.1l.2J
\'
,{I:u.I,1n:
\'
1j
\'
,44:
\'
43
\'
});1X.42("63","62?",6.48,6)},48:9(21){e(21!="3Z")a;4 6=N;4 7=6.V();4 y=6.1U();4 k=7.v.5;e(k.18!==0){8.Q(
\'
47,46,61!
\'
);a}4 z={};z.25=k.1L;z.2b=[];z.2b.2X(k.f);8.1K.1V({1T:
\'
/1W/
\'
+y.1x+
\'
/5Z.1P
\'
,1Q:z,1O:9(R){4 J=8.1N(R.1M);8.Q(
\'
3V!
\'
);y.2S(
\'
3U
\'
,y,J.1C)},1H:9(R){8.Q(
\'
3z!
\'
)}})},45:9(u){4 6=N;4 7=6.V();4 y=6.1U();4 k=7.v.5;e(k.18!==k.12){8.Q(
\'
3Y,3X,3W!
\'
);a}4 1X=8.1v(
\'
8.1l.2J
\'
,{I:u.I,1n:
\'
1j
\'
,44:
\'
43
\'
});1X.42("5Y","5X?",6.41,6)},41:9(21){e(21!="3Z")a;4 6=N;4 7=6.V();4 y=6.1U();4 k=7.v.5;e(k.18!==k.12){8.Q(
\'
3Y,3X,3W!
\'
);a}4 z={};z.25=k.1L;z.2b=[];z.2b.2X(k.f);8.1K.1V({1T:
\'
/1W/
\'
+y.1x+
\'
/5W.1P
\'
,1Q:z,1O:9(R){4 J=8.1N(R.1M);8.Q(
\'
3V!
\'
);y.2S(
\'
3U
\'
,y,J.1C)},1H:9(R){8.Q(
\'
3z!
\'
)}})}}});'
,
62
,
431
,
'||||let|entity|_2201041619490|_2201041619491|Ext|function|return|true|||if|Kvid|100|xtype|||_2201041619492|bind|||||nbsp|false||value|_2201041619494|data|_2201041619493||_2201041619495|_2201041619496|small|big|fa||text|responsiveCls|get||iconCls|_2201041619497|set|_2201041619498||this|fieldLabel|readOnly|toast|_2201041619499|_22010416194911||_22010416194910|getViewModel|null|_22010416194913||_22010416194912||dataIndex|Amount|width|allowBlank|_22010416194914|items|_22010416194915|AmountPayment|Finances|Metadata|getReferences|App|Control|Kivii|_22010416194917|_22010416194916|handler|details|left|length|window|getStore|iconAlign|KiviiContext|_22010416194918|Type|name|_22010416194919|BizId|AmountPlan|create|_22010416194922|entityType|div|_22010416194920|CurrentMember|_22010416194921|Results|hidden|_22010416194923|key|Settlement|failure|metadata|title|Ajax|BizType|responseText|decode|success|json|jsonData|Details|for|url|getView|request|Restful|_22010416194927|toFixed|right||_22010416194926|_22010416194925|align|Currency|EntityType|Form|type|OffsetKvid|_22010416194924|editable|Kvids|已结算项目|fontSize|color|QuantityUnit|150|所属业务|20px|_22010416194928|ReportItem|margin|Entities|style|fieldStyle|add|scrollable|NAME|_22010416194930|formIsValid|_22010416194929|reference|Summary|Result|disabled|displayfield|trash|FullName|setDisabled|Selector|var|无法新增|valueField|keyField|windowSelector|MessageBox|numberfield|90|minValue|setOwner|summaryType|hideTrigger|sum|summaryRenderer|fireEvent|summaryData|format|step|layout|push|overflowHandler|amountChineseBig||top|dock|toolbar|internalCode|dockedItems|plus|扩展信息|formatName|menu|categoryField|hiddenDelete|结算明细|Remark|defaults|FOLDERNO|_22010416194931|_22010416194934|OwnerName|renderer|String|fieldset|collapsible|collapsed|快递费|Express|服务费|Service|检测费|OperateTime|120|hiddenOffset|Customer|PayeeKvid|PayeeName|删除失败|Const|close|_22010416194943|_22010416194942|entityAdd|on|show|resizable|_22010416194944|maximizable|350|height|800|autoScroll|fit|Window|modal|_22010416194945|_22010416194946|getData|entityDeleted|删除成功|请删除|无法作废|未收款结算|yes||beforeOffsetEntity|confirm|destroy|closeAction|_22010416194948|无法删除|已收款结算|beforeDeleteEntity|_22010416194939|header|SettlementDetail|OperatorName|else|_22010416194935|_22010416194947|_22010416194937|Report|_22010416194933|removeAll|_22010416194932|parseFloat|PayerName|selection|setSource|_22010416194938|Quantity|description|Njzj|CNY|_22010416194940|_22010416194941|Connects|_22010416194936|states|responsivecolumn|作废|600|F0E68C|FF0000|当前结算已作废|折|listeners|价|EntityForm|已收款额|System|结算原价|货币单位|金额大写|extend|操|结算|作|人|后|large|OwnerKvid|B4EEB4|entitySelected|OperatorKvid|结算类型||datefield|formulas|所属部门|labelAlign|labelWidth|altFormats|操作日期|link|OrganizationName|FinancesFunctionsMoneyToChineseBig|流|水|号|SerialNumber|付款单位|PayerKvid|OrganizationKvid|Date|收款单位|textfield|new|DepartmentKvid|Biz|DepartmentName|viewModel|newspaper|结算管理|删除|tbar|规格|Query|NjzjReportItem|in|SAMPLENAME|NAMEOFPRODUCTIONORG|NjzjReport|controller|Read|IncludeDetail|remove|define|source|propertygrid|300|maxHeight|flex|minWidth|备注|型号|GoodsModel|摘|GoodsSpecifications|hasOwnProperty|ReportId|结算数量|IsSerial|prompt|Offset|您确认要作废当前的结算信息|作废确认|Delete||请作废|您确认要删除当前的结算信息|删除确认|结算失败|entityCreated|结算成功|Create|Item|无结算明细|drop|无法移除|commitChanges|无法编辑|次|id|delete|ok|请输入扩展信息参数名称|增加参数名称|_22010416194949|折后价|require|操作|条目编号|ftype|GoodsId|groupingsummary|移除|square|pencil|GoodsFullName|编辑|center|actioncolumn|rownumberer|sortable|menuDisabled|columns|添加|groupHeaderTpl|条|条目名称|features|要|textarea|备|注|grid|store|expend|rows|10000|原价|类型|合计|groupField|autoLoad|pageSize'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.Settlement.Paying.Form.js
0 → 100644
View file @
5ef2d2e1
//Version:0.06
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.3R(
\'
1p.10.P.O.1R.13.1X
\'
,{3G:
\'
2l.10.2k
\'
,W:
\'
1p.10.P.O.1R.13.1X
\'
,25:[{23:
\'
2n
\'
,2p:0}],2M:{6:{g:{},z:0,Y:[]}},2q:[{2L:
\'
0 0 -9 3
\'
,W:
\'
2J
\'
,2I:{2H:
\'
{g.y}(2D {g.i-g.A} 11)/2C:{z}11
\'
},2B:{2x:
\'
2u
\'
}},
\'
->
\'
,{K:
\'
1A
\'
,I:
\'
x-w w-2s
\'
,1d:
\'
1D
\'
},{K:
\'
2r
\'
,I:
\'
x-w w-22
\'
,1d:
\'
1M
\'
}],2o:[],2K:F,29:{2e:{1E:F},H:[{W:
\'
2m
\'
},{17:
\'
y
\'
,K:
\'
2N
\'
,2G:1,2j:m(1l,1w,n,14){j(n.6.T===
\'
1c
\'
){1w.2h=
\'
2g-2f:#2c
\'
}q 1l}},{17:
\'
i
\'
,K:
\'
2a
\'
,16:
\'
1x
\'
,N:28},{17:
\'
1b
\'
,K:
\'
2z
\'
,16:
\'
1x
\'
,N:2t},{W:
\'
2v
\'
,N:2w,K:
\'
2y
\'
,16:
\'
2A
\'
,1E:F,2E:R,H:[{2F:m(1l,24,n,14,20,G){j(n.6.h===
\'
L-e-e-e-M
\'
)q
\'
x-w w-26
\'
;27 q
\'
x-w w-2b-o
\'
},1d:
\'
1v
\'
}]}]},1J:m(1g){4 c=B;4 8=c.Q();4 t=0;4 1e=0;4 1m=
\'\'
;4 1f=[];J(4 5=0;5<1g.s;5++){2d n=1g[5].6;1f.1Y(n.h);t+=n.i;1e+=n.A;1m=n.y}8.u(
\'
Y
\'
,1f);8.u(
\'
g.i
\'
,7(t.l(2)));8.u(
\'
g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H,2T:p})},1H:m(1K,X,p){j(1K!="2U")q;j(X===2V||X===""){b.C("2W!");q}4 k=B;4 8=k.Q();4 c=k.12();4 G=c.15();4 a=G.1h().H;4 d=0.0;J(4 5=0;5<a.s;5++){j(a[5].6.h===
\'
L-e-e-e-M
\'
)1s;d+=7(a[5].6.i)}4 r=7((7(8.6.g.i)-7(8.6.g.A)-7(d)).l(2));j(r<=0){b.C("21!");q}b.1W.1V({1U:
\'
/1T/P.O.1S.2X/2Y.1Q
\'
,1P:{2Z:30.31.32,T:
\'
1c
\'
},1O:m(E){4 v=b.1i(E.1o);j(v.V.s!==1){b.C(
\'
33,35!
\'
);q}J(4 5=0;5<a.s;5++){j(v.V[0].h===a[5].6.h){d-=7(a[5].6.i);8.u(
\'
z
\'
,d.l(2));c.19(a[5].6)}}4 t=r;4 f={};f.y=8.6.g.y+
\'
[3k]
\'
;f.1Z=v.V[0].h;f.i=t.l(2);f.1b=0;f.h=v.V[0].h;f.T=
\'
1c
\'
;f.36=X;c.1a(f,a.s-1);8.u(
\'
z
\'
,(d+t).l(2))},1N:m(E){4 v=b.1i(E.1o);b.C(v.37.38)}})},1M:m(p){4 k=B;4 8=k.Q();4 c=k.12();4 G=c.15();4 a=G.1h().H;j(a.s<=1){b.C(
\'
39!
\'
);q}4 r=7(7(8.6.g.i)-7(8.6.g.A));4 d=0.0;4 1k=[];J(4 5=0;5<a.s;5++){j(a[5].6.h===
\'
L-e-e-e-M
\'
)1s;d+=7(a[5].6.i);1k.1Y(a[5].6)}j(7(d.l(2))!==r){b.C(
\'
3a:
\'
+d+
\'
11,3b:
\'
+r+
\'
11 3c!3d!
\'
);q}p.1q(F);4 S={};S.Y=8.6.Y;S.3e=1k;c.3f(
\'
3g...
\'
);b.1W.1V({1U:
\'
/1T/P.O.1S.3h/13.1Q
\'
,1P:S,1O:m(E){4 v=b.1i(E.1o);p.1q(R);c.1L();c.3i(
\'
3j
\'
,c,{})},1N:m(E){p.1q(R);c.1L()}})}}});'
,
62
,
240
,
'||||let|_2112201603360|data|parseFloat|_2112201603361||_2112201603362|Ext|_2112201603363|_2112201603364|0000|_2112201603365|owner|Kvid|Amount|if|_2112201603366|toFixed|function|_2112201603368||_2112201603367|return|_2112201603369|length|_21122016033610|set|_21122016033611|fa||PayerName|amountSelected|AmountPayment|this|toast|_21122016033614|_21122016033613|true|_21122016033612|items|iconCls|for|text|00000000|000000000000|width|Finances|Kivii|getViewModel|false|_21122016033615|Type|_21122016033618|Results|xtype|_21122016033617|SettlementKvids|_21122016033616|Control|元|getView|Paying|_21122016033627|getStore|align|dataIndex|MessageBox|removeEntity|addEntity|AmountBalance|Discount|handler|_21122016033623|_21122016033624|_21122016033625|getData|decode|_21122016033619|_21122016033622|_21122016033621|_21122016033626|_21122016033620|responseText|App|setDisabled|create|continue|show|title|_21122016033628|_21122016033636|right|beforeAddDiscountAccount|iconAlign|金额补齐|_21122016033630|Payment|_21122016033631|menuDisabled|_21122016033629|left|_21122016033632|window|setOwner|_21122016033633|unmask|_21122016033634|failure|success|jsonData|json|Settlement|Entities|Restful|url|request|Ajax|Form|push|PayKvid|_21122016033635|金额已满足支付|tags|ptype|_21122016033638|plugins|plus|else|220|columns|金额|trash|FFFFE0|var|defaults|color|background|style|controller|renderer|EntityList|System|rownumberer|cellediting|dockedItems|clicksToEdit|tbar|收款登记|circle|90|16px|actioncolumn|100|fontSize|操作|余额|center|fieldStyle|已选|需支付|sortable|getClass|flex|value|bind|displayfield|columnLines|margin|viewModel|付款单位|yes|Selector|_21122016033637|scope|fn|animateTarget|ok|null|请填写少收金额的原因|Account|Query|OwnerKvid|KiviiContext|CurrentMember|DepartmentKvid|未到对应部门抵扣账户|OKCANCEL|请联系管理员进行配置|Remark|ResponseStatus|Message|请选择至少一个支付|所选付款总金额|与所需总金额|不相符|请重新选择|PayingMethods|mask|正在执行|Pay|fireEvent|entityPaying|部门账户抹零支付|buttons|multiline|原因|Window|layout|fit|选择收款|autoScroll|800|height|400|modal|resizable|300|entitySelected|close|AmountUsed|on|destroy|msg|补齐折扣|extend|确认剩余金额进行补齐操作|可能会影响到绩效考核|补齐金额过大|br|客户不再补齐|closeAction|在交涉后意见达成一致|仅适用于客户并未按账单缴费|金额补齐功能|confirm|define'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.SettlementDetail.Form.js
0 → 100644
View file @
5ef2d2e1
//Version:0.37
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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(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
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.Transfer.Account.Selector.js
0 → 100644
View file @
5ef2d2e1
//Version:0.12
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
,{}))
Src/Content/codes/Classic.View.Kivii.Finances.Account.List.js
0 → 100644
View file @
5ef2d2e1
//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
;}(
'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:{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
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
,{}))
Src/Content/codes/Classic.View.Kivii.Finances.Bill.List.js
0 → 100644
View file @
5ef2d2e1
//Version:0.29
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
;}(
'7.4j(
\'
E.U.p
\'
);7.4p(
\'
E.20.z.p.F.2b
\'
,{2u:
\'
2B.1c.2D
\'
,2x:
\'
z.p.28.F
\'
,f:
\'
E.20.z.p.F.2b
\'
,17:
\'
2q
\'
,k:
\'
x-a a-1R-6-o
\'
,i:{2m:e},2n:{B:{18:r}},1d:{2r:
\'
{18}
\'
},1y:{2t:9,2C:2G,3a:[{33:
\'
1w
\'
,34:
\'
35
\'
}]},37:{3j:
\'
3d
\'
,3g:9,3i:e,32:
\'
y
\'
},2Y:[{2J:
\'
2M
\'
,2O:[
\'
<1S>{Z:g.27} ({2P.2T} 2V)</1S>
\'
,{27:5(Z){s Z}}]}],2W:[{f:
\'
2U
\'
,1G:
\'
2S
\'
,D:9,w:[{f:
\'
2R
\'
,N:1l,k:
\'
x-a a-2Q-2N-o
\'
,1d:{6:
\'
2L{1I}2K,2Z
\'
,31:
\'
{1I==0}
\'
},A:
\'
1K
\'
}]},{f:
\'
3h
\'
,1G:
\'
3f
\'
,3e:
\'
3c
\'
,w:[{f:
\'
3b
\'
,39:
\'
38
\'
,36:
\'
D
\'
,2H:
\'
q
\'
,n:e,1i:e,2I:9,13:
\'
q
\'
,1y:{2o:[
\'
D
\'
,
\'
q
\'
],B:[{D:
\'
2F
\'
,q:r},{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
\'
x-a a-4w
\'
,A:
\'
1X
\'
}],h:4t},{c:
\'
4q
\'
,6:
\'
3l
\'
,h:4o},{c:
\'
4l
\'
,6:
\'
41
\'
,4i:O,1J:1}]},L:{3Z:
\'
1L
\'
},40:{1K:5(){g.j().3C()},1L:5(8,1q){g.j().l()},1M:5(10,T,t,3B){I(10===t.B.1N){T.1O=
\'
1x-1P:#3A
\'
}3z T.1O=
\'
1x-1P:#3y
\'
;s 1t.U.1v(10)},R:5(8,3x,1q){4 b=g;4 3=b.j();4 V=b.3w();4 C=V.1s.n;4 G=V.1D.n||Q P();I(C===r){7.1e("3D!");s}I(C>G){7.1e("3v!");s}K 3.i.W;K 3.i.S;3.i.W=Q P(C.1Q(),C.2h(),C.2e());3.i.S=Q P(G.1Q(),G.2h(),G.2e()+1);3.l()},2d:5(8){8.2g(r);4 J=g;4 3=J.j();I(3.i===r)3.2j({});K 3.i.W;3.l()},2f:5(8){8.2g(r);4 J=g;4 3=J.j();I(3.i===r)3.2j({});K 3.i.S;3.l()},2i:5(8,t){4 b=g;4 3=b.j();3.i.2m=t.B.q;3.l()},2k:5(8){4 b=g;4 3=b.j();3.3t()},2c:5(8){4 b=g;4 3=b.j();4 3s=b.3r();4 v=7.M(
\'
E.1c.z.p.F.26
\'
,{25:e});4 u=7.M(
\'
7.24.23
\'
,{22:
\'
29
\'
,17:8.6,k:8.k,16:
\'
15
\'
,21:9,h:1Z,1Y:3q,1W:9,1V:9,1U:9,w:[v]});u.1T();v.19(
\'
3p
\'
,5(8,2l){u.1h();3.l()})},1X:5(8,3o,3n,3u,3E,t){4 b=g;4 3=b.j();7.3F.3G({3X:
\'
/3W/z.p.28.3V/3U.3T
\'
,3S:{3R:t.B.3Q},3P:5(1f){4 2a=7.3O(1f.3N);4 v=7.M(
\'
E.1c.z.p.F.26
\'
,{25:e});4 u=7.M(
\'
7.24.23
\'
,{22:
\'
29
\'
,17:8.6,k:8.k,16:
\'
15
\'
,21:9,h:1Z,1Y:3M,1W:9,1V:9,1U:9,w:[v]});u.1T();v.3L(t.B,2a.3K);v.19(
\'
3J
\'
,5(8,2l){u.1h();3.l()});u.19(
\'
1h
\'
,5(){3.l()})},3I:5(1f){7.1e(
\'
3H,3k!
\'
)}})}}});'
,
62
,
281
,
'|||_2112241634010|let|function|text|Ext|_2112241634011|true|fa|_2112241634012|dataIndex||false|xtype|this|width|filter|getView|iconCls|reload||value||Finances|isPayed|null|return|_2112241634015|_2112241634013|_2112241634014|items|||Kivii|handler|data|_2112241634016|displayInfo|App|Bill|_2112241634017|format|if|_2112241634018|delete|listeners|create|labelWidth|100|Date|new|_21122416340112|OperateTimeLessThan|_21122416340110|Const|_21122416340113|OperateTimeGreaterThanOrEqualTo|align||name|_21122416340111|summaryRenderer|summaryData|reference|String|left|iconAlign|title|_21122416340114|on|renderer|select|Control|bind|toast|_2112241634019|summaryType|close|editable|sum|cls|60|PayerName|OwnerName|weight|clear|_21122416340120|triggers|startTime|KiviiContext|times|FinancesFunctionsMoneyToFmoney|OperateTime|background|store|toFixed|OperatorName|操作人|90|endTime|right|datefield|dock|fieldLabel|selectionCount|flex|_21122416340124|_21122416340116|_21122416340117|Amount|style|color|getFullYear|file|div|show|resizable|maximizable|modal|_21122416340122|height|1200|View|autoScroll|layout|Window|window|header|Form|formatName|Entities|fit|_21122416340119|List|_21122416340115|_21122416340125|getDate|_21122416340121|setValue|getMonth|_21122416340123|setFilter|_21122416340126|_21122416340118|IsPayed|viewModel|fields|emptyText|账单管理|selection|queryField|autoLoad|extend|未收款|已收款|entityType|时间范围|开始|结束|System|pageSize|EntityList|searchField|全部|400|valueField|filterPickList|ftype|条记录|已选择|groupingsummary|square|groupHeaderTpl|rows|check|button|bottom|length|pagingtoolbar|条|dockedItems|模糊搜索付款单位|features|点击清除||hidden|extensible|property|direction|DESC|displayField|selModel|local|queryMode|sorters|combo|menu|checkboxmodel|overflowHandler|top|checkboxSelect|toolbar|pruneRemoved|selType|请重试|摘要|删除|_21122416340128|_21122416340127|entityCreated|700|getViewModel|_21122416340130|deleteEntity|_21122416340129|开始日期不能大于结束日期|getReferences|_21122416340131|F0E68C|else|B4EEB4|_21122416340133|clearSelections|请选择开始时间|_21122416340132|Ajax|request|查看失败|failure|entityDeleted|Results|setOwner|680|responseText|decode|success|Kvid|BillKvid|params|json|Query|Settlement|Restful|url|创建账单|activate|controller|备注|Format|util|操作日期|150|付款单位|合计|120|所属部门|rownumberer|sortable|menuDisabled|defaults|columns|disabled|trash|dateRenderer|minWidth|require|center|Remark|AmountPayment|已付金额|200|define|Summary|actioncolumn|操作|50|账单金额|查看|search'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.View.Kivii.Finances.Invoice.Debit.List.js
0 → 100644
View file @
5ef2d2e1
//Version:0.12
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
;}(
'7.4L(
\'
1n.13.E
\'
);7.4r(
\'
1n.22.K.E.O.10.21
\'
,{3d:
\'
3n.2U.3o
\'
,3q:
\'
K.E.1o.O
\'
,n:
\'
1n.22.K.E.O.10.21
\'
,2X:
\'
/1I/K.E.1o.O/2Y.1N
\'
,2T:
\'
38
\'
,s:
\'
x-v v-37-o-3s
\'
,r:{1y:f e(f e().S(),f e().L(),1),1u:f e(f e().S(),f e().L(),f e().1h()+1),12:t,2b:
\'
10
\'
,3t:14.3P.3R},3S:{b:{1C:F,R:F,}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\'
;6"4J"}6 a},2o:9(a,p,g,H){c(a==="10"){p.U=
\'
T-11:#4H
\'
;6"4G"}c(a==="2Q"){p.U=
\'
T-11:#1v
\'
;6"4C"}6 a},24:9(a,p,g,H){6 a+g.b.4A},2d:9(a,p,g,H){6 a+g.b.4x},20:9(k,g){3 5=B;3 4=5.A();1p 4.r.12;4.r.12=g.b.N;4.G()},1V:9(k){k.4v(
\'\'
);3 5=B;3 4=5.A();c(4.r===F)4.4u({});1p 4.r.12;4.r.12=F;4.G()},1t:9(k,4s,2n){3 5=B;3 4=5.A();3 1O=5.4Z();3 Q=1O.2p.X;3 15=1O.2V.X||f e();c(Q===F){7.z("4t!");6}c(Q>15){7.z("4w!");6}1p 4.r.1y;1p 4.r.1u;4.r.1y=f e(Q.S(),Q.L(),Q.1h());4.r.1u=f e(15.S(),15.L(),15.1h()+1);4.G()},2R:9(k){3 5=B;3 4=5.A();3 l=5.1q();3 D=[];3 1b=0;3 j=l.b.1r||[];c(j.I<=0){7.z("2x!");6}1B(3 q=0;q<j.I;q++){3 w=j[q].b;D.1E(w.1l);1b+=w.1a-w.2S}c(1b<=0){7.z("4y!");6}3 1s=7.1c(
\'
1n.2U.K.E.2y.2Q.4z
\'
,{4B:t});3 1x=7.1c(
\'
7.1z.4D
\'
,{4E:
\'
4F
\'
,2T:k.8,s:k.s,1L:
\'
1J
\'
,4I:C,i:4q,48:49,4a:C,2O:t,1e:[1s]});1x.4b();1s.4c(
\'
4d
\'
,9(4e,2N){1x.4g();3 V=2N[0];l.1Q(
\'
R
\'
,V.1l);3 2t=V.1a-V.4j;3 1f=7.1c(
\'
7.1z.2A
\'
,{s:k.s,1L:
\'
1J
\'
,2B:
\'
2C
\'
});1f.2D(k.8,V.1D+"<1F/>4n:<17>"+1b.4K(2)+"</17><1F/>5d:<17>"+2t+"</17>?",5.2u,5)})},2u:9(1k){3 5=B;3 4=5.A();3 l=5.1q();c(1k!="2L"){l.1Q(
\'
R
\'
,F);6}3 D=[];3 j=l.b.1r||[];c(j.I<=0){7.z("2x!");l.1Q(
\'
R
\'
,F);6}1B(3 q=0;q<j.I;q++){3 w=j[q].b;D.1E(w.1l)}c(l.b.R===F)6;3 J={};J.5c=l.b.R;J.2K=D;7.2J.2H({2G:
\'
/1I/K.E.1o.O/2y.1N
\'
,2F:J,2E:9(P){2w 2v=7.2r(P.2q);4.G();7.z(
\'
5h!
\'
)},2W:9(P){4.G()}})},2z:9(k){3 5=B;3 4=5.A();3 l=5.1q();3 D=[];3 j=l.b.1r||[];c(j.I<=0){7.z("2M!");6}3 1f=7.1c(
\'
7.1z.2A
\'
,{s:k.s,1L:
\'
1J
\'
,2B:
\'
2C
\'
});1f.2D(k.8,"56?<1F />4N!",5.2I,5)},2I:9(1k){c(1k!="2L"){6}3 5=B;3 4=5.A();3 l=5.1q();3 D=[];3 j=l.b.1r||[];c(j.I<=0){7.z("2M!");6}1B(3 q=0;q<j.I;q++){3 w=j[q].b;c(w.1M(
\'
1g
\'
)&&w.1g!==
\'
2P-M-M-M-2s
\'
){7.z("3c,3f!");6}D.1E(w.1l)}3 J={};J.2K=D;7.2J.2H({2G:
\'
/1I/K.E.1o.O/3r.1N
\'
,2F:J,2E:9(P){2w 2v=7.2r(P.2q);4.G();7.z(
\'
3a!
\'
)},2W:9(P){4.G()}})}}});'
,
62
,
331
,
'|||let|_2112301644040|_2112301644041|return|Ext|text|function|_2112301644042|data|if||Date|new|_2112301644043|dataIndex|width|_2112301644044|_2112301644046|_2112301644045||xtype||_2112301644047|_2112301644048|filter|iconCls|false|renderer|fa|_2112301644049|||toast|getView|this|true|_21123016440410|Finances|null|reload|_21123016440412|length|_21123016440411|Kivii|getMonth|0000|debited|Invoice|_21123016440413|_21123016440414|paymentKvid|getFullYear|background|style|_21123016440415|align|value||displayInfo|Debit|color|Debited|Const|KiviiContext|_21123016440416|FinancesFunctionsMoneyToFmoney|strong|listeners|format|Amount|_21123016440417|create|100|items|_21123016440418|OffsetKvid|getDate|right|handler|_21123016440419|Kvid|labelWidth|App|Entities|delete|getViewModel|selections|_21123016440422|_21123016440421|EndTime|B4EEB4|OwnerName|_21123016440424|BeginTime|window|reference|for|_21123016440423|PayerName|push|br|select|editable|Restful|left|bind|iconAlign|hasOwnProperty|json|_21123016440420|90|set|datefield|store|dock|60|_21123016440438|fieldLabel|menu|sign|selectionCount|_21123016440436|List|View|flex|_21123016440431|SerialNumber|260|200|_21123016440442|_21123016440425|_21123016440426|Category|OperatorName|_21123016440432|申请人|_21123016440427|_21123016440428|_21123016440429|110|OperateTime|开票日期|金额|datecolumn|_21123016440440|_21123016440430|startTime|responseText|decode|000000000000|_21123016440439|_21123016440437|_21123016440433|var|请选中要冲销的借票|Debiting|_21123016440435|MessageBox|closeAction|destroy|confirm|success|jsonData|url|request|_21123016440434|Ajax|InvoiceKvids|yes|请选中要撤销冲销的发票|_21123016440441|resizable|00000000|Payment|_21123016440443|AmountPayment|title|Control|endTime|failure|dataSource|QueryEx|property||开始|times|cls|weight|clear|triggers|circle|借票管理|结束|撤销成功|已到账借票|所选发票已作废|extend|冲销撤销|无法撤销冲销|in|借票冲销|splitbutton|付款单位|模糊搜索流水号|emptyText|queryField|System|EntityList|searchField|entityType|DebitCancel|notch|OwnerKvid|未到账借票|pageSize|check|button|bottom|pagingtoolbar|dockedItems|extensible|pruneRemoved|checkboxSelect|400|checkboxmodel|selType|selModel|DESC|direction|square|sorters|已选择|点击清除|fields|CurrentMember|filterPickList|DepartmentKvid|viewModel|valueField|displayField|local|queryMode|combo|overflowHandler|selection|toolbar|autoLoad|hidden|条记录|top|sortable|备注|FFC0CB|height|450|modal|show|on|entitySelected|_21123016440445|clearSelections|close|controller|activate|AmountInvoice|180|minWidth|Remark|借票金额|已作废|out|900|define|_21123016440444|请选择开始时间|setFilter|setValue|开始日期不能大于结束日期|PayerBankAccount|所选发票无需冲销|Selector|PayerPhone|header|到账|Window|layout|fit|借票|F3F781|autoScroll|存在对应收款|toFixed|require|PayerRegisteredBank|撤销后发票将会以借票未到账的形式出现|120|AmountUntaxed|不含税|AmountTax|税额|含税|发票抬头|所属部门|发票编码|center|rownumberer|getReferences|menuDisabled|defaults|columns|disabled|收款金额|收款日期|确认撤销冲销选中的发票|130|开户行|PayerCompanyAddress|地址|PayedTime|PaymentKvid|所选金额|140|类型|Type|冲销成功|分类|税号|PayerTaxNumber'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.View.Kivii.Finances.Invoice.List.js
0 → 100644
View file @
5ef2d2e1
//Version:0.41
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.5e(
\'
1o.Z.G
\'
);5.5w(
\'
1o.21.J.G.K.22
\'
,{3f:
\'
34.2E.3T
\'
,3s:
\'
J.G.13.K
\'
,t:
\'
1o.21.J.G.K.22
\'
,3J:
\'
/1w/J.G.13.K/3P.1v
\'
,1E:
\'
2Y
\'
,u:
\'
x-I I-3G
\'
,B:{1N:h g(h g().P(),h g().Q(),1),1B:h g(h g().P(),h g().Q(),h g().1d()+1),10:A,3F:X.3E.3D},3K:{a:{1P:H,S:H,}},1S:{3v:
\'
{1P}
\'
},26:{3L:w,2Z:3l,3j:[{3c:
\'
23
\'
,3d:
\'
37
\'
}]},3m:{38:
\'
32
\'
,33:w,3p:A,3r:
\'
y
\'
},3q:[{t:
\'
3Q
\'
,2V:
\'
3R
\'
,15:w,1q:[{t:
\'
3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=H;6.C()},1x:7(c,5s,28){3 4=p;3 6=4.v();3 1K=4.5t();3 T=1K.29.11;3 U=1K.2c.11||h g();b(T===H){5.q("52!");8}b(T>U){5.q("4R!");8}1f 6.B.1N;1f 6.B.1B;6.B.1N=h g(T.P(),T.Q(),T.1d());6.B.1B=h g(U.P(),U.Q(),U.1d()+1);6.C()},4S:7(c){3 4=p;3 6=4.v();3 l=4.O();3 s=[];3 1a=0;3 e=l.a.14||[];b(e.D<=0){5.q("2K!");8}1t(3 j=0;j<e.D;j++){3 r=e[j].a;s.1u(r.12);1a+=r.18-r.2I}b(1a<=0){5.q("4s!");8}3 1L=5.19(
\'
1o.2E.J.G.2R.2D.4r
\'
,{4q:A});3 1C=5.19(
\'
5.1T.4p
\'
,{4o:
\'
4n
\'
,1E:c.9,u:c.u,17:
\'
16
\'
,4m:w,f:4l,4k:4j,4i:w,2B:A,1q:[1L]});1C.2Q();1L.4h(
\'
4g
\'
,7(4f,2P){1C.4e();3 W=2P[0];l.1W(
\'
S
\'
,W.12);3 2N=W.18-W.4d;3 1g=5.19(
\'
5.1T.1r
\'
,{u:c.u,17:
\'
16
\'
,2H:
\'
2J
\'
});1g.2M(c.9,W.1z+"<1X/>4c:<1b>"+1a.4b(2)+"</1b><1X/>4a:<1b>"+2N+"</1b>?",4.2C,4)})},2C:7(1p){3 4=p;3 6=4.v();3 l=4.O();b(1p!="2U"){l.1W(
\'
S
\'
,H);8}3 s=[];3 e=l.a.14||[];b(e.D<=0){5.q("2K!");l.1W(
\'
S
\'
,H);8}1t(3 j=0;j<e.D;j++){3 r=e[j].a;s.1u(r.12)}b(l.a.S===H)8;3 L={};L.4t=l.a.S;L.2S=s;5.1I.1H({1G:
\'
/1w/J.G.13.K/2R.1v
\'
,1A:L,1Z:7(E){2A 1U=5.1R(E.1Y);6.C();5.q(
\'
4v!
\'
)},1Q:7(E){6.C()}})},4Q:7(c){3 4=p;3 6=4.v();3 l=4.O();3 s=[];3 e=l.a.14||[];b(e.D<=0){5.q("2z!");8}3 1g=5.19(
\'
5.1T.1r
\'
,{u:c.u,17:
\'
16
\'
,2H:
\'
2J
\'
});1g.2M(c.9,"4w?<1X />4P!",4.2T,4)},2T:7(1p){b(1p!="2U"){8}3 4=p;3 6=4.v();3 l=4.O();3 s=[];3 e=l.a.14||[];b(e.D<=0){5.q("2z!");8}1t(3 j=0;j<e.D;j++){3 r=e[j].a;b(r.1J(
\'
1s
\'
)&&r.1s!==
\'
2L-N-N-N-2F
\'
){5.q("4O,4N!");8}s.1u(r.12)}3 L={};L.2S=s;5.1I.1H({1G:
\'
/1w/J.G.13.K/4M.1v
\'
,1A:L,1Z:7(E){2A 1U=5.1R(E.1Y);6.C();5.q(
\'
4L!
\'
)},1Q:7(E){6.C()}})},2G:7(c){3 4=p;3 6=4.v();3 l=4.O();5.1r.2Q({1E:c.9,u:c.u,4K:
\'
4J:
\'
,f:4I,4H:5.1r.4G,4F:w,4E:p,4D:p.2d,4C:c})},2d:7(25,2i,c){b(25!==
\'
4B
\'
)8;3 4=p;3 6=4.v();3 l=4.O();3 s=[];3 e=l.a.14||[];b(e.D<=0){5.q("4A!");8}1t(3 j=0;j<e.D;j++){3 r=e[j].a;s.1u(r.12)}5.1I.1H({1G:
\'
/1w/J.G.13.K/4z.1v
\'
,1A:{4y:s,2j:2i},1Z:7(E){3 1U=5.1R(E.1Y);5.q(
\'
4x!
\'
);6.C()},1Q:7(E){4.48()}})}}});'
,
62
,
343
,
'|||let|_2112301643460|Ext|_2112301643461|function|return|text|data|if|_2112301643463||_2112301643462|width|Date|new|_2112301643464|_2112301643465|dataIndex|_2112301643466||_2112301643467||this|toast|_2112301643469|_2112301643468|xtype|iconCls|getView|true|||_21123016434610|false|filter|reload|length|_21123016434611|renderer|Finances|null|fa|Kivii|Invoice|_21123016434612|debited|0000|getViewModel|getFullYear|getMonth|_21123016434613|paymentKvid|_21123016434614|_21123016434615|align|_21123016434616|KiviiContext||Const|Debited|value|Kvid|Entities|selections|displayInfo|left|iconAlign|Amount|create|_21123016434619|strong|labelWidth|getDate|right|delete|_21123016434617|format|100|color|background|style|FinancesFunctionsMoneyToFmoney|listeners|App|_21123016434618|items|MessageBox|OffsetKvid|for|push|json|Restful|_21123016434622|reference|PayerName|jsonData|EndTime|_21123016434623|OwnerName|title|editable|url|request|Ajax|hasOwnProperty|_21123016434621|_21123016434620|select|BeginTime|handler|_21123016434624|failure|decode|bind|window|_21123016434625|90|set|br|responseText|success|_21123016434636|View|List|OperateTime|60|_21123016434634|store|开票日期|_21123016434639|startTime|金额|SerialNumber|endTime|_21123016434643|_21123016434637|_21123016434632|_21123016434630|B4EEB4|_21123016434633|Remark|260|flex|fieldLabel|OperatorName|datefield|_21123016434626|申请人|_21123016434627|_21123016434628|datecolumn|_21123016434629|200|110|_21123016434631|_21123016434644|请选中要撤销冲销的发票|var|resizable|_21123016434641|Payment|Control|000000000000|_21123016434638|closeAction|AmountPayment|destroy|请选中要冲销的借票|00000000|confirm|_21123016434642|selectionCount|_21123016434635|show|Debiting|InvoiceKvids|_21123016434640|yes|dock|emptyText|模糊搜索流水号|发票管理|pageSize||searchField|checkboxmodel|checkboxSelect|System|queryField|付款单位|DESC|selType|发票编码|center|rownumberer|property|direction|sortable|extend|menuDisabled|defaults|columns|sorters|disabled|400|selModel|trash|作废|pruneRemoved|dockedItems|extensible|entityType|overflowHandler|未到账发票|selection|menu|fields|combo|queryMode|top|filterPickList|valueField|DepartmentKvid|CurrentMember|OwnerKvid|money|displayField|local|dataSource|viewModel|autoLoad|已到账发票|triggers|结束|QueryEx|pagingtoolbar|bottom|button|EntityList|check|所属部门|toolbar|square|times|已选择|cls|weight|clear|条记录|点击清除|hidden|开始|发票抬头|unmask|税额|所选金额|toFixed|借票金额|AmountInvoice|close|_21123016434648|entitySelected|on|modal|450|height|900|autoScroll|fit|layout|Window|header|Selector|所选发票无需冲销|PaymentKvid|含税|冲销成功|确认撤销冲销选中的发票|作废成功|Kvids|Offset|请选中要作废的发票|ok|animateTarget|fn|scope|multiline|OKCANCEL|buttons|300|请填写原因|msg|撤销成功|DebitCancel|无法撤销冲销|所选发票已作废|撤销后发票将会以借票未到账的形式出现|_21123016434646|开始日期不能大于结束日期|_21123016434647|PayerRegisteredBank|开户行|PayerCompanyAddress|地址|PayerTaxNumber|税号|Category|分类|130|请选择开始时间|Type|140|PayedTime|收款日期|收款金额|120|AmountUntaxed|不含税|AmountTax|类型|备注|require|借票|setValue|PayerPhone|到账|minWidth|F3F781|Debit|PayerBankAccount|setFilter|FFC0CB|clearSelections|controller|activate|_21123016434645|getReferences|180|已作废|define'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.View.Kivii.Finances.InvoiceApply.Current.List.js
0 → 100644
View file @
5ef2d2e1
//Version:0.06
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
;}(
'l.3J(
\'
V.22.C
\'
);l.5c(
\'
V.29.M.C.G.28.24
\'
,{3d:
\'
3c.1C.3b
\'
,3a:
\'
M.C.1m.G
\'
,t:
\'
V.29.M.C.G.28.24
\'
,39:
\'
/21/M.C.1m.G/38.23
\'
,1q:
\'
37
\'
,y:
\'
x-s s-2f-o-2n
\'
,k:{36:1s.1D.35,16:b a(b a().E(),b a().H(),1),1b:b a(b a().E(),b a().H(),b a().W()+1)},34:{9:{1t:N}},1i:{33:
\'
{1t}
\'
},1x:{32:w,31:1p,2Z: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4T"}4(5===57){e.j=
\'
p-n:#S
\'
;3"5j"}4(5===58){e.j=
\'
p-n:#S
\'
;3"5h"}4(5===59){e.j=
\'
p-n:#S
\'
;3"5f"}4(5===1o){e.j=
\'
p-n:#S
\'
;3"5e"}4(5===5k){e.j=
\'
p-n:#5d
\'
;3"5b"}3"5a"},1u:c(5,e,8,Q){3 5+8.9.54},1A:c(5,e,8,Q){3 5+8.9.4Z},1B:c(g,8){6 h=u;6 7=h.z();I 7.k.1d;I 7.k.1k;4(8.9.v===50){7.k.1k=8.9.v}4(8.9.v===51){7.k.1d=8.9.v}7.J()},1F:c(g){g.4C(
\'\'
);6 h=u;6 7=h.z();4(7.k===N)7.4H({});I 7.k.1d;I 7.k.1k;7.J()},1H:c(g){6 h=u;6 7=h.z();6 q={};q.4A={};q.4B=[];q.1I=g.1J;q.1K=0;q.1r=N;q.47=1s.1D.46;q.45=N;q.1c=b a();q.44=
\'
43
\'
;6 10=l.1L(
\'
V.1C.M.C.G.42
\'
,{41:L});6 19=l.1L(
\'
l.40.3Z
\'
,{3Y:
\'
3X
\'
,1q:g.f,y:g.y,1v:
\'
1a
\'
,3W:w,i:3V,3U:3T,3S:w,2t:L,12:[10]});19.2u();10.3R(q,g);10.3Q(
\'
3P
\'
,c(g,3O){19.3N();7.J()})},18:c(g,3M,2i){6 h=u;6 7=h.z();6 17=h.3L();6 F=17.2l.U;6 T=17.2m.U||b a();4(F===N){l.1n("48!");3}4(F>T){l.1n("4a!");3}I 7.k.16;I 7.k.1b;7.k.16=b a(F.E(),F.H(),F.W());7.k.1b=b a(T.E(),T.H(),T.W()+1);7.J()},2q:c(g){6 h=u;6 7=h.z();6 13=h.1U();6 R=[];6 O=13.9.1V||[];O.4z(c(2s){R.1X(2s.9.20)});l.1P.2u({1q:g.f,y:g.y,4b:
\'
4y:
\'
,i:4x,4w:l.1P.4v,4u:w,4t:u,4s:u.1S,4r:g})},1S:c(1T,27,g){4(1T!==
\'
4q
\'
)3;6 h=u;6 7=h.z();6 13=h.1U();6 R=[];6 O=13.9.1V||[];4p(6 X=0;X<O.4o;X++){6 1Y=O[X].9;R.1X(1Y.20)}l.4n.4m({4l:
\'
/21/M.C.1m.G/4k.23
\'
,4j:{4i:R,26:27},4h:c(15){6 4g=l.4f(15.4e);l.1n(
\'
4d!
\'
);7.J()},4c:c(15){}})}}});'
,
62
,
332
,
'|||return|if|_2112301656470|let|_2112301656471|_2112301656472|data|Date|new|function||_2112301656473|text|_2112301656474|_2112301656475|width|style|filter|Ext||color||background|_2112301656476|dataIndex|fa|xtype|this|status|true||iconCls|getView|VAT|Type|Finances|普票|getFullYear|_2112301656477|InvoiceApply|getMonth|delete|reload|renderer|false|Kivii|null|_21123016564710|displayInfo|_2112301656478|_2112301656479|F5B7B1|_21123016564711|value|App|getDate|_21123016564713||listeners|_21123016564714|labelWidth|items|_21123016564712|handler|_21123016564715|OperateTimeGreaterThanOrEqualTo|_21123016564719|_21123016564717|_21123016564716|left|OperateTimeLessThan|OperateTime|StatusGreaterThanOrEqualTo|format|reference|200|D6EAF8|bind|editable|StatusLessThanOrEqualTo|select|Entities|toast|60|100|title|PayerName|KiviiContext|_21123016564718|_21123016564724|iconAlign|微信|store|_21123016564723|fieldLabel|_21123016564725|_21123016564735|Control|CurrentMember|datefield|_21123016564730|支付宝|_21123016564731|OperateType|type|Amount|create|刷卡|付款单位|现金|MessageBox|120|flex|_21123016564732|_21123016564729|getViewModel|selections|align|push|_21123016564728|申请日期|Kvid|Restful|Const|json|List||Summary|_21123016564726|Current|View|申请人|OperatorName|260|_21123016564720|_21123016564734|circle|Debit|selectionCount|_21123016564727|_21123016564721|收款|startTime|endTime|notch|SerialNumber|_21123016564722|_21123016564733|OwnerName|item|resizable|show|借票|dock|流水号|110|rownumberer|sortable|撤销|right|rotate|申请金额|menuDisabled|defaults|columns|center|disabled|FinancesFunctionsMoneyToFmoney|datecolumn|filterPickList|模糊搜索流水号|条记录|已选择|square|check|button|bottom|pagingtoolbar|dockedItems|DESC|direction|property|sorters||pageSize|autoLoad|selection|viewModel|DepartmentKvid|OwnerKvid|我的申请|QueryEx|dataSource|entityType|EntityList|System|extend|点击清除|借票申请|hidden|top|emptyText|queryField|searchField|160|结束|220|90|开始|times|cls|weight|clear|triggers|已开票|未开票|fields|140|130|valueField|displayField|local|queryMode|combo|menu|overflowHandler|toolbar|申请类型|require|Status|getReferences|_21123016564738|close|_21123016564737|entityCreated|on|setOwner|modal|450|height|900|autoScroll|fit|layout|Window|window|header|Form|CNY|Currency|PayeeTaxNumber|OrganizationName|PayeeName|请选择开始时间|状态|开始日期不能大于结束日期|msg|failure|驳回成功|responseText|decode|_21123016564736|success|ApplyKvids|jsonData|Reject|url|request|Ajax|length|for|ok|animateTarget|fn|scope|multiline|OKCANCEL|buttons|300|请填写原因|forEach|Metadata|PaymentKvids|setValue|activate|开票中|开票列队中|已批准|setFilter|审批中|D5F5E3|WeChat|AliPay|Pos|Cash|F3F781|D1FCA5|Payment|hasOwnProperty|clearSelections|开票失败|minWidth|摘要|税号|PayerTaxNumber|地址|PayerBankAccount||||PayerCompanyAddress|PayerPhone||||||未处理|已开具|define|ABEBC6|红字冲销|申请已合并|开户行|发票已作废|PayerRegisteredBank|驳回|2147483647|controller'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.View.Kivii.Finances.InvoiceApply.List.js
0 → 100644
View file @
5ef2d2e1
//Version:0.70
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
(
'
\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"1x"}4(6==="4A"){4(9.8.C===
\'
B
\'
)3"1X(A)";3"1X"}4(6==="4z"){4(9.8.C===
\'
B
\'
)3"1W(A)";3"1W"}4(6==="4y"){4(9.8.C===
\'
B
\'
)3"1S(A)";3"1S"}4(6==="4x"){4(9.8.C===
\'
B
\'
)3"1R(A)";3"1R"}4(9.8.C===
\'
B
\'
)3 6+"(A)";3 6},1P:b(6,c,9,P){4(6<=25){c.k=
\'
q-p:#4S
\'
;3"4T..."}4(6===50){c.k=
\'
q-p:#1o
\'
;3"4W"}4(6===51){c.k=
\'
q-p:#1o
\'
;3"4V"}4(6===52){c.k=
\'
q-p:#1o
\'
;3"3F"}4(6===55||6===56){c.k=
\'
q-p:#T
\'
;3"4Z"}4(6===57){c.k=
\'
q-p:#T
\'
;3"4Y"}4(6===58){c.k=
\'
q-p:#T
\'
;3"4X"}4(6===59){c.k=
\'
q-p:#T
\'
;3"54"}4(6===1c){c.k=
\'
q-p:#T
\'
;3"5f"}4(6===53){c.k=
\'
q-p:#5a
\'
;3"5b"}3"5c"},1Z:b(6,c,9,P){3 6+9.8.5e},20:b(6,c,9,P){3 6+9.8.4w},1J:b(i,9){5 g=t;5 7=g.y();F 7.n.1q;F 7.n.1i;4(9.8.v===50){7.n.1i=9.8.v}4(9.8.v===51){7.n.1q=9.8.v}7.E()},1u:b(i){i.4u(
\'\'
);5 g=t;5 7=g.y();4(7.n===1r)7.44({});F 7.n.1q;F 7.n.1i;7.E()},1l:b(i,4v,1E){5 g=t;5 7=g.y();5 1n=g.41();5 G=1n.1G.15;5 O=1n.1I.15||e a();4(G===1r){j.17("40!");3}4(G>O){j.17("3Z!");3}F 7.n.1m;F 7.n.1k;7.n.1m=e a(G.K(),G.I(),G.11());7.n.1k=e a(O.K(),O.I(),O.11()+1);7.E()},2s:b(i){5 g=t;5 7=g.y();5 N=g.1p();5 L=[];5 V=N.8.2g||[];V.3Y(b(2n){L.2c(2n.8.2a)});j.2k.1U({1h:i.f,w:i.w,3X:
\'
3W:
\'
,h:3V,3U:j.2k.3T,43:s,3S:t,3Q:t.26,3P:i})},26:b(2h,2e,i){4(2h!==
\'
3O
\'
)3;5 g=t;5 7=g.y();5 N=g.1p();5 L=[];5 V=N.8.2g||[];3N(5 X=0;X<V.3M;X++){5 2b=V[X].8;L.2c(2b.2a)}j.3L.3K({3J:
\'
/28/D.z.1s.J/3I.27
\'
,3H:{3R:L,2d:2e},45:b(19){5 4h=j.46(19.4s);j.17(
\'
4r!
\'
);7.E()},4q:b(19){}})},2f:b(i){5 g=t;5 7=g.y();5 N=g.1p();5 U=7.2j.8;4(U.2l>50){j.17("4p!");3}4(!U.2p(
\'
2r
\'
))U.2r={};5 13=j.2o(
\'
18.2t.D.z.J.4o.4n
\'
,{4m:Q});5 1b=j.2o(
\'
j.4l.4k
\'
,{4j:
\'
4t
\'
,1h:i.f,w:i.w,12:
\'
M
\'
,4i:s,h:4g,4f:4e,4d:s,4c:s,21:s,10:[13]});1b.1U();13.4b(U);13.4a(
\'
49
\'
,b(i,48){1b.47();7.E()})}}});'
,
62
,
326
,
'|||return|if|let|_2112301619060|_2112301619061|data|_2112301619062|Date|function|_2112301619063||new|text|_2112301619064|width|_2112301619065|Ext|style|fa||filter||color|background|dataIndex|true|this|xtype|status|iconCls||getView|Finances|普票|VAT|Type|Kivii|reload|delete|_2112301619066|renderer|getMonth|InvoiceApply|getFullYear|_2112301619069|left|_21123016190611|_21123016190610|_2112301619067|false|displayInfo|handler|F5B7B1|_21123016190612|_2112301619068|_21123016190613|_21123016190615||labelWidth|items|getDate|iconAlign|_21123016190614|bind|value|listeners|toast|App|_21123016190616|200|_21123016190619|60|format|select|editable|reference|title|StatusLessThanOrEqualTo|100|OperateTimeLessThan|_21123016190618|OperateTimeGreaterThanOrEqualTo|_21123016190617|D6EAF8|getViewModel|StatusGreaterThanOrEqualTo|null|Entities|fieldLabel|_21123016190628|datefield|align|借票|收款|SerialNumber|付款单位|Const|_21123016190622|OwnerName|_21123016190629|_21123016190621|startTime|_21123016190620|endTime|_21123016190635|disabled|List|OperateTime|flex|申请日期|_21123016190623|check|微信|支付宝|PayerName|show|260|刷卡|现金|_21123016190624|_21123016190625|_21123016190626|resizable|120|View|申请人||_21123016190631|json|Restful|selectionCount|Kvid|_21123016190634|push|Summary|_21123016190627|_21123016190633|selections|_21123016190632|store|selection|MessageBox|Status|dock|item|create|hasOwnProperty|OperatorName|Metadata|_21123016190630|Control|bottom|center|Amount|rownumberer|direction|流水号|sortable|toolbar|menuDisabled|FinancesFunctionsMoneyToFmoney|110|KiviiContext|right|条记录|点击清除|pagingtoolbar|已选择|square|button|autoLoad|System|申请金额|defaults|datecolumn|pageSize|sorters|property|extend|hidden|cls|overflowHandler|entityType||fields|160|未开票|已开票|triggers|结束|clear|dataSource|QueryEx|weight|220|dockedItems|viewModel|90|book|开始|申请处理|filterPickList|EntityList|130|searchField|top|columns|times|menu|rotate|combo|撤销|queryMode|执行开票|_21123016190639|copy|合并申请|模糊搜索流水号|emptyText|queryField|local|displayField|valueField|DESC|开票中|申请类型|jsonData|Reject|url|request|Ajax|length|for|ok|animateTarget|fn|ApplyKvids|scope|OKCANCEL|buttons|300|请填写原因|msg|forEach|开始日期不能大于结束日期|请选择开始时间|getReferences|140|multiline|setFilter|success|decode|close|_21123016190636|entityExecuted|on|setOwner|maximizable|modal|700|height|1150|_21123016190637|autoScroll|layout|Window|window|header|Form|Execute|当前申请无法执行开票|failure|驳回成功|responseText|fit|setValue|_21123016190638|PayerBankAccount|WeChat|AliPay|Pos|Cash|F3F781|Debit|D1FCA5|Payment|clearSelections|controller|activate|minWidth|摘要|PayerRegisteredBank|开户行|PayerCompanyAddress|地址|PayerTaxNumber|税号|状态|OperateType|D5F5E3|审批中|require|开票列队中|已批准|发票已作废|驳回|开票失败||||2147483647|申请已合并||||||ABEBC6|已开具|未处理|define|PayerPhone|红字冲销'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.View.Kivii.Finances.InvoiceApply.Payment.List.js
0 → 100644
View file @
5ef2d2e1
//Version:0.22
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
;}(
'w.3v(
\'
M.1g.j.h.D.k.1h
\'
,{3k:
\'
1Z.1e.1Y
\'
,1X:
\'
j.h.1f.k
\'
,9:
\'
M.1g.j.h.D.k.1h
\'
,1W:
\'
/1V/j.h.1f.k/1U.1T
\'
,17:
\'
1d
\'
,n:
\'
x-g g-1b
\'
,1S:{1R:16.14.1Q},1P:{L:{E:A}},1O:{1N:e,1M:F,1L:[{1K:
\'
C
\'
,1J:
\'
20
\'
}]},21:{22:
\'
23
\'
,2l:e,2k:s,2j:
\'
y
\'
},K:{11:
\'
{E}
\'
},2i:[{9:
\'
2h
\'
,P:
\'
2g
\'
,2f:e,t:[{9:
\'
2m
\'
,O:Q,n:
\'
x-g g-2d-2b-o
\'
,K:{5:
\'
2a{U}29,28
\'
,27:
\'
{U==0}
\'
},19:
\'
12
\'
}]},{9:
\'
26
\'
,P:
\'
25
\'
,24:
\'
1I
\'
,t:[{2c:
\'
0 3 -10 3
\'
,9:
\'
1G
\'
,1A:
\'
<W 1s="1r:1q">1n,1t</W>
\'
,1v:{1y:
\'
1z
\'
}},{9:
\'
1B
\'
,T:1,O:Q,1E:
\'
1k,l,1u,1D
\'
,1C:
\'
1x、1l、1w
\'
},{5:
\'
1d
\'
,n:
\'
x-g g-1b
\'
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},}});'
,
62
,
220
,
'||||_2112301558330|text|return|let|if|xtype|width|_2112301558331|dataIndex||true|_2112301558332|fa|Finances||Kivii|Payment|PayerName||iconCls||_2112301558333|_2112301558336|function|false|items|_2112301558335|Amount|Ext|||_2112301558334|null|_21123015583310|OperateTime|InvoiceApply|_2112301558339|100|_2112301558337||align|_2112301558338|bind|data|App|150|labelWidth|dock|60|length|type|flex|selectionCount|_21123015583312|div|_21123015583311||this||selection|_21123015583313|_21123015583314|CurrentMember|getView|KiviiContext|title|right|handler|PaymentKvids|money|create|到账申请|Control|Entities|View|List|AmountInvoice|parseFloat|SerialNumber|付款单位|resizable|若未找到开票收款|defaults|columns|red|color|style|请先到账管理中认领|PayerAccountName|fieldStyle|收付款账号或名称|模糊搜索流水号|fontSize|20px|value|searchField|emptyText|PayerAccountSerialNumber|queryField|disabled|displayfield|reload|menu|direction|property|sorters|pageSize|autoLoad|store|viewModel|DepartmentKvid|OwnerKvid|filter|json|InvoiceApplyQuery|Restful|dataSource|entityType|EntitySelector|System|DESC|selModel|selType|checkboxmodel|overflowHandler|top|toolbar|hidden|点击清除|条记录|已选择|square|margin|check|menuDisabled|displayInfo|bottom|pagingtoolbar|dockedItems|extensible|pruneRemoved|checkboxSelect|button|sortable|Summary|center|Kvid|push|for|CNY|Currency|Date|new|toFixed|PayeeTaxNumber|PayeeName|OperateType|Metadata|selections|getViewModel|已认领到账|Split|OrganizationName|rownumberer|Form|window|close|_21123015583315|entityCreated|on|setOwner|show|modal|header|450|900|autoScroll|left|iconAlign|fit|layout|Window|height|Bank|银行转账|WeChat|微信|摘要|format|发生日期|datecolumn|renderer|备注|Type|开票金额|110|发生金额|220|120|流水号|付款类型|Remark|extend|_21123015583317|支付宝|AliPay|刷卡|Pos|现金|Cash|_21123015583316|minWidth|_21123015583318|define|clearSelections|controller'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.View.Kivii.Finances.InvoiceTitle.List.js
0 → 100644
View file @
5ef2d2e1
//Version:0.04
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
;}(
'6.2t(
\'
i.2q.b
\'
);6.1i(
\'
i.J.h.b.j.H
\'
,{1c:
\'
1j.u.1l
\'
,e:
\'
i.J.h.b.j.H
\'
,1h:
\'
h.b.1K.j
\'
,1I:{},1D:5,y:
\'
z
\'
,1q:
\'
1J
\'
,g:
\'
x-3 3-16
\'
,1r:{T:{p:F,1s:F},},s:{w:
\'
{p}
\'
},1t:{1u:5,1v:1w,1x:[{1y:
\'
1z
\'
,1A:
\'
1B
\'
}]},1C:[{1E:
\'
1F
\'
,1G:0}],1H:[{e:
\'
1p
\'
,O:
\'
1o
\'
,1n:
\'
1e
\'
,k:[{e:
\'
17
\'
,D:1,G:E,18:
\'
M
\'
,19:
\'
1a
\'
},{4:
\'
1b
\'
,g:
\'
x-3 3-1m
\'
,l:
\'
m
\'
,t:
\'
C
\'
,},{4:
\'
1d
\'
,g:
\'
x-3 3-1f
\'
,l:
\'
m
\'
,t:
\'
L
\'
,s:{K:
\'
{!p}
\'
}},{4:
\'
1g
\'
,g:
\'
x-3 3-1k-o
\'
,l:
\'
m
\'
,t:
\'
I
\'
,s:{K:
\'
{!p}
\'
}}]},{e:
\'
28
\'
,O:
\'
1M
\'
,2b:5,k:[{e:
\'
2c
\'
,G:E,g:
\'
x-3 3-2d-2e-o
\'
,s:{4:
\'
2f{B}2g,2h
\'
,2j:
\'
{B==0}
\'
},t:
\'
A
\'
}]}],2s:{2k:{2l:5,2m:5},k:[{e:
\'
2n
\'
,2o:
\'
2p
\'
,},{4:
\'
1L
\'
,c:
\'
M
\'
,8:2r},{4:
\'
2a
\'
,c:
\'
2i
\'
,8:29},{4:
\'
1W
\'
,c:
\'
1N
\'
,8:1O},{4:
\'
1P
\'
,c:
\'
1Q
\'
,8:1R},{4:
\'
1S
\'
,c:
\'
1T
\'
,8:1U},{4:
\'
1V
\'
,c:
\'
1X
\'
,8:27,D:1}]},1Y:{A:f(){q.r().1Z()},C:f(){2 9=q;2 a=9.r();2 X=9.P();2 7=6.n(
\'
i.u.h.b.j.15
\'
);2 d=6.n(
\'
6.13.12
\'
,{y:
\'
z
\'
,l:
\'
m
\'
,14:5,8:10,Z:Y,11:5,W:V,k:[7]});d.U();7.20();7.S(
\'
21
\'
,f(v,R){d.Q();a.N()})},I:f(v){2 9=q;2 a=9.r();a.22()},L:f(){2 9=q;2 a=9.r();2 X=9.P();23(!a.w)24;2 7=6.n(
\'
i.u.h.b.j.15
\'
);2 d=6.n(
\'
6.13.12
\'
,{y:
\'
z
\'
,l:
\'
m
\'
,14:5,8:10,Z:Y,11:5,W:V,k:[7]});d.U();7.25(a.w.T,5);7.S(
\'
26
\'
,f(v,R){d.Q();a.N()})}}});'
,
62
,
154
,
'||let|fa|text|true|Ext|_2111171429181|width|_2111171429182|_2111171429180|Finances|dataIndex|_2111171429183|xtype|function|iconCls|Kivii|App|InvoiceTitle|items|iconAlign|left|create||_2111171429184|this|getView|bind|handler|Control|_2111171429185|selection||layout|fit|_21111714291811|selectionCount|_21111714291810|flex|60|null|labelWidth|List|_2111171429189|View|disabled|_2111171429188|CompanyName|reload|dock|getViewModel|close|_2111171429186|on|data|show|false|resizable|_2111171429187|380|height|560|modal|Window|window|autoScroll|Form|cc|searchField|queryField|emptyText|模糊搜索公司名称|新增|extend|详情|menu|list|删除|entityType|define|System|trash|EntityList|plus|overflowHandler|top|toolbar|title|viewModel|lastOwnerKvid|store|autoLoad|pageSize|50|sorters|property|CreateTime|direction|DESC|plugins|header|ptype|cellediting|clicksToEdit|dockedItems|filter|发票抬头|Entities|公司名称|bottom|CompanyAddress|260|电话号码|Phone|120|开户银行|BankName|220|银行账户|公司地址|BankAccount|controller|clearSelections|newEntity|entityCreated|deleteEntity|if|return|readEntity|entityUpdated|150|pagingtoolbar|180|税号|displayInfo|button|check|square|已选择|条记录|点击清除|TaxNumber|hidden|defaults|menuDisabled|sortable|rownumberer|align|center|Const|230|columns|require'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.View.Kivii.Finances.Payment.Accept.List.js
0 → 100644
View file @
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
;}(
'5.58(
\'
X.1v.s
\'
);5.40(
\'
X.1M.w.s.v.1i.1y
\'
,{2Z:
\'
37.1r.32
\'
,2Q:
\'
w.s.1d.v
\'
,n:
\'
X.1M.w.s.v.1i.1y
\'
,2F:
\'
/2r/w.s.1d.v/2G.2s
\'
,13:
\'
1N
\'
,j:
\'
x-g g-1I
\'
,L:{1O:f,1h:c b(c b().I(),c b().K(),1),1j:c b(c b().I(),c b().K(),c b().Z()+1)},2L:{B:{1g:1s}},1q:{1z:
\'
{1g}
\'
},2a:{2M:f,2O:2P,2R:[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){l(p===
\'
2b
\'
){6
\'
3W
\'
}l(p===
\'
22
\'
){6
\'
3U
\'
}l(p===
\'
3T
\'
){6
\'
4c
\'
}l(p===
\'
4e
\'
){6
\'
4z
\'
}l(p===
\'
23
\'
){6
\'
4y
\'
}6 p},1e:7(a,4w,26){3 e=u;3 8=e.t();3 1f=e.4u();3 F=1f.27.k;3 P=1f.1S.k||c b();l(F===1s){5.1l("4q!");6}l(F>P){5.1l("4p!");6}1R 8.L.1h;1R 8.L.1j;8.L.1h=c b(F.I(),F.K(),F.Z());8.L.1j=c b(P.I(),P.K(),P.Z()+1);8.E()},1L:7(a,T){3 e=u;3 8=e.t();8.L.1O=T.B.D;8.E()},10:7(a){3 e=u;3 8=e.t();3 r={};r.4S={};r.2q=1s;r.2d=a.19;r.4g="4h";r.4i=1o.4j.4k;r.1m=c b();r.4l=
\'
4m
\'
;3 G=5.W(
\'
X.1r.w.s.v.1i.4n
\'
,{2o:q});3 J=5.W(
\'
5.12.2w
\'
,{2n:
\'
2l
\'
,13:a.4,j:a.j,1D:
\'
1C
\'
,2k:f,h:4o,2i:4r,2f:f,1k:q,V:[G]});G.4s(r,a);J.1n();G.2m(
\'
4t
\'
,7(a,2z){J.1p();8.E()})},2A:7(a){3 e=u;3 8=e.t();3 1a=e.2h();3 A=1a.B.2j||[];l(!8.1z)6;l(A.14<=0)6;3 2x=5.W(
\'
5.12.2e
\'
,{j:a.j,1D:
\'
1C
\'
,4v:
\'
4x
\'
});2x.1n({13:a.4,4f:
\'
3V
\'
+A.14+
\'
3X?<3Y />3Z:
\'
,h:41,42:5.2e.47,48:f,4a:e,4B:e.2y,4L:a});6},2y:7(2g,2v,a){l(2g!==
\'
52
\'
)6;3 e=u;3 8=e.t();3 1a=e.2h();3 A=1a.B.2j||[];l(!8.1z)6;l(A.14<=0)6;3 1B=[];56(3 15=0;15<A.14;15++){1B.5b(A[15].B.2q)}5.57.4W({4X:
\'
/2r/w.s.1d.v/2p.2s
\'
,4E:{4F:1B,2u:2v},4P:7(1t){3 4Q=5.4T(1t.2W);5.1l(
\'
2Y!
\'
);8.E()},31:7(1t){3b.35()}})},2t:7(a){3 e=u;3 8=e.t();3 G=5.W(
\'
X.1r.w.s.v.2p.1y
\'
,{2o:q});3 J=5.W(
\'
5.12.2w
\'
,{2n:
\'
2l
\'
,13:a.4,j:a.j,1D:
\'
1C
\'
,2k:f,h:3e,2i:3E,2f:f,3m:f,1k:f,V:[G]});J.1n();J.2m(
\'
1p
\'
,7(a,2z){8.E()})}}});'
,
62
,
322
,
'|||let|text|Ext|return|function|_2112291657480|dataIndex|_2112291657481|Date|new||_2112291657482|true|fa|width||iconCls|value|if||xtype||_2112291657483|false|_2112291657484|Finances|getView|this|Payment|Kivii|||format|_2112291657485|data|handler|isPayee|reload|_2112291657487|_2112291657488||getFullYear|_2112291657486|getMonth|filter|summaryData|summaryType|align|_2112291657489|summaryRenderer|renderer|sum|_21122916574810|displayInfo|items|create|App||getDate|_21122916574812|_21122916574811|window|title|length|_21122916574813|labelWidth|toFixed|String|type|_21122916574814|listeners|right|Entities|_21122916574817|_21122916574816|_21122916574818|OperateTimeGreaterThanOrEqualTo|Accept|OperateTimeLessThan|resizable|toast|OperateTime|show|KiviiContext|close|bind|Control|null|_21122916574820|_21122916574815|Const|menu|editable|List|selection|reference|_21122916574819|left|iconAlign|select|100|dock|付款单位|cny|selectionCount|90|_21122916574830|View|新增到账|IsPayee|PayerName|flex|delete|endTime|_21122916574833|_21122916574822|SerialNumber|Amount|fieldLabel|FinancesFunctionsMoneyToFmoney|PayerAccountSerialNumber|_21122916574826|60|Pos|Bank|datefield|PayerAccountName|_21122916574828|startTime|150|120|store|Cash|_21122916574824|Type|MessageBox|modal|_21122916574831|getViewModel|height|selections|autoScroll|fit|on|layout|header|Offset|Kvid|Restful|json|_21122916574825|Remark|_21122916574829|Window|_21122916574821|_21122916574832|_21122916574823|_21122916574827|pruneRemoved|bank|银行到账|plus|dataSource|QueryEx|收付款账号或名称|模糊搜索流水号|emptyText|queryField|viewModel|autoLoad|searchField|pageSize|400|entityType|sorters|新增现金|新增刷卡|defaults|columns|responseText|disabled|到账作废成功|extend||failure|EntityList|trash|作废|unmask|作废记录|System|splitbutton|card|credit|_21122916574834|结束|property|1200|toolbar|checkboxmodel|hidden|点击清除|条记录|已选择|square|maximizable|check|bottom|pagingtoolbar|dockedItems|summary|ftype|features|extensible|button|checkboxSelect|top|overflowHandler|direction|DESC|开始|时间范围|付款|650|收款|selType|fields|selModel|filterPickList|valueField|displayField|local|queryMode|combo|menuDisabled|sortable|所属范围|center|AliPay|刷卡|是否作废选中|现金|条到账记录|br|请填写原因|define|300|buttons|B4EEB4|color|background|style|OKCANCEL|multiline|clearSelections|scope|controller|支付宝|activate|WeChat|msg|OwnerType|Organization|PayeeName|CurrentMember|OrganizationName|Currency|CNY|Form|850|开始日期不能大于结束日期|请选择开始时间|410|setOwner|entityCreated|getReferences|closeAction|_21122916574836|destroy|银行转账|微信|rownumberer|fn|备注|AmountUsed|jsonData|Kvids|已用金额|AmountInvoice|开票金额|AmountSplited|已认领|animateTarget|110|220|合计|success|_21122916574835|OwnerName|Metadata|decode|流水号|发生金额|request|url|付款类型|180|付款账号|280|ok|付款银行|Summary|摘要|for|Ajax|require|发生日期|datecolumn|push'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.View.Kivii.Finances.Payment.Filter.List.js
0 → 100644
View file @
5ef2d2e1
//Version:0.09
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
=
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:
\'
4b
\'
,6:
\'
4a
\'
,c:1D},{4:
\'
49
\'
,6:
\'
1B
\'
,c:48},{4:
\'
47
\'
,6:
\'
1A
\'
,c:3M},{4:
\'
3L
\'
,6:
\'
3K
\'
,1z:1}]},S:{3A:
\'
1u
\'
},3o:{1w:b(){t.u().3n()},1u:b(j,1Y){t.u().Q()},T:b(l,19,G,1p){g(l===G.D.1q){19.3m=
\'
39-3k:#3j
\'
}8 1l.14.1n(l)},1m:b(l,19,G,1p){g(l===
\'
3i
\'
){8
\'
3h
\'
}g(l===
\'
3g
\'
){8
\'
3e
\'
}g(l===
\'
3d
\'
){8
\'
3c
\'
}g(l===
\'
3b
\'
){8
\'
3a
\'
}g(l===
\'
3p
\'
){8
\'
3q
\'
}8 l},1b:b(j,3r,1Y){9 n=t;9 3=n.u();9 16=n.3s();9 v=16.1W.a;9 K=16.1V.a||5 7();g(v===W){f.1X("3H!");8}g(v>K){f.1X("3G!");8}1Q 3.p.15;1Q 3.p.17;3.p.15=5 7(v.z(),v.A(),v.10());3.p.17=5 7(K.z(),K.A(),K.10()+1);3.Q()},1O:b(j,G){9 n=t;9 3=n.u();3.p.1g=G.D.w;3.Q()},1M:b(j){j.3E(
\'\'
);9 n=t;9 3=n.u();g(3.p===W)3.3D({});3.p.1g=W;3.Q()},X:b(j){9 n=t;9 3=n.u();9 1G=n.3C();9 18=1G.D.3J||[];g(!3.1J)8;g(18.3B<=0)8;9 13=f.1P(
\'
12.1N.I.B.J.1c.3y
\'
);9 1i=f.1P(
\'
f.3x.3w
\'
,{3v:
\'
3u
\'
,1U:j.4,r:j.r,3t:
\'
44
\'
,4o:k,c:3z,3F:3I,3f:k,1o:q,11:[13]});13.4f(18,j);1i.4n();13.4g(
\'
4i
\'
,b(j,4l){1i.46();3.Q()})}}});'
,
62
,
273
,
'|||_2112291527010|text|new|dataIndex|Date|return|let|value|function|width||fa|Ext|if|xtype||_2112291527012|true|_2112291527011||_2112291527013||filter|false|iconCls|format|this|getView|_2112291527014|isSplit|||getFullYear|getMonth|Finances|summaryType|data|renderer|displayInfo|_2112291527015||Kivii|Payment|_2112291527016|handler|summaryData|summaryRenderer|align|sum|reload|right|listeners|_2112291527018|toFixed|String|null|_2112291527017||labelWidth|getDate|items|App|_2112291527019|Const|OperateTimeGreaterThanOrEqualTo|_21122915270115|OperateTimeLessThan|_21122915270110|_21122915270111|select|_21122915270113|Filter|type|editable|reference|IsSplit|bind|_21122915270112|100|_21122915270114|KiviiContext|_21122915270121|FinancesFunctionsMoneyToFmoney|resizable|_21122915270119|Amount|List|dock|menu|_21122915270123|fieldLabel|_21122915270118|View|datefield|flex|PayerAccountSerialNumber|PayerAccountName|store|150|selectionCount|Entities|_21122915270117|SerialNumber|PayerName|selection|付款单位|60|_21122915270122|Control|_21122915270120|create|delete|已认领|OperateTime|90|title|endTime|startTime|toast|_21122915270116|reply|Split|down|weight|circle|模糊搜索流水号|queryField|cls|times|searchField|退款处理|开始|clear|结束|收付款账号或名称|splitbutton|认领|arrow|时间范围|emptyText|bottom|未认领|checkboxmodel|selType|selModel|DESC|direction|property|sorters|400|pageSize|autoLoad|viewModel|IsPayee|到账筛选|json|QueryEx|Restful|dataSource|entityType|EntityList|System|extend|checkboxSelect|triggers|pruneRemoved|features|fields|filterPickList|valueField|displayField|local|queryMode|combo|overflowHandler|top|toolbar|hidden|点击清除|条记录|已选择|square|check||button|pagingtoolbar|dockedItems|summary|ftype|extensible|Refund|require|background|微信|WeChat|支付宝|AliPay|刷卡|modal|Pos|现金|Cash|B4EEB4|color|非业务处理|style|clearSelections|controller|Bank|银行转账|_21122915270125|getReferences|iconAlign|fit|layout|Window|window|Form|450|activate|length|getViewModel|setFilter|setValue|height|开始日期不能大于结束日期|请选择开始时间|200|selections|Remark|备注|180|AmountSplited|110|发生金额|220|合计|120|流水号|开票金额|center|sortable|menuDisabled|defaults|columns|disabled|UnBiz|eraser|rownumberer|left|AmountInvoice|close|付款账号|280|付款银行|Summary|摘要|Type|付款类型|已用金额|setOwner|on|define|entitySplited|发生日期|datecolumn|_21122915270124|AmountUsed|show|autoScroll'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.View.Kivii.Finances.Payment.List.js
0 → 100644
View file @
5ef2d2e1
//Version:1.16
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
;}(
'7.53(
\'
J.1O.w
\'
);7.5y(
\'
J.2D.D.w.E.1f
\'
,{3J:
\'
3I.11.3H
\'
,3G:
\'
D.w.1F.E
\'
,s:
\'
J.2D.D.w.E.1f
\'
,3F:
\'
/2x/D.w.1F.E/3E.2z
\'
,P:
\'
3D
\'
,c:
\'
x-a a-2l
\'
,I:{26:9,1J:l,1H:g f(g f().10(),g f().12(),1),1D:g f(g f().10(),g f().12(),g f().1A()+1)},3C:{B:{1B:17}},1P:{1q:
\'
{1B}
\'
},1L:{3B:9,3A:3z,3y:[{3x:
\'
1C
\'
,3w:
\'
3v
\'
}]},3u:{3t:
\'
3s
\'
,3r:9,3q:l,3p:
\'
y
\'
},3o:[{3n:
\'
3K
\'
}],3M:[{s:
\'
4b
\'
,2M:
\'
3N
\'
,G:9,K:[{s:
\'
4a
\'
,1w:28,c:
\'
x-a a-49-48-o
\'
,1P:{6:
\'
47{2N}46,45
\'
,44:
\'
{2N==0}
\'
},u:
\'
27
\'
}]},{s:
\'
43
\'
,2M:
\'
42
\'
,41:
\'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h:
\'
5o
\'
,j:2j},{6:
\'
5p
\'
,h:
\'
21
\'
,j:5q},{6:
\'
5I
\'
,h:
\'
2R
\'
,j:5H},{6:
\'
5G
\'
,h:
\'
2B
\'
,1X:1}]},1l:{5F:
\'
2e
\'
},5E:{27:b(){r.t().5D()},2e:b(4,23){r.t().v()},1s:b(A,1W,N,2d){k(A===N.B.2f){1W.5C=
\'
5B-5J:#4d
\'
}e 1E.1O.2h(A)},2g:b(A,1W,N,2d){k(A===
\'
2c
\'
){e
\'
5x
\'
}k(A===
\'
2k
\'
){e
\'
5w
\'
}k(A===
\'
5v
\'
){e
\'
5u
\'
}k(A===
\'
5t
\'
){e
\'
5s
\'
}k(A===
\'
25
\'
){e
\'
5r
\'
}e A},1T:b(4,54,23){3 8=r;3 5=8.t();3 1N=8.58();3 Z=1N.24.n;3 13=1N.1Z.n||g f();k(Z===17){7.1G("52!");e}k(Z>13){7.1G("4e!");e}2i 5.I.1H;2i 5.I.1D;5.I.1H=g f(Z.10(),Z.12(),Z.1A());5.I.1D=g f(13.10(),13.12(),13.1A()+1);5.v()},2a:b(4,N){3 8=r;3 5=8.t();5.I.26=N.B.W;5.v()},1Y:b(4,N){3 8=r;3 5=8.t();5.I.1J=N.B.U;5.v()},22:b(4){4.4A(
\'\'
);3 8=r;3 5=8.t();k(5.I===17)5.4z({});5.I.1J=17;5.v()},1y:b(4){3 8=r;3 5=8.t();3 F={};F.4y={};F.2w=17;F.2I=4.L;F.4x="4w";F.4v=1E.4u.4t;F.1C=g f();F.4s=
\'
4r
\'
;3 q=7.z(
\'
J.11.D.w.E.4B.2O
\'
,{1n:l});3 p=7.z(
\'
7.M.18
\'
,{1e:
\'
19
\'
,P:4.6,c:4.c,T:
\'
S
\'
,1d:9,j:4q,16:4o,1a:9,X:l,K:[q]});q.2P(F,4);p.R();q.1c(
\'
4n
\'
,b(4,1b){p.V();5.v()})},1t:b(4){3 8=r;3 5=8.t();3 Q=8.1V();3 C=Q.B.1S||[];k(!5.1q)e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S||[];k(!5.1q)e;k(C.1j<=0)e;3 1K=[];4S(3 1o=0;1o<C.1j;1o++){1K.4R(C[1o].B.2w)}7.51.4Q({4O:
\'
/2x/D.w.1F.E/2y.2z
\'
,4N:{4M:1K,2B:2C},4L:b(1I){3 4K=7.4J(1I.4I);7.1G(
\'
4H!
\'
);5.v()},4G:b(1I){4F.3l()}})}}});'
,
62
,
357
,
'|||let|_2112291700310|_2112291700311|text|Ext|_2112291700312|true|fa|function|iconCls||return|Date|new|dataIndex||width|if|false||value||_2112291700313|_2112291700314|this|xtype|getView|handler|reload|Finances|||create|_2112291700315|data|_2112291700316|Kivii|Payment|_2112291700317|displayInfo||filter|App|items|type|window|_2112291700318|format|title|_2112291700319|show|left|iconAlign|isSplit|close|isPayee|resizable||_21122917003110|getFullYear|Control|getMonth|_21122917003112|sum|summaryRenderer|height|null|Window|fit|modal|_21122917003111|on|autoScroll|layout|List|summaryData|align|summaryType|length|renderer|listeners|select|header|_21122917003116|String|selection|toFixed|_21122917003114|_21122917003113|editable|reference|labelWidth|menu|_21122917003115|right|getDate|_21122917003118|OperateTime|OperateTimeLessThan|KiviiContext|Entities|toast|OperateTimeGreaterThanOrEqualTo|_21122917003121|IsSplit|_21122917003120|store|maximizable|_21122917003117|Const|bind|1200|650|selections|_21122917003122|100|getViewModel|_21122917003119|flex|_21122917003128|endTime|datefield|PayerAccountName|_21122917003129|_21122917003123|startTime|Bank|IsPayee|_21122917003130|60|fieldLabel|_21122917003138|fields|Cash|_21122917003126|_21122917003125|Amount|_21122917003124|FinancesFunctionsMoneyToFmoney|delete|150|Pos|cny|queryMode|valueField|MessageBox|filterPickList|已认领|_21122917003135|_21122917003136|PayerName|付款单位|_21122917003134|Kvid|Restful|Offset|json|splitbutton|Remark|_21122917003137|View|SerialNumber|_21122917003133|90|_21122917003132|Type|displayField|local|combo|dock|selectionCount|Form|setOwner|_21122917003127|PayerAccountSerialNumber|_21122917003131|Split|银行到账|sign|使用记录|新增刷卡|spinner|认领记录||down|退款处理|新增到账|新增现金|credit|card|disabled|非业务处理|reply|arrow|Refund|bank|收付款账号或名称|作废|circle|UnBiz|eraser|plus|认领|trash|unmask|emptyText|ftype|features|extensible|pruneRemoved|checkboxSelect|checkboxmodel|selType|selModel|DESC|direction|property|sorters|400|pageSize|autoLoad|viewModel|到账流水|QueryEx|dataSource|entityType|EntityList|System|extend|summary|模糊搜索流水号|dockedItems|bottom|queryField|searchField|结束|开始|时间范围|times|cls|weight|clear|triggers|未认领|付款|收款|overflowHandler|top|toolbar|hidden|点击清除|条记录|已选择|square|check|button|pagingtoolbar|in|B4EEB4|开始日期不能大于结束日期|msg|destroy|closeAction|Used|entitySplited|200|450|Filter|entityCreated|410|是否作废选中|850|CNY|Currency|OrganizationName|CurrentMember|PayeeName|Organization|OwnerType|Metadata|setFilter|setValue|Accept|作废记录|条到账记录|请填写原因|_21122917003141|failure|到账作废成功|responseText|decode|_21122917003140|success|Kvids|jsonData|url|br|request|push|for|ok|animateTarget|fn|scope|multiline|OKCANCEL|buttons|300|Ajax|请选择开始时间|require|_21122917003139|付款类型|defaults|menuDisabled|getReferences|sortable|rownumberer|center|发生日期|摘要|datecolumn|AmountUsed|已用金额|AmountInvoice|开票金额|AmountSplited|120|110|发生金额|流水号|Summary|付款银行|280|银行转账|微信|WeChat|支付宝|AliPay|刷卡|现金|define|220|columns|background|style|clearSelections|controller|activate|备注|180|付款账号|color|合计'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.View.Kivii.Finances.Payment.Split.List.js
0 → 100644
View file @
5ef2d2e1
//Version:0.48
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
(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
\'
{0}
\'
,t.1V(2))},l:1W},{b:
\'
4V
\'
,h:
\'
14
\'
,1b:
\'
2s
\'
,l:1W},{A:
\'
4U
\'
,b:
\'
51
\'
,10:
\'
Y-m-d H:i
\'
,h:
\'
2l
\'
,l:2w},{b:
\'
5o
\'
,h:
\'
5n
\'
,l:2w},{b:
\'
5m
\'
,h:
\'
24
\'
,l:5k},{b:
\'
5j
\'
,h:
\'
26
\'
,l:5i},{b:
\'
5d
\'
,h:
\'
4c
\'
,2j:1}]},1y:{5e:
\'
2u
\'
},5q:{2r:9(){u.v().5r()},2u:9(a,22){u.v().C()},2v:9(e,K,U,1L){4(e===13||e===5g||e===
\'\'
){K.17=
\'
16-18:#2h
\'
}6 e},1N:9(e,K,U,1L){4(e===U.j.1K){K.17=
\'
16-18:#2q
\'
}6 21.1M.2t(e)},2s:9(e,K,U,1L){K.17=
\'
16-18:#2q
\'
;4(e===
\'
2L
\'
){K.17=
\'
16-18:#5h
\'
;6
\'
5l
\'
}4(e===
\'
2M
\'
){K.17=
\'
16-18:#2h
\'
;6
\'
4T
\'
}4(e===
\'
N
\'
){6
\'
5b
\'
}4(e===
\'
4R
\'
){6
\'
4w
\'
}4(e===
\'
4S
\'
){6
\'
4u
\'
}4(e===
\'
4t
\'
){6
\'
4s
\'
}4(e===
\'
4r
\'
){6
\'
4q
\'
}6 e},1O:9(a,4p,22){3 8=u;3 5=8.v();3 20=8.4o();3 V=20.2m.t;3 1f=20.2C.t||f g();4(V===13){7.F("4n!");6}4(V>1f){7.F("4m!");6}2x 5.I.1J;2x 5.I.1I;5.I.1J=f g(V.Q(),V.P(),V.1B());5.I.1I=f g(1f.Q(),1f.P(),1f.1B()+1);5.C()},31:9(a,U){3 8=u;3 5=8.v();5.I.1H=U.j.W;5.C()},2Y:9(a){a.4l(
\'\'
);3 8=u;3 5=8.v();4(5.I===13)5.4k({});5.I.1H=13;5.C()},33:9(a){3 8=u;3 5=8.v();3 s=8.R();3 c=s.j.S||[];4(!5.z)6;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===
\'
2L
\'
)1x.1m(E.1s);4(E.14===
\'
2M
\'
)1v.1m(E.1s)}4(J.k>0){7.1E.1D({1C:
\'
/19/B.w.O.D/4I.1c
\'
,1z:{1w:J},1u:9(r){3 1g=7.1o(r.1F);7.F(
\'
4H!
\'
);5.C()},1A:9(r){}})}4(1x.k>0){7.1E.1D({1C:
\'
/19/B.w.O.D/4G.1c
\'
,1z:{1w:1x},1u:9(r){3 1g=7.1o(r.1F);7.F(
\'
4F!
\'
);5.C()},1A:9(r){}})}4(1v.k>0){7.1E.1D({1C:
\'
/19/B.w.O.D/4E.1c
\'
,1z:{1w:1v},1u:9(r){3 1g=7.1o(r.1F);7.F(
\'
4D!
\'
);5.C()},1A:9(r){}})}},2O:9(a){3 8=u;3 5=8.v();3 s=8.R();3 c=s.j.S||[];4(!5.z)6;4(c.k<=0)6;4(c.k>1){7.F("4A!");6}3 M=7.11(
\'
1d.1R.B.w.D.4z.1P
\'
,{5f:L});3 T=7.11(
\'
7.1h.2U
\'
,{2T:
\'
2S
\'
,1S:a.b,p:a.p,1l:
\'
1e
\'
,2R:n,l:4B,2P:4C,2N:n,4J:n,1Q:n,15:[M]});M.2Z(5.z.j,a);T.2y();T.2i(
\'
2p
\'
,9(a,2X){5.C()})},}});'
,
62
,
338
,
'|||let|if|_2112291654300|return|Ext|_2112291654301|function|_2112291654302|text|_2112291654303||_2112291654304|new|Date|dataIndex||data|length|width||true||iconCls|fa|_2112291654306|_2112291654305|value|this|getView|Finances|||selection|xtype|Kivii|reload|Payment|_2112291654307|toast|_2112291654309||filter|_21122916543010|_2112291654308|false|_21122916543011|Split|Entities|getMonth|getFullYear|getViewModel|selections|_21122916543015|_21122916543013|_21122916543012|isBiz|bind||handler|format|create|_21122916543014|null|Type|items|background|style|color|Restful|displayInfo|renderer|json|App|left|_21122916543016|_21122916543020|window|_21122916543018|labelWidth|disabled|iconAlign|push|summaryData|decode|summaryRenderer|sum|summaryType|Kvid|align|success|_21122916543017|Kvids|_21122916543021|listeners|jsonData|failure|getDate|url|request|Ajax|responseText|_21122916543019|IsBiz|OperateTimeLessThan|OperateTimeGreaterThanOrEqualTo|Amount|_21122916543023|Const|_21122916543022|_21122916543025|List|resizable|Control|title|right|String|toFixed|100|select|editable|reference|_21122916543024|KiviiContext|_21122916543031|in|PayerAccountName|circle|PayerAccountSerialNumber|arrow|menu|SerialNumber|120|付款单位|PayerName|selectionCount|220|60|dock|FFC0CB|on|flex|datefield|OperateTime|startTime|fieldLabel|store|close|B4EEB4|_21122916543036|_21122916543028|FinancesFunctionsMoneyToFmoney|_21122916543026|_21122916543027|150|delete|show|_21122916543037|MessageBox|closeAction|endTime|destroy|confirm|条认领记录|br|注|_21122916543038|_21122916543039|yes|UnBiz|Refund|modal|_21122916543030|height|View|autoScroll|fit|layout|Window|for|_21122916543035|_21122916543029|_21122916543033|setOwner||_21122916543032|sign|_21122916543034|AmountUsed|summary|收付款账号或名称|模糊搜索流水号|emptyText|queryField|到账使用|spinner|viewModel|autoLoad|pageSize|800|toolbar|SplitQuery|充值|hidden|top|extend|已选择|System|条记录|EntityList|使用记录|dataSource|type|square|entityType|重新认领|点击清除|撤销认领|splitbutton|down|searchField|overflowHandler|combo|DESC|triggers|selModel|selType|非业务收入|checkboxmodel|clear|业务收入|pagingtoolbar|fields|pruneRemoved|extensible|features|ftype|checkboxSelect|weight|filterPickList|cls|sorters|property|queryMode|local|displayField|160|结束|direction|check|button|90|bottom|时间范围|valueField|times|dockedItems|开始|Remark|columns|600|Form|Transfer|无可用金额|所选到账|充值时请勿多选|setFilter|setValue|开始日期不能大于结束日期|请选择开始时间|getReferences|_21122916543040|微信支付|WeChat|支付宝|AliPay|现金|350|刷卡|entityTransfer|当前认领只会改变所属部门信息|Used|查看使用记录时请勿多选|1200|650|撤销退款成功|RefundCancel|撤销非业务成功|UnBizCancel|撤销认领成功|SplitCancel|maximizable|则只会清除所属部门信息|若要撤销已使用认领|您确认要撤销选中的|认领成功|MultiSplit|请选择正确业务认领类型的到账|您确认要重新认领选中的|Pos|Cash|退款|datecolumn|付款类型|已用金额|AmountInvoice|开票金额|110|发生金额|发生日期|合计|所属部门|流水号|center|rownumberer|sortable|menuDisabled|defaults|OwnerName|业务认领|require|备注|activate|header|undefined|F0E68C|180|付款账号|280|非业务|付款银行|Summary|摘要|define|controller|clearSelections'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.View.Kivii.Finances.Settlement.List.js
0 → 100644
View file @
5ef2d2e1
//Version:0.73
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
;}(
'8.4T(
\'
G.1s.w
\'
);8.4t(
\'
G.1X.A.w.F.2c
\'
,{36:
\'
3b.X.2P
\'
,3g:
\'
A.w.2e.F
\'
,r:
\'
G.1X.A.w.F.2c
\'
,3q:
\'
/3r/A.w.2e.F/3E.3i
\'
,W:
\'
3z
\'
,i:
\'
x-h h-3y-o
\'
,j:{2k:k},3x:{p:{1Q:C}},1P:{1E:
\'
{1Q}
\'
},20:{3v:7,3u:3t,3s:
\'
V
\'
,3p:[{1J:
\'
1R
\'
,1M:
\'
1I
\'
},{1J:
\'
V
\'
,1M:
\'
1I
\'
},{1J:
\'
1O
\'
,1M:
\'
1I
\'
}]},3m:{3l:
\'
3A
\'
,3C:7,3D:k,3S:
\'
y
\'
},3R:[{3Q:
\'
3P
\'
,3O:[
\'
<22>{1N:n.1V}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A=18 1e(M.2C(),M.2G(),M.2F());4.j.1B=18 1e(T.2C(),T.2G(),T.2F()+1);4.s()},2D:6(5){5.2H(C);3 1j=n;3 4=1j.q();g(4.j===C)4.2A({});S 4.j.1A;4.s()},2I:6(5){5.2H(C);3 1j=n;3 4=1j.q();g(4.j===C)4.2A({});S 4.j.1B;4.s()},2z:6(5,u){3 a=n;3 4=a.q();4.j.2k=u.p.J;4.s()},2l:6(5,1y){3 a=n;3 4=a.q();g(!1y)S 4.j.2o;2m 4.j.2o=!1y;4.s()},2p:6(5){3 a=n;3 4=a.q();3 c=8.E(
\'
G.X.A.w.F.1o
\'
,{1n:k});3 l=8.E(
\'
8.1g.19
\'
,{16:
\'
1d
\'
,W:5.9,i:5.i,Z:
\'
10
\'
,1a:7,e:41,15:44,14:7,13:7,12:7,B:[c]});l.1k();c.1p(
\'
2r
\'
,6(5,1q){l.1m();4.s()})},2B:6(5,47,49,4n,4x,u){3 a=n;3 4=a.q();3 c=8.E(
\'
G.X.A.w.F.1o
\'
,{1n:k});3 l=8.E(
\'
8.1g.19
\'
,{16:
\'
1d
\'
,W:5.9,i:5.i,Z:
\'
10
\'
,1a:7,e:2v,15:4R,14:7,13:7,12:7,B:[c]});l.1k();c.1D(u.p);c.1p(
\'
4z
\'
,6(5,1q){l.1m();4.s()})},2s:6(5){3 a=n;3 4=a.q();3 1i=a.2q();3 z=1i.p.2n||[];g(!4.1E)b;g(z.1l<=0)b;3 P={4Y:{},2y:C,1F:0,2t:0,2u:0,1R:v.K.4A,4G:v.K.4I,1O:18 1e(),4O:v.K.4P,31:v.K.33,1K:v.K.34,35:v.K.2y,37:
\'
39
\'
,2w:[]};3h(3 I=0;I<z.1l;I++){P.V=z[I].p.V;P.2x=z[I].p.2x;P.2w.3f(z[I].p)}3 c=8.E(
\'
G.X.A.w.38.1o
\'
,{1n:k});3 l=8.E(
\'
8.1g.19
\'
,{16:
\'
1d
\'
,W:5.9,i:5.i,Z:
\'
10
\'
,1a:7,e:2v,15:2L,14:7,13:7,12:7,B:[c]});c.1D(P);l.1k();c.1p(
\'
2r
\'
,6(5,1q){l.1m();4.s()})},3K:6(5){3 a=n;3 4=a.q();3 1i=a.2q();3 z=1i.p.2n||[];g(!4.1E)b;g(z.1l<=0)b;3 c=8.E(
\'
G.X.A.w.F.3o.1o
\'
,{1n:k});3 l=8.E(
\'
8.1g.19
\'
,{16:
\'
1d
\'
,W:5.9,i:5.i,Z:
\'
10
\'
,1a:7,e:3w,15:3n,14:7,13:7,12:7,B:[c]});c.1D(z);l.1k();c.1p(
\'
3T
\'
,6(5,1q){l.1m();4.s()})}}});'
,
62
,
317
,
'|||let|_2201041610340|_2201041610341|function|true|Ext|text|_2201041610342|return|_2201041610343||width|dataIndex|if|fa|iconCls|filter|false|_2201041610344||this||data|getView|xtype|reload|value|_2201041610346|KiviiContext|Finances|||_2201041610345|Kivii|items|null|_2201041610347|create|Settlement|App|handler|_2201041610349|isPayed|CurrentMember|100|_2201041610348|format|_22010416103410|_22010416103412|displayInfo|labelWidth|delete|_22010416103411|renderer|PayerName|title|Control||iconAlign|left|sum|resizable|maximizable|modal|height|layout|align|new|Window|autoScroll|String|summaryType|fit|Date|summaryData|window|summaryRenderer|_22010416103413|_22010416103415|show|length|close|header|Form|on|_22010416103414|listeners|Const|_22010416103416|toFixed|color|90|background|_22010416103418|style|OperateTimeGreaterThanOrEqualTo|OperateTimeLessThan|FinancesFunctionsMoneyToFmoney|setOwner|selection|Amount|editable|reference|DESC|property|OperatorName|select|direction|name|OperateTime|bind|_22010416103419|OwnerName|right|fieldLabel|_22010416103417|formatName|OffsetKvid|View|selectionCount|dock|store|datefield|div|triggers|_22010416103422|_22010416103421|_22010416103432|clear|weight|flex|cls|times|List|60|Entities|BizId|_22010416103423|_22010416103426|_22010416103420|startTime|IsPayed|_22010416103431|else|selections|IsBilled|_22010416103425|getViewModel|entityCreated|_22010416103424|AmountPlan|AmountPayment|1200|Details|PayerKvid|Kvid|_22010416103430|setFilter|_22010416103429|getFullYear|_22010416103427|endTime|getDate|getMonth|setValue|_22010416103428|toast|toolbar|700|top|valueField|hidden|EntityList|overflowHandler|menu|combo|点击清除|queryMode|local|displayField|filterPickList|已收款|fields||PayeeName|searchField|OrganizationName|FullName|OperatorKvid|extend|Currency|Bill|CNY|结束|System|开始|时间范围|未收款|push|entityType|for|json|square|已选择|selType|selModel|500|Paying|sorters|dataSource|Restful|groupField|400|pageSize|autoLoad|900|viewModel|newspaper|结算管理|checkboxmodel|条记录|checkboxSelect|pruneRemoved|QueryEx|check|button|bottom|pagingtoolbar|dockedItems|_22010416103437|queryField|条|rows|groupHeaderTpl|groupingsummary|ftype|features|extensible|entityPaying|emptyText|plus|所属业务或操作人|200|摘要|Summary|search|1300|查看|center|720|操作|actioncolumn|_22010416103434|操作人|_22010416103438|类型|模糊搜索付款单位|Remark|备注|minWidth|activate|_22010416103435|请选择开始时间|开始日期不能大于结束日期|FF0000|hasOwnProperty|F0E68C|B4EEB4|_22010416103433|快递费|服务费|Service|报告费|Report|define|clearSelections|controller|Express|_22010416103436|Type|entityDeleted|DepartmentName|rownumberer|sortable|menuDisabled|defaults|columns|OwnerKvid|disabled|DepartmentKvid|file|生成账单|getReferences|新增结算|仅显示未有账单|PayeeKvid|OrganizationKvid|checkbox|680|所属业务|require|合计|所属部门|120|操作日期|Metadata|已付金额||util|Format|结算金额|dateRenderer|170|原金额'
.
split
(
'|'
),
0
,{}))
Src/Content/codet/App.Const.Finances.js
0 → 100644
View file @
5ef2d2e1
KiviiContext
.
Const
=
KiviiContext
.
Const
||
{};
//防止Const已经被定义
//金额大写调用方法
KiviiContext
.
Const
.
FinancesFunctionsMoneyToChineseBig
=
function
(
_value
)
{
var
money
=
Math
.
abs
(
_value
);
//alert('检测用到了公共方法');
var
cnNums
=
new
Array
(
"零"
,
"壹"
,
"贰"
,
"叁"
,
"肆"
,
"伍"
,
"陆"
,
"柒"
,
"捌"
,
"玖"
);
//汉字的数字
var
cnIntRadice
=
new
Array
(
""
,
"拾"
,
"佰"
,
"仟"
);
//基本单位
var
cnIntUnits
=
new
Array
(
""
,
"万"
,
"亿"
,
"兆"
);
//对应整数部分扩展单位
var
cnDecUnits
=
new
Array
(
"角"
,
"分"
,
"毫"
,
"厘"
);
//对应小数部分单位
//var cnInteger = "整"; //整数金额时后面跟的字符
var
cnIntLast
=
"元"
;
//整型完以后的单位
var
maxNum
=
999999999999999.9999
;
//最大处理的数字
var
IntegerNum
;
//金额整数部分
var
DecimalNum
;
//金额小数部分
var
ChineseStr
=
""
;
//输出的中文金额字符串
var
parts
;
//分离金额后用的数组,预定义
if
(
money
===
""
)
{
return
""
;
}
money
=
parseFloat
(
money
);
if
(
money
>=
maxNum
)
{
return
"超出最大处理数字"
;
}
if
(
money
===
0
)
{
//ChineseStr = cnNums[0]+cnIntLast+cnInteger;
ChineseStr
=
cnNums
[
0
]
+
cnIntLast
;
//document.getElementById("show").value=ChineseStr;
return
ChineseStr
;
}
money
=
money
.
toString
();
//转换为字符串
if
(
money
.
indexOf
(
"."
)
==
-
1
)
{
IntegerNum
=
money
;
DecimalNum
=
''
;
}
else
{
parts
=
money
.
split
(
"."
);
IntegerNum
=
parts
[
0
];
DecimalNum
=
parts
[
1
].
substr
(
0
,
4
);
}
if
(
parseInt
(
IntegerNum
,
10
)
>
0
)
{
//获取整型部分转换
zeroCount
=
0
;
IntLen
=
IntegerNum
.
length
;
for
(
i
=
0
;
i
<
IntLen
;
i
++
)
{
n
=
IntegerNum
.
substr
(
i
,
1
);
p
=
IntLen
-
i
-
1
;
q
=
p
/
4
;
m
=
p
%
4
;
if
(
n
==
"0"
)
{
zeroCount
++
;
}
else
{
if
(
zeroCount
>
0
)
{
ChineseStr
+=
cnNums
[
0
];
}
zeroCount
=
0
;
//归零
ChineseStr
+=
cnNums
[
parseInt
(
n
)]
+
cnIntRadice
[
m
];
}
if
(
m
===
0
&&
zeroCount
<
4
)
{
ChineseStr
+=
cnIntUnits
[
q
];
}
}
ChineseStr
+=
cnIntLast
;
//整型部分处理完毕
}
if
(
DecimalNum
!==
''
)
{
//小数部分
decLen
=
DecimalNum
.
length
;
for
(
i
=
0
;
i
<
decLen
;
i
++
)
{
n
=
DecimalNum
.
substr
(
i
,
1
);
if
(
n
!=
'0'
)
{
ChineseStr
+=
cnNums
[
Number
(
n
)]
+
cnDecUnits
[
i
];
}
}
}
if
(
ChineseStr
===
''
)
{
//ChineseStr += cnNums[0]+cnIntLast+cnInteger;
ChineseStr
+=
cnNums
[
0
]
+
cnIntLast
;
}
/* else if( DecimalNum == '' ){
ChineseStr += cnInteger;
ChineseStr += cnInteger;
} */
return
ChineseStr
;
};
//金额转换为xx万
KiviiContext
.
Const
.
FinancesFunctionsMoneyToChineseSimple
=
function
(
_value
)
{
return
_value
/
10000
+
'万'
;
};
//金额格式化为100,00.00
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
=
function
(
s
,
n
)
{
if
(
s
<
0
)
{
n
=
n
>
0
&&
n
<=
20
?
n
:
2
;
s
=
0
-
s
;
s
=
parseFloat
((
s
+
""
).
replace
(
/
[^\d\.
-
]
/g
,
""
)).
toFixed
(
n
)
+
""
;
l
=
s
.
split
(
"."
)[
0
].
split
(
""
).
reverse
(),
r
=
s
.
split
(
"."
)[
1
];
t
=
""
;
for
(
i
=
0
;
i
<
l
.
length
;
i
++
)
{
t
+=
l
[
i
]
+
((
i
+
1
)
%
3
===
0
&&
(
i
+
1
)
!=
l
.
length
?
","
:
""
);
}
return
"-"
+
t
.
split
(
""
).
reverse
().
join
(
""
)
+
"."
+
r
;
}
else
{
n
=
n
>
0
&&
n
<=
20
?
n
:
2
;
s
=
parseFloat
((
s
+
""
).
replace
(
/
[^\d\.
-
]
/g
,
""
)).
toFixed
(
n
)
+
""
;
l
=
s
.
split
(
"."
)[
0
].
split
(
""
).
reverse
(),
r
=
s
.
split
(
"."
)[
1
];
t
=
""
;
for
(
i
=
0
;
i
<
l
.
length
;
i
++
)
{
t
+=
l
[
i
]
+
((
i
+
1
)
%
3
===
0
&&
(
i
+
1
)
!=
l
.
length
?
","
:
""
);
}
return
t
.
split
(
""
).
reverse
().
join
(
""
)
+
"."
+
r
;
}
};
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.AccountDetail.List.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.Control.Kivii.Finances.AccountDetail.List'
,
{
extend
:
'System.Control.EntityList'
,
entityType
:
'Kivii.Finances.Entities.AccountDetail'
,
xtype
:
'App.Control.Kivii.Finances.AccountDetail.List'
,
viewModel
:
{
data
:
{
_selection
:
null
,
_owner
:
{}
}
},
bind
:
{
selection
:
'{_selection}'
},
store
:
{
autoLoad
:
true
,
pageSize
:
200
,
sorters
:
[{
property
:
'CreateTime'
,
direction
:
'DESC'
}]
},
features
:
[{
ftype
:
'summary'
}],
tbar
:
[{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'PayerName,PayeeName,Remark'
,
emptyText
:
'模糊搜索收付款单位'
},{
margin
:
'0 0 -9 10'
,
xtype
:
'displayfield'
,
bind
:
{
value
:
'账号名称:{_owner.OwnerName} ({_owner.Name})'
},
fieldStyle
:
{
fontSize
:
'16px'
}
}],
columnLines
:
true
,
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
true
},
items
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
},
{
xtype
:
'datecolumn'
,
text
:
'交易日期'
,
format
:
'Y-m-d H:i'
,
dataIndex
:
'CreateTime'
,
width
:
120
},
{
text
:
'付款单位'
,
dataIndex
:
'PayerName'
,
width
:
150
,
// renderer: '_renderPayerName'
},{
text
:
'收款单位'
,
dataIndex
:
'PayeeName'
,
width
:
150
,
// renderer: '_renderPayerName'
},
{
text
:
'借'
,
dataIndex
:
'AmountPayment'
,
align
:
'right'
,
renderer
:
'_renderDebit'
,
width
:
120
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
}
},
{
text
:
'贷'
,
dataIndex
:
'AmountPayment'
,
align
:
'right'
,
renderer
:
'_renderCredit'
,
width
:
120
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
}
},
{
text
:
'帐户余额'
,
dataIndex
:
'Amount'
,
align
:
'right'
,
renderer
:
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
,
width
:
120
},
{
text
:
'摘要'
,
dataIndex
:
'Summary'
,
width
:
250
},
{
text
:
'备注'
,
dataIndex
:
'Remark'
,
minWidth
:
100
,
flex
:
1
}]
},
setOwner
:
function
(
_owner
)
{
let
_view
=
this
;
let
_vm
=
_view
.
getViewModel
();
_vm
.
set
(
'_owner'
,
_owner
);
},
controller
:
{
//我增加
_renderDebit
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_record
.
data
.
PayeeAccountKvid
===
_record
.
data
.
AccountKvid
){
return
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
(
_value
);
}
else
{
return
0.00
;
}
},
//我减少
_renderCredit
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_record
.
data
.
PayerAccountKvid
===
_record
.
data
.
AccountKvid
){
return
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
(
_value
);
}
else
{
return
0.00
;
}
},
_renderPayerName
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
if
(
_vm
.
data
.
_owner
.
Type
!==
'Balance'
&&
_vm
.
data
.
_owner
.
Type
!==
'Discount'
){
if
(
_record
.
data
.
PayerAccountKvid
===
_record
.
data
.
AccountKvid
){
return
_record
.
data
.
PayeeName
;
}
else
if
(
_record
.
data
.
PayeeAccountKvid
===
_record
.
data
.
AccountKvid
){
return
_record
.
data
.
PayerName
;
}
else
{
return
'未知问题'
;
}
}
else
{
if
(
_record
.
data
.
PayeeAccountKvid
===
_record
.
data
.
AccountKvid
){
return
_record
.
data
.
PayeeName
;
}
else
if
(
_record
.
data
.
PayerAccountKvid
===
_record
.
data
.
AccountKvid
){
return
_record
.
data
.
PayerName
;
}
else
{
return
'未知问题'
;
}
}
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.Bill.Form.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.Control.Kivii.Finances.Bill.Form'
,
{
extend
:
'System.Control.EntityForm'
,
xtype
:
'App.Control.Kivii.Finances.Bill.Form'
,
entityType
:
'Kivii.Finances.Entities.Bill'
,
scrollable
:
true
,
layout
:
{
type
:
'responsivecolumn'
,
states
:
{
small
:
600
,
large
:
0
}
},
title
:
'账单管理'
,
iconCls
:
'x-fa fa-file-text-o'
,
viewModel
:
{
data
:
{
entity
:
{
Metadata
:
{},
Kvid
:
null
,
Amount
:
0
,
AmountPlan
:
0
,
AmountPayment
:
0
,
OwnerName
:
KiviiContext
.
CurrentMember
.
DepartmentName
,
OwnerKvid
:
KiviiContext
.
CurrentMember
.
DepartmentKvid
,
OperateTime
:
new
Date
(),
PayeeKvid
:
KiviiContext
.
CurrentMember
.
OrganizationKvid
,
PayeeName
:
KiviiContext
.
CurrentMember
.
OrganizationName
,
OperatorName
:
KiviiContext
.
CurrentMember
.
FullName
,
OperatorKvid
:
KiviiContext
.
CurrentMember
.
Kvid
,
Currency
:
'CNY'
,
Details
:
[]
}
},
formulas
:
{
amountChineseBig
:
function
(
get
)
{
let
_amount
=
get
(
'entity.Amount'
);
return
KiviiContext
.
Const
.
FinancesFunctionsMoneyToChineseBig
(
_amount
);
},
description
:
function
(
get
)
{
let
_kvid
=
get
(
'entity.Kvid'
);
let
_amount
=
get
(
'entity.Amount'
);
let
_amountPayment
=
get
(
'entity.AmountPayment'
);
if
(
_kvid
===
null
)
return
''
;
if
(
_amount
===
_amountPayment
)
return
'<div style="color:green">已完成收款登记</div>'
;
return
'<div style="color:red">未完成收款登记</div>'
;
},
hiddenPaying
:
function
(
get
)
{
let
_kvid
=
get
(
'entity.Kvid'
);
let
_amount
=
get
(
'entity.Amount'
);
let
_amountPayment
=
get
(
'entity.AmountPayment'
);
if
(
_kvid
===
null
)
return
true
;
if
(
_amount
===
_amountPayment
)
return
true
;
return
false
;
}
}
},
dockedItems
:
[{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'menu'
,
items
:
[{
margin
:
'0 3 -10 3'
,
xtype
:
'displayfield'
,
bind
:
{
value
:
'{description}'
},
fieldStyle
:
{
fontSize
:
'20px'
}
},
'->'
,
{
text
:
'创建'
,
iconCls
:
'x-fa fa-plus'
,
iconAlign
:
'left'
,
handler
:
'_onSaveEntity'
,
bind
:
{
disabled
:
'{!formIsValid}'
,
hidden
:
'{entity.Kvid}'
}
},
{
text
:
'收款登记'
,
iconCls
:
'x-fa fa-tags'
,
handler
:
'_onPaying'
,
bind
:
{
hidden
:
'{hiddenPaying}'
}
},
{
text
:
'下载'
,
iconCls
:
'x-fa fa-download'
,
handler
:
'_onDownloadBill'
,
bind
:
{
hidden
:
'{!entity.Kvid}'
}
}]
}],
defaults
:
{
xtype
:
'textfield'
,
labelWidth
:
60
,
labelAlign
:
'right'
,
responsiveCls
:
'big-50 small-100'
},
items
:
[{
xtype
:
'windowSelector'
,
fieldLabel
:
'付款单位'
,
responsiveCls
:
'big-60 small-100'
,
editable
:
false
,
keyField
:
'Kvid'
,
valueField
:
'FullName'
,
window
:
{
type
:
'App.Control.Kivii.Finances.Settlement.Customer.Selector'
},
allowBlank
:
false
,
bind
:
{
key
:
'{entity.PayerKvid}'
,
value
:
'{entity.PayerName}'
,
readOnly
:
'{entity.Kvid}'
}
},
{
xtype
:
'windowSelector'
,
fieldLabel
:
'收款单位'
,
responsiveCls
:
'big-40 small-100'
,
readOnly
:
true
,
editable
:
false
,
keyField
:
'Kvid'
,
valueField
:
'FullName'
,
window
:
{
type
:
'App.Control.Kivii.Finances.Settlement.Customer.Selector'
},
allowBlank
:
false
,
bind
:
{
key
:
'{entity.PayeeKvid}'
,
value
:
'{entity.PayeeName}'
}
},
{
xtype
:
'numberfield'
,
fieldLabel
:
'账单金额'
,
hideTrigger
:
true
,
minValue
:
0
,
responsiveCls
:
'big-30 small-100'
,
step
:
0.1
,
allowBlank
:
false
,
readOnly
:
true
,
bind
:
{
value
:
'{entity.Amount}'
}
},
{
xtype
:
'numberfield'
,
fieldLabel
:
'已收金额'
,
hideTrigger
:
true
,
minValue
:
0
,
responsiveCls
:
'big-30 small-100'
,
step
:
0.1
,
allowBlank
:
false
,
readOnly
:
true
,
bind
:
{
value
:
'{entity.AmountPayment}'
}
},
{
xtype
:
'categoryField'
,
fieldLabel
:
'货币单位'
,
allowBlank
:
false
,
responsiveCls
:
'big-20 small-100'
,
internalCode
:
'Currency'
,
bind
:
{
value
:
'{entity.Currency}'
,
readOnly
:
'{entity.Kvid}'
}
},
{
xtype
:
'datefield'
,
format
:
'Y-m-d'
,
altFormats
:
'D, d M Y H:i:s T|c|Y-m-d|Y-m-d H:i|Y/n/j'
,
fieldLabel
:
'操作日期'
,
editable
:
false
,
responsiveCls
:
'big-20 small-100'
,
allowBlank
:
false
,
bind
:
{
value
:
'{entity.OperateTime}'
,
readOnly
:
'{entity.Kvid}'
}
},
{
responsiveCls
:
'big-60 small-100'
,
fieldLabel
:
'金额大写'
,
readOnly
:
true
,
bind
:
{
value
:
'{amountChineseBig}'
}
},
{
fieldLabel
:
'操 作 人'
,
responsiveCls
:
'big-40 small-100'
,
allowBlank
:
false
,
readOnly
:
true
,
bind
:
'{entity.OperatorName}'
},
{
fieldLabel
:
'摘 要'
,
responsiveCls
:
'big-100 small-100'
,
bind
:
{
value
:
'{entity.Summary}'
,
readOnly
:
'{entity.Kvid}'
}
},
{
xtype
:
'textarea'
,
fieldLabel
:
'备 注'
,
responsiveCls
:
'big-100 small-100'
,
bind
:
{
value
:
'{entity.Remark}'
,
readOnly
:
'{entity.Kvid}'
}
},
{
xtype
:
'fieldset'
,
title
:
'账单明细'
,
collapsible
:
true
,
collapsed
:
false
,
scrollable
:
true
,
responsiveCls
:
'big-100 small-100'
,
items
:
[{
xtype
:
'grid'
,
reference
:
'details'
,
store
:
{
pageSize
:
10000
,
groupField
:
'Type'
,
autoLoad
:
false
},
features
:
[{
ftype
:
'groupingsummary'
,
groupHeaderTpl
:
[
'<div>{name:this.formatName} ({rows.length} 条)</div>'
,
{
formatName
:
function
(
name
)
{
if
(
name
===
"Report"
)
{
return
"报告费"
;
}
if
(
name
===
"Service"
)
{
return
"服务费"
;
}
if
(
name
===
"Express"
)
{
return
"快递费"
;
}
return
name
;
}
}
]
}],
dockedItems
:
[{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'menu'
,
items
:
[{
margin
:
'0 3 -10 3'
,
xtype
:
'displayfield'
,
value
:
'账单明细'
,
fieldStyle
:
{
fontSize
:
'20px'
}
},
'->'
,
{
text
:
'添加'
,
iconCls
:
'x-fa fa-plus'
,
handler
:
'_onAddDetail'
,
bind
:
{
hidden
:
'{entity.Kvid}'
}
}]
}],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
false
},
items
:
[{
xtype
:
'rownumberer'
},
{
xtype
:
'actioncolumn'
,
align
:
'center'
,
text
:
'操作'
,
items
:
[{
text
:
'移除'
,
iconCls
:
'x-fa fa-trash-o'
,
handler
:
'_onRemoveDetail'
}],
width
:
80
},
{
dataIndex
:
'BizId'
,
text
:
'所属业务'
,
width
:
150
,
expend
:
true
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
'合计 '
;
}
},
{
dataIndex
:
'PayerName'
,
text
:
'付款单位'
,
width
:
150
,
expend
:
true
},
// {
// dataIndex: 'Type',
// text: '类型',
// width: 90,
// align: 'right',
// renderer: function(_value, _meta, _record, _rowIndex) {
// if (_value === "Report") {
// return "检测费";
// }
// if (_value === "Service") {
// return "服务费";
// }
// if (_value === "Express") {
// return "快递费";
// }
// return _value;
// }
// },
{
dataIndex
:
'AmountPlan'
,
text
:
'原价'
,
width
:
90
,
align
:
'right'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'¥{0}'
,
value
.
toFixed
(
2
));
}
},
{
dataIndex
:
'Amount'
,
text
:
'折后价'
,
width
:
90
,
align
:
'right'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'¥{0}'
,
value
.
toFixed
(
2
));
}
},
{
dataIndex
:
'AmountPayment'
,
text
:
'已付金额'
,
width
:
100
,
align
:
'right'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'¥{0}'
,
value
.
toFixed
(
2
));
}
},
{
dataIndex
:
'OperatorName'
,
text
:
'操作人'
,
width
:
90
},
{
dataIndex
:
'Summary'
,
text
:
'摘要'
,
width
:
150
},
{
dataIndex
:
'Remark'
,
text
:
'备注'
,
minWidth
:
150
,
flex
:
1
}
]
}
}]
}],
setOwner
:
function
(
_entity
)
{
let
_view
=
this
;
let
_vm
=
_view
.
getViewModel
();
let
_refs
=
_view
.
getReferences
();
let
_store
=
_refs
.
details
.
getStore
();
_view
.
readEntity
(
_entity
,
false
);
if
(
Ext
.
isArray
(
_entity
.
Details
)){
for
(
let
_i
=
0
;
_i
<
_entity
.
Details
.
length
;
_i
++
)
{
let
_record
=
_entity
.
Details
[
_i
];
_store
.
add
(
_record
);
}
_view
.
getController
().
_reCalculateAmount
();
}
if
(
_entity
.
Kvid
!==
null
)
{
_store
.
removeAll
();
Ext
.
Ajax
.
request
({
url
:
'/Restful/'
+
_view
.
entityType
+
'/Read.json'
,
//'/Restful/Kivii.Finances.Entities.Bill/Read.json',
params
:
{
Kvid
:
_entity
.
Kvid
,
IncludeDetail
:
true
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
_entity
=
_rtns
.
Result
;
_view
.
readEntity
(
_rtns
.
Result
,
false
);
for
(
let
_i
=
0
;
_i
<
_entity
.
Details
.
length
;
_i
++
)
{
let
_record
=
_entity
.
Details
[
_i
];
_store
.
add
(
_record
);
}
},
failure
:
function
(
_response
)
{}
});
}
},
controller
:
{
_reCalculateAmount
:
function
()
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_refs
=
_controller
.
getReferences
();
let
_details
=
_refs
.
details
.
getStore
().
getData
().
items
;
let
_amount
=
0
;
let
_amountPlan
=
0
;
let
_amountPayment
=
0
;
for
(
let
_i
=
0
;
_i
<
_details
.
length
;
_i
++
)
{
let
_record
=
_details
[
_i
].
data
;
_amount
+=
_record
.
Amount
;
_amountPlan
+=
_record
.
AmountPlan
;
_amountPayment
+=
_record
.
AmountPayment
;
}
_vm
.
set
(
'entity.AmountPayment'
,
parseFloat
(
_amountPayment
.
toFixed
(
2
)));
_vm
.
set
(
'entity.AmountPlan'
,
parseFloat
(
_amountPlan
.
toFixed
(
2
)));
_vm
.
set
(
'entity.Amount'
,
parseFloat
(
_amount
.
toFixed
(
2
)));
},
_onAddDetail
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_kvid
=
_vm
.
data
.
entity
.
Kvid
;
if
(
_kvid
!==
null
)
{
Ext
.
toast
(
"已制作账单,无法新增"
);
return
;
}
let
_refs
=
_controller
.
getReferences
();
let
_detailsStore
=
_refs
.
details
.
getStore
();
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Bill.Settlement.Selector'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
1200
,
height
:
600
,
modal
:
true
,
maximizable
:
true
,
resizable
:
true
,
items
:
[
_form
]
});
_win
.
show
();
_form
.
on
(
'entitySelected'
,
function
(
_ctrl
,
_entities
)
{
_win
.
close
();
let
_currents
=
_detailsStore
.
getData
().
items
;
for
(
let
_i
=
0
;
_i
<
_entities
.
length
;
_i
++
)
{
if
(
_currents
.
length
<=
0
)
_detailsStore
.
add
(
_entities
[
_i
]);
for
(
let
_j
=
0
;
_j
<
_currents
.
length
;
_j
++
)
{
if
(
_currents
[
_j
].
data
.
Kvid
===
_entities
[
_i
].
Kvid
)
break
;
_detailsStore
.
add
(
_entities
[
_i
]);
}
}
_controller
.
_reCalculateAmount
();
});
},
_onRemoveDetail
:
function
(
_ctrl
,
_recIndex
,
_cellIndex
,
_item
,
_e
,
_record
)
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_kvid
=
_vm
.
data
.
entity
.
Kvid
;
if
(
_kvid
!==
null
)
{
Ext
.
toast
(
"已生成账单,无法移除内容!"
);
return
;
}
_record
.
drop
();
_controller
.
_reCalculateAmount
();
},
_onSaveEntity
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_view
=
_controller
.
getView
();
let
_refs
=
_controller
.
getReferences
();
let
_item
=
_vm
.
data
.
entity
;
let
_settlementKvids
=
[];
let
_details
=
_refs
.
details
.
getStore
().
getData
().
items
;
if
(
_details
.
length
<=
0
)
{
Ext
.
toast
(
"无账单明细,无法生成账单!"
);
return
;
}
for
(
let
_i
=
0
;
_i
<
_details
.
length
;
_i
++
)
{
let
_record
=
_details
[
_i
].
data
;
_settlementKvids
.
push
(
_record
.
Kvid
);
}
let
_jsonData
=
{};
_jsonData
.
Item
=
_item
;
_jsonData
.
SettlementKvids
=
_settlementKvids
;
_ctrl
.
setDisabled
(
true
);
Ext
.
Ajax
.
request
({
url
:
'/Restful/'
+
_view
.
entityType
+
'/Create.json'
,
jsonData
:
_jsonData
,
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
Ext
.
toast
(
'生成账单成功!'
);
_ctrl
.
setDisabled
(
false
);
_view
.
fireEvent
(
'entityCreated'
,
_view
,
_rtns
.
Results
);
},
failure
:
function
(
_response
)
{
Ext
.
toast
(
'生成账单失败!'
);
_ctrl
.
setDisabled
(
false
);
}
});
},
_onPaying
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_refs
=
_controller
.
getReferences
();
let
_details
=
_refs
.
details
.
getStore
().
getData
().
items
;
if
(
_details
.
length
<=
0
)
{
Ext
.
toast
(
"无账单明细,无法生成账单!"
);
return
;
}
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Settlement.Paying.Form'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
900
,
height
:
500
,
modal
:
true
,
maximizable
:
true
,
resizable
:
true
,
items
:
[
_form
]
});
_form
.
setOwner
(
_details
);
_win
.
show
();
_form
.
on
(
'entityPaying'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.Bill/Archiving.json'
,
params
:
{
Kvid
:
_vm
.
data
.
entity
.
Kvid
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
if
(
_rtns
.
Results
.
length
===
1
)
{
_view
.
setOwner
(
_rtns
.
Results
[
0
]);
}
},
failure
:
function
(
_response
)
{}
});
});
},
_onDownloadBill
:
function
(
_ctrl
){
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
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
_selector
=
Ext
.
create
(
'App.Control.Kivii.Finances.Bill.Template.Selector'
);
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
'选择模板'
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
autoScroll
:
true
,
width
:
700
,
height
:
350
,
modal
:
true
,
resizable
:
false
,
items
:
[
_selector
]
});
_win
.
show
();
_selector
.
setFilter
({
Tags
:
'Bill'
});
_selector
.
on
(
'entitySelected'
,
function
(
_ctrl
,
_entity
){
_win
.
close
();
let
_iframe
=
document
.
createElement
(
"iframe"
);
_iframe
.
style
.
display
=
"none"
;
let
_form
=
document
.
createElement
(
'form'
);
let
_billKvid
=
document
.
createElement
(
'input'
);
_billKvid
.
type
=
'hidden'
;
_billKvid
.
name
=
'Kvid'
;
_billKvid
.
value
=
_kvid
;
_form
.
appendChild
(
_billKvid
);
let
_includeDetail
=
document
.
createElement
(
'input'
);
_includeDetail
.
type
=
'hidden'
;
_includeDetail
.
name
=
'IncludeDetail'
;
_includeDetail
.
value
=
true
;
_form
.
appendChild
(
_includeDetail
);
let
_view
=
document
.
createElement
(
'input'
);
_view
.
type
=
'hidden'
;
_view
.
name
=
'View'
;
_view
.
value
=
_entity
[
0
].
Path
;
_form
.
appendChild
(
_view
);
let
_fileName
=
document
.
createElement
(
'input'
);
_fileName
.
type
=
'hidden'
;
_fileName
.
name
=
'__fileName'
;
_fileName
.
value
=
_name
;
_form
.
appendChild
(
_fileName
);
_iframe
.
appendChild
(
_form
);
document
.
body
.
appendChild
(
_iframe
);
_form
.
method
=
'GET'
;
_form
.
action
=
'/Restful/'
+
_view
.
entityType
+
'/Read.xlsx'
;
_form
.
submit
();
document
.
body
.
removeChild
(
_iframe
);
});
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.Bill.Settlement.Selector.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.Control.Kivii.Finances.Bill.Settlement.Selector'
,
{
extend
:
'System.Control.EntitySelector'
,
entityType
:
'Kivii.Finances.Entities.Settlement'
,
xtype
:
'App.Control.Kivii.Finances.Bill.Settlement.Selector'
,
dataSource
:
'/Restful/Kivii.Finances.Entities.Settlement/QueryEx.json'
,
filter
:
{
IsPayed
:
false
,
IsBilled
:
false
},
selModel
:
{
selType
:
'checkboxmodel'
,
checkboxSelect
:
true
,
pruneRemoved
:
false
,
extensible
:
'y'
},
store
:
{
autoLoad
:
true
,
pageSize
:
50
,
sorters
:
[{
property
:
'OperateTime'
,
direction
:
'DESC'
}]
},
tbar
:
[{
xtype
:
'combo'
,
queryMode
:
'local'
,
displayField
:
'displayInfo'
,
valueField
:
'isBilled'
,
value
:
false
,
editable
:
false
,
filterPickList
:
true
,
reference
:
'isBilled'
,
store
:
{
fields
:
[
'displayInfo'
,
'isBilled'
],
data
:
[{
displayInfo
:
'全部'
,
isBilled
:
null
},
{
displayInfo
:
'已做账单'
,
isBilled
:
true
},
{
displayInfo
:
'未做账单'
,
isBilled
:
false
}]
},
listeners
:
{
select
:
'_onSelectIsBilled'
}
},{
xtype
:
'datefield'
,
fieldLabel
:
'时间范围 开始'
,
format
:
'Y-m-d'
,
labelWidth
:
90
,
reference
:
'startTime'
,
editable
:
false
,
triggers
:
{
clear
:
{
weight
:
2
,
cls
:
'x-fa fa-times'
,
handler
:
'_cleanBeginOperateTime'
}
},
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'结束'
,
format
:
'Y-m-d'
,
labelWidth
:
30
,
reference
:
'endTime'
,
editable
:
false
,
triggers
:
{
clear
:
{
weight
:
2
,
cls
:
'x-fa fa-times'
,
handler
:
'_cleanEndOperateTime'
}
},
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'PayerName,BizId,OperatorName'
,
emptyText
:
'模糊搜索付款单位、所属业务或操作人'
,
}],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
false
},
items
:
[{
xtype
:
'rownumberer'
},
{
dataIndex
:
'BizId'
,
text
:
'所属业务'
,
width
:
170
,
// sortable: true,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'合计'
);
}
},
{
dataIndex
:
'OwnerName'
,
text
:
'所属部门'
,
width
:
120
},
{
dataIndex
:
'PayerName'
,
text
:
'付款单位'
,
width
:
120
},
{
dataIndex
:
'OperateTime'
,
text
:
'操作日期'
,
width
:
100
,
// sortable: true,
renderer
:
Ext
.
util
.
Format
.
dateRenderer
(
'Y-m-d'
)
},
{
dataIndex
:
'AmountPlan'
,
align
:
'right'
,
text
:
'原金额'
,
width
:
100
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'¥{0}'
,
value
.
toFixed
(
2
));
}
},
{
dataIndex
:
'Amount'
,
align
:
'right'
,
text
:
'结算金额'
,
width
:
100
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'¥{0}'
,
value
.
toFixed
(
2
));
}
},
{
dataIndex
:
'AmountPayment'
,
align
:
'right'
,
text
:
'已付金额'
,
width
:
100
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'¥{0}'
,
value
.
toFixed
(
2
));
}
},
{
dataIndex
:
'Type'
,
text
:
'类型'
,
width
:
90
,
renderer
:
'_renderType'
},
{
dataIndex
:
'OperatorName'
,
text
:
'操作人'
,
width
:
90
},
{
dataIndex
:
'Summary'
,
text
:
'摘要'
,
width
:
200
},
{
dataIndex
:
'Remark'
,
text
:
'备注'
,
minWidth
:
100
,
flex
:
1
}]
},
controller
:
{
_renderType
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
"Report"
)
{
return
"报告费"
;
}
if
(
_value
===
"Service"
)
{
return
"服务费"
;
}
if
(
_value
===
"Express"
)
{
return
"快递费"
;
}
return
_value
;
},
_onSelectIsBilled
:
function
(
_ctrl
,
_record
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
_view
.
filter
.
IsBilled
=
_record
.
data
.
isBilled
;
_view
.
reload
();
},
_onSelectMonth
:
function
(
_ctrl
,
_time
,
_eOpts
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_refs
=
_controller
.
getReferences
();
let
_startTime
=
_refs
.
startTime
.
value
;
let
_endTime
=
_refs
.
endTime
.
value
||
new
Date
();
if
(
_startTime
===
null
)
{
Ext
.
toast
(
"请选择开始时间!"
);
return
;
}
if
(
_startTime
>
_endTime
)
{
Ext
.
toast
(
"开始日期不能大于结束日期!"
);
return
;
}
delete
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
;
delete
_view
.
filter
.
OperateTimeLessThan
;
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
=
new
Date
(
_startTime
.
getFullYear
(),
_startTime
.
getMonth
(),
_startTime
.
getDate
());
_view
.
filter
.
OperateTimeLessThan
=
new
Date
(
_endTime
.
getFullYear
(),
_endTime
.
getMonth
(),
_endTime
.
getDate
()
+
1
);
_view
.
reload
();
},
_cleanBeginOperateTime
:
function
(
_ctrl
)
{
_ctrl
.
setValue
(
null
);
let
_me
=
this
;
let
_view
=
_me
.
getView
();
if
(
_view
.
filter
===
null
)
_view
.
setFilter
({});
delete
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
;
_view
.
reload
();
},
_cleanEndOperateTime
:
function
(
_ctrl
)
{
_ctrl
.
setValue
(
null
);
let
_me
=
this
;
let
_view
=
_me
.
getView
();
if
(
_view
.
filter
===
null
)
_view
.
setFilter
({});
delete
_view
.
filter
.
OperateTimeLessThan
;
_view
.
reload
();
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.Bill.Template.Selector.js
0 → 100644
View file @
5ef2d2e1
Ext
.
define
(
'App.Control.Kivii.Finances.Bill.Template.Selector'
,
{
extend
:
'System.Control.EntitySelector'
,
entityType
:
'Kivii.Storages.Entities.DbFile'
,
xtype
:
'App.Control.Kivii.Finances.Bill.Template.Selector'
,
globalFilter
:
{
FolderPath
:
'/Finances/Bill/Files'
},
selModel
:
false
,
store
:
{
autoLoad
:
true
},
tbar
:
[{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'Name'
,
emptyText
:
'模糊搜索文件名称'
}],
columns
:
[{
xtype
:
'rownumberer'
},
{
dataIndex
:
'Name'
,
text
:
'文件名称'
,
width
:
150
},
{
dataIndex
:
'Extension'
,
text
:
'文件类型'
,
width
:
80
},
{
dataIndex
:
'Version'
,
text
:
'版本'
,
width
:
80
},
{
dataIndex
:
'DbFolderPath'
,
text
:
'所属路径'
,
flex
:
1
}]
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.Debiting.Payment.Selector.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.Control.Kivii.Finances.Debiting.Payment.Selector'
,
{
extend
:
'System.Control.EntitySelector'
,
entityType
:
'Kivii.Finances.Entities.Payment'
,
xtype
:
'App.Control.Kivii.Finances.Debiting.Payment.Selector'
,
dataSource
:
'/Restful/Kivii.Finances.Entities.Payment/InvoiceDebitQuery.json'
,
filter
:
{},
selModel
:
false
,
store
:
{
autoLoad
:
true
,
pageSize
:
50
,
sorters
:
[{
property
:
'OperateTime'
,
direction
:
'DESC'
}]
},
tbar
:
[{
xtype
:
'searchField'
,
reference
:
'searchfield'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'PayerName'
,
emptyText
:
'模糊搜索付款单位'
}],
columns
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
,
resizable
:
false
},
{
text
:
'付款单位'
,
dataIndex
:
'PayerName'
,
width
:
220
},
{
text
:
'发生金额'
,
align
:
'right'
,
dataIndex
:
'Amount'
,
renderer
:
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
,
width
:
110
},
{
text
:
'可用金额'
,
align
:
'right'
,
dataIndex
:
'Amount'
,
renderer
:
'_renderAmount'
,
width
:
110
},
{
xtype
:
'datecolumn'
,
text
:
'发生日期'
,
format
:
'Y-m-d H:m'
,
dataIndex
:
'OperateTime'
,
width
:
150
},
{
text
:
'付款银行'
,
dataIndex
:
'PayerAccountName'
,
width
:
280
},
{
text
:
'付款账号'
,
dataIndex
:
'PayerAccountSerialNumber'
,
width
:
180
},
{
text
:
'摘要'
,
dataIndex
:
'Summary'
,
width
:
150
},
{
text
:
'备注'
,
dataIndex
:
'Remark'
,
flex
:
1
}],
controller
:
{
_renderAmount
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
let
_canBeUsedAmount
=
_value
-
_record
.
data
.
AmountInvoice
;
_meta
.
style
=
'background-color:#B4EEB4'
;
return
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
(
_canBeUsedAmount
);
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.InvoiceApply.Execute.Form.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.Control.Kivii.Finances.InvoiceApply.Execute.Form'
,
{
extend
:
'System.Control.EntityForm'
,
xtype
:
'App.Control.Kivii.Finances.InvoiceApply.Execute.Form'
,
entityType
:
'Kivii.Finances.Entities.InvoiceApply'
,
// requires: ['Package.ux'],
layout
:
{
type
:
'vbox'
,
pack
:
'start'
,
align
:
'stretch'
},
autoScroll
:
true
,
id
:
'execute'
,
viewModel
:{
formulas
:
{
amountChineseBig
:
function
(
get
)
{
let
_amount
=
get
(
'entity.Amount'
);
return
KiviiContext
.
Const
.
FinancesFunctionsMoneyToChineseBig
(
_amount
);
},
isVAT
:
function
(
get
)
{
let
_type
=
get
(
'entity.Type'
);
if
(
_type
===
'VATS'
)
return
false
;
if
(
_type
===
'VAT'
)
return
true
;
return
false
;
}
}
},
dockedItems
:
[{
xtype
:
'toolbar'
,
dock
:
'top'
,
items
:
[{
margin
:
'0 0 -9 3'
,
xtype
:
'displayfield'
,
bind
:
{
value
:
'申请人:{owner.CreatorName},总金额:{owner.Amount}'
},
fieldStyle
:
{
fontSize
:
'20px'
}
},
'->'
,
{
text
:
'开票'
,
iconCls
:
'x-fa fa-save'
,
iconAlign
:
'left'
,
handler
:
'_onSaveEntity'
,
bind
:
{
disabled
:
'{!formIsValid}'
}
}]
}],
items
:[{
xtype
:
'container'
,
height
:
200
,
layout
:
'column'
,
items
:
[{
xtype
:
'container'
,
margin
:
'10 5 10 10'
,
height
:
180
,
columnWidth
:
1
/
2
,
style
:
{
border
:
'1px solid #C1C1C1'
},
layout
:
'hbox'
,
items
:
[{
xtype
:
'container'
,
height
:
180
,
width
:
35
,
style
:
{
'border-right'
:
'0.5px solid #C1C1C1'
},
html
:
'<div style="font-size:16px;margin-top:38px;margin-left:10px;width:10px;word-wrap:break-word;"> 购 买 方 </div>'
},
{
xtype
:
'container'
,
height
:
180
,
flex
:
1
,
layout
:
'column'
,
defaults
:
{
xtype
:
'textfield'
,
columnWidth
:
1
/
2
,
labelWidth
:
65
,
labelAlign
:
'right'
,
margin
:
'0 10 10 10'
,
readOnly
:
true
},
items
:
[{
xtype
:
'windowSelector'
,
columnWidth
:
1
,
margin
:
'10 10 5 10'
,
fieldLabel
:
'名 称'
,
editable
:
false
,
readOnly
:
true
,
allowBlank
:
false
,
keyField
:
'Kvid'
,
valueField
:
'CompanyName'
,
value1Field
:
'TaxNumber'
,
value2Field
:
'CompanyAddress'
,
value3Field
:
'Phone'
,
value4Field
:
'BankName'
,
value5Field
:
'BankAccount'
,
window
:
{
type
:
'App.Control.Kivii.Finances.InvoiceTitle.Selector'
},
Type
:
'Payee'
,
bind
:
{
key
:
'{entity.PayerKvid}'
,
value
:
'{entity.PayerName}'
,
value1
:
'{entity.PayerTaxNumber}'
,
value2
:
'{entity.PayerCompanyAddress}'
,
value3
:
'{entity.PayerPhone}'
,
value4
:
'{entity.PayerRegisteredBank}'
,
value5
:
'{entity.PayerBankAccount}'
}
},
{
fieldLabel
:
'纳 税 号'
,
margin
:
'0 10 5 10'
,
columnWidth
:
1
,
bind
:
'{entity.PayerTaxNumber}'
},
{
fieldLabel
:
'地 址'
,
bind
:
'{entity.PayerCompanyAddress}'
},
{
fieldLabel
:
'电 话'
,
bind
:
'{entity.PayerPhone}'
},
{
fieldLabel
:
'开 户 行'
,
bind
:
'{entity.PayerRegisteredBank}'
},
{
fieldLabel
:
'账 号'
,
bind
:
'{entity.PayerBankAccount}'
}]
}]
},
{
xtype
:
'container'
,
margin
:
'10 10 10 5'
,
height
:
180
,
columnWidth
:
1
/
2
,
style
:
{
border
:
'1px solid #C1C1C1'
},
layout
:
'hbox'
,
items
:
[{
xtype
:
'container'
,
height
:
180
,
width
:
35
,
style
:
{
'border-right'
:
'0.5px solid #C1C1C1'
},
html
:
'<div style="font-size:16px;margin-top:38px;margin-left:10px;width:10px;word-wrap:break-word;"> 销 售 方 </div>'
},
{
xtype
:
'container'
,
height
:
180
,
flex
:
1
,
layout
:
'column'
,
defaults
:
{
xtype
:
'textfield'
,
columnWidth
:
1
/
2
,
labelWidth
:
65
,
labelAlign
:
'right'
,
margin
:
'0 10 10 10'
,
readOnly
:
true
},
items
:
[{
xtype
:
'windowSelector'
,
columnWidth
:
1
,
margin
:
'10 10 5 10'
,
fieldLabel
:
'名 称'
,
editable
:
false
,
readOnly
:
true
,
allowBlank
:
false
,
keyField
:
'Kvid'
,
valueField
:
'CompanyName'
,
value1Field
:
'TaxNumber'
,
value2Field
:
'CompanyAddress'
,
value3Field
:
'Phone'
,
value4Field
:
'BankName'
,
value5Field
:
'BankAccount'
,
window
:
{
type
:
'App.Control.Kivii.Finances.InvoiceTitle.Selector'
},
Type
:
'Payee'
,
bind
:
{
key
:
'{entity.PayeeKvid}'
,
value
:
'{entity.PayeeName}'
,
value1
:
'{entity.PayeeTaxNumber}'
,
value2
:
'{entity.PayeeCompanyAddress}'
,
value3
:
'{entity.PayeePhone}'
,
value4
:
'{entity.PayeeRegisteredBank}'
,
value5
:
'{entity.PayeeBankAccount}'
}
},
{
fieldLabel
:
'纳 税 号'
,
margin
:
'0 10 5 10'
,
columnWidth
:
1
,
allowBlank
:
false
,
bind
:
'{entity.PayeeTaxNumber}'
},
{
fieldLabel
:
'地 址'
,
bind
:
'{entity.PayeeCompanyAddress}'
},
{
fieldLabel
:
'电 话'
,
bind
:
'{entity.PayeePhone}'
},
{
fieldLabel
:
'开 户 行'
,
bind
:
'{entity.PayeeRegisteredBank}'
},
{
fieldLabel
:
'账 号'
,
bind
:
'{entity.PayeeBankAccount}'
}]
}]
}]
},{
xtype
:
'container'
,
flex
:
1
,
layout
:
'fit'
,
margin
:
'10 10 10 10'
,
items
:
[{
xtype
:
'container'
,
columnWidth
:
1
,
style
:
{
border
:
'1px solid #C1C1C1'
},
height
:
190
,
layout
:
'fit'
,
items
:
[{
xtype
:
'entityList'
,
reference
:
'Details'
,
height
:
400
,
autoScroll
:
true
,
// plugins: [{
// ptype: 'cellediting',
// clicksToEdit: 2
// }],
viewModel
:
{
data
:
{
_selection
:
null
}
},
bind
:
{
selection
:
'{_selection}'
},
store
:
{
pageSize
:
200
,
autoSync
:
false
,
// data: [],
listeners
:
{
datachanged
:
function
(
_ctrl
)
{
let
_view
=
Ext
.
getCmp
(
'execute'
);
let
_vm
=
_view
.
getViewModel
();
let
_totalAmountUntaxed
=
0
;
//未税总额
let
_totalAmountTax
=
0
;
//总税额
let
_totalAmount
=
0
;
//含税总额
for
(
let
_i
=
0
;
_i
<
_ctrl
.
data
.
length
;
_i
++
)
{
_totalAmountUntaxed
=
parseFloat
((
_totalAmountUntaxed
+
parseFloat
(
_ctrl
.
data
.
items
[
_i
].
data
.
AmountUntaxed
)).
toFixed
(
2
));
_totalAmountTax
=
parseFloat
((
_totalAmountTax
+
parseFloat
(
_ctrl
.
data
.
items
[
_i
].
data
.
AmountTax
)).
toFixed
(
2
));
_totalAmount
=
parseFloat
((
_totalAmount
+
parseFloat
(
_ctrl
.
data
.
items
[
_i
].
data
.
Amount
)).
toFixed
(
2
));
}
_vm
.
set
(
'entity.AmountUntaxed'
,
_totalAmountUntaxed
);
_vm
.
set
(
'entity.AmountTax'
,
_totalAmountTax
);
_vm
.
set
(
'entity.Amount'
,
_totalAmount
);
}
}
},
dockedItems
:
[{
xtype
:
'toolbar'
,
dock
:
'top'
,
items
:
[{
margin
:
'0 0 -9 3'
,
xtype
:
'displayfield'
,
bind
:
{
value
:
'选中列以编辑'
},
fieldStyle
:
{
fontSize
:
'20px'
}
},
'->'
,
{
text
:
'编辑'
,
iconCls
:
'x-fa fa-edit'
,
iconAlign
:
'left'
,
handler
:
'_onEditDetail'
,
bind
:
{
disabled
:
'{!_selection}'
}
},
{
text
:
'添加'
,
iconCls
:
'x-fa fa-edit'
,
iconAlign
:
'left'
,
handler
:
'_onAddDetail'
}]
},
{
xtype
:
'toolbar'
,
dock
:
'bottom'
,
height
:
45
,
margin
:
'0 0 -5 0'
,
style
:
{
'border-top'
:
'1px solid red'
},
items
:
[
'->'
,
{
xtype
:
'displayfield'
,
value
:
'总额(不含税):'
},
{
xtype
:
'displayfield'
,
bind
:
{
value
:
'¥{entity.AmountUntaxed}'
}
},
'-'
,
{
xtype
:
'displayfield'
,
value
:
'总税额:'
},
{
xtype
:
'displayfield'
,
bind
:
{
value
:
'¥{entity.AmountTax}'
}
},
'-'
,
{
xtype
:
'displayfield'
,
value
:
'总额(含税):'
},
{
xtype
:
'displayfield'
,
bind
:
{
value
:
'¥{entity.Amount} ({amountChineseBig})'
}
}]
}],
columns
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
},
{
text
:
'组别<span style="color:green;font-size:16px;margin-top:10px;"> *</span>'
,
dataIndex
:
'GoodsId'
,
width
:
120
},
{
text
:
'名称<span style="color:green;font-size:16px;margin-top:10px;"> *</span>'
,
dataIndex
:
'GoodsFullName'
,
width
:
150
,
editor
:
{
xtype
:
'textfield'
,
enforceMaxLength
:
true
,
maxLength
:
50
,
allowBlank
:
false
}
},
{
text
:
'规格型号'
,
dataIndex
:
'GoodsSpecifications'
,
flex
:
1
,
editor
:
{
xtype
:
'textfield'
}
},
{
text
:
'单位<span style="color:green;font-size:16px;margin-top:10px;"> *</span>'
,
dataIndex
:
'QuantityUnit'
,
width
:
80
,
editor
:
{
xtype
:
'textfield'
,
enforceMaxLength
:
true
,
maxLength
:
20
,
allowBlank
:
true
}
},
{
text
:
'数量'
,
dataIndex
:
'Quantity'
,
width
:
80
,
editor
:
{
xtype
:
'numberfield'
,
hideTrigger
:
true
,
// enforceMaxLength: true,
listeners
:
{
change
:
'_onChangeQuantity'
}
}
},
{
text
:
'单价(不含税)'
,
dataIndex
:
'QuantityUnitPriceUntaxed'
,
hidden
:
true
,
width
:
120
,
align
:
'right'
,
renderer
:
function
(
_value
)
{
let
_newValue
=
Ext
.
util
.
Format
.
usMoney
(
_value
);
let
_newValue1
=
_newValue
.
replace
(
'$'
,
'¥'
);
return
_newValue1
;
}
},
{
text
:
'金额(不含税)'
,
hidden
:
true
,
dataIndex
:
'AmountUntaxed'
,
width
:
180
,
align
:
'right'
,
renderer
:
function
(
_value
)
{
let
_newValue
=
Ext
.
util
.
Format
.
usMoney
(
_value
);
let
_newValue1
=
_newValue
.
replace
(
'$'
,
'¥'
);
return
_newValue1
;
}
},
{
text
:
'单价(含税)'
,
dataIndex
:
'QuantityUnitPrice'
,
width
:
150
,
align
:
'right'
,
renderer
:
function
(
_value
)
{
let
_newValue
=
Ext
.
util
.
Format
.
usMoney
(
_value
);
let
_newValue1
=
_newValue
.
replace
(
'$'
,
'¥'
);
return
_newValue1
;
}
},
{
text
:
'金额(含税)'
,
dataIndex
:
'Amount'
,
width
:
180
,
align
:
'right'
,
renderer
:
function
(
_value
)
{
let
_newValue
=
Ext
.
util
.
Format
.
usMoney
(
_value
);
let
_newValue1
=
_newValue
.
replace
(
'$'
,
'¥'
);
return
_newValue1
;
},
editor
:
{
xtype
:
'numberfield'
,
hideTrigger
:
true
,
enforceMaxLength
:
true
,
listeners
:
{
change
:
'_onChangeAmount'
}
}
},
{
text
:
'税率'
,
dataIndex
:
'TaxRate'
,
align
:
'right'
,
width
:
100
,
renderer
:
function
(
_value
,
_meta
,
_record
)
{
if
(
_value
===
undefined
)
return
0
;
return
_value
*
100
+
'%'
;
}
},
{
text
:
'税额'
,
width
:
120
,
align
:
'right'
,
dataIndex
:
'AmountTax'
,
renderer
:
function
(
_value
)
{
let
_newValue
=
Ext
.
util
.
Format
.
usMoney
(
_value
);
let
_newValue1
=
_newValue
.
replace
(
'$'
,
'¥'
);
return
_newValue1
;
}
},
{
xtype
:
'actioncolumn'
,
width
:
80
,
text
:
'操作'
,
align
:
'center'
,
menuDisabled
:
true
,
sortable
:
false
,
items
:
[{
iconCls
:
'x-fa fa-trash-o'
,
handler
:
'_onDeleteDetail'
}]
}],
controller
:
{
_onChangeQuantity
:
function
(
_ctrl
,
_newValue
,
_oldValue
,
_eOpts
)
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_view
=
_controller
.
getView
();
let
_value
=
_newValue
;
let
_detail
=
_view
.
selection
;
_detail
.
data
.
Quantity
=
_value
;
_detail
.
data
.
QuantityUnitPrice
=
(
parseFloat
(
_detail
.
data
.
Amount
)
/
parseFloat
(
_detail
.
data
.
Quantity
)).
toFixed
(
2
);
//parseFloat(_detail.data.Amount.toFixed(2))/parseFloat(_detail.data.Quantity); //单价(含税)
_detail
.
data
.
QuantityUnitPriceUntaxed
=
(
parseFloat
(
_detail
.
data
.
AmountUntaxed
)
/
parseFloat
(
_detail
.
data
.
Quantity
)).
toFixed
(
2
);
//parseFloat(_detail.data.AmountUntaxed.toFixed(2))/parseFloat(_detail.data.Quantity); //单价(不含税)
_view
.
modifyEntity
(
_detail
.
data
);
// _view.addEntity(_detail);
},
_onChangeAmount
:
function
(
_ctrl
,
_newValue
,
_oldValue
,
_eOpts
)
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_view
=
_controller
.
getView
();
let
_value
=
_newValue
;
let
_detail
=
_view
.
selection
;
_detail
.
data
.
Amount
=
(
parseFloat
(
_value
)).
toFixed
(
2
);
_detail
.
data
.
AmountUntaxed
=
(
parseFloat
(
_detail
.
data
.
Amount
)
/
(
1
+
parseFloat
(
_detail
.
data
.
TaxRate
))).
toFixed
(
2
);
//parseFloat(_detail.data.Amount.toFixed(2))/(1+parseFloat(_detail.data.TaxRate.toFixed(2))); //金额(未税)
_detail
.
data
.
AmountTax
=
(
parseFloat
(
_detail
.
data
.
Amount
)
-
parseFloat
(
_detail
.
data
.
AmountUntaxed
)).
toFixed
(
2
);
//parseFloat(_detail.data.AmountUntaxed.toFixed(2))*_detail.data.TaxRate; //税额
_detail
.
data
.
QuantityUnitPrice
=
(
parseFloat
(
_detail
.
data
.
Amount
)
/
parseFloat
(
_detail
.
data
.
Quantity
)).
toFixed
(
2
);
//parseFloat(_detail.data.Amount.toFixed(2))/parseFloat(_detail.data.Quantity); //单价(含税)
_detail
.
data
.
QuantityUnitPriceUntaxed
=
(
parseFloat
(
_detail
.
data
.
AmountUntaxed
)
/
parseFloat
(
_detail
.
data
.
Quantity
)).
toFixed
(
2
);
//parseFloat(_detail.data.AmountUntaxed.toFixed(2))/parseFloat(_detail.data.Quantity); //单价(不含税)
_view
.
modifyEntity
(
_detail
.
data
);
// _view.addEntity(_detail);
},
_onEditDetail
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
if
(
!
_view
.
selection
)
return
;
let
_data
=
_view
.
getStore
().
getData
().
items
;
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.InvoiceApplyDetail.Form'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
// header:false,
iconAlign
:
'left'
,
autoScroll
:
true
,
width
:
900
,
height
:
550
,
modal
:
true
,
resizable
:
false
,
items
:
[
_form
]
});
_win
.
show
();
_form
.
setOwner
(
_view
.
selection
,
_data
);
_form
.
on
(
'entityUpdated'
,
function
(
_ctrl
,
_entities
)
{
_win
.
close
();
_view
.
modifyEntity
(
_entities
);
_view
.
clearSelections
();
// _view.reload();
});
},
_onAddDetail
:
function
()
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_store
=
_view
.
getStore
();
let
item
=
{};
item
.
GoodsId
=
"发票1"
;
item
.
GoodsFullName
=
"产品质量委托检验"
;
item
.
GoodsModel
=
"3040601000000000000"
;
item
.
TaxRate
=
0.06
;
item
.
Quantity
=
1
;
item
.
Amount
=
0
;
item
.
QuantityUnit
=
'次'
;
item
.
AmountUntaxed
=
0
;
//parseFloat(item.Amount.toFixed(2))/(1+parseFloat(item.TaxRate.toFixed(2))); //金额(未税)
item
.
AmountTax
=
0
;
//parseFloat(item.AmountUntaxed.toFixed(2))*item.TaxRate; //税额
item
.
QuantityUnitPriceUntaxed
=
0
;
//parseFloat(item.AmountUntaxed.toFixed(2))/parseFloat(item.Quantity); //单价(不含税)
item
.
QuantityUnitPrice
=
0
;
//parseFloat(item.Amount.toFixed(2))/parseFloat(item.Quantity); //单价(含税)
_store
.
add
(
item
);
},
_onDeleteDetail
:
function
(
_ctrl
,
_rowIndex
,
_colIndex
,
_item
,
_e
,
_record
)
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_view
=
_controller
.
getView
();
_view
.
removeEntity
(
_record
.
data
);
}
}
}]
}]
},{
xtype
:
'container'
,
height
:
120
,
defaults
:
{
xtype
:
'textfield'
,
columnWidth
:
1
/
4
,
labelWidth
:
65
,
labelAlign
:
'right'
,
margin
:
'0 10 10 10'
},
layout
:
'column'
,
items
:
[{
fieldLabel
:
'收 款 人'
,
allowBlank
:
false
,
columnWidth
:
1
/
3
,
bind
:
{
value
:
'{entity.Metadata.PayeeOperatorName}'
}
},
{
fieldLabel
:
'复 核 人'
,
allowBlank
:
false
,
columnWidth
:
1
/
3
,
bind
:
{
value
:
'{entity.Metadata.ReviewerName}'
}
},
{
fieldLabel
:
'开 票 人'
,
allowBlank
:
false
,
columnWidth
:
1
/
3
,
bind
:
{
value
:
'{entity.OperatorName}'
}
},
{
fieldLabel
:
'摘 要'
,
columnWidth
:
1
,
bind
:
{
value
:
'{entity.Summary}'
}
},
{
fieldLabel
:
'备 注'
,
emptyText
:
'备注信息会在开具的发票备注栏体现'
,
columnWidth
:
1
,
bind
:
{
value
:
'{entity.Remark}'
}
}]
}],
setOwner
:
function
(
_entity
)
{
let
_view
=
this
;
let
_vm
=
_view
.
getViewModel
();
let
_refs
=
_view
.
getReferences
();
_vm
.
set
(
'entity'
,
_entity
);
let
_owner
=
{};
Ext
.
apply
(
_owner
,
_entity
);
_vm
.
set
(
'owner'
,
_owner
);
let
_store
=
_refs
.
Details
.
getStore
();
let
item
=
{};
item
.
GoodsId
=
"发票1"
;
item
.
GoodsFullName
=
"产品质量委托检验"
;
item
.
GoodsModel
=
"3040601000000000000"
;
item
.
TaxRate
=
0.06
;
item
.
Quantity
=
1
;
item
.
Amount
=
parseFloat
(
_entity
.
Amount
.
toFixed
(
2
));
item
.
QuantityUnit
=
'次'
;
item
.
AmountUntaxed
=
(
parseFloat
(
item
.
Amount
)
/
(
1
+
parseFloat
(
item
.
TaxRate
))).
toFixed
(
2
);
item
.
AmountTax
=
(
parseFloat
(
item
.
Amount
)
-
parseFloat
(
item
.
AmountUntaxed
)).
toFixed
(
2
);
item
.
QuantityUnitPrice
=
(
parseFloat
(
item
.
Amount
)
/
parseFloat
(
item
.
Quantity
)).
toFixed
(
2
);
item
.
QuantityUnitPriceUntaxed
=
(
parseFloat
(
item
.
AmountUntaxed
)
/
parseFloat
(
item
.
Quantity
)).
toFixed
(
2
);
_store
.
add
(
item
);
},
controller
:
{
// _onSaveVAtEntity: function(_ctrl) {
// let _controller = this;
// let _view = _controller.getView();
// let _vm = _controller.getViewModel();
// let _store = _view.down('gridpanel').getStore().data;
// let _item = {};
// _item.entity = _vm.data.entity;
// _item.detail = _store.items[0].data;
// let _issue = null;
// if (_item.entity.Amount > 100000) {
// _issue = Ext.create('App.Control.Kivii.Finances.Apply.ExecuteVat.List');
// } else {
// _issue = Ext.create('App.Control.Kivii.Finances.Apply.ExecuteVat.Form');
// }
// let _win = Ext.create('Ext.window.Window', {
// layout: 'fit',
// title: _ctrl.text,
// iconCls: 'x-fa fa-money',
// iconAlign: 'left',
// autoScroll: true,
// width: 580,
// height: 280,
// modal: true,
// resizable: false,
// items: [_issue]
// });
// _win.show();
// _issue.setOwner(_item);
// _issue.on('entityCreated', function(_ctrl, _entity) {
// _win.close();
// _view.fireEvent('entityCreated', _controller, _entity);
// });
// },
_onSaveEntity
:
function
()
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_store
=
_view
.
down
(
'gridpanel'
).
getStore
().
data
;
let
_details
=
[];
for
(
let
i
=
0
;
i
<
_store
.
items
.
length
;
i
++
)
{
if
(
_store
.
items
[
i
].
data
.
Amount
<=
0
)
continue
;
_details
.
push
(
_store
.
items
[
i
].
data
);
}
let
_item
=
_vm
.
data
.
entity
;
if
(
_item
.
Amount
!==
_vm
.
data
.
owner
.
Amount
)
{
Ext
.
toast
(
"申请明细金额与申请原始金额不一致!"
);
return
;
}
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.InvoiceApply/Execute.json'
,
jsonData
:
{
Item
:
_item
,
Details
:
_details
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
Ext
.
toast
(
'已进入开票列队中'
);
_view
.
fireEvent
(
'entityExecuted'
,
_controller
,
_rtns
);
},
failure
:
function
(
_response
)
{}
});
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.InvoiceApply.Form.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.Control.Kivii.Finances.InvoiceApply.Form'
,
{
extend
:
'System.Control.EntityForm'
,
xtype
:
'App.Control.Kivii.Finances.InvoiceApply.Form'
,
entityType
:
'Kivii.Finances.Entities.InvoiceApply'
,
layout
:
{
type
:
'responsivecolumn'
,
states
:
{
small
:
600
,
large
:
0
}
},
autoscroll
:
true
,
viewModel
:
{
data
:
{
ButtonText
:
'申请'
,
ButtonIcon
:
'x-fa fa-plus'
,
PaymentKvids
:
[],
entity
:
{
Metadata
:
{},
Kvid
:
null
,
Type
:
null
,
Amount
:
0
,
OperateType
:
'Debit'
,
PayeeName
:
KiviiContext
.
CurrentMember
.
OrganizationName
,
Currency
:
'CNY'
}
},
formulas
:
{
amountChineseBig
:
function
(
get
)
{
let
_amount
=
get
(
'entity.Amount'
);
return
KiviiContext
.
Const
.
FinancesFunctionsMoneyToChineseBig
(
_amount
);
}
}
},
dockedItems
:
[{
xtype
:
'toolbar'
,
dock
:
'top'
,
items
:
[
'->'
,
{
handler
:
'_onCreate'
,
bind
:
{
text
:
'{ButtonText}'
,
iconCls
:
'{ButtonIcon}'
,
disabled
:
'{!formIsValid}'
}
}]
}],
defaults
:
{
labelWidth
:
60
,
labelAlign
:
'right'
,
// margin: '0 10 10 10',
readOnly
:
true
,
xtype
:
'textfield'
},
items
:
[{
xtype
:
'container'
,
height
:
200
,
layout
:
'column'
,
items
:
[{
xtype
:
'container'
,
margin
:
'10 5 10 10'
,
height
:
180
,
columnWidth
:
1
/
2
,
style
:
{
border
:
'1px solid #C1C1C1'
},
layout
:
'hbox'
,
items
:
[{
xtype
:
'container'
,
height
:
180
,
width
:
35
,
style
:
{
'border-right'
:
'0.5px solid #C1C1C1'
},
html
:
'<div style="font-size:16px;margin-top:38px;margin-left:10px;width:10px;word-wrap:break-word;"> 购 买 方 </div>'
},
{
xtype
:
'container'
,
height
:
180
,
flex
:
1
,
layout
:
'column'
,
defaults
:
{
xtype
:
'textfield'
,
columnWidth
:
1
/
2
,
labelWidth
:
65
,
labelAlign
:
'right'
,
margin
:
'0 10 10 10'
,
readOnly
:
true
},
items
:
[{
xtype
:
'windowSelector'
,
columnWidth
:
1
,
margin
:
'10 10 5 10'
,
fieldLabel
:
'名 称'
,
editable
:
false
,
readOnly
:
false
,
allowBlank
:
false
,
keyField
:
'Kvid'
,
valueField
:
'CompanyName'
,
value1Field
:
'TaxNumber'
,
value2Field
:
'CompanyAddress'
,
value3Field
:
'Phone'
,
value4Field
:
'BankName'
,
value5Field
:
'BankAccount'
,
window
:
{
type
:
'App.Control.Kivii.Finances.InvoiceTitle.Selector'
},
Type
:
'Payee'
,
bind
:
{
key
:
'{entity.PayerKvid}'
,
value
:
'{entity.PayerName}'
,
value1
:
'{entity.PayerTaxNumber}'
,
value2
:
'{entity.PayerCompanyAddress}'
,
value3
:
'{entity.PayerPhone}'
,
value4
:
'{entity.PayerRegisteredBank}'
,
value5
:
'{entity.PayerBankAccount}'
}
},
{
fieldLabel
:
'纳 税 号'
,
margin
:
'0 10 5 10'
,
columnWidth
:
1
,
bind
:
'{entity.PayerTaxNumber}'
},
{
fieldLabel
:
'地 址'
,
bind
:
'{entity.PayerCompanyAddress}'
},
{
fieldLabel
:
'电 话'
,
bind
:
'{entity.PayerPhone}'
},
{
fieldLabel
:
'开 户 行'
,
bind
:
'{entity.PayerRegisteredBank}'
},
{
fieldLabel
:
'账 号'
,
bind
:
'{entity.PayerBankAccount}'
}]
}]
},
{
xtype
:
'container'
,
margin
:
'10 10 10 5'
,
height
:
180
,
columnWidth
:
1
/
2
,
style
:
{
border
:
'1px solid #C1C1C1'
},
layout
:
'hbox'
,
items
:
[{
xtype
:
'container'
,
height
:
180
,
width
:
35
,
style
:
{
'border-right'
:
'0.5px solid #C1C1C1'
},
html
:
'<div style="font-size:16px;margin-top:38px;margin-left:10px;width:10px;word-wrap:break-word;"> 销 售 方 </div>'
},
{
xtype
:
'container'
,
height
:
180
,
flex
:
1
,
layout
:
'column'
,
defaults
:
{
xtype
:
'textfield'
,
columnWidth
:
1
/
2
,
labelWidth
:
65
,
labelAlign
:
'right'
,
margin
:
'0 10 10 10'
,
readOnly
:
true
},
items
:
[{
xtype
:
'windowSelector'
,
columnWidth
:
1
,
margin
:
'10 10 5 10'
,
fieldLabel
:
'名 称'
,
editable
:
false
,
readOnly
:
false
,
allowBlank
:
false
,
keyField
:
'Kvid'
,
valueField
:
'CompanyName'
,
value1Field
:
'TaxNumber'
,
value2Field
:
'CompanyAddress'
,
value3Field
:
'Phone'
,
value4Field
:
'BankName'
,
value5Field
:
'BankAccount'
,
window
:
{
type
:
'App.Control.Kivii.Finances.InvoiceTitle.Selector'
},
Type
:
'Payee'
,
bind
:
{
key
:
'{entity.PayeeKvid}'
,
value
:
'{entity.PayeeName}'
,
value1
:
'{entity.PayeeTaxNumber}'
,
value2
:
'{entity.PayeeCompanyAddress}'
,
value3
:
'{entity.PayeePhone}'
,
value4
:
'{entity.PayeeRegisteredBank}'
,
value5
:
'{entity.PayeeBankAccount}'
}
},
{
fieldLabel
:
'纳 税 号'
,
margin
:
'0 10 5 10'
,
columnWidth
:
1
,
allowBlank
:
false
,
bind
:
'{entity.PayeeTaxNumber}'
},
{
fieldLabel
:
'地 址'
,
bind
:
'{entity.PayeeCompanyAddress}'
},
{
fieldLabel
:
'电 话'
,
bind
:
'{entity.PayeePhone}'
},
{
fieldLabel
:
'开 户 行'
,
bind
:
'{entity.PayeeRegisteredBank}'
},
{
fieldLabel
:
'账 号'
,
bind
:
'{entity.PayeeBankAccount}'
}]
}]
}]
},
{
xtype
:
'numberfield'
,
fieldLabel
:
'申请金额'
,
emptyText
:
'请输入数字'
,
hideTrigger
:
true
,
responsiveCls
:
'big-50 small-100'
,
minValue
:
0
,
decimalPrecision
:
2
,
// readOnly:false,
bind
:
{
readOnly
:
'{entity.OperateType==="Payment"}'
,
value
:
'{entity.Amount}'
},
allowBlank
:
false
},
{
xtype
:
'categoryField'
,
fieldLabel
:
'发票类型'
,
allowBlank
:
false
,
responsiveCls
:
'big-50 small-100'
,
internalCode
:
'Type'
,
readOnly
:
false
,
bind
:
{
value
:
'{entity.Type}'
}
},
{
xtype
:
'textfield'
,
responsiveCls
:
'big-50 small-100'
,
fieldLabel
:
'金额大写'
,
bind
:
{
value
:
'{amountChineseBig}'
}
},
{
xtype
:
'combo'
,
responsiveCls
:
'big-50 small-100'
,
fieldLabel
:
'申请类型'
,
queryMode
:
'local'
,
displayField
:
'displayInfo'
,
valueField
:
'applyType'
,
allowBlank
:
false
,
editable
:
false
,
filterPickList
:
true
,
readOnly
:
false
,
reference
:
'applyType'
,
store
:
{
fields
:
[
'displayInfo'
,
'applyType'
],
data
:
[{
displayInfo
:
'到账申请'
,
applyType
:
'Payment'
},
{
displayInfo
:
'借票申请'
,
applyType
:
'Debit'
}]
},
bind
:
{
value
:
'{entity.OperateType}'
}
},
{
fieldLabel
:
'摘 要'
,
responsiveCls
:
'big-100 small-100'
,
readOnly
:
false
,
bind
:
{
value
:
'{entity.Summary}'
,
}
}],
listeners
:{
afterrender
:
'_afterrender'
},
setOwner
:
function
(
_entity
,
_ctrl
)
{
let
_view
=
this
;
let
_vm
=
_view
.
getViewModel
();
let
_refs
=
_view
.
getReferences
();
_refs
.
applyType
.
setReadOnly
(
true
);
_vm
.
set
(
'entity'
,
_entity
);
_vm
.
set
(
'ButtonText'
,
_ctrl
.
text
);
_vm
.
set
(
'ButtonIcon'
,
_ctrl
.
iconCls
);
_vm
.
set
(
'PaymentKvids'
,
_entity
.
PaymentKvids
);
if
(
_entity
.
PayerName
!==
null
){
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.InvoiceTitle/Query.json'
,
params
:
{
CompanyName
:
_entity
.
PayerName
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
if
(
_rtns
.
Results
.
length
<=
0
)
return
Ext
.
toast
(
'未找到对应抬头信息,请先添加!'
);
_vm
.
set
(
'entity.PayerName'
,
_rtns
.
Results
[
0
].
CompanyName
);
_vm
.
set
(
'entity.PayerKvid'
,
_rtns
.
Results
[
0
].
Kvid
);
_vm
.
set
(
'entity.PayerTaxNumber'
,
_rtns
.
Results
[
0
].
TaxNumber
);
_vm
.
set
(
'entity.PayerCompanyAddress'
,
_rtns
.
Results
[
0
].
CompanyAddress
);
_vm
.
set
(
'entity.PayerPhone'
,
_rtns
.
Results
[
0
].
Phone
);
_vm
.
set
(
'entity.PayerRegisteredBank'
,
_rtns
.
Results
[
0
].
BankName
);
_vm
.
set
(
'entity.PayerBankAccount'
,
_rtns
.
Results
[
0
].
BankAccount
);
},
failure
:
function
(
_response
)
{
Ext
.
toast
(
'请重试!'
);
}
});
}
// if (_entity.OperateType === "Payment") {
// let _form = Ext.create('App.Control.Kivii.Finances.InvoiceApply.Payment.Selector', {
// header: false
// });
// let _win = Ext.create('Ext.window.Window', {
// layout: 'fit',
// title: '请选择可开票到账',
// iconCls: _ctrl.iconCls,
// iconAlign: 'left',
// // header:false,
// autoScroll: true,
// width: 900,
// height: 500,
// modal: true,
// resizable: false,
// items: [_form]
// });
// _win.show();
// _form.on('entitySelected', function(_selectCtrl, _entities) {
// _win.close();
// let _paymentKvids = [];
// let _amount = 0;
// let _payerName = '';
// for (let _i = 0; _i < _entities.length; _i++) {
// let _select = _entities[_i];
// _payerName = _select.PayerName;
// _paymentKvids.push(_select.Kvid);
// _amount += parseFloat(parseFloat(_select.Amount - _select.AmountInvoice).toFixed(2));
// }
// _vm.set('entity.Amount', _amount);
// _vm.set('PaymentKvids', _paymentKvids);
// Ext.Ajax.request({
// url: '/Restful/Kivii.Finances.Entities.InvoiceTitle/Query.json',
// params: {
// CompanyName: _payerName
// },
// success: function(_response) {
// let _rtns = Ext.decode(_response.responseText);
// if (_rtns.Results.length <= 0) return Ext.toast('未找到对应抬头信息,请先添加!');
// _vm.set('entity.PayerName', _rtns.Results[0].CompanyName);
// _vm.set('entity.PayerKvid', _rtns.Results[0].Kvid);
// _vm.set('entity.PayerTaxNumber', _rtns.Results[0].TaxNumber);
// _vm.set('entity.PayerCompanyAddress', _rtns.Results[0].CompanyAddress);
// _vm.set('entity.PayerPhone', _rtns.Results[0].Phone);
// _vm.set('entity.PayerRegisteredBank', _rtns.Results[0].BankName);
// _vm.set('entity.PayerBankAccount', _rtns.Results[0].BankAccount);
// },
// failure: function(_response) {
// Ext.toast('请重试!');
// }
// });
// });
// }
},
controller
:
{
_afterrender
:
function
(
_ctrl
,
_eOpts
){
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_entity
=
_vm
.
data
.
entity
;
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.InvoiceTitle/Query.json'
,
params
:
{
CompanyName
:
_entity
.
PayeeName
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
if
(
_rtns
.
Results
.
length
<=
0
)
return
Ext
.
toast
(
'未找到对应抬头信息,请先添加!'
);
_vm
.
set
(
'entity.PayeeName'
,
_rtns
.
Results
[
0
].
CompanyName
);
_vm
.
set
(
'entity.PayeeKvid'
,
_rtns
.
Results
[
0
].
Kvid
);
_vm
.
set
(
'entity.PayeeTaxNumber'
,
_rtns
.
Results
[
0
].
TaxNumber
);
_vm
.
set
(
'entity.PayeeCompanyAddress'
,
_rtns
.
Results
[
0
].
CompanyAddress
);
_vm
.
set
(
'entity.PayeePhone'
,
_rtns
.
Results
[
0
].
Phone
);
_vm
.
set
(
'entity.PayeeRegisteredBank'
,
_rtns
.
Results
[
0
].
BankName
);
_vm
.
set
(
'entity.PayeeBankAccount'
,
_rtns
.
Results
[
0
].
BankAccount
);
},
failure
:
function
(
_response
)
{
Ext
.
toast
(
'请重试!'
);
}
});
},
_onCreate
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
_ctrl
.
setDisabled
(
true
);
Ext
.
Ajax
.
request
({
url
:
'/Restful/'
+
_view
.
entityType
+
'/Apply.json'
,
jsonData
:
{
Item
:
_vm
.
data
.
entity
,
PaymentKvids
:
_vm
.
data
.
PaymentKvids
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
Ext
.
toast
(
'申请成功!'
);
_ctrl
.
setDisabled
(
false
);
_view
.
fireEvent
(
'entityCreated'
,
_controller
,
_rtns
.
Results
[
0
]);
},
failure
:
function
(
_response
)
{
_ctrl
.
setDisabled
(
false
);}
});
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.InvoiceApply.Payment.Selector.js
0 → 100644
View file @
5ef2d2e1
Ext
.
define
(
'App.Control.Kivii.Finances.InvoiceApply.Payment.Selector'
,
{
extend
:
'System.Control.EntitySelector'
,
entityType
:
'Kivii.Finances.Entities.Payment'
,
xtype
:
'App.Control.Kivii.Finances.InvoiceApply.Payment.Selector'
,
dataSource
:
'/Restful/Kivii.Finances.Entities.Payment/InvoiceApplyQuery.json'
,
filter
:
{},
store
:
{
autoLoad
:
true
},
selModel
:
{
selType
:
'checkboxmodel'
,
checkboxSelect
:
true
,
pruneRemoved
:
false
,
extensible
:
'y'
},
tbar
:
[{
margin
:
'0 3 -10 3'
,
xtype
:
'displayfield'
,
value
:
'<div style="color:red">若未找到开票收款,请先到账管理中认领</div>'
,
fieldStyle
:
{
fontSize
:
'20px'
}
},
{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'SerialNumber,PayerName,PayerAccountName,PayerAccountSerialNumber'
,
emptyText
:
'模糊搜索流水号、付款单位、收付款账号或名称'
}],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
true
},
items
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
,
resizable
:
false
},
{
text
:
'流水号'
,
dataIndex
:
'SerialNumber'
,
width
:
120
},
{
text
:
'付款单位'
,
dataIndex
:
'PayerName'
,
width
:
220
},
{
text
:
'发生金额'
,
align
:
'right'
,
dataIndex
:
'Amount'
,
width
:
110
},
{
text
:
'开票金额'
,
align
:
'right'
,
dataIndex
:
'AmountInvoice'
,
width
:
100
},
{
text
:
'付款类型'
,
dataIndex
:
'Type'
,
renderer
:
'_renderType'
,
width
:
100
},
{
xtype
:
'datecolumn'
,
text
:
'发生日期'
,
format
:
'Y-m-d H:i'
,
dataIndex
:
'OperateTime'
,
width
:
150
},
{
text
:
'摘要'
,
dataIndex
:
'Summary'
,
width
:
150
},
{
text
:
'备注'
,
dataIndex
:
'Remark'
,
minWidth
:
150
,
flex
:
1
}]
},
controller
:
{
_renderType
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
'Cash'
)
{
return
'现金'
;
}
if
(
_value
===
'Pos'
)
{
return
'刷卡'
;
}
if
(
_value
===
'AliPay'
)
{
return
'支付宝'
;
}
if
(
_value
===
'WeChat'
)
{
return
'微信'
;
}
if
(
_value
===
'Bank'
)
{
return
'银行转账'
;
}
if
(
_value
===
'Split'
)
{
return
'已认领到账'
;
}
return
_value
;
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.InvoiceApplyDetail.Form.js
0 → 100644
View file @
5ef2d2e1
Ext
.
define
(
'App.Control.Kivii.Finances.InvoiceApplyDetail.Form'
,
{
extend
:
'System.Control.EntityForm'
,
xtype
:
'App.Control.Kivii.Finances.InvoiceApplyDetail.Form'
,
entityType
:
'Kivii.Finances.Entities.InvoiceApplyDetail'
,
layout
:
{
type
:
'responsivecolumn'
,
states
:
{
small
:
1000
,
large
:
0
}
},
viewModel
:
{
data
:
{
entity
:
{
},
currentAmount
:
0
},
formulas
:
{
calculating
:
function
(
get
)
{
let
_amount
=
get
(
'entity.Amount'
);
let
_quantity
=
get
(
'entity.Quantity'
);
let
_taxRate
=
get
(
'entity.TaxRate'
);
let
_amountUntaxed
=
(
parseFloat
(
_amount
)
/
(
1
+
parseFloat
(
_taxRate
))).
toFixed
(
2
);
let
_amountTax
=
(
parseFloat
(
_amount
)
-
parseFloat
(
_amountUntaxed
)).
toFixed
(
2
);
let
_quantityUnitPrice
=
(
parseFloat
(
_amount
)
/
parseFloat
(
_quantity
)).
toFixed
(
2
);
let
_quantityUnitPriceUntaxed
=
(
parseFloat
(
_amountUntaxed
)
/
parseFloat
(
_quantity
)).
toFixed
(
2
);
this
.
set
(
'entity.AmountUntaxed'
,
_amountUntaxed
);
this
.
set
(
'entity.AmountTax'
,
_amountTax
);
this
.
set
(
'entity.QuantityUnitPrice'
,
_quantityUnitPrice
);
this
.
set
(
'entity.QuantityUnitPriceUntaxed'
,
_quantityUnitPriceUntaxed
);
return
_amount
;
}
}
},
autoScroll
:
true
,
defaults
:
{
labelWidth
:
80
,
xtype
:
'textfield'
,
layout
:
'responsivecolumn'
,
margin
:
'0 20 10 0'
},
tbar
:
[{
margin
:
'0 0 -9 3'
,
xtype
:
'displayfield'
,
bind
:
{
value
:
'已有明细总额:{currentAmount},当前明细金额:{entity.Amount}'
},
fieldStyle
:
{
fontSize
:
'20px'
}
},
'->'
,
{
text
:
'保存'
,
iconCls
:
'x-fa fa-link'
,
iconAlign
:
'left'
,
handler
:
'_onSaveEntity'
,
bind
:
{
disabled
:
'{!formIsValid}'
}
}],
items
:
[{
xtype
:
'displayfield'
,
bind
:
{
value
:
'组别是用于当前申请多张发票时,不同组别会分别开具到对应组别的发票上'
},
fieldStyle
:
{
fontSize
:
'20px'
}
},{
xtype
:
'categoryField'
,
fieldLabel
:
'组 别'
,
responsiveCls
:
'big-100 small-100'
,
allowBlank
:
false
,
bind
:
'{entity.GoodsId}'
,
internalCode
:
'GoodsId'
,
entityType
:
'Kivii.Finances.Entities.InvoiceApplyDetail'
},
{
xtype
:
'textfield'
,
fieldLabel
:
'货品名称'
,
responsiveCls
:
'big-100 small-100'
,
allowBlank
:
false
,
readOnly
:
true
,
bind
:
'{entity.GoodsFullName}'
},{
xtype
:
'textfield'
,
fieldLabel
:
'货品规格'
,
responsiveCls
:
'big-100 small-100'
,
bind
:
'{entity.GoodsSpecifications}'
},{
xtype
:
'numberfield'
,
fieldLabel
:
'金额(含税)'
,
hideTrigger
:
true
,
allowBlank
:
false
,
responsiveCls
:
'big-60 small-100'
,
bind
:
'{entity.Amount}'
},{
xtype
:
'categoryField'
,
fieldLabel
:
'税 率'
,
responsiveCls
:
'big-40 small-100'
,
allowBlank
:
false
,
bind
:
'{entity.TaxRate}'
,
internalCode
:
'TaxRate'
,
entityType
:
'Kivii.Finances.Entities.InvoiceApplyDetail'
},{
xtype
:
'numberfield'
,
fieldLabel
:
'数 量'
,
hideTrigger
:
true
,
allowBlank
:
false
,
responsiveCls
:
'big-60 small-100'
,
bind
:
'{entity.Quantity}'
},{
xtype
:
'textfield'
,
fieldLabel
:
'数量单位'
,
allowBlank
:
false
,
responsiveCls
:
'big-40 small-100'
,
bind
:
'{entity.QuantityUnit}'
},
{
xtype
:
'numberfield'
,
fieldLabel
:
'单价(含税)'
,
readOnly
:
true
,
hideTrigger
:
true
,
responsiveCls
:
'big-60 small-100'
,
bind
:
'{entity.QuantityUnitPrice}'
},{
xtype
:
'numberfield'
,
fieldLabel
:
'单价(不含税)'
,
readOnly
:
true
,
hideTrigger
:
true
,
responsiveCls
:
'big-40 small-100'
,
bind
:
'{entity.QuantityUnitPriceUntaxed}'
},{
xtype
:
'numberfield'
,
fieldLabel
:
'金额(不含税)'
,
readOnly
:
true
,
hideTrigger
:
true
,
responsiveCls
:
'big-60 small-100'
,
bind
:
'{entity.AmountUntaxed}'
},{
xtype
:
'numberfield'
,
fieldLabel
:
'税额'
,
readOnly
:
true
,
hideTrigger
:
true
,
responsiveCls
:
'big-40 small-100'
,
bind
:
'{entity.AmountTax}'
},{
xtype
:
'textarea'
,
fieldLabel
:
'备注'
,
responsiveCls
:
'big-100 small-100'
,
readOnly
:
false
,
bind
:
{
value
:
'{entity.MatchText}'
}
}],
setOwner
:
function
(
_entity
,
_records
)
{
let
_view
=
this
;
let
_vm
=
_view
.
getViewModel
();
_vm
.
set
(
'entity'
,
_entity
);
let
_currentAmount
=
0
;
for
(
let
_i
=
0
;
_i
<
_records
.
length
;
_i
++
)
{
let
_record
=
_records
[
_i
].
data
;
_currentAmount
+=
_record
.
Amount
;
}
_vm
.
set
(
'currentAmount'
,
_currentAmount
.
toFixed
(
2
));
},
controller
:
{
_onSaveEntity
:
function
(
_ctrl
)
{
let
_controller
=
this
,
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
_view
.
fireEvent
(
'entityUpdated'
,
_view
,
_vm
.
data
.
entity
);
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.InvoiceTitle.Form.js
0 → 100644
View file @
5ef2d2e1
Ext
.
define
(
'App.Control.Kivii.Finances.InvoiceTitle.Form'
,
{
extend
:
'System.Control.EntityForm'
,
entityType
:
'Kivii.Finances.Entities.InvoiceTitle'
,
xtype
:
'App.Control.Kivii.Finances.InvoiceTitle.Form'
,
layout
:
{
type
:
'responsivecolumn'
,
states
:
{
small
:
1000
,
large
:
0
}
},
tbar
:
[
'->'
,
{
text
:
'保存'
,
iconCls
:
'x-fa fa-save'
,
iconAlign
:
'left'
,
handler
:
'_onSaveEntity'
,
bind
:
{
disabled
:
'{!formIsValid}'
}
}],
defaults
:
{
labelWidth
:
60
,
labelAlign
:
'right'
,
xtype
:
'textfield'
,
margin
:
'0 10 10 10'
,
responsiveCls
:
'big-100 small-100'
},
items
:
[{
fieldLabel
:
'公司名称'
,
bind
:
'{entity.CompanyName}'
,
allowBlank
:
false
},
{
fieldLabel
:
'税 号'
,
bind
:
'{entity.TaxNumber}'
,
allowBlank
:
false
,
regex
:
/^
[
A-Z0-9
]{15}
$|^
[
A-Z0-9
]{18}
$|^
[
A-Z0-9
]{20}
$/
,
regexText
:
'请输入正确的税号,
\
n
\
n15位,18位,20位'
},
{
fieldLabel
:
'单位地址'
,
bind
:
'{entity.CompanyAddress}'
},
{
fieldLabel
:
'电话号码'
,
bind
:
'{entity.Phone}'
},
{
fieldLabel
:
'开户银行'
,
bind
:
'{entity.BankName}'
},
{
fieldLabel
:
'银行账户'
,
bind
:
'{entity.BankAccount}'
}],
controller
:
{
_onSaveEntity
:
function
()
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_view
=
_controller
.
getView
();
_view
.
saveEntity
();
}
}
})
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.InvoiceTitle.Selector.js
0 → 100644
View file @
5ef2d2e1
Ext
.
define
(
'App.Control.Kivii.Finances.InvoiceTitle.Selector'
,
{
extend
:
'System.Control.EntitySelector'
,
entityType
:
'Kivii.Finances.Entities.InvoiceTitle'
,
filter
:
{},
selModel
:
false
,
store
:
{
autoLoad
:
true
},
tbar
:
[{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'CompanyName,TaxNumber'
,
emptyText
:
'模糊搜索公司名称'
},
{
text
:
'添加'
,
iconCls
:
'x-fa fa-plus'
,
iconAlign
:
'left'
,
handler
:
'_onCreateInvoiceTitle'
}],
columns
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
,
},
{
text
:
'公司名称'
,
dataIndex
:
'CompanyName'
,
width
:
150
},
{
text
:
'税号'
,
dataIndex
:
'TaxNumber'
,
width
:
160
},
{
text
:
'公司地址'
,
dataIndex
:
'CompanyAddress'
,
minWidth
:
100
,
flex
:
1
},
{
text
:
'电话号码'
,
dataIndex
:
'Phone'
,
width
:
120
},
{
text
:
'开户银行'
,
dataIndex
:
'BankName'
,
width
:
200
},
{
text
:
'银行账户'
,
dataIndex
:
'BankAccount'
,
width
:
150
}],
controller
:
{
_onCreateInvoiceTitle
:
function
(
_ctrl
)
{
let
_controllor
=
this
;
let
_view
=
_controllor
.
getView
();
let
_invoiceTitle
=
Ext
.
create
(
'App.Control.Kivii.Finances.InvoiceTitle.Form'
);
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
// title: _ctrl.text,
// iconCls: 'x-fa fa-money',
iconAlign
:
'left'
,
autoScroll
:
true
,
width
:
560
,
height
:
380
,
modal
:
true
,
resizable
:
false
,
items
:
[
_invoiceTitle
]
});
_win
.
show
();
_invoiceTitle
.
on
(
'entityCreated'
,
function
()
{
_win
.
close
();
});
_win
.
on
(
'close'
,
function
()
{
_view
.
getStore
().
reload
();
});
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.Paying.Payment.Selector.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.Control.Kivii.Finances.Paying.Payment.Selector'
,
{
extend
:
'System.Control.EntitySelector'
,
entityType
:
'Kivii.Finances.Entities.Payment'
,
xtype
:
'App.Control.Kivii.Finances.Paying.Payment.Selector'
,
dataSource
:
'/Restful/Kivii.Finances.Entities.Payment/PayQuery.json'
,
filter
:
{},
selModel
:
false
,
store
:
{
autoLoad
:
true
,
pageSize
:
50
,
sorters
:
[{
property
:
'OperateTime'
,
direction
:
'DESC'
}]
},
tbar
:
[{
xtype
:
'searchField'
,
reference
:
'searchfield'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'PayerName'
,
emptyText
:
'模糊搜索付款单位'
}],
columnLines
:
true
,
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
false
},
items
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
,
resizable
:
false
},
{
text
:
'付款单位'
,
dataIndex
:
'PayerName'
,
width
:
210
},
{
text
:
'发生金额'
,
align
:
'right'
,
dataIndex
:
'Amount'
,
renderer
:
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
,
width
:
110
},
{
text
:
'可用金额'
,
align
:
'right'
,
dataIndex
:
'Amount'
,
renderer
:
'_renderAmount'
,
width
:
110
},
{
text
:
'开票金额'
,
align
:
'right'
,
dataIndex
:
'AmountInvoice'
,
renderer
:
'_renderAmountInvoice'
,
width
:
100
},{
xtype
:
'datecolumn'
,
text
:
'发生日期'
,
format
:
'Y-m-d'
,
dataIndex
:
'OperateTime'
,
width
:
100
},
{
text
:
'付款类型'
,
dataIndex
:
'Type'
,
renderer
:
'_renderType'
,
width
:
100
},{
text
:
'付款银行'
,
dataIndex
:
'PayerAccountName'
,
width
:
280
},
{
text
:
'付款账号'
,
dataIndex
:
'PayerAccountSerialNumber'
,
width
:
180
},
{
text
:
'摘要'
,
dataIndex
:
'Summary'
,
width
:
150
},
{
text
:
'备注'
,
dataIndex
:
'Remark'
,
flex
:
1
}]
},
setOwner
:
function
(
_entity
)
{
let
_view
=
this
;
let
_refs
=
_view
.
getReferences
();
let
_search
=
_refs
.
searchfield
;
_search
.
setValue
(
_entity
.
PayerName
);
let
_searchFilter
=
{};
_searchFilter
.
QueryKeys
=
_search
.
queryField
;
_searchFilter
.
QueryValues
=
_search
.
getRawValue
();
let
_fields
=
_view
.
query
(
'field[queryField]'
);
for
(
let
_i
in
_fields
)
{
_field
=
_fields
[
_i
];
if
(
_field
===
_view
)
continue
;
if
(
!
_field
.
queryField
)
continue
;
_value
=
_field
.
getRawValue
();
_searchFilter
[
_field
.
queryField
]
=
_value
;
}
_view
.
setSearchFilter
(
_searchFilter
);
// _view.setFilter({
// OwnerKvid:KiviiContext.CurrentMember.DepartmentKvid
// });
_view
.
reload
&&
_view
.
reload
();
},
controller
:
{
_renderType
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
_meta
.
style
=
'background-color:#B4EEB4'
;
if
(
_value
===
'UnBiz'
)
{
_meta
.
style
=
'background-color:#F0E68C'
;
return
'非业务'
;
}
if
(
_value
===
'Refund'
)
{
_meta
.
style
=
'background-color:#FFC0CB'
;
return
'退款'
;
}
if
(
_value
===
'Split'
)
{
return
'业务认领'
;
}
if
(
_value
===
'Pos'
)
{
return
'刷卡'
;
}
if
(
_value
===
'Cash'
)
{
return
'现金'
;
}
if
(
_value
===
'AliPay'
)
{
return
'支付宝'
;
}
if
(
_value
===
'WeChat'
)
{
return
'微信支付'
;
}
return
_value
;
},
_renderAmount
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
let
_canBeUsedAmount
=
_value
-
_record
.
data
.
AmountUsed
;
_meta
.
style
=
'background-color:#B4EEB4'
;
return
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
(
_canBeUsedAmount
);
},
_renderAmountInvoice
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
!==
_record
.
data
.
Amount
)
{
_meta
.
style
=
'background-color:#F0E68C'
;
}
return
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
(
_value
);
},
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.Payment.Accept.Form.js
0 → 100644
View file @
5ef2d2e1
Ext
.
define
(
'App.Control.Kivii.Finances.Payment.Accept.Form'
,
{
extend
:
'System.Control.EntityForm'
,
entityType
:
'Kivii.Finances.Entities.Payment'
,
xtype
:
'App.Control.Kivii.Finances.Payment.Accept.Form'
,
autoScroll
:
true
,
layout
:
'responsivecolumn'
,
defaults
:
{
xtype
:
'textfield'
,
labelWidth
:
60
,
labelAlign
:
'right'
,
responsiveCls
:
'big-50 small-100'
,
},
viewModel
:
{
data
:
{
ButtonText
:
'新增'
,
ButtonIcon
:
'x-fa fa-plus'
,
entity
:
{
Metadata
:
{},
Kvid
:
null
,
Type
:
null
,
OwnerType
:
'Organization'
,
PayeeName
:
KiviiContext
.
CurrentMember
.
OrganizationName
,
Currency
:
'CNY'
}
}
},
tbar
:
[
'->'
,
{
handler
:
'_onCreate'
,
bind
:
{
text
:
'{ButtonText}'
,
iconCls
:
'{ButtonIcon}'
,
disabled
:
'{!formIsValid}'
}
}],
items
:
[{
fieldLabel
:
'付款单位'
,
responsiveCls
:
'big-60 small-100'
,
allowBlank
:
false
,
bind
:
'{entity.PayerName}'
},
{
xtype
:
'numberfield'
,
fieldLabel
:
'发生金额'
,
emptyText
:
'请输入数字'
,
hideTrigger
:
true
,
responsiveCls
:
'big-40 small-100'
,
reference
:
'amount'
,
minValue
:
0
,
decimalPrecision
:
2
,
bind
:
{
value
:
'{entity.Amount}'
},
allowBlank
:
false
},
{
xtype
:
'datefield'
,
fieldLabel
:
'操作日期'
,
editable
:
false
,
allowBlank
:
false
,
responsiveCls
:
'big-60 small-100'
,
bind
:
'{entity.OperateTime}'
},
{
xtype
:
'combo'
,
fieldLabel
:
'类 型'
,
allowBlank
:
false
,
responsiveCls
:
'big-40 small-100'
,
queryMode
:
'local'
,
displayField
:
'name'
,
valueField
:
'type'
,
editable
:
false
,
reference
:
'PaymentType'
,
filterPickList
:
true
,
store
:
{
fields
:
[
'name'
,
'type'
],
data
:
[{
name
:
'银行到账'
,
type
:
'Bank'
},
{
name
:
'现金'
,
type
:
'Cash'
},
{
name
:
'刷卡'
,
type
:
'Pos'
}]
},
bind
:
'{entity.Type}'
},
{
fieldLabel
:
'付款账户'
,
responsiveCls
:
'big-60 small-100'
,
bind
:
'{entity.PayerAccountOwnerName}'
},{
fieldLabel
:
'银行卡号'
,
responsiveCls
:
'big-40 small-100'
,
bind
:
'{entity.PayerAccountSerialNumber}'
},{
fieldLabel
:
'付款银行'
,
responsiveCls
:
'big-60 small-100'
,
bind
:
'{entity.PayerAccountName}'
},{
xtype
:
'combo'
,
fieldLabel
:
'所属范围'
,
responsiveCls
:
'big-40 small-100'
,
queryMode
:
'local'
,
displayField
:
'name'
,
valueField
:
'type'
,
editable
:
false
,
reference
:
'OwnerType'
,
filterPickList
:
true
,
store
:
{
fields
:
[
'name'
,
'type'
],
data
:
[{
name
:
'当前组织'
,
type
:
'Organization'
},
{
name
:
'当前部门'
,
type
:
'Department'
},
{
name
:
'当前人员'
,
type
:
'Member'
}]
},
bind
:
'{entity.OwnerType}'
},{
fieldLabel
:
'摘 要'
,
responsiveCls
:
'big-100 small-100'
,
bind
:
'{entity.Summary}'
},
{
xtype
:
'textarea'
,
fieldLabel
:
'备 注'
,
responsiveCls
:
'big-100 small-100'
,
bind
:
'{entity.Remark}'
}],
setOwner
:
function
(
_entity
,
_ctrl
)
{
let
_view
=
this
;
let
_vm
=
_view
.
getViewModel
();
let
_refs
=
_view
.
getReferences
();
_refs
.
PaymentType
.
setReadOnly
(
true
);
_vm
.
set
(
'entity'
,
_entity
);
_vm
.
set
(
'ButtonText'
,
_ctrl
.
text
);
_vm
.
set
(
'ButtonIcon'
,
_ctrl
.
iconCls
);
},
controller
:
{
_onCreate
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_data
=
_vm
.
data
.
entity
;
if
(
_data
.
Type
===
null
)
return
;
_controller
.
_acceptData
(
_ctrl
,
_data
);
},
_acceptData
:
function
(
_ctrl
,
_item
){
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
_ctrl
.
setDisabled
(
true
);
Ext
.
Ajax
.
request
({
url
:
'/Restful/'
+
_view
.
entityType
+
'/Accept.json'
,
jsonData
:
{
Item
:
_item
,
OwnerType
:
_item
.
OwnerType
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
Ext
.
toast
(
"新增成功!"
);
_view
.
fireEvent
(
'entityCreated'
,
_view
,
_rtns
.
Results
);
_ctrl
.
setDisabled
(
false
);
},
failure
:
function
(
_response
)
{
Ext
.
toast
(
"新增失败!"
);
_ctrl
.
setDisabled
(
false
);
}
});
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.Payment.Filter.Form.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.Control.Kivii.Finances.Payment.Filter.Form'
,
{
extend
:
'System.Control.EntityForm'
,
entityType
:
'Kivii.Finances.Entities.Payment'
,
xtype
:
'App.Control.Kivii.Finances.Payment.Filter.Form'
,
autoScroll
:
true
,
layout
:
{
type
:
'responsivecolumn'
,
states
:
{
small
:
800
,
large
:
0
}
},
viewModel
:
{
data
:
{
Type
:
null
,
Amount
:
0
,
Kvids
:
[],
Kvid
:
null
,
ButtonText
:
null
,
ButtonIcon
:
null
},
formulas
:
{
amountChineseBig
:
function
(
get
)
{
let
_amount
=
get
(
'Amount'
);
return
KiviiContext
.
Const
.
FinancesFunctionsMoneyToChineseBig
(
_amount
);
}
}
},
tbar
:
[
'->'
,
{
iconAlign
:
'left'
,
handler
:
'_onSaveEntity'
,
bind
:
{
text
:
'{ButtonText}'
,
iconCls
:
'{ButtonIcon}'
,
disabled
:
'{!formIsValid}'
,
hidden
:
'{!ButtonText}'
}
}],
defaults
:
{
margin
:
'0 10 10 10'
,
labelWidth
:
60
,
labelAlign
:
'right'
,
xtype
:
'textfield'
},
items
:
[{
xtype
:
'numberfield'
,
fieldLabel
:
'认领金额'
,
emptyText
:
'请输入数字'
,
hideTrigger
:
true
,
responsiveCls
:
'big-100 small-100'
,
reference
:
'amount'
,
minValue
:
0
,
decimalPrecision
:
2
,
bind
:
{
value
:
'{Amount}'
},
allowBlank
:
false
},
{
xtype
:
'textfield'
,
responsiveCls
:
'big-100 small-100'
,
fieldLabel
:
'金额大写'
,
readOnly
:
true
,
bind
:
{
value
:
'{amountChineseBig}'
}
}],
setOwner
:
function
(
_entities
,
_ctrl
)
{
//_type针对 Refund(退款),Split(认领),UnBiz(非业务)
let
_view
=
this
;
let
_vm
=
_view
.
getViewModel
();
let
_refs
=
_view
.
getReferences
();
let
_type
=
_ctrl
.
type
;
if
(
_entities
.
length
<=
0
)
return
;
_vm
.
set
(
'ButtonText'
,
_ctrl
.
text
);
_vm
.
set
(
'ButtonIcon'
,
_ctrl
.
iconCls
);
if
(
_entities
.
length
>
1
)
{
_vm
.
set
(
'Type'
,
'Multi'
+
_type
);
_refs
.
amount
.
setReadOnly
(
true
);
let
_kvids
=
[];
let
_amount
=
0
;
for
(
let
_i
=
0
;
_i
<
_entities
.
length
;
_i
++
)
{
let
_item
=
_entities
[
_i
].
data
;
_kvids
.
push
(
_item
.
Kvid
);
_amount
+=
parseFloat
(
parseFloat
(
_item
.
Amount
-
_item
.
AmountSplited
).
toFixed
(
2
));
}
_vm
.
set
(
'Amount'
,
_amount
);
_vm
.
set
(
'Kvids'
,
_kvids
);
}
else
{
_vm
.
set
(
'Type'
,
_type
);
let
_item
=
_entities
[
0
].
data
;
let
_amount
=
parseFloat
(
parseFloat
(
_item
.
Amount
-
_item
.
AmountSplited
).
toFixed
(
2
));
_refs
.
amount
.
setMaxValue
(
_amount
);
_vm
.
set
(
'Amount'
,
_amount
);
_vm
.
set
(
'Kvid'
,
_item
.
Kvid
);
}
},
controller
:
{
_onSaveEntity
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_type
=
_vm
.
data
.
Type
;
if
(
_type
===
null
)
return
;
if
(
_vm
.
data
.
Amount
<=
0
){
Ext
.
toast
(
'无可操作金额!'
);
return
;
}
let
_jsonData
=
{};
if
(
_type
.
indexOf
(
'Multi'
)
!==
-
1
)
_jsonData
.
Kvids
=
_vm
.
data
.
Kvids
;
else
{
_jsonData
.
Amount
=
_vm
.
data
.
Amount
;
_jsonData
.
Kvid
=
_vm
.
data
.
Kvid
;
}
if
(
_jsonData
===
{})
return
;
_view
.
mask
(
'数据通讯中...'
);
let
_url
=
'/Restful/'
+
_view
.
entityType
+
'/'
+
_type
+
'.json'
;
// return;
Ext
.
Ajax
.
request
({
url
:
_url
,
jsonData
:
_jsonData
,
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
_view
.
unmask
();
Ext
.
toast
(
'操作成功!'
);
_view
.
fireEvent
(
'entitySplited'
,
_controller
,
_rtns
);
},
failure
:
function
(
_response
)
{
Ext
.
toast
(
'操作失败!'
);
_view
.
unmask
();
}
});
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.Payment.Offset.List.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.Control.Kivii.Finances.Payment.Offset.List'
,
{
extend
:
'System.Control.EntityList'
,
entityType
:
'Kivii.Finances.Entities.Payment'
,
xtype
:
'App.Control.Kivii.Finances.Payment.Offset.List'
,
dataSource
:
'/Restful/Kivii.Finances.Entities.Payment/OffsetQuery.json'
,
title
:
'作废流水'
,
iconCls
:
'x-fa fa-window-close-o'
,
filter
:
{
OperateTimeGreaterThanOrEqualTo
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
1
),
OperateTimeLessThan
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
new
Date
().
getDate
()
+
1
)
},
viewModel
:
{
data
:
{
_selection
:
null
}
},
bind
:
{
selection
:
'{_selection}'
},
store
:
{
autoLoad
:
true
,
pageSize
:
800
,
sorters
:
[{
property
:
'OperateTime'
,
direction
:
'DESC'
}]
},
selModel
:
{
selType
:
'checkboxmodel'
,
checkboxSelect
:
true
,
pruneRemoved
:
false
,
extensible
:
'y'
},
features
:
[{
ftype
:
'summary'
}],
dockedItems
:
[{
xtype
:
'pagingtoolbar'
,
dock
:
'bottom'
,
displayInfo
:
true
,
items
:
[{
xtype
:
'button'
,
labelWidth
:
60
,
iconCls
:
'x-fa fa-check-square-o'
,
bind
:
{
text
:
'已选择{selectionCount}条记录,点击清除'
,
hidden
:
'{selectionCount==0}'
},
handler
:
'_onClearSelections'
}]
},
{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'menu'
,
items
:
[{
xtype
:
'datefield'
,
fieldLabel
:
'时间范围 开始'
,
format
:
'Y-m-d'
,
labelWidth
:
90
,
reference
:
'startTime'
,
editable
:
false
,
value
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
1
),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'结束'
,
format
:
'Y-m-d'
,
labelWidth
:
30
,
reference
:
'endTime'
,
editable
:
false
,
value
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
new
Date
().
getDate
()
+
1
),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'SerialNumber,PayerName,PayerAccountName,PayerAccountSerialNumber'
,
// queryField: 'Amount',
emptyText
:
'模糊搜索流水号、付款单位、收付款账号或名称'
,
},
{
text
:
'撤销作废'
,
iconCls
:
'x-fa fa-arrow-circle-left'
,
handler
:
'_onOffsetCancel'
,
bind
:
{
disabled
:
'{!_selection}'
}
}
]
}],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
true
},
items
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
,
resizable
:
false
},
{
text
:
'流水号'
,
dataIndex
:
'SerialNumber'
,
width
:
120
},
{
text
:
'付款单位'
,
dataIndex
:
'PayerName'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
'合计 ¥'
;
},
width
:
220
},
{
text
:
'发生金额'
,
align
:
'right'
,
dataIndex
:
'Amount'
,
renderer
:
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
},
width
:
110
},
{
text
:
'开票金额'
,
align
:
'right'
,
dataIndex
:
'AmountInvoice'
,
renderer
:
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
},
width
:
100
},
{
text
:
'摘要'
,
dataIndex
:
'Summary'
,
width
:
150
},
{
xtype
:
'datecolumn'
,
text
:
'发生日期'
,
format
:
'Y-m-d H:i'
,
dataIndex
:
'OperateTime'
,
width
:
150
},
{
text
:
'付款银行'
,
dataIndex
:
'PayerAccountName'
,
width
:
280
},
{
text
:
'付款账号'
,
dataIndex
:
'PayerAccountSerialNumber'
,
width
:
180
},
{
text
:
'付款类型'
,
dataIndex
:
'Type'
,
renderer
:
'_renderType'
,
width
:
100
},
{
text
:
'备注'
,
dataIndex
:
'Remark'
,
flex
:
1
}]
},
listeners
:
{
activate
:
'_onActivate'
},
controller
:
{
_onClearSelections
:
function
()
{
this
.
getView
().
clearSelections
();
},
_onActivate
:
function
(
_ctrl
,
_eOpts
)
{
this
.
getView
().
reload
();
},
_renderType
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
'Cash'
)
{
return
'现金'
;
}
if
(
_value
===
'Pos'
)
{
return
'刷卡'
;
}
if
(
_value
===
'AliPay'
)
{
return
'支付宝'
;
}
if
(
_value
===
'WeChat'
)
{
return
'微信'
;
}
if
(
_value
===
'Bank'
)
{
return
'银行转账'
;
}
return
_value
;
},
_onSelectMonth
:
function
(
_ctrl
,
_time
,
_eOpts
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_refs
=
_controller
.
getReferences
();
let
_startTime
=
_refs
.
startTime
.
value
;
let
_endTime
=
_refs
.
endTime
.
value
||
new
Date
();
if
(
_startTime
===
null
)
{
Ext
.
toast
(
"请选择开始时间!"
);
return
;
}
if
(
_startTime
>
_endTime
)
{
Ext
.
toast
(
"开始日期不能大于结束日期!"
);
return
;
}
delete
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
;
delete
_view
.
filter
.
OperateTimeLessThan
;
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
=
new
Date
(
_startTime
.
getFullYear
(),
_startTime
.
getMonth
(),
_startTime
.
getDate
());
_view
.
filter
.
OperateTimeLessThan
=
new
Date
(
_endTime
.
getFullYear
(),
_endTime
.
getMonth
(),
_endTime
.
getDate
()
+
1
);
_view
.
reload
();
},
_onOffsetCancel
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_selecteds
=
_vm
.
data
.
selections
||
[];
if
(
!
_view
.
selection
)
return
;
if
(
_selecteds
.
length
<=
0
)
return
;
let
_msg
=
Ext
.
create
(
'Ext.window.MessageBox'
,
{
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
closeAction
:
'destroy'
});
_msg
.
confirm
(
_ctrl
.
text
,
'您确认要撤销选中的'
+
_selecteds
.
length
+
'条记录?'
,
_controller
.
_offsetPayments
,
_controller
);
return
;
},
_offsetPayments
:
function
(
_optional
){
if
(
_optional
!==
'yes'
)
return
;
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_selecteds
=
_vm
.
data
.
selections
||
[];
if
(
!
_view
.
selection
)
return
;
if
(
_selecteds
.
length
<=
0
)
return
;
let
_kvids
=
[];
for
(
let
_i
=
0
;
_i
<
_selecteds
.
length
;
_i
++
)
{
_kvids
.
push
(
_selecteds
[
_i
].
data
.
Kvid
);
}
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.Payment/OffsetCancel.json'
,
jsonData
:
{
Kvids
:
_kvids
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
Ext
.
toast
(
'撤销作废成功!'
);
_view
.
reload
();
},
failure
:
function
(
_response
)
{
_me
.
unmask
();
}
});
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.Payment.Transfer.Form.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.Control.Kivii.Finances.Payment.Transfer.Form'
,
{
extend
:
'System.Control.EntityForm'
,
entityType
:
'Kivii.Finances.Entities.Payment'
,
xtype
:
'App.Control.Kivii.Finances.Payment.Transfer.Form'
,
autoScroll
:
true
,
layout
:
{
type
:
'responsivecolumn'
,
states
:
{
small
:
800
,
large
:
0
}
},
viewModel
:
{
data
:
{
owner
:
{},
Type
:
null
,
Amount
:
0
,
PaymentKvid
:
null
,
AccountName
:
''
,
AccountKvid
:
null
,
Remark
:
''
,
ButtonText
:
null
,
ButtonIcon
:
null
},
formulas
:
{
amountChineseBig
:
function
(
get
)
{
let
_amount
=
get
(
'Amount'
);
return
KiviiContext
.
Const
.
FinancesFunctionsMoneyToChineseBig
(
_amount
);
}
}
},
tbar
:
[{
margin
:
'0 3 -10 3'
,
xtype
:
'displayfield'
,
bind
:{
value
:
'<p style="color:red">当前要充值的到账类型为:{Type}</p>'
},
fieldStyle
:
{
fontSize
:
'18px'
}
},
'->'
,
{
iconAlign
:
'left'
,
handler
:
'_onSaveEntity'
,
bind
:
{
text
:
'{ButtonText}'
,
iconCls
:
'{ButtonIcon}'
,
disabled
:
'{!formIsValid}'
,
hidden
:
'{!ButtonText}'
}
}],
defaults
:
{
margin
:
'0 10 10 10'
,
labelWidth
:
60
,
labelAlign
:
'right'
,
xtype
:
'textfield'
},
items
:
[{
xtype
:
'textfield'
,
fieldLabel
:
'充值账户'
,
editable
:
false
,
allowBlank
:
false
,
reference
:
'Account'
,
responsiveCls
:
'big-100 small-100'
,
triggers
:
{
_selector
:
{
cls
:
'x-fa fa-ellipsis-h'
,
hideOnReadOnly
:
false
,
handler
:
'_onSelectorTriggerClick'
}
},
bind
:
{
value
:
'{AccountName}'
}
},
{
xtype
:
'numberfield'
,
fieldLabel
:
'充值金额'
,
emptyText
:
'请输入数字'
,
hideTrigger
:
true
,
responsiveCls
:
'big-100 small-100'
,
reference
:
'amount'
,
minValue
:
0
,
decimalPrecision
:
2
,
bind
:
{
value
:
'{Amount}'
},
allowBlank
:
false
},
{
xtype
:
'textfield'
,
responsiveCls
:
'big-100 small-100'
,
fieldLabel
:
'金额大写'
,
readOnly
:
true
,
bind
:
{
value
:
'{amountChineseBig}'
}
},
{
xtype
:
'textarea'
,
fieldLabel
:
'备 注'
,
responsiveCls
:
'big-100 small-100'
,
bind
:
'{Remark}'
}],
setOwner
:
function
(
_entity
,
_ctrl
)
{
let
_view
=
this
;
let
_vm
=
_view
.
getViewModel
();
let
_refs
=
_view
.
getReferences
();
_vm
.
set
(
'ButtonText'
,
_ctrl
.
text
);
_vm
.
set
(
'ButtonIcon'
,
_ctrl
.
iconCls
);
let
_amount
=
parseFloat
(
parseFloat
(
_entity
.
Amount
-
_entity
.
AmountUsed
).
toFixed
(
2
));
_refs
.
amount
.
setMaxValue
(
_amount
);
_vm
.
set
(
'Amount'
,
_amount
);
_vm
.
set
(
'PaymentKvid'
,
_entity
.
Kvid
);
_vm
.
set
(
'owner'
,
_entity
);
_vm
.
set
(
'Type'
,
'储值充值'
);
if
(
_entity
.
Type
===
"UnBiz"
)
_vm
.
set
(
'Type'
,
'非业务'
);
if
(
_entity
.
Type
===
"Refund"
)
_vm
.
set
(
'Type'
,
'退款'
);
},
controller
:
{
_onSelectorTriggerClick
:
function
(
_ctrl
,
_trigger
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Transfer.Account.Selector'
);
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
'选择充值目标账户...'
,
iconCls
:
'x-fa fa-users'
,
iconAlign
:
'left'
,
autoScroll
:
true
,
width
:
700
,
height
:
400
,
modal
:
true
,
resizable
:
false
,
items
:
[
_form
]
});
_form
.
setOwner
(
_vm
.
data
.
owner
);
_win
.
show
();
_form
.
on
(
'entitySelected'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
_vm
.
set
(
'AccountKvid'
,
_entity
[
0
].
Kvid
);
_vm
.
set
(
'AccountName'
,
_entity
[
0
].
Name
);
});
},
_onSaveEntity
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
if
(
_vm
.
data
.
Amount
<=
0
)
{
Ext
.
toast
(
'无可操作金额!'
);
return
;
}
let
_jsonData
=
{};
_jsonData
.
Amount
=
_vm
.
data
.
Amount
;
_jsonData
.
PaymentKvid
=
_vm
.
data
.
PaymentKvid
;
_jsonData
.
AccountKvid
=
_vm
.
data
.
AccountKvid
;
_jsonData
.
Remark
=
_vm
.
data
.
Remark
;
if
(
_jsonData
===
{})
return
;
_view
.
mask
(
'数据通讯中...'
);
let
_url
=
'/Restful/'
+
_view
.
entityType
+
'/Transfer.json'
;
// return;
Ext
.
Ajax
.
request
({
url
:
_url
,
jsonData
:
_jsonData
,
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
_view
.
unmask
();
Ext
.
toast
(
'操作成功!'
);
_view
.
fireEvent
(
'entityTransfer'
,
_controller
,
_rtns
);
},
failure
:
function
(
_response
)
{
_view
.
unmask
();
Ext
.
toast
(
'操作失败!'
);
}
});
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.Payment.Used.List.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.Control.Kivii.Finances.Payment.Used.List'
,
{
extend
:
'System.Control.EntityList'
,
entityType
:
'Kivii.Finances.Entities.Payment'
,
xtype
:
'App.Control.Kivii.Finances.Payment.Used.List'
,
dataSource
:
'/Restful/Kivii.Finances.Entities.Payment/UsedQuery.json'
,
title
:
'使用记录'
,
iconCls
:
'x-fa fa-sign-in'
,
filter
:
{
AmountNotEqualTo
:
0
,
OperateTimeGreaterThanOrEqualTo
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
1
),
OperateTimeLessThan
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
new
Date
().
getDate
()
+
1
)
},
viewModel
:
{
data
:
{
_selection
:
null
}
},
bind
:
{
selection
:
'{_selection}'
},
store
:
{
autoLoad
:
true
,
pageSize
:
800
,
sorters
:
[{
property
:
'OperateTime'
,
direction
:
'DESC'
}]
},
selModel
:
{
selType
:
'checkboxmodel'
,
checkboxSelect
:
true
,
pruneRemoved
:
false
,
extensible
:
'y'
},
features
:
[{
ftype
:
'summary'
}],
dockedItems
:
[{
xtype
:
'pagingtoolbar'
,
dock
:
'bottom'
,
displayInfo
:
true
,
items
:
[{
xtype
:
'button'
,
labelWidth
:
60
,
iconCls
:
'x-fa fa-check-square-o'
,
bind
:
{
text
:
'已选择{selectionCount}条记录,点击清除'
,
hidden
:
'{selectionCount==0}'
},
handler
:
'_onClearSelections'
}]
},
{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'menu'
,
items
:
[{
xtype
:
'datefield'
,
fieldLabel
:
'时间范围 开始'
,
format
:
'Y-m-d'
,
labelWidth
:
90
,
reference
:
'startTime'
,
editable
:
false
,
value
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
1
),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'结束'
,
format
:
'Y-m-d'
,
labelWidth
:
30
,
reference
:
'endTime'
,
editable
:
false
,
value
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
new
Date
().
getDate
()
+
1
),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'SerialNumber,PayerName,PayeeName,PayeeAccountName,PayeeAccountOwnerName,PayeeAccountSerialNumber'
,
// queryField: 'Amount',
emptyText
:
'模糊搜索流水号、付款单位、充值账户名、充值账号或名称'
,
},
{
text
:
'充值撤销'
,
iconCls
:
'x-fa fa-sign-out'
,
handler
:
'_onTransferCancel'
,
bind
:
{
disabled
:
'{!_selection}'
}
}
]
}],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
true
},
items
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
,
resizable
:
false
},
{
text
:
'流水号'
,
dataIndex
:
'SerialNumber'
,
width
:
120
},
{
text
:
'付款单位'
,
dataIndex
:
'PayerName'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
'合计 ¥'
;
},
width
:
220
},
{
text
:
'发生金额'
,
align
:
'right'
,
dataIndex
:
'Amount'
,
renderer
:
'_renderAmount'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
},
width
:
110
},
{
text
:
'类型'
,
dataIndex
:
'Type'
,
renderer
:
'_renderType'
,
width
:
100
},
{
text
:
'摘要'
,
dataIndex
:
'Summary'
,
width
:
150
},
{
xtype
:
'datecolumn'
,
text
:
'发生日期'
,
format
:
'Y-m-d H:i'
,
dataIndex
:
'OperateTime'
,
width
:
150
},
{
text
:
'充值账户'
,
dataIndex
:
'PayeeAccountName'
,
width
:
280
},
{
text
:
'账户所属'
,
dataIndex
:
'PayeeAccountOwnerName'
,
width
:
150
},{
text
:
'充值账号'
,
dataIndex
:
'PayeeAccountSerialNumber'
,
width
:
180
},
{
text
:
'备注'
,
dataIndex
:
'Remark'
,
flex
:
1
}]
},
listeners
:
{
activate
:
'_onActivate'
},
setOwner
:
function
(
_owner
,
_ctrl
)
{
let
_view
=
this
;
if
(
_view
.
filter
===
null
)
_view
.
setFilter
({
AmountNotEqualTo
:
0
});
_view
.
filter
.
ParentKvid
=
_owner
.
Kvid
;
_view
.
reload
();
},
controller
:
{
_onClearSelections
:
function
()
{
this
.
getView
().
clearSelections
();
},
_onActivate
:
function
(
_ctrl
,
_eOpts
)
{
this
.
getView
().
reload
();
},
_renderAmount
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_record
.
data
.
hasOwnProperty
(
'OffsetKvid'
)
&&
_record
.
data
.
OffsetKvid
!==
null
)
_meta
.
style
=
'background-color:#FF0000'
;
return
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
(
_value
);
},
_renderType
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
'Transfer'
)
{
return
'充值'
;
}
if
(
_value
===
'DynamicPay'
)
{
return
'收款登记'
;
}
return
_value
;
},
_onSelectMonth
:
function
(
_ctrl
,
_time
,
_eOpts
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_refs
=
_controller
.
getReferences
();
let
_startTime
=
_refs
.
startTime
.
value
;
let
_endTime
=
_refs
.
endTime
.
value
||
new
Date
();
if
(
_startTime
===
null
)
{
Ext
.
toast
(
"请选择开始时间!"
);
return
;
}
if
(
_startTime
>
_endTime
)
{
Ext
.
toast
(
"开始日期不能大于结束日期!"
);
return
;
}
delete
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
;
delete
_view
.
filter
.
OperateTimeLessThan
;
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
=
new
Date
(
_startTime
.
getFullYear
(),
_startTime
.
getMonth
(),
_startTime
.
getDate
());
_view
.
filter
.
OperateTimeLessThan
=
new
Date
(
_endTime
.
getFullYear
(),
_endTime
.
getMonth
(),
_endTime
.
getDate
()
+
1
);
_view
.
reload
();
},
_onTransferCancel
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_selecteds
=
_vm
.
data
.
selections
||
[];
if
(
!
_view
.
selection
)
return
;
if
(
_selecteds
.
length
<=
0
)
return
;
let
_msg
=
Ext
.
create
(
'Ext.window.MessageBox'
,
{
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
closeAction
:
'destroy'
});
_msg
.
confirm
(
_ctrl
.
text
,
'您确认要撤销选中的'
+
_selecteds
.
length
+
'条记录?'
,
_controller
.
_offsetPayments
,
_controller
);
return
;
},
_offsetPayments
:
function
(
_optional
)
{
if
(
_optional
!==
'yes'
)
return
;
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_selecteds
=
_vm
.
data
.
selections
||
[];
if
(
!
_view
.
selection
)
return
;
if
(
_selecteds
.
length
<=
0
)
return
;
let
_kvids
=
[];
for
(
let
_i
=
0
;
_i
<
_selecteds
.
length
;
_i
++
)
{
if
(
_selecteds
[
_i
].
data
.
Type
===
"DynamicPay"
)
continue
;
if
(
_selecteds
[
_i
].
data
.
hasOwnProperty
(
'OffsetKvid'
)
&&
_selecteds
[
_i
].
data
.
OffsetKvid
!==
null
)
continue
;
_kvids
.
push
(
_selecteds
[
_i
].
data
.
Kvid
);
}
if
(
_kvids
.
length
<=
0
){
Ext
.
toast
(
"无符合撤销的数据,请重新选择!"
);
return
;
}
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.Payment/TransferCancel.json'
,
jsonData
:
{
PaymentKvids
:
_kvids
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
Ext
.
toast
(
'撤销成功!'
);
_view
.
reload
();
},
failure
:
function
(
_response
)
{
_me
.
unmask
();
}
});
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.Settlement.Biz.Report.Selector.js
0 → 100644
View file @
5ef2d2e1
Ext
.
define
(
'App.Control.Kivii.Finances.Settlement.Biz.Report.Selector'
,
{
extend
:
'System.Control.EntitySelector'
,
// entityType:'Kivii.Customers.Entities.Customer',
xtype
:
'App.Control.Kivii.Finances.Settlement.Biz.Report.Selector'
,
dataSource
:
'/Restful/Njzj.Connects.Entities.NjzjReport/Query.json'
,
filter
:
{},
selModel
:
false
,
store
:
{
autoLoad
:
true
},
tbar
:
[{
xtype
:
'datefield'
,
fieldLabel
:
'时间范围 开始'
,
format
:
'Y-m-d'
,
labelWidth
:
90
,
reference
:
'startTime'
,
editable
:
false
,
triggers
:
{
clear
:
{
weight
:
2
,
cls
:
'x-fa fa-times'
,
handler
:
'_cleanBeginOperateTime'
}
},
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'结束'
,
format
:
'Y-m-d'
,
labelWidth
:
30
,
reference
:
'endTime'
,
editable
:
false
,
triggers
:
{
clear
:
{
weight
:
2
,
cls
:
'x-fa fa-times'
,
handler
:
'_cleanEndOperateTime'
}
},
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
''
,
emptyText
:
'模糊搜索报告号'
}
],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
false
},
items
:
[{
text
:
'序号'
,
dataIndex
:
'RN'
,
width
:
50
},
{
dataIndex
:
'NAME'
,
text
:
'Name'
,
width
:
120
},
{
dataIndex
:
'FOLDERNO'
,
text
:
'Folderno'
,
width
:
100
},
{
dataIndex
:
'COMPNAME'
,
text
:
'Compname'
,
width
:
150
},
{
dataIndex
:
'SAMPLENAME'
,
text
:
'Samplename'
,
width
:
120
},{
dataIndex
:
'TOTALPRICE'
,
text
:
'TotalPrice'
,
width
:
100
},
{
dataIndex
:
'LOGDATE'
,
text
:
'logDate'
,
width
:
100
},
{
dataIndex
:
'COMPANYNAME'
,
text
:
'Companyname'
,
width
:
150
},
{
dataIndex
:
'NAMEOFPRODUCTIONORG'
,
text
:
'Nameofproductionorg'
,
width
:
120
},
{
dataIndex
:
'TESTTASKNOFORCCC'
,
text
:
'Testtasknoforcc'
,
flex
:
1
}]
},
controller
:{
_onSelectMonth
:
function
(
_ctrl
,
_time
,
_eOpts
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_refs
=
_controller
.
getReferences
();
let
_startTime
=
_refs
.
startTime
.
value
;
let
_endTime
=
_refs
.
endTime
.
value
||
new
Date
();
if
(
_startTime
===
null
)
{
Ext
.
toast
(
"请选择开始时间!"
);
return
;
}
if
(
_startTime
>
_endTime
)
{
Ext
.
toast
(
"开始日期不能大于结束日期!"
);
return
;
}
delete
_view
.
filter
.
BeginTime
;
delete
_view
.
filter
.
EndTime
;
_view
.
filter
.
BeginTime
=
new
Date
(
_startTime
.
getFullYear
(),
_startTime
.
getMonth
(),
_startTime
.
getDate
());
_view
.
filter
.
EndTime
=
new
Date
(
_endTime
.
getFullYear
(),
_endTime
.
getMonth
(),
_endTime
.
getDate
()
+
1
);
_view
.
reload
();
},
_cleanBeginOperateTime
:
function
(
_ctrl
)
{
_ctrl
.
setValue
(
null
);
let
_me
=
this
;
let
_view
=
_me
.
getView
();
if
(
_view
.
filter
===
null
)
_view
.
setFilter
({});
delete
_view
.
filter
.
BeginTime
;
_view
.
reload
();
},
_cleanEndOperateTime
:
function
(
_ctrl
)
{
_ctrl
.
setValue
(
null
);
let
_me
=
this
;
let
_view
=
_me
.
getView
();
if
(
_view
.
filter
===
null
)
_view
.
setFilter
({});
delete
_view
.
filter
.
EndTime
;
_view
.
reload
();
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.Settlement.Customer.Create.Form.js
0 → 100644
View file @
5ef2d2e1
Ext
.
define
(
'App.Control.Kivii.Finances.Settlement.Customer.Create.Form'
,
{
extend
:
'System.Control.EntityForm'
,
//注意先后顺序,先requires,再extend
xtype
:
'App.Control.Kivii.Finances.Settlement.Customer.Create.Form'
,
entityType
:
'Kivii.Customers.Entities.Customer'
,
layout
:
{
type
:
'responsivecolumn'
,
// states: {
// small: 600,
// large: 0
// }
},
defaults
:
{
labelWidth
:
60
},
autoScroll
:
true
,
tbar
:
[
'->'
,
{
text
:
'保存'
,
iconCls
:
'x-fa fa-save'
,
iconAlign
:
'left'
,
handler
:
'_onSaveEntity'
,
bind
:
{
disabled
:
'{!formIsValid}'
}
}],
items
:
[{
xtype
:
'textfield'
,
responsiveCls
:
'big-100 small-100'
,
bind
:
{
value
:
'{entity.FullName}'
,
readOnly
:
'{entity.Kvid}'
},
fieldLabel
:
'客户全称'
,
allowBlank
:
false
},
{
xtype
:
'textarea'
,
responsiveCls
:
'big-100 small-100'
,
bind
:
'{entity.Remark}'
,
fieldLabel
:
'备注信息'
,
// minWidth:600
}],
controller
:
{
_onSaveEntity
:
function
(
_ctrl
)
{
this
.
getView
().
saveEntity
();
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.Settlement.Customer.Selector.js
0 → 100644
View file @
5ef2d2e1
Ext
.
define
(
'App.Control.Kivii.Finances.Settlement.Customer.Selector'
,
{
extend
:
'System.Control.EntitySelector'
,
entityType
:
'Kivii.Customers.Entities.Customer'
,
xtype
:
'App.Control.Kivii.Finances.Settlement.Customer.Selector'
,
filter
:{},
selModel
:
false
,
store
:{
autoLoad
:
true
},
tbar
:[{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'FullName,Mobilephone,Email,WebSite'
,
emptyText
:
'模糊搜索客户信息'
},{
text
:
'快速添加'
,
iconCls
:
'x-fa fa-plus'
,
iconAlign
:
'left'
,
handler
:
'_onCreateCustomer'
}],
columns
:
[{
xtype
:
'rownumberer'
},{
text
:
'客户名称'
,
dataIndex
:
'FullName'
,
width
:
180
},{
text
:
'备注'
,
dataIndex
:
'Remark'
,
flex
:
1
}],
controller
:
{
_onCreateCustomer
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_customer
=
Ext
.
create
(
'App.Control.Kivii.Finances.Settlement.Customer.Create.Form'
,{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
//'x-fa fa-user',
iconAlign
:
'left'
,
autoScroll
:
true
,
width
:
600
,
height
:
250
,
modal
:
true
,
resizable
:
false
,
items
:
[
_customer
]
});
_win
.
show
();
_customer
.
on
(
'entityCreated'
,
function
()
{
_win
.
close
();
});
_win
.
on
(
'close'
,
function
()
{
_view
.
reload
();
});
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.Settlement.Form.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.Control.Kivii.Finances.Settlement.Form'
,
{
extend
:
'System.Control.EntityForm'
,
xtype
:
'App.Control.Kivii.Finances.Settlement.Form'
,
entityType
:
'Kivii.Finances.Entities.Settlement'
,
scrollable
:
true
,
layout
:
{
type
:
'responsivecolumn'
,
states
:
{
small
:
600
,
large
:
0
}
},
title
:
'结算管理'
,
iconCls
:
'x-fa fa-newspaper-o'
,
viewModel
:
{
data
:
{
entity
:
{
Metadata
:
{},
Kvid
:
null
,
OffsetKvid
:
null
,
BizId
:
''
,
Amount
:
0
,
AmountPlan
:
0
,
AmountPayment
:
0
,
OwnerName
:
KiviiContext
.
CurrentMember
.
DepartmentName
,
OwnerKvid
:
KiviiContext
.
CurrentMember
.
DepartmentKvid
,
OperateTime
:
new
Date
(),
PayeeKvid
:
KiviiContext
.
CurrentMember
.
OrganizationKvid
,
PayeeName
:
KiviiContext
.
CurrentMember
.
OrganizationName
,
OperatorName
:
KiviiContext
.
CurrentMember
.
FullName
,
OperatorKvid
:
KiviiContext
.
CurrentMember
.
Kvid
,
Currency
:
'CNY'
,
Details
:
[]
}
},
formulas
:
{
amountChineseBig
:
function
(
get
)
{
let
_amount
=
get
(
'entity.Amount'
);
return
KiviiContext
.
Const
.
FinancesFunctionsMoneyToChineseBig
(
_amount
);
},
hiddenDelete
:
function
(
get
){
let
_kvid
=
get
(
'entity.Kvid'
);
let
_offsetKvid
=
get
(
'entity.OffsetKvid'
);
let
_amount
=
get
(
'entity.Amount'
);
let
_amountPayment
=
get
(
'entity.AmountPayment'
);
if
(
_kvid
===
null
)
return
true
;
if
(
_offsetKvid
!==
null
)
return
true
;
if
(
_amountPayment
<=
0
)
return
false
;
return
true
;
},
hiddenOffset
:
function
(
get
){
let
_kvid
=
get
(
'entity.Kvid'
);
let
_offsetKvid
=
get
(
'entity.OffsetKvid'
);
let
_amount
=
get
(
'entity.Amount'
);
let
_amountPayment
=
get
(
'entity.AmountPayment'
);
if
(
_kvid
===
null
)
return
true
;
if
(
_offsetKvid
!==
null
)
return
true
;
if
(
_amount
===
_amountPayment
)
return
false
;
return
true
;
},
description
:
function
(
get
)
{
let
_offsetKvid
=
get
(
'entity.OffsetKvid'
);
let
_bizId
=
get
(
'entity.BizId'
);
let
_amount
=
get
(
'entity.Amount'
);
let
_amountPayment
=
get
(
'entity.AmountPayment'
);
let
_description
=
''
;
if
(
_amount
===
_amountPayment
)
_description
=
'<div><p style="color:#B4EEB4">所属业务:'
+
_bizId
+
'</p>'
;
else
_description
=
'<div><p style="color:#F0E68C">所属业务:'
+
_bizId
+
'</p>'
;
if
(
_offsetKvid
!==
null
)
_description
+=
' <p style="color:#FF0000">当前结算已作废!</p></div>'
;
else
_description
+=
'</div>'
;
return
_description
;
}
}
},
dockedItems
:
[{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'menu'
,
items
:
[{
margin
:
'0 3 -10 3'
,
xtype
:
'displayfield'
,
bind
:
{
value
:
'{description}'
},
fieldStyle
:
{
fontSize
:
'20px'
}
},
'->'
,
{
text
:
'结算'
,
iconCls
:
'x-fa fa-link'
,
iconAlign
:
'left'
,
handler
:
'_onSaveEntity'
,
bind
:
{
disabled
:
'{!formIsValid}'
,
hidden
:
'{entity.Kvid}'
}
},
{
text
:
'删除'
,
iconCls
:
'x-fa fa-trash-o'
,
iconAlign
:
'left'
,
handler
:
'_onDeleteEntity'
,
bind
:
{
disabled
:
'{!formIsValid}'
,
hidden
:
'{hiddenDelete}'
}
},
{
text
:
'作废'
,
iconCls
:
'x-fa fa-trash'
,
iconAlign
:
'left'
,
handler
:
'_onOffsetEntity'
,
bind
:
{
disabled
:
'{!formIsValid}'
,
hidden
:
'{hiddenOffset}'
}
}]
}],
defaults
:
{
xtype
:
'textfield'
,
labelWidth
:
60
,
labelAlign
:
'right'
,
responsiveCls
:
'big-50 small-100'
},
items
:
[{
fieldLabel
:
'所属部门'
,
responsiveCls
:
'big-60 small-100'
,
allowBlank
:
false
,
readOnly
:
true
,
bind
:
'{entity.OwnerName}'
},
{
xtype
:
'windowSelector'
,
fieldLabel
:
'所属业务'
,
editable
:
true
,
allowBlank
:
false
,
keyField
:
'FOLDERNO'
,
valueField
:
'NAME'
,
window
:
{
type
:
'App.Control.Kivii.Finances.Settlement.Biz.Report.Selector'
},
reference
:
'BizId'
,
responsiveCls
:
'big-40 small-100'
,
bind
:
{
key
:
'{entity.FOLDERNO}'
,
value
:
'{entity.BizId}'
,
readOnly
:
'{entity.Kvid}'
},
listeners
:
{
entitySelected
:
'_selectBiz'
// entityCleared: '_clearBiz'
}
},
{
xtype
:
'categoryField'
,
fieldLabel
:
'结算类型'
,
allowBlank
:
false
,
responsiveCls
:
'big-30 small-100'
,
internalCode
:
'Type'
,
bind
:
{
value
:
'{entity.Type}'
,
readOnly
:
'{entity.Kvid}'
}
},
{
xtype
:
'datefield'
,
format
:
'Y-m-d'
,
altFormats
:
'D, d M Y H:i:s T|c|Y-m-d|Y-m-d H:i|Y/n/j'
,
fieldLabel
:
'操作日期'
,
editable
:
false
,
responsiveCls
:
'big-30 small-100'
,
allowBlank
:
false
,
bind
:
{
value
:
'{entity.OperateTime}'
,
readOnly
:
'{entity.Kvid}'
}
},
{
fieldLabel
:
'流 水 号'
,
responsiveCls
:
'big-40 small-100'
,
bind
:
{
value
:
'{entity.SerialNumber}'
,
readOnly
:
'{entity.Kvid}'
}
},
{
xtype
:
'windowSelector'
,
fieldLabel
:
'付款单位'
,
responsiveCls
:
'big-60 small-100'
,
editable
:
true
,
keyField
:
'Kvid'
,
valueField
:
'FullName'
,
window
:
{
type
:
'App.Control.Kivii.Finances.Settlement.Customer.Selector'
},
allowBlank
:
false
,
bind
:
{
key
:
'{entity.PayerKvid}'
,
value
:
'{entity.PayerName}'
,
readOnly
:
'{entity.Kvid}'
}
},
{
xtype
:
'windowSelector'
,
fieldLabel
:
'收款单位'
,
responsiveCls
:
'big-40 small-100'
,
readOnly
:
true
,
editable
:
false
,
keyField
:
'Kvid'
,
valueField
:
'FullName'
,
window
:
{
type
:
'App.Control.Kivii.Finances.Settlement.Customer.Selector'
},
allowBlank
:
false
,
bind
:
{
key
:
'{entity.PayeeKvid}'
,
value
:
'{entity.PayeeName}'
}
},
{
xtype
:
'numberfield'
,
fieldLabel
:
'结算原价'
,
hideTrigger
:
true
,
minValue
:
0
,
responsiveCls
:
'big-30 small-100'
,
step
:
0.1
,
allowBlank
:
false
,
readOnly
:
true
,
bind
:
{
value
:
'{entity.AmountPlan}'
}
},
{
xtype
:
'numberfield'
,
fieldLabel
:
'折 后 价'
,
hideTrigger
:
true
,
minValue
:
0
,
responsiveCls
:
'big-30 small-100'
,
step
:
0.1
,
allowBlank
:
false
,
readOnly
:
true
,
bind
:
{
value
:
'{entity.Amount}'
}
},
{
xtype
:
'numberfield'
,
fieldLabel
:
'已收款额'
,
hideTrigger
:
true
,
minValue
:
0
,
responsiveCls
:
'big-20 small-100'
,
step
:
0.1
,
allowBlank
:
false
,
readOnly
:
true
,
bind
:
{
value
:
'{entity.AmountPayment}'
}
},
{
xtype
:
'categoryField'
,
fieldLabel
:
'货币单位'
,
allowBlank
:
false
,
responsiveCls
:
'big-20 small-100'
,
internalCode
:
'Currency'
,
bind
:
{
value
:
'{entity.Currency}'
,
readOnly
:
'{entity.Kvid}'
}
},
{
responsiveCls
:
'big-60 small-100'
,
fieldLabel
:
'金额大写'
,
readOnly
:
true
,
bind
:
{
value
:
'{amountChineseBig}'
}
},
{
fieldLabel
:
'操 作 人'
,
responsiveCls
:
'big-40 small-100'
,
allowBlank
:
false
,
readOnly
:
true
,
bind
:
'{entity.OperatorName}'
},
{
fieldLabel
:
'摘 要'
,
responsiveCls
:
'big-100 small-100'
,
bind
:
{
value
:
'{entity.Summary}'
,
readOnly
:
'{entity.Kvid}'
}
},
{
xtype
:
'textarea'
,
fieldLabel
:
'备 注'
,
responsiveCls
:
'big-100 small-100'
,
bind
:
{
value
:
'{entity.Remark}'
,
readOnly
:
'{entity.Kvid}'
}
},
{
xtype
:
'fieldset'
,
title
:
'结算明细'
,
collapsible
:
true
,
collapsed
:
false
,
scrollable
:
true
,
responsiveCls
:
'big-100 small-100'
,
items
:
[{
xtype
:
'grid'
,
reference
:
'details'
,
store
:
{
pageSize
:
10000
,
data
:
[],
groupField
:
'Type'
,
autoLoad
:
false
},
features
:
[{
ftype
:
'groupingsummary'
,
groupHeaderTpl
:
[
'<div>{name:this.formatName} ({rows.length} 条)</div>'
,
{
formatName
:
function
(
name
)
{
if
(
name
===
"ReportItem"
)
{
return
"检测费"
;
}
if
(
name
===
"Service"
)
{
return
"服务费"
;
}
if
(
name
===
"Express"
)
{
return
"快递费"
;
}
return
name
;
}
}
]
}],
dockedItems
:
[{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'menu'
,
items
:
[{
margin
:
'0 3 -10 3'
,
xtype
:
'displayfield'
,
value
:
'结算明细'
,
fieldStyle
:
{
fontSize
:
'20px'
}
},
'->'
,
{
text
:
'添加'
,
iconCls
:
'x-fa fa-plus'
,
handler
:
'_onAddDetail'
,
bind
:
{
hidden
:
'{entity.Kvid}'
}
}]
}],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
false
},
items
:
[{
xtype
:
'rownumberer'
},
{
xtype
:
'actioncolumn'
,
align
:
'center'
,
text
:
'操作'
,
items
:
[{
text
:
'编辑'
,
iconCls
:
'x-fa fa-pencil-square-o'
,
handler
:
'_onEditDetail'
},
'->'
,
{
text
:
'移除'
,
iconCls
:
'x-fa fa-trash-o'
,
handler
:
'_onRemoveDetail'
}],
width
:
100
},
{
dataIndex
:
'GoodsId'
,
text
:
'条目编号'
,
width
:
120
},{
dataIndex
:
'GoodsFullName'
,
text
:
'条目名称'
,
width
:
150
,
expend
:
true
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
'合计 '
;
}
},
{
dataIndex
:
'Type'
,
text
:
'类型'
,
width
:
90
,
align
:
'right'
,
renderer
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
"ReportItem"
)
{
return
"检测费"
;
}
if
(
_value
===
"Service"
)
{
return
"服务费"
;
}
if
(
_value
===
"Express"
)
{
return
"快递费"
;
}
return
_value
;
}
},
{
dataIndex
:
'AmountPlan'
,
text
:
'原价'
,
width
:
90
,
align
:
'right'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'¥{0}'
,
value
.
toFixed
(
2
));
}
},
{
dataIndex
:
'Amount'
,
text
:
'折后价'
,
width
:
90
,
align
:
'right'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'¥{0}'
,
value
.
toFixed
(
2
));
}
},
{
dataIndex
:
'Quantity'
,
text
:
'结算数量'
,
renderer
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
let
_rtns
=
_value
;
if
(
_record
.
data
.
hasOwnProperty
(
'QuantityUnit'
))
_rtns
=
_value
+
' '
+
_record
.
data
.
QuantityUnit
;
return
_rtns
;
},
width
:
100
},
{
dataIndex
:
'GoodsSpecifications'
,
text
:
'规格'
,
width
:
150
},
{
dataIndex
:
'GoodsModel'
,
text
:
'型号'
,
width
:
120
},
{
dataIndex
:
'Remark'
,
text
:
'备注'
,
minWidth
:
150
,
flex
:
1
}
]
}
}]
},
{
xtype
:
'fieldset'
,
title
:
'扩展信息'
,
collapsible
:
true
,
collapsed
:
true
,
scrollable
:
true
,
maxHeight
:
300
,
responsiveCls
:
'big-100 small-100'
,
items
:
[{
xtype
:
'propertygrid'
,
reference
:
'metadata'
,
bind
:
{
source
:
'{entity.Metadata}'
},
tbar
:
[{
margin
:
'0 3 -10 3'
,
xtype
:
'displayfield'
,
value
:
'扩展信息'
,
fieldStyle
:
{
fontSize
:
'20px'
}
},
'->'
,
{
iconCls
:
'x-fa fa-plus'
,
handler
:
'_onAddMetadata'
,
bind
:
{
hidden
:
'{entity.Kvid}'
}
},
{
iconCls
:
'x-fa fa-remove'
,
handler
:
'_onRemoveMetadata'
,
bind
:
{
hidden
:
'{entity.Kvid}'
}
}]
}]
}
],
setOwner
:
function
(
_entity
)
{
let
_view
=
this
;
let
_vm
=
_view
.
getViewModel
();
let
_refs
=
_view
.
getReferences
();
let
_detailsStore
=
_refs
.
details
.
getStore
();
let
_jsonData
=
{};
_jsonData
.
EntityType
=
_entity
.
BizType
;
_jsonData
.
Kvid
=
_entity
.
Kvid
;
_jsonData
.
IncludeDetail
=
true
;
Ext
.
Ajax
.
request
({
url
:
'/Restful/'
+
_view
.
entityType
+
'/Read.json'
,
jsonData
:
_jsonData
,
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
_vm
.
set
(
'entity'
,
_rtns
.
Result
);
for
(
let
_i
=
0
;
_i
<
_rtns
.
Result
.
Details
.
length
;
_i
++
)
{
var
_detail
=
_rtns
.
Result
.
Details
[
_i
];
_detailsStore
.
add
(
_detail
);
}
},
failure
:
function
(
_response
)
{}
});
},
controller
:
{
_reCalculateAmount
:
function
()
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_refs
=
_controller
.
getReferences
();
let
_details
=
_refs
.
details
.
getStore
().
getData
().
items
;
let
_amount
=
0
;
let
_amountPlan
=
0
;
for
(
let
_i
=
0
;
_i
<
_details
.
length
;
_i
++
)
{
var
_record
=
_details
[
_i
].
data
;
_amount
+=
_record
.
Amount
;
_amountPlan
+=
_record
.
AmountPlan
;
}
_vm
.
set
(
'entity.AmountPlan'
,
parseFloat
(
_amountPlan
.
toFixed
(
2
)));
_vm
.
set
(
'entity.Amount'
,
parseFloat
(
_amount
.
toFixed
(
2
)));
},
_selectBiz
:
function
(
_ctrl
,
_entities
)
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_entity
=
_entities
[
0
];
_vm
.
set
(
'entity.Type'
,
'Report'
);
_vm
.
set
(
'entity.BizType'
,
"Njzj.Connects.Entities.NjzjReport"
);
_vm
.
set
(
'entity.BizId'
,
_entity
.
NAME
);
_vm
.
set
(
'entity.PayerName'
,
_entity
.
NAMEOFPRODUCTIONORG
);
_vm
.
set
(
'entity.Summary'
,
_entity
.
SAMPLENAME
);
let
_metadata
=
{};
for
(
let
key
in
_entity
)
{
_metadata
[
key
]
=
_entity
[
key
];
}
_vm
.
set
(
'entity.Metadata'
,
_metadata
);
let
_refs
=
_controller
.
getReferences
();
let
_detailsStore
=
_refs
.
details
.
getStore
();
_detailsStore
.
removeAll
();
Ext
.
Ajax
.
request
({
url
:
'/Restful/Njzj.Connects.Entities.NjzjReportItem/Query.json'
,
jsonData
:
{
ReportId
:
_entity
.
NAME
,
IsSerial
:
true
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
if
(
_rtns
.
Results
.
length
<=
0
)
return
;
for
(
let
_i
=
0
;
_i
<
_rtns
.
Results
.
length
;
_i
++
)
{
let
_detail
=
_rtns
.
Results
[
_i
];
_detailsStore
.
add
(
_detail
);
// let _newEntity = {
// Metadata: {},
// Type: 'ReportItem',
// Kvid: null,
// Amount: 0,
// AmountPlan: 0,
// Quantity: 1,
// QuantityUnit: '次',
// Currency: 'CNY'
// };
// _newEntity.BizId=_detail.FOLDERNO+'['+_detail.ORDNO+']('+_detail.ANALYTES+')';
// _newEntity.BizType='Njzj.Connects.Entities.NjzjReportItem';
// _newEntity.GoodsFullName=_detail.TESTNO;
// if(_detail.ANALYTES!==_newEntity.GoodsFullName)_newEntity.GoodsFullName+='('+_detail.ANALYTES+')';
// _newEntity.GoodsId=_detail.SERVGRP;
// _newEntity.GoodsSpecifications=_detail.METHODNAME+'('+_detail.METHOD+')';
// _newEntity.GoodsModel=_detail.SAMPLENAME;
// for (let key in _detail) {
// _newEntity.Metadata[key] = _detail[key];
// }
// _detailsStore.add(_newEntity);
}
_controller
.
_reCalculateAmount
();
},
failure
:
function
(
_response
)
{
}
});
},
_clearBiz
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_refs
=
_controller
.
getReferences
();
let
_detailsStore
=
_refs
.
details
.
getStore
();
_detailsStore
.
removeAll
();
_controller
.
_reCalculateAmount
();
_vm
.
set
(
'entity.BizId'
,
''
);
_vm
.
set
(
'entity.BizType'
,
''
);
_vm
.
set
(
'entity.Summary'
,
''
);
_vm
.
set
(
'entity.Metadata'
,
{});
},
_onAddMetadata
:
function
(
_ctrl
)
{
let
_controller
=
this
;
Ext
.
MessageBox
.
prompt
(
'增加参数名称'
,
'请输入扩展信息参数名称'
,
_controller
.
_onAddMetadataResult
,
_controller
);
},
_onAddMetadataResult
:
function
(
_btn
,
_text
)
{
if
(
_btn
!==
'ok'
)
return
;
let
_controller
=
this
,
_vm
=
_controller
.
getViewModel
();
let
_metadata
=
_vm
.
data
.
entity
.
Metadata
;
if
(
_metadata
[
_text
])
return
;
_metadata
[
_text
]
=
''
;
_vm
.
set
(
'entity.Metadata'
,
_metadata
);
let
_refs
=
_controller
.
getReferences
();
_refs
.
metadata
.
setSource
(
_metadata
);
},
_onRemoveMetadata
:
function
(
_ctrl
)
{
let
_controller
=
this
,
_refs
=
_controller
.
getReferences
();
if
(
!
_refs
.
metadata
.
selection
)
return
;
let
_vm
=
_controller
.
getViewModel
();
let
_metadata
=
_vm
.
data
.
entity
.
Metadata
;
delete
_metadata
[
_refs
.
metadata
.
selection
.
id
];
_vm
.
set
(
'entity.Metadata'
,
_metadata
);
_refs
.
metadata
.
setSource
(
_metadata
);
},
_onAddDetail
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_kvid
=
_vm
.
data
.
entity
.
Kvid
;
if
(
_kvid
!==
null
)
{
Ext
.
toast
(
"已结算项目,无法新增"
);
return
;
}
let
_refs
=
_controller
.
getReferences
();
let
_detailsStore
=
_refs
.
details
.
getStore
();
let
_newEntity
=
{
Metadata
:
{},
Type
:
'ReportItem'
,
Kvid
:
null
,
Amount
:
0
,
AmountPlan
:
0
,
Quantity
:
1
,
QuantityUnit
:
'次'
,
Currency
:
'CNY'
};
let
_owner
=
_vm
.
data
.
entity
;
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.SettlementDetail.Form'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
800
,
height
:
350
,
modal
:
true
,
maximizable
:
true
,
resizable
:
true
,
items
:
[
_form
]
});
_win
.
show
();
_form
.
setOwner
(
_newEntity
,
_owner
,
_ctrl
);
_form
.
on
(
'entityAdd'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
_detailsStore
.
add
(
_entity
);
_controller
.
_reCalculateAmount
();
});
},
_onEditDetail
:
function
(
_ctrl
,
_recIndex
,
_cellIndex
,
_item
,
_e
,
_record
)
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_kvid
=
_vm
.
data
.
entity
.
Kvid
;
if
(
_kvid
!==
null
)
{
Ext
.
toast
(
"已结算项目,无法编辑"
);
return
;
}
let
_refs
=
_controller
.
getReferences
();
let
_detailsStore
=
_refs
.
details
.
getStore
();
let
_owner
=
_vm
.
data
.
entity
;
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.SettlementDetail.Form'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_item
.
text
,
iconCls
:
_item
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
800
,
height
:
350
,
modal
:
true
,
maximizable
:
true
,
resizable
:
true
,
items
:
[
_form
]
});
_win
.
show
();
_form
.
setOwner
(
_record
.
data
,
_owner
,
_item
);
_form
.
on
(
'entityAdd'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
_record
.
set
(
_entity
,
null
);
_detailsStore
.
commitChanges
();
_controller
.
_reCalculateAmount
();
});
},
_onRemoveDetail
:
function
(
_ctrl
,
_recIndex
,
_cellIndex
,
_item
,
_e
,
_record
)
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_kvid
=
_vm
.
data
.
entity
.
Kvid
;
if
(
_kvid
!==
null
)
{
Ext
.
toast
(
"已结算项目,无法移除"
);
return
;
}
_record
.
drop
();
_controller
.
_reCalculateAmount
();
},
_onSaveEntity
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_view
=
_controller
.
getView
();
let
_refs
=
_controller
.
getReferences
();
let
_item
=
_vm
.
data
.
entity
;
_item
.
Details
=
[];
let
_kvid
=
_vm
.
data
.
entity
.
Kvid
;
if
(
_kvid
!==
null
)
{
Ext
.
toast
(
"已结算项目,无法新增!"
);
return
;
}
let
_details
=
_refs
.
details
.
getStore
().
getData
().
items
;
if
(
_details
.
length
<=
0
)
{
Ext
.
toast
(
"无结算明细,无法新增!"
);
return
;
}
for
(
let
_i
=
0
;
_i
<
_details
.
length
;
_i
++
)
{
var
_record
=
_details
[
_i
].
data
;
_item
.
Details
.
push
(
_record
);
}
let
_jsonData
=
{};
_jsonData
.
EntityType
=
_view
.
entityType
;
_jsonData
.
Item
=
_item
;
_ctrl
.
setDisabled
(
true
);
Ext
.
Ajax
.
request
({
url
:
'/Restful/'
+
_view
.
entityType
+
'/Create.json'
,
jsonData
:
_jsonData
,
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
Ext
.
toast
(
'结算成功!'
);
_ctrl
.
setDisabled
(
false
);
_view
.
fireEvent
(
'entityCreated'
,
_view
,
_rtns
.
Results
);
},
failure
:
function
(
_response
)
{
Ext
.
toast
(
'结算失败!'
);
_ctrl
.
setDisabled
(
false
);
}
});
},
_onDeleteEntity
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_view
=
_controller
.
getView
();
let
_item
=
_vm
.
data
.
entity
;
if
(
_item
.
AmountPayment
!==
0
)
{
Ext
.
toast
(
'已收款结算,无法删除!'
);
return
;
}
let
_msg
=
Ext
.
create
(
'Ext.window.MessageBox'
,
{
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
closeAction
:
'destroy'
});
_msg
.
confirm
(
"删除确认"
,
"您确认要删除当前的结算信息?"
,
_controller
.
beforeDeleteEntity
,
_controller
);
},
beforeDeleteEntity
:
function
(
_optional
)
{
if
(
_optional
!=
"yes"
)
return
;
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_view
=
_controller
.
getView
();
let
_item
=
_vm
.
data
.
entity
;
if
(
_item
.
AmountPayment
!==
0
)
{
Ext
.
toast
(
'已收款结算,无法删除,请作废!'
);
return
;
}
let
_jsonData
=
{};
_jsonData
.
EntityType
=
_item
.
BizType
;
_jsonData
.
Kvids
=
[];
_jsonData
.
Kvids
.
push
(
_item
.
Kvid
);
Ext
.
Ajax
.
request
({
url
:
'/Restful/'
+
_view
.
entityType
+
'/Delete.json'
,
jsonData
:
_jsonData
,
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
Ext
.
toast
(
'删除成功!'
);
_view
.
fireEvent
(
'entityDeleted'
,
_view
,
_rtns
.
Results
);
},
failure
:
function
(
_response
)
{
Ext
.
toast
(
'删除失败!'
);
}
});
},
_onOffsetEntity
:
function
(
_ctrl
){
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_view
=
_controller
.
getView
();
let
_item
=
_vm
.
data
.
entity
;
if
(
_item
.
AmountPayment
!==
_item
.
Amount
)
{
Ext
.
toast
(
'未收款结算,无法作废,请删除!'
);
return
;
}
let
_msg
=
Ext
.
create
(
'Ext.window.MessageBox'
,
{
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
closeAction
:
'destroy'
});
_msg
.
confirm
(
"作废确认"
,
"您确认要作废当前的结算信息?"
,
_controller
.
beforeOffsetEntity
,
_controller
);
},
beforeOffsetEntity
:
function
(
_optional
)
{
if
(
_optional
!=
"yes"
)
return
;
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_view
=
_controller
.
getView
();
let
_item
=
_vm
.
data
.
entity
;
if
(
_item
.
AmountPayment
!==
_item
.
Amount
)
{
Ext
.
toast
(
'未收款结算,无法作废,请删除!'
);
return
;
}
let
_jsonData
=
{};
_jsonData
.
EntityType
=
_item
.
BizType
;
_jsonData
.
Kvids
=
[];
_jsonData
.
Kvids
.
push
(
_item
.
Kvid
);
Ext
.
Ajax
.
request
({
url
:
'/Restful/'
+
_view
.
entityType
+
'/Offset.json'
,
jsonData
:
_jsonData
,
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
Ext
.
toast
(
'删除成功!'
);
_view
.
fireEvent
(
'entityDeleted'
,
_view
,
_rtns
.
Results
);
},
failure
:
function
(
_response
)
{
Ext
.
toast
(
'删除失败!'
);
}
});
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.Settlement.Paying.Form.js
0 → 100644
View file @
5ef2d2e1
Ext
.
define
(
'App.Control.Kivii.Finances.Settlement.Paying.Form'
,
{
extend
:
'System.Control.EntityList'
,
xtype
:
'App.Control.Kivii.Finances.Settlement.Paying.Form'
,
plugins
:
[{
ptype
:
'cellediting'
,
clicksToEdit
:
0
}],
viewModel
:
{
data
:
{
owner
:
{},
amountSelected
:
0
,
SettlementKvids
:[]
}
},
tbar
:
[{
margin
:
'0 0 -9 3'
,
xtype
:
'displayfield'
,
bind
:
{
value
:
'{owner.PayerName}(需支付 {owner.Amount-owner.AmountPayment} 元)/已选:{amountSelected}元'
},
fieldStyle
:
{
fontSize
:
'16px'
}
},
'->'
,
{
text
:
'金额补齐'
,
iconCls
:
'x-fa fa-circle'
,
handler
:
'_onAddDiscountAccount'
},
{
text
:
'收款登记'
,
iconCls
:
'x-fa fa-tags'
,
handler
:
'_onCreateEntity'
}],
dockedItems
:
[],
columnLines
:
true
,
columns
:
{
defaults
:
{
menuDisabled
:
true
},
items
:
[{
xtype
:
'rownumberer'
},
{
dataIndex
:
'PayerName'
,
text
:
'付款单位'
,
flex
:
1
,
renderer
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_record
.
data
.
Type
===
'Discount'
)
{
_meta
.
style
=
'background-color:#FFFFE0'
;
}
return
_value
;
}
},
{
dataIndex
:
'Amount'
,
text
:
'金额'
,
align
:
'right'
,
width
:
220
},
{
dataIndex
:
'AmountBalance'
,
text
:
'余额'
,
align
:
'right'
,
width
:
90
},
{
xtype
:
'actioncolumn'
,
width
:
100
,
text
:
'操作'
,
align
:
'center'
,
menuDisabled
:
true
,
sortable
:
false
,
items
:
[{
getClass
:
function
(
_value
,
_metadata
,
_record
,
_rowIndex
,
_colIndex
,
_store
)
{
if
(
_record
.
data
.
Kvid
===
'00000000-0000-0000-0000-000000000000'
)
return
'x-fa fa-plus'
;
else
return
'x-fa fa-trash-o'
;
},
handler
:
'_onAction'
}]
}]
},
setOwner
:
function
(
_entities
)
{
let
_view
=
this
;
let
_vm
=
_view
.
getViewModel
();
let
_amount
=
0
;
let
_amountPayment
=
0
;
let
_payerName
=
''
;
let
_kvids
=
[];
for
(
let
_i
=
0
;
_i
<
_entities
.
length
;
_i
++
)
{
var
_record
=
_entities
[
_i
].
data
;
_kvids
.
push
(
_record
.
Kvid
);
_amount
+=
_record
.
Amount
;
_amountPayment
+=
_record
.
AmountPayment
;
_payerName
=
_record
.
PayerName
;
}
_vm
.
set
(
'SettlementKvids'
,
_kvids
);
_vm
.
set
(
'owner.Amount'
,
parseFloat
(
_amount
.
toFixed
(
2
)));
_vm
.
set
(
'owner.AmountPayment'
,
parseFloat
(
_amountPayment
.
toFixed
(
2
)));
_vm
.
set
(
'owner.PayerName'
,
_payerName
);
let
_empty
=
{};
_empty
.
Kvid
=
'00000000-0000-0000-0000-000000000000'
;
_view
.
addEntity
(
_empty
);
},
controller
:
{
_onAction
:
function
(
_ctrl
,
_rowIndex
,
_colIndex
,
_item
,
_e
,
_record
)
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_view
=
_controller
.
getView
();
let
_store
=
_view
.
getStore
();
let
_records
=
_store
.
getData
().
items
;
let
_amountSelected
=
0.0
;
for
(
let
_i
=
0
;
_i
<
_records
.
length
;
_i
++
)
{
if
(
_records
[
_i
].
data
.
Kvid
===
'00000000-0000-0000-0000-000000000000'
)
continue
;
_amountSelected
+=
parseFloat
(
_records
[
_i
].
data
.
Amount
);
}
if
(
_record
.
data
.
Kvid
!==
'00000000-0000-0000-0000-000000000000'
)
{
_view
.
removeEntity
(
_record
.
data
);
_amountSelected
-=
parseFloat
(
_record
.
data
.
Amount
);
_vm
.
set
(
'amountSelected'
,
_amountSelected
.
toFixed
(
2
));
return
;
}
let
_amountNeed
=
parseFloat
((
parseFloat
(
_vm
.
data
.
owner
.
Amount
)
-
parseFloat
(
_vm
.
data
.
owner
.
AmountPayment
)
-
parseFloat
(
_amountSelected
)).
toFixed
(
2
));
if
(
_amountNeed
<=
0
)
{
Ext
.
toast
(
"金额已满足支付!"
);
return
;
}
let
_selector
=
Ext
.
create
(
'App.Control.Kivii.Finances.Paying.Payment.Selector'
);
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
'选择收款'
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
autoScroll
:
true
,
width
:
800
,
height
:
400
,
modal
:
true
,
resizable
:
false
,
items
:
[
_selector
]
});
_win
.
show
();
_selector
.
setOwner
(
_vm
.
data
.
owner
);
_selector
.
on
(
'entitySelected'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
for
(
let
_i
=
0
;
_i
<
_records
.
length
;
_i
++
)
{
if
(
_entity
[
0
].
Kvid
===
_records
[
_i
].
data
.
Kvid
)
{
_amountSelected
-=
parseFloat
(
_records
[
_i
].
data
.
Amount
);
_vm
.
set
(
'amountSelected'
,
_amountSelected
.
toFixed
(
2
));
_view
.
removeEntity
(
_records
[
_i
].
data
);
}
}
_amountNeed
=
parseFloat
((
parseFloat
(
_vm
.
data
.
owner
.
Amount
)
-
parseFloat
(
_vm
.
data
.
owner
.
AmountPayment
)
-
parseFloat
(
_amountSelected
)).
toFixed
(
2
));
let
_amountCanUsed
=
parseFloat
(
_entity
[
0
].
Amount
)
-
parseFloat
(
_entity
[
0
].
AmountUsed
);
let
_amount
=
_amountNeed
<=
_amountCanUsed
?
_amountNeed
:
_amountCanUsed
;
let
_amountBalance
=
_amountCanUsed
-
parseFloat
(
_amount
);
let
_item
=
{};
_item
.
PayerName
=
_entity
[
0
].
PayerName
;
_item
.
PayKvid
=
_entity
[
0
].
Kvid
;
_item
.
Amount
=
_amount
.
toFixed
(
2
);
_item
.
AmountBalance
=
_amountBalance
.
toFixed
(
2
);
_item
.
Kvid
=
_entity
[
0
].
Kvid
;
_item
.
Type
=
'Payment'
;
_view
.
addEntity
(
_item
,
_records
.
length
-
1
);
_vm
.
set
(
'amountSelected'
,
(
_amountSelected
+
_amount
).
toFixed
(
2
));
});
},
_onAddDiscountAccount
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_msg
=
Ext
.
create
(
'Ext.window.MessageBox'
,
{
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
closeAction
:
'destroy'
});
_msg
.
confirm
(
'金额补齐'
,
'金额补齐功能 仅适用于客户并未按账单缴费,在交涉后意见达成一致,客户不再补齐.</br>补齐金额过大,可能会影响到绩效考核!确认剩余金额进行补齐操作?'
,
_controller
.
beforeAddDiscountAccount
,
_controller
);
},
beforeAddDiscountAccount
:
function
(
_ctrl
)
{
if
(
_ctrl
!=
"yes"
)
return
;
Ext
.
MessageBox
.
show
({
title
:
'补齐折扣'
,
msg
:
'原因:'
,
width
:
300
,
buttons
:
Ext
.
MessageBox
.
OKCANCEL
,
multiline
:
true
,
scope
:
this
,
fn
:
this
.
_showResultText
,
animateTarget
:
_ctrl
});
},
_showResultText
:
function
(
_btn
,
_text
,
_ctrl
)
{
if
(
_btn
!=
"ok"
)
return
;
if
(
_text
===
null
||
_text
===
""
)
{
Ext
.
toast
(
"请填写少收金额的原因!"
);
return
;
}
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_view
=
_controller
.
getView
();
let
_store
=
_view
.
getStore
();
let
_records
=
_store
.
getData
().
items
;
let
_amountSelected
=
0.0
;
for
(
let
_i
=
0
;
_i
<
_records
.
length
;
_i
++
)
{
if
(
_records
[
_i
].
data
.
Kvid
===
'00000000-0000-0000-0000-000000000000'
)
continue
;
_amountSelected
+=
parseFloat
(
_records
[
_i
].
data
.
Amount
);
}
let
_amountNeed
=
parseFloat
((
parseFloat
(
_vm
.
data
.
owner
.
Amount
)
-
parseFloat
(
_vm
.
data
.
owner
.
AmountPayment
)
-
parseFloat
(
_amountSelected
)).
toFixed
(
2
));
if
(
_amountNeed
<=
0
)
{
Ext
.
toast
(
"金额已满足支付!"
);
return
;
}
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.Account/Query.json'
,
jsonData
:
{
OwnerKvid
:
KiviiContext
.
CurrentMember
.
DepartmentKvid
,
Type
:
'Discount'
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
if
(
_rtns
.
Results
.
length
!==
1
)
{
Ext
.
toast
(
'未到对应部门抵扣账户,请联系管理员进行配置!'
);
return
;
}
for
(
let
_i
=
0
;
_i
<
_records
.
length
;
_i
++
)
{
if
(
_rtns
.
Results
[
0
].
Kvid
===
_records
[
_i
].
data
.
Kvid
)
{
_amountSelected
-=
parseFloat
(
_records
[
_i
].
data
.
Amount
);
_vm
.
set
(
'amountSelected'
,
_amountSelected
.
toFixed
(
2
));
_view
.
removeEntity
(
_records
[
_i
].
data
);
}
}
let
_amount
=
_amountNeed
;
let
_item
=
{};
_item
.
PayerName
=
_vm
.
data
.
owner
.
PayerName
+
'[部门账户抹零支付]'
;
_item
.
PayKvid
=
_rtns
.
Results
[
0
].
Kvid
;
_item
.
Amount
=
_amount
.
toFixed
(
2
);
_item
.
AmountBalance
=
0
;
_item
.
Kvid
=
_rtns
.
Results
[
0
].
Kvid
;
_item
.
Type
=
'Discount'
;
_item
.
Remark
=
_text
;
_view
.
addEntity
(
_item
,
_records
.
length
-
1
);
_vm
.
set
(
'amountSelected'
,
(
_amountSelected
+
_amount
).
toFixed
(
2
));
},
failure
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
Ext
.
toast
(
_rtns
.
ResponseStatus
.
Message
);
}
});
},
_onCreateEntity
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_view
=
_controller
.
getView
();
let
_store
=
_view
.
getStore
();
let
_records
=
_store
.
getData
().
items
;
if
(
_records
.
length
<=
1
)
{
Ext
.
toast
(
'请选择至少一个支付!'
);
return
;
}
let
_amountNeed
=
parseFloat
(
parseFloat
(
_vm
.
data
.
owner
.
Amount
)
-
parseFloat
(
_vm
.
data
.
owner
.
AmountPayment
));
let
_amountSelected
=
0.0
;
let
_payMethods
=
[];
for
(
let
_i
=
0
;
_i
<
_records
.
length
;
_i
++
)
{
if
(
_records
[
_i
].
data
.
Kvid
===
'00000000-0000-0000-0000-000000000000'
)
continue
;
_amountSelected
+=
parseFloat
(
_records
[
_i
].
data
.
Amount
);
_payMethods
.
push
(
_records
[
_i
].
data
);
}
if
(
parseFloat
(
_amountSelected
.
toFixed
(
2
))
!==
_amountNeed
)
{
Ext
.
toast
(
'所选付款总金额:'
+
_amountSelected
+
'元,与所需总金额:'
+
_amountNeed
+
'元 不相符!请重新选择!'
);
return
;
}
_ctrl
.
setDisabled
(
true
);
let
_jsonData
=
{};
_jsonData
.
SettlementKvids
=
_vm
.
data
.
SettlementKvids
;
_jsonData
.
PayingMethods
=
_payMethods
;
_view
.
mask
(
'正在执行...'
);
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.Pay/Paying.json'
,
jsonData
:
_jsonData
,
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
_ctrl
.
setDisabled
(
false
);
_view
.
unmask
();
_view
.
fireEvent
(
'entityPaying'
,
_view
,
{});
},
failure
:
function
(
_response
)
{
_ctrl
.
setDisabled
(
false
);
_view
.
unmask
();
}
});
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.SettlementDetail.Form.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.Control.Kivii.Finances.SettlementDetail.Form'
,
{
extend
:
'System.Control.EntityForm'
,
xtype
:
'App.Control.Kivii.Finances.SettlementDetail.Form'
,
entityType
:
'Kivii.Finances.Entities.SettlementDetail'
,
scrollable
:
true
,
layout
:
{
type
:
'responsivecolumn'
,
states
:
{
small
:
600
,
large
:
0
}
},
title
:
'结算明细'
,
iconCls
:
'x-fa fa-linode'
,
viewModel
:
{
data
:
{
ButtonText
:
'添加'
,
ButtonIcon
:
'x-fa fa-linode'
,
owner
:
{},
entity
:
{
Metadata
:
{},
Kvid
:
null
,
Amount
:
0
,
AmountPlan
:
0
,
Currency
:
'CNY'
}
},
formulas
:
{
amountChineseBig
:
function
(
get
)
{
let
_amount
=
get
(
'entity.Amount'
);
return
KiviiContext
.
Const
.
FinancesFunctionsMoneyToChineseBig
(
_amount
);
}
}
},
dockedItems
:
[{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'menu'
,
items
:
[{
margin
:
'0 3 -10 3'
,
xtype
:
'displayfield'
,
bind
:
{
value
:
'<div style="color:red">所属业务:{owner.BizId}</div>'
},
fieldStyle
:
{
fontSize
:
'20px'
}
},
'->'
,
{
iconAlign
:
'left'
,
handler
:
'_onAddEntity'
,
bind
:
{
text
:
'{ButtonText}'
,
iconCls
:
'{ButtonIcon}'
,
disabled
:
'{!formIsValid}'
}
}]
}],
defaults
:
{
xtype
:
'textfield'
,
labelWidth
:
60
,
labelAlign
:
'right'
,
responsiveCls
:
'big-50 small-100'
,
},
items
:
[{
fieldLabel
:
'条目名称'
,
responsiveCls
:
'big-40 small-100'
,
allowBlank
:
false
,
bind
:
'{entity.GoodsFullName}'
},
{
xtype
:
'categoryField'
,
fieldLabel
:
'条目类型'
,
allowBlank
:
false
,
entityType
:
'Kivii.Finances.Entities.Settlement'
,
responsiveCls
:
'big-30 small-100'
,
internalCode
:
'DetailType'
,
readOnly
:
false
,
bind
:
{
value
:
'{entity.Type}'
}
},
{
fieldLabel
:
'条目编号'
,
responsiveCls
:
'big-30 small-100'
,
bind
:
'{entity.GoodsId}'
},
{
xtype
:
'numberfield'
,
fieldLabel
:
'条目原价'
,
hideTrigger
:
true
,
minValue
:
0
,
responsiveCls
:
'big-20 small-100'
,
step
:
0.1
,
allowBlank
:
false
,
// readOnly: true,
bind
:
{
value
:
'{entity.AmountPlan}'
}
},
{
xtype
:
'numberfield'
,
fieldLabel
:
'折 后 价'
,
hideTrigger
:
true
,
// minValue: 0,
responsiveCls
:
'big-20 small-100'
,
step
:
0.1
,
allowBlank
:
false
,
// readOnly: true,
bind
:
{
value
:
'{entity.Amount}'
}
},
{
xtype
:
'numberfield'
,
fieldLabel
:
'数 量'
,
hideTrigger
:
true
,
minValue
:
0
,
responsiveCls
:
'big-30 small-100'
,
step
:
0.1
,
allowBlank
:
false
,
// readOnly: true,
bind
:
{
value
:
'{entity.Quantity}'
}
},
{
xtype
:
'categoryField'
,
fieldLabel
:
'数量单位'
,
allowBlank
:
false
,
entityType
:
'Kivii.Finances.Entities.Settlement'
,
responsiveCls
:
'big-30 small-100'
,
internalCode
:
'QuantityUnit'
,
readOnly
:
false
,
bind
:
{
value
:
'{entity.QuantityUnit}'
}
},
{
responsiveCls
:
'big-40 small-100'
,
fieldLabel
:
'金额大写'
,
readOnly
:
true
,
bind
:
{
value
:
'{amountChineseBig}'
}
},
{
fieldLabel
:
'型 号'
,
responsiveCls
:
'big-30 small-100'
,
bind
:
'{entity.GoodsModel}'
},
{
fieldLabel
:
'规 格'
,
responsiveCls
:
'big-30 small-100'
,
bind
:
'{entity.GoodsSpecifications}'
},
{
xtype
:
'textarea'
,
fieldLabel
:
'备 注'
,
responsiveCls
:
'big-100 small-100'
,
bind
:
'{entity.Remark}'
}],
setOwner
:
function
(
_entity
,
_owner
,
_ctrl
)
{
let
_view
=
this
;
let
_vm
=
_view
.
getViewModel
();
let
_current
=
{};
Ext
.
apply
(
_current
,
_entity
);
_vm
.
set
(
'entity'
,
_current
);
_vm
.
set
(
'owner'
,
_owner
);
_vm
.
set
(
'ButtonText'
,
_ctrl
.
text
);
_vm
.
set
(
'ButtonIcon'
,
_ctrl
.
iconCls
);
},
controller
:
{
_onAddEntity
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_view
=
_controller
.
getView
();
_view
.
fireEvent
(
'entityAdd'
,
_view
,
_vm
.
data
.
entity
);
// _vm.set('entity', {
// Metadata: {},
// Kvid: null,
// Amount: 0,
// AmountPlan: 0,
// Currency: 'CNY'
// });
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.Transfer.Account.Selector.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.Control.Kivii.Finances.Transfer.Account.Selector'
,
{
extend
:
'System.Control.EntitySelector'
,
entityType
:
'Kivii.Finances.Entities.Account'
,
xtype
:
'App.Control.Kivii.Finances.Transfer.Account.Selector'
,
dataSource
:
'/Restful/Kivii.Finances.Entities.Account/QueryEx.json'
,
filter
:
{},
selModel
:
false
,
store
:
{
autoLoad
:
true
},
tbar
:
[{
xtype
:
'searchField'
,
reference
:
'searchfield'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'Name,SerialNumber'
,
emptyText
:
'模糊搜索'
}],
columns
:
[{
xtype
:
'rownumberer'
},
{
text
:
'账号名称'
,
dataIndex
:
'Name'
,
sortable
:
true
,
width
:
120
},
{
text
:
'账户类型'
,
dataIndex
:
'Type'
,
resizable
:
false
,
sortable
:
true
,
width
:
90
,
renderer
:
'_renderType'
},
{
text
:
'账号'
,
dataIndex
:
'SerialNumber'
,
width
:
120
},
{
text
:
'账号所属'
,
dataIndex
:
'OwnerName'
,
sortable
:
true
,
width
:
120
},
{
text
:
'账户余额'
,
dataIndex
:
'Amount'
,
align
:
'right'
,
resizable
:
false
,
width
:
100
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
}
},
{
text
:
'币种单位'
,
dataIndex
:
'Currency'
,
resizable
:
false
,
sortable
:
true
,
width
:
90
,
renderer
:
'_renderCurrency'
},
{
text
:
'摘要'
,
dataIndex
:
'Summary'
,
resizable
:
true
,
width
:
150
},
{
text
:
'备注'
,
dataIndex
:
'Remark'
,
resizable
:
false
,
minWidth
:
100
,
flex
:
1
}],
setOwner
:
function
(
_entity
)
{
let
_view
=
this
;
let
_refs
=
_view
.
getReferences
();
let
_search
=
_refs
.
searchfield
;
_search
.
setValue
(
_entity
.
PayerName
);
let
_searchFilter
=
{};
_searchFilter
.
QueryKeys
=
_search
.
queryField
;
_searchFilter
.
QueryValues
=
_search
.
getRawValue
();
let
_fields
=
_view
.
query
(
'field[queryField]'
);
for
(
let
_i
in
_fields
)
{
_field
=
_fields
[
_i
];
if
(
_field
===
_view
)
continue
;
if
(
!
_field
.
queryField
)
continue
;
_value
=
_field
.
getRawValue
();
_searchFilter
[
_field
.
queryField
]
=
_value
;
}
_view
.
setSearchFilter
(
_searchFilter
);
let
_type
=
'Deposit'
;
let
_ownerKvid
=
KiviiContext
.
CurrentMember
.
OrganizationKvid
;
if
(
_entity
.
Type
===
"UnBiz"
)
{
_type
=
'Cash,Pos'
;
_ownerKvid
=
KiviiContext
.
CurrentMember
.
Kvid
;
delete
_view
.
searchFilter
;
_search
.
setValue
(
''
);
}
if
(
_entity
.
Type
===
"Refund"
)
_type
=
'Refund'
;
_view
.
setFilter
({
TypeIn
:
_type
,
OwnerKvid
:
_ownerKvid
});
_view
.
reload
&&
_view
.
reload
();
},
controller
:
{
_renderCurrency
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
'CNY'
)
{
return
'人民币'
;
}
if
(
_value
===
'USD'
)
{
return
'美元'
;
}
if
(
_value
===
'EUR'
)
{
return
'欧元'
;
}
return
_value
;
},
_renderType
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
'Cash'
)
{
return
'现金账户'
;
}
if
(
_value
===
'Pos'
)
{
return
'刷卡账户'
;
}
if
(
_value
===
'Bank'
)
{
return
'银行账户'
;
}
if
(
_value
===
'Deposit'
)
{
return
'存款账户'
;
}
if
(
_value
===
'Coupon'
)
{
return
'优惠券'
;
}
if
(
_value
===
'StoredCard'
)
{
return
'储值卡'
;
}
if
(
_value
===
'Biz'
)
{
return
'业务账户'
;
}
if
(
_value
===
'Balance'
)
{
return
'系统平衡'
;
}
if
(
_value
===
'Discount'
)
{
return
'折扣账户'
;
}
return
_value
;
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.View.Kivii.Finances.Account.List.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.View.Kivii.Finances.Account.List'
,
{
extend
:
'System.Control.EntityList'
,
entityType
:
'Kivii.Finances.Entities.Account'
,
xtype
:
'App.View.Kivii.Finances.Account.List'
,
// dataSource: '/Restful/Kivii.Finances.Entities.Account/QueryEx.json',
title
:
'账户管理'
,
iconCls
:
'x-fa fa-users'
,
filter
:
{},
viewModel
:
{
data
:
{
_selection
:
null
,
lastOwnerKvid
:
null
}
},
bind
:
{
selection
:
'{_selection}'
},
store
:
{
autoLoad
:
true
,
pageSize
:
50
},
features
:
[{
ftype
:
'summary'
}],
dockedItems
:
[{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'menu'
,
items
:
[{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'Name,FullName,OwnerName'
,
emptyText
:
'模糊搜索所属单位、账户名称'
},
{
text
:
'开户'
,
iconCls
:
'x-fa fa-user'
,
iconAlign
:
'left'
,
handler
:
'_onCreateEntity'
},
{
text
:
'明细'
,
iconCls
:
'x-fa fa-file-text-o'
,
iconAlign
:
'left'
,
handler
:
'_onReadAccountDetail'
,
bind
:
{
disabled
:
'{!_selection}'
}
}]
},{
xtype
:
'pagingtoolbar'
,
dock
:
'bottom'
,
displayInfo
:
true
,
items
:
[{
xtype
:
'button'
,
labelWidth
:
60
,
iconCls
:
'x-fa fa-check-square-o'
,
bind
:
{
text
:
'已选择{selectionCount}条记录,点击清除'
,
hidden
:
'{selectionCount==0}'
},
handler
:
'_onClearSelections'
}]
}],
columnLines
:
true
,
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
false
},
items
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
,
resizable
:
false
},
{
text
:
'账号名称'
,
dataIndex
:
'Name'
,
sortable
:
true
,
width
:
240
},
{
text
:
'账号'
,
dataIndex
:
'SerialNumber'
,
width
:
240
},{
text
:
'账号所属'
,
dataIndex
:
'OwnerName'
,
sortable
:
true
,
width
:
200
},
{
text
:
'账户余额'
,
dataIndex
:
'Amount'
,
align
:
'right'
,
resizable
:
false
,
width
:
120
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
}
},
{
text
:
'授信额度'
,
dataIndex
:
'CreditLine'
,
align
:
'right'
,
resizable
:
false
,
renderer
:
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
,
width
:
100
},
{
text
:
'币种单位'
,
dataIndex
:
'Currency'
,
resizable
:
false
,
sortable
:
true
,
width
:
90
,
renderer
:
'_renderCurrency'
},
{
text
:
'账户类型'
,
dataIndex
:
'Type'
,
resizable
:
false
,
sortable
:
true
,
width
:
90
,
renderer
:
'_renderType'
},
{
text
:
'摘要'
,
dataIndex
:
'Summary'
,
resizable
:
true
,
width
:
150
},
{
text
:
'备注'
,
dataIndex
:
'Remark'
,
resizable
:
false
,
minWidth
:
100
,
flex
:
1
}]
},
controller
:
{
_onClearSelections
:
function
()
{
this
.
getView
().
clearSelections
();
},
_renderCurrency
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
'CNY'
)
{
return
'人民币'
;
}
if
(
_value
===
'USD'
)
{
return
'美元'
;
}
if
(
_value
===
'EUR'
)
{
return
'欧元'
;
}
return
_value
;
},
_renderType
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
'Cash'
)
{
return
'现金账户'
;
}
if
(
_value
===
'Pos'
)
{
return
'刷卡账户'
;
}
if
(
_value
===
'Bank'
)
{
return
'银行账户'
;
}
if
(
_value
===
'Deposit'
)
{
return
'存款账户'
;
}
if
(
_value
===
'Coupon'
)
{
return
'优惠券'
;
}
if
(
_value
===
'StoredCard'
)
{
return
'储值卡'
;
}
if
(
_value
===
'Biz'
)
{
return
'业务账户'
;
}
if
(
_value
===
'Balance'
)
{
return
'系统平衡'
;
}
if
(
_value
===
'Discount'
)
{
return
'折扣账户'
;
}
return
_value
;
},
_onReadAccountDetail
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
if
(
!
_view
.
selection
)
{
Ext
.
toast
(
'请先选择账户'
);
return
;
}
let
_list
=
Ext
.
create
(
'App.Control.Kivii.Finances.AccountDetail.List'
);
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
autoScroll
:
true
,
iconCls
:
'x-fa fa-file-text-o'
,
iconAlign
:
'left'
,
width
:
1200
,
height
:
700
,
modal
:
true
,
resizable
:
false
,
items
:
[
_list
]
});
_list
.
setOwner
(
_view
.
selection
.
data
);
_win
.
show
();
_list
.
clear
();
_list
.
setFilter
({
AccountKvid
:
_view
.
selection
.
data
.
Kvid
});
_list
.
reload
();
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.View.Kivii.Finances.Bill.List.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.View.Kivii.Finances.Bill.List'
,
{
extend
:
'System.Control.EntityList'
,
entityType
:
'Kivii.Finances.Entities.Bill'
,
xtype
:
'App.View.Kivii.Finances.Bill.List'
,
title
:
'账单管理'
,
iconCls
:
'x-fa fa-file-text-o'
,
filter
:
{
IsPayed
:
false
},
viewModel
:
{
data
:
{
_selection
:
null
}
},
bind
:
{
selection
:
'{_selection}'
},
store
:
{
autoLoad
:
true
,
pageSize
:
400
,
sorters
:
[{
property
:
'OperateTime'
,
direction
:
'DESC'
}]
},
selModel
:
{
selType
:
'checkboxmodel'
,
checkboxSelect
:
true
,
pruneRemoved
:
false
,
extensible
:
'y'
},
features
:
[{
ftype
:
'groupingsummary'
,
groupHeaderTpl
:
[
'<div>{name:this.formatName} ({rows.length} 条)</div>'
,
{
formatName
:
function
(
name
)
{
return
name
;
}
}
]
}],
dockedItems
:
[{
xtype
:
'pagingtoolbar'
,
dock
:
'bottom'
,
displayInfo
:
true
,
items
:
[{
xtype
:
'button'
,
labelWidth
:
60
,
iconCls
:
'x-fa fa-check-square-o'
,
bind
:
{
text
:
'已选择{selectionCount}条记录,点击清除'
,
hidden
:
'{selectionCount==0}'
},
handler
:
'_onClearSelections'
}]
},
{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'menu'
,
items
:
[{
xtype
:
'combo'
,
queryMode
:
'local'
,
displayField
:
'displayInfo'
,
valueField
:
'isPayed'
,
value
:
false
,
editable
:
false
,
filterPickList
:
true
,
reference
:
'isPayed'
,
store
:
{
fields
:
[
'displayInfo'
,
'isPayed'
],
data
:
[{
displayInfo
:
'全部'
,
isPayed
:
null
},
{
displayInfo
:
'已收款'
,
isPayed
:
true
},
{
displayInfo
:
'未收款'
,
isPayed
:
false
}]
},
listeners
:
{
select
:
'_onSelectIsPayed'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'时间范围 开始'
,
format
:
'Y-m-d'
,
labelWidth
:
90
,
reference
:
'startTime'
,
editable
:
false
,
triggers
:
{
clear
:
{
weight
:
2
,
cls
:
'x-fa fa-times'
,
handler
:
'_cleanBeginOperateTime'
}
},
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'结束'
,
format
:
'Y-m-d'
,
labelWidth
:
30
,
reference
:
'endTime'
,
editable
:
false
,
triggers
:
{
clear
:
{
weight
:
2
,
cls
:
'x-fa fa-times'
,
handler
:
'_cleanEndOperateTime'
}
},
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'PayerName,OperatorName,OwnerName'
,
emptyText
:
'模糊搜索付款单位、操作人'
,
},
{
text
:
'创建账单'
,
iconCls
:
'x-fa fa-file-text-o'
,
handler
:
'_onGenerateBill'
},{
text
:
'删除'
,
iconCls
:
'x-fa fa-trash-o'
,
iconAlign
:
'left'
,
bind
:
{
disabled
:
'{!_selection}'
},
handler
:
'_onDeleteEntity'
}
]
}],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
false
},
items
:
[{
xtype
:
'rownumberer'
},
{
dataIndex
:
'OwnerName'
,
text
:
'所属部门'
,
width
:
120
,
// sortable: true,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'合计'
);
}
},
{
dataIndex
:
'PayerName'
,
text
:
'付款单位'
,
width
:
150
},
{
dataIndex
:
'OperateTime'
,
text
:
'操作日期'
,
width
:
100
,
// sortable: true,
renderer
:
Ext
.
util
.
Format
.
dateRenderer
(
'Y-m-d'
)
},
{
dataIndex
:
'Amount'
,
align
:
'right'
,
text
:
'账单金额'
,
width
:
100
,
renderer
:
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'¥{0}'
,
value
.
toFixed
(
2
));
}
},
{
dataIndex
:
'AmountPayment'
,
align
:
'right'
,
text
:
'已付金额'
,
renderer
:
'_renderAmount'
,
width
:
100
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'¥{0}'
,
value
.
toFixed
(
2
));
}
},
{
dataIndex
:
'OperatorName'
,
text
:
'操作人'
,
width
:
90
},
{
xtype
:
'actioncolumn'
,
text
:
'操作'
,
align
:
'center'
,
items
:
[{
text
:
'查看'
,
iconCls
:
'x-fa fa-search'
,
handler
:
'_onReadBill'
}],
width
:
50
},
{
dataIndex
:
'Summary'
,
text
:
'摘要'
,
width
:
200
},
{
dataIndex
:
'Remark'
,
text
:
'备注'
,
minWidth
:
100
,
flex
:
1
}]
},
listeners
:
{
activate
:
'_onActivate'
},
controller
:
{
_onClearSelections
:
function
()
{
this
.
getView
().
clearSelections
();
},
_onActivate
:
function
(
_ctrl
,
_eOpts
)
{
this
.
getView
().
reload
();
},
_renderAmount
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
_record
.
data
.
Amount
)
{
_meta
.
style
=
'background-color:#B4EEB4'
;
}
else
_meta
.
style
=
'background-color:#F0E68C'
;
return
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
(
_value
);
},
_onSelectMonth
:
function
(
_ctrl
,
_time
,
_eOpts
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_refs
=
_controller
.
getReferences
();
let
_startTime
=
_refs
.
startTime
.
value
;
let
_endTime
=
_refs
.
endTime
.
value
||
new
Date
();
if
(
_startTime
===
null
)
{
Ext
.
toast
(
"请选择开始时间!"
);
return
;
}
if
(
_startTime
>
_endTime
)
{
Ext
.
toast
(
"开始日期不能大于结束日期!"
);
return
;
}
delete
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
;
delete
_view
.
filter
.
OperateTimeLessThan
;
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
=
new
Date
(
_startTime
.
getFullYear
(),
_startTime
.
getMonth
(),
_startTime
.
getDate
());
_view
.
filter
.
OperateTimeLessThan
=
new
Date
(
_endTime
.
getFullYear
(),
_endTime
.
getMonth
(),
_endTime
.
getDate
()
+
1
);
_view
.
reload
();
},
_cleanBeginOperateTime
:
function
(
_ctrl
)
{
_ctrl
.
setValue
(
null
);
let
_me
=
this
;
let
_view
=
_me
.
getView
();
if
(
_view
.
filter
===
null
)
_view
.
setFilter
({});
delete
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
;
_view
.
reload
();
},
_cleanEndOperateTime
:
function
(
_ctrl
)
{
_ctrl
.
setValue
(
null
);
let
_me
=
this
;
let
_view
=
_me
.
getView
();
if
(
_view
.
filter
===
null
)
_view
.
setFilter
({});
delete
_view
.
filter
.
OperateTimeLessThan
;
_view
.
reload
();
},
_onSelectIsPayed
:
function
(
_ctrl
,
_record
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
_view
.
filter
.
IsPayed
=
_record
.
data
.
isPayed
;
_view
.
reload
();
},
_onDeleteEntity
:
function
(
_ctrl
){
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
_view
.
deleteEntity
();
},
_onGenerateBill
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Bill.Form'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
1200
,
height
:
700
,
modal
:
true
,
maximizable
:
true
,
resizable
:
true
,
items
:
[
_form
]
});
_win
.
show
();
_form
.
on
(
'entityCreated'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
_view
.
reload
();
});
},
_onReadBill
:
function
(
_ctrl
,
_recIndex
,
_cellIndex
,
_item
,
_e
,
_record
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.Settlement/Query.json'
,
params
:
{
BillKvid
:
_record
.
data
.
Kvid
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Bill.Form'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
1200
,
height
:
680
,
modal
:
true
,
maximizable
:
true
,
resizable
:
true
,
items
:
[
_form
]
});
_win
.
show
();
_form
.
setOwner
(
_record
.
data
,
_rtns
.
Results
);
_form
.
on
(
'entityDeleted'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
_view
.
reload
();
});
_win
.
on
(
'close'
,
function
(){
_view
.
reload
();
});
},
failure
:
function
(
_response
)
{
Ext
.
toast
(
'查看失败,请重试!'
);
}
});
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.View.Kivii.Finances.Invoice.Debit.List.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.View.Kivii.Finances.Invoice.Debit.List'
,
{
extend
:
'System.Control.EntityList'
,
entityType
:
'Kivii.Finances.Entities.Invoice'
,
xtype
:
'App.View.Kivii.Finances.Invoice.Debit.List'
,
dataSource
:
'/Restful/Kivii.Finances.Entities.Invoice/QueryEx.json'
,
title
:
'借票管理'
,
iconCls
:
'x-fa fa-circle-o-notch'
,
filter
:
{
BeginTime
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
1
),
EndTime
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
new
Date
().
getDate
()
+
1
),
Debited
:
false
,
Category
:
'Debit'
,
OwnerKvid
:
KiviiContext
.
CurrentMember
.
DepartmentKvid
},
viewModel
:
{
data
:
{
_selection
:
null
,
paymentKvid
:
null
,
}
},
bind
:
{
selection
:
'{_selection}'
},
store
:
{
autoLoad
:
true
,
pageSize
:
400
,
sorters
:
[{
property
:
'OperateTime'
,
direction
:
'DESC'
}]
},
selModel
:
{
selType
:
'checkboxmodel'
,
checkboxSelect
:
true
,
pruneRemoved
:
false
,
extensible
:
'y'
},
dockedItems
:
[{
xtype
:
'pagingtoolbar'
,
dock
:
'bottom'
,
displayInfo
:
true
,
items
:
[{
xtype
:
'button'
,
labelWidth
:
60
,
iconCls
:
'x-fa fa-check-square-o'
,
bind
:
{
text
:
'已选择{selectionCount}条记录,点击清除'
,
hidden
:
'{selectionCount==0}'
},
handler
:
'_onClearSelections'
}]
},
{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'menu'
,
items
:
[{
xtype
:
'combo'
,
queryMode
:
'local'
,
displayField
:
'displayInfo'
,
valueField
:
'debited'
,
value
:
false
,
editable
:
false
,
filterPickList
:
true
,
reference
:
'debited'
,
store
:
{
fields
:
[
'displayInfo'
,
'debited'
],
data
:
[{
// displayInfo: '全部',
// debited: null
// }, {
displayInfo
:
'未到账借票'
,
debited
:
false
},
{
displayInfo
:
'已到账借票'
,
debited
:
true
}]
},
triggers
:
{
clear
:
{
weight
:
2
,
cls
:
'x-fa fa-times'
,
handler
:
'_cleanDebited'
}
},
listeners
:
{
select
:
'_onSelectDebited'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'开票日期 开始'
,
format
:
'Y-m-d'
,
labelWidth
:
90
,
reference
:
'startTime'
,
editable
:
false
,
value
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
1
),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'结束'
,
format
:
'Y-m-d'
,
labelWidth
:
30
,
reference
:
'endTime'
,
editable
:
false
,
value
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
new
Date
().
getDate
()
+
1
),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'SerialNumber,PayerName,OperatorName'
,
emptyText
:
'模糊搜索流水号、付款单位、申请人'
,
},
{
xtype
:
'splitbutton'
,
text
:
'借票冲销'
,
iconCls
:
'x-fa fa-sign-in'
,
handler
:
'_onDebiting'
,
menu
:
[{
text
:
'冲销撤销'
,
iconCls
:
'x-fa fa-sign-out'
,
handler
:
'_onDebitCancel'
}],
bind
:
{
disabled
:
'{!_selection}'
}
}
]
}],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
true
},
items
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
,
resizable
:
false
},
{
text
:
'发票编码'
,
dataIndex
:
'SerialNumber'
,
width
:
90
},
{
text
:
'所属部门'
,
dataIndex
:
'OwnerName'
,
width
:
100
},
{
text
:
'发票抬头'
,
dataIndex
:
'PayerName'
,
renderer
:
'_renderPayerName'
,
width
:
200
},
{
text
:
'金额(含税)'
,
align
:
'right'
,
dataIndex
:
'Amount'
,
renderer
:
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
,
width
:
110
},
{
text
:
'税额'
,
align
:
'right'
,
dataIndex
:
'AmountTax'
,
renderer
:
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
,
width
:
100
},
{
text
:
'金额(不含税)'
,
align
:
'right'
,
dataIndex
:
'AmountUntaxed'
,
renderer
:
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
,
width
:
120
},
{
xtype
:
'datecolumn'
,
text
:
'开票日期'
,
format
:
'Y-m-d'
,
dataIndex
:
'OperateTime'
,
width
:
100
},
{
text
:
'收款金额'
,
align
:
'right'
,
dataIndex
:
'AmountPayment'
,
renderer
:
'_renderAmount'
,
width
:
110
},
{
xtype
:
'datecolumn'
,
text
:
'收款日期'
,
format
:
'Y-m-d'
,
dataIndex
:
'PayedTime'
,
width
:
100
},
{
text
:
'申请人'
,
dataIndex
:
'OperatorName'
,
renderer
:
'_renderOperatorName'
,
width
:
140
},
{
text
:
'类型'
,
dataIndex
:
'Type'
,
renderer
:
'_renderType'
,
width
:
130
},
{
text
:
'分类'
,
dataIndex
:
'Category'
,
renderer
:
'_renderCategory'
,
width
:
90
},{
text
:
'税号'
,
dataIndex
:
'PayerTaxNumber'
,
width
:
200
},
{
text
:
'地址'
,
dataIndex
:
'PayerCompanyAddress'
,
renderer
:
'_renderPayerCompanyAddress'
,
width
:
260
},
{
text
:
'开户行'
,
dataIndex
:
'PayerRegisteredBank'
,
renderer
:
'_renderPayerRegisteredBank'
,
width
:
260
},
{
text
:
'备注'
,
dataIndex
:
'Remark'
,
minWidth
:
180
,
flex
:
1
}]
},
listeners
:
{
activate
:
'_onActivate'
},
controller
:
{
_onClearSelections
:
function
()
{
this
.
getView
().
clearSelections
();
},
_onActivate
:
function
(
_ctrl
,
_eOpts
)
{
this
.
getView
().
reload
();
},
_renderAmount
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
_record
.
data
.
Amount
)
{
_meta
.
style
=
'background-color:#B4EEB4'
;
}
return
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
(
_value
);
},
_renderOperatorName
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_record
.
data
.
hasOwnProperty
(
'OwnerName'
))
return
_value
+
'('
+
_record
.
data
.
OwnerName
+
')'
;
return
_value
;
},
_renderPayerName
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_record
.
data
.
hasOwnProperty
(
'OffsetKvid'
)
&&
_record
.
data
.
OffsetKvid
!==
'00000000-0000-0000-0000-000000000000'
)
{
_meta
.
style
=
'background-color:#FFC0CB'
;
return
_value
+
'[已作废]'
;
}
return
_value
;
},
_renderType
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
"Debit"
)
{
_meta
.
style
=
'background-color:#B4EEB4'
;
return
"存在对应收款"
;
}
return
_value
;
},
_renderCategory
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
"Debit"
)
{
_meta
.
style
=
'background-color:#F3F781'
;
return
"借票"
;
}
if
(
_value
===
"Payment"
)
{
_meta
.
style
=
'background-color:#B4EEB4'
;
return
"到账"
;
}
return
_value
;
},
_renderPayerCompanyAddress
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
return
_value
+
_record
.
data
.
PayerPhone
;
},
_renderPayerRegisteredBank
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
return
_value
+
_record
.
data
.
PayerBankAccount
;
},
_onSelectDebited
:
function
(
_ctrl
,
_record
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
delete
_view
.
filter
.
Debited
;
_view
.
filter
.
Debited
=
_record
.
data
.
debited
;
_view
.
reload
();
},
_cleanDebited
:
function
(
_ctrl
)
{
_ctrl
.
setValue
(
''
);
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
if
(
_view
.
filter
===
null
)
_view
.
setFilter
({});
delete
_view
.
filter
.
Debited
;
_view
.
filter
.
Debited
=
null
;
_view
.
reload
();
},
_onSelectMonth
:
function
(
_ctrl
,
_time
,
_eOpts
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_refs
=
_controller
.
getReferences
();
let
_startTime
=
_refs
.
startTime
.
value
;
let
_endTime
=
_refs
.
endTime
.
value
||
new
Date
();
if
(
_startTime
===
null
)
{
Ext
.
toast
(
"请选择开始时间!"
);
return
;
}
if
(
_startTime
>
_endTime
)
{
Ext
.
toast
(
"开始日期不能大于结束日期!"
);
return
;
}
delete
_view
.
filter
.
BeginTime
;
delete
_view
.
filter
.
EndTime
;
_view
.
filter
.
BeginTime
=
new
Date
(
_startTime
.
getFullYear
(),
_startTime
.
getMonth
(),
_startTime
.
getDate
());
_view
.
filter
.
EndTime
=
new
Date
(
_endTime
.
getFullYear
(),
_endTime
.
getMonth
(),
_endTime
.
getDate
()
+
1
);
_view
.
reload
();
},
_onDebiting
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_kvids
=
[];
let
_debitAmount
=
0
;
let
_select
=
_vm
.
data
.
selections
||
[];
if
(
_select
.
length
<=
0
)
{
Ext
.
toast
(
"请选中要冲销的借票!"
);
return
;
}
for
(
let
_i
=
0
;
_i
<
_select
.
length
;
_i
++
)
{
let
_item
=
_select
[
_i
].
data
;
_kvids
.
push
(
_item
.
Kvid
);
_debitAmount
+=
_item
.
Amount
-
_item
.
AmountPayment
;
}
if
(
_debitAmount
<=
0
)
{
Ext
.
toast
(
"所选发票无需冲销!"
);
return
;
}
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Debiting.Payment.Selector'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
900
,
height
:
450
,
modal
:
true
,
resizable
:
false
,
items
:
[
_form
]
});
_win
.
show
();
_form
.
on
(
'entitySelected'
,
function
(
_selector
,
_entity
)
{
_win
.
close
();
let
_payment
=
_entity
[
0
];
_vm
.
set
(
'paymentKvid'
,
_payment
.
Kvid
);
let
_amount
=
_payment
.
Amount
-
_payment
.
AmountInvoice
;
let
_msg
=
Ext
.
create
(
'Ext.window.MessageBox'
,
{
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
closeAction
:
'destroy'
});
_msg
.
confirm
(
_ctrl
.
text
,
_payment
.
PayerName
+
"<br/>借票金额:<strong>"
+
_debitAmount
.
toFixed
(
2
)
+
"</strong><br/>所选金额:<strong>"
+
_amount
+
"</strong>?"
,
_controller
.
_debitingInvoice
,
_controller
);
});
},
_debitingInvoice
:
function
(
_optional
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
if
(
_optional
!=
"yes"
)
{
_vm
.
set
(
'paymentKvid'
,
null
);
return
;
}
let
_kvids
=
[];
let
_select
=
_vm
.
data
.
selections
||
[];
if
(
_select
.
length
<=
0
)
{
Ext
.
toast
(
"请选中要冲销的借票!"
);
_vm
.
set
(
'paymentKvid'
,
null
);
return
;
}
for
(
let
_i
=
0
;
_i
<
_select
.
length
;
_i
++
)
{
let
_item
=
_select
[
_i
].
data
;
_kvids
.
push
(
_item
.
Kvid
);
}
if
(
_vm
.
data
.
paymentKvid
===
null
)
return
;
let
_jsonData
=
{};
_jsonData
.
PaymentKvid
=
_vm
.
data
.
paymentKvid
;
_jsonData
.
InvoiceKvids
=
_kvids
;
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.Invoice/Debiting.json'
,
jsonData
:
_jsonData
,
success
:
function
(
_response
)
{
var
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
_view
.
reload
();
Ext
.
toast
(
'冲销成功!'
);
},
failure
:
function
(
_response
)
{
_view
.
reload
();
}
});
},
_onDebitCancel
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_kvids
=
[];
let
_select
=
_vm
.
data
.
selections
||
[];
if
(
_select
.
length
<=
0
)
{
Ext
.
toast
(
"请选中要撤销冲销的发票!"
);
return
;
}
let
_msg
=
Ext
.
create
(
'Ext.window.MessageBox'
,
{
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
closeAction
:
'destroy'
});
_msg
.
confirm
(
_ctrl
.
text
,
"确认撤销冲销选中的发票?<br />撤销后发票将会以借票未到账的形式出现!"
,
_controller
.
_debitCancel
,
_controller
);
},
_debitCancel
:
function
(
_optional
)
{
if
(
_optional
!=
"yes"
)
{
return
;
}
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_kvids
=
[];
let
_select
=
_vm
.
data
.
selections
||
[];
if
(
_select
.
length
<=
0
)
{
Ext
.
toast
(
"请选中要撤销冲销的发票!"
);
return
;
}
for
(
let
_i
=
0
;
_i
<
_select
.
length
;
_i
++
)
{
let
_item
=
_select
[
_i
].
data
;
if
(
_item
.
hasOwnProperty
(
'OffsetKvid'
)
&&
_item
.
OffsetKvid
!==
'00000000-0000-0000-0000-000000000000'
)
{
Ext
.
toast
(
"所选发票已作废,无法撤销冲销!"
);
return
;
}
_kvids
.
push
(
_item
.
Kvid
);
}
let
_jsonData
=
{};
_jsonData
.
InvoiceKvids
=
_kvids
;
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.Invoice/DebitCancel.json'
,
jsonData
:
_jsonData
,
success
:
function
(
_response
)
{
var
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
_view
.
reload
();
Ext
.
toast
(
'撤销成功!'
);
},
failure
:
function
(
_response
)
{
_view
.
reload
();
}
});
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.View.Kivii.Finances.Invoice.List.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.View.Kivii.Finances.Invoice.List'
,
{
extend
:
'System.Control.EntityList'
,
entityType
:
'Kivii.Finances.Entities.Invoice'
,
xtype
:
'App.View.Kivii.Finances.Invoice.List'
,
dataSource
:
'/Restful/Kivii.Finances.Entities.Invoice/QueryEx.json'
,
title
:
'发票管理'
,
iconCls
:
'x-fa fa-money'
,
filter
:
{
BeginTime
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
1
),
EndTime
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
new
Date
().
getDate
()
+
1
),
Debited
:
false
,
OwnerKvid
:
KiviiContext
.
CurrentMember
.
DepartmentKvid
},
viewModel
:
{
data
:
{
_selection
:
null
,
paymentKvid
:
null
,
}
},
bind
:
{
selection
:
'{_selection}'
},
store
:
{
autoLoad
:
true
,
pageSize
:
400
,
sorters
:
[{
property
:
'OperateTime'
,
direction
:
'DESC'
}]
},
selModel
:
{
selType
:
'checkboxmodel'
,
checkboxSelect
:
true
,
pruneRemoved
:
false
,
extensible
:
'y'
},
dockedItems
:
[{
xtype
:
'pagingtoolbar'
,
dock
:
'bottom'
,
displayInfo
:
true
,
items
:
[{
xtype
:
'button'
,
labelWidth
:
60
,
iconCls
:
'x-fa fa-check-square-o'
,
bind
:
{
text
:
'已选择{selectionCount}条记录,点击清除'
,
hidden
:
'{selectionCount==0}'
},
handler
:
'_onClearSelections'
}]
},
{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'menu'
,
items
:
[{
xtype
:
'combo'
,
queryMode
:
'local'
,
displayField
:
'displayInfo'
,
valueField
:
'debited'
,
value
:
false
,
editable
:
false
,
filterPickList
:
true
,
reference
:
'debited'
,
store
:
{
fields
:
[
'displayInfo'
,
'debited'
],
data
:
[{
// displayInfo: '全部',
// debited: null
// }, {
displayInfo
:
'未到账发票'
,
debited
:
false
},
{
displayInfo
:
'已到账发票'
,
debited
:
true
}]
},
triggers
:
{
clear
:
{
weight
:
2
,
cls
:
'x-fa fa-times'
,
handler
:
'_cleanDebited'
}
},
listeners
:
{
select
:
'_onSelectDebited'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'开票日期 开始'
,
format
:
'Y-m-d'
,
labelWidth
:
90
,
reference
:
'startTime'
,
editable
:
false
,
value
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
1
),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'结束'
,
format
:
'Y-m-d'
,
labelWidth
:
30
,
reference
:
'endTime'
,
editable
:
false
,
value
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
new
Date
().
getDate
()
+
1
),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'SerialNumber,PayerName,OperatorName'
,
emptyText
:
'模糊搜索流水号、付款单位、申请人'
,
},
/*{
xtype: 'splitbutton',
text: '借票冲销',
iconCls: 'x-fa fa-sign-in',
handler: '_onDebiting',
menu: [{
text: '冲销撤销',
iconCls: 'x-fa fa-sign-out',
handler: '_onDebitCancel'
}],
bind: {
disabled: '{!_selection}'
}
},*/
{
text
:
'作废'
,
iconCls
:
'x-fa fa-trash'
,
iconAlign
:
'left'
,
handler
:
'_onOffsetInvoice'
,
bind
:
{
disabled
:
'{!_selection}'
}
}
]
}],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
true
},
items
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
,
resizable
:
false
},
{
text
:
'发票编码'
,
dataIndex
:
'SerialNumber'
,
width
:
90
},
{
text
:
'所属部门'
,
dataIndex
:
'OwnerName'
,
width
:
100
},
{
text
:
'发票抬头'
,
dataIndex
:
'PayerName'
,
renderer
:
'_renderPayerName'
,
width
:
200
},
{
text
:
'金额(含税)'
,
align
:
'right'
,
dataIndex
:
'Amount'
,
renderer
:
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
,
width
:
110
},
{
text
:
'税额'
,
align
:
'right'
,
dataIndex
:
'AmountTax'
,
renderer
:
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
,
width
:
100
},
{
text
:
'金额(不含税)'
,
align
:
'right'
,
dataIndex
:
'AmountUntaxed'
,
renderer
:
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
,
width
:
120
},
{
xtype
:
'datecolumn'
,
text
:
'开票日期'
,
format
:
'Y-m-d'
,
dataIndex
:
'OperateTime'
,
width
:
100
},
{
text
:
'收款金额'
,
align
:
'right'
,
dataIndex
:
'AmountPayment'
,
renderer
:
'_renderAmount'
,
width
:
110
},
{
xtype
:
'datecolumn'
,
text
:
'收款日期'
,
format
:
'Y-m-d'
,
dataIndex
:
'PayedTime'
,
width
:
100
},
{
text
:
'申请人'
,
dataIndex
:
'OperatorName'
,
renderer
:
'_renderOperatorName'
,
width
:
140
},
{
text
:
'类型'
,
dataIndex
:
'Type'
,
width
:
130
},
{
text
:
'分类'
,
dataIndex
:
'Category'
,
renderer
:
'_renderCategory'
,
width
:
90
},{
text
:
'税号'
,
dataIndex
:
'PayerTaxNumber'
,
width
:
200
},
{
text
:
'地址'
,
dataIndex
:
'PayerCompanyAddress'
,
renderer
:
'_renderPayerCompanyAddress'
,
width
:
260
},
{
text
:
'开户行'
,
dataIndex
:
'PayerRegisteredBank'
,
renderer
:
'_renderPayerRegisteredBank'
,
width
:
260
},
{
text
:
'备注'
,
dataIndex
:
'Remark'
,
minWidth
:
180
,
flex
:
1
}]
},
listeners
:
{
activate
:
'_onActivate'
},
controller
:
{
_onClearSelections
:
function
()
{
this
.
getView
().
clearSelections
();
},
_onActivate
:
function
(
_ctrl
,
_eOpts
)
{
this
.
getView
().
reload
();
},
_renderAmount
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
_record
.
data
.
Amount
)
{
_meta
.
style
=
'background-color:#B4EEB4'
;
}
return
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
(
_value
);
},
_renderOperatorName
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_record
.
data
.
hasOwnProperty
(
'OwnerName'
))
return
_value
+
'('
+
_record
.
data
.
OwnerName
+
')'
;
return
_value
;
},
_renderPayerName
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_record
.
data
.
hasOwnProperty
(
'OffsetKvid'
)
&&
_record
.
data
.
OffsetKvid
!==
'00000000-0000-0000-0000-000000000000'
)
{
_meta
.
style
=
'background-color:#FFC0CB'
;
return
_value
+
'[已作废]'
;
}
return
_value
;
},
_renderCategory
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
"Debit"
)
{
_meta
.
style
=
'background-color:#F3F781'
;
return
"借票"
;
}
if
(
_value
===
"Payment"
)
{
_meta
.
style
=
'background-color:#B4EEB4'
;
return
"到账"
;
}
return
_value
;
},
_renderPayerCompanyAddress
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
return
_value
+
_record
.
data
.
PayerPhone
;
},
_renderPayerRegisteredBank
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
return
_value
+
_record
.
data
.
PayerBankAccount
;
},
_onSelectDebited
:
function
(
_ctrl
,
_record
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
delete
_view
.
filter
.
Debited
;
_view
.
filter
.
Debited
=
_record
.
data
.
debited
;
_view
.
reload
();
},
_cleanDebited
:
function
(
_ctrl
)
{
_ctrl
.
setValue
(
''
);
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
if
(
_view
.
filter
===
null
)
_view
.
setFilter
({});
delete
_view
.
filter
.
Debited
;
_view
.
filter
.
Debited
=
null
;
_view
.
reload
();
},
_onSelectMonth
:
function
(
_ctrl
,
_time
,
_eOpts
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_refs
=
_controller
.
getReferences
();
let
_startTime
=
_refs
.
startTime
.
value
;
let
_endTime
=
_refs
.
endTime
.
value
||
new
Date
();
if
(
_startTime
===
null
)
{
Ext
.
toast
(
"请选择开始时间!"
);
return
;
}
if
(
_startTime
>
_endTime
)
{
Ext
.
toast
(
"开始日期不能大于结束日期!"
);
return
;
}
delete
_view
.
filter
.
BeginTime
;
delete
_view
.
filter
.
EndTime
;
_view
.
filter
.
BeginTime
=
new
Date
(
_startTime
.
getFullYear
(),
_startTime
.
getMonth
(),
_startTime
.
getDate
());
_view
.
filter
.
EndTime
=
new
Date
(
_endTime
.
getFullYear
(),
_endTime
.
getMonth
(),
_endTime
.
getDate
()
+
1
);
_view
.
reload
();
},
_onDebiting
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_kvids
=
[];
let
_debitAmount
=
0
;
let
_select
=
_vm
.
data
.
selections
||
[];
if
(
_select
.
length
<=
0
)
{
Ext
.
toast
(
"请选中要冲销的借票!"
);
return
;
}
for
(
let
_i
=
0
;
_i
<
_select
.
length
;
_i
++
)
{
let
_item
=
_select
[
_i
].
data
;
_kvids
.
push
(
_item
.
Kvid
);
_debitAmount
+=
_item
.
Amount
-
_item
.
AmountPayment
;
}
if
(
_debitAmount
<=
0
)
{
Ext
.
toast
(
"所选发票无需冲销!"
);
return
;
}
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Debiting.Payment.Selector'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
900
,
height
:
450
,
modal
:
true
,
resizable
:
false
,
items
:
[
_form
]
});
_win
.
show
();
_form
.
on
(
'entitySelected'
,
function
(
_selector
,
_entity
)
{
_win
.
close
();
let
_payment
=
_entity
[
0
];
_vm
.
set
(
'paymentKvid'
,
_payment
.
Kvid
);
let
_amount
=
_payment
.
Amount
-
_payment
.
AmountInvoice
;
let
_msg
=
Ext
.
create
(
'Ext.window.MessageBox'
,
{
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
closeAction
:
'destroy'
});
_msg
.
confirm
(
_ctrl
.
text
,
_payment
.
PayerName
+
"<br/>借票金额:<strong>"
+
_debitAmount
.
toFixed
(
2
)
+
"</strong><br/>所选金额:<strong>"
+
_amount
+
"</strong>?"
,
_controller
.
_debitingInvoice
,
_controller
);
});
},
_debitingInvoice
:
function
(
_optional
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
if
(
_optional
!=
"yes"
)
{
_vm
.
set
(
'paymentKvid'
,
null
);
return
;
}
let
_kvids
=
[];
let
_select
=
_vm
.
data
.
selections
||
[];
if
(
_select
.
length
<=
0
)
{
Ext
.
toast
(
"请选中要冲销的借票!"
);
_vm
.
set
(
'paymentKvid'
,
null
);
return
;
}
for
(
let
_i
=
0
;
_i
<
_select
.
length
;
_i
++
)
{
let
_item
=
_select
[
_i
].
data
;
_kvids
.
push
(
_item
.
Kvid
);
}
if
(
_vm
.
data
.
paymentKvid
===
null
)
return
;
let
_jsonData
=
{};
_jsonData
.
PaymentKvid
=
_vm
.
data
.
paymentKvid
;
_jsonData
.
InvoiceKvids
=
_kvids
;
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.Invoice/Debiting.json'
,
jsonData
:
_jsonData
,
success
:
function
(
_response
)
{
var
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
_view
.
reload
();
Ext
.
toast
(
'冲销成功!'
);
},
failure
:
function
(
_response
)
{
_view
.
reload
();
}
});
},
_onDebitCancel
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_kvids
=
[];
let
_select
=
_vm
.
data
.
selections
||
[];
if
(
_select
.
length
<=
0
)
{
Ext
.
toast
(
"请选中要撤销冲销的发票!"
);
return
;
}
let
_msg
=
Ext
.
create
(
'Ext.window.MessageBox'
,
{
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
closeAction
:
'destroy'
});
_msg
.
confirm
(
_ctrl
.
text
,
"确认撤销冲销选中的发票?<br />撤销后发票将会以借票未到账的形式出现!"
,
_controller
.
_debitCancel
,
_controller
);
},
_debitCancel
:
function
(
_optional
)
{
if
(
_optional
!=
"yes"
)
{
return
;
}
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_kvids
=
[];
let
_select
=
_vm
.
data
.
selections
||
[];
if
(
_select
.
length
<=
0
)
{
Ext
.
toast
(
"请选中要撤销冲销的发票!"
);
return
;
}
for
(
let
_i
=
0
;
_i
<
_select
.
length
;
_i
++
)
{
let
_item
=
_select
[
_i
].
data
;
if
(
_item
.
hasOwnProperty
(
'OffsetKvid'
)
&&
_item
.
OffsetKvid
!==
'00000000-0000-0000-0000-000000000000'
)
{
Ext
.
toast
(
"所选发票已作废,无法撤销冲销!"
);
return
;
}
_kvids
.
push
(
_item
.
Kvid
);
}
let
_jsonData
=
{};
_jsonData
.
InvoiceKvids
=
_kvids
;
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.Invoice/DebitCancel.json'
,
jsonData
:
_jsonData
,
success
:
function
(
_response
)
{
var
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
_view
.
reload
();
Ext
.
toast
(
'撤销成功!'
);
},
failure
:
function
(
_response
)
{
_view
.
reload
();
}
});
},
_onOffsetInvoice
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
Ext
.
MessageBox
.
show
({
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
msg
:
'请填写原因:'
,
width
:
300
,
buttons
:
Ext
.
MessageBox
.
OKCANCEL
,
multiline
:
true
,
scope
:
this
,
fn
:
this
.
_offsetInvoice
,
animateTarget
:
_ctrl
});
},
_offsetInvoice
:
function
(
_btn
,
_text
,
_ctrl
)
{
if
(
_btn
!==
'ok'
)
return
;
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_kvids
=
[];
let
_select
=
_vm
.
data
.
selections
||
[];
if
(
_select
.
length
<=
0
)
{
Ext
.
toast
(
"请选中要作废的发票!"
);
return
;
}
for
(
let
_i
=
0
;
_i
<
_select
.
length
;
_i
++
)
{
let
_item
=
_select
[
_i
].
data
;
_kvids
.
push
(
_item
.
Kvid
);
}
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.Invoice/Offset.json'
,
jsonData
:
{
Kvids
:
_kvids
,
Remark
:
_text
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
Ext
.
toast
(
'作废成功!'
);
_view
.
reload
();
},
failure
:
function
(
_response
)
{
_controller
.
unmask
();
}
});
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.View.Kivii.Finances.InvoiceApply.Current.List.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.View.Kivii.Finances.InvoiceApply.Current.List'
,
{
extend
:
'System.Control.EntityList'
,
entityType
:
'Kivii.Finances.Entities.InvoiceApply'
,
xtype
:
'App.View.Kivii.Finances.InvoiceApply.Current.List'
,
dataSource
:
'/Restful/Kivii.Finances.Entities.InvoiceApply/QueryEx.json'
,
title
:
'我的申请'
,
iconCls
:
'x-fa fa-circle-o-notch'
,
filter
:
{
OwnerKvid
:
KiviiContext
.
CurrentMember
.
DepartmentKvid
,
OperateTimeGreaterThanOrEqualTo
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
1
),
OperateTimeLessThan
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
new
Date
().
getDate
()
+
1
)
},
viewModel
:
{
data
:
{
_selection
:
null
}
},
bind
:
{
selection
:
'{_selection}'
},
store
:
{
autoLoad
:
true
,
pageSize
:
100
,
sorters
:
[{
property
:
'OperateTime'
,
direction
:
'DESC'
}]
},
dockedItems
:
[{
xtype
:
'pagingtoolbar'
,
dock
:
'bottom'
,
displayInfo
:
true
,
items
:
[{
xtype
:
'button'
,
labelWidth
:
60
,
iconCls
:
'x-fa fa-check-square-o'
,
bind
:
{
text
:
'已选择{selectionCount}条记录,点击清除'
,
hidden
:
'{selectionCount==0}'
},
handler
:
'_onClearSelections'
}]
},
{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'menu'
,
items
:
[{
xtype
:
'combo'
,
queryMode
:
'local'
,
displayField
:
'displayInfo'
,
valueField
:
'status'
,
// value: 50,
width
:
130
,
editable
:
false
,
filterPickList
:
true
,
reference
:
'status'
,
store
:
{
fields
:
[
'displayInfo'
,
'status'
],
data
:
[{
displayInfo
:
'未开票'
,
status
:
50
},
{
displayInfo
:
'已开票'
,
status
:
51
}]
},
triggers
:
{
clear
:
{
weight
:
2
,
cls
:
'x-fa fa-times'
,
handler
:
'_cleanStatus'
}
},
listeners
:
{
select
:
'_onSelectStatus'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'申请日期 开始'
,
format
:
'Y-m-d'
,
labelWidth
:
90
,
width
:
220
,
reference
:
'startTime'
,
editable
:
false
,
value
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
1
),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'结束'
,
format
:
'Y-m-d'
,
labelWidth
:
30
,
width
:
160
,
reference
:
'endTime'
,
editable
:
false
,
value
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
new
Date
().
getDate
()
+
1
),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'SerialNumber,PayerName,OperatorName'
,
emptyText
:
'模糊搜索流水号、付款单位、申请人'
,
},
{
text
:
'借票申请'
,
iconCls
:
'x-fa fa-circle-o-notch'
,
type
:
'Debit'
,
handler
:
'_onCreateApply'
},
{
text
:
'撤销'
,
iconCls
:
'x-fa fa-rotate-left'
,
iconAlign
:
'left'
,
handler
:
'_onRejectApply'
,
bind
:
{
disabled
:
'{!_selection}'
}
}
]
}],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
true
},
items
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
,
resizable
:
false
},
{
text
:
'流水号'
,
dataIndex
:
'SerialNumber'
,
width
:
120
},
{
text
:
'付款单位'
,
dataIndex
:
'PayerName'
,
width
:
200
},
{
xtype
:
'datecolumn'
,
text
:
'申请日期'
,
format
:
'Y-m-d'
,
dataIndex
:
'OperateTime'
,
width
:
120
},
{
text
:
'申请金额'
,
align
:
'right'
,
dataIndex
:
'Amount'
,
renderer
:
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
,
width
:
110
},
{
text
:
'申请人'
,
dataIndex
:
'OperatorName'
,
renderer
:
'_renderOperatorName'
,
width
:
140
},
{
text
:
'申请类型'
,
dataIndex
:
'OperateType'
,
renderer
:
'_renderOperateType'
,
width
:
100
},
{
text
:
'状态'
,
dataIndex
:
'Status'
,
renderer
:
'_renderStatus'
,
width
:
100
},
{
text
:
'税号'
,
dataIndex
:
'PayerTaxNumber'
,
width
:
200
},
{
text
:
'地址'
,
dataIndex
:
'PayerCompanyAddress'
,
renderer
:
'_renderPayerCompanyAddress'
,
width
:
260
},
{
text
:
'开户行'
,
dataIndex
:
'PayerRegisteredBank'
,
renderer
:
'_renderPayerRegisteredBank'
,
width
:
260
},
{
text
:
'摘要'
,
dataIndex
:
'Summary'
,
minWidth
:
200
,
flex
:
1
}]
},
listeners
:
{
activate
:
'_onActivate'
},
controller
:
{
_onClearSelections
:
function
()
{
this
.
getView
().
clearSelections
();
},
_onActivate
:
function
(
_ctrl
,
_eOpts
)
{
this
.
getView
().
reload
();
},
_renderOperatorName
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_record
.
data
.
hasOwnProperty
(
'OwnerName'
))
return
_value
+
'('
+
_record
.
data
.
OwnerName
+
')'
;
return
_value
;
},
_renderOperateType
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
"Payment"
)
{
_meta
.
style
=
'background-color:#D1FCA5'
;
if
(
_record
.
data
.
Type
===
'VAT'
)
return
"收款(普票)"
;
return
"收款"
;
}
if
(
_value
===
"Debit"
)
{
_meta
.
style
=
'background-color:#F3F781'
;
if
(
_record
.
data
.
Type
===
'VAT'
)
return
"借票(普票)"
;
return
"借票"
;
}
if
(
_value
===
"Cash"
)
{
if
(
_record
.
data
.
Type
===
'VAT'
)
return
"现金(普票)"
;
return
"现金"
;
}
if
(
_value
===
"Pos"
)
{
if
(
_record
.
data
.
Type
===
'VAT'
)
return
"刷卡(普票)"
;
return
"刷卡"
;
}
if
(
_value
===
"AliPay"
)
{
if
(
_record
.
data
.
Type
===
'VAT'
)
return
"支付宝(普票)"
;
return
"支付宝"
;
}
if
(
_value
===
"WeChat"
)
{
if
(
_record
.
data
.
Type
===
'VAT'
)
return
"微信(普票)"
;
return
"微信"
;
}
if
(
_record
.
data
.
Type
===
'VAT'
)
return
_value
+
"(普票)"
;
return
_value
;
},
_renderStatus
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
<=
25
)
{
_meta
.
style
=
'background-color:#D5F5E3'
;
return
"审批中..."
;
}
if
(
_value
===
50
)
{
_meta
.
style
=
'background-color:#D6EAF8'
;
return
"已批准"
;
}
if
(
_value
===
51
)
{
_meta
.
style
=
'background-color:#D6EAF8'
;
return
"开票列队中"
;
}
if
(
_value
===
52
)
{
_meta
.
style
=
'background-color:#D6EAF8'
;
return
"开票中"
;
}
if
(
_value
===
55
||
_value
===
56
)
{
_meta
.
style
=
'background-color:#F5B7B1'
;
return
"开票失败"
;
}
if
(
_value
===
57
)
{
_meta
.
style
=
'background-color:#F5B7B1'
;
return
"驳回"
;
}
if
(
_value
===
58
)
{
_meta
.
style
=
'background-color:#F5B7B1'
;
return
"发票已作废"
;
}
if
(
_value
===
59
)
{
_meta
.
style
=
'background-color:#F5B7B1'
;
return
"申请已合并"
;
}
if
(
_value
===
60
)
{
_meta
.
style
=
'background-color:#F5B7B1'
;
return
"红字冲销"
;
}
if
(
_value
===
2147483647
)
{
_meta
.
style
=
'background-color:#ABEBC6'
;
return
"已开具"
;
}
return
"未处理"
;
},
_renderPayerCompanyAddress
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
return
_value
+
_record
.
data
.
PayerPhone
;
},
_renderPayerRegisteredBank
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
return
_value
+
_record
.
data
.
PayerBankAccount
;
},
_onSelectStatus
:
function
(
_ctrl
,
_record
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
delete
_view
.
filter
.
StatusGreaterThanOrEqualTo
;
delete
_view
.
filter
.
StatusLessThanOrEqualTo
;
if
(
_record
.
data
.
status
===
50
)
{
_view
.
filter
.
StatusLessThanOrEqualTo
=
_record
.
data
.
status
;
}
if
(
_record
.
data
.
status
===
51
)
{
_view
.
filter
.
StatusGreaterThanOrEqualTo
=
_record
.
data
.
status
;
}
_view
.
reload
();
},
_cleanStatus
:
function
(
_ctrl
)
{
_ctrl
.
setValue
(
''
);
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
if
(
_view
.
filter
===
null
)
_view
.
setFilter
({});
delete
_view
.
filter
.
StatusGreaterThanOrEqualTo
;
delete
_view
.
filter
.
StatusLessThanOrEqualTo
;
_view
.
reload
();
},
_onCreateApply
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_apply
=
{};
_apply
.
Metadata
=
{};
_apply
.
PaymentKvids
=
[];
_apply
.
OperateType
=
_ctrl
.
type
;
_apply
.
Amount
=
0
;
_apply
.
PayerName
=
null
;
_apply
.
PayeeName
=
KiviiContext
.
CurrentMember
.
OrganizationName
;
_apply
.
PayeeTaxNumber
=
null
;
_apply
.
OperateTime
=
new
Date
();
_apply
.
Currency
=
'CNY'
;
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.InvoiceApply.Form'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
900
,
height
:
450
,
modal
:
true
,
resizable
:
false
,
items
:
[
_form
]
});
_win
.
show
();
_form
.
setOwner
(
_apply
,
_ctrl
);
_form
.
on
(
'entityCreated'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
_view
.
reload
();
});
},
_onSelectMonth
:
function
(
_ctrl
,
_time
,
_eOpts
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_refs
=
_controller
.
getReferences
();
let
_startTime
=
_refs
.
startTime
.
value
;
let
_endTime
=
_refs
.
endTime
.
value
||
new
Date
();
if
(
_startTime
===
null
)
{
Ext
.
toast
(
"请选择开始时间!"
);
return
;
}
if
(
_startTime
>
_endTime
)
{
Ext
.
toast
(
"开始日期不能大于结束日期!"
);
return
;
}
delete
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
;
delete
_view
.
filter
.
OperateTimeLessThan
;
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
=
new
Date
(
_startTime
.
getFullYear
(),
_startTime
.
getMonth
(),
_startTime
.
getDate
());
_view
.
filter
.
OperateTimeLessThan
=
new
Date
(
_endTime
.
getFullYear
(),
_endTime
.
getMonth
(),
_endTime
.
getDate
()
+
1
);
_view
.
reload
();
},
_onRejectApply
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_applyKvids
=
[];
let
_select
=
_vm
.
data
.
selections
||
[];
_select
.
forEach
(
function
(
item
)
{
_applyKvids
.
push
(
item
.
data
.
Kvid
);
});
Ext
.
MessageBox
.
show
({
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
msg
:
'请填写原因:'
,
width
:
300
,
buttons
:
Ext
.
MessageBox
.
OKCANCEL
,
multiline
:
true
,
scope
:
this
,
fn
:
this
.
_showResultText
,
animateTarget
:
_ctrl
});
},
_showResultText
:
function
(
_btn
,
_text
,
_ctrl
)
{
if
(
_btn
!==
'ok'
)
return
;
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_applyKvids
=
[];
let
_select
=
_vm
.
data
.
selections
||
[];
for
(
let
_i
=
0
;
_i
<
_select
.
length
;
_i
++
)
{
let
_item
=
_select
[
_i
].
data
;
_applyKvids
.
push
(
_item
.
Kvid
);
}
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.InvoiceApply/Reject.json'
,
jsonData
:
{
ApplyKvids
:
_applyKvids
,
Summary
:
_text
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
Ext
.
toast
(
'驳回成功!'
);
_view
.
reload
();
},
failure
:
function
(
_response
)
{
}
});
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.View.Kivii.Finances.InvoiceApply.List.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.View.Kivii.Finances.InvoiceApply.List'
,
{
extend
:
'System.Control.EntityList'
,
entityType
:
'Kivii.Finances.Entities.InvoiceApply'
,
xtype
:
'App.View.Kivii.Finances.InvoiceApply.List'
,
dataSource
:
'/Restful/Kivii.Finances.Entities.InvoiceApply/QueryEx.json'
,
title
:
'申请处理'
,
iconCls
:
'x-fa fa-book'
,
filter
:
{
OperateTimeGreaterThanOrEqualTo
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
1
),
OperateTimeLessThan
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
new
Date
().
getDate
()
+
1
)
},
viewModel
:
{
data
:
{
_selection
:
null
}
},
bind
:
{
selection
:
'{_selection}'
},
store
:
{
autoLoad
:
true
,
pageSize
:
100
,
sorters
:
[{
property
:
'OperateTime'
,
direction
:
'DESC'
}]
},
dockedItems
:
[{
xtype
:
'pagingtoolbar'
,
dock
:
'bottom'
,
displayInfo
:
true
,
items
:
[{
xtype
:
'button'
,
labelWidth
:
60
,
iconCls
:
'x-fa fa-check-square-o'
,
bind
:
{
text
:
'已选择{selectionCount}条记录,点击清除'
,
hidden
:
'{selectionCount==0}'
},
handler
:
'_onClearSelections'
}]
},
{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'menu'
,
items
:
[{
xtype
:
'combo'
,
queryMode
:
'local'
,
displayField
:
'displayInfo'
,
valueField
:
'status'
,
// value: 50,
width
:
130
,
editable
:
false
,
filterPickList
:
true
,
reference
:
'status'
,
store
:
{
fields
:
[
'displayInfo'
,
'status'
],
data
:
[{
displayInfo
:
'未开票'
,
status
:
50
},
{
displayInfo
:
'已开票'
,
status
:
51
}]
},
triggers
:
{
clear
:
{
weight
:
2
,
cls
:
'x-fa fa-times'
,
handler
:
'_cleanStatus'
}
},
listeners
:
{
select
:
'_onSelectStatus'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'申请日期 开始'
,
format
:
'Y-m-d'
,
labelWidth
:
90
,
width
:
220
,
reference
:
'startTime'
,
editable
:
false
,
value
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
1
),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'结束'
,
format
:
'Y-m-d'
,
labelWidth
:
30
,
width
:
160
,
reference
:
'endTime'
,
editable
:
false
,
value
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
new
Date
().
getDate
()
+
1
),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'SerialNumber,PayerName,OperatorName'
,
emptyText
:
'模糊搜索流水号、付款单位、申请人'
,
},
/*{
text: '新增申请',
iconCls: 'x-fa fa-plus',
menu: [{
text: '到账申请',
iconCls: 'x-fa fa-cny',
type: 'Payment',
handler: '_onCreateApply'
}, {
text: '借票申请',
iconCls: 'x-fa fa-circle-o-notch',
type: 'Debit',
handler: '_onCreateApply'
}]
},*/
{
text
:
'合并申请'
,
iconCls
:
'x-fa fa-copy'
,
iconAlign
:
'left'
,
handler
:
'_onExecuteCombine'
},
{
text
:
'执行开票'
,
iconCls
:
'x-fa fa-check'
,
iconAlign
:
'left'
,
handler
:
'_onExecuteAnInvoice'
,
bind
:
{
disabled
:
'{!_selection}'
}
},
{
text
:
'撤销'
,
iconCls
:
'x-fa fa-rotate-left'
,
iconAlign
:
'left'
,
handler
:
'_onRejectApply'
,
bind
:
{
disabled
:
'{!_selection}'
}
}
]
}],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
true
},
items
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
,
resizable
:
false
},
{
text
:
'流水号'
,
dataIndex
:
'SerialNumber'
,
width
:
120
},
{
text
:
'付款单位'
,
dataIndex
:
'PayerName'
,
width
:
200
},
{
xtype
:
'datecolumn'
,
text
:
'申请日期'
,
format
:
'Y-m-d'
,
dataIndex
:
'OperateTime'
,
width
:
120
},
{
text
:
'申请金额'
,
align
:
'right'
,
dataIndex
:
'Amount'
,
renderer
:
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
,
width
:
110
},
{
text
:
'申请人'
,
dataIndex
:
'OperatorName'
,
renderer
:
'_renderOperatorName'
,
width
:
140
},
{
text
:
'申请类型'
,
dataIndex
:
'OperateType'
,
renderer
:
'_renderOperateType'
,
width
:
100
},
{
text
:
'状态'
,
dataIndex
:
'Status'
,
renderer
:
'_renderStatus'
,
width
:
100
},
{
text
:
'税号'
,
dataIndex
:
'PayerTaxNumber'
,
width
:
200
},
{
text
:
'地址'
,
dataIndex
:
'PayerCompanyAddress'
,
renderer
:
'_renderPayerCompanyAddress'
,
width
:
260
},
{
text
:
'开户行'
,
dataIndex
:
'PayerRegisteredBank'
,
renderer
:
'_renderPayerRegisteredBank'
,
width
:
260
},
{
text
:
'摘要'
,
dataIndex
:
'Summary'
,
minWidth
:
200
,
flex
:
1
}]
},
listeners
:
{
activate
:
'_onActivate'
},
controller
:
{
_onClearSelections
:
function
()
{
this
.
getView
().
clearSelections
();
},
_onActivate
:
function
(
_ctrl
,
_eOpts
)
{
this
.
getView
().
reload
();
},
_renderOperatorName
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_record
.
data
.
hasOwnProperty
(
'OwnerName'
))
return
_value
+
'('
+
_record
.
data
.
OwnerName
+
')'
;
return
_value
;
},
_renderOperateType
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
"Payment"
)
{
_meta
.
style
=
'background-color:#D1FCA5'
;
if
(
_record
.
data
.
Type
===
'VAT'
)
return
"收款(普票)"
;
return
"收款"
;
}
if
(
_value
===
"Debit"
)
{
_meta
.
style
=
'background-color:#F3F781'
;
if
(
_record
.
data
.
Type
===
'VAT'
)
return
"借票(普票)"
;
return
"借票"
;
}
if
(
_value
===
"Cash"
)
{
if
(
_record
.
data
.
Type
===
'VAT'
)
return
"现金(普票)"
;
return
"现金"
;
}
if
(
_value
===
"Pos"
)
{
if
(
_record
.
data
.
Type
===
'VAT'
)
return
"刷卡(普票)"
;
return
"刷卡"
;
}
if
(
_value
===
"AliPay"
)
{
if
(
_record
.
data
.
Type
===
'VAT'
)
return
"支付宝(普票)"
;
return
"支付宝"
;
}
if
(
_value
===
"WeChat"
)
{
if
(
_record
.
data
.
Type
===
'VAT'
)
return
"微信(普票)"
;
return
"微信"
;
}
if
(
_record
.
data
.
Type
===
'VAT'
)
return
_value
+
"(普票)"
;
return
_value
;
},
_renderStatus
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
<=
25
)
{
_meta
.
style
=
'background-color:#D5F5E3'
;
return
"审批中..."
;
}
if
(
_value
===
50
)
{
_meta
.
style
=
'background-color:#D6EAF8'
;
return
"已批准"
;
}
if
(
_value
===
51
)
{
_meta
.
style
=
'background-color:#D6EAF8'
;
return
"开票列队中"
;
}
if
(
_value
===
52
)
{
_meta
.
style
=
'background-color:#D6EAF8'
;
return
"开票中"
;
}
if
(
_value
===
55
||
_value
===
56
)
{
_meta
.
style
=
'background-color:#F5B7B1'
;
return
"开票失败"
;
}
if
(
_value
===
57
)
{
_meta
.
style
=
'background-color:#F5B7B1'
;
return
"驳回"
;
}
if
(
_value
===
58
)
{
_meta
.
style
=
'background-color:#F5B7B1'
;
return
"发票已作废"
;
}
if
(
_value
===
59
)
{
_meta
.
style
=
'background-color:#F5B7B1'
;
return
"申请已合并"
;
}
if
(
_value
===
60
)
{
_meta
.
style
=
'background-color:#F5B7B1'
;
return
"红字冲销"
;
}
if
(
_value
===
2147483647
)
{
_meta
.
style
=
'background-color:#ABEBC6'
;
return
"已开具"
;
}
return
"未处理"
;
},
_renderPayerCompanyAddress
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
return
_value
+
_record
.
data
.
PayerPhone
;
},
_renderPayerRegisteredBank
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
return
_value
+
_record
.
data
.
PayerBankAccount
;
},
_onSelectStatus
:
function
(
_ctrl
,
_record
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
delete
_view
.
filter
.
StatusGreaterThanOrEqualTo
;
delete
_view
.
filter
.
StatusLessThanOrEqualTo
;
if
(
_record
.
data
.
status
===
50
)
{
_view
.
filter
.
StatusLessThanOrEqualTo
=
_record
.
data
.
status
;
}
if
(
_record
.
data
.
status
===
51
)
{
_view
.
filter
.
StatusGreaterThanOrEqualTo
=
_record
.
data
.
status
;
}
_view
.
reload
();
},
_cleanStatus
:
function
(
_ctrl
)
{
_ctrl
.
setValue
(
''
);
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
if
(
_view
.
filter
===
null
)
_view
.
setFilter
({});
delete
_view
.
filter
.
StatusGreaterThanOrEqualTo
;
delete
_view
.
filter
.
StatusLessThanOrEqualTo
;
_view
.
reload
();
},
_onSelectMonth
:
function
(
_ctrl
,
_time
,
_eOpts
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_refs
=
_controller
.
getReferences
();
let
_startTime
=
_refs
.
startTime
.
value
;
let
_endTime
=
_refs
.
endTime
.
value
||
new
Date
();
if
(
_startTime
===
null
)
{
Ext
.
toast
(
"请选择开始时间!"
);
return
;
}
if
(
_startTime
>
_endTime
)
{
Ext
.
toast
(
"开始日期不能大于结束日期!"
);
return
;
}
delete
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
;
delete
_view
.
filter
.
OperateTimeLessThan
;
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
=
new
Date
(
_startTime
.
getFullYear
(),
_startTime
.
getMonth
(),
_startTime
.
getDate
());
_view
.
filter
.
OperateTimeLessThan
=
new
Date
(
_endTime
.
getFullYear
(),
_endTime
.
getMonth
(),
_endTime
.
getDate
()
+
1
);
_view
.
reload
();
},
_onRejectApply
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_applyKvids
=
[];
let
_select
=
_vm
.
data
.
selections
||
[];
_select
.
forEach
(
function
(
item
)
{
_applyKvids
.
push
(
item
.
data
.
Kvid
);
});
Ext
.
MessageBox
.
show
({
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
msg
:
'请填写原因:'
,
width
:
300
,
buttons
:
Ext
.
MessageBox
.
OKCANCEL
,
multiline
:
true
,
scope
:
this
,
fn
:
this
.
_showResultText
,
animateTarget
:
_ctrl
});
},
_showResultText
:
function
(
_btn
,
_text
,
_ctrl
)
{
if
(
_btn
!==
'ok'
)
return
;
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_applyKvids
=
[];
let
_select
=
_vm
.
data
.
selections
||
[];
for
(
let
_i
=
0
;
_i
<
_select
.
length
;
_i
++
)
{
let
_item
=
_select
[
_i
].
data
;
_applyKvids
.
push
(
_item
.
Kvid
);
}
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.InvoiceApply/Reject.json'
,
jsonData
:
{
ApplyKvids
:
_applyKvids
,
Summary
:
_text
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
Ext
.
toast
(
'驳回成功!'
);
_view
.
reload
();
},
failure
:
function
(
_response
)
{
}
});
},
_onExecuteAnInvoice
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_selected
=
_view
.
selection
.
data
;
if
(
_selected
.
Status
>
50
)
{
Ext
.
toast
(
"当前申请无法执行开票!"
);
return
;
}
if
(
!
_selected
.
hasOwnProperty
(
'Metadata'
))
_selected
.
Metadata
=
{};
// _selected.OperatorName = '彭帆';
// _selected.Metadata.PayeeOperatorName = '蔡晨';
// _selected.Metadata.ReviewerName = '谷梅';
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.InvoiceApply.Execute.Form'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
1150
,
height
:
700
,
modal
:
true
,
maximizable
:
true
,
resizable
:
true
,
items
:
[
_form
]
});
_win
.
show
();
_form
.
setOwner
(
_selected
);
_form
.
on
(
'entityExecuted'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
_view
.
reload
();
});
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.View.Kivii.Finances.InvoiceApply.Payment.List.js
0 → 100644
View file @
5ef2d2e1
Ext
.
define
(
'App.View.Kivii.Finances.InvoiceApply.Payment.List'
,
{
extend
:
'System.Control.EntitySelector'
,
entityType
:
'Kivii.Finances.Entities.Payment'
,
xtype
:
'App.View.Kivii.Finances.InvoiceApply.Payment.List'
,
dataSource
:
'/Restful/Kivii.Finances.Entities.Payment/InvoiceApplyQuery.json'
,
title
:
'到账申请'
,
iconCls
:
'x-fa fa-money'
,
filter
:
{
OwnerKvid
:
KiviiContext
.
CurrentMember
.
DepartmentKvid
},
viewModel
:
{
data
:
{
_selection
:
null
}
},
store
:
{
autoLoad
:
true
,
pageSize
:
100
,
sorters
:
[{
property
:
'OperateTime'
,
direction
:
'DESC'
}]
},
selModel
:
{
selType
:
'checkboxmodel'
,
checkboxSelect
:
true
,
pruneRemoved
:
false
,
extensible
:
'y'
},
bind
:
{
selection
:
'{_selection}'
},
dockedItems
:
[{
xtype
:
'pagingtoolbar'
,
dock
:
'bottom'
,
displayInfo
:
true
,
items
:
[{
xtype
:
'button'
,
labelWidth
:
60
,
iconCls
:
'x-fa fa-check-square-o'
,
bind
:
{
text
:
'已选择{selectionCount}条记录,点击清除'
,
hidden
:
'{selectionCount==0}'
},
handler
:
'_onClearSelections'
}]
},
{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'menu'
,
items
:
[{
margin
:
'0 3 -10 3'
,
xtype
:
'displayfield'
,
value
:
'<div style="color:red">若未找到开票收款,请先到账管理中认领</div>'
,
fieldStyle
:
{
fontSize
:
'20px'
}
},
{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'SerialNumber,PayerName,PayerAccountName,PayerAccountSerialNumber'
,
emptyText
:
'模糊搜索流水号、付款单位、收付款账号或名称'
},
{
text
:
'到账申请'
,
iconCls
:
'x-fa fa-money'
,
type
:
'Payment'
,
handler
:
'_onCreateApply'
,
bind
:
{
disabled
:
'{!_selection}'
}
}]
}],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
true
},
items
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
,
resizable
:
false
},
{
text
:
'流水号'
,
dataIndex
:
'SerialNumber'
,
width
:
120
},
{
text
:
'付款单位'
,
dataIndex
:
'PayerName'
,
width
:
220
},
{
text
:
'发生金额'
,
align
:
'right'
,
dataIndex
:
'Amount'
,
width
:
110
},
{
text
:
'开票金额'
,
align
:
'right'
,
dataIndex
:
'AmountInvoice'
,
width
:
100
},
{
text
:
'付款类型'
,
dataIndex
:
'Type'
,
renderer
:
'_renderType'
,
width
:
100
},
{
xtype
:
'datecolumn'
,
text
:
'发生日期'
,
format
:
'Y-m-d H:i'
,
dataIndex
:
'OperateTime'
,
width
:
150
},
{
text
:
'摘要'
,
dataIndex
:
'Summary'
,
width
:
150
},
{
text
:
'备注'
,
dataIndex
:
'Remark'
,
minWidth
:
150
,
flex
:
1
}]
},
controller
:
{
_onClearSelections
:
function
()
{
this
.
getView
().
clearSelections
();
},
_renderType
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
'Cash'
)
{
return
'现金'
;
}
if
(
_value
===
'Pos'
)
{
return
'刷卡'
;
}
if
(
_value
===
'AliPay'
)
{
return
'支付宝'
;
}
if
(
_value
===
'WeChat'
)
{
return
'微信'
;
}
if
(
_value
===
'Bank'
)
{
return
'银行转账'
;
}
if
(
_value
===
'Split'
)
{
return
'已认领到账'
;
}
return
_value
;
},
_onCreateApply
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_view
=
_controller
.
getView
();
let
_selecteds
=
_vm
.
data
.
selections
||
[];
if
(
!
_view
.
selection
)
return
;
if
(
_selecteds
.
length
<=
0
)
return
;
let
_apply
=
{};
_apply
.
Metadata
=
{};
_apply
.
PaymentKvids
=
[];
_apply
.
OperateType
=
_ctrl
.
type
;
_apply
.
Amount
=
0
;
_apply
.
PayerName
=
null
;
_apply
.
PayeeName
=
KiviiContext
.
CurrentMember
.
OrganizationName
;
_apply
.
PayeeTaxNumber
=
null
;
_apply
.
OperateTime
=
new
Date
();
_apply
.
Currency
=
'CNY'
;
for
(
let
_i
=
0
;
_i
<
_selecteds
.
length
;
_i
++
)
{
let
_select
=
_selecteds
[
_i
].
data
;
_apply
.
PayerName
=
_select
.
PayerName
;
_apply
.
PaymentKvids
.
push
(
_select
.
Kvid
);
_apply
.
Amount
+=
parseFloat
(
parseFloat
(
_select
.
Amount
-
_select
.
AmountInvoice
).
toFixed
(
2
));
}
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.InvoiceApply.Form'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
900
,
height
:
450
,
modal
:
true
,
resizable
:
false
,
items
:
[
_form
]
});
_win
.
show
();
_form
.
setOwner
(
_apply
,
_ctrl
);
_form
.
on
(
'entityCreated'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
_view
.
reload
();
});
},
}
});
\ No newline at end of file
Src/Content/codet/Classic.View.Kivii.Finances.InvoiceTitle.List.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.View.Kivii.Finances.InvoiceTitle.List'
,{
extend
:
'System.Control.EntityList'
,
xtype
:
'App.View.Kivii.Finances.InvoiceTitle.List'
,
entityType
:
'Kivii.Finances.Entities.InvoiceTitle'
,
filter
:
{
},
header
:
true
,
layout
:
'fit'
,
title
:
'发票抬头'
,
iconCls
:
'x-fa fa-cc'
,
viewModel
:
{
data
:
{
_selection
:
null
,
lastOwnerKvid
:
null
},
},
bind
:
{
selection
:
'{_selection}'
},
store
:
{
autoLoad
:
true
,
pageSize
:
50
,
sorters
:
[{
property
:
'CreateTime'
,
direction
:
'DESC'
}]
},
plugins
:
[{
ptype
:
'cellediting'
,
clicksToEdit
:
0
}],
dockedItems
:
[{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'menu'
,
items
:
[{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'CompanyName'
,
emptyText
:
'模糊搜索公司名称'
},
{
text
:
'新增'
,
iconCls
:
'x-fa fa-plus'
,
iconAlign
:
'left'
,
handler
:
'_onAddInvoiceTitle'
,
},
{
text
:
'详情'
,
iconCls
:
'x-fa fa-list'
,
iconAlign
:
'left'
,
handler
:
'_onReadInvoiceTitle'
,
bind
:
{
disabled
:
'{!_selection}'
}
},
{
text
:
'删除'
,
iconCls
:
'x-fa fa-trash-o'
,
iconAlign
:
'left'
,
handler
:
'_onDeleteEntity'
,
bind
:
{
disabled
:
'{!_selection}'
}
}]
},{
xtype
:
'pagingtoolbar'
,
dock
:
'bottom'
,
displayInfo
:
true
,
items
:
[{
xtype
:
'button'
,
labelWidth
:
60
,
iconCls
:
'x-fa fa-check-square-o'
,
bind
:
{
text
:
'已选择{selectionCount}条记录,点击清除'
,
hidden
:
'{selectionCount==0}'
},
handler
:
'_onClearSelections'
}]
}],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
true
},
items
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
,
},
{
text
:
'公司名称'
,
dataIndex
:
'CompanyName'
,
width
:
230
},
{
text
:
'税号'
,
dataIndex
:
'TaxNumber'
,
width
:
180
},
{
text
:
'公司地址'
,
dataIndex
:
'CompanyAddress'
,
width
:
260
},
{
text
:
'电话号码'
,
dataIndex
:
'Phone'
,
width
:
120
},
{
text
:
'开户银行'
,
dataIndex
:
'BankName'
,
width
:
220
},
{
text
:
'银行账户'
,
dataIndex
:
'BankAccount'
,
width
:
150
,
flex
:
1
}]
},
controller
:
{
_onClearSelections
:
function
()
{
this
.
getView
().
clearSelections
();
},
_onAddInvoiceTitle
:
function
()
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.InvoiceTitle.Form'
);
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
// title: _ctrl.text,
// iconCls: 'x-fa fa-money',
iconAlign
:
'left'
,
autoScroll
:
true
,
width
:
560
,
height
:
380
,
modal
:
true
,
resizable
:
false
,
items
:
[
_form
]
});
_win
.
show
();
_form
.
newEntity
();
_form
.
on
(
'entityCreated'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
_view
.
reload
();
});
},
_onDeleteEntity
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
_view
.
deleteEntity
();
},
_onReadInvoiceTitle
:
function
()
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
if
(
!
_view
.
selection
)
return
;
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.InvoiceTitle.Form'
);
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
// title: _ctrl.text,
// iconCls: 'x-fa fa-money',
iconAlign
:
'left'
,
autoScroll
:
true
,
width
:
560
,
height
:
380
,
modal
:
true
,
resizable
:
false
,
items
:
[
_form
]
});
_win
.
show
();
_form
.
readEntity
(
_view
.
selection
.
data
,
true
);
_form
.
on
(
'entityUpdated'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
_view
.
reload
();
});
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.View.Kivii.Finances.Payment.Accept.List.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.View.Kivii.Finances.Payment.Accept.List'
,
{
extend
:
'System.Control.EntityList'
,
entityType
:
'Kivii.Finances.Entities.Payment'
,
xtype
:
'App.View.Kivii.Finances.Payment.Accept.List'
,
dataSource
:
'/Restful/Kivii.Finances.Entities.Payment/QueryEx.json'
,
title
:
'新增到账'
,
iconCls
:
'x-fa fa-cny'
,
filter
:
{
IsPayee
:
true
,
// IsSplit: false,
OperateTimeGreaterThanOrEqualTo
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
1
),
OperateTimeLessThan
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
new
Date
().
getDate
()
+
1
)
},
viewModel
:
{
data
:
{
_selection
:
null
}
},
bind
:
{
selection
:
'{_selection}'
},
store
:
{
autoLoad
:
true
,
pageSize
:
400
,
sorters
:
[{
property
:
'OperateTime'
,
direction
:
'DESC'
}]
},
selModel
:
{
selType
:
'checkboxmodel'
,
checkboxSelect
:
true
,
pruneRemoved
:
false
,
extensible
:
'y'
},
features
:
[{
ftype
:
'summary'
}],
dockedItems
:
[{
xtype
:
'pagingtoolbar'
,
dock
:
'bottom'
,
displayInfo
:
true
,
items
:
[{
xtype
:
'button'
,
labelWidth
:
60
,
iconCls
:
'x-fa fa-check-square-o'
,
bind
:
{
text
:
'已选择{selectionCount}条记录,点击清除'
,
hidden
:
'{selectionCount==0}'
},
handler
:
'_onClearSelections'
}]
},
{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'menu'
,
items
:
[{
xtype
:
'combo'
,
queryMode
:
'local'
,
displayField
:
'displayInfo'
,
valueField
:
'isPayee'
,
value
:
true
,
editable
:
false
,
filterPickList
:
true
,
reference
:
'isPayee'
,
store
:
{
fields
:
[
'displayInfo'
,
'isPayee'
],
data
:
[{
displayInfo
:
'收款'
,
isPayee
:
true
},
{
displayInfo
:
'付款'
,
isPayee
:
false
}]
},
listeners
:
{
select
:
'_onSelectIsPayee'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'时间范围 开始'
,
format
:
'Y-m-d'
,
labelWidth
:
90
,
reference
:
'startTime'
,
editable
:
false
,
value
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
1
),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'结束'
,
format
:
'Y-m-d'
,
labelWidth
:
30
,
reference
:
'endTime'
,
editable
:
false
,
value
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
new
Date
().
getDate
()
+
1
),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'SerialNumber,PayerName,PayerAccountName,PayerAccountSerialNumber'
,
emptyText
:
'模糊搜索流水号、付款单位、收付款账号或名称'
,
},
{
text
:
'新增到账'
,
iconCls
:
'x-fa fa-plus'
,
menu
:
[{
text
:
'银行到账'
,
iconCls
:
'x-fa fa-bank'
,
type
:
'Bank'
,
// disabled: true,
handler
:
'_onAccept'
},
{
text
:
'新增现金'
,
iconCls
:
'x-fa fa-cny'
,
type
:
'Cash'
,
handler
:
'_onAccept'
},
{
text
:
'新增刷卡'
,
iconCls
:
'x-fa fa-credit-card'
,
type
:
'Pos'
,
handler
:
'_onAccept'
}]
},
{
xtype
:
'splitbutton'
,
text
:
'作废记录'
,
iconCls
:
'x-fa fa-window-close-o'
,
handler
:
'_onOffsetList'
,
menu
:
[{
text
:
'作废'
,
iconCls
:
'x-fa fa-trash'
,
handler
:
'_onOffsetPayment'
,
bind
:
{
disabled
:
'{!_selection}'
}
}]
}
]
}],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
true
},
items
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
,
resizable
:
false
},
{
text
:
'流水号'
,
dataIndex
:
'SerialNumber'
,
width
:
120
},
{
text
:
'所属范围'
,
dataIndex
:
'OwnerName'
,
width
:
120
},
{
text
:
'付款单位'
,
dataIndex
:
'PayerName'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
'合计 ¥'
;
},
width
:
220
},
{
text
:
'发生金额'
,
align
:
'right'
,
dataIndex
:
'Amount'
,
renderer
:
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
},
width
:
110
},
{
text
:
'已认领'
,
align
:
'right'
,
dataIndex
:
'AmountSplited'
,
renderer
:
'_renderAmount'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
},
width
:
90
},
{
text
:
'开票金额'
,
align
:
'right'
,
dataIndex
:
'AmountInvoice'
,
renderer
:
'_renderAmount'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
},
width
:
100
},
{
text
:
'已用金额'
,
align
:
'right'
,
dataIndex
:
'AmountUsed'
,
renderer
:
'_renderAmount'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
},
width
:
100
},
{
xtype
:
'datecolumn'
,
text
:
'发生日期'
,
format
:
'Y-m-d H:i'
,
dataIndex
:
'OperateTime'
,
width
:
150
},
{
text
:
'付款类型'
,
dataIndex
:
'Type'
,
renderer
:
'_renderType'
,
width
:
100
},
{
text
:
'摘要'
,
dataIndex
:
'Summary'
,
width
:
150
},
{
text
:
'付款银行'
,
dataIndex
:
'PayerAccountName'
,
width
:
280
},
{
text
:
'付款账号'
,
dataIndex
:
'PayerAccountSerialNumber'
,
width
:
180
},
{
text
:
'备注'
,
dataIndex
:
'Remark'
,
flex
:
1
}]
},
listeners
:
{
activate
:
'_onActivate'
},
controller
:
{
_onClearSelections
:
function
()
{
this
.
getView
().
clearSelections
();
},
_onActivate
:
function
(
_ctrl
,
_eOpts
)
{
this
.
getView
().
reload
();
},
_renderAmount
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
_record
.
data
.
Amount
)
{
_meta
.
style
=
'background-color:#B4EEB4'
;
}
return
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
(
_value
);
},
_renderType
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
'Cash'
)
{
return
'现金'
;
}
if
(
_value
===
'Pos'
)
{
return
'刷卡'
;
}
if
(
_value
===
'AliPay'
)
{
return
'支付宝'
;
}
if
(
_value
===
'WeChat'
)
{
return
'微信'
;
}
if
(
_value
===
'Bank'
)
{
return
'银行转账'
;
}
return
_value
;
},
_onSelectMonth
:
function
(
_ctrl
,
_time
,
_eOpts
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_refs
=
_controller
.
getReferences
();
let
_startTime
=
_refs
.
startTime
.
value
;
let
_endTime
=
_refs
.
endTime
.
value
||
new
Date
();
if
(
_startTime
===
null
)
{
Ext
.
toast
(
"请选择开始时间!"
);
return
;
}
if
(
_startTime
>
_endTime
)
{
Ext
.
toast
(
"开始日期不能大于结束日期!"
);
return
;
}
delete
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
;
delete
_view
.
filter
.
OperateTimeLessThan
;
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
=
new
Date
(
_startTime
.
getFullYear
(),
_startTime
.
getMonth
(),
_startTime
.
getDate
());
_view
.
filter
.
OperateTimeLessThan
=
new
Date
(
_endTime
.
getFullYear
(),
_endTime
.
getMonth
(),
_endTime
.
getDate
()
+
1
);
_view
.
reload
();
},
_onSelectIsPayee
:
function
(
_ctrl
,
_record
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
_view
.
filter
.
IsPayee
=
_record
.
data
.
isPayee
;
_view
.
reload
();
},
_onAccept
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_item
=
{};
_item
.
Metadata
=
{};
_item
.
Kvid
=
null
;
_item
.
Type
=
_ctrl
.
type
;
_item
.
OwnerType
=
"Organization"
;
_item
.
PayeeName
=
KiviiContext
.
CurrentMember
.
OrganizationName
;
_item
.
OperateTime
=
new
Date
();
_item
.
Currency
=
'CNY'
;
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Payment.Accept.Form'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
850
,
height
:
410
,
modal
:
true
,
resizable
:
false
,
items
:
[
_form
]
});
_form
.
setOwner
(
_item
,
_ctrl
);
_win
.
show
();
_form
.
on
(
'entityCreated'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
_view
.
reload
();
});
},
_onOffsetPayment
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_selecteds
=
_vm
.
data
.
selections
||
[];
if
(
!
_view
.
selection
)
return
;
if
(
_selecteds
.
length
<=
0
)
return
;
let
_msg
=
Ext
.
create
(
'Ext.window.MessageBox'
,
{
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
closeAction
:
'destroy'
});
_msg
.
show
({
title
:
_ctrl
.
text
,
msg
:
'是否作废选中'
+
_selecteds
.
length
+
'条到账记录?<br />请填写原因:'
,
width
:
300
,
buttons
:
Ext
.
MessageBox
.
OKCANCEL
,
multiline
:
true
,
scope
:
_controller
,
fn
:
_controller
.
_offsetPayments
,
animateTarget
:
_ctrl
});
return
;
},
_offsetPayments
:
function
(
_btn
,
_text
,
_ctrl
)
{
if
(
_btn
!==
'ok'
)
return
;
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_selecteds
=
_vm
.
data
.
selections
||
[];
if
(
!
_view
.
selection
)
return
;
if
(
_selecteds
.
length
<=
0
)
return
;
let
_kvids
=
[];
for
(
let
_i
=
0
;
_i
<
_selecteds
.
length
;
_i
++
)
{
_kvids
.
push
(
_selecteds
[
_i
].
data
.
Kvid
);
}
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.Payment/Offset.json'
,
jsonData
:
{
Kvids
:
_kvids
,
Remark
:
_text
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
Ext
.
toast
(
'到账作废成功!'
);
_view
.
reload
();
},
failure
:
function
(
_response
)
{
_me
.
unmask
();
}
});
},
_onOffsetList
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Payment.Offset.List'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
1200
,
height
:
650
,
modal
:
true
,
maximizable
:
true
,
resizable
:
true
,
items
:
[
_form
]
});
_win
.
show
();
_win
.
on
(
'close'
,
function
(
_ctrl
,
_entity
)
{
_view
.
reload
();
});
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.View.Kivii.Finances.Payment.Filter.List.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.View.Kivii.Finances.Payment.Filter.List'
,
{
extend
:
'System.Control.EntityList'
,
entityType
:
'Kivii.Finances.Entities.Payment'
,
xtype
:
'App.View.Kivii.Finances.Payment.Filter.List'
,
dataSource
:
'/Restful/Kivii.Finances.Entities.Payment/QueryEx.json'
,
title
:
'到账筛选'
,
iconCls
:
'x-fa fa-filter'
,
filter
:
{
IsPayee
:
true
,
IsSplit
:
false
,
OperateTimeGreaterThanOrEqualTo
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
1
),
OperateTimeLessThan
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
new
Date
().
getDate
()
+
1
)
},
viewModel
:
{
data
:
{
_selection
:
null
}
},
bind
:
{
selection
:
'{_selection}'
},
store
:
{
autoLoad
:
true
,
pageSize
:
400
,
sorters
:
[{
property
:
'OperateTime'
,
direction
:
'DESC'
}]
},
selModel
:
{
selType
:
'checkboxmodel'
,
checkboxSelect
:
true
,
pruneRemoved
:
false
,
extensible
:
'y'
},
features
:
[{
ftype
:
'summary'
}],
dockedItems
:
[{
xtype
:
'pagingtoolbar'
,
dock
:
'bottom'
,
displayInfo
:
true
,
items
:
[{
xtype
:
'button'
,
labelWidth
:
60
,
iconCls
:
'x-fa fa-check-square-o'
,
bind
:
{
text
:
'已选择{selectionCount}条记录,点击清除'
,
hidden
:
'{selectionCount==0}'
},
handler
:
'_onClearSelections'
}]
},
{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'menu'
,
items
:
[{
xtype
:
'combo'
,
queryMode
:
'local'
,
displayField
:
'displayInfo'
,
valueField
:
'isSplit'
,
value
:
false
,
editable
:
false
,
filterPickList
:
true
,
reference
:
'isSplit'
,
store
:
{
fields
:
[
'displayInfo'
,
'isSplit'
],
data
:
[{
displayInfo
:
'已认领'
,
isSplit
:
true
},
{
displayInfo
:
'未认领'
,
isSplit
:
false
}]
},
triggers
:
{
clear
:
{
weight
:
2
,
cls
:
'x-fa fa-times'
,
handler
:
'_cleanIsSplit'
}
},
listeners
:
{
select
:
'_onSelectIsSplit'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'时间范围 开始'
,
format
:
'Y-m-d'
,
labelWidth
:
90
,
reference
:
'startTime'
,
editable
:
false
,
value
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
1
),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'结束'
,
format
:
'Y-m-d'
,
labelWidth
:
30
,
reference
:
'endTime'
,
editable
:
false
,
value
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
new
Date
().
getDate
()
+
1
),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'SerialNumber,PayerName,PayerAccountName,PayerAccountSerialNumber'
,
emptyText
:
'模糊搜索流水号、付款单位、收付款账号或名称'
,
},
{
xtype
:
'splitbutton'
,
text
:
'认领'
,
iconCls
:
'x-fa fa-arrow-circle-down'
,
type
:
'Split'
,
handler
:
'_onSplit'
,
menu
:
[{
text
:
'退款处理'
,
iconCls
:
'x-fa fa-reply'
,
type
:
'Refund'
,
handler
:
'_onSplit'
},
{
text
:
'非业务处理'
,
iconCls
:
'x-fa fa-eraser'
,
type
:
'UnBiz'
,
handler
:
'_onSplit'
}],
bind
:
{
disabled
:
'{!_selection}'
}
}]
}],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
true
},
items
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
,
resizable
:
false
},
{
text
:
'流水号'
,
dataIndex
:
'SerialNumber'
,
width
:
120
},
{
text
:
'付款单位'
,
dataIndex
:
'PayerName'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
'合计 ¥'
;
},
width
:
220
},
{
text
:
'发生金额'
,
align
:
'right'
,
dataIndex
:
'Amount'
,
renderer
:
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
},
width
:
110
},
{
text
:
'已认领'
,
align
:
'right'
,
dataIndex
:
'AmountSplited'
,
renderer
:
'_renderAmount'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
},
width
:
90
},
{
text
:
'开票金额'
,
align
:
'right'
,
dataIndex
:
'AmountInvoice'
,
renderer
:
'_renderAmount'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
},
width
:
100
},
{
text
:
'已用金额'
,
align
:
'right'
,
dataIndex
:
'AmountUsed'
,
renderer
:
'_renderAmount'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
},
width
:
100
},
{
xtype
:
'datecolumn'
,
text
:
'发生日期'
,
format
:
'Y-m-d H:i'
,
dataIndex
:
'OperateTime'
,
width
:
150
},
{
text
:
'付款类型'
,
dataIndex
:
'Type'
,
renderer
:
'_renderType'
,
width
:
100
},
{
text
:
'摘要'
,
dataIndex
:
'Summary'
,
width
:
150
},
{
text
:
'付款银行'
,
dataIndex
:
'PayerAccountName'
,
width
:
280
},
{
text
:
'付款账号'
,
dataIndex
:
'PayerAccountSerialNumber'
,
width
:
180
},
{
text
:
'备注'
,
dataIndex
:
'Remark'
,
flex
:
1
}]
},
listeners
:
{
activate
:
'_onActivate'
},
controller
:
{
_onClearSelections
:
function
()
{
this
.
getView
().
clearSelections
();
},
_onActivate
:
function
(
_ctrl
,
_eOpts
)
{
this
.
getView
().
reload
();
},
_renderAmount
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
_record
.
data
.
Amount
)
{
_meta
.
style
=
'background-color:#B4EEB4'
;
}
return
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
(
_value
);
},
_renderType
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
'Cash'
)
{
return
'现金'
;
}
if
(
_value
===
'Pos'
)
{
return
'刷卡'
;
}
if
(
_value
===
'AliPay'
)
{
return
'支付宝'
;
}
if
(
_value
===
'WeChat'
)
{
return
'微信'
;
}
if
(
_value
===
'Bank'
)
{
return
'银行转账'
;
}
return
_value
;
},
_onSelectMonth
:
function
(
_ctrl
,
_time
,
_eOpts
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_refs
=
_controller
.
getReferences
();
let
_startTime
=
_refs
.
startTime
.
value
;
let
_endTime
=
_refs
.
endTime
.
value
||
new
Date
();
if
(
_startTime
===
null
)
{
Ext
.
toast
(
"请选择开始时间!"
);
return
;
}
if
(
_startTime
>
_endTime
)
{
Ext
.
toast
(
"开始日期不能大于结束日期!"
);
return
;
}
delete
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
;
delete
_view
.
filter
.
OperateTimeLessThan
;
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
=
new
Date
(
_startTime
.
getFullYear
(),
_startTime
.
getMonth
(),
_startTime
.
getDate
());
_view
.
filter
.
OperateTimeLessThan
=
new
Date
(
_endTime
.
getFullYear
(),
_endTime
.
getMonth
(),
_endTime
.
getDate
()
+
1
);
_view
.
reload
();
},
_onSelectIsSplit
:
function
(
_ctrl
,
_record
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
_view
.
filter
.
IsSplit
=
_record
.
data
.
isSplit
;
_view
.
reload
();
},
_cleanIsSplit
:
function
(
_ctrl
)
{
_ctrl
.
setValue
(
''
);
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
if
(
_view
.
filter
===
null
)
_view
.
setFilter
({});
_view
.
filter
.
IsSplit
=
null
;
_view
.
reload
();
},
_onSplit
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_selecteds
=
_vm
.
data
.
selections
||
[];
if
(
!
_view
.
selection
)
return
;
if
(
_selecteds
.
length
<=
0
)
return
;
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Payment.Filter.Form'
);
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
autoScroll
:
true
,
width
:
450
,
height
:
200
,
modal
:
true
,
resizable
:
false
,
items
:
[
_form
]
});
_form
.
setOwner
(
_selecteds
,
_ctrl
);
_win
.
show
();
_form
.
on
(
'entitySplited'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
_view
.
reload
();
});
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.View.Kivii.Finances.Payment.List.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.View.Kivii.Finances.Payment.List'
,
{
extend
:
'System.Control.EntityList'
,
entityType
:
'Kivii.Finances.Entities.Payment'
,
xtype
:
'App.View.Kivii.Finances.Payment.List'
,
dataSource
:
'/Restful/Kivii.Finances.Entities.Payment/QueryEx.json'
,
title
:
'到账流水'
,
iconCls
:
'x-fa fa-cny'
,
filter
:
{
IsPayee
:
true
,
IsSplit
:
false
,
OperateTimeGreaterThanOrEqualTo
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
1
),
OperateTimeLessThan
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
new
Date
().
getDate
()
+
1
)
},
viewModel
:
{
data
:
{
_selection
:
null
}
},
bind
:
{
selection
:
'{_selection}'
},
store
:
{
autoLoad
:
true
,
pageSize
:
400
,
sorters
:
[{
property
:
'OperateTime'
,
direction
:
'DESC'
}]
},
selModel
:
{
selType
:
'checkboxmodel'
,
checkboxSelect
:
true
,
pruneRemoved
:
false
,
extensible
:
'y'
},
features
:
[{
ftype
:
'summary'
}],
dockedItems
:
[{
xtype
:
'pagingtoolbar'
,
dock
:
'bottom'
,
displayInfo
:
true
,
items
:
[{
xtype
:
'button'
,
labelWidth
:
60
,
iconCls
:
'x-fa fa-check-square-o'
,
bind
:
{
text
:
'已选择{selectionCount}条记录,点击清除'
,
hidden
:
'{selectionCount==0}'
},
handler
:
'_onClearSelections'
}]
},
{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'menu'
,
items
:
[{
xtype
:
'combo'
,
queryMode
:
'local'
,
displayField
:
'displayInfo'
,
valueField
:
'isPayee'
,
value
:
true
,
editable
:
false
,
filterPickList
:
true
,
reference
:
'isPayee'
,
store
:
{
fields
:
[
'displayInfo'
,
'isPayee'
],
data
:
[{
displayInfo
:
'收款'
,
isPayee
:
true
},
{
displayInfo
:
'付款'
,
isPayee
:
false
}]
},
listeners
:
{
select
:
'_onSelectIsPayee'
}
},
{
xtype
:
'combo'
,
queryMode
:
'local'
,
displayField
:
'displayInfo'
,
valueField
:
'isSplit'
,
value
:
false
,
editable
:
false
,
filterPickList
:
true
,
reference
:
'isSplit'
,
store
:
{
fields
:
[
'displayInfo'
,
'isSplit'
],
data
:
[{
displayInfo
:
'已认领'
,
isSplit
:
true
},
{
displayInfo
:
'未认领'
,
isSplit
:
false
}]
},
triggers
:
{
clear
:
{
weight
:
2
,
cls
:
'x-fa fa-times'
,
handler
:
'_cleanIsSplit'
}
},
listeners
:
{
select
:
'_onSelectIsSplit'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'时间范围 开始'
,
format
:
'Y-m-d'
,
labelWidth
:
90
,
reference
:
'startTime'
,
editable
:
false
,
value
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
1
),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'结束'
,
format
:
'Y-m-d'
,
labelWidth
:
30
,
reference
:
'endTime'
,
editable
:
false
,
value
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
new
Date
().
getDate
()
+
1
),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'SerialNumber,PayerName,PayerAccountName,PayerAccountSerialNumber'
,
emptyText
:
'模糊搜索流水号、付款单位、收付款账号或名称'
,
},
{
text
:
'新增到账'
,
iconCls
:
'x-fa fa-plus'
,
menu
:
[{
text
:
'银行到账'
,
iconCls
:
'x-fa fa-bank'
,
type
:
'Bank'
,
// disabled: true,
handler
:
'_onAccept'
},
{
text
:
'新增现金'
,
iconCls
:
'x-fa fa-cny'
,
type
:
'Cash'
,
handler
:
'_onAccept'
},
{
text
:
'新增刷卡'
,
iconCls
:
'x-fa fa-credit-card'
,
type
:
'Pos'
,
handler
:
'_onAccept'
}]
},
{
xtype
:
'splitbutton'
,
text
:
'认领'
,
iconCls
:
'x-fa fa-arrow-circle-down'
,
type
:
'Split'
,
handler
:
'_onUnBizOrRefund'
,
menu
:
[{
text
:
'退款处理'
,
iconCls
:
'x-fa fa-reply'
,
type
:
'Refund'
,
handler
:
'_onUnBizOrRefund'
},
{
text
:
'非业务处理'
,
iconCls
:
'x-fa fa-eraser'
,
type
:
'UnBiz'
,
handler
:
'_onUnBizOrRefund'
},
{
text
:
'作废'
,
iconCls
:
'x-fa fa-trash'
,
handler
:
'_onOffsetPayment'
}],
bind
:
{
disabled
:
'{!_selection}'
}
},
{
xtype
:
'splitbutton'
,
text
:
'认领记录'
,
iconCls
:
'x-fa fa-spinner'
,
handler
:
'_onSplitList'
,
menu
:
[{
text
:
'使用记录'
,
iconCls
:
'x-fa fa-sign-in'
,
handler
:
'_onTransferList'
},{
text
:
'作废记录'
,
iconCls
:
'x-fa fa-window-close-o'
,
handler
:
'_onOffsetList'
}]
}
]
}],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
true
},
items
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
,
resizable
:
false
},
{
text
:
'流水号'
,
dataIndex
:
'SerialNumber'
,
width
:
120
},
{
text
:
'付款单位'
,
dataIndex
:
'PayerName'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
'合计 ¥'
;
},
width
:
220
},
{
text
:
'发生金额'
,
align
:
'right'
,
dataIndex
:
'Amount'
,
renderer
:
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
},
width
:
110
},
{
text
:
'已认领'
,
align
:
'right'
,
dataIndex
:
'AmountSplited'
,
renderer
:
'_renderAmount'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
},
width
:
90
},
{
text
:
'开票金额'
,
align
:
'right'
,
dataIndex
:
'AmountInvoice'
,
renderer
:
'_renderAmount'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
},
width
:
100
},
{
text
:
'已用金额'
,
align
:
'right'
,
dataIndex
:
'AmountUsed'
,
renderer
:
'_renderAmount'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
},
width
:
100
},
{
xtype
:
'datecolumn'
,
text
:
'发生日期'
,
format
:
'Y-m-d H:i'
,
dataIndex
:
'OperateTime'
,
width
:
150
},
{
text
:
'付款类型'
,
dataIndex
:
'Type'
,
renderer
:
'_renderType'
,
width
:
100
},
{
text
:
'摘要'
,
dataIndex
:
'Summary'
,
width
:
150
},
{
text
:
'付款银行'
,
dataIndex
:
'PayerAccountName'
,
width
:
280
},
{
text
:
'付款账号'
,
dataIndex
:
'PayerAccountSerialNumber'
,
width
:
180
},
{
text
:
'备注'
,
dataIndex
:
'Remark'
,
flex
:
1
}]
},
listeners
:
{
activate
:
'_onActivate'
},
controller
:
{
_onClearSelections
:
function
()
{
this
.
getView
().
clearSelections
();
},
_onActivate
:
function
(
_ctrl
,
_eOpts
)
{
this
.
getView
().
reload
();
},
_renderAmount
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
_record
.
data
.
Amount
)
{
_meta
.
style
=
'background-color:#B4EEB4'
;
}
return
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
(
_value
);
},
_renderType
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
'Cash'
)
{
return
'现金'
;
}
if
(
_value
===
'Pos'
)
{
return
'刷卡'
;
}
if
(
_value
===
'AliPay'
)
{
return
'支付宝'
;
}
if
(
_value
===
'WeChat'
)
{
return
'微信'
;
}
if
(
_value
===
'Bank'
)
{
return
'银行转账'
;
}
return
_value
;
},
_onSelectMonth
:
function
(
_ctrl
,
_time
,
_eOpts
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_refs
=
_controller
.
getReferences
();
let
_startTime
=
_refs
.
startTime
.
value
;
let
_endTime
=
_refs
.
endTime
.
value
||
new
Date
();
if
(
_startTime
===
null
)
{
Ext
.
toast
(
"请选择开始时间!"
);
return
;
}
if
(
_startTime
>
_endTime
)
{
Ext
.
toast
(
"开始日期不能大于结束日期!"
);
return
;
}
delete
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
;
delete
_view
.
filter
.
OperateTimeLessThan
;
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
=
new
Date
(
_startTime
.
getFullYear
(),
_startTime
.
getMonth
(),
_startTime
.
getDate
());
_view
.
filter
.
OperateTimeLessThan
=
new
Date
(
_endTime
.
getFullYear
(),
_endTime
.
getMonth
(),
_endTime
.
getDate
()
+
1
);
_view
.
reload
();
},
_onSelectIsPayee
:
function
(
_ctrl
,
_record
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
_view
.
filter
.
IsPayee
=
_record
.
data
.
isPayee
;
_view
.
reload
();
},
_onSelectIsSplit
:
function
(
_ctrl
,
_record
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
_view
.
filter
.
IsSplit
=
_record
.
data
.
isSplit
;
_view
.
reload
();
},
_cleanIsSplit
:
function
(
_ctrl
)
{
_ctrl
.
setValue
(
''
);
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
if
(
_view
.
filter
===
null
)
_view
.
setFilter
({});
_view
.
filter
.
IsSplit
=
null
;
_view
.
reload
();
},
_onAccept
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_item
=
{};
_item
.
Metadata
=
{};
_item
.
Kvid
=
null
;
_item
.
Type
=
_ctrl
.
type
;
_item
.
OwnerType
=
"Organization"
;
_item
.
PayeeName
=
KiviiContext
.
CurrentMember
.
OrganizationName
;
_item
.
OperateTime
=
new
Date
();
_item
.
Currency
=
'CNY'
;
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Payment.Accept.Form'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
850
,
height
:
410
,
modal
:
true
,
resizable
:
false
,
items
:
[
_form
]
});
_form
.
setOwner
(
_item
,
_ctrl
);
_win
.
show
();
_form
.
on
(
'entityCreated'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
_view
.
reload
();
});
},
_onUnBizOrRefund
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_selecteds
=
_vm
.
data
.
selections
||
[];
if
(
!
_view
.
selection
)
return
;
if
(
_selecteds
.
length
<=
0
)
return
;
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Payment.Filter.Form'
);
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
autoScroll
:
true
,
width
:
450
,
height
:
200
,
modal
:
true
,
resizable
:
false
,
items
:
[
_form
]
});
_form
.
setOwner
(
_selecteds
,
_ctrl
);
_win
.
show
();
_form
.
on
(
'entitySplited'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
_view
.
reload
();
});
},
_onOffsetList
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Payment.Offset.List'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
1200
,
height
:
650
,
modal
:
true
,
maximizable
:
true
,
resizable
:
true
,
items
:
[
_form
]
});
_win
.
show
();
_win
.
on
(
'close'
,
function
(
_ctrl
,
_entity
)
{
_view
.
reload
();
});
},
_onSplitList
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Payment.Split.List'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
1200
,
height
:
650
,
modal
:
true
,
maximizable
:
true
,
resizable
:
true
,
items
:
[
_form
]
});
_win
.
show
();
_win
.
on
(
'close'
,
function
(
_ctrl
,
_entity
)
{
_view
.
reload
();
});
},
_onTransferList
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Payment.Used.List'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
1200
,
height
:
650
,
modal
:
true
,
maximizable
:
true
,
resizable
:
true
,
items
:
[
_form
]
});
_win
.
show
();
_win
.
on
(
'close'
,
function
(
_ctrl
,
_entity
)
{
_view
.
reload
();
});
},
_onOffsetPayment
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_selecteds
=
_vm
.
data
.
selections
||
[];
if
(
!
_view
.
selection
)
return
;
if
(
_selecteds
.
length
<=
0
)
return
;
let
_msg
=
Ext
.
create
(
'Ext.window.MessageBox'
,
{
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
closeAction
:
'destroy'
});
_msg
.
show
({
title
:
_ctrl
.
text
,
msg
:
'是否作废选中'
+
_selecteds
.
length
+
'条到账记录?<br />请填写原因:'
,
width
:
300
,
buttons
:
Ext
.
MessageBox
.
OKCANCEL
,
multiline
:
true
,
scope
:
_controller
,
fn
:
_controller
.
_offsetPayments
,
animateTarget
:
_ctrl
});
return
;
},
_offsetPayments
:
function
(
_btn
,
_text
,
_ctrl
)
{
if
(
_btn
!==
'ok'
)
return
;
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_selecteds
=
_vm
.
data
.
selections
||
[];
if
(
!
_view
.
selection
)
return
;
if
(
_selecteds
.
length
<=
0
)
return
;
let
_kvids
=
[];
for
(
let
_i
=
0
;
_i
<
_selecteds
.
length
;
_i
++
)
{
_kvids
.
push
(
_selecteds
[
_i
].
data
.
Kvid
);
}
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.Payment/Offset.json'
,
jsonData
:
{
Kvids
:
_kvids
,
Remark
:
_text
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
Ext
.
toast
(
'到账作废成功!'
);
_view
.
reload
();
},
failure
:
function
(
_response
)
{
_me
.
unmask
();
}
});
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.View.Kivii.Finances.Payment.Split.List.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.View.Kivii.Finances.Payment.Split.List'
,
{
extend
:
'System.Control.EntityList'
,
entityType
:
'Kivii.Finances.Entities.Payment'
,
xtype
:
'App.View.Kivii.Finances.Payment.Split.List'
,
dataSource
:
'/Restful/Kivii.Finances.Entities.Payment/SplitQuery.json'
,
title
:
'到账使用'
,
iconCls
:
'x-fa fa-spinner'
,
filter
:
{
IsBiz
:
true
,
OperateTimeGreaterThanOrEqualTo
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
1
),
OperateTimeLessThan
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
new
Date
().
getDate
()
+
1
)
},
viewModel
:
{
data
:
{
_selection
:
null
}
},
bind
:
{
selection
:
'{_selection}'
},
store
:
{
autoLoad
:
true
,
pageSize
:
800
,
sorters
:
[{
property
:
'OperateTime'
,
direction
:
'DESC'
}]
},
selModel
:
{
selType
:
'checkboxmodel'
,
checkboxSelect
:
true
,
pruneRemoved
:
false
,
extensible
:
'y'
},
features
:
[{
ftype
:
'summary'
}],
dockedItems
:
[{
xtype
:
'pagingtoolbar'
,
dock
:
'bottom'
,
displayInfo
:
true
,
items
:
[{
xtype
:
'button'
,
labelWidth
:
60
,
iconCls
:
'x-fa fa-check-square-o'
,
bind
:
{
text
:
'已选择{selectionCount}条记录,点击清除'
,
hidden
:
'{selectionCount==0}'
},
handler
:
'_onClearSelections'
}]
},
{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'menu'
,
items
:
[{
xtype
:
'combo'
,
queryMode
:
'local'
,
displayField
:
'displayInfo'
,
valueField
:
'isBiz'
,
value
:
true
,
editable
:
false
,
filterPickList
:
true
,
reference
:
'isBiz'
,
store
:
{
fields
:
[
'displayInfo'
,
'isBiz'
],
data
:
[{
displayInfo
:
'业务收入'
,
isBiz
:
true
},
{
displayInfo
:
'非业务收入'
,
isBiz
:
false
}]
},
triggers
:
{
clear
:
{
weight
:
2
,
cls
:
'x-fa fa-times'
,
handler
:
'_cleanIsBiz'
}
},
listeners
:
{
select
:
'_onSelectIsBiz'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'时间范围 开始'
,
format
:
'Y-m-d'
,
labelWidth
:
90
,
width
:
220
,
reference
:
'startTime'
,
editable
:
false
,
value
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
1
),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'结束'
,
format
:
'Y-m-d'
,
labelWidth
:
30
,
width
:
160
,
reference
:
'endTime'
,
editable
:
false
,
value
:
new
Date
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
new
Date
().
getDate
()
+
1
),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'SerialNumber,PayerName,PayerAccountName,PayerAccountSerialNumber'
,
// queryField: 'Amount',
emptyText
:
'模糊搜索流水号、付款单位、收付款账号或名称'
,
},
{
text
:
'充值'
,
iconCls
:
'x-fa fa-sign-in'
,
handler
:
'_onTransfer'
,
bind
:
{
disabled
:
'{!_selection}'
}
},
{
xtype
:
'splitbutton'
,
text
:
'撤销认领'
,
iconCls
:
'x-fa fa-arrow-circle-left'
,
handler
:
'_onSplitCancel'
,
menu
:
[{
text
:
'重新认领'
,
iconCls
:
'x-fa fa-arrow-circle-down'
,
type
:
'Split'
,
handler
:
'_onSplit'
,
bind
:
{
disabled
:
'{!_selection}'
}
}],
bind
:
{
disabled
:
'{!_selection}'
}
},
{
text
:
'使用记录'
,
iconCls
:
'x-fa fa-sign-in'
,
handler
:
'_onUsedList'
,
bind
:
{
disabled
:
'{!_selection}'
}
}
]
}],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
true
},
items
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
,
resizable
:
false
},
{
text
:
'流水号'
,
dataIndex
:
'SerialNumber'
,
width
:
120
},
{
text
:
'所属部门'
,
dataIndex
:
'OwnerName'
,
renderer
:
'_renderOwnerName'
,
width
:
120
},
{
text
:
'付款单位'
,
dataIndex
:
'PayerName'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
'合计 ¥'
;
},
width
:
220
},
{
text
:
'发生金额'
,
align
:
'right'
,
dataIndex
:
'Amount'
,
renderer
:
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
},
width
:
110
// }, {
// text: '已认领',
// align: 'right',
// dataIndex: 'AmountSplited',
// renderer: '_renderAmount',
// summaryType: 'sum',
// summaryRenderer: function(value, summaryData, dataIndex) {
// return Ext.String.format('{0}', value.toFixed(2));
// },
// width: 90
},
{
text
:
'开票金额'
,
align
:
'right'
,
dataIndex
:
'AmountInvoice'
,
renderer
:
'_renderAmount'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
},
width
:
100
},
{
text
:
'已用金额'
,
align
:
'right'
,
dataIndex
:
'AmountUsed'
,
renderer
:
'_renderAmount'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'{0}'
,
value
.
toFixed
(
2
));
},
width
:
100
},
{
text
:
'付款类型'
,
dataIndex
:
'Type'
,
renderer
:
'_renderType'
,
width
:
100
},
{
xtype
:
'datecolumn'
,
text
:
'发生日期'
,
format
:
'Y-m-d H:i'
,
dataIndex
:
'OperateTime'
,
width
:
150
},
{
text
:
'摘要'
,
dataIndex
:
'Summary'
,
width
:
150
},
{
text
:
'付款银行'
,
dataIndex
:
'PayerAccountName'
,
width
:
280
},
{
text
:
'付款账号'
,
dataIndex
:
'PayerAccountSerialNumber'
,
width
:
180
},
{
text
:
'备注'
,
dataIndex
:
'Remark'
,
flex
:
1
}]
},
listeners
:
{
activate
:
'_onActivate'
},
controller
:
{
_onClearSelections
:
function
()
{
this
.
getView
().
clearSelections
();
},
_onActivate
:
function
(
_ctrl
,
_eOpts
)
{
this
.
getView
().
reload
();
},
_renderOwnerName
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
null
||
_value
===
undefined
||
_value
===
''
)
{
_meta
.
style
=
'background-color:#FFC0CB'
;
}
return
_value
;
},
_renderAmount
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
_record
.
data
.
Amount
)
{
_meta
.
style
=
'background-color:#B4EEB4'
;
}
return
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
(
_value
);
},
_renderType
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
_meta
.
style
=
'background-color:#B4EEB4'
;
if
(
_value
===
'UnBiz'
)
{
_meta
.
style
=
'background-color:#F0E68C'
;
return
'非业务'
;
}
if
(
_value
===
'Refund'
)
{
_meta
.
style
=
'background-color:#FFC0CB'
;
return
'退款'
;
}
if
(
_value
===
'Split'
)
{
return
'业务认领'
;
}
if
(
_value
===
'Pos'
)
{
return
'刷卡'
;
}
if
(
_value
===
'Cash'
)
{
return
'现金'
;
}
if
(
_value
===
'AliPay'
)
{
return
'支付宝'
;
}
if
(
_value
===
'WeChat'
)
{
return
'微信支付'
;
}
return
_value
;
},
_onSelectMonth
:
function
(
_ctrl
,
_time
,
_eOpts
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_refs
=
_controller
.
getReferences
();
let
_startTime
=
_refs
.
startTime
.
value
;
let
_endTime
=
_refs
.
endTime
.
value
||
new
Date
();
if
(
_startTime
===
null
)
{
Ext
.
toast
(
"请选择开始时间!"
);
return
;
}
if
(
_startTime
>
_endTime
)
{
Ext
.
toast
(
"开始日期不能大于结束日期!"
);
return
;
}
delete
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
;
delete
_view
.
filter
.
OperateTimeLessThan
;
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
=
new
Date
(
_startTime
.
getFullYear
(),
_startTime
.
getMonth
(),
_startTime
.
getDate
());
_view
.
filter
.
OperateTimeLessThan
=
new
Date
(
_endTime
.
getFullYear
(),
_endTime
.
getMonth
(),
_endTime
.
getDate
()
+
1
);
_view
.
reload
();
},
_onSelectIsBiz
:
function
(
_ctrl
,
_record
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
_view
.
filter
.
IsBiz
=
_record
.
data
.
isBiz
;
_view
.
reload
();
},
_cleanIsBiz
:
function
(
_ctrl
)
{
_ctrl
.
setValue
(
''
);
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
if
(
_view
.
filter
===
null
)
_view
.
setFilter
({});
_view
.
filter
.
IsBiz
=
null
;
_view
.
reload
();
},
_onTransfer
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_selecteds
=
_vm
.
data
.
selections
||
[];
if
(
!
_view
.
selection
)
return
;
if
(
_selecteds
.
length
<=
0
)
return
;
if
(
_selecteds
.
length
>
1
)
{
Ext
.
toast
(
"充值时请勿多选!"
);
return
;
}
if
(
_view
.
selection
.
data
.
AmountUsed
===
_view
.
selection
.
data
.
Amount
)
{
Ext
.
toast
(
"所选到账,无可用金额!"
);
return
;
}
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Payment.Transfer.Form'
);
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
autoScroll
:
true
,
width
:
600
,
height
:
350
,
modal
:
true
,
resizable
:
false
,
items
:
[
_form
]
});
_form
.
setOwner
(
_view
.
selection
.
data
,
_ctrl
);
_win
.
show
();
_form
.
on
(
'entityTransfer'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
_view
.
reload
();
});
},
_onSplit
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_selecteds
=
_vm
.
data
.
selections
||
[];
if
(
!
_view
.
selection
)
return
;
if
(
_selecteds
.
length
<=
0
)
return
;
let
_msg
=
Ext
.
create
(
'Ext.window.MessageBox'
,
{
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
closeAction
:
'destroy'
});
_msg
.
confirm
(
_ctrl
.
text
,
'您确认要重新认领选中的'
+
_selecteds
.
length
+
'条认领记录?<br />注:当前认领只会改变所属部门信息!'
,
_controller
.
_split
,
_controller
);
return
;
},
_split
:
function
(
_optional
)
{
if
(
_optional
!==
'yes'
)
return
;
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_selecteds
=
_vm
.
data
.
selections
||
[];
if
(
!
_view
.
selection
)
return
;
if
(
_selecteds
.
length
<=
0
)
return
;
let
_splits
=
[];
for
(
let
_i
=
0
;
_i
<
_selecteds
.
length
;
_i
++
)
{
let
_item
=
_selecteds
[
_i
].
data
;
if
(
_item
.
Type
===
'Split'
)
_splits
.
push
(
_item
.
Kvid
);
}
if
(
_splits
.
length
<=
0
)
{
Ext
.
toast
(
"请选择正确业务认领类型的到账!"
);
return
;
}
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.Payment/MultiSplit.json'
,
jsonData
:
{
Kvids
:
_splits
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
Ext
.
toast
(
'认领成功!'
);
_view
.
reload
();
},
failure
:
function
(
_response
)
{
}
});
},
_onSplitCancel
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_selecteds
=
_vm
.
data
.
selections
||
[];
if
(
!
_view
.
selection
)
return
;
if
(
_selecteds
.
length
<=
0
)
return
;
let
_msg
=
Ext
.
create
(
'Ext.window.MessageBox'
,
{
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
closeAction
:
'destroy'
});
_msg
.
confirm
(
_ctrl
.
text
,
'您确认要撤销选中的'
+
_selecteds
.
length
+
'条认领记录?<br />注:若要撤销已使用认领,则只会清除所属部门信息!'
,
_controller
.
_splitCancel
,
_controller
);
return
;
},
_splitCancel
:
function
(
_optional
)
{
if
(
_optional
!==
'yes'
)
return
;
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_selecteds
=
_vm
.
data
.
selections
||
[];
if
(
!
_view
.
selection
)
return
;
if
(
_selecteds
.
length
<=
0
)
return
;
let
_splits
=
[];
let
_unBizs
=
[];
let
_refunds
=
[];
for
(
let
_i
=
0
;
_i
<
_selecteds
.
length
;
_i
++
)
{
let
_item
=
_selecteds
[
_i
].
data
;
if
(
_item
.
Type
===
'Split'
)
_splits
.
push
(
_item
.
Kvid
);
if
(
_item
.
Type
===
'UnBiz'
)
_unBizs
.
push
(
_item
.
Kvid
);
if
(
_item
.
Type
===
'Refund'
)
_refunds
.
push
(
_item
.
Kvid
);
}
if
(
_splits
.
length
>
0
)
{
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.Payment/SplitCancel.json'
,
jsonData
:
{
Kvids
:
_splits
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
Ext
.
toast
(
'撤销认领成功!'
);
_view
.
reload
();
},
failure
:
function
(
_response
)
{
}
});
}
if
(
_unBizs
.
length
>
0
)
{
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.Payment/UnBizCancel.json'
,
jsonData
:
{
Kvids
:
_unBizs
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
Ext
.
toast
(
'撤销非业务成功!'
);
_view
.
reload
();
},
failure
:
function
(
_response
)
{
}
});
}
if
(
_refunds
.
length
>
0
)
{
Ext
.
Ajax
.
request
({
url
:
'/Restful/Kivii.Finances.Entities.Payment/RefundCancel.json'
,
jsonData
:
{
Kvids
:
_refunds
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
Ext
.
toast
(
'撤销退款成功!'
);
_view
.
reload
();
},
failure
:
function
(
_response
)
{
}
});
}
},
_onUsedList
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_selecteds
=
_vm
.
data
.
selections
||
[];
if
(
!
_view
.
selection
)
return
;
if
(
_selecteds
.
length
<=
0
)
return
;
if
(
_selecteds
.
length
>
1
)
{
Ext
.
toast
(
"查看使用记录时请勿多选!"
);
return
;
}
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Payment.Used.List'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
1200
,
height
:
650
,
modal
:
true
,
maximizable
:
true
,
resizable
:
true
,
items
:
[
_form
]
});
_form
.
setOwner
(
_view
.
selection
.
data
,
_ctrl
);
_win
.
show
();
_win
.
on
(
'close'
,
function
(
_ctrl
,
_entity
)
{
_view
.
reload
();
});
},
}
});
\ No newline at end of file
Src/Content/codet/Classic.View.Kivii.Finances.Settlement.List.js
0 → 100644
View file @
5ef2d2e1
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.View.Kivii.Finances.Settlement.List'
,
{
extend
:
'System.Control.EntityList'
,
entityType
:
'Kivii.Finances.Entities.Settlement'
,
xtype
:
'App.View.Kivii.Finances.Settlement.List'
,
dataSource
:
'/Restful/Kivii.Finances.Entities.Settlement/QueryEx.json'
,
title
:
'结算管理'
,
iconCls
:
'x-fa fa-newspaper-o'
,
filter
:
{
IsPayed
:
false
},
viewModel
:
{
data
:
{
_selection
:
null
}
},
bind
:
{
selection
:
'{_selection}'
},
store
:
{
autoLoad
:
true
,
pageSize
:
400
,
groupField
:
'PayerName'
,
sorters
:
[{
property
:
'OwnerName'
,
direction
:
'DESC'
},
{
property
:
'PayerName'
,
direction
:
'DESC'
},
{
property
:
'OperateTime'
,
direction
:
'DESC'
}]
},
selModel
:
{
selType
:
'checkboxmodel'
,
checkboxSelect
:
true
,
pruneRemoved
:
false
,
extensible
:
'y'
},
features
:
[{
ftype
:
'groupingsummary'
,
groupHeaderTpl
:
[
'<div>{name:this.formatName} ({rows.length} 条)</div>'
,
{
formatName
:
function
(
name
)
{
return
name
;
}
}
]
}],
dockedItems
:
[{
xtype
:
'pagingtoolbar'
,
dock
:
'bottom'
,
displayInfo
:
true
,
items
:
[{
xtype
:
'button'
,
labelWidth
:
60
,
iconCls
:
'x-fa fa-check-square-o'
,
bind
:
{
text
:
'已选择{selectionCount}条记录,点击清除'
,
hidden
:
'{selectionCount==0}'
},
handler
:
'_onClearSelections'
}]
},
{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'menu'
,
items
:
[{
xtype
:
'combo'
,
queryMode
:
'local'
,
displayField
:
'displayInfo'
,
valueField
:
'isPayed'
,
value
:
false
,
editable
:
false
,
filterPickList
:
true
,
reference
:
'isPayed'
,
store
:
{
fields
:
[
'displayInfo'
,
'isPayed'
],
data
:
[{
displayInfo
:
'已收款'
,
isPayed
:
true
},
{
displayInfo
:
'未收款'
,
isPayed
:
false
}]
},
listeners
:
{
select
:
'_onSelectIsPayed'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'时间范围 开始'
,
format
:
'Y-m-d'
,
labelWidth
:
90
,
reference
:
'startTime'
,
editable
:
false
,
triggers
:
{
clear
:
{
weight
:
2
,
cls
:
'x-fa fa-times'
,
handler
:
'_cleanBeginOperateTime'
}
},
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'结束'
,
format
:
'Y-m-d'
,
labelWidth
:
30
,
reference
:
'endTime'
,
editable
:
false
,
triggers
:
{
clear
:
{
weight
:
2
,
cls
:
'x-fa fa-times'
,
handler
:
'_cleanEndOperateTime'
}
},
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'PayerName,BizId,OperatorName'
,
emptyText
:
'模糊搜索付款单位、所属业务或操作人'
,
},
{
xtype
:
'checkbox'
,
// value:true,
labelWidth
:
100
,
fieldLabel
:
'仅显示未有账单'
,
iconAlign
:
'left'
,
handler
:
'_onCheck'
},
{
text
:
'新增结算'
,
iconCls
:
'x-fa fa-plus'
,
handler
:
'_onCreateSettlement'
},
{
text
:
'生成账单'
,
iconCls
:
'x-fa fa-file-text-o'
,
handler
:
'_onGenerateBill'
,
bind
:
{
disabled
:
'{!_selection}'
}
// }, {
// text: '收款登记',
// iconCls: 'x-fa fa-tags',
// handler: '_onPaying',
// bind: {
// disabled: '{!_selection}'
// }
}
]
}],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
false
},
items
:
[{
xtype
:
'rownumberer'
},
{
dataIndex
:
'BizId'
,
text
:
'所属业务'
,
width
:
170
,
// sortable: true,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'合计'
);
}
},
{
dataIndex
:
'OwnerName'
,
text
:
'所属部门'
,
width
:
120
},
{
dataIndex
:
'OperateTime'
,
text
:
'操作日期'
,
width
:
100
,
// sortable: true,
renderer
:
Ext
.
util
.
Format
.
dateRenderer
(
'Y-m-d'
)
},
{
dataIndex
:
'AmountPlan'
,
align
:
'right'
,
text
:
'原金额'
,
width
:
100
,
renderer
:
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'¥{0}'
,
value
.
toFixed
(
2
));
}
},
{
dataIndex
:
'Amount'
,
align
:
'right'
,
text
:
'结算金额'
,
width
:
100
,
renderer
:
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'¥{0}'
,
value
.
toFixed
(
2
));
}
},
{
dataIndex
:
'AmountPayment'
,
align
:
'right'
,
text
:
'已付金额'
,
width
:
100
,
renderer
:
'_renderAmount'
,
summaryType
:
'sum'
,
summaryRenderer
:
function
(
value
,
summaryData
,
dataIndex
)
{
return
Ext
.
String
.
format
(
'¥{0}'
,
value
.
toFixed
(
2
));
}
},
{
dataIndex
:
'Type'
,
text
:
'类型'
,
width
:
90
,
renderer
:
'_renderType'
},
{
dataIndex
:
'OperatorName'
,
text
:
'操作人'
,
width
:
90
},
{
xtype
:
'actioncolumn'
,
text
:
'操作'
,
align
:
'center'
,
items
:
[{
text
:
'查看'
,
iconCls
:
'x-fa fa-search'
,
handler
:
'_onReadSettlement'
}],
width
:
50
},
{
dataIndex
:
'Summary'
,
text
:
'摘要'
,
width
:
200
},
{
dataIndex
:
'Remark'
,
text
:
'备注'
,
minWidth
:
100
,
flex
:
1
}]
},
listeners
:
{
activate
:
'_onActivate'
},
controller
:
{
_onClearSelections
:
function
()
{
this
.
getView
().
clearSelections
();
},
_onActivate
:
function
(
_ctrl
,
_eOpts
)
{
this
.
getView
().
reload
();
},
_renderType
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
"Report"
)
{
return
"报告费"
;
}
if
(
_value
===
"Service"
)
{
return
"服务费"
;
}
if
(
_value
===
"Express"
)
{
return
"快递费"
;
}
return
_value
;
},
_renderAmount
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
_record
.
data
.
Amount
)
{
_meta
.
style
=
'background-color:#B4EEB4'
;
}
else
_meta
.
style
=
'background-color:#F0E68C'
;
if
(
_record
.
data
.
hasOwnProperty
(
'OffsetKvid'
)
&&
_record
.
data
.
OffsetKvid
!==
null
)
_meta
.
style
=
'background-color:#FF0000'
;
return
KiviiContext
.
Const
.
FinancesFunctionsMoneyToFmoney
(
_value
);
},
_onSelectMonth
:
function
(
_ctrl
,
_time
,
_eOpts
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_refs
=
_controller
.
getReferences
();
let
_startTime
=
_refs
.
startTime
.
value
;
let
_endTime
=
_refs
.
endTime
.
value
||
new
Date
();
if
(
_startTime
===
null
)
{
Ext
.
toast
(
"请选择开始时间!"
);
return
;
}
if
(
_startTime
>
_endTime
)
{
Ext
.
toast
(
"开始日期不能大于结束日期!"
);
return
;
}
delete
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
;
delete
_view
.
filter
.
OperateTimeLessThan
;
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
=
new
Date
(
_startTime
.
getFullYear
(),
_startTime
.
getMonth
(),
_startTime
.
getDate
());
_view
.
filter
.
OperateTimeLessThan
=
new
Date
(
_endTime
.
getFullYear
(),
_endTime
.
getMonth
(),
_endTime
.
getDate
()
+
1
);
_view
.
reload
();
},
_cleanBeginOperateTime
:
function
(
_ctrl
)
{
_ctrl
.
setValue
(
null
);
let
_me
=
this
;
let
_view
=
_me
.
getView
();
if
(
_view
.
filter
===
null
)
_view
.
setFilter
({});
delete
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
;
_view
.
reload
();
},
_cleanEndOperateTime
:
function
(
_ctrl
)
{
_ctrl
.
setValue
(
null
);
let
_me
=
this
;
let
_view
=
_me
.
getView
();
if
(
_view
.
filter
===
null
)
_view
.
setFilter
({});
delete
_view
.
filter
.
OperateTimeLessThan
;
_view
.
reload
();
},
_onSelectIsPayed
:
function
(
_ctrl
,
_record
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
_view
.
filter
.
IsPayed
=
_record
.
data
.
isPayed
;
_view
.
reload
();
},
_onCheck
:
function
(
_ctrl
,
_isChecked
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
if
(
!
_isChecked
)
delete
_view
.
filter
.
IsBilled
;
else
_view
.
filter
.
IsBilled
=
!
_isChecked
;
_view
.
reload
();
},
_onCreateSettlement
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Settlement.Form'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
1300
,
height
:
720
,
modal
:
true
,
maximizable
:
true
,
resizable
:
true
,
items
:
[
_form
]
});
_win
.
show
();
_form
.
on
(
'entityCreated'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
_view
.
reload
();
});
},
_onReadSettlement
:
function
(
_ctrl
,
_recIndex
,
_cellIndex
,
_item
,
_e
,
_record
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Settlement.Form'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
1200
,
height
:
680
,
modal
:
true
,
maximizable
:
true
,
resizable
:
true
,
items
:
[
_form
]
});
_win
.
show
();
_form
.
setOwner
(
_record
.
data
);
_form
.
on
(
'entityDeleted'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
_view
.
reload
();
});
},
_onGenerateBill
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_selecteds
=
_vm
.
data
.
selections
||
[];
if
(
!
_view
.
selection
)
return
;
if
(
_selecteds
.
length
<=
0
)
return
;
let
_bill
=
{
Metadata
:
{},
Kvid
:
null
,
Amount
:
0
,
AmountPlan
:
0
,
AmountPayment
:
0
,
OwnerName
:
KiviiContext
.
CurrentMember
.
DepartmentName
,
OwnerKvid
:
KiviiContext
.
CurrentMember
.
DepartmentKvid
,
OperateTime
:
new
Date
(),
PayeeKvid
:
KiviiContext
.
CurrentMember
.
OrganizationKvid
,
PayeeName
:
KiviiContext
.
CurrentMember
.
OrganizationName
,
OperatorName
:
KiviiContext
.
CurrentMember
.
FullName
,
OperatorKvid
:
KiviiContext
.
CurrentMember
.
Kvid
,
Currency
:
'CNY'
,
Details
:
[]
};
for
(
let
_i
=
0
;
_i
<
_selecteds
.
length
;
_i
++
)
{
_bill
.
PayerName
=
_selecteds
[
_i
].
data
.
PayerName
;
_bill
.
PayerKvid
=
_selecteds
[
_i
].
data
.
PayerKvid
;
_bill
.
Details
.
push
(
_selecteds
[
_i
].
data
);
}
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Bill.Form'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
1200
,
height
:
700
,
modal
:
true
,
maximizable
:
true
,
resizable
:
true
,
items
:
[
_form
]
});
_form
.
setOwner
(
_bill
);
_win
.
show
();
_form
.
on
(
'entityCreated'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
_view
.
reload
();
});
},
_onPaying
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_selecteds
=
_vm
.
data
.
selections
||
[];
if
(
!
_view
.
selection
)
return
;
if
(
_selecteds
.
length
<=
0
)
return
;
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Settlement.Paying.Form'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
900
,
height
:
500
,
modal
:
true
,
maximizable
:
true
,
resizable
:
true
,
items
:
[
_form
]
});
_form
.
setOwner
(
_selecteds
);
_win
.
show
();
_form
.
on
(
'entityPaying'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
_view
.
reload
();
});
}
}
});
\ No newline at end of file
Src/Extensions/PaymentExtension.cs
View file @
5ef2d2e1
...
...
@@ -316,7 +316,7 @@ namespace Kivii.Finances
var
newPaymentKvid
=
Guid
.
NewGuid
();
payment
.
OffsetKvid
=
newPaymentKvid
;
payment
.
AddOnlyProperties
(
o
=>
o
.
OffsetKvid
);
payment
.
Remark
=
$"
{
remark
}
"
;
payment
.
Remark
+=
$"
{
remark
}
"
;
payment
.
AddOnlyProperties
(
o
=>
o
.
Remark
);
//新建一个和原来一样的
...
...
@@ -327,6 +327,7 @@ namespace Kivii.Finances
offsetPayment
.
SerialNumber
=
payment
.
SerialNumber
.
IsNullOrEmpty
()
?
""
:
(
"-"
+
payment
.
SerialNumber
);
offsetPayment
.
Remark
=
$"
{
remark
}
"
;
offsetPayment
.
Amount
=
0
-
offsetPayment
.
Amount
;
//反向值
offsetPayment
.
OperateTime
=
DateTime
.
Now
;
#
endregion
return
offsetPayment
;
...
...
Src/Kivii.Biz.Finances.V2.0.csproj
View file @
5ef2d2e1
...
...
@@ -99,5 +99,83 @@
<ItemGroup>
<None
Include=
"packages.config"
/>
</ItemGroup>
<ItemGroup>
<EmbeddedResource
Include=
"Content\codes\App.Const.Finances.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.AccountDetail.List.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.Bill.Form.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.Bill.Settlement.Selector.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.Bill.Template.Selector.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.Debiting.Payment.Selector.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.InvoiceApply.Execute.Form.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.InvoiceApply.Form.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.InvoiceApply.Payment.Selector.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.InvoiceApplyDetail.Form.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.InvoiceTitle.Form.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.InvoiceTitle.Selector.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.Paying.Payment.Selector.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.Payment.Accept.Form.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.Payment.Filter.Form.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.Payment.Offset.List.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.Payment.Transfer.Form.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.Payment.Used.List.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.Settlement.Biz.Report.Selector.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.Settlement.Customer.Create.Form.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.Settlement.Customer.Selector.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.Settlement.Form.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.Settlement.Paying.Form.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.SettlementDetail.Form.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.Transfer.Account.Selector.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.View.Kivii.Finances.Account.List.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.View.Kivii.Finances.Bill.List.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.View.Kivii.Finances.Invoice.Debit.List.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.View.Kivii.Finances.Invoice.List.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.View.Kivii.Finances.InvoiceApply.Current.List.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.View.Kivii.Finances.InvoiceApply.List.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.View.Kivii.Finances.InvoiceApply.Payment.List.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.View.Kivii.Finances.InvoiceTitle.List.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.View.Kivii.Finances.Payment.Accept.List.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.View.Kivii.Finances.Payment.Filter.List.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.View.Kivii.Finances.Payment.List.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.View.Kivii.Finances.Payment.Split.List.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.View.Kivii.Finances.Settlement.List.js"
/>
<EmbeddedResource
Include=
"Content\codet\App.Const.Finances.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.AccountDetail.List.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.Bill.Form.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.Bill.Settlement.Selector.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.Bill.Template.Selector.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.Debiting.Payment.Selector.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.InvoiceApply.Execute.Form.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.InvoiceApply.Form.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.InvoiceApply.Payment.Selector.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.InvoiceApplyDetail.Form.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.InvoiceTitle.Form.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.InvoiceTitle.Selector.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.Paying.Payment.Selector.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.Payment.Accept.Form.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.Payment.Filter.Form.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.Payment.Offset.List.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.Payment.Transfer.Form.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.Payment.Used.List.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.Settlement.Biz.Report.Selector.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.Settlement.Customer.Create.Form.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.Settlement.Customer.Selector.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.Settlement.Form.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.Settlement.Paying.Form.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.SettlementDetail.Form.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.Transfer.Account.Selector.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.View.Kivii.Finances.Account.List.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.View.Kivii.Finances.Bill.List.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.View.Kivii.Finances.Invoice.Debit.List.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.View.Kivii.Finances.Invoice.List.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.View.Kivii.Finances.InvoiceApply.Current.List.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.View.Kivii.Finances.InvoiceApply.List.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.View.Kivii.Finances.InvoiceApply.Payment.List.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.View.Kivii.Finances.InvoiceTitle.List.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.View.Kivii.Finances.Payment.Accept.List.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.View.Kivii.Finances.Payment.Filter.List.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.View.Kivii.Finances.Payment.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"
/>
</ItemGroup>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
</Project>
\ No newline at end of file
Src/Properties/AssemblyInfo.cs
View file @
5ef2d2e1
...
...
@@ -33,5 +33,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.4.2021.
0914
0")]
[assembly: AssemblyFileVersion("5.4.2021.
0914
0")]
[assembly: AssemblyVersion("5.4.2021.
1228
0")]
[assembly: AssemblyFileVersion("5.4.2021.
1228
0")]
Src/Transforms/RestfulPayment.Accept.cs
View file @
5ef2d2e1
...
...
@@ -18,7 +18,7 @@ namespace Kivii.Finances.Transforms
public
List
<
Payment
>
Items
{
get
;
set
;
}
[
ApiMember
(
Description
=
"认领类型,默认为Department,Organization,Member"
)]
public
OwnerType
OwnerType
{
get
;
set
;
}
=
OwnerType
.
Department
;
public
OwnerType
OwnerType
{
get
;
set
;
}
=
OwnerType
.
Organization
;
public
override
object
OnExecution
(
IRequest
req
,
IResponse
res
)
{
...
...
@@ -47,6 +47,30 @@ namespace Kivii.Finances.Transforms
var
allAcceptPayments
=
new
List
<
Payment
>();
var
allAcceptPays
=
new
List
<
Pay
>();
var
ownerKvid
=
Guid
.
Empty
;
var
ownerName
=
string
.
Empty
;
switch
(
OwnerType
)
{
case
OwnerType
.
Department
:
{
ownerKvid
=
KiviiContext
.
CurrentMember
.
DepartmentKvid
;
ownerName
=
KiviiContext
.
CurrentMember
.
DepartmentName
;
break
;
}
case
OwnerType
.
Member
:
{
ownerKvid
=
KiviiContext
.
CurrentMember
.
Kvid
;
ownerName
=
KiviiContext
.
CurrentMember
.
FullName
;
break
;
}
default
:
{
ownerKvid
=
KiviiContext
.
CurrentMember
.
OrganizationKvid
;
ownerName
=
KiviiContext
.
CurrentMember
.
OrganizationName
;
break
;
}
}
//生成银行流水
if
(!
typeBanks
.
IsNullOrEmpty
())
{
...
...
@@ -62,8 +86,8 @@ namespace Kivii.Finances.Transforms
item
.
AmountSplited
=
0
;
item
.
AmountUsed
=
0
;
item
.
OwnerKvid
=
KiviiContext
.
CurrentMember
.
Organization
Kvid
;
item
.
OwnerName
=
KiviiContext
.
CurrentMember
.
Organization
Name
;
item
.
OwnerKvid
=
owner
Kvid
;
item
.
OwnerName
=
owner
Name
;
item
.
OffsetKvid
=
Guid
.
Empty
;
item
.
BizId
=
string
.
Empty
;
item
.
BizType
=
string
.
Empty
;
...
...
@@ -88,30 +112,6 @@ namespace Kivii.Finances.Transforms
}
}
var
ownerKvid
=
Guid
.
Empty
;
var
ownerName
=
string
.
Empty
;
switch
(
OwnerType
)
{
case
OwnerType
.
Organization
:
{
ownerKvid
=
KiviiContext
.
CurrentMember
.
OrganizationKvid
;
ownerName
=
KiviiContext
.
CurrentMember
.
OrganizationName
;
break
;
}
case
OwnerType
.
Member
:
{
ownerKvid
=
KiviiContext
.
CurrentMember
.
Kvid
;
ownerName
=
KiviiContext
.
CurrentMember
.
FullName
;
break
;
}
default
:
{
ownerKvid
=
KiviiContext
.
CurrentMember
.
DepartmentKvid
;
ownerName
=
KiviiContext
.
CurrentMember
.
DepartmentName
;
break
;
}
}
//生成现金流水
if
(!
typeCashs
.
IsNullOrEmpty
())
{
...
...
Src/Transforms/RestfulPayment.cs
View file @
5ef2d2e1
...
...
@@ -290,9 +290,9 @@ namespace Kivii.Finances.Transforms
}
}
[
Api
(
Description
=
"
充值
查询"
)]
[
Api
(
Description
=
"
使用
查询"
)]
[
RequiresAnyRole
(
SystemRoles
.
Everyone
)]
public
class
Payment
Transfer
Query
:
RestfulExecution
<
Payment
>
public
class
Payment
Used
Query
:
RestfulExecution
<
Payment
>
{
#
region
QueryArgs
public
virtual
int
?
Skip
{
get
;
set
;
}
...
...
@@ -322,7 +322,7 @@ namespace Kivii.Finances.Transforms
var
request
=
new
RestfulQuery
<
Payment
>();
request
=
request
.
PopulateWith
(
this
);
var
sqlExpress
=
autoQuery
.
CreateQuery
(
Request
,
conn
,
request
,
dynamicParams
);
sqlExpress
.
Where
(
o
=>
o
.
Type
==
PaymentType
.
Transfer
);
sqlExpress
.
Where
(
o
=>
Sql
.
In
(
o
.
Type
,
PaymentType
.
Transfer
,
PaymentType
.
DynamicPay
)
);
var
rtns
=
autoQuery
.
Execute
(
Request
,
conn
,
request
,
sqlExpress
);
return
rtns
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment