diff --git a/src/api/quality/qcGoal.js b/src/api/quality/qcGoal.js new file mode 100644 index 0000000..672a328 --- /dev/null +++ b/src/api/quality/qcGoal.js @@ -0,0 +1,61 @@ +import request from '@/utils/request' + +// 查询质量目标列表 +export function listQcGoal(query) { + return request({ + url: '/quality/qcGoal/list', + method: 'get', + params: query + }); +} + +// 查询质量目标详细 +export function getQcGoal(id) { + return request({ + url: '/quality/qcGoal/' + id, + method: 'get' + }); +} + +// 查询二级节点 +export function getChildrenList(parentId) { + return request({ + url: '/quality/qcGoal/getChildrenList/' + parentId, + method: 'get' + }); +} + + + +// 新增质量目标 +export function addQcGoal(data) { + return request({ + url: '/quality/qcGoal', + method: 'post', + data: data + }); +} + +// 修改质量目标 +export function updateQcGoal(data) { + return request({ + url: '/quality/qcGoal', + method: 'put', + data: data + }); +} + +// 删除质量目标 +export function delQcGoal(id) { + return request({ + url: '/quality/qcGoal/' + id, + method: 'delete' + }); +} + +export function getGenerate(id) { + return request({ + url: '/quality/qcGoal/generate/' + id, + method: 'get', + }); +} \ No newline at end of file diff --git a/src/api/quality/qcGoalDistribute.js b/src/api/quality/qcGoalDistribute.js new file mode 100644 index 0000000..ed4d2af --- /dev/null +++ b/src/api/quality/qcGoalDistribute.js @@ -0,0 +1,61 @@ +import request from '@/utils/request' + +// 查询质量目标分配列表 +export function listQcGoalDistribute(query) { + return request({ + url: '/quality/qcGoalDistribute/list', + method: 'get', + params: query + }); +} + +// 查询质量目标分配详细 +export function getQcGoalDistribute(id) { + return request({ + url: '/quality/qcGoalDistribute/' + id, + method: 'get' + }); +} + +// 修改质量目标分配 +export function updateQcGoalDistribute(data) { + return request({ + url: '/quality/qcGoalDistribute', + method: 'put', + data: data + }); +} + +// 删除质量目标分配 +export function delQcGoalDistribute(id) { + return request({ + url: '/quality/qcGoalDistribute/' + id, + method: 'delete' + }); +} + +// 查询用户物料未关联列表 +export function getLeftList(query) { + return request({ + url: '/quality/qcGoalDistribute/getLeftList', + method: 'get', + params: query + }); +} + +// 查询用户物料已关联列表 +export function getRightList(query) { + return request({ + url: '/quality/qcGoalDistribute/getRightList', + method: 'get', + params: query + }); +} + +export function addSupplier(data) { + return request({ + url: '/quality/qcGoalDistribute', + method: 'post', + data: data + }); +} diff --git a/src/views/kanban/equipment/index.vue b/src/views/kanban/equipment/index.vue index 065cc38..cf28d45 100644 --- a/src/views/kanban/equipment/index.vue +++ b/src/views/kanban/equipment/index.vue @@ -216,7 +216,7 @@ 排名 设备名称 设备编码 - 设备OEE + MTTR @@ -230,7 +230,7 @@ {{ index + 1 }} {{ n.equipmentName }} {{ n.equipmentCode }} - {{ n.rapairQuantity != null ? n.rapairQuantity + '%' : '--' }} + {{ n.rapairQuantity != null ? n.rapairQuantity + 'h' : '--' }} @@ -306,6 +306,8 @@ export default { }; }, created() { + this.getdictlist() + }, destroyed() { clearInterval(this.time1); @@ -316,7 +318,7 @@ export default { //console.log('zhuanhuahou',this.dateRangeone) this.selectFactorylist(); - this.getdictlist() + this.gettime(); }, methods: { @@ -391,10 +393,10 @@ export default { } }); if (item.failureRate) { - item.failureRate = item.failureRate.toFix(2) + item.failureRate = parseFloat(item.failureRate).toFixed(2) } if (item.utilizationRatio) { - item.utilizationRatio = item.utilizationRatio.toFix(2) + item.utilizationRatio = parseFloat(item.utilizationRatio).toFixed(2) } }); } diff --git a/src/views/quality/qcGoal/distribution.vue b/src/views/quality/qcGoal/distribution.vue new file mode 100644 index 0000000..76c190f --- /dev/null +++ b/src/views/quality/qcGoal/distribution.vue @@ -0,0 +1,353 @@ + + + + diff --git a/src/views/quality/qcGoal/index.vue b/src/views/quality/qcGoal/index.vue new file mode 100644 index 0000000..ca69ec0 --- /dev/null +++ b/src/views/quality/qcGoal/index.vue @@ -0,0 +1,528 @@ + + +