更新BOM维护和仓储汇总页面
This commit is contained in:
@@ -1360,6 +1360,7 @@ export default {
|
|||||||
const NumberData4 = []
|
const NumberData4 = []
|
||||||
const NumberData5 = []
|
const NumberData5 = []
|
||||||
const NumberData6 = []
|
const NumberData6 = []
|
||||||
|
const NumberData7 = []
|
||||||
this.multipleSelection_variable1 = this.multipleSelection1
|
this.multipleSelection_variable1 = this.multipleSelection1
|
||||||
this.multipleSelection1 = []
|
this.multipleSelection1 = []
|
||||||
for (let i = 0; i < this.multipleSelection_variable1.length; i++) {
|
for (let i = 0; i < this.multipleSelection_variable1.length; i++) {
|
||||||
@@ -1370,6 +1371,7 @@ export default {
|
|||||||
NumberData4[i] = parseInt(this.multipleSelection_variable1[i].物料流水号)
|
NumberData4[i] = parseInt(this.multipleSelection_variable1[i].物料流水号)
|
||||||
NumberData5[i] = parseInt(this.multipleSelection_variable1[i].零件类型)
|
NumberData5[i] = parseInt(this.multipleSelection_variable1[i].零件类型)
|
||||||
NumberData6[i] = parseInt(this.multipleSelection_variable1[i].订单流水号)
|
NumberData6[i] = parseInt(this.multipleSelection_variable1[i].订单流水号)
|
||||||
|
NumberData7[i] = this.multipleSelection_variable1[i].数量
|
||||||
}
|
}
|
||||||
var param = []
|
var param = []
|
||||||
param[0] = ['流水号组', NumberData]
|
param[0] = ['流水号组', NumberData]
|
||||||
@@ -1379,6 +1381,7 @@ export default {
|
|||||||
param[4] = ['物料流水号组', NumberData4]
|
param[4] = ['物料流水号组', NumberData4]
|
||||||
param[5] = ['零件类型组', NumberData5]
|
param[5] = ['零件类型组', NumberData5]
|
||||||
param[6] = ['订单流水号组', NumberData6]
|
param[6] = ['订单流水号组', NumberData6]
|
||||||
|
param[7] = ['数量组', NumberData7]
|
||||||
var Data = this.CreateData('12', 'PDM_零件明细表_基本件_删除数据_全部', param)
|
var Data = this.CreateData('12', 'PDM_零件明细表_基本件_删除数据_全部', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data[0].result === '1') {
|
if (response.data[0].result === '1') {
|
||||||
|
|||||||
@@ -4,25 +4,25 @@
|
|||||||
<div style="margin-top: 20px; margin-bottom: 20px">
|
<div style="margin-top: 20px; margin-bottom: 20px">
|
||||||
<h2 style="text-align: center; margin-bottom: 20px">仓储汇总</h2>
|
<h2 style="text-align: center; margin-bottom: 20px">仓储汇总</h2>
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="8">
|
<el-col :span="6">
|
||||||
<el-card class="stat-card" @click.native="showDetail('待入库')">
|
<el-card class="stat-card" @click.native="showDetail('待入库')">
|
||||||
<div class="stat-number">{{ statistics.待入库 }}</div>
|
<div class="stat-number">{{ statistics.待入库 }}</div>
|
||||||
<div class="stat-label">待入库</div>
|
<div class="stat-label">待入库</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4">
|
<el-col :span="6">
|
||||||
<el-card class="stat-card" @click.native="showDetail('待出库')">
|
<el-card class="stat-card" @click.native="showDetail('待出库')">
|
||||||
<div class="stat-number">{{ statistics.待出库 }}</div>
|
<div class="stat-number">{{ statistics.待出库 }}</div>
|
||||||
<div class="stat-label">待出库</div>
|
<div class="stat-label">待出库</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4">
|
<el-col :span="6">
|
||||||
<el-card class="stat-card" @click.native="showDetail('可出库')">
|
<el-card class="stat-card" @click.native="showDetail('可出库')">
|
||||||
<div class="stat-number">{{ statistics.可出库 }}</div>
|
<div class="stat-number">{{ statistics.可出库 }}</div>
|
||||||
<div class="stat-label">可出库</div>
|
<div class="stat-label">可出库</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="6">
|
||||||
<el-card class="stat-card" @click.native="showDetail('变更BOM')">
|
<el-card class="stat-card" @click.native="showDetail('变更BOM')">
|
||||||
<div class="stat-number">{{ statistics.变更BOM }}</div>
|
<div class="stat-number">{{ statistics.变更BOM }}</div>
|
||||||
<div class="stat-label">变更BOM</div>
|
<div class="stat-label">变更BOM</div>
|
||||||
@@ -30,25 +30,25 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="20" style="margin-top: 20px">
|
<el-row :gutter="20" style="margin-top: 20px">
|
||||||
<el-col :span="8">
|
<el-col :span="6">
|
||||||
<el-card class="stat-card" @click.native="showDetail('补货中')">
|
<el-card class="stat-card" @click.native="showDetail('补货中')">
|
||||||
<div class="stat-number">{{ statistics.补货中 }}</div>
|
<div class="stat-number">{{ statistics.补货中 }}</div>
|
||||||
<div class="stat-label">补货中</div>
|
<div class="stat-label">补货中</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4">
|
<el-col :span="6">
|
||||||
<el-card class="stat-card" @click.native="showDetail('生产中')">
|
<el-card class="stat-card" @click.native="showDetail('生产中')">
|
||||||
<div class="stat-number">{{ statistics.生产中 }}</div>
|
<div class="stat-number">{{ statistics.生产中 }}</div>
|
||||||
<div class="stat-label">生产中</div>
|
<div class="stat-label">生产中</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4">
|
<el-col :span="6">
|
||||||
<el-card class="stat-card" @click.native="showDetail('待投产')">
|
<el-card class="stat-card" @click.native="showDetail('待投产')">
|
||||||
<div class="stat-number">{{ statistics.待投产 }}</div>
|
<div class="stat-number">{{ statistics.待投产 }}</div>
|
||||||
<div class="stat-label">待投产</div>
|
<div class="stat-label">待投产</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="6">
|
||||||
<el-card class="stat-card" @click.native="showDetail('采购中')">
|
<el-card class="stat-card" @click.native="showDetail('采购中')">
|
||||||
<div class="stat-number">{{ statistics.采购中 }}</div>
|
<div class="stat-number">{{ statistics.采购中 }}</div>
|
||||||
<div class="stat-label">采购中</div>
|
<div class="stat-label">采购中</div>
|
||||||
@@ -239,7 +239,7 @@ export default {
|
|||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
let count = 0
|
let count = 0
|
||||||
response.data.forEach(item => {
|
response.data.forEach(item => {
|
||||||
if (item.状态 === '待审核' || item.状态 === '审核中') {
|
if (item.状态 !=='已入库') {
|
||||||
count++
|
count++
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -402,15 +402,14 @@ export default {
|
|||||||
var param = []
|
var param = []
|
||||||
var Data = this.CreateData('11', 'BOM变更记录_查询', param)
|
var Data = this.CreateData('11', 'BOM变更记录_查询', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
this.detailData = response.data.filter(item => item.状态 === '待审核' || item.状态 === '审核中')
|
this.detailData = response.data.filter(item => item.状态 !== '已入库')
|
||||||
this.detailColumns = [
|
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: '150px', align: 'center' },
|
||||||
{ prop: '变更类型', label: '变更类型', width: '120px', align: 'center' },
|
{ prop: '变更类型', label: '变更类型', width: '120px', align: 'center' },
|
||||||
{ prop: '状态', label: '状态', width: '100px', align: 'center' },
|
{ prop: '数量', label: '数量', width: '100px', align: 'center' }
|
||||||
{ prop: '申请人', label: '申请人', width: '100px', align: 'center' },
|
|
||||||
{ prop: '申请日期', label: '申请日期', width: '150px', align: 'center' }
|
|
||||||
]
|
]
|
||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user