修改看板统计维度

yangwl
LAPTOP-R6EHHS26\86155 11 months ago
parent 5535e3f22c
commit a1efea2764

@ -11,8 +11,8 @@ export function getBoardFactory(data) {
export function getDictData(data) { export function getDictData(data) {
return request({ return request({
url: '/quality/qcInterface/getDictData', url: '/quality/qcInterface/getDictData',
method: 'post', method: 'get',
data: data params: data
}); });
} }
// 来料--订单异常信息 // 来料--订单异常信息

@ -226,6 +226,7 @@ export default {
colorlist: ["#005aff", "#f8b551"], colorlist: ["#005aff", "#f8b551"],
datetime: null, datetime: null,
time1: null, time1: null,
RefreshTime:null,
}; };
}, },
created() {}, created() {},

@ -22,13 +22,13 @@
<!-- <option :key="index" :value="x.seriesName" v-for="(x, index) in ceshib">{{ x.seriesName }}</option> --> <!-- <option :key="index" :value="x.seriesName" v-for="(x, index) in ceshib">{{ x.seriesName }}</option> -->
</select> </select>
</div> </div>
<!-- <div class="selectborder selectborder1"> <div class="selectborder selectborder1">
<select v-model="selectxtclasses" class="select1" @change="selectline2(selectxtclasses)"> <select v-model="selectxtclasses" class="select1" @change="selectline2(selectxtclasses)">
<option :key="index" :value="x.shiftId" v-for="(x, index) in classesList"> <option :key="index" :value="x.ymdType" v-for="(x, index) in dictDatatype">
{{ x.shiftDesc }} {{ x.ymdTypeName }}
</option> </option>
</select> </select>
</div> --> </div>
</div> </div>
<div class="timebox"> <div class="timebox">
<div class="time"> <div class="time">
@ -176,9 +176,10 @@ import {
getProMonthNoOk, getProMonthNoOk,
getLineDayNoOk, getLineDayNoOk,
getMonthOfYearContrast, getMonthOfYearContrast,
getDictData,
} from "@/api/kanban/quality"; } from "@/api/kanban/quality";
import { import {
getDeviceRefreshTime, getDeviceRefreshTime,
} from "@/api/kanban/equipment"; } from "@/api/kanban/equipment";
import * as echarts from "echarts"; import * as echarts from "echarts";
import moment from "moment"; import moment from "moment";
@ -224,6 +225,8 @@ export default {
Statistics: {}, Statistics: {},
Qualitylist: [], Qualitylist: [],
seriesmyChart5: [], seriesmyChart5: [],
dictDatatype: [],
RefreshTime: null,
}; };
}, },
created() { }, created() { },
@ -256,8 +259,8 @@ export default {
if (response.data) { if (response.data) {
_this.getLineList = response.data; _this.getLineList = response.data;
_this.selectxt = _this.getLineList[0].parentName; _this.selectxt = _this.getLineList[0].parentName;
this.getdatalist()
this.initChart1() this.getDictData()
this.getDeviceRefreshTime() this.getDeviceRefreshTime()
} }
}); });
@ -275,10 +278,27 @@ export default {
} }
}); });
}, },
getDictData() {
const _this = this;
getDictData(
{
dictType: 'static_dims',
}
).then((response) => {
if (response) {
console.log(response)
this.dictDatatype = response
_this.selectxtclasses = _this.dictDatatype[0].ymdType;
this.getDeviceRefreshTime()
this.getdatalist()
this.initChart1()
}
});
},
getdatalist() { getdatalist() {
const _this = this; const _this = this;
getProduceStaticInfo({ getProduceStaticInfo({
ymdType: '统计维度', ymdType: moment().format(_this.selectxtclasses),
typeCode: 'material', typeCode: 'material',
factoryCode: 'ds_' + _this.selectxt, factoryCode: 'ds_' + _this.selectxt,
}).then((response) => { }).then((response) => {
@ -298,7 +318,7 @@ export default {
}); });
getCheckProjectsPie({ getCheckProjectsPie({
typeCode: 'produce', typeCode: 'produce',
ymdType: moment().format('DD'), ymdType: moment().format(_this.selectxtclasses),
factoryCode: 'ds_' + _this.selectxt, factoryCode: 'ds_' + _this.selectxt,
}).then((response) => { }).then((response) => {
if (response) { if (response) {
@ -1707,7 +1727,15 @@ export default {
this.getdatalist() this.getdatalist()
this.initChart1() this.initChart1()
}, },
selectline2() {
const _this = this;
this.optionDatalist1 = [];
this.optionDatalist2 = [];
this.optionDatalist3 = [];
this.optionDatalist4 = [];
this.getdatalist()
this.initChart1()
},
// //
}, },
}; };

@ -22,6 +22,13 @@
<!-- <option :key="index" :value="x.seriesName" v-for="(x, index) in ceshib">{{ x.seriesName }}</option> --> <!-- <option :key="index" :value="x.seriesName" v-for="(x, index) in ceshib">{{ x.seriesName }}</option> -->
</select> </select>
</div> </div>
<div class="selectborder selectborder1">
<select v-model="selectxtclasses" class="select1" @change="selectline2(selectxtclasses)">
<option :key="index" :value="x.ymdType" v-for="(x, index) in dictDatatype">
{{ x.ymdTypeName }}
</option>
</select>
</div>
</div> </div>
<div class="timebox"> <div class="timebox">
<div class="time"> <div class="time">
@ -161,7 +168,7 @@ import {
getCheckProjectsPie, getCheckProjectsPie,
getSupplierBadTOP5, getSupplierBadTOP5,
getSupplierNoOkList, getSupplierNoOkList,
getSupplierTaskList, getDictData,
} from "@/api/kanban/quality"; } from "@/api/kanban/quality";
import { import {
getDeviceRefreshTime, getDeviceRefreshTime,
@ -234,7 +241,8 @@ export default {
} }
], ],
RefreshTime:null,
dictDatatype:[],
}; };
}, },
created() { }, created() { },
@ -268,8 +276,7 @@ export default {
if (response.data) { if (response.data) {
_this.getLineList = response.data; _this.getLineList = response.data;
_this.selectxt = _this.getLineList[0].parentName; _this.selectxt = _this.getLineList[0].parentName;
_this.getdatalist() _this.getDictData()
_this.getDeviceRefreshTime()
} }
}); });
}, },
@ -285,10 +292,26 @@ export default {
} }
}); });
}, },
getDictData() {
const _this = this;
getDictData(
{
dictType: 'static_dims',
}
).then((response) => {
if (response) {
console.log(response)
this.dictDatatype = response
_this.selectxtclasses = _this.dictDatatype[0].ymdType;
_this.getdatalist()
_this.getDeviceRefreshTime()
}
});
},
getdatalist() { getdatalist() {
const _this = this; const _this = this;
getOverallInfo({ getOverallInfo({
ymdType: '统计维度', ymdType: moment().format(_this.selectxtclasses),
typeCode: 'material', typeCode: 'material',
factoryCode: 'ds_' + _this.selectxt, factoryCode: 'ds_' + _this.selectxt,
}).then((response) => { }).then((response) => {
@ -297,7 +320,7 @@ export default {
} }
}); });
getCheckProjectsPie({ getCheckProjectsPie({
ymdType: '统计维度', ymdType: moment().format(_this.selectxtclasses),
typeCode: 'material', typeCode: 'material',
factoryCode: 'ds_' + _this.selectxt, factoryCode: 'ds_' + _this.selectxt,
}).then((response) => { }).then((response) => {
@ -313,7 +336,7 @@ export default {
} }
}); });
getSupplierBadTOP5({ getSupplierBadTOP5({
ymdType: '统计维度', ymdType: moment().format(_this.selectxtclasses),
typeCode: 'material', typeCode: 'material',
factoryCode: 'ds_' + _this.selectxt, factoryCode: 'ds_' + _this.selectxt,
}).then((response) => { }).then((response) => {
@ -336,7 +359,7 @@ export default {
}); });
this.orderdetail = [] this.orderdetail = []
getSupplierNoOkList({ getSupplierNoOkList({
ymdType: '统计维度', ymdType: moment().format(_this.selectxtclasses),
typeCode: 'material', typeCode: 'material',
factoryCode: 'ds_' + _this.selectxt, factoryCode: 'ds_' + _this.selectxt,
}).then((response) => { }).then((response) => {
@ -964,7 +987,14 @@ export default {
this.optionDatalist4 = []; this.optionDatalist4 = [];
_this.getdatalist(_this.selectxt) _this.getdatalist(_this.selectxt)
}, },
selectline2() {
const _this = this;
this.optionDatalist1 = [];
this.optionDatalist2 = [];
this.optionDatalist3 = [];
this.optionDatalist4 = [];
_this.getdatalist(_this.selectxt)
},
// //
}, },
}; };

