|
|
|
@ -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)
|
|
|
|
|
},
|
|
|
|
|
//左侧第一个选择类型下拉框 回调函数
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|