diff --git a/src/api/device/faultDescription.js b/src/api/device/faultDescription.js new file mode 100644 index 00000000..b808e250 --- /dev/null +++ b/src/api/device/faultDescription.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询故障描述列表 +export function listFaultDescription(query) { + return request({ + url: '/device/faultDescription/list', + method: 'get', + params: query + }); +} + +// 查询故障描述详细 +export function getFaultDescription(faultId) { + return request({ + url: '/device/faultDescription/' + faultId, + method: 'get' + }); +} + +// 新增故障描述 +export function addFaultDescription(data) { + return request({ + url: '/device/faultDescription', + method: 'post', + data: data + }); +} + +// 修改故障描述 +export function updateFaultDescription(data) { + return request({ + url: '/device/faultDescription', + method: 'put', + data: data + }); +} + +// 删除故障描述 +export function delFaultDescription(faultId) { + return request({ + url: '/device/faultDescription/' + faultId, + method: 'delete' + }); +} diff --git a/src/api/device/faultMeasures.js b/src/api/device/faultMeasures.js new file mode 100644 index 00000000..c2d7c419 --- /dev/null +++ b/src/api/device/faultMeasures.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询故障维修措施列表 +export function listFaultMeasures(query) { + return request({ + url: '/device/faultMeasures/list', + method: 'get', + params: query + }); +} + +// 查询故障维修措施详细 +export function getFaultMeasures(faultId) { + return request({ + url: '/device/faultMeasures/' + faultId, + method: 'get' + }); +} + +// 新增故障维修措施 +export function addFaultMeasures(data) { + return request({ + url: '/device/faultMeasures', + method: 'post', + data: data + }); +} + +// 修改故障维修措施 +export function updateFaultMeasures(data) { + return request({ + url: '/device/faultMeasures', + method: 'put', + data: data + }); +} + +// 删除故障维修措施 +export function delFaultMeasures(faultId) { + return request({ + url: '/device/faultMeasures/' + faultId, + method: 'delete' + }); +} diff --git a/src/api/device/faultReason.js b/src/api/device/faultReason.js new file mode 100644 index 00000000..03583cbd --- /dev/null +++ b/src/api/device/faultReason.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询故障原因列表 +export function listFaultReason(query) { + return request({ + url: '/device/faultReason/list', + method: 'get', + params: query + }); +} + +// 查询故障原因详细 +export function getFaultReason(faultId) { + return request({ + url: '/device/faultReason/' + faultId, + method: 'get' + }); +} + +// 新增故障原因 +export function addFaultReason(data) { + return request({ + url: '/device/faultReason', + method: 'post', + data: data + }); +} + +// 修改故障原因 +export function updateFaultReason(data) { + return request({ + url: '/device/faultReason', + method: 'put', + data: data + }); +} + +// 删除故障原因 +export function delFaultReason(faultId) { + return request({ + url: '/device/faultReason/' + faultId, + method: 'delete' + }); +} diff --git a/src/api/device/faultReport.js b/src/api/device/faultReport.js index a89c5ead..ad5344fd 100644 --- a/src/api/device/faultReport.js +++ b/src/api/device/faultReport.js @@ -77,3 +77,12 @@ export function getRepairPersonList(query) { params: query }); } + +// 查询组线列表 +export function getGroupLineList(query) { + return request({ + url: '/device/faultReport/getGroupLineList', + method: 'get', + params: query + }); +} diff --git a/src/api/device/faultType.js b/src/api/device/faultType.js index 007c1b7b..eb6c28c2 100644 --- a/src/api/device/faultType.js +++ b/src/api/device/faultType.js @@ -2,43 +2,43 @@ import request from '@/utils/request' // 查询故障类型维护列表 export function listFaultType(query) { - return request({ - url: '/device/faultType/list', - method: 'get', - params: query - }); + return request({ + url: '/device/faultType/list', + method: 'get', + params: query + }); } // 查询故障类型维护详细 export function getFaultType(faultId) { - return request({ - url: '/device/faultType/' + faultId, - method: 'get' - }); + return request({ + url: '/device/faultType/' + faultId, + method: 'get' + }); } // 新增故障类型维护 export function addFaultType(data) { - return request({ - url: '/device/faultType', - method: 'post', - data: data - }); + return request({ + url: '/device/faultType', + method: 'post', + data: data + }); } // 修改故障类型维护 export function updateFaultType(data) { - return request({ - url: '/device/faultType', - method: 'put', - data: data - }); + return request({ + url: '/device/faultType', + method: 'put', + data: data + }); } // 删除故障类型维护 export function delFaultType(faultId) { - return request({ - url: '/device/faultType/' + faultId, - method: 'delete' - }); + return request({ + url: '/device/faultType/' + faultId, + method: 'delete' + }); } diff --git a/src/api/device/operation.js b/src/api/device/operation.js new file mode 100644 index 00000000..5e8dde26 --- /dev/null +++ b/src/api/device/operation.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询设备运行记录列表 +export function listOperation(query) { + return request({ + url: '/device/operation/list', + method: 'get', + params: query + }); +} + +// 查询设备运行记录详细 +export function getOperation(id) { + return request({ + url: '/device/operation/' + id, + method: 'get' + }); +} + +// 新增设备运行记录 +export function addOperation(data) { + return request({ + url: '/device/operation', + method: 'post', + data: data + }); +} + +// 修改设备运行记录 +export function updateOperation(data) { + return request({ + url: '/device/operation', + method: 'put', + data: data + }); +} + +// 删除设备运行记录 +export function delOperation(id) { + return request({ + url: '/device/operation/' + id, + method: 'delete' + }); +} diff --git a/src/api/device/plan.js b/src/api/device/plan.js index fe7ffb0f..c75952fe 100644 --- a/src/api/device/plan.js +++ b/src/api/device/plan.js @@ -43,6 +43,14 @@ export function getEquList(equQuery) { }); } +// 获取设备组线信息 +export function getGroupLine() { + return request({ + url: '/device/inspectionPlan/getGroupLine', + method: 'get' + }); +} + // 查询计划列表 export function listPlan(query) { return request({ diff --git a/src/api/kanban/quality.js b/src/api/kanban/quality.js new file mode 100644 index 00000000..404ab96c --- /dev/null +++ b/src/api/kanban/quality.js @@ -0,0 +1,96 @@ +import request from '@/utils/request' +// 获取工厂下拉列表 +export function getBoardFactory(data) { + return request({ + url: '/mes/wcsInterface/getBoardFactory', + method: 'post', + data: data + }); +} +// 获取头部统计维度年月日 +export function getDictData(data) { + return request({ + url: '/quality/qcInterface/getDictData', + method: 'post', + data: data + }); +} +// 来料--订单异常信息 +export function getOverallInfo(data) { + return request({ + url: '/quality/qcInterface/getOverallInfo', + method: 'post', + data: data, + }); +} +// 来料--异常分布 过程检验--当日不良占比类型 +export function getCheckProjectsPie(data) { + return request({ + url: '/quality/qcInterface/getCheckProjectsPie', + method: 'post', + data: data + }); +} +// 来料--供应商产品数量不良TOP5来料--供应商产品批次不良TOP5 +export function getSupplierBadTOP5(data) { + return request({ + url: '/quality/qcInterface/getSupplierBadTOP5', + method: 'post', + data: data + }); +} +// 来料--订单异常详情 +export function getSupplierNoOkList(data) { + return request({ + url: '/quality/qcInterface/getSupplierNoOkList', + method: 'post', + data: data + }); +} +// 来料--供应商来料检验及时性详情 生产过程--检验实时详情 +export function getSupplierTaskList(data) { + return request({ + url: '/quality/qcInterface/getSupplierTaskList', + method: 'post', + data: data + }); +}// 过程检验-检验统计 +export function getProduceStaticInfo(data) { + return request({ + url: '/quality/qcInterface/getProduceStaticInfo', + method: 'post', + data: data + }); +} +// 过程检验--质量异常信息 +export function getProduceNoOkList(data) { + return request({ + url: '/quality/qcInterface/getProduceNoOkList', + method: 'post', + data: data + }); +} +// 过程检验--产品不合格数量对比 +export function getProMonthNoOk(data) { + return request({ + url: '/quality/qcInterface/getProMonthNoOk', + method: 'post', + data: data + }); +} +// 过程检验--产品异常趋势 +export function getLineDayNoOk(data) { + return request({ + url: '/quality/qcInterface/getLineDayNoOk', + method: 'post', + data: data + }); +} +// 过程检验--产品不合格率同期对比 +export function getMonthOfYearContrast(data) { + return request({ + url: '/quality/qcInterface/getMonthOfYearContrast', + method: 'post', + data: data + }); +} \ No newline at end of file diff --git a/src/api/mes/reportWork.js b/src/api/mes/reportWork.js index a0022621..fb5c5fe9 100644 --- a/src/api/mes/reportWork.js +++ b/src/api/mes/reportWork.js @@ -81,6 +81,14 @@ export function getLineChartData() { method: 'get' }); } + +// 获取组线每月设备故障数 +export function getGroupLineEquInfo() { + return request({ + url: '/device/deviceInterface/getGroupLineEquInfo', + method: 'get' + }); +} //查询设备小时表头 export function getHourProductionTitle(query) { return request({ @@ -115,7 +123,7 @@ export function getMesListUser(query) { method: 'get', params: query }); -} +} //查询工单列表 export function getMesListWorkOrder(query) { @@ -124,7 +132,7 @@ export function getMesListWorkOrder(query) { method: 'get', params: query }); -} +} //查询线体列表 export function getMesListEquip(query) { @@ -133,7 +141,7 @@ export function getMesListEquip(query) { method: 'get', params: query }); -} +} //报工按钮 export function reportSap(workorderCode) { const data = { diff --git a/src/assets/images/quality/bg-border2title.png b/src/assets/images/quality/bg-border2title.png new file mode 100644 index 00000000..6ff7ab4c Binary files /dev/null and b/src/assets/images/quality/bg-border2title.png differ diff --git a/src/assets/images/quality/bg-dingdan.png b/src/assets/images/quality/bg-dingdan.png new file mode 100644 index 00000000..a8ef6cc6 Binary files /dev/null and b/src/assets/images/quality/bg-dingdan.png differ diff --git a/src/assets/images/quality/bgicon.png b/src/assets/images/quality/bgicon.png new file mode 100644 index 00000000..278ddbee Binary files /dev/null and b/src/assets/images/quality/bgicon.png differ diff --git a/src/assets/images/quality/bgtable.png b/src/assets/images/quality/bgtable.png new file mode 100644 index 00000000..d20c441e Binary files /dev/null and b/src/assets/images/quality/bgtable.png differ diff --git a/src/assets/images/quality/icon-dingdan1.png b/src/assets/images/quality/icon-dingdan1.png new file mode 100644 index 00000000..b54055e2 Binary files /dev/null and b/src/assets/images/quality/icon-dingdan1.png differ diff --git a/src/assets/images/quality/icon-dingdan2.png b/src/assets/images/quality/icon-dingdan2.png new file mode 100644 index 00000000..1c120dad Binary files /dev/null and b/src/assets/images/quality/icon-dingdan2.png differ diff --git a/src/assets/images/quality/icon-dingdan3.png b/src/assets/images/quality/icon-dingdan3.png new file mode 100644 index 00000000..922c5523 Binary files /dev/null and b/src/assets/images/quality/icon-dingdan3.png differ diff --git a/src/assets/images/quality/icon-shibie.png b/src/assets/images/quality/icon-shibie.png new file mode 100644 index 00000000..86e8d8a7 Binary files /dev/null and b/src/assets/images/quality/icon-shibie.png differ diff --git a/src/assets/images/quality/icon-xiala.png b/src/assets/images/quality/icon-xiala.png new file mode 100644 index 00000000..3bfdbba7 Binary files /dev/null and b/src/assets/images/quality/icon-xiala.png differ diff --git a/src/assets/images/quality/编组 12.png b/src/assets/images/quality/icon2.png similarity index 100% rename from src/assets/images/quality/编组 12.png rename to src/assets/images/quality/icon2.png diff --git a/src/assets/images/quality/编组 12备份 14.png b/src/assets/images/quality/编组 12备份 14.png deleted file mode 100644 index 3d705604..00000000 Binary files a/src/assets/images/quality/编组 12备份 14.png and /dev/null differ diff --git a/src/assets/images/quality/编组 12备份 15.png b/src/assets/images/quality/编组 12备份 15.png deleted file mode 100644 index 3d705604..00000000 Binary files a/src/assets/images/quality/编组 12备份 15.png and /dev/null differ diff --git a/src/assets/images/quality/编组 12备份 16.png b/src/assets/images/quality/编组 12备份 16.png deleted file mode 100644 index 3d705604..00000000 Binary files a/src/assets/images/quality/编组 12备份 16.png and /dev/null differ diff --git a/src/assets/images/quality/编组 12备份 17.png b/src/assets/images/quality/编组 12备份 17.png deleted file mode 100644 index 3d705604..00000000 Binary files a/src/assets/images/quality/编组 12备份 17.png and /dev/null differ diff --git a/src/assets/images/quality/编组 12备份 18.png b/src/assets/images/quality/编组 12备份 18.png deleted file mode 100644 index 3d705604..00000000 Binary files a/src/assets/images/quality/编组 12备份 18.png and /dev/null differ diff --git a/src/assets/images/quality/编组 12备份 19(1).png b/src/assets/images/quality/编组 12备份 19(1).png deleted file mode 100644 index 8ad27b96..00000000 Binary files a/src/assets/images/quality/编组 12备份 19(1).png and /dev/null differ diff --git a/src/assets/images/quality/编组 12备份 19(2).png b/src/assets/images/quality/编组 12备份 19(2).png deleted file mode 100644 index 5dc38cde..00000000 Binary files a/src/assets/images/quality/编组 12备份 19(2).png and /dev/null differ diff --git a/src/assets/images/quality/编组 12备份 19(3).png b/src/assets/images/quality/编组 12备份 19(3).png deleted file mode 100644 index 8437d521..00000000 Binary files a/src/assets/images/quality/编组 12备份 19(3).png and /dev/null differ diff --git a/src/assets/images/quality/编组 12备份 19(4).png b/src/assets/images/quality/编组 12备份 19(4).png deleted file mode 100644 index c21ee300..00000000 Binary files a/src/assets/images/quality/编组 12备份 19(4).png and /dev/null differ diff --git a/src/assets/images/quality/编组 12备份 19(5).png b/src/assets/images/quality/编组 12备份 19(5).png deleted file mode 100644 index 1c48746c..00000000 Binary files a/src/assets/images/quality/编组 12备份 19(5).png and /dev/null differ diff --git a/src/assets/images/quality/编组 12备份 19(6).png b/src/assets/images/quality/编组 12备份 19(6).png deleted file mode 100644 index 6584f298..00000000 Binary files a/src/assets/images/quality/编组 12备份 19(6).png and /dev/null differ diff --git a/src/assets/images/quality/编组 12备份 19(7).png b/src/assets/images/quality/编组 12备份 19(7).png deleted file mode 100644 index 61905269..00000000 Binary files a/src/assets/images/quality/编组 12备份 19(7).png and /dev/null differ diff --git a/src/assets/images/quality/编组 12备份 19.png b/src/assets/images/quality/编组 12备份 19.png deleted file mode 100644 index 3d705604..00000000 Binary files a/src/assets/images/quality/编组 12备份 19.png and /dev/null differ diff --git a/src/assets/images/quality/编组 12备份 20.png b/src/assets/images/quality/编组 12备份 20.png deleted file mode 100644 index 3d705604..00000000 Binary files a/src/assets/images/quality/编组 12备份 20.png and /dev/null differ diff --git a/src/assets/images/quality/编组 12备份 21.png b/src/assets/images/quality/编组 12备份 21.png deleted file mode 100644 index 3d705604..00000000 Binary files a/src/assets/images/quality/编组 12备份 21.png and /dev/null differ diff --git a/src/assets/images/quality/编组 12备份 22.png b/src/assets/images/quality/编组 12备份 22.png deleted file mode 100644 index 3d705604..00000000 Binary files a/src/assets/images/quality/编组 12备份 22.png and /dev/null differ diff --git a/src/assets/images/quality/编组 12备份 23.png b/src/assets/images/quality/编组 12备份 23.png deleted file mode 100644 index 3d705604..00000000 Binary files a/src/assets/images/quality/编组 12备份 23.png and /dev/null differ diff --git a/src/assets/images/quality/编组 12备份 24.png b/src/assets/images/quality/编组 12备份 24.png deleted file mode 100644 index 3d705604..00000000 Binary files a/src/assets/images/quality/编组 12备份 24.png and /dev/null differ diff --git a/src/utils/request.js b/src/utils/request.js index 59f08742..36245380 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -16,6 +16,7 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8' const service = axios.create({ // axios中请求配置有baseURL选项,表示请求URL公共部分 baseURL: process.env.VUE_APP_BASE_API, + // baseURL: 'http://192.168.202.34:30000/prod-api', // 超时 timeout: 10000 }) diff --git a/src/views/dashboard/DeviceChartLine.vue b/src/views/dashboard/DeviceChartLine.vue new file mode 100644 index 00000000..7673e57e --- /dev/null +++ b/src/views/dashboard/DeviceChartLine.vue @@ -0,0 +1,101 @@ + + + + + + + diff --git a/src/views/device/faultInformation/index.vue b/src/views/device/faultInformation/index.vue new file mode 100644 index 00000000..542cc8a3 --- /dev/null +++ b/src/views/device/faultInformation/index.vue @@ -0,0 +1,112 @@ + + + diff --git a/src/views/device/faultInformation/itemFaultDescription.vue b/src/views/device/faultInformation/itemFaultDescription.vue new file mode 100644 index 00000000..515ecdda --- /dev/null +++ b/src/views/device/faultInformation/itemFaultDescription.vue @@ -0,0 +1,444 @@ + + + diff --git a/src/views/device/faultInformation/itemFaultMeasures.vue b/src/views/device/faultInformation/itemFaultMeasures.vue new file mode 100644 index 00000000..75bd3eaf --- /dev/null +++ b/src/views/device/faultInformation/itemFaultMeasures.vue @@ -0,0 +1,430 @@ + + + diff --git a/src/views/device/faultInformation/itemFaultReason.vue b/src/views/device/faultInformation/itemFaultReason.vue new file mode 100644 index 00000000..f092fc0f --- /dev/null +++ b/src/views/device/faultInformation/itemFaultReason.vue @@ -0,0 +1,444 @@ + + + diff --git a/src/views/device/faultType/index.vue b/src/views/device/faultInformation/itemFaultType.vue similarity index 94% rename from src/views/device/faultType/index.vue rename to src/views/device/faultInformation/itemFaultType.vue index ed927bc4..b32ee213 100644 --- a/src/views/device/faultType/index.vue +++ b/src/views/device/faultInformation/itemFaultType.vue @@ -5,12 +5,13 @@ - + @@ -82,6 +84,17 @@ placeholder="请输入创建人" clearable @keyup.enter.native="handleQuery" + style="width: 140px" + /> + + + @@ -97,15 +110,6 @@ :picker-options="pickerOptions"> - - - - + @@ -231,11 +235,11 @@ - + - + - + - + @@ -323,7 +327,7 @@ export default { // 总条数 total: 0, // 故障类型维护表格数据 - faultTypeList: [], + faultList: [], // 弹出层标题 title: "", // 是否显示弹出层 @@ -363,7 +367,7 @@ export default { getList() { this.loading = true; listFaultType(this.queryParams).then(response => { - this.faultTypeList = response.rows; + this.faultList = response.rows; this.total = response.total; this.loading = false; }); @@ -458,18 +462,18 @@ export default { var faultCodes = ''; // 处理信息 - for (let i = 0; i < this.faultTypeList.length; i++) { + for (let i = 0; i < this.faultList.length; i++) { for (let j = 0; j < faultIds.length; j++) { - if (faultIds[j] == this.faultTypeList[i].faultId) { - faultCodes = faultCodes + this.faultTypeList[i].faultCode + ','; + if (faultIds[j] == this.faultList[i].faultId) { + faultCodes = faultCodes + this.faultList[i].faultCode + ','; } } } if (faultCodes == '') { - for (let i = 0; i < this.faultTypeList.length; i++) { - if (faultIds == this.faultTypeList[i].faultId) { - faultCodes = this.faultTypeList[i].faultCode; + for (let i = 0; i < this.faultList.length; i++) { + if (faultIds == this.faultList[i].faultId) { + faultCodes = this.faultList[i].faultCode; } } } diff --git a/src/views/device/faultInformation/selectSingleEquipment.vue b/src/views/device/faultInformation/selectSingleEquipment.vue new file mode 100644 index 00000000..bf9dee99 --- /dev/null +++ b/src/views/device/faultInformation/selectSingleEquipment.vue @@ -0,0 +1,333 @@ + + + diff --git a/src/views/device/faultInformation/selectSinglePerson.vue b/src/views/device/faultInformation/selectSinglePerson.vue new file mode 100644 index 00000000..7009fba2 --- /dev/null +++ b/src/views/device/faultInformation/selectSinglePerson.vue @@ -0,0 +1,229 @@ + + + diff --git a/src/views/device/faultReport/selectSingleEquipment.vue b/src/views/device/faultReport/selectSingleEquipment.vue index d35b0635..bf9dee99 100644 --- a/src/views/device/faultReport/selectSingleEquipment.vue +++ b/src/views/device/faultReport/selectSingleEquipment.vue @@ -4,7 +4,7 @@ v-if="showFlag" :visible.sync="showFlag" :modal="false" - width="1100px" + width="1200px" center :before-close="cancelEquipmentForm" > @@ -15,7 +15,7 @@ 请选择设备类型:
@@ -52,10 +52,28 @@ v-model="queryParams.itemName" placeholder="请输入设备名称" clearable - style="width: 240px" + style="width: 160px" @keyup.enter.native="handleQuery" /> + + + { + this.options = response.rows; + }); }, + //查询 + getEquList() { + this.loading = true; + this.queryParams.equipmentCode = this.queryParams.itemCode; + this.queryParams.equipmentName = this.queryParams.itemName; + getEquList(this.queryParams).then((response) => { + this.itemList = response.rows; + this.total = response.total; + this.loading = false; + }); + }, + + /** 查询分类下拉树结构 */ getEquipmentType() { getEquipmentTypeList().then((response) => { - console.log(response.rows); - this.treeData1 = response.rows; - console.log(this.treeData1); + this.treeData = response.rows; }); }, @@ -236,23 +274,24 @@ export default { // 节点单击事件 handleNodeClick(data) { - console.log("id", data.id); this.queryParams.equipmentTypeCode = data.equipmentTypeCode; - console.log(this.equipmentTypeCode); - this.handleQuery(); + console.log(this.queryParams.equipmentTypeCode); + this.queryParams.pageNum = 1; + this.getList(); }, /** 搜索按钮操作 */ handleQuery() { this.queryParams.pageNum = 1; - this.getList(); + this.getEquList(); }, /** 重置按钮操作 */ resetQuery() { this.queryParams.equipmentTypeCode = null; this.resetForm("queryForm"); - this.handleQuery(); + this.queryParams.pageNum = 1; + this.getList() }, // 多选框选中数据 @@ -279,7 +318,6 @@ export default { this.$emit("onSelected", this.selectedRows); this.queryParams.equipmentTypeCode = null; this.getList(); - console.log("111111", this.queryParams.equipmentTypeCode); this.showFlag = false; this.queryParams.itemCodeGet = ""; } @@ -288,7 +326,6 @@ export default { cancelEquipmentForm() { this.queryParams.equipmentTypeCode = null; this.getList(); - console.log("111111", this.queryParams.equipmentTypeCode); this.showFlag = false; }, }, diff --git a/src/views/device/inspectionPlan/index.vue b/src/views/device/inspectionPlan/index.vue index 14e75674..0777e0ed 100644 --- a/src/views/device/inspectionPlan/index.vue +++ b/src/views/device/inspectionPlan/index.vue @@ -539,11 +539,21 @@ + + + + + { + this.groupLineList = response.data; + this.equipmentQuery.groupLine = response.data[0].equipmentCode; + this.getEquList(); + }) + this.selectEqu = true; }, // 编辑标准确认按钮 @@ -1032,6 +1059,7 @@ export default { equipmentCode: null, equipmentName: null, workshopCode: null, + groupLine:this.groupLineList[0].equipmentCode, pageNum: 1, pageSize: 10, }; diff --git a/src/views/device/operation/index.vue b/src/views/device/operation/index.vue new file mode 100644 index 00000000..a0d60f6e --- /dev/null +++ b/src/views/device/operation/index.vue @@ -0,0 +1,547 @@ + + + diff --git a/src/views/device/repairOrder/index.vue b/src/views/device/repairOrder/index.vue index 86232382..6e42caee 100644 --- a/src/views/device/repairOrder/index.vue +++ b/src/views/device/repairOrder/index.vue @@ -343,6 +343,12 @@ prop="workReason" width="300" /> + + + + + + + + @@ -1423,6 +1442,20 @@ + + + + + + + diff --git a/src/views/device/repairOrder/selectSingleEquipment.vue b/src/views/device/repairOrder/selectSingleEquipment.vue index e06246af..5ba78bfa 100644 --- a/src/views/device/repairOrder/selectSingleEquipment.vue +++ b/src/views/device/repairOrder/selectSingleEquipment.vue @@ -4,7 +4,7 @@ v-if="showFlag" :visible.sync="showFlag" :modal="false" - width="1100px" + width="1200px" center :before-close="cancelEquipmentForm" > @@ -15,7 +15,7 @@ 请选择设备类型:
@@ -52,10 +52,28 @@ v-model="queryParams.itemName" placeholder="请输入设备名称" clearable - style="width: 240px" + style="width: 160px" @keyup.enter.native="handleQuery" /> + + + { + this.options = response.rows; + }); }, + //查询 + getEquList() { + this.loading = true; + this.queryParams.equipmentCode = this.queryParams.itemCode; + this.queryParams.equipmentName = this.queryParams.itemName; + getEquList(this.queryParams).then((response) => { + this.itemList = response.rows; + this.total = response.total; + this.loading = false; + }); + }, + + /** 查询分类下拉树结构 */ getEquipmentType() { getEquipmentTypeList().then((response) => { - console.log(response.rows); - this.treeData1 = response.rows; - console.log(this.treeData1); + this.treeData = response.rows; }); }, @@ -237,23 +274,24 @@ export default { // 节点单击事件 handleNodeClick(data) { - console.log("id", data.id); this.queryParams.equipmentTypeCode = data.equipmentTypeCode; - console.log(this.equipmentTypeCode); - this.handleQuery(); + console.log(this.queryParams.equipmentTypeCode); + this.queryParams.pageNum = 1; + this.getList(); }, /** 搜索按钮操作 */ handleQuery() { this.queryParams.pageNum = 1; - this.getList(); + this.getEquList(); }, /** 重置按钮操作 */ resetQuery() { this.queryParams.equipmentTypeCode = null; this.resetForm("queryForm"); - this.handleQuery(); + this.queryParams.pageNum = 1; + this.getList() }, // 多选框选中数据 @@ -267,7 +305,7 @@ export default { submitEquipmentForm() { const data = this.ids; if (data.length > 1) { - Message.warning("只能选择一个报修机器,请勿选择多个!"); + Message.warning("只能选择一个维修机器,请勿选择多个!"); } else { const equipmentCode = data.toString(); if (this.queryParams.itemCodeGet == "") { @@ -280,7 +318,6 @@ export default { this.$emit("onSelected", this.selectedRows); this.queryParams.equipmentTypeCode = null; this.getList(); - console.log("111111", this.queryParams.equipmentTypeCode); this.showFlag = false; this.queryParams.itemCodeGet = ""; } @@ -289,7 +326,6 @@ export default { cancelEquipmentForm() { this.queryParams.equipmentTypeCode = null; this.getList(); - console.log("111111", this.queryParams.equipmentTypeCode); this.showFlag = false; }, }, diff --git a/src/views/device/repairOrder/selectSparePartsLedger.vue b/src/views/device/repairOrder/selectSparePartsLedger.vue index 7acffbf8..3ca76002 100644 --- a/src/views/device/repairOrder/selectSparePartsLedger.vue +++ b/src/views/device/repairOrder/selectSparePartsLedger.vue @@ -6,7 +6,7 @@ :modal="false" width="1100px" center - :before-close="cancel" + :before-close = "cancel" > { this.sparePartsLedgerList = response.rows; diff --git a/src/views/device/sparePartsApplicationRecord/index.vue b/src/views/device/sparePartsApplicationRecord/index.vue index c50bd067..e8c08883 100644 --- a/src/views/device/sparePartsApplicationRecord/index.vue +++ b/src/views/device/sparePartsApplicationRecord/index.vue @@ -306,15 +306,15 @@ @@ -486,9 +486,6 @@ export default { spareName: [ { required: true, message: "备品备件名称不能为空", trigger: "blur" }, ], - spareModel: [ - { required: true, message: "规格型号不能为空", trigger: "blur" }, - ], spareQuantity: [ { required: true, message: "数量不能为空", trigger: "blur" }, ], @@ -517,6 +514,7 @@ export default { this.form.amount = obj[0].amount; this.form.storageAmount = obj[0].storageAmount; this.form.availableQuantity = obj[0].amount - obj[0].storageAmount; + this.form.spareQuantity = obj[0].spareQuantity; }, //设备选择 handleSelectEquipment() { diff --git a/src/views/device/sparePartsApplicationRecord/selectSinglePerson.vue b/src/views/device/sparePartsApplicationRecord/selectSinglePerson.vue index 111400c3..493e3b01 100644 --- a/src/views/device/sparePartsApplicationRecord/selectSinglePerson.vue +++ b/src/views/device/sparePartsApplicationRecord/selectSinglePerson.vue @@ -84,18 +84,6 @@ v-if="columns[1].visible" :show-overflow-tooltip="true" /> - - - - - - - + - \ No newline at end of file diff --git a/src/views/device/spotCheckPlan/index.vue b/src/views/device/spotCheckPlan/index.vue index c14520f1..642b9425 100644 --- a/src/views/device/spotCheckPlan/index.vue +++ b/src/views/device/spotCheckPlan/index.vue @@ -567,11 +567,21 @@ border title="选择设备" :visible.sync="selectEqu" - width="50%" + width="1100px" append-to-body > + + + + + { + this.groupLineList = response.data; + this.equipmentQuery.groupLine = response.data[0].equipmentCode; + this.getEquList(); + }) + this.selectEqu = true; }, // 编辑标准确认按钮 @@ -1077,6 +1104,7 @@ export default { equipmentCode: null, equipmentName: null, workshopCode: null, + groupLine:this.groupLineList[0].equipmentCode, pageNum: 1, pageSize: 10, }; diff --git a/src/views/device/summaryReport/index.vue b/src/views/device/summaryReport/index.vue index a37dff7d..30bb251e 100644 --- a/src/views/device/summaryReport/index.vue +++ b/src/views/device/summaryReport/index.vue @@ -76,7 +76,7 @@ - + diff --git a/src/views/device/upkeepOrder/index.vue b/src/views/device/upkeepOrder/index.vue index c254d5e4..0d9a38dc 100644 --- a/src/views/device/upkeepOrder/index.vue +++ b/src/views/device/upkeepOrder/index.vue @@ -617,11 +617,21 @@ + + + + + { + this.groupLineList = response.data; + this.equipmentQuery.groupLine = response.data[0].equipmentCode; + this.getEquList(); + }) + this.selectEqu = true; }, // 备件选择完成按钮 diff --git a/src/views/device/upkeepPlan/index.vue b/src/views/device/upkeepPlan/index.vue index e79f265c..eb0f3fe8 100644 --- a/src/views/device/upkeepPlan/index.vue +++ b/src/views/device/upkeepPlan/index.vue @@ -597,11 +597,21 @@ + + + + + { + this.groupLineList = response.data; + this.equipmentQuery.groupLine = response.data[0].equipmentCode; + this.getEquList(); + }) + this.selectEqu = true; }, // 上一步 @@ -1561,6 +1588,7 @@ export default { equipmentCode: null, equipmentName: null, workshopCode: null, + groupLine:this.groupLineList[0].equipmentCode, pageNum: 1, pageSize: 10, }; diff --git a/src/views/index.vue b/src/views/index.vue index bb0aa0bf..dc30c723 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -22,6 +22,12 @@ + + {{deviceTitle}} + + + +
@@ -30,10 +36,12 @@ import LineChart from './dashboard/LineChart'; import PieChart from './dashboard/PieChart'; import PieChart2 from './dashboard/PieChart2'; -import {getLineChartData} from '@/api/mes/reportWork' +import {getGroupLineEquInfo, getLineChartData} from '@/api/mes/reportWork' +import DeviceChartLine from "./dashboard/DeviceChartLine"; export default { name: "Index", components: { + DeviceChartLine, LineChart//,PieChart,PieChart2 }, data() { @@ -41,11 +49,14 @@ export default { // 版本号 version: "1.0.0", lineChartData: null, - title:"本月工厂产量" + deviceChartLineData:null, + title:"本月工厂产量", + deviceTitle: "各组线月设备故障数" }; }, created() { this.getLineChartData(); + this.getGroupLineEquInfo(); }, methods: { goTarget(href) { @@ -55,6 +66,11 @@ export default { getLineChartData().then(data => { this.lineChartData = data; }); + }, + getGroupLineEquInfo(){ + getGroupLineEquInfo().then(response => { + this.deviceChartLineData = response.data; + }); } }, }; diff --git a/src/views/kanban/quality/kanban1.vue b/src/views/kanban/quality/kanban1.vue index 5e2e34e6..cf418546 100644 --- a/src/views/kanban/quality/kanban1.vue +++ b/src/views/kanban/quality/kanban1.vue @@ -46,7 +46,7 @@
- 15000 + {{ Statistics.todayPro }}
@@ -56,7 +56,7 @@
- 12000 + {{ Statistics.todaySample }}
@@ -66,7 +66,7 @@
- 3000 + {{ Statistics.todayNoOk }}
@@ -78,7 +78,7 @@
- 15000 + {{ Statistics.monthPro }}
@@ -88,7 +88,7 @@
- 3000 + {{ Statistics.monthNoOk }}
@@ -119,15 +119,16 @@
+ :key="index" v-for="(n, index) in Qualitylist">
- 产品1直径过大 + {{ n.projectName }} +
- 张三 2023.10.30 + {{ n.checkManName }} {{ n.checkTime }}
@@ -156,7 +157,7 @@
产品不同工序异常对比
-
+
@@ -169,14 +170,13 @@ + + \ No newline at end of file diff --git a/src/views/kanban/quality/kanban3.vue b/src/views/kanban/quality/kanban3.vue index e69de29b..c62c379c 100644 --- a/src/views/kanban/quality/kanban3.vue +++ b/src/views/kanban/quality/kanban3.vue @@ -0,0 +1,614 @@ + + + + + \ No newline at end of file diff --git a/src/views/mes/prepare/index.vue b/src/views/mes/prepare/index.vue index fef9d83d..9338540d 100644 --- a/src/views/mes/prepare/index.vue +++ b/src/views/mes/prepare/index.vue @@ -9,9 +9,9 @@ @keyup.enter.native="handleQuery" /> - + + 搜索 重置 @@ -128,41 +129,24 @@ - - - - + + + - - - + - + + --> + + + width="170"> + width="240"> + + @@ -454,7 +445,7 @@ export default { printPrepareByCode(this.selectPrepare[0].workorderCode).then(response => { console.log(response.data) this.printData.factory = response.data.mesPrepareDetailList[0].factoryCode - this.printData.productDate = response.data.mesPrepare.productDate + this.printData.productDate = response.data.mesPrepareDetailList[0].productDate this.printData.printDate = moment(new Date()).format('YYYY-MM-DD') this.printData.workTable = response.data.mesPrepareDetailList this.refreshNewWorkerTable = true // 立即将refreshProTable设置为true,显示表格 diff --git a/src/views/mes/reportWork/index.vue b/src/views/mes/reportWork/index.vue index 52d62725..a3965470 100644 --- a/src/views/mes/reportWork/index.vue +++ b/src/views/mes/reportWork/index.vue @@ -935,7 +935,7 @@ export default { return reportSap(code); }).then(() => { this.getList(); - this.$modal.msgSuccess("报工成功"); + //this.$modal.msgSuccess("报工成功"); }).catch(() => {}); }, /** 报工详情按钮操作 */ diff --git a/src/views/quality/qcIncome/index.vue b/src/views/quality/qcIncome/index.vue index ab77a977..d7fa5e59 100644 --- a/src/views/quality/qcIncome/index.vue +++ b/src/views/quality/qcIncome/index.vue @@ -253,17 +253,22 @@ - + - + + + + + + - + + diff --git a/src/views/quality/qcProduce/index.vue b/src/views/quality/qcProduce/index.vue index 500a5f1a..511c8b9f 100644 --- a/src/views/quality/qcProduce/index.vue +++ b/src/views/quality/qcProduce/index.vue @@ -319,17 +319,22 @@ - + + + + + + - + - + diff --git a/src/views/quality/qcProduce/selectWorkOrder.vue b/src/views/quality/qcProduce/selectWorkOrder.vue index a2270c67..7d7fee16 100644 --- a/src/views/quality/qcProduce/selectWorkOrder.vue +++ b/src/views/quality/qcProduce/selectWorkOrder.vue @@ -25,12 +25,13 @@ - - + + + - +