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
fbe40d8d
Commit
fbe40d8d
authored
Oct 25, 2021
by
季圣华
Browse files
给财务单据增加结算的快捷录入
parent
d6957647
Changes
6
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/financial/mixins/FinancialModalMixin.js
View file @
fbe40d8d
...
...
@@ -157,12 +157,20 @@ export const FinancialModalMixin = {
this
.
$refs
.
customerModalForm
.
title
=
"
新增客户(提醒:如果找不到新添加的客户,请到用户管理检查是否分配了该客户权限)
"
;
this
.
$refs
.
customerModalForm
.
disableSubmit
=
false
;
},
addAccount
()
{
this
.
$refs
.
accountModalForm
.
add
();
this
.
$refs
.
accountModalForm
.
title
=
"
新增结算账户
"
;
this
.
$refs
.
accountModalForm
.
disableSubmit
=
false
;
},
vendorModalFormOk
()
{
this
.
initSupplier
()
},
customerModalFormOk
()
{
this
.
initCustomer
()
},
accountModalFormOk
()
{
this
.
initAccount
()
},
//单元值改变一个字符就触发一次
onValueChange
(
event
)
{
let
that
=
this
...
...
jshERP-web/src/views/financial/modules/GiroModal.vue
View file @
fbe40d8d
...
...
@@ -60,6 +60,12 @@
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"付款账户"
>
<a-select
placeholder=
"选择付款账户"
v-decorator=
"[ 'accountId', validatorRules.accountId ]"
:dropdownMatchSelectWidth=
"false"
showSearch
optionFilterProp=
"children"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<div
style=
"padding: 4px 8px; cursor: pointer;"
@
mousedown=
"e => e.preventDefault()"
@
click=
"addAccount"
><a-icon
type=
"plus"
/>
新增结算账户
</div>
</div>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
name
}}
</a-select-option>
...
...
@@ -85,10 +91,12 @@
</a-row>
</a-form>
</a-spin>
<account-modal
ref=
"accountModalForm"
@
ok=
"accountModalFormOk"
></account-modal>
</j-modal>
</
template
>
<
script
>
import
pick
from
'
lodash.pick
'
import
AccountModal
from
'
../../system/modules/AccountModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
FinancialModalMixin
}
from
'
../mixins/FinancialModalMixin
'
...
...
@@ -98,8 +106,13 @@
name
:
"
GiroModal
"
,
mixins
:
[
JEditableTableMixin
,
FinancialModalMixin
],
components
:
{
AccountModal
,
JUpload
,
JDate
JDate
,
VNodes
:
{
functional
:
true
,
render
:
(
h
,
ctx
)
=>
ctx
.
props
.
vnodes
,
}
},
data
()
{
return
{
...
...
jshERP-web/src/views/financial/modules/ItemInModal.vue
View file @
fbe40d8d
...
...
@@ -68,6 +68,12 @@
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"收入账户"
>
<a-select
placeholder=
"选择收入账户"
v-decorator=
"[ 'accountId', validatorRules.accountId ]"
:dropdownMatchSelectWidth=
"false"
showSearch
optionFilterProp=
"children"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<div
style=
"padding: 4px 8px; cursor: pointer;"
@
mousedown=
"e => e.preventDefault()"
@
click=
"addAccount"
><a-icon
type=
"plus"
/>
新增结算账户
</div>
</div>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
name
}}
</a-select-option>
...
...
@@ -93,10 +99,12 @@
</a-row>
</a-form>
</a-spin>
<account-modal
ref=
"accountModalForm"
@
ok=
"accountModalFormOk"
></account-modal>
</j-modal>
</
template
>
<
script
>
import
pick
from
'
lodash.pick
'
import
AccountModal
from
'
../../system/modules/AccountModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
FinancialModalMixin
}
from
'
../mixins/FinancialModalMixin
'
...
...
@@ -106,8 +114,13 @@
name
:
"
ItemInModal
"
,
mixins
:
[
JEditableTableMixin
,
FinancialModalMixin
],
components
:
{
AccountModal
,
JUpload
,
JDate
JDate
,
VNodes
:
{
functional
:
true
,
render
:
(
h
,
ctx
)
=>
ctx
.
props
.
vnodes
,
}
},
data
()
{
return
{
...
...
jshERP-web/src/views/financial/modules/ItemOutModal.vue
View file @
fbe40d8d
...
...
@@ -68,6 +68,12 @@
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"支出账户"
>
<a-select
placeholder=
"选择支出账户"
v-decorator=
"[ 'accountId', validatorRules.accountId ]"
:dropdownMatchSelectWidth=
"false"
showSearch
optionFilterProp=
"children"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<div
style=
"padding: 4px 8px; cursor: pointer;"
@
mousedown=
"e => e.preventDefault()"
@
click=
"addAccount"
><a-icon
type=
"plus"
/>
新增结算账户
</div>
</div>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
name
}}
</a-select-option>
...
...
@@ -93,10 +99,12 @@
</a-row>
</a-form>
</a-spin>
<account-modal
ref=
"accountModalForm"
@
ok=
"accountModalFormOk"
></account-modal>
</j-modal>
</
template
>
<
script
>
import
pick
from
'
lodash.pick
'
import
AccountModal
from
'
../../system/modules/AccountModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
FinancialModalMixin
}
from
'
../mixins/FinancialModalMixin
'
...
...
@@ -106,8 +114,13 @@
name
:
"
ItemOutModal
"
,
mixins
:
[
JEditableTableMixin
,
FinancialModalMixin
],
components
:
{
AccountModal
,
JUpload
,
JDate
JDate
,
VNodes
:
{
functional
:
true
,
render
:
(
h
,
ctx
)
=>
ctx
.
props
.
vnodes
,
}
},
data
()
{
return
{
...
...
jshERP-web/src/views/financial/modules/MoneyInModal.vue
View file @
fbe40d8d
...
...
@@ -88,6 +88,12 @@
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"收款账户"
>
<a-select
placeholder=
"选择收款账户"
v-decorator=
"[ 'accountId', validatorRules.accountId ]"
:dropdownMatchSelectWidth=
"false"
showSearch
optionFilterProp=
"children"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<div
style=
"padding: 4px 8px; cursor: pointer;"
@
mousedown=
"e => e.preventDefault()"
@
click=
"addAccount"
><a-icon
type=
"plus"
/>
新增结算账户
</div>
</div>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
name
}}
</a-select-option>
...
...
@@ -121,12 +127,14 @@
</a-spin>
<debt-bill-list
ref=
"debtBillList"
@
ok=
"debtBillListOk"
></debt-bill-list>
<customer-modal
ref=
"customerModalForm"
@
ok=
"customerModalFormOk"
></customer-modal>
<account-modal
ref=
"accountModalForm"
@
ok=
"accountModalFormOk"
></account-modal>
</j-modal>
</
template
>
<
script
>
import
pick
from
'
lodash.pick
'
import
DebtBillList
from
'
../dialog/DebtBillList
'
import
CustomerModal
from
'
../../system/modules/CustomerModal
'
import
AccountModal
from
'
../../system/modules/AccountModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
FinancialModalMixin
}
from
'
../mixins/FinancialModalMixin
'
...
...
@@ -138,6 +146,7 @@
components
:
{
DebtBillList
,
CustomerModal
,
AccountModal
,
JUpload
,
JDate
,
VNodes
:
{
...
...
jshERP-web/src/views/financial/modules/MoneyOutModal.vue
View file @
fbe40d8d
...
...
@@ -88,6 +88,12 @@
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"付款账户"
>
<a-select
placeholder=
"选择付款账户"
v-decorator=
"[ 'accountId', validatorRules.accountId ]"
:dropdownMatchSelectWidth=
"false"
showSearch
optionFilterProp=
"children"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<div
style=
"padding: 4px 8px; cursor: pointer;"
@
mousedown=
"e => e.preventDefault()"
@
click=
"addAccount"
><a-icon
type=
"plus"
/>
新增结算账户
</div>
</div>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
name
}}
</a-select-option>
...
...
@@ -121,12 +127,14 @@
</a-spin>
<debt-bill-list
ref=
"debtBillList"
@
ok=
"debtBillListOk"
></debt-bill-list>
<vendor-modal
ref=
"vendorModalForm"
@
ok=
"vendorModalFormOk"
></vendor-modal>
<account-modal
ref=
"accountModalForm"
@
ok=
"accountModalFormOk"
></account-modal>
</j-modal>
</
template
>
<
script
>
import
pick
from
'
lodash.pick
'
import
DebtBillList
from
'
../dialog/DebtBillList
'
import
VendorModal
from
'
../../system/modules/VendorModal
'
import
AccountModal
from
'
../../system/modules/AccountModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
FinancialModalMixin
}
from
'
../mixins/FinancialModalMixin
'
...
...
@@ -138,6 +146,7 @@
components
:
{
DebtBillList
,
VendorModal
,
AccountModal
,
JUpload
,
JDate
,
VNodes
:
{
...
...
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