给商品和商品库存页面增加仓位货架列

This commit is contained in:
季圣华 2023-05-19 19:48:58 +08:00
parent 2e659c8a50
commit d616123cea
3 changed files with 11 additions and 3 deletions

View File

@ -269,6 +269,7 @@
{title: '零售价', dataIndex: 'commodityDecimal', width: 80},
{title: '销售价', dataIndex: 'wholesaleDecimal', width: 80},
{title: '最低售价', dataIndex: 'lowDecimal', width: 80},
{title: '仓位货架', dataIndex: 'position', width: 80},
{title: '备注', dataIndex: 'remark', width: 80},
{title: '状态', dataIndex: 'enabled', align: "center", width: 60,
scopedSlots: { customRender: 'customRenderEnabled' }

View File

@ -116,6 +116,12 @@
</a-tooltip>
</a-form-item>
</a-col>
<a-col :md="6" :sm="24">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="仓位货架" data-step="11" data-title="仓位货架"
data-intro="仓位货架指的是仓库中的仓位和货架号,主要适用于仓库较大的场景,方便查找商品的准确位置">
<a-input style="width: 100%" placeholder="请输入仓位货架" v-decorator.trim="[ 'position' ]" />
</a-form-item>
</a-col>
<a-col :md="6" :sm="24" v-if="!model.id">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="多属性" data-step="11" data-title="多属性"
data-intro="多属性是针对的sku商品比如服装、鞋帽行业此处开关如果启用就可以在下方进行多sku的配置配置具体的颜色、尺码之类的组合">
@ -461,7 +467,7 @@
}
this.$nextTick(() => {
this.form.setFieldsValue(pick(this.model, 'name', 'standard', 'unit', 'unitId', 'model', 'color',
'categoryId','enableSerialNumber','enableBatchNumber','expiryNum','weight','remark','mfrs','otherField1','otherField2','otherField3'))
'categoryId','enableSerialNumber','enableBatchNumber','position','expiryNum','weight','remark','mfrs','otherField1','otherField2','otherField3'))
autoJumpNextInput('materialHeadModal')
autoJumpNextInput('materialDetailModal')
});

View File

@ -165,8 +165,9 @@
{title: '名称', dataIndex: 'name', width: 140, ellipsis:true},
{title: '规格', dataIndex: 'standard', width: 100, ellipsis:true},
{title: '型号', dataIndex: 'model', width: 100, ellipsis:true},
{title: '颜色', dataIndex: 'color', width: 80, ellipsis:true},
{title: '类别', dataIndex: 'categoryName', width: 80, ellipsis:true},
{title: '颜色', dataIndex: 'color', width: 60, ellipsis:true},
{title: '类别', dataIndex: 'categoryName', width: 60, ellipsis:true},
{title: '仓位货架', dataIndex: 'position', width: 60, ellipsis:true},
{title: '单位', dataIndex: 'unitName', width: 60, ellipsis:true},
{title: '单价', dataIndex: 'purchaseDecimal', sorter: (a, b) => a.purchaseDecimal - b.purchaseDecimal, width: 60},
{title: '初始库存', dataIndex: 'initialStock', sorter: (a, b) => a.initialStock - b.initialStock, width: 60},