Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
3d32e3ae
Commit
3d32e3ae
authored
Jul 01, 2021
by
季圣华
Browse files
优化财务单据
parent
16b51948
Changes
13
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/financial/dialog/DebtBillList.vue
View file @
3d32e3ae
...
@@ -52,7 +52,6 @@
...
@@ -52,7 +52,6 @@
rowKey=
"id"
rowKey=
"id"
:columns=
"columns"
:columns=
"columns"
:dataSource=
"dataSource"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:loading=
"loading"
:loading=
"loading"
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type: getType}"
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type: getType}"
:customRow="rowAction">
:customRow="rowAction">
...
...
jshERP-web/src/views/financial/dialog/FinancialDetail.vue
View file @
3d32e3ae
...
@@ -64,14 +64,23 @@
...
@@ -64,14 +64,23 @@
</a-col>
</a-col>
</a-row>
</a-row>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:span=
"6"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"合计金额"
>
{{
model
.
totalPrice
}}
</a-form-item>
</a-col>
<a-col
:span=
"6"
>
<a-col
:span=
"6"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"优惠金额"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"优惠金额"
>
{{
model
.
discountMoney
}}
</a-form-item>
</a-col>
<a-col
:span=
"6"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"收款金额"
>
{{
model
.
changeAmount
}}
{{
model
.
changeAmount
}}
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:span=
"6"
></a-col>
<a-col
:span=
"6"
></a-col>
<a-col
:span=
"6"
></a-col>
<a-col
:span=
"6"
></a-col>
<a-col
:span=
"6"
></a-col>
</a-row>
</a-row>
</section>
</section>
</
template
>
</
template
>
...
@@ -293,13 +302,33 @@
...
@@ -293,13 +302,33 @@
{{
model
.
accountName
}}
{{
model
.
accountName
}}
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:span=
"6"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"合计收款"
>
{{
model
.
totalPrice
}}
</a-form-item>
</a-col>
<a-col
:span=
"6"
>
<a-col
:span=
"6"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"优惠金额"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"优惠金额"
>
{{
model
.
discountMoney
}}
</a-form-item>
</a-col>
<a-col
:span=
"6"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"实际收款"
>
{{
model
.
changeAmount
}}
{{
model
.
changeAmount
}}
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:span=
"6"
></a-col>
</a-row>
<a-col
:span=
"6"
></a-col>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:span=
"8"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"附件"
>
<ul
style=
"list-style-type:none"
>
<li
v-for=
"(item,index) in fileList"
:key=
"index"
>
<a
:href=
"item.url"
target=
"_blank"
>
{{
item
.
name
}}
</a>
</li>
</ul>
</a-form-item>
</a-col>
<a-col
:span=
"16"
></a-col>
</a-row>
</a-row>
</section>
</section>
</
template
>
</
template
>
...
@@ -346,14 +375,38 @@
...
@@ -346,14 +375,38 @@
</a-col>
</a-col>
</a-row>
</a-row>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:span=
"6"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"付款账户"
>
{{
model
.
accountName
}}
</a-form-item>
</a-col>
<a-col
:span=
"6"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"合计付款"
>
{{
model
.
totalPrice
}}
</a-form-item>
</a-col>
<a-col
:span=
"6"
>
<a-col
:span=
"6"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"优惠金额"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"优惠金额"
>
{{
model
.
discountMoney
}}
</a-form-item>
</a-col>
<a-col
:span=
"6"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"实际付款"
>
{{
model
.
changeAmount
}}
{{
model
.
changeAmount
}}
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:span=
"6"
></a-col>
</a-row>
<a-col
:span=
"6"
></a-col>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:span=
"6"
></a-col>
<a-col
:span=
"8"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"附件"
>
<ul
style=
"list-style-type:none"
>
<li
v-for=
"(item,index) in fileList"
:key=
"index"
>
<a
:href=
"item.url"
target=
"_blank"
>
{{
item
.
name
}}
</a>
</li>
</ul>
</a-form-item>
</a-col>
<a-col
:span=
"16"
></a-col>
</a-row>
</a-row>
</section>
</section>
</
template
>
</
template
>
...
@@ -373,6 +426,7 @@
...
@@ -373,6 +426,7 @@
visible
:
false
,
visible
:
false
,
model
:
{},
model
:
{},
financialType
:
''
,
financialType
:
''
,
fileList
:
[],
labelCol
:
{
labelCol
:
{
xs
:
{
span
:
24
},
xs
:
{
span
:
24
},
sm
:
{
span
:
6
},
sm
:
{
span
:
6
},
...
@@ -415,9 +469,11 @@
...
@@ -415,9 +469,11 @@
{
title
:
'
备注
'
,
dataIndex
:
'
remark
'
,
width
:
'
20%
'
}
{
title
:
'
备注
'
,
dataIndex
:
'
remark
'
,
width
:
'
20%
'
}
],
],
moneyOutColumns
:
[
moneyOutColumns
:
[
{
title
:
'
账户名称
'
,
dataIndex
:
'
accountName
'
,
width
:
'
20%
'
},
{
title
:
'
采购单据编号
'
,
dataIndex
:
'
billNumber
'
,
width
:
'
20%
'
},
{
title
:
'
金额
'
,
dataIndex
:
'
eachAmount
'
,
width
:
'
10%
'
},
{
title
:
'
应收欠款
'
,
dataIndex
:
'
needDebt
'
,
width
:
'
10%
'
},
{
title
:
'
备注
'
,
dataIndex
:
'
remark
'
,
width
:
'
30%
'
}
{
title
:
'
已收欠款
'
,
dataIndex
:
'
finishDebt
'
,
width
:
'
10%
'
},
{
title
:
'
本次收款
'
,
dataIndex
:
'
eachAmount
'
,
width
:
'
10%
'
},
{
title
:
'
备注
'
,
dataIndex
:
'
remark
'
,
width
:
'
20%
'
}
],
],
}
}
},
},
...
@@ -426,6 +482,18 @@
...
@@ -426,6 +482,18 @@
methods
:
{
methods
:
{
show
(
record
,
type
)
{
show
(
record
,
type
)
{
this
.
financialType
=
type
this
.
financialType
=
type
//附件下载
let
fileName
=
record
.
fileName
if
(
fileName
)
{
let
fileArr
=
fileName
.
split
(
"
,
"
)
this
.
fileList
=
[]
for
(
let
i
=
0
;
i
<
fileArr
.
length
;
i
++
)
{
let
fileInfo
=
{}
fileInfo
.
name
=
fileArr
[
i
].
replace
(
"
financial/
"
,
""
)
fileInfo
.
url
=
window
.
_CONFIG
[
'
domianURL
'
]
+
'
/systemConfig/static/
'
+
fileArr
[
i
]
this
.
fileList
.
push
(
fileInfo
)
}
}
this
.
visible
=
true
;
this
.
visible
=
true
;
this
.
model
=
Object
.
assign
({},
record
);
this
.
model
=
Object
.
assign
({},
record
);
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
...
jshERP-web/src/views/financial/mixins/FinancialModalMixin.js
View file @
3d32e3ae
...
@@ -47,7 +47,7 @@ export const FinancialModalMixin = {
...
@@ -47,7 +47,7 @@ export const FinancialModalMixin = {
}
}
})
})
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
billTime
'
:
getNowFormatDateTime
()})
this
.
form
.
setFieldsValue
({
'
billTime
'
:
getNowFormatDateTime
()
,
'
totalPrice
'
:
0
,
'
discountMoney
'
:
0
,
'
changeAmount
'
:
0
})
})
})
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
getAccount
({}).
then
((
res
)
=>
{
getAccount
({}).
then
((
res
)
=>
{
...
@@ -147,25 +147,55 @@ export const FinancialModalMixin = {
...
@@ -147,25 +147,55 @@ export const FinancialModalMixin = {
switch
(
column
.
key
)
{
switch
(
column
.
key
)
{
case
"
eachAmount
"
:
case
"
eachAmount
"
:
target
.
recalcAllStatisticsColumns
()
target
.
recalcAllStatisticsColumns
()
that
.
autoChange
Price
(
target
)
that
.
autoChange
Amount
(
target
)
break
;
break
;
}
}
},
},
//根据仓库和条码查询库存
//改变本次欠款的值
getStockByDepotBarCode
(
row
,
target
){
autoChangeAmount
(
target
)
{
findStockByDepotAndBarCode
({
depotId
:
row
.
depotId
,
barCode
:
row
.
barCode
}).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
)
{
target
.
setValues
([{
rowKey
:
row
.
id
,
values
:
{
stock
:
res
.
data
.
stock
}}])
target
.
recalcAllStatisticsColumns
()
}
})
},
//改变优惠、本次付款、欠款的值
autoChangePrice
(
target
)
{
let
allEachAmount
=
target
.
statisticsColumns
.
eachAmount
-
0
let
allEachAmount
=
target
.
statisticsColumns
.
eachAmount
-
0
let
discountMoney
=
this
.
form
.
getFieldValue
(
'
discountMoney
'
)
-
0
let
changeAmount
=
(
allEachAmount
-
discountMoney
).
toFixed
(
2
)
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
totalPrice
'
:
allEachAmount
,
'
changeAmount
'
:
changeAmount
})
});
},
//改变优惠金额
onKeyUpDiscountMoney
(
e
)
{
const
value
=
e
.
target
.
value
-
0
let
totalPrice
=
this
.
form
.
getFieldValue
(
'
totalPrice
'
)
-
0
let
changeAmount
=
(
totalPrice
-
value
).
toFixed
(
2
)
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
changeAmount
'
:
changeAmount
})
});
},
//选择欠款单据
debtBillListOk
(
selectBillRows
)
{
if
(
selectBillRows
&&
selectBillRows
.
length
>
0
)
{
this
.
requestSubTableDataEx
(
selectBillRows
,
this
.
accountTable
);
}
},
/** 查询某个tab的数据,给明细里面的金额赋值 */
requestSubTableDataEx
(
selectBillRows
,
tab
,
success
)
{
tab
.
loading
=
true
let
listEx
=
[]
let
changeAmount
=
0
for
(
let
i
=
0
;
i
<
selectBillRows
.
length
;
i
++
){
let
info
=
selectBillRows
[
i
]
info
.
billNumber
=
info
.
number
info
.
needDebt
=
(
info
.
discountLastMoney
-
info
.
changeAmount
).
toFixed
(
2
)
info
.
eachAmount
=
(
info
.
discountLastMoney
-
info
.
changeAmount
-
info
.
finishDebt
).
toFixed
(
2
);
if
(
info
.
eachAmount
!=
0
)
{
changeAmount
+=
info
.
eachAmount
-
0
listEx
.
push
(
info
)
}
}
tab
.
dataSource
=
listEx
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
changeAmount
'
:
allEach
Amount
})
this
.
form
.
setFieldsValue
({
'
totalPrice
'
:
changeAmount
,
'
changeAmount
'
:
change
Amount
})
});
});
typeof
success
===
'
function
'
?
success
(
res
)
:
''
tab
.
loading
=
false
}
}
}
}
}
}
\ No newline at end of file
jshERP-web/src/views/financial/modules/AdvanceInModal.vue
View file @
3d32e3ae
...
@@ -52,7 +52,8 @@
...
@@ -52,7 +52,8 @@
:maxHeight=
"300"
:maxHeight=
"300"
:rowNumber=
"false"
:rowNumber=
"false"
:rowSelection=
"true"
:rowSelection=
"true"
:actionButton=
"true"
/>
:actionButton=
"true"
@
valueChange=
"onValueChange"
/>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:lg=
"24"
:md=
"24"
:sm=
"24"
>
<a-col
:lg=
"24"
:md=
"24"
:sm=
"24"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"
{xs: { span: 24 },sm: { span: 24 }}" label="">
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"
{xs: { span: 24 },sm: { span: 24 }}" label="">
...
@@ -62,13 +63,19 @@
...
@@ -62,13 +63,19 @@
</a-row>
</a-row>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"
优惠
金额"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"
合计
金额"
>
<a-input
placeholder=
"请输入
优惠金额
"
v-decorator.trim=
"[ '
changeAmount' ]"
/>
<a-input
placeholder=
"请输入
合计收款
"
v-decorator.trim=
"[ '
totalPrice' ]"
:readOnly=
"true"
/>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"优惠金额"
>
<a-input
placeholder=
"请输入优惠金额"
v-decorator.trim=
"[ 'discountMoney' ]"
@
keyup=
"onKeyUpDiscountMoney"
/>
</a-form-item>
</a-col>
</a-col>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"收款金额"
>
<a-input
placeholder=
"请输入收款金额"
v-decorator.trim=
"[ 'changeAmount' ]"
:readOnly=
"true"
/>
</a-form-item>
</a-col>
</a-col>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
</a-col>
</a-col>
...
@@ -152,7 +159,8 @@
...
@@ -152,7 +159,8 @@
}
else
{
}
else
{
this
.
model
.
billTime
=
this
.
model
.
billTimeStr
this
.
model
.
billTime
=
this
.
model
.
billTimeStr
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
(
pick
(
this
.
model
,
'
organId
'
,
'
handsPersonId
'
,
'
billTime
'
,
'
billNo
'
,
'
remark
'
,
'
changeAmount
'
))
this
.
form
.
setFieldsValue
(
pick
(
this
.
model
,
'
organId
'
,
'
handsPersonId
'
,
'
billTime
'
,
'
billNo
'
,
'
remark
'
,
'
totalPrice
'
,
'
discountMoney
'
,
'
changeAmount
'
))
});
});
// 加载子表数据
// 加载子表数据
let
params
=
{
let
params
=
{
...
...
jshERP-web/src/views/financial/modules/GiroModal.vue
View file @
3d32e3ae
...
@@ -188,6 +188,13 @@
...
@@ -188,6 +188,13 @@
info
:
JSON
.
stringify
(
billMain
),
info
:
JSON
.
stringify
(
billMain
),
rows
:
JSON
.
stringify
(
detailArr
),
rows
:
JSON
.
stringify
(
detailArr
),
}
}
},
//改变本次欠款的值
autoChangeAmount
(
target
)
{
let
allEachAmount
=
target
.
statisticsColumns
.
eachAmount
-
0
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
changeAmount
'
:
allEachAmount
})
});
}
}
}
}
}
}
...
...
jshERP-web/src/views/financial/modules/ItemInModal.vue
View file @
3d32e3ae
...
@@ -199,6 +199,13 @@
...
@@ -199,6 +199,13 @@
info
:
JSON
.
stringify
(
billMain
),
info
:
JSON
.
stringify
(
billMain
),
rows
:
JSON
.
stringify
(
detailArr
),
rows
:
JSON
.
stringify
(
detailArr
),
}
}
},
//改变本次欠款的值
autoChangeAmount
(
target
)
{
let
allEachAmount
=
target
.
statisticsColumns
.
eachAmount
-
0
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
changeAmount
'
:
allEachAmount
})
});
}
}
}
}
}
}
...
...
jshERP-web/src/views/financial/modules/ItemOutModal.vue
View file @
3d32e3ae
...
@@ -200,6 +200,13 @@
...
@@ -200,6 +200,13 @@
info
:
JSON
.
stringify
(
billMain
),
info
:
JSON
.
stringify
(
billMain
),
rows
:
JSON
.
stringify
(
detailArr
),
rows
:
JSON
.
stringify
(
detailArr
),
}
}
},
//改变本次欠款的值
autoChangeAmount
(
target
)
{
let
allEachAmount
=
target
.
statisticsColumns
.
eachAmount
-
0
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
changeAmount
'
:
allEachAmount
})
});
}
}
}
}
}
}
...
...
jshERP-web/src/views/financial/modules/MoneyInModal.vue
View file @
3d32e3ae
...
@@ -65,7 +65,8 @@
...
@@ -65,7 +65,8 @@
:maxHeight=
"300"
:maxHeight=
"300"
:rowNumber=
"false"
:rowNumber=
"false"
:rowSelection=
"false"
:rowSelection=
"false"
:actionButton=
"false"
/>
:actionButton=
"false"
@
valueChange=
"onValueChange"
/>
</a-col>
</a-col>
</a-row>
</a-row>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
...
@@ -86,18 +87,24 @@
...
@@ -86,18 +87,24 @@
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"
优惠金额
"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"
合计收款
"
>
<a-input
placeholder=
"请输入
优惠金额
"
v-decorator.trim=
"[ '
changeAmount' ]"
/>
<a-input
placeholder=
"请输入
合计收款
"
v-decorator.trim=
"[ '
totalPrice' ]"
:readOnly=
"true"
/>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"优惠金额"
>
<a-input
placeholder=
"请输入优惠金额"
v-decorator.trim=
"[ 'discountMoney', validatorRules.discountMoney ]"
@
keyup=
"onKeyUpDiscountMoney"
/>
</a-form-item>
</a-col>
</a-col>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"实际收款"
>
<a-input
placeholder=
"请输入实际收款"
v-decorator.trim=
"[ 'changeAmount' ]"
:readOnly=
"true"
/>
</a-form-item>
</a-col>
</a-col>
</a-row>
</a-row>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"
文件上传
"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"
附件
"
>
<j-upload
v-model=
"fileList"
bizPath=
"financial"
></j-upload>
<j-upload
v-model=
"fileList"
bizPath=
"financial"
></j-upload>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
...
@@ -115,16 +122,13 @@
...
@@ -115,16 +122,13 @@
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
FinancialModalMixin
}
from
'
../mixins/FinancialModalMixin
'
import
{
FinancialModalMixin
}
from
'
../mixins/FinancialModalMixin
'
import
JUpload
from
'
@/components/jeecg/JUpload
'
import
JUpload
from
'
@/components/jeecg/JUpload
'
import
JEllipsis
from
'
@/components/jeecg/JEllipsis
'
import
JDate
from
'
@/components/jeecg/JDate
'
import
JDate
from
'
@/components/jeecg/JDate
'
import
Vue
from
'
vue
'
export
default
{
export
default
{
name
:
"
MoneyInModal
"
,
name
:
"
MoneyInModal
"
,
mixins
:
[
JEditableTableMixin
,
FinancialModalMixin
],
mixins
:
[
JEditableTableMixin
,
FinancialModalMixin
],
components
:
{
components
:
{
DebtBillList
,
DebtBillList
,
JUpload
,
JUpload
,
JEllipsis
,
JDate
JDate
},
},
data
()
{
data
()
{
...
@@ -154,28 +158,25 @@
...
@@ -154,28 +158,25 @@
{
title
:
'
销售单据编号
'
,
key
:
'
billNumber
'
,
width
:
'
20%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
{
title
:
'
销售单据编号
'
,
key
:
'
billNumber
'
,
width
:
'
20%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
{
title
:
'
应收欠款
'
,
key
:
'
needDebt
'
,
width
:
'
10%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
readonly
:
true
},
{
title
:
'
应收欠款
'
,
key
:
'
needDebt
'
,
width
:
'
10%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
readonly
:
true
},
{
title
:
'
已收欠款
'
,
key
:
'
finishDebt
'
,
width
:
'
10%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
readonly
:
true
},
{
title
:
'
已收欠款
'
,
key
:
'
finishDebt
'
,
width
:
'
10%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
readonly
:
true
},
{
title
:
'
本次收款
'
,
key
:
'
eachAmount
'
,
width
:
'
10%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
placeholder
:
'
请
选择
${title}
'
,
{
title
:
'
本次收款
'
,
key
:
'
eachAmount
'
,
width
:
'
10%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
placeholder
:
'
请
输入
${title}
'
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
},
{
title
:
'
备注
'
,
key
:
'
remark
'
,
width
:
'
20%
'
,
type
:
FormTypes
.
input
,
placeholder
:
'
请
选择
${title}
'
}
{
title
:
'
备注
'
,
key
:
'
remark
'
,
width
:
'
20%
'
,
type
:
FormTypes
.
input
,
placeholder
:
'
请
输入
${title}
'
}
]
]
},
},
confirmLoading
:
false
,
confirmLoading
:
false
,
validatorRules
:{
validatorRules
:{
organId
:{
organId
:{
rules
:
[
rules
:
[{
required
:
true
,
message
:
'
请选择客户!
'
}]
{
required
:
true
,
message
:
'
请选择客户!
'
}
]
},
},
handsPersonId
:{
handsPersonId
:{
rules
:
[
rules
:
[{
required
:
true
,
message
:
'
请选择经手人!
'
}]
{
required
:
true
,
message
:
'
请选择经手人!
'
}
]
},
},
accountId
:{
accountId
:{
rules
:
[
rules
:
[{
required
:
true
,
message
:
'
请选择收款账户!
'
}]
{
required
:
true
,
message
:
'
请选择收款账户!
'
}
},
]
discountMoney
:{
rules
:
[{
required
:
true
,
message
:
'
请输入优惠金额!
'
}]
}
}
},
},
url
:
{
url
:
{
...
@@ -198,7 +199,7 @@
...
@@ -198,7 +199,7 @@
this
.
model
.
billTime
=
this
.
model
.
billTimeStr
this
.
model
.
billTime
=
this
.
model
.
billTimeStr
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
(
pick
(
this
.
model
,
'
organId
'
,
'
handsPersonId
'
,
'
billTime
'
,
'
billNo
'
,
'
remark
'
,
this
.
form
.
setFieldsValue
(
pick
(
this
.
model
,
'
organId
'
,
'
handsPersonId
'
,
'
billTime
'
,
'
billNo
'
,
'
remark
'
,
'
accountId
'
,
'
changeAmount
'
))
'
accountId
'
,
'
totalPrice
'
,
'
discountMoney
'
,
'
changeAmount
'
))
});
});
this
.
fileList
=
this
.
model
.
fileName
this
.
fileList
=
this
.
model
.
fileName
// 加载子表数据
// 加载子表数据
...
@@ -241,28 +242,6 @@
...
@@ -241,28 +242,6 @@
},
},
handleClear
()
{
handleClear
()
{
this
.
accountTable
.
dataSource
=
[]
this
.
accountTable
.
dataSource
=
[]
},
debtBillListOk
(
selectBillRows
)
{
if
(
selectBillRows
&&
selectBillRows
.
length
>
0
)
{
this
.
requestSubTableDataEx
(
selectBillRows
,
this
.
accountTable
);
}
},
/** 查询某个tab的数据,给明细里面的价税合计赋值 */
requestSubTableDataEx
(
selectBillRows
,
tab
,
success
)
{
tab
.
loading
=
true
let
listEx
=
[]
for
(
let
i
=
0
;
i
<
selectBillRows
.
length
;
i
++
){
let
info
=
selectBillRows
[
i
]
info
.
billNumber
=
info
.
number
info
.
needDebt
=
(
info
.
discountLastMoney
-
info
.
changeAmount
).
toFixed
(
2
)
info
.
eachAmount
=
(
info
.
discountLastMoney
-
info
.
changeAmount
-
info
.
finishDebt
).
toFixed
(
2
);
if
(
info
.
eachAmount
!=
0
)
{
listEx
.
push
(
info
)
}
}
tab
.
dataSource
=
listEx
typeof
success
===
'
function
'
?
success
(
res
)
:
''
tab
.
loading
=
false
}
}
}
}
}
}
...
...
jshERP-web/src/views/financial/modules/MoneyOutModal.vue
View file @
3d32e3ae
<
template
>
<
template
>
<j-modal
<a-card
:bordered=
"false"
>
:title=
"title"
<j-modal
:width=
"width"
:title=
"title"
:visible=
"visible"
:width=
"width"
:confirmLoading=
"confirmLoading"
:visible=
"visible"
:maskClosable=
"false"
:confirmLoading=
"confirmLoading"
:keyboard=
"false"
:maskClosable=
"false"
:forceRender=
"true"
:keyboard=
"false"
switchFullscreen
:forceRender=
"true"
@
ok=
"handleOk"
switchFullscreen
@
cancel=
"handleCancel"
@
ok=
"handleOk"
wrapClassName=
"ant-modal-cust-warp"
@
cancel=
"handleCancel"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
wrapClassName=
"ant-modal-cust-warp"
<a-spin
:spinning=
"confirmLoading"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<a-form
:form=
"form"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-form
:form=
"form"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"供应商"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-select
placeholder=
"选择供应商"
v-decorator=
"[ 'organId', validatorRules.organId ]"
:dropdownMatchSelectWidth=
"false"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"供应商"
>
<a-select-option
v-for=
"(item,index) in supList"
:key=
"index"
:value=
"item.id"
>
<a-select
placeholder=
"选择供应商"
v-decorator=
"[ 'organId', validatorRules.organId ]"
:dropdownMatchSelectWidth=
"false"
>
{{
item
.
supplier
}}
<a-select-option
v-for=
"(item,index) in supList"
:key=
"index"
:value=
"item.id"
>
</a-select-option>
{{
item
.
supplier
}}
</a-select>
</a-select-option>
</a-form-item>
</a-select>
</a-col>
</a-form-item>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
</a-col>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"经手人"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-select
placeholder=
"选择经手人"
v-decorator=
"[ 'handsPersonId', validatorRules.handsPersonId ]"
:dropdownMatchSelectWidth=
"false"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"经手人"
>
<a-select-option
v-for=
"(item,index) in personList"
:key=
"index"
:value=
"item.id"
>
<a-select
placeholder=
"选择经手人"
v-decorator=
"[ 'handsPersonId', validatorRules.handsPersonId ]"
:dropdownMatchSelectWidth=
"false"
>
{{
item
.
name
}}
<a-select-option
v-for=
"(item,index) in personList"
:key=
"index"
:value=
"item.id"
>
</a-select-option>
{{
item
.
name
}}
</a-select>
</a-select-option>
</a-form-item>
</a-select>
</a-col>
</a-form-item>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
</a-col>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"单据日期"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<j-date
v-decorator=
"['billTime']"
:show-time=
"true"
/>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"单据日期"
>
</a-form-item>
<j-date
v-decorator=
"['billTime']"
:show-time=
"true"
/>
</a-col>
</a-form-item>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
</a-col>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"单据编号"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-input
placeholder=
"请输入单据编号"
v-decorator.trim=
"[ 'billNo' ]"
:readOnly=
"true"
/>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"单据编号"
>
</a-form-item>
<a-input
placeholder=
"请输入单据编号"
v-decorator.trim=
"[ 'billNo' ]"
:readOnly=
"true"
/>
</a-col>
</a-form-item>
</a-row>
</a-col>
<j-editable-table
</a-row>
:ref=
"refKeys[0]"
<a-row
class=
"form-row"
:gutter=
"24"
>
:loading=
"accountTable.loading"
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
:columns=
"accountTable.columns"
<!-- 操作按钮 -->
:dataSource=
"accountTable.dataSource"
<div
class=
"action-button"
>
:maxHeight=
"300"
<a-button
type=
"primary"
icon=
"plus"
@
click=
"handleClickAdd"
>
新增
</a-button>
:rowNumber=
"false"
<span
class=
"gap"
></span>
:rowSelection=
"true"
<a-button
type=
"primary"
icon=
"minus"
@
click=
"handleClear"
>
清空
</a-button>
:actionButton=
"true"
/>
</div>
<a-row
class=
"form-row"
:gutter=
"24"
>
</a-col>
<a-col
:lg=
"24"
:md=
"24"
:sm=
"24"
>
</a-row>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"
{xs: { span: 24 },sm: { span: 24 }}" label="">
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-textarea
:rows=
"2"
placeholder=
"请输入备注"
v-decorator=
"[ 'remark' ]"
style=
"margin-top:8px;"
/>
<a-col
:span=
"24"
>
</a-form-item>
<j-editable-table
</a-col>
:ref=
"refKeys[0]"
</a-row>
:loading=
"accountTable.loading"
<a-row
class=
"form-row"
:gutter=
"24"
>
:columns=
"accountTable.columns"
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
:dataSource=
"accountTable.dataSource"
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"优惠金额"
>
:maxHeight=
"300"
<a-input
placeholder=
"请输入优惠金额"
v-decorator.trim=
"[ 'changeAmount' ]"
/>
:rowNumber=
"false"
</a-form-item>
:rowSelection=
"false"
</a-col>
:actionButton=
"false"
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
@
valueChange=
"onValueChange"
/>
</a-col>
</a-col>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
</a-row>
</a-col>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-col
:lg=
"24"
:md=
"24"
:sm=
"24"
>
</a-col>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"
{xs: { span: 24 },sm: { span: 24 }}" label="">
</a-row>
<a-textarea
:rows=
"2"
placeholder=
"请输入备注"
v-decorator=
"[ 'remark' ]"
style=
"margin-top:8px;"
/>
</a-form>
</a-form-item>
</a-spin>
</a-col>
</j-modal>
</a-row>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"付款账户"
>
<a-select
placeholder=
"选择付款账户"
v-decorator=
"[ 'accountId', validatorRules.accountId ]"
:dropdownMatchSelectWidth=
"false"
>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
name
}}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"合计付款"
>
<a-input
placeholder=
"请输入合计付款"
v-decorator.trim=
"[ 'totalPrice' ]"
:readOnly=
"true"
/>
</a-form-item>
</a-col>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"优惠金额"
>
<a-input
placeholder=
"请输入优惠金额"
v-decorator.trim=
"[ 'discountMoney', validatorRules.discountMoney ]"
@
keyup=
"onKeyUpDiscountMoney"
/>
</a-form-item>
</a-col>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"实际付款"
>
<a-input
placeholder=
"请输入实际付款"
v-decorator.trim=
"[ 'changeAmount' ]"
:readOnly=
"true"
/>
</a-form-item>
</a-col>
</a-row>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"附件"
>
<j-upload
v-model=
"fileList"
bizPath=
"financial"
></j-upload>
</a-form-item>
</a-col>
</a-row>
</a-form>
</a-spin>
</j-modal>
<debt-bill-list
ref=
"debtBillList"
@
ok=
"debtBillListOk"
></debt-bill-list>
</a-card>
</
template
>
</
template
>
<
script
>
<
script
>
import
pick
from
'
lodash.pick
'
import
pick
from
'
lodash.pick
'
import
DebtBillList
from
'
../dialog/DebtBillList
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
FinancialModalMixin
}
from
'
../mixins/FinancialModalMixin
'
import
{
FinancialModalMixin
}
from
'
../mixins/FinancialModalMixin
'
import
JUpload
from
'
@/components/jeecg/JUpload
'
import
JDate
from
'
@/components/jeecg/JDate
'
import
JDate
from
'
@/components/jeecg/JDate
'
export
default
{
export
default
{
name
:
"
MoneyInModal
"
,
name
:
"
MoneyInModal
"
,
mixins
:
[
JEditableTableMixin
,
FinancialModalMixin
],
mixins
:
[
JEditableTableMixin
,
FinancialModalMixin
],
components
:
{
components
:
{
DebtBillList
,
JUpload
,
JDate
JDate
},
},
data
()
{
data
()
{
...
@@ -95,9 +137,10 @@
...
@@ -95,9 +137,10 @@
width
:
'
1200px
'
,
width
:
'
1200px
'
,
moreStatus
:
false
,
moreStatus
:
false
,
// 新增时子表默认添加几行空数据
// 新增时子表默认添加几行空数据
addDefaultRowNum
:
1
,
addDefaultRowNum
:
0
,
visible
:
false
,
visible
:
false
,
model
:
{},
model
:
{},
fileList
:[],
labelCol
:
{
labelCol
:
{
xs
:
{
span
:
24
},
xs
:
{
span
:
24
},
sm
:
{
span
:
8
},
sm
:
{
span
:
8
},
...
@@ -112,26 +155,31 @@
...
@@ -112,26 +155,31 @@
loading
:
false
,
loading
:
false
,
dataSource
:
[],
dataSource
:
[],
columns
:
[
columns
:
[
{
title
:
'
账户名称
'
,
key
:
'
accountId
'
,
width
:
'
20%
'
,
type
:
FormTypes
.
select
,
placeholder
:
'
请选择${title}
'
,
options
:
[],
{
title
:
'
销售单据编号
'
,
key
:
'
billNumber
'
,
width
:
'
20%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
{
title
:
'
应收欠款
'
,
key
:
'
needDebt
'
,
width
:
'
10%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
readonly
:
true
},
{
title
:
'
已收欠款
'
,
key
:
'
finishDebt
'
,
width
:
'
10%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
readonly
:
true
},
{
title
:
'
本次收款
'
,
key
:
'
eachAmount
'
,
width
:
'
10%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
placeholder
:
'
请输入${title}
'
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
},
{
title
:
'
金额
'
,
key
:
'
eachAmount
'
,
width
:
'
10%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
placeholder
:
'
请选择${title}
'
,
{
title
:
'
备注
'
,
key
:
'
remark
'
,
width
:
'
20%
'
,
type
:
FormTypes
.
input
,
placeholder
:
'
请输入${title}
'
}
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
备注
'
,
key
:
'
remark
'
,
width
:
'
30%
'
,
type
:
FormTypes
.
input
,
placeholder
:
'
请选择${title}
'
}
]
]
},
},
confirmLoading
:
false
,
confirmLoading
:
false
,
validatorRules
:{
validatorRules
:{
organId
:{
organId
:{
rules
:
[
rules
:
[{
required
:
true
,
message
:
'
请选择供应商!
'
}]
{
required
:
true
,
message
:
'
请选择供应商!
'
}
]
},
},
handsPersonId
:{
handsPersonId
:{
rules
:
[
rules
:
[{
required
:
true
,
message
:
'
请选择经手人!
'
}]
{
required
:
true
,
message
:
'
请选择经手人!
'
}
},
]
accountId
:{
rules
:
[{
required
:
true
,
message
:
'
请选择付款账户!
'
}]
},
discountMoney
:{
rules
:
[{
required
:
true
,
message
:
'
请输入优惠金额!
'
}]
},
changeAmount
:{
rules
:
[{
required
:
true
,
message
:
'
请输入收款金额!
'
}]
}
}
},
},
url
:
{
url
:
{
...
@@ -142,18 +190,21 @@
...
@@ -142,18 +190,21 @@
}
}
},
},
created
()
{
created
()
{
this
.
init
Detail
Account
()
this
.
initAccount
()
},
},
methods
:
{
methods
:
{
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
if
(
this
.
action
===
'
add
'
)
{
if
(
this
.
action
===
'
add
'
)
{
this
.
addInit
(
"
FK
"
)
this
.
addInit
(
"
FK
"
)
this
.
fileList
=
[]
}
else
{
}
else
{
this
.
model
.
billTime
=
this
.
model
.
billTimeStr
this
.
model
.
billTime
=
this
.
model
.
billTimeStr
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
(
pick
(
this
.
model
,
'
organId
'
,
'
handsPersonId
'
,
'
billTime
'
,
'
billNo
'
,
'
remark
'
,
'
changeAmount
'
))
this
.
form
.
setFieldsValue
(
pick
(
this
.
model
,
'
organId
'
,
'
handsPersonId
'
,
'
billTime
'
,
'
billNo
'
,
'
remark
'
,
'
accountId
'
,
'
totalPrice
'
,
'
discountMoney
'
,
'
changeAmount
'
))
});
});
this
.
fileList
=
this
.
model
.
fileName
// 加载子表数据
// 加载子表数据
let
params
=
{
let
params
=
{
headerId
:
this
.
model
.
id
headerId
:
this
.
model
.
id
...
@@ -172,6 +223,9 @@
...
@@ -172,6 +223,9 @@
totalPrice
+=
item
.
eachAmount
-
0
totalPrice
+=
item
.
eachAmount
-
0
}
}
billMain
.
totalPrice
=
0
-
totalPrice
billMain
.
totalPrice
=
0
-
totalPrice
if
(
this
.
fileList
&&
this
.
fileList
.
length
>
0
)
{
billMain
.
fileName
=
this
.
fileList
}
if
(
this
.
model
.
id
){
if
(
this
.
model
.
id
){
billMain
.
id
=
this
.
model
.
id
billMain
.
id
=
this
.
model
.
id
}
}
...
@@ -179,10 +233,27 @@
...
@@ -179,10 +233,27 @@
info
:
JSON
.
stringify
(
billMain
),
info
:
JSON
.
stringify
(
billMain
),
rows
:
JSON
.
stringify
(
detailArr
),
rows
:
JSON
.
stringify
(
detailArr
),
}
}
},
handleClickAdd
()
{
let
organId
=
this
.
form
.
getFieldValue
(
'
organId
'
)
if
(
organId
){
this
.
$refs
.
debtBillList
.
show
(
organId
,
'
入库
'
,
'
采购
'
,
'
供应商
'
,
"
0
"
)
this
.
$refs
.
debtBillList
.
title
=
"
选择采购入库欠款单据
"
}
else
{
this
.
$message
.
warning
(
'
请选择供应商!
'
);
}
},
handleClear
()
{
this
.
accountTable
.
dataSource
=
[]
}
}
}
}
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.action-button
{
margin-bottom
:
8px
;
}
.gap
{
padding-left
:
8px
;
}
</
style
>
</
style
>
\ No newline at end of file
jshERP-web/src/views/system/CustomerList.vue
View file @
3d32e3ae
...
@@ -125,9 +125,7 @@
...
@@ -125,9 +125,7 @@
{
title
:
'
手机号码
'
,
dataIndex
:
'
telephone
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
手机号码
'
,
dataIndex
:
'
telephone
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
联系电话
'
,
dataIndex
:
'
phoneNum
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
联系电话
'
,
dataIndex
:
'
phoneNum
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
期初应收
'
,
dataIndex
:
'
beginNeedGet
'
,
width
:
80
,
align
:
"
center
"
},
{
title
:
'
期初应收
'
,
dataIndex
:
'
beginNeedGet
'
,
width
:
80
,
align
:
"
center
"
},
{
title
:
'
期初应付
'
,
dataIndex
:
'
beginNeedPay
'
,
width
:
80
,
align
:
"
center
"
},
{
title
:
'
期末应收
'
,
dataIndex
:
'
allNeedGet
'
,
width
:
80
,
align
:
"
center
"
},
{
title
:
'
期末应收
'
,
dataIndex
:
'
allNeedGet
'
,
width
:
80
,
align
:
"
center
"
},
{
title
:
'
期末应付
'
,
dataIndex
:
'
allNeedPay
'
,
width
:
80
,
align
:
"
center
"
},
{
title
:
'
税率(%)
'
,
dataIndex
:
'
taxRate
'
,
width
:
80
,
align
:
"
center
"
},
{
title
:
'
税率(%)
'
,
dataIndex
:
'
taxRate
'
,
width
:
80
,
align
:
"
center
"
},
{
title
:
'
状态
'
,
dataIndex
:
'
enabled
'
,
width
:
70
,
align
:
"
center
"
,
{
title
:
'
状态
'
,
dataIndex
:
'
enabled
'
,
width
:
70
,
align
:
"
center
"
,
scopedSlots
:
{
customRender
:
'
customRenderFlag
'
}
scopedSlots
:
{
customRender
:
'
customRenderFlag
'
}
...
...
jshERP-web/src/views/system/VendorList.vue
View file @
3d32e3ae
...
@@ -124,9 +124,7 @@
...
@@ -124,9 +124,7 @@
{
title
:
'
联系人
'
,
dataIndex
:
'
contacts
'
,
width
:
70
,
align
:
"
center
"
},
{
title
:
'
联系人
'
,
dataIndex
:
'
contacts
'
,
width
:
70
,
align
:
"
center
"
},
{
title
:
'
手机号码
'
,
dataIndex
:
'
telephone
'
,
width
:
110
,
align
:
"
center
"
},
{
title
:
'
手机号码
'
,
dataIndex
:
'
telephone
'
,
width
:
110
,
align
:
"
center
"
},
{
title
:
'
联系电话
'
,
dataIndex
:
'
phoneNum
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
联系电话
'
,
dataIndex
:
'
phoneNum
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
期初应收
'
,
dataIndex
:
'
beginNeedGet
'
,
width
:
80
,
align
:
"
center
"
},
{
title
:
'
期初应付
'
,
dataIndex
:
'
beginNeedPay
'
,
width
:
80
,
align
:
"
center
"
},
{
title
:
'
期初应付
'
,
dataIndex
:
'
beginNeedPay
'
,
width
:
80
,
align
:
"
center
"
},
{
title
:
'
期末应收
'
,
dataIndex
:
'
allNeedGet
'
,
width
:
80
,
align
:
"
center
"
},
{
title
:
'
期末应付
'
,
dataIndex
:
'
allNeedPay
'
,
width
:
80
,
align
:
"
center
"
},
{
title
:
'
期末应付
'
,
dataIndex
:
'
allNeedPay
'
,
width
:
80
,
align
:
"
center
"
},
{
title
:
'
税率(%)
'
,
dataIndex
:
'
taxRate
'
,
width
:
80
,
align
:
"
center
"
},
{
title
:
'
税率(%)
'
,
dataIndex
:
'
taxRate
'
,
width
:
80
,
align
:
"
center
"
},
{
title
:
'
状态
'
,
dataIndex
:
'
enabled
'
,
width
:
70
,
align
:
"
center
"
,
{
title
:
'
状态
'
,
dataIndex
:
'
enabled
'
,
width
:
70
,
align
:
"
center
"
,
...
...
jshERP-web/src/views/system/modules/CustomerModal.vue
View file @
3d32e3ae
...
@@ -51,21 +51,11 @@
...
@@ -51,21 +51,11 @@
<a-input
placeholder=
"请输入期初应收"
v-decorator.trim=
"[ 'beginNeedGet' ]"
/>
<a-input
placeholder=
"请输入期初应收"
v-decorator.trim=
"[ 'beginNeedGet' ]"
/>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:span=
"24/2"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"期初应付"
>
<a-input
placeholder=
"请输入期初应付"
v-decorator.trim=
"[ 'beginNeedPay' ]"
/>
</a-form-item>
</a-col>
<a-col
:span=
"24/2"
>
<a-col
:span=
"24/2"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"期末应收"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"期末应收"
>
<a-input
v-decorator.trim=
"[ 'allNeedGet' ]"
:readOnly=
"true"
/>
<a-input
v-decorator.trim=
"[ 'allNeedGet' ]"
:readOnly=
"true"
/>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:span=
"24/2"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"期末应付"
>
<a-input
v-decorator.trim=
"[ 'allNeedPay' ]"
:readOnly=
"true"
/>
</a-form-item>
</a-col>
<a-col
:span=
"24/2"
>
<a-col
:span=
"24/2"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"纳税人识别号"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"纳税人识别号"
>
<a-input
placeholder=
"请输入纳税人识别号"
v-decorator.trim=
"[ 'taxNum' ]"
/>
<a-input
placeholder=
"请输入纳税人识别号"
v-decorator.trim=
"[ 'taxNum' ]"
/>
...
...
jshERP-web/src/views/system/modules/VendorModal.vue
View file @
3d32e3ae
...
@@ -46,21 +46,11 @@
...
@@ -46,21 +46,11 @@
<a-input
placeholder=
"请输入传真"
v-decorator.trim=
"[ 'fax' ]"
/>
<a-input
placeholder=
"请输入传真"
v-decorator.trim=
"[ 'fax' ]"
/>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:span=
"24/2"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"期初应收"
>
<a-input
placeholder=
"请输入期初应收"
v-decorator.trim=
"[ 'beginNeedGet' ]"
/>
</a-form-item>
</a-col>
<a-col
:span=
"24/2"
>
<a-col
:span=
"24/2"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"期初应付"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"期初应付"
>
<a-input
placeholder=
"请输入期初应付"
v-decorator.trim=
"[ 'beginNeedPay' ]"
/>
<a-input
placeholder=
"请输入期初应付"
v-decorator.trim=
"[ 'beginNeedPay' ]"
/>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:span=
"24/2"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"期末应收"
>
<a-input
v-decorator.trim=
"[ 'allNeedGet' ]"
:readOnly=
"true"
/>
</a-form-item>
</a-col>
<a-col
:span=
"24/2"
>
<a-col
:span=
"24/2"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"期末应付"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"期末应付"
>
<a-input
v-decorator.trim=
"[ 'allNeedPay' ]"
:readOnly=
"true"
/>
<a-input
v-decorator.trim=
"[ 'allNeedPay' ]"
:readOnly=
"true"
/>
...
...
Write
Preview
Supports
Markdown
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