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
33216e29
"...src/main/git@ustchcs.com:gujinli1118/eladmin.git" did not exist on "3694add6c186c0b26ddbea160a0929bc3296ae3e"
Commit
33216e29
authored
Aug 11, 2021
by
季圣华
Browse files
商品列表的单位优化
parent
a8c31414
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/material/MaterialList.vue
View file @
33216e29
...
@@ -93,6 +93,10 @@
...
@@ -93,6 +93,10 @@
<a>
删除
</a>
<a>
删除
</a>
</a-popconfirm>
</a-popconfirm>
</span>
</span>
<span
slot=
"customRenderUnit"
slot-scope=
"text, record"
>
{{text?text:record.unitName}}
<a-tag
v-if=
"record.sku"
>
SKU
</a-tag>
</span>
<
template
slot=
"customRenderEnabled"
slot-scope=
"enabled"
>
<
template
slot=
"customRenderEnabled"
slot-scope=
"enabled"
>
<a-tag
v-if=
"enabled"
color=
"green"
>
启用
</a-tag>
<a-tag
v-if=
"enabled"
color=
"green"
>
启用
</a-tag>
<a-tag
v-if=
"!enabled"
color=
"orange"
>
禁用
</a-tag>
<a-tag
v-if=
"!enabled"
color=
"orange"
>
禁用
</a-tag>
...
@@ -165,15 +169,8 @@
...
@@ -165,15 +169,8 @@
{
title
:
'
颜色
'
,
dataIndex
:
'
color
'
,
width
:
50
},
{
title
:
'
颜色
'
,
dataIndex
:
'
color
'
,
width
:
50
},
{
title
:
'
类别
'
,
dataIndex
:
'
categoryName
'
,
width
:
80
},
{
title
:
'
类别
'
,
dataIndex
:
'
categoryName
'
,
width
:
80
},
{
title
:
'
扩展信息
'
,
dataIndex
:
'
materialOther
'
,
width
:
100
},
{
title
:
'
扩展信息
'
,
dataIndex
:
'
materialOther
'
,
width
:
100
},
{
{
title
:
'
单位
'
,
dataIndex
:
'
unit
'
,
width
:
100
,
title
:
'
单位
'
,
dataIndex
:
'
unit
'
,
width
:
100
,
customRender
:
function
(
text
,
record
,
index
)
{
scopedSlots
:
{
customRender
:
'
customRenderUnit
'
}
if
(
text
)
{
let
showSku
=
record
.
sku
?
'
[sku]
'
:
''
return
text
+
showSku
;
}
else
{
return
record
.
unitName
;
}
}
},
},
{
title
:
'
安全存量
'
,
dataIndex
:
'
safetyStock
'
,
width
:
80
},
{
title
:
'
安全存量
'
,
dataIndex
:
'
safetyStock
'
,
width
:
80
},
{
title
:
'
库存
'
,
dataIndex
:
'
stock
'
,
width
:
70
},
{
title
:
'
库存
'
,
dataIndex
:
'
stock
'
,
width
:
70
},
...
...
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