允许订单投产后变更BOM,更新仓储汇总页面
This commit is contained in:
@@ -10,18 +10,24 @@
|
||||
<div class="stat-label">待入库</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-col :span="4">
|
||||
<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="4">
|
||||
<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-card class="stat-card" @click.native="showDetail('变更BOM')">
|
||||
<div class="stat-number">{{ statistics.变更BOM }}</div>
|
||||
<div class="stat-label">变更BOM</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20" style="margin-top: 20px">
|
||||
<el-col :span="8">
|
||||
@@ -88,6 +94,7 @@ export default {
|
||||
待入库: 0,
|
||||
待出库: 0,
|
||||
可出库: 0,
|
||||
变更BOM: 0,
|
||||
补货中: 0,
|
||||
生产中: 0,
|
||||
待投产: 0,
|
||||
@@ -134,6 +141,9 @@ export default {
|
||||
// 可出库数据:待出库数据的基础上又库存的数量
|
||||
this.getAvailableOutStorage()
|
||||
|
||||
// 变更BOM数据:BOM变更记录中待审核的数量
|
||||
this.getBOMChange()
|
||||
|
||||
// 补货中数据:补货件查询组件中状态已到以外的订单数量
|
||||
this.getReplenishing()
|
||||
|
||||
@@ -222,6 +232,21 @@ export default {
|
||||
})
|
||||
},
|
||||
|
||||
// 获取变更BOM数据
|
||||
getBOMChange() {
|
||||
var param = []
|
||||
var Data = this.CreateData('11', 'BOM变更记录_查询', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
let count = 0
|
||||
response.data.forEach(item => {
|
||||
if (item.状态 === '待审核' || item.状态 === '审核中') {
|
||||
count++
|
||||
}
|
||||
})
|
||||
this.statistics.变更BOM = count
|
||||
})
|
||||
},
|
||||
|
||||
// 获取补货中数据
|
||||
getReplenishing() {
|
||||
let count = 0
|
||||
@@ -297,6 +322,9 @@ export default {
|
||||
case '可出库':
|
||||
this.getAvailableOutStorageDetail()
|
||||
break
|
||||
case '变更BOM':
|
||||
this.getBOMChangeDetail()
|
||||
break
|
||||
case '补货中':
|
||||
this.getReplenishingDetail()
|
||||
break
|
||||
@@ -369,6 +397,25 @@ export default {
|
||||
})
|
||||
},
|
||||
|
||||
// 获取变更BOM详情
|
||||
getBOMChangeDetail() {
|
||||
var param = []
|
||||
var Data = this.CreateData('11', 'BOM变更记录_查询', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
this.detailData = response.data.filter(item => 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: '120px', align: 'center' },
|
||||
{ prop: '状态', label: '状态', width: '100px', align: 'center' },
|
||||
{ prop: '申请人', label: '申请人', width: '100px', align: 'center' },
|
||||
{ prop: '申请日期', label: '申请日期', width: '150px', align: 'center' }
|
||||
]
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
|
||||
// 获取补货中详情
|
||||
getReplenishingDetail() {
|
||||
var param = []
|
||||
|
||||
Reference in New Issue
Block a user