优化安全库存,调整为每个仓库的安全库存

This commit is contained in:
季圣华 2021-10-29 19:52:38 +08:00
parent 72e3e31c4a
commit 1698b1fd8a
2 changed files with 16 additions and 10 deletions

View File

@ -168,7 +168,7 @@
{title: '单位', dataIndex: 'unit', width: '6%', {title: '单位', dataIndex: 'unit', width: '6%',
scopedSlots: { customRender: 'customRenderUnit' } scopedSlots: { customRender: 'customRenderUnit' }
}, },
{title: '安全存量', dataIndex: 'safetyStock', width: '5%'}, {title: '保质期', dataIndex: 'expiryNum', width: '4%'},
{title: '库存', dataIndex: 'stock', width: '5%'}, {title: '库存', dataIndex: 'stock', width: '5%'},
{title: '采购价', dataIndex: 'purchaseDecimal', width: '5%'}, {title: '采购价', dataIndex: 'purchaseDecimal', width: '5%'},
{title: '零售价', dataIndex: 'commodityDecimal', width: '5%'}, {title: '零售价', dataIndex: 'commodityDecimal', width: '5%'},

View File

@ -67,15 +67,15 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="安全存" data-step="5" data-title="安全存" <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="基础重" data-step="5" data-title="基础重"
data-intro="安全存量是指商品的最小库存临界量,当仓库中的库存小于这个值,在库存预警报表中可以查询出来,用于提醒补货"> data-intro="请填写基本单位对应的重量,用于计算按重量分摊费用时单据中各行商品分摊的费用成本">
<a-input placeholder="请输入安全存量" v-decorator.trim="[ 'safetyStock' ]" /> <a-input placeholder="请输入基础重量(kg)" v-decorator.trim="[ 'weight' ]" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="保质期天数" data-step="6" data-title="保质期天数" <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="保质期" data-step="6" data-title="保质期"
data-intro="保质期天数指的是商品的保质期,主要针对带生产日期的,此类商品一般有批号"> data-intro="保质期指的是商品的保质期(天),主要针对带生产日期的,此类商品一般有批号">
<a-input-number style="width: 100%" placeholder="请输入保质期天数" v-decorator.trim="[ 'expiryNum' ]" /> <a-input-number style="width: 100%" placeholder="请输入保质期(天)" v-decorator.trim="[ 'expiryNum' ]" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">
@ -227,7 +227,7 @@
</a-col> </a-col>
</a-row> </a-row>
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="3" tab="初始库存" forceRender> <a-tab-pane key="3" tab="库存数量" forceRender>
<j-editable-table <j-editable-table
ref="editableDepotTable" ref="editableDepotTable"
:loading="depotTable.loading" :loading="depotTable.loading"
@ -363,7 +363,13 @@
title: '仓库', key: 'name', width: '15%', type: FormTypes.normal 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.$nextTick(() => {
this.form.setFieldsValue(pick(this.model, 'name', 'standard', 'unit', 'unitId', 'model', 'color', 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('materialHeadModal')
autoJumpNextInput('materialDetailModal') autoJumpNextInput('materialDetailModal')
}); });