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
24ee142f
"vscode:/vscode.git/clone" did not exist on "109ca8d2edd279ee8a3f08199f9dedb164aaee01"
Commit
24ee142f
authored
May 18, 2022
by
季圣华
Browse files
给单据的新增和编辑界面增加审核按钮
parent
fa48c834
Changes
23
Show whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/mixins/BillListMixin.js
View file @
24ee142f
...
@@ -32,10 +32,16 @@ export const BillListMixin = {
...
@@ -32,10 +32,16 @@ export const BillListMixin = {
methods
:
{
methods
:
{
myHandleAdd
()
{
myHandleAdd
()
{
this
.
$refs
.
modalForm
.
action
=
"
add
"
;
this
.
$refs
.
modalForm
.
action
=
"
add
"
;
if
(
this
.
btnEnableList
.
indexOf
(
2
)
===-
1
)
{
this
.
$refs
.
modalForm
.
isCanCheck
=
false
}
this
.
handleAdd
();
this
.
handleAdd
();
},
},
myHandleCopyAdd
(
record
)
{
myHandleCopyAdd
(
record
)
{
this
.
$refs
.
modalForm
.
action
=
"
copyAdd
"
;
this
.
$refs
.
modalForm
.
action
=
"
copyAdd
"
;
if
(
this
.
btnEnableList
.
indexOf
(
2
)
===-
1
)
{
this
.
$refs
.
modalForm
.
isCanCheck
=
false
}
this
.
$refs
.
modalForm
.
edit
(
record
);
this
.
$refs
.
modalForm
.
edit
(
record
);
this
.
$refs
.
modalForm
.
title
=
"
复制新增
"
;
this
.
$refs
.
modalForm
.
title
=
"
复制新增
"
;
this
.
$refs
.
modalForm
.
disableSubmit
=
false
;
this
.
$refs
.
modalForm
.
disableSubmit
=
false
;
...
@@ -43,6 +49,9 @@ export const BillListMixin = {
...
@@ -43,6 +49,9 @@ export const BillListMixin = {
myHandleEdit
(
record
)
{
myHandleEdit
(
record
)
{
if
(
record
.
status
===
'
0
'
)
{
if
(
record
.
status
===
'
0
'
)
{
this
.
$refs
.
modalForm
.
action
=
"
edit
"
;
this
.
$refs
.
modalForm
.
action
=
"
edit
"
;
if
(
this
.
btnEnableList
.
indexOf
(
2
)
===-
1
)
{
this
.
$refs
.
modalForm
.
isCanCheck
=
false
}
this
.
handleEdit
(
record
);
this
.
handleEdit
(
record
);
}
else
{
}
else
{
this
.
$message
.
warning
(
"
抱歉,只有未审核的单据才能编辑!
"
)
this
.
$message
.
warning
(
"
抱歉,只有未审核的单据才能编辑!
"
)
...
...
jshERP-web/src/views/bill/mixins/BillModalMixin.js
View file @
24ee142f
...
@@ -25,6 +25,8 @@ export const BillModalMixin = {
...
@@ -25,6 +25,8 @@ export const BillModalMixin = {
billUnitPirce
:
''
,
billUnitPirce
:
''
,
scanBarCode
:
''
,
scanBarCode
:
''
,
scanStatus
:
true
,
scanStatus
:
true
,
billStatus
:
'
0
'
,
isCanCheck
:
true
,
isTenant
:
false
,
isTenant
:
false
,
spans
:
{
spans
:
{
labelCol1
:
{
span
:
2
},
labelCol1
:
{
span
:
2
},
...
@@ -710,6 +712,11 @@ export const BillModalMixin = {
...
@@ -710,6 +712,11 @@ export const BillModalMixin = {
stopScan
()
{
stopScan
()
{
this
.
scanStatus
=
true
this
.
scanStatus
=
true
this
.
scanBarCode
=
''
this
.
scanBarCode
=
''
}
},
//保存并审核
handleOkAndCheck
()
{
this
.
billStatus
=
'
1
'
this
.
handleOk
()
},
}
}
}
}
\ No newline at end of file
jshERP-web/src/views/bill/modules/AllocationOutModal.vue
View file @
24ee142f
...
@@ -8,10 +8,14 @@
...
@@ -8,10 +8,14 @@
:keyboard=
"false"
:keyboard=
"false"
:forceRender=
"true"
:forceRender=
"true"
switchFullscreen
switchFullscreen
@
ok=
"handleOk"
@
cancel=
"handleCancel"
@
cancel=
"handleCancel"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
@
click=
"handleCancel"
>
取消
</a-button>
<a-button
v-if=
"isCanCheck"
@
click=
"handleOkAndCheck"
>
保存并审核
</a-button>
<a-button
type=
"primary"
@
click=
"handleOk"
>
保存
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
...
@@ -180,6 +184,7 @@
...
@@ -180,6 +184,7 @@
methods
:
{
methods
:
{
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
this
.
billStatus
=
'
0
'
this
.
changeColumnHide
()
this
.
changeColumnHide
()
if
(
this
.
action
===
'
add
'
)
{
if
(
this
.
action
===
'
add
'
)
{
this
.
addInit
(
this
.
prefixNo
)
this
.
addInit
(
this
.
prefixNo
)
...
@@ -227,6 +232,7 @@
...
@@ -227,6 +232,7 @@
if
(
this
.
model
.
id
){
if
(
this
.
model
.
id
){
billMain
.
id
=
this
.
model
.
id
billMain
.
id
=
this
.
model
.
id
}
}
billMain
.
status
=
this
.
billStatus
return
{
return
{
info
:
JSON
.
stringify
(
billMain
),
info
:
JSON
.
stringify
(
billMain
),
rows
:
JSON
.
stringify
(
detailArr
),
rows
:
JSON
.
stringify
(
detailArr
),
...
...
jshERP-web/src/views/bill/modules/AssembleModal.vue
View file @
24ee142f
...
@@ -8,10 +8,14 @@
...
@@ -8,10 +8,14 @@
:keyboard=
"false"
:keyboard=
"false"
:forceRender=
"true"
:forceRender=
"true"
switchFullscreen
switchFullscreen
@
ok=
"handleOk"
@
cancel=
"handleCancel"
@
cancel=
"handleCancel"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
@
click=
"handleCancel"
>
取消
</a-button>
<a-button
v-if=
"isCanCheck"
@
click=
"handleOkAndCheck"
>
保存并审核
</a-button>
<a-button
type=
"primary"
@
click=
"handleOk"
>
保存
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
...
@@ -180,6 +184,7 @@
...
@@ -180,6 +184,7 @@
methods
:
{
methods
:
{
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
this
.
billStatus
=
'
0
'
this
.
changeColumnHide
()
this
.
changeColumnHide
()
if
(
this
.
action
===
'
add
'
)
{
if
(
this
.
action
===
'
add
'
)
{
this
.
addInit
(
this
.
prefixNo
)
this
.
addInit
(
this
.
prefixNo
)
...
@@ -228,6 +233,7 @@
...
@@ -228,6 +233,7 @@
if
(
this
.
model
.
id
){
if
(
this
.
model
.
id
){
billMain
.
id
=
this
.
model
.
id
billMain
.
id
=
this
.
model
.
id
}
}
billMain
.
status
=
this
.
billStatus
return
{
return
{
info
:
JSON
.
stringify
(
billMain
),
info
:
JSON
.
stringify
(
billMain
),
rows
:
JSON
.
stringify
(
detailArr
),
rows
:
JSON
.
stringify
(
detailArr
),
...
...
jshERP-web/src/views/bill/modules/DisassembleModal.vue
View file @
24ee142f
...
@@ -8,10 +8,14 @@
...
@@ -8,10 +8,14 @@
:keyboard=
"false"
:keyboard=
"false"
:forceRender=
"true"
:forceRender=
"true"
switchFullscreen
switchFullscreen
@
ok=
"handleOk"
@
cancel=
"handleCancel"
@
cancel=
"handleCancel"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
@
click=
"handleCancel"
>
取消
</a-button>
<a-button
v-if=
"isCanCheck"
@
click=
"handleOkAndCheck"
>
保存并审核
</a-button>
<a-button
type=
"primary"
@
click=
"handleOk"
>
保存
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
...
@@ -180,6 +184,7 @@
...
@@ -180,6 +184,7 @@
methods
:
{
methods
:
{
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
this
.
billStatus
=
'
0
'
this
.
changeColumnHide
()
this
.
changeColumnHide
()
if
(
this
.
action
===
'
add
'
)
{
if
(
this
.
action
===
'
add
'
)
{
this
.
addInit
(
this
.
prefixNo
)
this
.
addInit
(
this
.
prefixNo
)
...
@@ -227,6 +232,7 @@
...
@@ -227,6 +232,7 @@
if
(
this
.
model
.
id
){
if
(
this
.
model
.
id
){
billMain
.
id
=
this
.
model
.
id
billMain
.
id
=
this
.
model
.
id
}
}
billMain
.
status
=
this
.
billStatus
return
{
return
{
info
:
JSON
.
stringify
(
billMain
),
info
:
JSON
.
stringify
(
billMain
),
rows
:
JSON
.
stringify
(
detailArr
),
rows
:
JSON
.
stringify
(
detailArr
),
...
...
jshERP-web/src/views/bill/modules/OtherInModal.vue
View file @
24ee142f
...
@@ -8,10 +8,14 @@
...
@@ -8,10 +8,14 @@
:keyboard=
"false"
:keyboard=
"false"
:forceRender=
"true"
:forceRender=
"true"
switchFullscreen
switchFullscreen
@
ok=
"handleOk"
@
cancel=
"handleCancel"
@
cancel=
"handleCancel"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
@
click=
"handleCancel"
>
取消
</a-button>
<a-button
v-if=
"isCanCheck"
@
click=
"handleOkAndCheck"
>
保存并审核
</a-button>
<a-button
type=
"primary"
@
click=
"handleOk"
>
保存
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
...
@@ -206,6 +210,7 @@
...
@@ -206,6 +210,7 @@
methods
:
{
methods
:
{
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
this
.
billStatus
=
'
0
'
this
.
changeColumnHide
()
this
.
changeColumnHide
()
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
...
@@ -257,6 +262,7 @@
...
@@ -257,6 +262,7 @@
if
(
this
.
model
.
id
){
if
(
this
.
model
.
id
){
billMain
.
id
=
this
.
model
.
id
billMain
.
id
=
this
.
model
.
id
}
}
billMain
.
status
=
this
.
billStatus
return
{
return
{
info
:
JSON
.
stringify
(
billMain
),
info
:
JSON
.
stringify
(
billMain
),
rows
:
JSON
.
stringify
(
detailArr
),
rows
:
JSON
.
stringify
(
detailArr
),
...
...
jshERP-web/src/views/bill/modules/OtherOutModal.vue
View file @
24ee142f
...
@@ -8,10 +8,14 @@
...
@@ -8,10 +8,14 @@
:keyboard=
"false"
:keyboard=
"false"
:forceRender=
"true"
:forceRender=
"true"
switchFullscreen
switchFullscreen
@
ok=
"handleOk"
@
cancel=
"handleCancel"
@
cancel=
"handleCancel"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
@
click=
"handleCancel"
>
取消
</a-button>
<a-button
v-if=
"isCanCheck"
@
click=
"handleOkAndCheck"
>
保存并审核
</a-button>
<a-button
type=
"primary"
@
click=
"handleOk"
>
保存
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
...
@@ -204,6 +208,7 @@
...
@@ -204,6 +208,7 @@
methods
:
{
methods
:
{
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
this
.
billStatus
=
'
0
'
this
.
changeColumnHide
()
this
.
changeColumnHide
()
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
...
@@ -255,6 +260,7 @@
...
@@ -255,6 +260,7 @@
if
(
this
.
model
.
id
){
if
(
this
.
model
.
id
){
billMain
.
id
=
this
.
model
.
id
billMain
.
id
=
this
.
model
.
id
}
}
billMain
.
status
=
this
.
billStatus
return
{
return
{
info
:
JSON
.
stringify
(
billMain
),
info
:
JSON
.
stringify
(
billMain
),
rows
:
JSON
.
stringify
(
detailArr
),
rows
:
JSON
.
stringify
(
detailArr
),
...
...
jshERP-web/src/views/bill/modules/PurchaseBackModal.vue
View file @
24ee142f
...
@@ -8,10 +8,14 @@
...
@@ -8,10 +8,14 @@
:keyboard=
"false"
:keyboard=
"false"
:forceRender=
"true"
:forceRender=
"true"
switchFullscreen
switchFullscreen
@
ok=
"handleOk"
@
cancel=
"handleCancel"
@
cancel=
"handleCancel"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
@
click=
"handleCancel"
>
取消
</a-button>
<a-button
v-if=
"isCanCheck"
@
click=
"handleOkAndCheck"
>
保存并审核
</a-button>
<a-button
type=
"primary"
@
click=
"handleOk"
>
保存
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
...
@@ -281,6 +285,7 @@
...
@@ -281,6 +285,7 @@
methods
:
{
methods
:
{
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
this
.
billStatus
=
'
0
'
this
.
changeColumnHide
()
this
.
changeColumnHide
()
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
...
@@ -347,6 +352,7 @@
...
@@ -347,6 +352,7 @@
if
(
this
.
model
.
id
){
if
(
this
.
model
.
id
){
billMain
.
id
=
this
.
model
.
id
billMain
.
id
=
this
.
model
.
id
}
}
billMain
.
status
=
this
.
billStatus
return
{
return
{
info
:
JSON
.
stringify
(
billMain
),
info
:
JSON
.
stringify
(
billMain
),
rows
:
JSON
.
stringify
(
detailArr
),
rows
:
JSON
.
stringify
(
detailArr
),
...
...
jshERP-web/src/views/bill/modules/PurchaseInModal.vue
View file @
24ee142f
...
@@ -10,11 +10,15 @@
...
@@ -10,11 +10,15 @@
v-bind:prefixNo=
"prefixNo"
v-bind:prefixNo=
"prefixNo"
switchHelp
switchHelp
switchFullscreen
switchFullscreen
@
ok=
"handleOk"
@
cancel=
"handleCancel"
@
cancel=
"handleCancel"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
:id=
"prefixNo"
:id=
"prefixNo"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
@
click=
"handleCancel"
>
取消
</a-button>
<a-button
v-if=
"isCanCheck"
@
click=
"handleOkAndCheck"
>
保存并审核
</a-button>
<a-button
type=
"primary"
@
click=
"handleOk"
>
保存
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
...
@@ -301,6 +305,7 @@
...
@@ -301,6 +305,7 @@
methods
:
{
methods
:
{
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
this
.
billStatus
=
'
0
'
this
.
rowCanEdit
=
true
this
.
rowCanEdit
=
true
this
.
materialTable
.
columns
[
1
].
type
=
FormTypes
.
popupJsh
this
.
materialTable
.
columns
[
1
].
type
=
FormTypes
.
popupJsh
this
.
changeColumnHide
()
this
.
changeColumnHide
()
...
@@ -376,6 +381,7 @@
...
@@ -376,6 +381,7 @@
if
(
this
.
model
.
id
){
if
(
this
.
model
.
id
){
billMain
.
id
=
this
.
model
.
id
billMain
.
id
=
this
.
model
.
id
}
}
billMain
.
status
=
this
.
billStatus
return
{
return
{
info
:
JSON
.
stringify
(
billMain
),
info
:
JSON
.
stringify
(
billMain
),
rows
:
JSON
.
stringify
(
detailArr
),
rows
:
JSON
.
stringify
(
detailArr
),
...
...
jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue
View file @
24ee142f
...
@@ -10,11 +10,15 @@
...
@@ -10,11 +10,15 @@
v-bind:prefixNo=
"prefixNo"
v-bind:prefixNo=
"prefixNo"
switchHelp
switchHelp
switchFullscreen
switchFullscreen
@
ok=
"handleOk"
@
cancel=
"handleCancel"
@
cancel=
"handleCancel"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
:id=
"prefixNo"
:id=
"prefixNo"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
@
click=
"handleCancel"
>
取消
</a-button>
<a-button
v-if=
"isCanCheck"
@
click=
"handleOkAndCheck"
>
保存并审核
</a-button>
<a-button
type=
"primary"
@
click=
"handleOk"
>
保存
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
...
@@ -226,6 +230,7 @@
...
@@ -226,6 +230,7 @@
methods
:
{
methods
:
{
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
this
.
billStatus
=
'
0
'
this
.
rowCanEdit
=
true
this
.
rowCanEdit
=
true
this
.
materialTable
.
columns
[
1
].
type
=
FormTypes
.
popupJsh
this
.
materialTable
.
columns
[
1
].
type
=
FormTypes
.
popupJsh
this
.
getSystemConfig
()
this
.
getSystemConfig
()
...
@@ -280,6 +285,7 @@
...
@@ -280,6 +285,7 @@
if
(
this
.
model
.
id
){
if
(
this
.
model
.
id
){
billMain
.
id
=
this
.
model
.
id
billMain
.
id
=
this
.
model
.
id
}
}
billMain
.
status
=
this
.
billStatus
return
{
return
{
info
:
JSON
.
stringify
(
billMain
),
info
:
JSON
.
stringify
(
billMain
),
rows
:
JSON
.
stringify
(
detailArr
),
rows
:
JSON
.
stringify
(
detailArr
),
...
...
jshERP-web/src/views/bill/modules/RetailBackModal.vue
View file @
24ee142f
...
@@ -8,10 +8,14 @@
...
@@ -8,10 +8,14 @@
:keyboard=
"false"
:keyboard=
"false"
:forceRender=
"true"
:forceRender=
"true"
switchFullscreen
switchFullscreen
@
ok=
"handleOk"
@
cancel=
"handleCancel"
@
cancel=
"handleCancel"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
@
click=
"handleCancel"
>
取消
</a-button>
<a-button
v-if=
"isCanCheck"
@
click=
"handleOkAndCheck"
>
保存并审核
</a-button>
<a-button
type=
"primary"
@
click=
"handleOk"
>
保存
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
...
@@ -264,6 +268,7 @@
...
@@ -264,6 +268,7 @@
methods
:
{
methods
:
{
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
this
.
billStatus
=
'
0
'
this
.
changeColumnHide
()
this
.
changeColumnHide
()
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
...
@@ -325,6 +330,7 @@
...
@@ -325,6 +330,7 @@
if
(
this
.
model
.
id
){
if
(
this
.
model
.
id
){
billMain
.
id
=
this
.
model
.
id
billMain
.
id
=
this
.
model
.
id
}
}
billMain
.
status
=
this
.
billStatus
return
{
return
{
info
:
JSON
.
stringify
(
billMain
),
info
:
JSON
.
stringify
(
billMain
),
rows
:
JSON
.
stringify
(
detailArr
),
rows
:
JSON
.
stringify
(
detailArr
),
...
...
jshERP-web/src/views/bill/modules/RetailOutModal.vue
View file @
24ee142f
...
@@ -10,11 +10,15 @@
...
@@ -10,11 +10,15 @@
v-bind:prefixNo=
"prefixNo"
v-bind:prefixNo=
"prefixNo"
switchHelp
switchHelp
switchFullscreen
switchFullscreen
@
ok=
"handleOk"
@
cancel=
"handleCancel"
@
cancel=
"handleCancel"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
:id=
"prefixNo"
:id=
"prefixNo"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
@
click=
"handleCancel"
>
取消
</a-button>
<a-button
v-if=
"isCanCheck"
@
click=
"handleOkAndCheck"
>
保存并审核
</a-button>
<a-button
type=
"primary"
@
click=
"handleOk"
>
保存
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
...
@@ -276,6 +280,7 @@
...
@@ -276,6 +280,7 @@
methods
:
{
methods
:
{
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
this
.
billStatus
=
'
0
'
this
.
changeColumnHide
()
this
.
changeColumnHide
()
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
...
@@ -344,6 +349,7 @@
...
@@ -344,6 +349,7 @@
if
(
this
.
model
.
id
){
if
(
this
.
model
.
id
){
billMain
.
id
=
this
.
model
.
id
billMain
.
id
=
this
.
model
.
id
}
}
billMain
.
status
=
this
.
billStatus
return
{
return
{
info
:
JSON
.
stringify
(
billMain
),
info
:
JSON
.
stringify
(
billMain
),
rows
:
JSON
.
stringify
(
detailArr
),
rows
:
JSON
.
stringify
(
detailArr
),
...
...
jshERP-web/src/views/bill/modules/SaleBackModal.vue
View file @
24ee142f
...
@@ -8,10 +8,14 @@
...
@@ -8,10 +8,14 @@
:keyboard=
"false"
:keyboard=
"false"
:forceRender=
"true"
:forceRender=
"true"
switchFullscreen
switchFullscreen
@
ok=
"handleOk"
@
cancel=
"handleCancel"
@
cancel=
"handleCancel"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
@
click=
"handleCancel"
>
取消
</a-button>
<a-button
v-if=
"isCanCheck"
@
click=
"handleOkAndCheck"
>
保存并审核
</a-button>
<a-button
type=
"primary"
@
click=
"handleOk"
>
保存
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
...
@@ -288,6 +292,7 @@
...
@@ -288,6 +292,7 @@
methods
:
{
methods
:
{
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
this
.
billStatus
=
'
0
'
this
.
changeColumnHide
()
this
.
changeColumnHide
()
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
...
@@ -360,6 +365,7 @@
...
@@ -360,6 +365,7 @@
billMain
.
id
=
this
.
model
.
id
billMain
.
id
=
this
.
model
.
id
}
}
billMain
.
salesMan
=
this
.
personList
.
value
billMain
.
salesMan
=
this
.
personList
.
value
billMain
.
status
=
this
.
billStatus
return
{
return
{
info
:
JSON
.
stringify
(
billMain
),
info
:
JSON
.
stringify
(
billMain
),
rows
:
JSON
.
stringify
(
detailArr
),
rows
:
JSON
.
stringify
(
detailArr
),
...
...
jshERP-web/src/views/bill/modules/SaleOrderModal.vue
View file @
24ee142f
...
@@ -10,11 +10,15 @@
...
@@ -10,11 +10,15 @@
v-bind:prefixNo=
"prefixNo"
v-bind:prefixNo=
"prefixNo"
switchHelp
switchHelp
switchFullscreen
switchFullscreen
@
ok=
"handleOk"
@
cancel=
"handleCancel"
@
cancel=
"handleCancel"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
:id=
"prefixNo"
:id=
"prefixNo"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
@
click=
"handleCancel"
>
取消
</a-button>
<a-button
v-if=
"isCanCheck"
@
click=
"handleOkAndCheck"
>
保存并审核
</a-button>
<a-button
type=
"primary"
@
click=
"handleOk"
>
保存
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
...
@@ -219,6 +223,7 @@
...
@@ -219,6 +223,7 @@
methods
:
{
methods
:
{
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
this
.
billStatus
=
'
0
'
this
.
changeColumnHide
()
this
.
changeColumnHide
()
if
(
this
.
action
===
'
add
'
)
{
if
(
this
.
action
===
'
add
'
)
{
this
.
addInit
(
this
.
prefixNo
)
this
.
addInit
(
this
.
prefixNo
)
...
@@ -274,6 +279,7 @@
...
@@ -274,6 +279,7 @@
billMain
.
id
=
this
.
model
.
id
billMain
.
id
=
this
.
model
.
id
}
}
billMain
.
salesMan
=
this
.
personList
.
value
billMain
.
salesMan
=
this
.
personList
.
value
billMain
.
status
=
this
.
billStatus
return
{
return
{
info
:
JSON
.
stringify
(
billMain
),
info
:
JSON
.
stringify
(
billMain
),
rows
:
JSON
.
stringify
(
detailArr
),
rows
:
JSON
.
stringify
(
detailArr
),
...
...
jshERP-web/src/views/bill/modules/SaleOutModal.vue
View file @
24ee142f
...
@@ -10,11 +10,15 @@
...
@@ -10,11 +10,15 @@
v-bind:prefixNo=
"prefixNo"
v-bind:prefixNo=
"prefixNo"
switchHelp
switchHelp
switchFullscreen
switchFullscreen
@
ok=
"handleOk"
@
cancel=
"handleCancel"
@
cancel=
"handleCancel"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
:id=
"prefixNo"
:id=
"prefixNo"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
@
click=
"handleCancel"
>
取消
</a-button>
<a-button
v-if=
"isCanCheck"
@
click=
"handleOkAndCheck"
>
保存并审核
</a-button>
<a-button
type=
"primary"
@
click=
"handleOk"
>
保存
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
...
@@ -305,6 +309,7 @@
...
@@ -305,6 +309,7 @@
methods
:
{
methods
:
{
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
this
.
billStatus
=
'
0
'
this
.
rowCanEdit
=
true
this
.
rowCanEdit
=
true
this
.
materialTable
.
columns
[
1
].
type
=
FormTypes
.
popupJsh
this
.
materialTable
.
columns
[
1
].
type
=
FormTypes
.
popupJsh
this
.
changeColumnHide
()
this
.
changeColumnHide
()
...
@@ -382,6 +387,7 @@
...
@@ -382,6 +387,7 @@
billMain
.
id
=
this
.
model
.
id
billMain
.
id
=
this
.
model
.
id
}
}
billMain
.
salesMan
=
this
.
personList
.
value
billMain
.
salesMan
=
this
.
personList
.
value
billMain
.
status
=
this
.
billStatus
return
{
return
{
info
:
JSON
.
stringify
(
billMain
),
info
:
JSON
.
stringify
(
billMain
),
rows
:
JSON
.
stringify
(
detailArr
),
rows
:
JSON
.
stringify
(
detailArr
),
...
...
jshERP-web/src/views/financial/mixins/FinancialListMixin.js
View file @
24ee142f
...
@@ -33,11 +33,17 @@ export const FinancialListMixin = {
...
@@ -33,11 +33,17 @@ export const FinancialListMixin = {
methods
:
{
methods
:
{
myHandleAdd
()
{
myHandleAdd
()
{
this
.
$refs
.
modalForm
.
action
=
"
add
"
;
this
.
$refs
.
modalForm
.
action
=
"
add
"
;
if
(
this
.
btnEnableList
.
indexOf
(
2
)
===-
1
)
{
this
.
$refs
.
modalForm
.
isCanCheck
=
false
}
this
.
handleAdd
();
this
.
handleAdd
();
},
},
myHandleEdit
(
record
)
{
myHandleEdit
(
record
)
{
if
(
record
.
status
===
'
0
'
)
{
if
(
record
.
status
===
'
0
'
)
{
this
.
$refs
.
modalForm
.
action
=
"
edit
"
;
this
.
$refs
.
modalForm
.
action
=
"
edit
"
;
if
(
this
.
btnEnableList
.
indexOf
(
2
)
===-
1
)
{
this
.
$refs
.
modalForm
.
isCanCheck
=
false
}
this
.
handleEdit
(
record
);
this
.
handleEdit
(
record
);
}
else
{
}
else
{
this
.
$message
.
warning
(
"
抱歉,只有未审核的单据才能编辑!
"
)
this
.
$message
.
warning
(
"
抱歉,只有未审核的单据才能编辑!
"
)
...
...
jshERP-web/src/views/financial/mixins/FinancialModalMixin.js
View file @
24ee142f
...
@@ -15,6 +15,8 @@ export const FinancialModalMixin = {
...
@@ -15,6 +15,8 @@ export const FinancialModalMixin = {
organList
:
[],
organList
:
[],
personList
:
[],
personList
:
[],
accountList
:
[],
accountList
:
[],
billStatus
:
'
0
'
,
isCanCheck
:
true
,
isTenant
:
false
,
isTenant
:
false
,
spans
:
{
spans
:
{
labelCol1
:
{
span
:
2
},
labelCol1
:
{
span
:
2
},
...
@@ -244,6 +246,11 @@ export const FinancialModalMixin = {
...
@@ -244,6 +246,11 @@ export const FinancialModalMixin = {
});
});
typeof
success
===
'
function
'
?
success
(
res
)
:
''
typeof
success
===
'
function
'
?
success
(
res
)
:
''
tab
.
loading
=
false
tab
.
loading
=
false
}
},
//保存并审核
handleOkAndCheck
()
{
this
.
billStatus
=
'
1
'
this
.
handleOk
()
},
}
}
}
}
\ No newline at end of file
jshERP-web/src/views/financial/modules/AdvanceInModal.vue
View file @
24ee142f
...
@@ -8,10 +8,14 @@
...
@@ -8,10 +8,14 @@
:keyboard=
"false"
:keyboard=
"false"
:forceRender=
"true"
:forceRender=
"true"
switchFullscreen
switchFullscreen
@
ok=
"handleOk"
@
cancel=
"handleCancel"
@
cancel=
"handleCancel"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
@
click=
"handleCancel"
>
取消
</a-button>
<a-button
v-if=
"isCanCheck"
@
click=
"handleOkAndCheck"
>
保存并审核
</a-button>
<a-button
type=
"primary"
@
click=
"handleOk"
>
保存
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
...
@@ -180,6 +184,7 @@
...
@@ -180,6 +184,7 @@
methods
:
{
methods
:
{
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
this
.
billStatus
=
'
0
'
if
(
this
.
action
===
'
add
'
)
{
if
(
this
.
action
===
'
add
'
)
{
this
.
addInit
(
"
SYF
"
)
this
.
addInit
(
"
SYF
"
)
this
.
fileList
=
[]
this
.
fileList
=
[]
...
@@ -217,6 +222,7 @@
...
@@ -217,6 +222,7 @@
if
(
this
.
model
.
id
){
if
(
this
.
model
.
id
){
billMain
.
id
=
this
.
model
.
id
billMain
.
id
=
this
.
model
.
id
}
}
billMain
.
status
=
this
.
billStatus
return
{
return
{
info
:
JSON
.
stringify
(
billMain
),
info
:
JSON
.
stringify
(
billMain
),
rows
:
JSON
.
stringify
(
detailArr
),
rows
:
JSON
.
stringify
(
detailArr
),
...
...
jshERP-web/src/views/financial/modules/GiroModal.vue
View file @
24ee142f
...
@@ -8,10 +8,14 @@
...
@@ -8,10 +8,14 @@
:keyboard=
"false"
:keyboard=
"false"
:forceRender=
"true"
:forceRender=
"true"
switchFullscreen
switchFullscreen
@
ok=
"handleOk"
@
cancel=
"handleCancel"
@
cancel=
"handleCancel"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
@
click=
"handleCancel"
>
取消
</a-button>
<a-button
v-if=
"isCanCheck"
@
click=
"handleOkAndCheck"
>
保存并审核
</a-button>
<a-button
type=
"primary"
@
click=
"handleOk"
>
保存
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
...
@@ -191,6 +195,7 @@
...
@@ -191,6 +195,7 @@
methods
:
{
methods
:
{
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
this
.
billStatus
=
'
0
'
if
(
this
.
action
===
'
add
'
)
{
if
(
this
.
action
===
'
add
'
)
{
this
.
addInit
(
"
ZZ
"
)
this
.
addInit
(
"
ZZ
"
)
this
.
fileList
=
[]
this
.
fileList
=
[]
...
@@ -229,6 +234,7 @@
...
@@ -229,6 +234,7 @@
if
(
this
.
model
.
id
){
if
(
this
.
model
.
id
){
billMain
.
id
=
this
.
model
.
id
billMain
.
id
=
this
.
model
.
id
}
}
billMain
.
status
=
this
.
billStatus
return
{
return
{
info
:
JSON
.
stringify
(
billMain
),
info
:
JSON
.
stringify
(
billMain
),
rows
:
JSON
.
stringify
(
detailArr
),
rows
:
JSON
.
stringify
(
detailArr
),
...
...
jshERP-web/src/views/financial/modules/ItemInModal.vue
View file @
24ee142f
...
@@ -8,10 +8,14 @@
...
@@ -8,10 +8,14 @@
:keyboard=
"false"
:keyboard=
"false"
:forceRender=
"true"
:forceRender=
"true"
switchFullscreen
switchFullscreen
@
ok=
"handleOk"
@
cancel=
"handleCancel"
@
cancel=
"handleCancel"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
@
click=
"handleCancel"
>
取消
</a-button>
<a-button
v-if=
"isCanCheck"
@
click=
"handleOkAndCheck"
>
保存并审核
</a-button>
<a-button
type=
"primary"
@
click=
"handleOk"
>
保存
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
...
@@ -204,6 +208,7 @@
...
@@ -204,6 +208,7 @@
methods
:
{
methods
:
{
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
this
.
billStatus
=
'
0
'
if
(
this
.
action
===
'
add
'
)
{
if
(
this
.
action
===
'
add
'
)
{
this
.
addInit
(
"
SR
"
)
this
.
addInit
(
"
SR
"
)
this
.
fileList
=
[]
this
.
fileList
=
[]
...
@@ -242,6 +247,7 @@
...
@@ -242,6 +247,7 @@
if
(
this
.
model
.
id
){
if
(
this
.
model
.
id
){
billMain
.
id
=
this
.
model
.
id
billMain
.
id
=
this
.
model
.
id
}
}
billMain
.
status
=
this
.
billStatus
return
{
return
{
info
:
JSON
.
stringify
(
billMain
),
info
:
JSON
.
stringify
(
billMain
),
rows
:
JSON
.
stringify
(
detailArr
),
rows
:
JSON
.
stringify
(
detailArr
),
...
...
Prev
1
2
Next
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