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
1698b1fd
Commit
1698b1fd
authored
Oct 29, 2021
by
季圣华
Browse files
优化安全库存,调整为每个仓库的安全库存
parent
72e3e31c
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/material/MaterialList.vue
View file @
1698b1fd
...
...
@@ -168,7 +168,7 @@
{
title
:
'
单位
'
,
dataIndex
:
'
unit
'
,
width
:
'
6%
'
,
scopedSlots
:
{
customRender
:
'
customRenderUnit
'
}
},
{
title
:
'
安全存量
'
,
dataIndex
:
'
safetyStock
'
,
width
:
'
5
%
'
},
{
title
:
'
保质期
'
,
dataIndex
:
'
expiryNum
'
,
width
:
'
4
%
'
},
{
title
:
'
库存
'
,
dataIndex
:
'
stock
'
,
width
:
'
5%
'
},
{
title
:
'
采购价
'
,
dataIndex
:
'
purchaseDecimal
'
,
width
:
'
5%
'
},
{
title
:
'
零售价
'
,
dataIndex
:
'
commodityDecimal
'
,
width
:
'
5%
'
},
...
...
jshERP-web/src/views/material/modules/MaterialModal.vue
View file @
1698b1fd
...
...
@@ -67,15 +67,15 @@
</a-form-item>
</a-col>
<a-col
:md=
"6"
:sm=
"24"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"
安全存
量"
data-step=
"5"
data-title=
"
安全存
量"
data-intro=
"
安全存量是指商品的最小库存临界量,当仓库中的库存小于这个值,在库存预警报表中可以查询出来,用于提醒补货
"
>
<a-input
placeholder=
"请输入
安全存量
"
v-decorator.trim=
"[ '
safetyStock
' ]"
/>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"
基础重
量"
data-step=
"5"
data-title=
"
基础重
量"
data-intro=
"
请填写基本单位对应的重量,用于计算按重量分摊费用时单据中各行商品分摊的费用成本
"
>
<a-input
placeholder=
"请输入
基础重量(kg)
"
v-decorator.trim=
"[ '
weight
' ]"
/>
</a-form-item>
</a-col>
<a-col
:md=
"6"
:sm=
"24"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"保质期
天数
"
data-step=
"6"
data-title=
"保质期
天数
"
data-intro=
"保质期
天数
指的是商品的保质期,主要针对带生产日期的,此类商品一般有批号"
>
<a-input-number
style=
"width: 100%"
placeholder=
"请输入保质期
天数
"
v-decorator.trim=
"[ 'expiryNum' ]"
/>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"保质期"
data-step=
"6"
data-title=
"保质期"
data-intro=
"保质期指的是商品的保质期
(天)
,主要针对带生产日期的,此类商品一般有批号"
>
<a-input-number
style=
"width: 100%"
placeholder=
"请输入保质期
(天)
"
v-decorator.trim=
"[ 'expiryNum' ]"
/>
</a-form-item>
</a-col>
<a-col
:md=
"6"
:sm=
"24"
>
...
...
@@ -227,7 +227,7 @@
</a-col>
</a-row>
</a-tab-pane>
<a-tab-pane
key=
"3"
tab=
"
初始
库存"
forceRender
>
<a-tab-pane
key=
"3"
tab=
"库存
数量
"
forceRender
>
<j-editable-table
ref=
"editableDepotTable"
:loading=
"depotTable.loading"
...
...
@@ -363,7 +363,13 @@
title
:
'
仓库
'
,
key
:
'
name
'
,
width
:
'
15%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
库存数量
'
,
key
:
'
initStock
'
,
width
:
'
15%
'
,
type
:
FormTypes
.
input
,
defaultValue
:
''
,
placeholder
:
'
请输入${title}
'
title
:
'
期初库存数量
'
,
key
:
'
initStock
'
,
width
:
'
15%
'
,
type
:
FormTypes
.
input
,
defaultValue
:
''
,
placeholder
:
'
请输入${title}
'
},
{
title
:
'
最低库存数量
'
,
key
:
'
lowSafeStock
'
,
width
:
'
15%
'
,
type
:
FormTypes
.
input
,
defaultValue
:
''
,
placeholder
:
'
请输入${title}
'
},
{
title
:
'
最高库存数量
'
,
key
:
'
highSafeStock
'
,
width
:
'
15%
'
,
type
:
FormTypes
.
input
,
defaultValue
:
''
,
placeholder
:
'
请输入${title}
'
}
]
},
...
...
@@ -432,7 +438,7 @@
}
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
(
pick
(
this
.
model
,
'
name
'
,
'
standard
'
,
'
unit
'
,
'
unitId
'
,
'
model
'
,
'
color
'
,
'
categoryId
'
,
'
enableSerialNumber
'
,
'
enableBatchNumber
'
,
'
expiryNum
'
,
'
safetyStock
'
,
'
remark
'
,
'
mfrs
'
,
'
otherField1
'
,
'
otherField2
'
,
'
otherField3
'
))
'
categoryId
'
,
'
enableSerialNumber
'
,
'
enableBatchNumber
'
,
'
expiryNum
'
,
'
weight
'
,
'
remark
'
,
'
mfrs
'
,
'
otherField1
'
,
'
otherField2
'
,
'
otherField3
'
))
autoJumpNextInput
(
'
materialHeadModal
'
)
autoJumpNextInput
(
'
materialDetailModal
'
)
});
...
...
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