|
|
|
@ -5,26 +5,30 @@
|
|
|
|
|
<div class="chartBox chartBox1">
|
|
|
|
|
<div class="title">工单信息</div>
|
|
|
|
|
<div class="chart">
|
|
|
|
|
<div class="form1">
|
|
|
|
|
<el-form label-position="right" label-width="80px" :model="form1">
|
|
|
|
|
<div class="form">
|
|
|
|
|
<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-input v-model="form1.name"></el-input>
|
|
|
|
|
<el-input v-model="form.planCode"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="物料编号">
|
|
|
|
|
<el-input v-model="form1.region"></el-input>
|
|
|
|
|
<el-input v-model="form.region"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<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-input v-model="form.materialId"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="产品型号">
|
|
|
|
|
<el-input v-model="form1.type"></el-input>
|
|
|
|
|
<el-input v-model="form.materialId"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div style="text-align: center">
|
|
|
|
|
<el-button type="primary">图纸下发</el-button>
|
|
|
|
|
<el-button type="success">图纸下发</el-button>
|
|
|
|
|
<el-button type="primary">继续</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
@ -55,11 +59,14 @@
|
|
|
|
|
<div class="chart">
|
|
|
|
|
<div class="whiteTable">
|
|
|
|
|
<el-table
|
|
|
|
|
:data="tableData"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
max-height="19.13vw"
|
|
|
|
|
ref="table1"
|
|
|
|
|
:cell-style="{textAlign:'center'}"
|
|
|
|
|
:data="tableData"
|
|
|
|
|
:header-cell-style="{textAlign:'center'}"
|
|
|
|
|
highlight-current-row
|
|
|
|
|
max-height="19.13vw"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
@current-change="getOrderInfo"
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
<el-table-column
|
|
|
|
@ -69,31 +76,40 @@
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="workOrderNumber"
|
|
|
|
|
label="工单编号"
|
|
|
|
|
prop="planCode"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="物料名称"
|
|
|
|
|
prop="materialName"
|
|
|
|
|
width="100"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="planNum"
|
|
|
|
|
label="计划"
|
|
|
|
|
prop="planAmount"
|
|
|
|
|
width="80"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="realNum"
|
|
|
|
|
label="实际"
|
|
|
|
|
prop="completeAmount"
|
|
|
|
|
width="80"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="quantityNum"
|
|
|
|
|
label="差异"
|
|
|
|
|
prop="difference"
|
|
|
|
|
width="80"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.planAmount - scope.row.completeAmount }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="startTime"
|
|
|
|
|
label="开始时间"
|
|
|
|
|
label="交付时间"
|
|
|
|
|
prop="planDeliveryDate"
|
|
|
|
|
width="200"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -103,23 +119,26 @@
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
type="text"
|
|
|
|
|
v-if="scope.row.completeAmoun === 0"
|
|
|
|
|
@click="startProduction(scope.row)"
|
|
|
|
|
>
|
|
|
|
|
开始
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
type="text"
|
|
|
|
|
@click="nextProduction(scope.row)"
|
|
|
|
|
v-if="scope.row.completeAmount < scope.row.planAmount"
|
|
|
|
|
>
|
|
|
|
|
退库
|
|
|
|
|
继续
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
style="color: #f56c6c"
|
|
|
|
|
type="text"
|
|
|
|
|
>
|
|
|
|
|
删除
|
|
|
|
|
退库
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -150,6 +169,7 @@
|
|
|
|
|
<script>
|
|
|
|
|
import Chart from '@/components/board/Chart'
|
|
|
|
|
import * as echarts from 'echarts'
|
|
|
|
|
import {getNewestProductPlanDetail, getProductPlans, startNextProductPlanDetail} from "@/api/board/laserLight";
|
|
|
|
|
|
|
|
|
|
const vw = (document.documentElement.clientWidth || document.body.clientWidth) / 100
|
|
|
|
|
export default {
|
|
|
|
@ -159,21 +179,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
form: {
|
|
|
|
|
name: '',
|
|
|
|
|
region: '',
|
|
|
|
|
date1: '',
|
|
|
|
|
date2: '',
|
|
|
|
|
delivery: false,
|
|
|
|
|
type: [],
|
|
|
|
|
resource: '',
|
|
|
|
|
desc: ''
|
|
|
|
|
},
|
|
|
|
|
form1: {
|
|
|
|
|
name: '',
|
|
|
|
|
region: '',
|
|
|
|
|
type: ''
|
|
|
|
|
},
|
|
|
|
|
form: {},
|
|
|
|
|
tableData: [
|
|
|
|
|
{
|
|
|
|
|
workOrderNumber: '202401221413',
|
|
|
|
@ -200,321 +206,13 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.$refs.chart1_1.setData({
|
|
|
|
|
series: [
|
|
|
|
|
{
|
|
|
|
|
type: "pie",
|
|
|
|
|
clockWise: false,
|
|
|
|
|
radius: ['60%', '75%'],
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
label: {
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
labelLine: {
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
shadowBlur: 0,
|
|
|
|
|
shadowColor: "#aa8e2c",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
hoverAnimation: false,
|
|
|
|
|
center: ["50%", "50%"],
|
|
|
|
|
data: [
|
|
|
|
|
{
|
|
|
|
|
value: 100,
|
|
|
|
|
label: {
|
|
|
|
|
normal: {
|
|
|
|
|
rich: {
|
|
|
|
|
a: {
|
|
|
|
|
color: "#aa8e2c",
|
|
|
|
|
align: "center",
|
|
|
|
|
fontSize: 1.1 * vw,
|
|
|
|
|
fontWeight: "bold",
|
|
|
|
|
},
|
|
|
|
|
b: {
|
|
|
|
|
color: "#fff",
|
|
|
|
|
align: "center",
|
|
|
|
|
fontSize: 0.9 * vw,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
formatter: function (params) {
|
|
|
|
|
return (
|
|
|
|
|
"{a|" +
|
|
|
|
|
100 +
|
|
|
|
|
"}" +
|
|
|
|
|
"\n{b|计划}"
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
position: "center",
|
|
|
|
|
show: true,
|
|
|
|
|
textStyle: {
|
|
|
|
|
fontSize: "14",
|
|
|
|
|
fontWeight: "normal",
|
|
|
|
|
color: "#fff",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
color: "#aa8e2c",
|
|
|
|
|
shadowColor: "#aa8e2c",
|
|
|
|
|
shadowBlur: 0,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: 0,
|
|
|
|
|
name: "invisible",
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
color: "#412a4e",
|
|
|
|
|
},
|
|
|
|
|
emphasis: {
|
|
|
|
|
color: "#412a4e",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
})
|
|
|
|
|
this.$refs.chart1_2.setData({
|
|
|
|
|
series: [
|
|
|
|
|
{
|
|
|
|
|
type: "pie",
|
|
|
|
|
clockWise: false,
|
|
|
|
|
radius: ['60%', '75%'],
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
label: {
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
labelLine: {
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
shadowBlur: 0,
|
|
|
|
|
shadowColor: "#389af4",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
hoverAnimation: false,
|
|
|
|
|
center: ["50%", "50%"],
|
|
|
|
|
data: [
|
|
|
|
|
{
|
|
|
|
|
value: 100,
|
|
|
|
|
label: {
|
|
|
|
|
normal: {
|
|
|
|
|
rich: {
|
|
|
|
|
a: {
|
|
|
|
|
color: "#389af4",
|
|
|
|
|
align: "center",
|
|
|
|
|
fontSize: 1.1 * vw,
|
|
|
|
|
fontWeight: "bold",
|
|
|
|
|
},
|
|
|
|
|
b: {
|
|
|
|
|
color: "#fff",
|
|
|
|
|
align: "center",
|
|
|
|
|
fontSize: 0.9 * vw,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
formatter: function (params) {
|
|
|
|
|
return (
|
|
|
|
|
"{a|" +
|
|
|
|
|
100 +
|
|
|
|
|
"}" +
|
|
|
|
|
"\n{b|实际}"
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
position: "center",
|
|
|
|
|
show: true,
|
|
|
|
|
textStyle: {
|
|
|
|
|
fontSize: "14",
|
|
|
|
|
fontWeight: "normal",
|
|
|
|
|
color: "#fff",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
color: "#389af4",
|
|
|
|
|
shadowColor: "#389af4",
|
|
|
|
|
shadowBlur: 0,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: 0,
|
|
|
|
|
name: "invisible",
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
color: "#412a4e",
|
|
|
|
|
},
|
|
|
|
|
emphasis: {
|
|
|
|
|
color: "#412a4e",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
})
|
|
|
|
|
this.$refs.chart1_3.setData({
|
|
|
|
|
series: [
|
|
|
|
|
{
|
|
|
|
|
type: "pie",
|
|
|
|
|
clockWise: false,
|
|
|
|
|
radius: ['60%', '75%'],
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
label: {
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
labelLine: {
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
shadowBlur: 0,
|
|
|
|
|
shadowColor: "#ff0000",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
hoverAnimation: false,
|
|
|
|
|
center: ["50%", "50%"],
|
|
|
|
|
data: [
|
|
|
|
|
{
|
|
|
|
|
value: 100,
|
|
|
|
|
label: {
|
|
|
|
|
normal: {
|
|
|
|
|
rich: {
|
|
|
|
|
a: {
|
|
|
|
|
color: "#ff0000",
|
|
|
|
|
align: "center",
|
|
|
|
|
fontSize: 1.1 * vw,
|
|
|
|
|
fontWeight: "bold",
|
|
|
|
|
},
|
|
|
|
|
b: {
|
|
|
|
|
color: "#fff",
|
|
|
|
|
align: "center",
|
|
|
|
|
fontSize: 0.9 * vw,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
formatter: function (params) {
|
|
|
|
|
return (
|
|
|
|
|
"{a|" +
|
|
|
|
|
100 +
|
|
|
|
|
"}" +
|
|
|
|
|
"\n{b|差异}"
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
position: "center",
|
|
|
|
|
show: true,
|
|
|
|
|
textStyle: {
|
|
|
|
|
fontSize: "14",
|
|
|
|
|
fontWeight: "normal",
|
|
|
|
|
color: "#fff",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
color: "#b32b2b",
|
|
|
|
|
shadowColor: "#ff0000",
|
|
|
|
|
shadowBlur: 0,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: 0,
|
|
|
|
|
name: "invisible",
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
color: "#412a4e",
|
|
|
|
|
},
|
|
|
|
|
emphasis: {
|
|
|
|
|
color: "#412a4e",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
})
|
|
|
|
|
this.$refs.chart1_4.setData({
|
|
|
|
|
series: [
|
|
|
|
|
{
|
|
|
|
|
type: "pie",
|
|
|
|
|
clockWise: false,
|
|
|
|
|
radius: ['60%', '75%'],
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
label: {
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
labelLine: {
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
shadowBlur: 0,
|
|
|
|
|
shadowColor: "#00ff00",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
hoverAnimation: false,
|
|
|
|
|
center: ["50%", "50%"],
|
|
|
|
|
data: [
|
|
|
|
|
{
|
|
|
|
|
value: 100,
|
|
|
|
|
label: {
|
|
|
|
|
normal: {
|
|
|
|
|
rich: {
|
|
|
|
|
a: {
|
|
|
|
|
color: "#00ff00",
|
|
|
|
|
align: "center",
|
|
|
|
|
fontSize: 1.1 * vw,
|
|
|
|
|
fontWeight: "bold",
|
|
|
|
|
},
|
|
|
|
|
b: {
|
|
|
|
|
color: "#fff",
|
|
|
|
|
align: "center",
|
|
|
|
|
fontSize: 0.9 * vw,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
formatter: function (params) {
|
|
|
|
|
return (
|
|
|
|
|
"{a|" +
|
|
|
|
|
100 +
|
|
|
|
|
"%}" +
|
|
|
|
|
"\n{b|完成率}"
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
position: "center",
|
|
|
|
|
show: true,
|
|
|
|
|
textStyle: {
|
|
|
|
|
fontSize: "14",
|
|
|
|
|
fontWeight: "normal",
|
|
|
|
|
color: "#fff",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
color: "#3ac13a",
|
|
|
|
|
shadowColor: "#00ff00",
|
|
|
|
|
shadowBlur: 0,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: 0,
|
|
|
|
|
name: "invisible",
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
color: "#412a4e",
|
|
|
|
|
},
|
|
|
|
|
emphasis: {
|
|
|
|
|
color: "#412a4e",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
getProductPlans().then(e => {
|
|
|
|
|
this.tableData = e.data
|
|
|
|
|
this.$refs.table1.setCurrentRow(e.data[0]);
|
|
|
|
|
this.getInfo(e.data[0])
|
|
|
|
|
getNewestProductPlanDetail(e.data[0].planId).then(val=>{
|
|
|
|
|
this.form = val.data
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
this.$refs.chart2.setData({
|
|
|
|
|
tooltip: {
|
|
|
|
@ -679,7 +377,341 @@ export default {
|
|
|
|
|
]
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
methods: {}
|
|
|
|
|
methods: {
|
|
|
|
|
getOrderInfo(e){
|
|
|
|
|
this.getInfo(e)
|
|
|
|
|
getNewestProductPlanDetail(e.planId).then(val=>{
|
|
|
|
|
this.form = val.data
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getInfo(e) {
|
|
|
|
|
this.$refs.chart1_1.setData({
|
|
|
|
|
series: [
|
|
|
|
|
{
|
|
|
|
|
type: "pie",
|
|
|
|
|
clockWise: false,
|
|
|
|
|
radius: ['60%', '75%'],
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
label: {
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
labelLine: {
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
shadowBlur: 0,
|
|
|
|
|
shadowColor: "#aa8e2c",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
hoverAnimation: false,
|
|
|
|
|
center: ["50%", "50%"],
|
|
|
|
|
data: [
|
|
|
|
|
{
|
|
|
|
|
value: e.planAmount,
|
|
|
|
|
label: {
|
|
|
|
|
normal: {
|
|
|
|
|
rich: {
|
|
|
|
|
a: {
|
|
|
|
|
color: "#aa8e2c",
|
|
|
|
|
align: "center",
|
|
|
|
|
fontSize: 1.1 * vw,
|
|
|
|
|
fontWeight: "bold",
|
|
|
|
|
},
|
|
|
|
|
b: {
|
|
|
|
|
color: "#fff",
|
|
|
|
|
align: "center",
|
|
|
|
|
fontSize: 0.9 * vw,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
formatter: function (params) {
|
|
|
|
|
return (
|
|
|
|
|
"{a|" +
|
|
|
|
|
params.data.value +
|
|
|
|
|
"}" +
|
|
|
|
|
"\n{b|计划}"
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
position: "center",
|
|
|
|
|
show: true,
|
|
|
|
|
textStyle: {
|
|
|
|
|
fontSize: "14",
|
|
|
|
|
fontWeight: "normal",
|
|
|
|
|
color: "#fff",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
color: "#aa8e2c",
|
|
|
|
|
shadowColor: "#aa8e2c",
|
|
|
|
|
shadowBlur: 0,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: 0,
|
|
|
|
|
name: "invisible",
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
color: "#412a4e",
|
|
|
|
|
},
|
|
|
|
|
emphasis: {
|
|
|
|
|
color: "#412a4e",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
})
|
|
|
|
|
this.$refs.chart1_2.setData({
|
|
|
|
|
series: [
|
|
|
|
|
{
|
|
|
|
|
type: "pie",
|
|
|
|
|
clockWise: false,
|
|
|
|
|
radius: ['60%', '75%'],
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
label: {
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
labelLine: {
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
shadowBlur: 0,
|
|
|
|
|
shadowColor: "#389af4",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
hoverAnimation: false,
|
|
|
|
|
center: ["50%", "50%"],
|
|
|
|
|
data: [
|
|
|
|
|
{
|
|
|
|
|
value: e.completeAmount,
|
|
|
|
|
label: {
|
|
|
|
|
normal: {
|
|
|
|
|
rich: {
|
|
|
|
|
a: {
|
|
|
|
|
color: "#389af4",
|
|
|
|
|
align: "center",
|
|
|
|
|
fontSize: 1.1 * vw,
|
|
|
|
|
fontWeight: "bold",
|
|
|
|
|
},
|
|
|
|
|
b: {
|
|
|
|
|
color: "#fff",
|
|
|
|
|
align: "center",
|
|
|
|
|
fontSize: 0.9 * vw,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
formatter: function (params) {
|
|
|
|
|
return (
|
|
|
|
|
"{a|" +
|
|
|
|
|
params.data.value +
|
|
|
|
|
"}" +
|
|
|
|
|
"\n{b|实际}"
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
position: "center",
|
|
|
|
|
show: true,
|
|
|
|
|
textStyle: {
|
|
|
|
|
fontSize: "14",
|
|
|
|
|
fontWeight: "normal",
|
|
|
|
|
color: "#fff",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
color: "#389af4",
|
|
|
|
|
shadowColor: "#389af4",
|
|
|
|
|
shadowBlur: 0,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: 0,
|
|
|
|
|
name: "invisible",
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
color: "#412a4e",
|
|
|
|
|
},
|
|
|
|
|
emphasis: {
|
|
|
|
|
color: "#412a4e",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
})
|
|
|
|
|
this.$refs.chart1_3.setData({
|
|
|
|
|
series: [
|
|
|
|
|
{
|
|
|
|
|
type: "pie",
|
|
|
|
|
clockWise: false,
|
|
|
|
|
radius: ['60%', '75%'],
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
label: {
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
labelLine: {
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
shadowBlur: 0,
|
|
|
|
|
shadowColor: "#ff0000",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
hoverAnimation: false,
|
|
|
|
|
center: ["50%", "50%"],
|
|
|
|
|
data: [
|
|
|
|
|
{
|
|
|
|
|
value: e.planAmount - e.completeAmount,
|
|
|
|
|
label: {
|
|
|
|
|
normal: {
|
|
|
|
|
rich: {
|
|
|
|
|
a: {
|
|
|
|
|
color: "#ff0000",
|
|
|
|
|
align: "center",
|
|
|
|
|
fontSize: 1.1 * vw,
|
|
|
|
|
fontWeight: "bold",
|
|
|
|
|
},
|
|
|
|
|
b: {
|
|
|
|
|
color: "#fff",
|
|
|
|
|
align: "center",
|
|
|
|
|
fontSize: 0.9 * vw,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
formatter: function (params) {
|
|
|
|
|
return (
|
|
|
|
|
"{a|" +
|
|
|
|
|
params.data.value +
|
|
|
|
|
"}" +
|
|
|
|
|
"\n{b|差异}"
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
position: "center",
|
|
|
|
|
show: true,
|
|
|
|
|
textStyle: {
|
|
|
|
|
fontSize: "14",
|
|
|
|
|
fontWeight: "normal",
|
|
|
|
|
color: "#fff",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
color: "#b32b2b",
|
|
|
|
|
shadowColor: "#ff0000",
|
|
|
|
|
shadowBlur: 0,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: 0,
|
|
|
|
|
name: "invisible",
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
color: "#412a4e",
|
|
|
|
|
},
|
|
|
|
|
emphasis: {
|
|
|
|
|
color: "#412a4e",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
})
|
|
|
|
|
this.$refs.chart1_4.setData({
|
|
|
|
|
series: [
|
|
|
|
|
{
|
|
|
|
|
type: "pie",
|
|
|
|
|
clockWise: false,
|
|
|
|
|
radius: ['60%', '75%'],
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
label: {
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
labelLine: {
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
shadowBlur: 0,
|
|
|
|
|
shadowColor: "#00ff00",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
hoverAnimation: false,
|
|
|
|
|
center: ["50%", "50%"],
|
|
|
|
|
data: [
|
|
|
|
|
{
|
|
|
|
|
value: ((e.completeAmount / e.planAmount)*100).toFixed(2),
|
|
|
|
|
label: {
|
|
|
|
|
normal: {
|
|
|
|
|
rich: {
|
|
|
|
|
a: {
|
|
|
|
|
color: "#00ff00",
|
|
|
|
|
align: "center",
|
|
|
|
|
fontSize: 1.1 * vw,
|
|
|
|
|
fontWeight: "bold",
|
|
|
|
|
},
|
|
|
|
|
b: {
|
|
|
|
|
color: "#fff",
|
|
|
|
|
align: "center",
|
|
|
|
|
fontSize: 0.9 * vw,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
formatter: function (params) {
|
|
|
|
|
return (
|
|
|
|
|
"{a|" +
|
|
|
|
|
params.data.value +
|
|
|
|
|
"%}" +
|
|
|
|
|
"\n{b|完成率}"
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
position: "center",
|
|
|
|
|
show: true,
|
|
|
|
|
textStyle: {
|
|
|
|
|
fontSize: "14",
|
|
|
|
|
fontWeight: "normal",
|
|
|
|
|
color: "#fff",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
color: "#3ac13a",
|
|
|
|
|
shadowColor: "#00ff00",
|
|
|
|
|
shadowBlur: 0,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: ((1-(e.completeAmount / e.planAmount))*100).toFixed(2),
|
|
|
|
|
name: "invisible",
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
color: "#412a4e",
|
|
|
|
|
},
|
|
|
|
|
emphasis: {
|
|
|
|
|
color: "#412a4e",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
startProduction(e){
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
async nextProduction(e){
|
|
|
|
|
this.getInfo(e)
|
|
|
|
|
const data = await startNextProductPlanDetail({planId:e.planId})
|
|
|
|
|
this.form = data.data
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
@ -722,6 +754,10 @@ export default {
|
|
|
|
|
color: #fff
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .current-row .cell {
|
|
|
|
|
color: #000
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
|
|
|
|
|
background-color: #fff0;
|
|
|
|
|
}
|
|
|
|
@ -811,7 +847,7 @@ export default {
|
|
|
|
|
left: 2%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.form1 {
|
|
|
|
|
.form {
|
|
|
|
|
position: absolute;
|
|
|
|
|
width: 50%;
|
|
|
|
|
height: 100%;
|
|
|
|
|