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
d1f26c20
Commit
d1f26c20
authored
Sep 26, 2022
by
季圣华
Browse files
将销售订单改为默认不显示采购状态
parent
6aba675d
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/SaleOrderList.vue
View file @
d1f26c20
...
...
@@ -242,17 +242,18 @@
},
methods
:
{
getSystemConfig
()
{
let
statusIndex
=
0
for
(
let
i
=
0
;
i
<
this
.
columns
.
length
;
i
++
){
if
(
this
.
columns
[
i
].
dataIndex
===
'
purchaseStatus
'
)
{
statusIndex
=
i
}
}
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
(
statusIndex
>
0
)
{
//移除采购进度列
this
.
columns
.
splice
(
statusIndex
,
1
)
}
}
else
{
...
...
@@ -260,9 +261,15 @@
let
purchaseStatusObj
=
{
title
:
'
采购进度
'
,
dataIndex
:
'
purchaseStatus
'
,
width
:
70
,
align
:
"
center
"
,
scopedSlots
:
{
customRender
:
'
customRenderPurchaseStatus
'
}
}
this
.
columns
.
splice
(
8
,
0
,
purchaseStatusObj
)
//添加采购进度列
this
.
columns
.
splice
(
statusIndex
-
1
,
0
,
purchaseStatusObj
)
}
}
}
else
{
if
(
statusIndex
>
0
)
{
//移除采购进度列
this
.
columns
.
splice
(
statusIndex
,
1
)
}
}
})
},
...
...
jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue
View file @
d1f26c20
...
...
@@ -211,7 +211,7 @@
prefixNo
:
'
CGDD
'
,
fileList
:[],
rowCanEdit
:
true
,
purchaseBySaleFlag
:
tru
e
,
purchaseBySaleFlag
:
fals
e
,
model
:
{},
labelCol
:
{
xs
:
{
span
:
24
},
...
...
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