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