更新BOM维护和仓储汇总页面
This commit is contained in:
@@ -4,25 +4,25 @@
|
||||
<div style="margin-top: 20px; margin-bottom: 20px">
|
||||
<h2 style="text-align: center; margin-bottom: 20px">仓储汇总</h2>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="8">
|
||||
<el-col :span="6">
|
||||
<el-card class="stat-card" @click.native="showDetail('待入库')">
|
||||
<div class="stat-number">{{ statistics.待入库 }}</div>
|
||||
<div class="stat-label">待入库</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-col :span="6">
|
||||
<el-card class="stat-card" @click.native="showDetail('待出库')">
|
||||
<div class="stat-number">{{ statistics.待出库 }}</div>
|
||||
<div class="stat-label">待出库</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-col :span="6">
|
||||
<el-card class="stat-card" @click.native="showDetail('可出库')">
|
||||
<div class="stat-number">{{ statistics.可出库 }}</div>
|
||||
<div class="stat-label">可出库</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-col :span="6">
|
||||
<el-card class="stat-card" @click.native="showDetail('变更BOM')">
|
||||
<div class="stat-number">{{ statistics.变更BOM }}</div>
|
||||
<div class="stat-label">变更BOM</div>
|
||||
@@ -30,25 +30,25 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20" style="margin-top: 20px">
|
||||
<el-col :span="8">
|
||||
<el-col :span="6">
|
||||
<el-card class="stat-card" @click.native="showDetail('补货中')">
|
||||
<div class="stat-number">{{ statistics.补货中 }}</div>
|
||||
<div class="stat-label">补货中</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-col :span="6">
|
||||
<el-card class="stat-card" @click.native="showDetail('生产中')">
|
||||
<div class="stat-number">{{ statistics.生产中 }}</div>
|
||||
<div class="stat-label">生产中</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-col :span="6">
|
||||
<el-card class="stat-card" @click.native="showDetail('待投产')">
|
||||
<div class="stat-number">{{ statistics.待投产 }}</div>
|
||||
<div class="stat-label">待投产</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-col :span="6">
|
||||
<el-card class="stat-card" @click.native="showDetail('采购中')">
|
||||
<div class="stat-number">{{ statistics.采购中 }}</div>
|
||||
<div class="stat-label">采购中</div>
|
||||
@@ -239,7 +239,7 @@ export default {
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
let count = 0
|
||||
response.data.forEach(item => {
|
||||
if (item.状态 === '待审核' || item.状态 === '审核中') {
|
||||
if (item.状态 !=='已入库') {
|
||||
count++
|
||||
}
|
||||
})
|
||||
@@ -402,15 +402,14 @@ export default {
|
||||
var param = []
|
||||
var Data = this.CreateData('11', 'BOM变更记录_查询', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
this.detailData = response.data.filter(item => item.状态 === '待审核' || item.状态 === '审核中')
|
||||
this.detailData = response.data.filter(item => item.状态 !== '已入库')
|
||||
this.detailColumns = [
|
||||
{ prop: '变更单号', label: '变更单号', width: '150px', align: 'center' },
|
||||
{ prop: '订单号', label: '订单号', width: '150px', align: 'center' },
|
||||
{ prop: '产品名称', label: '产品名称', width: '150px', align: 'center' },
|
||||
{ prop: '图号或型号', label: '图号或型号', width: '150px', align: 'center' },
|
||||
{ prop: '零件名称', label: '零件名称', width: '150px', align: 'center' },
|
||||
{ prop: '图号', label: '图号或型号', width: '150px', align: 'center' },
|
||||
{ prop: '变更类型', label: '变更类型', width: '120px', align: 'center' },
|
||||
{ prop: '状态', label: '状态', width: '100px', align: 'center' },
|
||||
{ prop: '申请人', label: '申请人', width: '100px', align: 'center' },
|
||||
{ prop: '申请日期', label: '申请日期', width: '150px', align: 'center' }
|
||||
{ prop: '数量', label: '数量', width: '100px', align: 'center' }
|
||||
]
|
||||
this.loading = false
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user