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
1458c721
Commit
1458c721
authored
Jun 18, 2021
by
季圣华
Browse files
订单单据改为只有未审核状态下才能删除
parent
74c87d8d
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/PurchaseOrderList.vue
View file @
1458c721
...
...
@@ -70,7 +70,7 @@
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleEdit(record)"
>
编辑
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() =>
h
andleDelete(record
.id
)"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() =>
myH
andleDelete(record)"
>
<a>
删除
</a>
</a-popconfirm>
</span>
...
...
@@ -179,7 +179,21 @@
},
methods
:
{
myHandleEdit
(
record
)
{
if
(
record
.
status
===
'
0
'
)
{
this
.
$refs
.
modalForm
.
action
=
"
edit
"
;
this
.
handleEdit
(
record
);
}
else
{
this
.
$message
.
warning
(
"
抱歉,只有未审核的单据才能编辑!
"
)
}
},
myHandleDelete
(
record
)
{
if
(
record
.
status
===
'
0
'
)
{
this
.
handleDelete
(
record
.
id
)
}
else
{
this
.
$message
.
warning
(
"
抱歉,只有未审核的单据才能删除!
"
)
}
}
}
}
</
script
>
...
...
jshERP-web/src/views/bill/SaleOrderList.vue
View file @
1458c721
...
...
@@ -70,7 +70,7 @@
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleEdit(record)"
>
编辑
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() =>
h
andleDelete(record
.id
)"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() =>
myH
andleDelete(record)"
>
<a>
删除
</a>
</a-popconfirm>
</span>
...
...
@@ -179,7 +179,21 @@
},
methods
:
{
myHandleEdit
(
record
)
{
if
(
record
.
status
===
'
0
'
)
{
this
.
$refs
.
modalForm
.
action
=
"
edit
"
;
this
.
handleEdit
(
record
);
}
else
{
this
.
$message
.
warning
(
"
抱歉,只有未审核的单据才能编辑!
"
)
}
},
myHandleDelete
(
record
)
{
if
(
record
.
status
===
'
0
'
)
{
this
.
handleDelete
(
record
.
id
)
}
else
{
this
.
$message
.
warning
(
"
抱歉,只有未审核的单据才能删除!
"
)
}
}
}
}
</
script
>
...
...
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