|
|
|
@ -91,16 +91,89 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="chartBox chartBox2">
|
|
|
|
|
<div class="title">库存统计</div>
|
|
|
|
|
<div class="title">物料安装情况(已完成)</div>
|
|
|
|
|
<div class="chart">
|
|
|
|
|
<Chart ref="chart2"></Chart>
|
|
|
|
|
<div class="whiteTable">
|
|
|
|
|
<el-table
|
|
|
|
|
:cell-style="{textAlign:'center'}"
|
|
|
|
|
:data="tableData"
|
|
|
|
|
:header-cell-style="{textAlign:'center'}"
|
|
|
|
|
:max-height="19.13 * vw"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="序号"
|
|
|
|
|
type="index"
|
|
|
|
|
width="50"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="工单编号"
|
|
|
|
|
prop="planCode"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="物料名称"
|
|
|
|
|
prop="materialName"
|
|
|
|
|
width="100"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="计划"
|
|
|
|
|
prop="planAmount"
|
|
|
|
|
width="100"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="实际"
|
|
|
|
|
prop="completeAmount"
|
|
|
|
|
width="100"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="差异"
|
|
|
|
|
prop="difference"
|
|
|
|
|
width="100"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.planAmount - scope.row.completeAmount }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="交付时间"
|
|
|
|
|
prop="planDeliveryDate"
|
|
|
|
|
width="150"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="操作"
|
|
|
|
|
width="120"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
size="small"
|
|
|
|
|
type="text"
|
|
|
|
|
>
|
|
|
|
|
条码打印
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="small"
|
|
|
|
|
type="text"
|
|
|
|
|
@click="getDetail(scope)"
|
|
|
|
|
>
|
|
|
|
|
明细
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="roundBorder" style="top: 72%;left: 1.2%;">
|
|
|
|
|
<div class="roundBorder" style="top: 32%;left: 51%;">
|
|
|
|
|
<el-button :disabled="nowNum2 <= 1" circle icon="el-icon-back" size="mini" @click="pre2"></el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="roundBorder" style="top: 72%;left: 49%;">
|
|
|
|
|
<div class="roundBorder" style="top: 32%;left: 98.8%;">
|
|
|
|
|
<el-button :disabled="nowNum2 >= totalNum2" circle icon="el-icon-right" size="mini" @click="next2"></el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -195,18 +268,107 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="roundBorder" style="top: 72%;left: 1.2%;">
|
|
|
|
|
<el-button :disabled="nowNum2 <= 1" circle icon="el-icon-back" size="mini" @click="pre2"></el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="roundBorder" style="top: 72%;left: 49%;">
|
|
|
|
|
<el-button :disabled="nowNum2 >= totalNum2" circle icon="el-icon-right" size="mini" @click="next2"></el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="chartBox chartBox4">
|
|
|
|
|
<div class="title">当日产量</div>
|
|
|
|
|
<div class="title">物料安装情况(未完成)</div>
|
|
|
|
|
<div class="chart">
|
|
|
|
|
<Chart ref="chart4"></Chart>
|
|
|
|
|
<div class="whiteTable">
|
|
|
|
|
<el-table
|
|
|
|
|
:cell-style="{textAlign:'center'}"
|
|
|
|
|
:data="tableData"
|
|
|
|
|
:header-cell-style="{textAlign:'center'}"
|
|
|
|
|
:max-height="19.13 * vw"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="序号"
|
|
|
|
|
type="index"
|
|
|
|
|
width="50"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="工单编号"
|
|
|
|
|
prop="planCode"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="物料名称"
|
|
|
|
|
prop="materialName"
|
|
|
|
|
width="100"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="计划"
|
|
|
|
|
prop="planAmount"
|
|
|
|
|
width="100"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="实际"
|
|
|
|
|
prop="completeAmount"
|
|
|
|
|
width="100"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="差异"
|
|
|
|
|
prop="difference"
|
|
|
|
|
width="100"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.planAmount - scope.row.completeAmount }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="交付时间"
|
|
|
|
|
prop="planDeliveryDate"
|
|
|
|
|
width="150"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="操作"
|
|
|
|
|
width="120"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
size="small"
|
|
|
|
|
type="text"
|
|
|
|
|
>
|
|
|
|
|
条码打印
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="small"
|
|
|
|
|
type="text"
|
|
|
|
|
@click="getDetail(scope)"
|
|
|
|
|
>
|
|
|
|
|
明细
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="roundBorder" style="top: 72%;left: 51%;">
|
|
|
|
|
<el-button :disabled="nowNum2 <= 1" circle icon="el-icon-back" size="mini" @click="pre2"></el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="roundBorder" style="top: 72%;left: 98.8%;">
|
|
|
|
|
<el-button :disabled="nowNum2 >= totalNum2" circle icon="el-icon-right" size="mini" @click="next2"></el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="bottom">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-button type="primary">首页</el-button>
|
|
|
|
|
<el-button type="success">键盘</el-button>
|
|
|
|
|
<el-button type="success">SOP预览</el-button>
|
|
|
|
|
<el-button type="info">最小化</el-button>
|
|
|
|
|
<el-button type="danger">退出</el-button>
|
|
|
|
|
</el-row>
|
|
|
|
@ -250,6 +412,16 @@
|
|
|
|
|
prop="materialName"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="可用库存数量"
|
|
|
|
|
prop="materialName"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="占用库存数量"
|
|
|
|
|
prop="materialName"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="领取数量"
|
|
|
|
|
prop="planAmount"
|
|
|
|
@ -317,6 +489,10 @@ export default {
|
|
|
|
|
totalNum1: 0,
|
|
|
|
|
nowNum2: 1,
|
|
|
|
|
totalNum2: 0,
|
|
|
|
|
nowNum3: 1,
|
|
|
|
|
totalNum3: 0,
|
|
|
|
|
nowNum4: 1,
|
|
|
|
|
totalNum4: 0,
|
|
|
|
|
planId: null,
|
|
|
|
|
materialBomId: null,
|
|
|
|
|
vw: (document.documentElement.clientWidth || document.body.clientWidth) / 100,
|
|
|
|
@ -530,6 +706,34 @@ export default {
|
|
|
|
|
this.totalNum2 = Math.ceil(res.total / 5)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
next3() {
|
|
|
|
|
this.nowNum3 += 1
|
|
|
|
|
getProductPlanDetails({pageNum: this.nowNum3, pageSize: 5, planId: this.planId}).then(res => {
|
|
|
|
|
this.tableData1 = res.rows
|
|
|
|
|
this.totalNum3 = Math.ceil(res.total / 5)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
pre3() {
|
|
|
|
|
this.nowNum3 -= 1
|
|
|
|
|
getProductPlanDetails({pageNum: this.nowNum3, pageSize: 5, planId: this.planId}).then(res => {
|
|
|
|
|
this.tableData1 = res.rows
|
|
|
|
|
this.totalNum3 = Math.ceil(res.total / 5)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
next4() {
|
|
|
|
|
this.nowNum4 += 1
|
|
|
|
|
getProductPlanDetails({pageNum: this.nowNum4, pageSize: 5, planId: this.planId}).then(res => {
|
|
|
|
|
this.tableData1 = res.rows
|
|
|
|
|
this.totalNum4 = Math.ceil(res.total / 5)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
pre4() {
|
|
|
|
|
this.nowNum4 -= 1
|
|
|
|
|
getProductPlanDetails({pageNum: this.nowNum4, pageSize: 5, planId: this.planId}).then(res => {
|
|
|
|
|
this.tableData1 = res.rows
|
|
|
|
|
this.totalNum4 = Math.ceil(res.total / 5)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 开始/继续计划
|
|
|
|
|
planExecute(e) {
|
|
|
|
|
if (e.planDetailStatus === '1') {
|
|
|
|
|