修改看板统计维度

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

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

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

@ -22,13 +22,13 @@
<!-- <option :key="index" :value="x.seriesName" v-for="(x, index) in ceshib">{{ x.seriesName }}</option> -->
</select>
</div>
<!-- <div class="selectborder selectborder1">
<select v-model="selectxtclasses" class="select1" @change="selectline2(selectxtclasses)">
<option :key="index" :value="x.shiftId" v-for="(x, index) in classesList">
{{ x.shiftDesc }}
</option>
</select>
</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 class="timebox">
<div class="time">
@ -176,9 +176,10 @@ import {
getProMonthNoOk,
getLineDayNoOk,
getMonthOfYearContrast,
getDictData,
} from "@/api/kanban/quality";
import {
getDeviceRefreshTime,
getDeviceRefreshTime,
} from "@/api/kanban/equipment";
import * as echarts from "echarts";
import moment from "moment";
@ -224,6 +225,8 @@ export default {
Statistics: {},
Qualitylist: [],
seriesmyChart5: [],
dictDatatype: [],
RefreshTime: null,
};
},
created() { },
@ -256,8 +259,8 @@ export default {
if (response.data) {
_this.getLineList = response.data;
_this.selectxt = _this.getLineList[0].parentName;
this.getdatalist()
this.initChart1()
this.getDictData()
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() {
const _this = this;
getProduceStaticInfo({
ymdType: '统计维度',
ymdType: moment().format(_this.selectxtclasses),
typeCode: 'material',
factoryCode: 'ds_' + _this.selectxt,
}).then((response) => {
@ -298,7 +318,7 @@ export default {
});
getCheckProjectsPie({
typeCode: 'produce',
ymdType: moment().format('DD'),
ymdType: moment().format(_this.selectxtclasses),
factoryCode: 'ds_' + _this.selectxt,
}).then((response) => {
if (response) {
@ -1707,7 +1727,15 @@ export default {
this.getdatalist()
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> -->
</select>
</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 class="timebox">
<div class="time">
@ -161,7 +168,7 @@ import {
getCheckProjectsPie,
getSupplierBadTOP5,
getSupplierNoOkList,
getSupplierTaskList,
getDictData,
} from "@/api/kanban/quality";
import {
getDeviceRefreshTime,
@ -234,7 +241,8 @@ export default {
}
],
RefreshTime:null,
dictDatatype:[],
};
},
created() { },
@ -268,8 +276,7 @@ export default {
if (response.data) {
_this.getLineList = response.data;
_this.selectxt = _this.getLineList[0].parentName;
_this.getdatalist()
_this.getDeviceRefreshTime()
_this.getDictData()
}
});
},
@ -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() {
const _this = this;
getOverallInfo({
ymdType: '统计维度',
ymdType: moment().format(_this.selectxtclasses),
typeCode: 'material',
factoryCode: 'ds_' + _this.selectxt,
}).then((response) => {
@ -297,7 +320,7 @@ export default {
}
});
getCheckProjectsPie({
ymdType: '统计维度',
ymdType: moment().format(_this.selectxtclasses),
typeCode: 'material',
factoryCode: 'ds_' + _this.selectxt,
}).then((response) => {
@ -313,7 +336,7 @@ export default {
}
});
getSupplierBadTOP5({
ymdType: '统计维度',
ymdType: moment().format(_this.selectxtclasses),
typeCode: 'material',
factoryCode: 'ds_' + _this.selectxt,
}).then((response) => {
@ -336,7 +359,7 @@ export default {
});
this.orderdetail = []
getSupplierNoOkList({
ymdType: '统计维度',
ymdType: moment().format(_this.selectxtclasses),
typeCode: 'material',
factoryCode: 'ds_' + _this.selectxt,
}).then((response) => {
@ -964,7 +987,14 @@ export default {
this.optionDatalist4 = [];
_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>
import {
getBoardFactory,
getSupplierNoOkList,
getSupplierTaskList,
getDictData,
} from "@/api/kanban/quality";;
import {
getDeviceRefreshTime,
getDeviceRefreshTime,
} from "@/api/kanban/equipment";
import * as echarts from "echarts";
import moment from "moment";
@ -169,7 +170,8 @@ export default {
equipmentrepairlist: [],
equipmentstabilizelist: [],
equipmentinfo: [],
RefreshTime: null,
dictDatatype: [],
};
},
created() { },
@ -202,7 +204,22 @@ export default {
if (response.data) {
_this.getLineList = response.data;
_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()
}
});
@ -214,16 +231,16 @@ export default {
console.log(response.data)
this.RefreshTime = response.data
this.time1 = setInterval(() => {
_this.getSupplierNoOkList(_this.selectxt)
_this.getSupplierTaskList(_this.selectxt)
}, 1000 * 60 * this.RefreshTime);
}
});
},
getSupplierNoOkList() {
getSupplierTaskList() {
const _this = this;
this.Inspectiondetails = []
getSupplierNoOkList({
ymdType: '统计维度',
getSupplierTaskList({
ymdType: moment().format(_this.selectxtclasses),
typeCode: 'material',
factoryCode: 'ds_' + _this.selectxt,
}).then((response) => {
@ -234,8 +251,8 @@ export default {
});
}
});
getSupplierNoOkList({
ymdType: 'dd',
getSupplierTaskList({
ymdType: moment().format(_this.selectxtclasses),
typeCode: 'produce',
factoryCode: 'ds_' + _this.selectxt,
}).then((response) => {
@ -251,9 +268,16 @@ export default {
this.optionDatalist2 = [];
this.optionDatalist3 = [];
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