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
d6957647
Commit
d6957647
authored
Oct 24, 2021
by
季圣华
Browse files
给单据增加账户的快捷录入功能
parent
595bb870
Changes
8
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/dialog/ManyAccountModal.vue
View file @
d6957647
...
...
@@ -89,10 +89,10 @@
}
},
created
()
{
this
.
initAccount
()
},
methods
:
{
edit
(
idStr
,
moneyStr
)
{
this
.
initAccount
()
this
.
form
.
resetFields
();
this
.
model
=
Object
.
assign
({},
{});
let
idList
=
[],
moneyList
=
[]
...
...
jshERP-web/src/views/bill/mixins/BillModalMixin.js
View file @
d6957647
...
...
@@ -230,6 +230,11 @@ export const BillModalMixin = {
this
.
$refs
.
depotModalForm
.
title
=
"
新增仓库
"
;
this
.
$refs
.
depotModalForm
.
disableSubmit
=
false
;
},
addAccount
()
{
this
.
$refs
.
accountModalForm
.
add
();
this
.
$refs
.
accountModalForm
.
title
=
"
新增结算账户
"
;
this
.
$refs
.
accountModalForm
.
disableSubmit
=
false
;
},
vendorModalFormOk
()
{
this
.
initSupplier
()
},
...
...
@@ -242,6 +247,9 @@ export const BillModalMixin = {
depotModalFormOk
()
{
this
.
initDepot
()
},
accountModalFormOk
()
{
this
.
initAccount
()
},
onAdded
(
event
)
{
const
{
row
,
target
}
=
event
getAction
(
'
/depot/findDepotByCurrentUser
'
).
then
((
res
)
=>
{
...
...
jshERP-web/src/views/bill/modules/PurchaseBackModal.vue
View file @
d6957647
...
...
@@ -112,6 +112,12 @@
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"结算账户"
>
<a-select
style=
"width:185px;"
placeholder=
"选择结算账户"
v-decorator=
"[ 'accountId', validatorRules.accountId ]"
:dropdownMatchSelectWidth=
"false"
allowClear
@
select=
"selectAccount"
>
<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>
...
...
@@ -147,6 +153,7 @@
<link-bill-list
ref=
"linkBillList"
@
ok=
"linkBillListOk"
></link-bill-list>
<vendor-modal
ref=
"vendorModalForm"
@
ok=
"vendorModalFormOk"
></vendor-modal>
<depot-modal
ref=
"depotModalForm"
@
ok=
"depotModalFormOk"
></depot-modal>
<account-modal
ref=
"accountModalForm"
@
ok=
"accountModalFormOk"
></account-modal>
</j-modal>
</template>
<
script
>
...
...
@@ -155,6 +162,7 @@
import
LinkBillList
from
'
../dialog/LinkBillList
'
import
VendorModal
from
'
../../system/modules/VendorModal
'
import
DepotModal
from
'
../../system/modules/DepotModal
'
import
AccountModal
from
'
../../system/modules/AccountModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
...
...
@@ -171,6 +179,7 @@
LinkBillList
,
VendorModal
,
DepotModal
,
AccountModal
,
JUpload
,
JDate
,
VNodes
:
{
...
...
jshERP-web/src/views/bill/modules/PurchaseInModal.vue
View file @
d6957647
...
...
@@ -121,6 +121,12 @@
data-intro=
"如果在下拉框中选择多账户,则可以通过多个结算账户进行结算"
>
<a-select
style=
"width:185px;"
placeholder=
"选择结算账户"
v-decorator=
"[ 'accountId', validatorRules.accountId ]"
:dropdownMatchSelectWidth=
"false"
allowClear
@
select=
"selectAccount"
>
<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>
...
...
@@ -158,6 +164,7 @@
<link-bill-list
ref=
"linkBillList"
@
ok=
"linkBillListOk"
></link-bill-list>
<vendor-modal
ref=
"vendorModalForm"
@
ok=
"vendorModalFormOk"
></vendor-modal>
<depot-modal
ref=
"depotModalForm"
@
ok=
"depotModalFormOk"
></depot-modal>
<account-modal
ref=
"accountModalForm"
@
ok=
"accountModalFormOk"
></account-modal>
</j-modal>
</template>
...
...
@@ -167,6 +174,7 @@
import
LinkBillList
from
'
../dialog/LinkBillList
'
import
VendorModal
from
'
../../system/modules/VendorModal
'
import
DepotModal
from
'
../../system/modules/DepotModal
'
import
AccountModal
from
'
../../system/modules/AccountModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
...
...
@@ -183,6 +191,7 @@
LinkBillList
,
VendorModal
,
DepotModal
,
AccountModal
,
JUpload
,
JDate
,
VNodes
:
{
...
...
jshERP-web/src/views/bill/modules/RetailBackModal.vue
View file @
d6957647
...
...
@@ -103,6 +103,12 @@
<a-col
:lg=
"24"
:md=
"6"
:sm=
"6"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"付款账户"
>
<a-select
placeholder=
"选择付款账户"
v-decorator=
"[ 'accountId', validatorRules.accountId ]"
:dropdownMatchSelectWidth=
"false"
>
<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>
...
...
@@ -131,6 +137,7 @@
<link-bill-list
ref=
"linkBillList"
@
ok=
"linkBillListOk"
></link-bill-list>
<member-modal
ref=
"memberModalForm"
@
ok=
"memberModalFormOk"
></member-modal>
<depot-modal
ref=
"depotModalForm"
@
ok=
"depotModalFormOk"
></depot-modal>
<account-modal
ref=
"accountModalForm"
@
ok=
"accountModalFormOk"
></account-modal>
</j-modal>
</template>
<
script
>
...
...
@@ -138,6 +145,7 @@
import
LinkBillList
from
'
../dialog/LinkBillList
'
import
MemberModal
from
'
../../system/modules/MemberModal
'
import
DepotModal
from
'
../../system/modules/DepotModal
'
import
AccountModal
from
'
../../system/modules/AccountModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
...
...
@@ -154,6 +162,7 @@
LinkBillList
,
MemberModal
,
DepotModal
,
AccountModal
,
JUpload
,
JDate
,
VNodes
:
{
...
...
jshERP-web/src/views/bill/modules/RetailOutModal.vue
View file @
d6957647
...
...
@@ -114,6 +114,12 @@
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"收款账户"
data-step=
"8"
data-title=
"收款账户"
data-intro=
"收款账户的信息来自基本资料菜单下的【结算账户】"
>
<a-select
placeholder=
"选择收款账户"
v-decorator=
"[ 'accountId', validatorRules.accountId ]"
:dropdownMatchSelectWidth=
"false"
>
<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>
...
...
@@ -142,12 +148,14 @@
</a-spin>
<member-modal
ref=
"memberModalForm"
@
ok=
"memberModalFormOk"
></member-modal>
<depot-modal
ref=
"depotModalForm"
@
ok=
"depotModalFormOk"
></depot-modal>
<account-modal
ref=
"accountModalForm"
@
ok=
"accountModalFormOk"
></account-modal>
</j-modal>
</template>
<
script
>
import
pick
from
'
lodash.pick
'
import
MemberModal
from
'
../../system/modules/MemberModal
'
import
DepotModal
from
'
../../system/modules/DepotModal
'
import
AccountModal
from
'
../../system/modules/AccountModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
...
...
@@ -163,6 +171,7 @@
components
:
{
MemberModal
,
DepotModal
,
AccountModal
,
JUpload
,
JDate
,
VNodes
:
{
...
...
jshERP-web/src/views/bill/modules/SaleBackModal.vue
View file @
d6957647
...
...
@@ -112,6 +112,12 @@
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"结算账户"
>
<a-select
style=
"width:185px;"
placeholder=
"选择结算账户"
v-decorator=
"[ 'accountId', validatorRules.accountId ]"
:dropdownMatchSelectWidth=
"false"
allowClear
@
select=
"selectAccount"
>
<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>
...
...
@@ -150,6 +156,7 @@
<link-bill-list
ref=
"linkBillList"
@
ok=
"linkBillListOk"
></link-bill-list>
<customer-modal
ref=
"customerModalForm"
@
ok=
"customerModalFormOk"
></customer-modal>
<depot-modal
ref=
"depotModalForm"
@
ok=
"depotModalFormOk"
></depot-modal>
<account-modal
ref=
"accountModalForm"
@
ok=
"accountModalFormOk"
></account-modal>
</j-modal>
</template>
<
script
>
...
...
@@ -158,6 +165,7 @@
import
LinkBillList
from
'
../dialog/LinkBillList
'
import
CustomerModal
from
'
../../system/modules/CustomerModal
'
import
DepotModal
from
'
../../system/modules/DepotModal
'
import
AccountModal
from
'
../../system/modules/AccountModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
...
...
@@ -175,6 +183,7 @@
LinkBillList
,
CustomerModal
,
DepotModal
,
AccountModal
,
JUpload
,
JDate
,
JSelectMultiple
,
...
...
jshERP-web/src/views/bill/modules/SaleOutModal.vue
View file @
d6957647
...
...
@@ -122,6 +122,12 @@
data-intro=
"如果在下拉框中选择多账户,则可以通过多个结算账户进行结算"
>
<a-select
style=
"width:185px;"
placeholder=
"选择结算账户"
v-decorator=
"[ 'accountId', validatorRules.accountId ]"
:dropdownMatchSelectWidth=
"false"
allowClear
@
select=
"selectAccount"
>
<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>
...
...
@@ -163,6 +169,7 @@
<link-bill-list
ref=
"linkBillList"
@
ok=
"linkBillListOk"
></link-bill-list>
<customer-modal
ref=
"customerModalForm"
@
ok=
"customerModalFormOk"
></customer-modal>
<depot-modal
ref=
"depotModalForm"
@
ok=
"depotModalFormOk"
></depot-modal>
<account-modal
ref=
"accountModalForm"
@
ok=
"accountModalFormOk"
></account-modal>
</j-modal>
</template>
<
script
>
...
...
@@ -171,6 +178,7 @@
import
LinkBillList
from
'
../dialog/LinkBillList
'
import
CustomerModal
from
'
../../system/modules/CustomerModal
'
import
DepotModal
from
'
../../system/modules/DepotModal
'
import
AccountModal
from
'
../../system/modules/AccountModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
...
...
@@ -188,6 +196,7 @@
LinkBillList
,
CustomerModal
,
DepotModal
,
AccountModal
,
JUpload
,
JDate
,
JSelectMultiple
,
...
...
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