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