更新成本和仓库

This commit is contained in:
2023-12-13 09:18:36 +08:00
parent 4e26d49ff5
commit 91d269e1ce
34 changed files with 1796 additions and 151 deletions

View File

@@ -62,6 +62,7 @@ const tableProps = [
{
prop: 'code',
label: '物品编码',
width: 200
},
{
prop: 'spec',

View File

@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2023-11-03 16:37:06
* @LastEditors: zwq
* @LastEditTime: 2023-11-24 14:36:24
* @LastEditTime: 2023-12-06 15:31:06
* @Description:
-->
<template>
@@ -42,7 +42,7 @@
<span>{{ parseTime(scope.row.latestOutTime) }}</span>
</template>
</el-table-column>
<el-table-column label="操作" width="100">
<el-table-column label="操作" width="100" v-if="false">
<template v-slot="scope">
<el-button
size="mini"
@@ -134,16 +134,16 @@ export default {
name: 'search',
color: 'primary',
},
{
type: 'separate',
},
{
type: this.$auth.hasPermi('out-material:warehouse-realtime:create') ? 'button' : '',
btnName: '入库',
name: 'add',
color: 'primary',
plain: true,
},
// {
// type: 'separate',
// },
// {
// type: this.$auth.hasPermi('out-material:warehouse-realtime:create') ? 'button' : '',
// btnName: '入库',
// name: 'add',
// color: 'primary',
// plain: true,
// },
],
};
},

View File

@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2021-11-18 14:16:25
* @LastEditors: zwq
* @LastEditTime: 2023-11-23 16:07:43
* @LastEditTime: 2023-12-06 15:15:40
* @Description:
-->
<template>
@@ -41,21 +41,23 @@ const tableProps = [
{
prop: 'num',
label: '数量',
width: 50
},
{
prop: 'allowTime',
label: '允许留存时长(天)',
width: 150,
width: 130
},
{
prop: 'inTime',
label: '入库时间',
filter: parseTime,
width: 150
},
{
prop: 'leftTime',
label: '剩余留存时长(天)',
width: 150,
width: 130
},
{
prop: 'remark',

View File

@@ -16,7 +16,7 @@
<method-btn
v-if="tableBtn.length"
slot="handleBtn"
:width="140"
:width="70"
label="操作"
:method-list="tableBtn"
@clickBtn="handleClick" />
@@ -36,7 +36,7 @@
:dialogTitle="addOrEditTitle"
:dialogVisible="addOrUpdateVisible"
:before-close="handleCancel"
width="50%">
width="60%">
<add-or-update
ref="addOrUpdate"
@refreshDataList="successSubmit"></add-or-update>
@@ -99,7 +99,7 @@ const tableProps = [
prop: 'inTime',
label: '入库时间',
filter: parseTime,
minWidth: 100,
width: 150
},
{
prop: 'remark',
@@ -124,18 +124,18 @@ export default {
tableData: [],
tableProps,
tableBtn: [
this.$auth.hasPermi(`out-material:warehouse-realtime-location:query`)
? {
type: 'out',
btnName: '出库',
}
: undefined,
this.$auth.hasPermi(`out-material:warehouse-realtime-location:query`)
? {
type: 'in',
btnName: '入库',
}
: undefined,
// this.$auth.hasPermi(`out-material:warehouse-realtime-location:query`)
// ? {
// type: 'out',
// btnName: '出库',
// }
// : undefined,
// this.$auth.hasPermi(`out-material:warehouse-realtime-location:query`)
// ? {
// type: 'in',
// btnName: '入库',
// }
// : undefined,
this.$auth.hasPermi(`out-material:warehouse-realtime-location:query`)
? {
type: 'detail',