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
24e041fc
Commit
24e041fc
authored
Oct 19, 2021
by
季圣华
Browse files
给单据添加供应商和客户的快捷添加入口
parent
e390bebe
Changes
12
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/mixins/BillModalMixin.js
View file @
24e041fc
...
@@ -210,6 +210,22 @@ export const BillModalMixin = {
...
@@ -210,6 +210,22 @@ export const BillModalMixin = {
this
.
form
.
setFieldsValue
({
'
changeAmount
'
:
allPrice
,
'
debt
'
:
debt
})
this
.
form
.
setFieldsValue
({
'
changeAmount
'
:
allPrice
,
'
debt
'
:
debt
})
});
});
},
},
addSupplier
()
{
this
.
$refs
.
vendorModalForm
.
add
();
this
.
$refs
.
vendorModalForm
.
title
=
"
新增供应商
"
;
this
.
$refs
.
vendorModalForm
.
disableSubmit
=
false
;
},
addCustomer
()
{
this
.
$refs
.
customerModalForm
.
add
();
this
.
$refs
.
customerModalForm
.
title
=
"
新增客户(提醒:如果找不到新添加的客户,请到用户管理检查是否分配了该客户权限)
"
;
this
.
$refs
.
customerModalForm
.
disableSubmit
=
false
;
},
vendorModalFormOk
()
{
this
.
initSupplier
()
},
customerModalFormOk
()
{
this
.
initCustomer
()
},
onAdded
(
event
)
{
onAdded
(
event
)
{
const
{
row
,
target
}
=
event
const
{
row
,
target
}
=
event
getAction
(
'
/depot/findDepotByCurrentUser
'
).
then
((
res
)
=>
{
getAction
(
'
/depot/findDepotByCurrentUser
'
).
then
((
res
)
=>
{
...
...
jshERP-web/src/views/bill/modules/OtherInModal.vue
View file @
24e041fc
...
@@ -19,6 +19,12 @@
...
@@ -19,6 +19,12 @@
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"供应商"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"供应商"
>
<a-select
placeholder=
"选择供应商"
v-decorator=
"[ 'organId' ]"
<a-select
placeholder=
"选择供应商"
v-decorator=
"[ 'organId' ]"
:dropdownMatchSelectWidth=
"false"
showSearch
optionFilterProp=
"children"
>
: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=
"addSupplier"
><a-icon
type=
"plus"
/>
新增供应商
</div>
</div>
<a-select-option
v-for=
"(item,index) in supList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in supList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
supplier
}}
{{
item
.
supplier
}}
</a-select-option>
</a-select-option>
...
@@ -79,10 +85,12 @@
...
@@ -79,10 +85,12 @@
</a-row>
</a-row>
</a-form>
</a-form>
</a-spin>
</a-spin>
<vendor-modal
ref=
"vendorModalForm"
@
ok=
"vendorModalFormOk"
></vendor-modal>
</j-modal>
</j-modal>
</template>
</template>
<
script
>
<
script
>
import
pick
from
'
lodash.pick
'
import
pick
from
'
lodash.pick
'
import
VendorModal
from
'
../../system/modules/VendorModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
...
@@ -94,8 +102,13 @@
...
@@ -94,8 +102,13 @@
name
:
"
OtherInModal
"
,
name
:
"
OtherInModal
"
,
mixins
:
[
JEditableTableMixin
,
BillModalMixin
],
mixins
:
[
JEditableTableMixin
,
BillModalMixin
],
components
:
{
components
:
{
VendorModal
,
JUpload
,
JUpload
,
JDate
JDate
,
VNodes
:
{
functional
:
true
,
render
:
(
h
,
ctx
)
=>
ctx
.
props
.
vnodes
,
}
},
},
data
()
{
data
()
{
return
{
return
{
...
...
jshERP-web/src/views/bill/modules/OtherOutModal.vue
View file @
24e041fc
...
@@ -19,6 +19,12 @@
...
@@ -19,6 +19,12 @@
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"客户"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"客户"
>
<a-select
placeholder=
"选择客户"
v-decorator=
"[ 'organId' ]"
<a-select
placeholder=
"选择客户"
v-decorator=
"[ 'organId' ]"
:dropdownMatchSelectWidth=
"false"
showSearch
optionFilterProp=
"children"
>
: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=
"addCustomer"
><a-icon
type=
"plus"
/>
新增客户
</div>
</div>
<a-select-option
v-for=
"(item,index) in cusList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in cusList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
supplier
}}
{{
item
.
supplier
}}
</a-select-option>
</a-select-option>
...
@@ -79,10 +85,12 @@
...
@@ -79,10 +85,12 @@
</a-row>
</a-row>
</a-form>
</a-form>
</a-spin>
</a-spin>
<customer-modal
ref=
"customerModalForm"
@
ok=
"customerModalFormOk"
></customer-modal>
</j-modal>
</j-modal>
</template>
</template>
<
script
>
<
script
>
import
pick
from
'
lodash.pick
'
import
pick
from
'
lodash.pick
'
import
CustomerModal
from
'
../../system/modules/CustomerModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
...
@@ -94,8 +102,13 @@
...
@@ -94,8 +102,13 @@
name
:
"
OtherOutModal
"
,
name
:
"
OtherOutModal
"
,
mixins
:
[
JEditableTableMixin
,
BillModalMixin
],
mixins
:
[
JEditableTableMixin
,
BillModalMixin
],
components
:
{
components
:
{
CustomerModal
,
JUpload
,
JUpload
,
JDate
JDate
,
VNodes
:
{
functional
:
true
,
render
:
(
h
,
ctx
)
=>
ctx
.
props
.
vnodes
,
}
},
},
data
()
{
data
()
{
return
{
return
{
...
...
jshERP-web/src/views/bill/modules/PurchaseBackModal.vue
View file @
24e041fc
...
@@ -19,6 +19,12 @@
...
@@ -19,6 +19,12 @@
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"供应商"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"供应商"
>
<a-select
placeholder=
"选择供应商"
v-decorator=
"[ 'organId', validatorRules.organId ]"
<a-select
placeholder=
"选择供应商"
v-decorator=
"[ 'organId', validatorRules.organId ]"
:dropdownMatchSelectWidth=
"false"
showSearch
optionFilterProp=
"children"
>
: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=
"addSupplier"
><a-icon
type=
"plus"
/>
新增供应商
</div>
</div>
<a-select-option
v-for=
"(item,index) in supList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in supList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
supplier
}}
{{
item
.
supplier
}}
</a-select-option>
</a-select-option>
...
@@ -134,12 +140,14 @@
...
@@ -134,12 +140,14 @@
</a-spin>
</a-spin>
<many-account-modal
ref=
"manyAccountModalForm"
@
ok=
"manyAccountModalFormOk"
></many-account-modal>
<many-account-modal
ref=
"manyAccountModalForm"
@
ok=
"manyAccountModalFormOk"
></many-account-modal>
<link-bill-list
ref=
"linkBillList"
@
ok=
"linkBillListOk"
></link-bill-list>
<link-bill-list
ref=
"linkBillList"
@
ok=
"linkBillListOk"
></link-bill-list>
<vendor-modal
ref=
"vendorModalForm"
@
ok=
"vendorModalFormOk"
></vendor-modal>
</j-modal>
</j-modal>
</template>
</template>
<
script
>
<
script
>
import
pick
from
'
lodash.pick
'
import
pick
from
'
lodash.pick
'
import
ManyAccountModal
from
'
../dialog/ManyAccountModal
'
import
ManyAccountModal
from
'
../dialog/ManyAccountModal
'
import
LinkBillList
from
'
../dialog/LinkBillList
'
import
LinkBillList
from
'
../dialog/LinkBillList
'
import
VendorModal
from
'
../../system/modules/VendorModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
...
@@ -154,8 +162,13 @@
...
@@ -154,8 +162,13 @@
components
:
{
components
:
{
ManyAccountModal
,
ManyAccountModal
,
LinkBillList
,
LinkBillList
,
VendorModal
,
JUpload
,
JUpload
,
JDate
JDate
,
VNodes
:
{
functional
:
true
,
render
:
(
h
,
ctx
)
=>
ctx
.
props
.
vnodes
,
}
},
},
data
()
{
data
()
{
return
{
return
{
...
...
jshERP-web/src/views/bill/modules/PurchaseInModal.vue
View file @
24e041fc
...
@@ -19,6 +19,12 @@
...
@@ -19,6 +19,12 @@
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"供应商"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"供应商"
>
<a-select
placeholder=
"选择供应商"
v-decorator=
"[ 'organId', validatorRules.organId ]"
<a-select
placeholder=
"选择供应商"
v-decorator=
"[ 'organId', validatorRules.organId ]"
:dropdownMatchSelectWidth=
"false"
showSearch
optionFilterProp=
"children"
>
: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=
"addSupplier"
><a-icon
type=
"plus"
/>
新增供应商
</div>
</div>
<a-select-option
v-for=
"(item,index) in supList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in supList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
supplier
}}
{{
item
.
supplier
}}
</a-select-option>
</a-select-option>
...
@@ -134,6 +140,7 @@
...
@@ -134,6 +140,7 @@
</a-spin>
</a-spin>
<many-account-modal
ref=
"manyAccountModalForm"
@
ok=
"manyAccountModalFormOk"
></many-account-modal>
<many-account-modal
ref=
"manyAccountModalForm"
@
ok=
"manyAccountModalFormOk"
></many-account-modal>
<link-bill-list
ref=
"linkBillList"
@
ok=
"linkBillListOk"
></link-bill-list>
<link-bill-list
ref=
"linkBillList"
@
ok=
"linkBillListOk"
></link-bill-list>
<vendor-modal
ref=
"vendorModalForm"
@
ok=
"vendorModalFormOk"
></vendor-modal>
</j-modal>
</j-modal>
</template>
</template>
...
@@ -141,6 +148,7 @@
...
@@ -141,6 +148,7 @@
import
pick
from
'
lodash.pick
'
import
pick
from
'
lodash.pick
'
import
ManyAccountModal
from
'
../dialog/ManyAccountModal
'
import
ManyAccountModal
from
'
../dialog/ManyAccountModal
'
import
LinkBillList
from
'
../dialog/LinkBillList
'
import
LinkBillList
from
'
../dialog/LinkBillList
'
import
VendorModal
from
'
../../system/modules/VendorModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
...
@@ -155,8 +163,13 @@
...
@@ -155,8 +163,13 @@
components
:
{
components
:
{
ManyAccountModal
,
ManyAccountModal
,
LinkBillList
,
LinkBillList
,
VendorModal
,
JUpload
,
JUpload
,
JDate
JDate
,
VNodes
:
{
functional
:
true
,
render
:
(
h
,
ctx
)
=>
ctx
.
props
.
vnodes
,
}
},
},
data
()
{
data
()
{
return
{
return
{
...
...
jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue
View file @
24e041fc
...
@@ -19,6 +19,12 @@
...
@@ -19,6 +19,12 @@
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"供应商"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"供应商"
>
<a-select
placeholder=
"选择供应商"
v-decorator=
"[ 'organId', validatorRules.organId ]"
<a-select
placeholder=
"选择供应商"
v-decorator=
"[ 'organId', validatorRules.organId ]"
:dropdownMatchSelectWidth=
"false"
showSearch
optionFilterProp=
"children"
>
: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=
"addSupplier"
><a-icon
type=
"plus"
/>
新增供应商
</div>
</div>
<a-select-option
v-for=
"(item,index) in supList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in supList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
supplier
}}
{{
item
.
supplier
}}
</a-select-option>
</a-select-option>
...
@@ -78,10 +84,12 @@
...
@@ -78,10 +84,12 @@
</a-row>
</a-row>
</a-form>
</a-form>
</a-spin>
</a-spin>
<vendor-modal
ref=
"vendorModalForm"
@
ok=
"vendorModalFormOk"
></vendor-modal>
</j-modal>
</j-modal>
</template>
</template>
<
script
>
<
script
>
import
pick
from
'
lodash.pick
'
import
pick
from
'
lodash.pick
'
import
VendorModal
from
'
../../system/modules/VendorModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
...
@@ -93,8 +101,13 @@
...
@@ -93,8 +101,13 @@
name
:
"
PurchaseOrderModal
"
,
name
:
"
PurchaseOrderModal
"
,
mixins
:
[
JEditableTableMixin
,
BillModalMixin
],
mixins
:
[
JEditableTableMixin
,
BillModalMixin
],
components
:
{
components
:
{
VendorModal
,
JUpload
,
JUpload
,
JDate
JDate
,
VNodes
:
{
functional
:
true
,
render
:
(
h
,
ctx
)
=>
ctx
.
props
.
vnodes
,
}
},
},
data
()
{
data
()
{
return
{
return
{
...
...
jshERP-web/src/views/bill/modules/SaleBackModal.vue
View file @
24e041fc
...
@@ -19,6 +19,12 @@
...
@@ -19,6 +19,12 @@
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"客户"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"客户"
>
<a-select
placeholder=
"选择客户"
v-decorator=
"[ 'organId', validatorRules.organId ]"
<a-select
placeholder=
"选择客户"
v-decorator=
"[ 'organId', validatorRules.organId ]"
:dropdownMatchSelectWidth=
"false"
showSearch
optionFilterProp=
"children"
>
: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=
"addCustomer"
><a-icon
type=
"plus"
/>
新增客户
</div>
</div>
<a-select-option
v-for=
"(item,index) in cusList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in cusList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
supplier
}}
{{
item
.
supplier
}}
</a-select-option>
</a-select-option>
...
@@ -137,12 +143,14 @@
...
@@ -137,12 +143,14 @@
</a-spin>
</a-spin>
<many-account-modal
ref=
"manyAccountModalForm"
@
ok=
"manyAccountModalFormOk"
></many-account-modal>
<many-account-modal
ref=
"manyAccountModalForm"
@
ok=
"manyAccountModalFormOk"
></many-account-modal>
<link-bill-list
ref=
"linkBillList"
@
ok=
"linkBillListOk"
></link-bill-list>
<link-bill-list
ref=
"linkBillList"
@
ok=
"linkBillListOk"
></link-bill-list>
<customer-modal
ref=
"customerModalForm"
@
ok=
"customerModalFormOk"
></customer-modal>
</j-modal>
</j-modal>
</template>
</template>
<
script
>
<
script
>
import
pick
from
'
lodash.pick
'
import
pick
from
'
lodash.pick
'
import
ManyAccountModal
from
'
../dialog/ManyAccountModal
'
import
ManyAccountModal
from
'
../dialog/ManyAccountModal
'
import
LinkBillList
from
'
../dialog/LinkBillList
'
import
LinkBillList
from
'
../dialog/LinkBillList
'
import
CustomerModal
from
'
../../system/modules/CustomerModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
...
@@ -158,9 +166,14 @@
...
@@ -158,9 +166,14 @@
components
:
{
components
:
{
ManyAccountModal
,
ManyAccountModal
,
LinkBillList
,
LinkBillList
,
CustomerModal
,
JUpload
,
JUpload
,
JDate
,
JDate
,
JSelectMultiple
JSelectMultiple
,
VNodes
:
{
functional
:
true
,
render
:
(
h
,
ctx
)
=>
ctx
.
props
.
vnodes
,
}
},
},
data
()
{
data
()
{
return
{
return
{
...
...
jshERP-web/src/views/bill/modules/SaleOrderModal.vue
View file @
24e041fc
...
@@ -19,6 +19,12 @@
...
@@ -19,6 +19,12 @@
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"客户"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"客户"
>
<a-select
placeholder=
"选择客户"
v-decorator=
"[ 'organId', validatorRules.organId ]"
<a-select
placeholder=
"选择客户"
v-decorator=
"[ 'organId', validatorRules.organId ]"
:dropdownMatchSelectWidth=
"false"
showSearch
optionFilterProp=
"children"
>
: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=
"addCustomer"
><a-icon
type=
"plus"
/>
新增客户
</div>
</div>
<a-select-option
v-for=
"(item,index) in cusList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in cusList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
supplier
}}
{{
item
.
supplier
}}
</a-select-option>
</a-select-option>
...
@@ -82,10 +88,12 @@
...
@@ -82,10 +88,12 @@
</a-row>
</a-row>
</a-form>
</a-form>
</a-spin>
</a-spin>
<customer-modal
ref=
"customerModalForm"
@
ok=
"customerModalFormOk"
></customer-modal>
</j-modal>
</j-modal>
</template>
</template>
<
script
>
<
script
>
import
pick
from
'
lodash.pick
'
import
pick
from
'
lodash.pick
'
import
CustomerModal
from
'
../../system/modules/CustomerModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
...
@@ -98,9 +106,14 @@
...
@@ -98,9 +106,14 @@
name
:
"
SaleOrderModal
"
,
name
:
"
SaleOrderModal
"
,
mixins
:
[
JEditableTableMixin
,
BillModalMixin
],
mixins
:
[
JEditableTableMixin
,
BillModalMixin
],
components
:
{
components
:
{
CustomerModal
,
JUpload
,
JUpload
,
JDate
,
JDate
,
JSelectMultiple
JSelectMultiple
,
VNodes
:
{
functional
:
true
,
render
:
(
h
,
ctx
)
=>
ctx
.
props
.
vnodes
,
}
},
},
data
()
{
data
()
{
return
{
return
{
...
...
jshERP-web/src/views/bill/modules/SaleOutModal.vue
View file @
24e041fc
...
@@ -19,6 +19,12 @@
...
@@ -19,6 +19,12 @@
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"客户"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"客户"
>
<a-select
placeholder=
"选择客户"
v-decorator=
"[ 'organId', validatorRules.organId ]"
<a-select
placeholder=
"选择客户"
v-decorator=
"[ 'organId', validatorRules.organId ]"
:dropdownMatchSelectWidth=
"false"
showSearch
optionFilterProp=
"children"
>
: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=
"addCustomer"
><a-icon
type=
"plus"
/>
新增客户
</div>
</div>
<a-select-option
v-for=
"(item,index) in cusList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in cusList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
supplier
}}
{{
item
.
supplier
}}
</a-select-option>
</a-select-option>
...
@@ -137,12 +143,14 @@
...
@@ -137,12 +143,14 @@
</a-spin>
</a-spin>
<many-account-modal
ref=
"manyAccountModalForm"
@
ok=
"manyAccountModalFormOk"
></many-account-modal>
<many-account-modal
ref=
"manyAccountModalForm"
@
ok=
"manyAccountModalFormOk"
></many-account-modal>
<link-bill-list
ref=
"linkBillList"
@
ok=
"linkBillListOk"
></link-bill-list>
<link-bill-list
ref=
"linkBillList"
@
ok=
"linkBillListOk"
></link-bill-list>
<customer-modal
ref=
"customerModalForm"
@
ok=
"customerModalFormOk"
></customer-modal>
</j-modal>
</j-modal>
</template>
</template>
<
script
>
<
script
>
import
pick
from
'
lodash.pick
'
import
pick
from
'
lodash.pick
'
import
ManyAccountModal
from
'
../dialog/ManyAccountModal
'
import
ManyAccountModal
from
'
../dialog/ManyAccountModal
'
import
LinkBillList
from
'
../dialog/LinkBillList
'
import
LinkBillList
from
'
../dialog/LinkBillList
'
import
CustomerModal
from
'
../../system/modules/CustomerModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
...
@@ -158,9 +166,14 @@
...
@@ -158,9 +166,14 @@
components
:
{
components
:
{
ManyAccountModal
,
ManyAccountModal
,
LinkBillList
,
LinkBillList
,
CustomerModal
,
JUpload
,
JUpload
,
JDate
,
JDate
,
JSelectMultiple
JSelectMultiple
,
VNodes
:
{
functional
:
true
,
render
:
(
h
,
ctx
)
=>
ctx
.
props
.
vnodes
,
}
},
},
data
()
{
data
()
{
return
{
return
{
...
...
jshERP-web/src/views/financial/mixins/FinancialModalMixin.js
View file @
24e041fc
...
@@ -138,6 +138,22 @@ export const FinancialModalMixin = {
...
@@ -138,6 +138,22 @@ export const FinancialModalMixin = {
}
}
})
})
},
},
addSupplier
()
{
this
.
$refs
.
vendorModalForm
.
add
();
this
.
$refs
.
vendorModalForm
.
title
=
"
新增
"
;
this
.
$refs
.
vendorModalForm
.
disableSubmit
=
false
;
},
addCustomer
()
{
this
.
$refs
.
customerModalForm
.
add
();
this
.
$refs
.
customerModalForm
.
title
=
"
新增客户(提醒:如果找不到新添加的客户,请到用户管理检查是否分配了该客户权限)
"
;
this
.
$refs
.
customerModalForm
.
disableSubmit
=
false
;
},
vendorModalFormOk
()
{
this
.
initSupplier
()
},
customerModalFormOk
()
{
this
.
initCustomer
()
},
//单元值改变一个字符就触发一次
//单元值改变一个字符就触发一次
onValueChange
(
event
)
{
onValueChange
(
event
)
{
let
that
=
this
let
that
=
this
...
...
jshERP-web/src/views/financial/modules/MoneyInModal.vue
View file @
24e041fc
...
@@ -19,6 +19,12 @@
...
@@ -19,6 +19,12 @@
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"客户"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"客户"
>
<a-select
placeholder=
"选择客户"
v-decorator=
"[ 'organId', validatorRules.organId ]"
<a-select
placeholder=
"选择客户"
v-decorator=
"[ 'organId', validatorRules.organId ]"
:dropdownMatchSelectWidth=
"false"
showSearch
optionFilterProp=
"children"
>
: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=
"addCustomer"
><a-icon
type=
"plus"
/>
新增客户
</div>
</div>
<a-select-option
v-for=
"(item,index) in cusList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in cusList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
supplier
}}
{{
item
.
supplier
}}
</a-select-option>
</a-select-option>
...
@@ -114,11 +120,13 @@
...
@@ -114,11 +120,13 @@
</a-form>
</a-form>
</a-spin>
</a-spin>
<debt-bill-list
ref=
"debtBillList"
@
ok=
"debtBillListOk"
></debt-bill-list>
<debt-bill-list
ref=
"debtBillList"
@
ok=
"debtBillListOk"
></debt-bill-list>
<customer-modal
ref=
"customerModalForm"
@
ok=
"customerModalFormOk"
></customer-modal>
</j-modal>
</j-modal>
</
template
>
</
template
>
<
script
>
<
script
>
import
pick
from
'
lodash.pick
'
import
pick
from
'
lodash.pick
'
import
DebtBillList
from
'
../dialog/DebtBillList
'
import
DebtBillList
from
'
../dialog/DebtBillList
'
import
CustomerModal
from
'
../../system/modules/CustomerModal
'
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
'
...
@@ -129,8 +137,13 @@
...
@@ -129,8 +137,13 @@
mixins
:
[
JEditableTableMixin
,
FinancialModalMixin
],
mixins
:
[
JEditableTableMixin
,
FinancialModalMixin
],
components
:
{
components
:
{
DebtBillList
,
DebtBillList
,
CustomerModal
,
JUpload
,
JUpload
,
JDate
JDate
,
VNodes
:
{
functional
:
true
,
render
:
(
h
,
ctx
)
=>
ctx
.
props
.
vnodes
,
}
},
},
data
()
{
data
()
{
return
{
return
{
...
...
jshERP-web/src/views/financial/modules/MoneyOutModal.vue
View file @
24e041fc
...
@@ -19,6 +19,12 @@
...
@@ -19,6 +19,12 @@
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"供应商"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"供应商"
>
<a-select
placeholder=
"选择供应商"
v-decorator=
"[ 'organId', validatorRules.organId ]"
<a-select
placeholder=
"选择供应商"
v-decorator=
"[ 'organId', validatorRules.organId ]"
:dropdownMatchSelectWidth=
"false"
showSearch
optionFilterProp=
"children"
>
: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=
"addSupplier"
><a-icon
type=
"plus"
/>
新增供应商
</div>
</div>
<a-select-option
v-for=
"(item,index) in supList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in supList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
supplier
}}
{{
item
.
supplier
}}
</a-select-option>
</a-select-option>
...
@@ -114,11 +120,13 @@
...
@@ -114,11 +120,13 @@
</a-form>
</a-form>
</a-spin>
</a-spin>
<debt-bill-list
ref=
"debtBillList"
@
ok=
"debtBillListOk"
></debt-bill-list>
<debt-bill-list
ref=
"debtBillList"
@
ok=
"debtBillListOk"
></debt-bill-list>
<vendor-modal
ref=
"vendorModalForm"
@
ok=
"vendorModalFormOk"
></vendor-modal>
</j-modal>
</j-modal>
</
template
>
</
template
>
<
script
>
<
script
>
import
pick
from
'
lodash.pick
'
import
pick
from
'
lodash.pick
'
import
DebtBillList
from
'
../dialog/DebtBillList
'
import
DebtBillList
from
'
../dialog/DebtBillList
'
import
VendorModal
from
'
../../system/modules/VendorModal
'
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
'
...
@@ -129,8 +137,13 @@
...
@@ -129,8 +137,13 @@
mixins
:
[
JEditableTableMixin
,
FinancialModalMixin
],
mixins
:
[
JEditableTableMixin
,
FinancialModalMixin
],
components
:
{
components
:
{
DebtBillList
,
DebtBillList
,
VendorModal
,
JUpload
,
JUpload
,
JDate
JDate
,
VNodes
:
{
functional
:
true
,
render
:
(
h
,
ctx
)
=>
ctx
.
props
.
vnodes
,
}
},
},
data
()
{
data
()
{
return
{
return
{
...
...
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