|
|
@ -5,26 +5,33 @@
|
|
|
|
<div class="chartBox chartBox1">
|
|
|
|
<div class="chartBox chartBox1">
|
|
|
|
<div class="title">工单信息</div>
|
|
|
|
<div class="title">工单信息</div>
|
|
|
|
<div class="chart">
|
|
|
|
<div class="chart">
|
|
|
|
<div class="form1">
|
|
|
|
<div class="form">
|
|
|
|
<el-form label-position="right" label-width="80px" :model="form1">
|
|
|
|
<el-form :model="form" label-position="right" label-width="80px" size="mini">
|
|
|
|
|
|
|
|
<el-form-item label="明细编号">
|
|
|
|
|
|
|
|
<el-input v-model="form.planDetailCode" ></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="工单编号">
|
|
|
|
<el-form-item label="工单编号">
|
|
|
|
<el-input v-model="form1.name"></el-input>
|
|
|
|
<el-input v-model="form.planCode"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="物料编号">
|
|
|
|
<el-form-item label="物料编号">
|
|
|
|
<el-input v-model="form1.region"></el-input>
|
|
|
|
<el-input v-model="form.materialId"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="物料名称">
|
|
|
|
<el-form-item label="物料名称">
|
|
|
|
<el-input v-model="form1.type"></el-input>
|
|
|
|
<el-input v-model="form.materialName"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="扫码时间">
|
|
|
|
|
|
|
|
<el-input v-model="form1.type"></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="产品型号">
|
|
|
|
<el-form-item label="状态">
|
|
|
|
<el-input v-model="form1.type"></el-input>
|
|
|
|
<el-input v-model="form.planDetailStatus"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<!-- <el-form-item label="扫码时间">-->
|
|
|
|
|
|
|
|
<!-- <el-input v-model="form.materialId1"></el-input>-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<!-- <el-form-item label="产品型号">-->
|
|
|
|
|
|
|
|
<!-- <el-input v-model="form.materialId1"></el-input>-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div style="text-align: center">
|
|
|
|
<div style="text-align: center">
|
|
|
|
<el-button type="primary">图纸下发</el-button>
|
|
|
|
<el-button type="success">图纸下发</el-button>
|
|
|
|
|
|
|
|
<el-button type="primary" @click="accomplishPlan">完成</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -55,11 +62,14 @@
|
|
|
|
<div class="chart">
|
|
|
|
<div class="chart">
|
|
|
|
<div class="whiteTable">
|
|
|
|
<div class="whiteTable">
|
|
|
|
<el-table
|
|
|
|
<el-table
|
|
|
|
:data="tableData"
|
|
|
|
ref="table1"
|
|
|
|
style="width: 100%"
|
|
|
|
|
|
|
|
max-height="19.13vw"
|
|
|
|
|
|
|
|
:cell-style="{textAlign:'center'}"
|
|
|
|
:cell-style="{textAlign:'center'}"
|
|
|
|
|
|
|
|
:data="tableData"
|
|
|
|
:header-cell-style="{textAlign:'center'}"
|
|
|
|
:header-cell-style="{textAlign:'center'}"
|
|
|
|
|
|
|
|
highlight-current-row
|
|
|
|
|
|
|
|
max-height="19.13vw"
|
|
|
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
|
|
|
@current-change="getOrderInfo"
|
|
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
@ -69,31 +79,40 @@
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
prop="workOrderNumber"
|
|
|
|
|
|
|
|
label="工单编号"
|
|
|
|
label="工单编号"
|
|
|
|
|
|
|
|
prop="planCode"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
label="物料名称"
|
|
|
|
|
|
|
|
prop="materialName"
|
|
|
|
|
|
|
|
width="100"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
prop="planNum"
|
|
|
|
|
|
|
|
label="计划"
|
|
|
|
label="计划"
|
|
|
|
|
|
|
|
prop="planAmount"
|
|
|
|
width="80"
|
|
|
|
width="80"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
prop="realNum"
|
|
|
|
|
|
|
|
label="实际"
|
|
|
|
label="实际"
|
|
|
|
|
|
|
|
prop="completeAmount"
|
|
|
|
width="80"
|
|
|
|
width="80"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
prop="quantityNum"
|
|
|
|
|
|
|
|
label="差异"
|
|
|
|
label="差异"
|
|
|
|
|
|
|
|
prop="difference"
|
|
|
|
width="80"
|
|
|
|
width="80"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{ scope.row.planAmount - scope.row.completeAmount }}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
prop="startTime"
|
|
|
|
label="交付时间"
|
|
|
|
label="开始时间"
|
|
|
|
prop="planDeliveryDate"
|
|
|
|
width="200"
|
|
|
|
width="200"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
@ -102,24 +121,42 @@
|
|
|
|
width="120"
|
|
|
|
width="120"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
<el-popconfirm
|
|
|
|
size="small"
|
|
|
|
confirm-button-text='是'
|
|
|
|
|
|
|
|
cancel-button-text='否'
|
|
|
|
|
|
|
|
icon="el-icon-info"
|
|
|
|
|
|
|
|
v-if="scope.row.completeAmount === 0"
|
|
|
|
|
|
|
|
icon-color="red"
|
|
|
|
|
|
|
|
@confirm="startNextProduction(scope.row)"
|
|
|
|
|
|
|
|
title="确定开始计划吗?"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
开始
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
slot="reference">开始</el-button>
|
|
|
|
|
|
|
|
</el-popconfirm>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-popconfirm
|
|
|
|
|
|
|
|
confirm-button-text='是'
|
|
|
|
|
|
|
|
cancel-button-text='否'
|
|
|
|
|
|
|
|
icon="el-icon-info"
|
|
|
|
|
|
|
|
v-if="scope.row.completeAmount !== 0 && scope.row.completeAmount < scope.row.planAmount"
|
|
|
|
|
|
|
|
icon-color="red"
|
|
|
|
|
|
|
|
@confirm="startNextProduction(scope.row)"
|
|
|
|
|
|
|
|
title="确定继续计划吗?"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
退库
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
slot="reference">继续</el-button>
|
|
|
|
|
|
|
|
</el-popconfirm>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
style="color: #f56c6c"
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
style="margin-left: 4px"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
删除
|
|
|
|
退库
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
@ -128,6 +165,15 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<div class="roundBorder" style="top: 72%;left: 1.2%;">
|
|
|
|
|
|
|
|
<el-button :disabled="nowNum1 <= 1" circle icon="el-icon-back" size="mini" @click="pre1"></el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="roundBorder" style="top: 72%;left: 49%;">
|
|
|
|
|
|
|
|
<el-button :disabled="nowNum1 >= totalNum1" circle icon="el-icon-right" size="mini" @click="next1"></el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="chartBox chartBox4">
|
|
|
|
<div class="chartBox chartBox4">
|
|
|
|
<div class="title">当日产量</div>
|
|
|
|
<div class="title">当日产量</div>
|
|
|
|
<div class="chart">
|
|
|
|
<div class="chart">
|
|
|
@ -138,19 +184,50 @@
|
|
|
|
<div class="bottom">
|
|
|
|
<div class="bottom">
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-button type="primary">首页</el-button>
|
|
|
|
<el-button type="primary">首页</el-button>
|
|
|
|
<el-button type="success">板材领料</el-button>
|
|
|
|
<el-button type="success" @click="getMaterialsModel = true">条码打印</el-button>
|
|
|
|
<el-button type="info">SOP预览</el-button>
|
|
|
|
<el-button type="info">SOP预览</el-button>
|
|
|
|
<el-button type="danger">退出</el-button>
|
|
|
|
<el-button type="danger">退出</el-button>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog title="板材领料" :visible.sync="getMaterialsModel">
|
|
|
|
|
|
|
|
<el-form :model="form">
|
|
|
|
|
|
|
|
<el-form-item label="库位码" label-width="120px">
|
|
|
|
|
|
|
|
<el-input v-model="form.name" autocomplete="off"></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="物料码" label-width="120px">
|
|
|
|
|
|
|
|
<el-input v-model="form.name" autocomplete="off"></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
|
|
|
<el-button @click="getMaterialsModel = false">取 消</el-button>
|
|
|
|
|
|
|
|
<el-button type="primary" @click="getMaterialsModel = false">确 定</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import Chart from '@/components/board/Chart'
|
|
|
|
import Chart from '@/components/board/Chart'
|
|
|
|
import * as echarts from 'echarts'
|
|
|
|
import * as echarts from 'echarts'
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
completeProductPlanDetail,
|
|
|
|
|
|
|
|
getNewestProductPlanDetail,
|
|
|
|
|
|
|
|
getProductPlans,
|
|
|
|
|
|
|
|
startNextProductPlanDetail
|
|
|
|
|
|
|
|
} from "@/api/board/fifthFloor";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const setState = (e)=>{
|
|
|
|
|
|
|
|
if(e === '1'){
|
|
|
|
|
|
|
|
return '未开始'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(e === '2'){
|
|
|
|
|
|
|
|
return '已开始'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(e === '3' || e === '9'){
|
|
|
|
|
|
|
|
return '已完成'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
const vw = (document.documentElement.clientWidth || document.body.clientWidth) / 100
|
|
|
|
const vw = (document.documentElement.clientWidth || document.body.clientWidth) / 100
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: 'Board1',
|
|
|
|
name: 'Board1',
|
|
|
@ -159,47 +236,215 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
form: {
|
|
|
|
nowNum1: 1,
|
|
|
|
name: '',
|
|
|
|
totalNum1: 0,
|
|
|
|
region: '',
|
|
|
|
getMaterialsModel:false,
|
|
|
|
date1: '',
|
|
|
|
form: {},
|
|
|
|
date2: '',
|
|
|
|
tableData: [],
|
|
|
|
delivery: false,
|
|
|
|
}
|
|
|
|
type: [],
|
|
|
|
},
|
|
|
|
resource: '',
|
|
|
|
async mounted() {
|
|
|
|
desc: ''
|
|
|
|
const data = await getProductPlans({pageNum: 1, pageSize: 5}).then(e => {
|
|
|
|
},
|
|
|
|
this.tableData = e.rows
|
|
|
|
form1: {
|
|
|
|
this.totalNum1 = Math.ceil(e.total / 5)
|
|
|
|
name: '',
|
|
|
|
this.$refs.table1.setCurrentRow(e.rows[0]);
|
|
|
|
region: '',
|
|
|
|
this.getInfo(e.rows[0])
|
|
|
|
type: ''
|
|
|
|
getNewestProductPlanDetail({planId:e.rows[0].planId}).then(val=>{
|
|
|
|
},
|
|
|
|
this.form = val.data
|
|
|
|
tableData: [
|
|
|
|
this.form.materialId = e.rows[0].materialId
|
|
|
|
|
|
|
|
this.form.materialName = e.rows[0].materialName
|
|
|
|
|
|
|
|
this.form.planDetailStatus = setState(val.data.planDetailStatus)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
this.$refs.chart2.setData({
|
|
|
|
|
|
|
|
tooltip: {
|
|
|
|
|
|
|
|
trigger: 'axis',
|
|
|
|
|
|
|
|
axisPointer: {
|
|
|
|
|
|
|
|
// 坐标轴指示器,坐标轴触发有效
|
|
|
|
|
|
|
|
type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
grid: {
|
|
|
|
|
|
|
|
left: '0',
|
|
|
|
|
|
|
|
right: '4%',
|
|
|
|
|
|
|
|
bottom: '0',
|
|
|
|
|
|
|
|
top: 20,
|
|
|
|
|
|
|
|
containLabel: true
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
xAxis: {
|
|
|
|
|
|
|
|
type: 'category',
|
|
|
|
|
|
|
|
data: [1, 2, 3, 4, 5, 6],
|
|
|
|
|
|
|
|
axisLine: {
|
|
|
|
|
|
|
|
lineStyle: {
|
|
|
|
|
|
|
|
color: 'white'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
axisLabel: {
|
|
|
|
|
|
|
|
// interval: 0,
|
|
|
|
|
|
|
|
// rotate: 40,
|
|
|
|
|
|
|
|
textStyle: {
|
|
|
|
|
|
|
|
fontFamily: 'Microsoft YaHei'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
yAxis: {
|
|
|
|
|
|
|
|
type: 'value',
|
|
|
|
|
|
|
|
axisLine: {
|
|
|
|
|
|
|
|
show: false,
|
|
|
|
|
|
|
|
lineStyle: {
|
|
|
|
|
|
|
|
color: 'white'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
splitLine: {
|
|
|
|
|
|
|
|
show: false
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
axisLabel: {}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
series: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
workOrderNumber: '202401221413',
|
|
|
|
name: '数量',
|
|
|
|
planNum: '1000',
|
|
|
|
label: {
|
|
|
|
realNum: '800',
|
|
|
|
normal: {
|
|
|
|
quantityNum: '200',
|
|
|
|
show: true,
|
|
|
|
startTime: '2024-01-01',
|
|
|
|
position: 'top',
|
|
|
|
|
|
|
|
textStyle: {
|
|
|
|
|
|
|
|
color: '#a8aab0',
|
|
|
|
|
|
|
|
fontStyle: 'normal',
|
|
|
|
|
|
|
|
fontFamily: '微软雅黑',
|
|
|
|
|
|
|
|
fontSize: 0.75 * vw
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
type: 'bar',
|
|
|
|
|
|
|
|
barWidth: '30%',
|
|
|
|
|
|
|
|
barMaxWidth: 50,
|
|
|
|
|
|
|
|
itemStyle: {
|
|
|
|
|
|
|
|
normal: {
|
|
|
|
|
|
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
workOrderNumber: '202401221413',
|
|
|
|
offset: 0,
|
|
|
|
planNum: '1000',
|
|
|
|
color: '#39ffff'
|
|
|
|
realNum: '800',
|
|
|
|
|
|
|
|
quantityNum: '200',
|
|
|
|
|
|
|
|
startTime: '2024-01-01',
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
workOrderNumber: '202401221413',
|
|
|
|
offset: 1,
|
|
|
|
planNum: '1000',
|
|
|
|
color: '#5affa6'
|
|
|
|
realNum: '800',
|
|
|
|
}
|
|
|
|
quantityNum: '200',
|
|
|
|
])
|
|
|
|
startTime: '2024-01-01',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
data: [1, 2, 3, 4, 5, 6]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
this.$refs.chart4.setData({
|
|
|
|
|
|
|
|
tooltip: {
|
|
|
|
|
|
|
|
trigger: 'axis',
|
|
|
|
|
|
|
|
axisPointer: {
|
|
|
|
|
|
|
|
// 坐标轴指示器,坐标轴触发有效
|
|
|
|
|
|
|
|
type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
grid: {
|
|
|
|
|
|
|
|
left: '0',
|
|
|
|
|
|
|
|
right: '4%',
|
|
|
|
|
|
|
|
bottom: '0',
|
|
|
|
|
|
|
|
top: 20,
|
|
|
|
|
|
|
|
containLabel: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
xAxis: {
|
|
|
|
|
|
|
|
type: 'category',
|
|
|
|
|
|
|
|
data: [1, 2, 3, 4, 5, 6],
|
|
|
|
|
|
|
|
axisLine: {
|
|
|
|
|
|
|
|
lineStyle: {
|
|
|
|
|
|
|
|
color: 'white'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
axisLabel: {
|
|
|
|
|
|
|
|
// interval: 0,
|
|
|
|
|
|
|
|
// rotate: 40,
|
|
|
|
|
|
|
|
textStyle: {
|
|
|
|
|
|
|
|
fontFamily: 'Microsoft YaHei'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
yAxis: {
|
|
|
|
|
|
|
|
type: 'value',
|
|
|
|
|
|
|
|
axisLine: {
|
|
|
|
|
|
|
|
show: false,
|
|
|
|
|
|
|
|
lineStyle: {
|
|
|
|
|
|
|
|
color: 'white'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
splitLine: {
|
|
|
|
|
|
|
|
show: false
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
axisLabel: {}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
series: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: '数量',
|
|
|
|
|
|
|
|
label: {
|
|
|
|
|
|
|
|
normal: {
|
|
|
|
|
|
|
|
show: true,
|
|
|
|
|
|
|
|
position: 'top',
|
|
|
|
|
|
|
|
textStyle: {
|
|
|
|
|
|
|
|
color: '#a8aab0',
|
|
|
|
|
|
|
|
fontStyle: 'normal',
|
|
|
|
|
|
|
|
fontFamily: '微软雅黑',
|
|
|
|
|
|
|
|
fontSize: 0.75 * vw
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
type: 'bar',
|
|
|
|
|
|
|
|
barWidth: '30%',
|
|
|
|
|
|
|
|
barMaxWidth: 50,
|
|
|
|
|
|
|
|
itemStyle: {
|
|
|
|
|
|
|
|
normal: {
|
|
|
|
|
|
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
offset: 0,
|
|
|
|
|
|
|
|
color: '#39ffff'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
offset: 1,
|
|
|
|
|
|
|
|
color: '#5affa6'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
data: [1, 2, 3, 4, 5, 6]
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
next1() {
|
|
|
|
|
|
|
|
this.nowNum1 += 1
|
|
|
|
|
|
|
|
getProductPlans({pageNum: this.nowNum1, pageSize: 5}).then(e => {
|
|
|
|
|
|
|
|
this.tableData = e.rows
|
|
|
|
|
|
|
|
this.totalNum1 = Math.ceil(e.total / 5)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
pre1() {
|
|
|
|
|
|
|
|
this.nowNum1 -= 1
|
|
|
|
|
|
|
|
getProductPlans({pageNum: this.nowNum1, pageSize: 5}).then(e => {
|
|
|
|
|
|
|
|
this.tableData = e.rows
|
|
|
|
|
|
|
|
this.totalNum1 = Math.ceil(e.total / 5)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
getOrderInfo(e){
|
|
|
|
|
|
|
|
this.getInfo(e)
|
|
|
|
|
|
|
|
getNewestProductPlanDetail({planId:e.planId}).then(val=>{
|
|
|
|
|
|
|
|
this.form = val.data
|
|
|
|
|
|
|
|
this.form.materialId = e.materialId
|
|
|
|
|
|
|
|
this.form.materialName = e.materialName
|
|
|
|
|
|
|
|
this.form.planDetailStatus = setState(val.data.planDetailStatus)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 设置图表信息
|
|
|
|
|
|
|
|
getInfo(e) {
|
|
|
|
this.$refs.chart1_1.setData({
|
|
|
|
this.$refs.chart1_1.setData({
|
|
|
|
series: [
|
|
|
|
series: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -222,7 +467,7 @@ export default {
|
|
|
|
center: ["50%", "50%"],
|
|
|
|
center: ["50%", "50%"],
|
|
|
|
data: [
|
|
|
|
data: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
value: 100,
|
|
|
|
value: e.planAmount === 0 ? 0.0001 : e.planAmount ,
|
|
|
|
label: {
|
|
|
|
label: {
|
|
|
|
normal: {
|
|
|
|
normal: {
|
|
|
|
rich: {
|
|
|
|
rich: {
|
|
|
@ -241,7 +486,7 @@ export default {
|
|
|
|
formatter: function (params) {
|
|
|
|
formatter: function (params) {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
"{a|" +
|
|
|
|
"{a|" +
|
|
|
|
100 +
|
|
|
|
(params.data.value === 0.0001 ? 0 : params.data.value) +
|
|
|
|
"}" +
|
|
|
|
"}" +
|
|
|
|
"\n{b|计划}"
|
|
|
|
"\n{b|计划}"
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -301,7 +546,7 @@ export default {
|
|
|
|
center: ["50%", "50%"],
|
|
|
|
center: ["50%", "50%"],
|
|
|
|
data: [
|
|
|
|
data: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
value: 100,
|
|
|
|
value: e.completeAmount === 0 ? 0.0001 : e.completeAmount ,
|
|
|
|
label: {
|
|
|
|
label: {
|
|
|
|
normal: {
|
|
|
|
normal: {
|
|
|
|
rich: {
|
|
|
|
rich: {
|
|
|
@ -320,7 +565,7 @@ export default {
|
|
|
|
formatter: function (params) {
|
|
|
|
formatter: function (params) {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
"{a|" +
|
|
|
|
"{a|" +
|
|
|
|
100 +
|
|
|
|
(params.data.value === 0.0001 ? 0 : params.data.value) +
|
|
|
|
"}" +
|
|
|
|
"}" +
|
|
|
|
"\n{b|实际}"
|
|
|
|
"\n{b|实际}"
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -380,7 +625,7 @@ export default {
|
|
|
|
center: ["50%", "50%"],
|
|
|
|
center: ["50%", "50%"],
|
|
|
|
data: [
|
|
|
|
data: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
value: 100,
|
|
|
|
value: (e.planAmount - e.completeAmount) === 0 ? 0.0001 : (e.planAmount - e.completeAmount) ,
|
|
|
|
label: {
|
|
|
|
label: {
|
|
|
|
normal: {
|
|
|
|
normal: {
|
|
|
|
rich: {
|
|
|
|
rich: {
|
|
|
@ -399,7 +644,7 @@ export default {
|
|
|
|
formatter: function (params) {
|
|
|
|
formatter: function (params) {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
"{a|" +
|
|
|
|
"{a|" +
|
|
|
|
100 +
|
|
|
|
(params.data.value === 0.0001 ? 0 : params.data.value) +
|
|
|
|
"}" +
|
|
|
|
"}" +
|
|
|
|
"\n{b|差异}"
|
|
|
|
"\n{b|差异}"
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -459,7 +704,7 @@ export default {
|
|
|
|
center: ["50%", "50%"],
|
|
|
|
center: ["50%", "50%"],
|
|
|
|
data: [
|
|
|
|
data: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
value: 100,
|
|
|
|
value: ((e.completeAmount / e.planAmount)*100).toFixed(2),
|
|
|
|
label: {
|
|
|
|
label: {
|
|
|
|
normal: {
|
|
|
|
normal: {
|
|
|
|
rich: {
|
|
|
|
rich: {
|
|
|
@ -478,7 +723,7 @@ export default {
|
|
|
|
formatter: function (params) {
|
|
|
|
formatter: function (params) {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
"{a|" +
|
|
|
|
"{a|" +
|
|
|
|
100 +
|
|
|
|
(params.data.value === 0.0001 ? 0 : params.data.value) +
|
|
|
|
"%}" +
|
|
|
|
"%}" +
|
|
|
|
"\n{b|完成率}"
|
|
|
|
"\n{b|完成率}"
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -501,7 +746,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
value: 0,
|
|
|
|
value: ((1-(e.completeAmount / e.planAmount))*100).toFixed(2),
|
|
|
|
name: "invisible",
|
|
|
|
name: "invisible",
|
|
|
|
itemStyle: {
|
|
|
|
itemStyle: {
|
|
|
|
normal: {
|
|
|
|
normal: {
|
|
|
@ -516,170 +761,47 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.$refs.chart2.setData({
|
|
|
|
|
|
|
|
tooltip: {
|
|
|
|
|
|
|
|
trigger: 'axis',
|
|
|
|
|
|
|
|
axisPointer: {
|
|
|
|
|
|
|
|
// 坐标轴指示器,坐标轴触发有效
|
|
|
|
|
|
|
|
type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
grid: {
|
|
|
|
|
|
|
|
left: '0',
|
|
|
|
|
|
|
|
right: '4%',
|
|
|
|
|
|
|
|
bottom: '0',
|
|
|
|
|
|
|
|
top: 20,
|
|
|
|
|
|
|
|
containLabel: true
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
xAxis: {
|
|
|
|
|
|
|
|
type: 'category',
|
|
|
|
|
|
|
|
data: [1, 2, 3, 4, 5, 6],
|
|
|
|
|
|
|
|
axisLine: {
|
|
|
|
|
|
|
|
lineStyle: {
|
|
|
|
|
|
|
|
color: 'white'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
axisLabel: {
|
|
|
|
|
|
|
|
// interval: 0,
|
|
|
|
|
|
|
|
// rotate: 40,
|
|
|
|
|
|
|
|
textStyle: {
|
|
|
|
|
|
|
|
fontFamily: 'Microsoft YaHei'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
yAxis: {
|
|
|
|
|
|
|
|
type: 'value',
|
|
|
|
|
|
|
|
axisLine: {
|
|
|
|
|
|
|
|
show: false,
|
|
|
|
|
|
|
|
lineStyle: {
|
|
|
|
|
|
|
|
color: 'white'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
splitLine: {
|
|
|
|
|
|
|
|
show: false
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
axisLabel: {}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
series: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: '数量',
|
|
|
|
|
|
|
|
label: {
|
|
|
|
|
|
|
|
normal: {
|
|
|
|
|
|
|
|
show: true,
|
|
|
|
|
|
|
|
position: 'top',
|
|
|
|
|
|
|
|
textStyle: {
|
|
|
|
|
|
|
|
color: '#a8aab0',
|
|
|
|
|
|
|
|
fontStyle: 'normal',
|
|
|
|
|
|
|
|
fontFamily: '微软雅黑',
|
|
|
|
|
|
|
|
fontSize: 0.75 * vw
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
type: 'bar',
|
|
|
|
|
|
|
|
barWidth: '30%',
|
|
|
|
|
|
|
|
barMaxWidth: 50,
|
|
|
|
|
|
|
|
itemStyle: {
|
|
|
|
|
|
|
|
normal: {
|
|
|
|
|
|
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
offset: 0,
|
|
|
|
|
|
|
|
color: '#39ffff'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
offset: 1,
|
|
|
|
|
|
|
|
color: '#5affa6'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data: [1, 2, 3, 4, 5, 6]
|
|
|
|
// 开始继续
|
|
|
|
}
|
|
|
|
async startNextProduction(e){
|
|
|
|
]
|
|
|
|
const data = await startNextProductPlanDetail({planId: e.planId})
|
|
|
|
|
|
|
|
this.form = data.data
|
|
|
|
|
|
|
|
this.form.materialId = e.materialId
|
|
|
|
|
|
|
|
this.form.materialName = e.materialName
|
|
|
|
|
|
|
|
this.form.planDetailStatus = setState(data.data.planDetailStatus)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 完成
|
|
|
|
|
|
|
|
accomplishPlan(){
|
|
|
|
|
|
|
|
this.$confirm('是否完成计划', '确认', {
|
|
|
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
|
|
|
type: 'success'
|
|
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
|
|
completeProductPlanDetail({
|
|
|
|
|
|
|
|
planDetailId: this.form.planDetailId
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.then(() => {
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
type: 'success',
|
|
|
|
|
|
|
|
message: '已完成'
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
getProductPlans({pageNum: this.nowNum1, pageSize: 5}).then(e => {
|
|
|
|
|
|
|
|
this.tableData = e.rows
|
|
|
|
|
|
|
|
this.totalNum1 = Math.ceil(e.total / 5)
|
|
|
|
|
|
|
|
let data = e.rows.find(v=>v.planCode === this.form.planCode) || null
|
|
|
|
|
|
|
|
this.$refs.table1.setCurrentRow(data || e.rows[0]);
|
|
|
|
|
|
|
|
this.getInfo(data ||e.rows[0])
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(() => {
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
type: 'info',
|
|
|
|
|
|
|
|
message: '已取消'
|
|
|
|
|
|
|
|
});
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.$refs.chart4.setData({
|
|
|
|
|
|
|
|
tooltip: {
|
|
|
|
|
|
|
|
trigger: 'axis',
|
|
|
|
|
|
|
|
axisPointer: {
|
|
|
|
|
|
|
|
// 坐标轴指示器,坐标轴触发有效
|
|
|
|
|
|
|
|
type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
grid: {
|
|
|
|
|
|
|
|
left: '0',
|
|
|
|
|
|
|
|
right: '4%',
|
|
|
|
|
|
|
|
bottom: '0',
|
|
|
|
|
|
|
|
top: 20,
|
|
|
|
|
|
|
|
containLabel: true
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
xAxis: {
|
|
|
|
|
|
|
|
type: 'category',
|
|
|
|
|
|
|
|
data: [1, 2, 3, 4, 5, 6],
|
|
|
|
|
|
|
|
axisLine: {
|
|
|
|
|
|
|
|
lineStyle: {
|
|
|
|
|
|
|
|
color: 'white'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
axisLabel: {
|
|
|
|
|
|
|
|
// interval: 0,
|
|
|
|
|
|
|
|
// rotate: 40,
|
|
|
|
|
|
|
|
textStyle: {
|
|
|
|
|
|
|
|
fontFamily: 'Microsoft YaHei'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
yAxis: {
|
|
|
|
|
|
|
|
type: 'value',
|
|
|
|
|
|
|
|
axisLine: {
|
|
|
|
|
|
|
|
show: false,
|
|
|
|
|
|
|
|
lineStyle: {
|
|
|
|
|
|
|
|
color: 'white'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
splitLine: {
|
|
|
|
|
|
|
|
show: false
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
axisLabel: {}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
series: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: '数量',
|
|
|
|
|
|
|
|
label: {
|
|
|
|
|
|
|
|
normal: {
|
|
|
|
|
|
|
|
show: true,
|
|
|
|
|
|
|
|
position: 'top',
|
|
|
|
|
|
|
|
textStyle: {
|
|
|
|
|
|
|
|
color: '#a8aab0',
|
|
|
|
|
|
|
|
fontStyle: 'normal',
|
|
|
|
|
|
|
|
fontFamily: '微软雅黑',
|
|
|
|
|
|
|
|
fontSize: 0.75 * vw
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
type: 'bar',
|
|
|
|
|
|
|
|
barWidth: '30%',
|
|
|
|
|
|
|
|
barMaxWidth: 50,
|
|
|
|
|
|
|
|
itemStyle: {
|
|
|
|
|
|
|
|
normal: {
|
|
|
|
|
|
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
offset: 0,
|
|
|
|
|
|
|
|
color: '#39ffff'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
offset: 1,
|
|
|
|
|
|
|
|
color: '#5affa6'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
data: [1, 2, 3, 4, 5, 6]
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
|
|
<style lang="less" scoped>
|
|
|
@ -722,6 +844,10 @@ export default {
|
|
|
|
color: #fff
|
|
|
|
color: #fff
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/deep/ .current-row .cell {
|
|
|
|
|
|
|
|
color: #000
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/deep/ .el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
|
|
|
|
/deep/ .el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
|
|
|
|
background-color: #fff0;
|
|
|
|
background-color: #fff0;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -811,7 +937,7 @@ export default {
|
|
|
|
left: 2%;
|
|
|
|
left: 2%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.form1 {
|
|
|
|
.form {
|
|
|
|
position: absolute;
|
|
|
|
position: absolute;
|
|
|
|
width: 50%;
|
|
|
|
width: 50%;
|
|
|
|
height: 100%;
|
|
|
|
height: 100%;
|
|
|
@ -831,4 +957,8 @@ export default {
|
|
|
|
border-radius: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.roundBorder {
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|