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
fa48c834
Commit
fa48c834
authored
May 18, 2022
by
季圣华
Browse files
优化单据中采购进度列的显示和隐藏逻辑
parent
f005d48f
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/SaleOrderList.vue
View file @
fa48c834
...
...
@@ -259,12 +259,18 @@
getCurrentSystemConfig
().
then
((
res
)
=>
{
if
(
res
.
code
===
200
&&
res
.
data
){
let
purchaseBySaleFlag
=
res
.
data
.
purchaseBySaleFlag
let
statusIndex
=
0
for
(
let
i
=
0
;
i
<
this
.
columns
.
length
;
i
++
){
if
(
this
.
columns
[
i
].
dataIndex
===
'
purchaseStatus
'
)
{
statusIndex
=
i
}
}
if
(
purchaseBySaleFlag
===
"
0
"
)
{
if
(
this
.
columns
.
length
===
1
0
)
{
this
.
columns
.
splice
(
8
,
1
)
if
(
statusIndex
>
0
)
{
this
.
columns
.
splice
(
statusIndex
,
1
)
}
}
else
{
if
(
this
.
columns
.
length
<
1
0
)
{
if
(
statusIndex
===
0
)
{
let
purchaseStatusObj
=
{
title
:
'
采购进度
'
,
dataIndex
:
'
purchaseStatus
'
,
width
:
70
,
align
:
"
center
"
,
scopedSlots
:
{
customRender
:
'
customRenderPurchaseStatus
'
}
}
...
...
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