feat(productManage): 全网产品管理库存含义变更
This commit is contained in:
parent
ca5e83ee9e
commit
c148304822
|
@ -3486,6 +3486,12 @@ export const constantRoutes = [
|
|||
component: () => import('@/views/wholeNetwork/productManage/index'),
|
||||
meta: { title: '全网产品管理' }
|
||||
},
|
||||
{
|
||||
path: 'productManageSummary',
|
||||
name: 'WholeNetworkProductManageSummary',
|
||||
component: () => import('@/views/wholeNetwork/productManage/summary'),
|
||||
meta: { title: '全网产品统计' }
|
||||
},
|
||||
{
|
||||
path: 'productManageDetails',
|
||||
name: 'WholeNetworkProductManageDetails',
|
||||
|
|
|
@ -1,13 +1,18 @@
|
|||
<template>
|
||||
<div>
|
||||
<el-dialog
|
||||
title="修改库存"
|
||||
title="变动库存"
|
||||
:visible.sync="dialogVisible"
|
||||
width="600px"
|
||||
@close="handleClose"
|
||||
>
|
||||
<el-alert
|
||||
title="如果扣减库存,则输入负数。"
|
||||
type="error"
|
||||
show-icon
|
||||
/>
|
||||
<el-form ref="formRef" :rules="rules" :model="form" label-width="100px">
|
||||
<el-form-item required label="库存数量" prop="inventory">
|
||||
<el-form-item required label="变动数量" prop="inventory">
|
||||
<el-input v-model="form.inventory" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
@ -44,8 +49,7 @@ export default {
|
|||
},
|
||||
rules: {
|
||||
inventory: [
|
||||
{ required: true, message: '请输入库存数量', trigger: 'blur' },
|
||||
{ validator: this.validateInventory, trigger: 'blur' }
|
||||
{ required: true, message: '请输入库存数量', trigger: 'blur' }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -62,20 +66,14 @@ export default {
|
|||
},
|
||||
created() {
|
||||
this.form = {
|
||||
...this.inventoryInfo
|
||||
...this.inventoryInfo,
|
||||
inventory: ''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleClose() {
|
||||
this.dialogVisible = false
|
||||
},
|
||||
validateInventory(rule, value, callback) {
|
||||
if (value <= 0) {
|
||||
callback(new Error('库存数量不能小于0'))
|
||||
} else {
|
||||
callback()
|
||||
}
|
||||
},
|
||||
handleSubmit() {
|
||||
this.$refs.formRef.validate((valid) => {
|
||||
if (valid) {
|
||||
|
|
|
@ -73,17 +73,19 @@
|
|||
align="center"
|
||||
prop="sourceVal"
|
||||
label="来源系统"
|
||||
width="90px"
|
||||
/>
|
||||
<el-table-column
|
||||
align="center"
|
||||
prop="orderCode"
|
||||
label="来源订单号"
|
||||
width="200px"
|
||||
/>
|
||||
<el-table-column
|
||||
align="center"
|
||||
prop="changeNum"
|
||||
label="变动数量"
|
||||
min-width="180px"
|
||||
width="100px"
|
||||
/>
|
||||
<el-table-column
|
||||
align="center"
|
||||
|
@ -94,6 +96,7 @@
|
|||
align="center"
|
||||
prop="creationTime"
|
||||
label="创建时间"
|
||||
width="180px"
|
||||
/>
|
||||
|
||||
</el-table>
|
||||
|
|
|
@ -71,6 +71,15 @@
|
|||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<el-table-column prop="colsele" type="selection" width="55" />
|
||||
<el-table-column
|
||||
align="center"
|
||||
prop="cover"
|
||||
label="封面图"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<img :src="scope.row.cover" alt="" style="width: 50px; height: 50px;">
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
prop="wmsCode"
|
||||
|
@ -88,15 +97,7 @@
|
|||
prop="inventory"
|
||||
label="库存数量"
|
||||
/>
|
||||
<el-table-column
|
||||
align="center"
|
||||
prop="cover"
|
||||
label="封面图"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<img :src="scope.row.cover" alt="" style="width: 50px; height: 50px;">
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
align="center"
|
||||
prop="remark"
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
<template>
|
||||
<div>
|
||||
<el-empty description="开发中..." />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'WholeNetworkProductManageSummary'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
Loading…
Reference in New Issue