@ -120,10 +120,11 @@
<script> <script>
import { import {
getBoardFactory, getBoardFactory,
getSupplierNoOkList, getSupplierTaskList,
getDictData,
} from "@/api/kanban/quality";; } from "@/api/kanban/quality";;
import { import {
getDeviceRefreshTime, getDeviceRefreshTime,
} from "@/api/kanban/equipment"; } from "@/api/kanban/equipment";
import * as echarts from "echarts"; import * as echarts from "echarts";
import moment from "moment"; import moment from "moment";
@ -169,7 +170,8 @@ export default {
equipmentrepairlist: [], equipmentrepairlist: [],
equipmentstabilizelist: [], equipmentstabilizelist: [],
equipmentinfo: [], equipmentinfo: [],
RefreshTime: null,
dictDatatype: [],
}; };
}, },
created() { }, created() { },
@ -202,7 +204,22 @@ export default {
if (response.data) { if (response.data) {
_this.getLineList = response.data; _this.getLineList = response.data;
_this.selectxt = _this.getLineList[0].parentName; _this.selectxt = _this.getLineList[0].parentName;
_this.getSupplierNoOkList(_this.selectxt) _this.getDictData()
}
});
},
getDictData() {
const _this = this;
getDictData(
{
dictType: 'static_dims',
}
).then((response) => {
if (response) {
console.log(response)
this.dictDatatype = response
_this.selectxtclasses = _this.dictDatatype[0].ymdType;
_this.getSupplierTaskList(_this.selectxt)
_this.getDeviceRefreshTime() _this.getDeviceRefreshTime()
} }
}); });
@ -214,16 +231,16 @@ export default {
console.log(response.data) console.log(response.data)
this.RefreshTime = response.data this.RefreshTime = response.data
this.time1 = setInterval(() => { this.time1 = setInterval(() => {
_this.getSupplierNoOkList(_this.selectxt) _this.getSupplierTaskList(_this.selectxt)
}, 1000 * 60 * this.RefreshTime); }, 1000 * 60 * this.RefreshTime);
} }
}); });
}, },
getSupplierNoOkList() { getSupplierTaskList() {
const _this = this; const _this = this;
this.Inspectiondetails = [] this.Inspectiondetails = []
getSupplierNoOkList({ getSupplierTaskList({
ymdType: '统计维度', ymdType: moment().format(_this.selectxtclasses),
typeCode: 'material', typeCode: 'material',
factoryCode: 'ds_' + _this.selectxt, factoryCode: 'ds_' + _this.selectxt,
}).then((response) => { }).then((response) => {
@ -234,8 +251,8 @@ export default {
}); });
} }
}); });
getSupplierNoOkList({ getSupplierTaskList({
ymdType: 'dd', ymdType: moment().format(_this.selectxtclasses),
typeCode: 'produce', typeCode: 'produce',
factoryCode: 'ds_' + _this.selectxt, factoryCode: 'ds_' + _this.selectxt,
}).then((response) => { }).then((response) => {
@ -251,9 +268,16 @@ export default {
this.optionDatalist2 = []; this.optionDatalist2 = [];
this.optionDatalist3 = []; this.optionDatalist3 = [];
this.optionDatalist4 = []; this.optionDatalist4 = [];
_this.getSupplierNoOkList(_this.selectxt) _this.getSupplierTaskList(_this.selectxt)
},
selectline2() {
const _this = this;
this.optionDatalist1 = [];
this.optionDatalist2 = [];
this.optionDatalist3 = [];
this.optionDatalist4 = [];
_this.getSupplierTaskList(_this.selectxt)
}, },
// //
}, },
}; };

Loading…
Cancel
Save