diff --git a/.env.dev b/.env.dev index 08b198b8..1d32e12e 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ ### # @Author: Do not edit # @Date: 2023-08-29 09:40:39 - # @LastEditTime: 2023-11-21 10:36:47 + # @LastEditTime: 2023-12-14 14:02:40 # @LastEditors: DY # @Description: ### diff --git a/dist.zip b/dist.zip deleted file mode 100644 index 21f19acd..00000000 Binary files a/dist.zip and /dev/null differ diff --git a/src/api/base/coreHotMaterial.js b/src/api/base/coreHotMaterial.js index 3610dc78..c4dc05da 100644 --- a/src/api/base/coreHotMaterial.js +++ b/src/api/base/coreHotMaterial.js @@ -1,7 +1,7 @@ /* * @Author: Do not edit * @Date: 2023-10-21 11:50:46 - * @LastEditTime: 2023-11-15 15:56:14 + * @LastEditTime: 2023-12-14 10:57:24 * @LastEditors: DY * @Description: */ @@ -65,4 +65,31 @@ export function getHotMaterialList(query) { method: 'get', params: query }) +} + +// 创建原料质量检测条目 +export function createHotMaterialCheck(data) { + return request({ + url: '/base/core-hot-material-check/create', + method: 'post', + data: data + }) +} + +// 更新原料质量检测条目 +export function updateHotMaterialCheck(data) { + return request({ + url: '/base/core-hot-material-check/update', + method: 'put', + data: data + }) +} + +// 获得质量检测条目列表 +export function getHotCheckList(query) { + return request({ + url: '/base/core-hot-material-check/listByMaterial', + method: 'get', + params: query + }) } \ No newline at end of file diff --git a/src/api/base/qualityHotMaterial.js b/src/api/base/qualityHotMaterial.js new file mode 100644 index 00000000..23ceeeb1 --- /dev/null +++ b/src/api/base/qualityHotMaterial.js @@ -0,0 +1,101 @@ + +/* + * @Author: zhp + * @Date: 2023-11-06 15:38:12 + * @LastEditTime: 2023-12-08 16:08:35 + * @LastEditors: zhp + * @Description: + */ +import request from '@/utils/request' + +// 创建质量检测类型基础 +export function createQualityHotMaterial(data) { + return request({ + url: '/base/quality-hot-material/create', + method: 'post', + data: data + }) +} + +// 更新质量检测类型基础 +export function updateQualityHotMaterial(data) { + return request({ + url: '/base/quality-hot-material/update', + method: 'put', + data: data + }) +} + +// 删除质量检测类型基础 +export function deleteQualityHotMaterial(id) { + return request({ + url: '/base/quality-hot-material/delete?id=' + id, + method: 'delete' + }) +} + +// 获得质量检测类型基础 +export function getQualityHotMaterial(id) { + return request({ + url: '/base/quality-hot-material/get?id=' + id, + method: 'get' + }) +} + +// 获得质量检测类型基础分页 +export function getQualityHotMaterialPage(query) { + return request({ + url: 'base/quality-hot-material/page', + method: 'get', + params: query + }) +} + +// 导出质量检测类型基础 Excel +// export function exportQualityScrapTypeExcel(query) { +// return request({ +// url: '/base/quality-scrap-type/export-excel', +// method: 'get', +// params: query, +// responseType: 'blob' +// }) +// } + +export function getCode(query) { + return request({ + url: '/base/quality-hot-material/getCode', + method: 'get', + params: query + }) +} +export function getHotMaterialAllList(query) { + return request({ + url: '/base/core-hot-material/listAll', + method: 'get', + params: query + }) +} + +export function getSupplierList(query) { + return request({ + url: '/base/core-supplier/listAll', + method: 'get', + params: query + }) +} + +export function getWorkerList(query) { + return request({ + url: '/base/core-worker/listAll', + method: 'get', + params: query + }) +} + +export function getMaterialCheckList(query) { + return request({ + url: '/base/core-hot-material-check/listByMaterial', + method: 'get', + params: query + }) +} diff --git a/src/api/base/qualityInspectionBoxBtn.js b/src/api/base/qualityInspectionBoxBtn.js index 44ffd522..45998d1a 100644 --- a/src/api/base/qualityInspectionBoxBtn.js +++ b/src/api/base/qualityInspectionBoxBtn.js @@ -1,10 +1,17 @@ +/* + * @Author: zhp + * @Date: 2023-12-04 14:10:37 + * @LastEditTime: 2023-12-13 16:03:46 + * @LastEditors: zhp + * @Description: + */ import request from '@/utils/request' // 创建安灯按钮16键对应 export function createQualityInspectionBoxBtn(data) { return request({ - url: '/base/quality-inspection-box-btn/create', - method: 'post', + url: '/base/quality-inspection-box-btn/updateBatch', + method: 'put', data: data }) } @@ -52,3 +59,19 @@ export function exportQualityInspectionBoxBtnExcel(query) { responseType: 'blob' }) } + +export function getAllDetByTypeList(query) { + return request({ + url: '/base/quality-scrap-det/scrapMap', + method: 'get', + params: query, + }) +} +export function getListByLineSection(query) { + return request({ + url: '/base/quality-inspection-box-btn/detListByLineSection', + method: 'get', + params: query, + }) +} + diff --git a/src/api/base/qualityScrapDet.js b/src/api/base/qualityScrapDet.js index 1cf724ac..9811bca1 100644 --- a/src/api/base/qualityScrapDet.js +++ b/src/api/base/qualityScrapDet.js @@ -1,7 +1,7 @@ /* * @Author: zhp * @Date: 2023-11-06 15:38:12 - * @LastEditTime: 2023-11-06 15:39:39 + * @LastEditTime: 2023-12-08 09:46:55 * @LastEditors: zhp * @Description: */ @@ -67,3 +67,4 @@ export function getCode(query) { params: query }) } + diff --git a/src/api/monitoring/qualityIsra.js b/src/api/monitoring/qualityIsra.js new file mode 100644 index 00000000..4c33d57b --- /dev/null +++ b/src/api/monitoring/qualityIsra.js @@ -0,0 +1,63 @@ +/* + * @Author: zhp + * @Date: 2023-12-08 15:26:59 + * @LastEditTime: 2023-12-11 15:21:44 + * @LastEditors: zhp + * @Description: + */ +import request from '@/utils/request' +export function getQualityIsraPage(query) { + return request({ + url: 'base/quality-isra-statistics/getIsraData', + method: 'get', + params: query + }) +} + +export function getQualityIsraDayMap(query) { + return request({ + url: '/base/quality-isra-statistics/dayMap', + method: 'get', + params: query + }) +} + +export function getQualityIsraWeekMap(query) { + return request({ + url: '/base/quality-isra-statistics/weekMap', + method: 'get', + params: query + }) +} + +export function getQualityIsraMonthMap(query) { + return request({ + url: '/base/quality-isra-statistics/monthMap', + method: 'get', + params: query + }) +} + +export function getQualityIsraDayList(query) { + return request({ + url: '/base/quality-isra-statistics/dayList', + method: 'get', + params: query + }) +} + +export function getQualityIsraWeekList(query) { + return request({ + url: '/base/quality-isra-statistics/weekList', + method: 'get', + params: query + }) +} + +export function getQualityIsraMonthList(query) { + return request({ + url: '/base/quality-isra-statistics/monthList', + method: 'get', + params: query + }) +} diff --git a/src/api/quality/rawMaterialTraceability.js b/src/api/quality/rawMaterialTraceability.js index aba01790..44d6392d 100644 --- a/src/api/quality/rawMaterialTraceability.js +++ b/src/api/quality/rawMaterialTraceability.js @@ -1,7 +1,7 @@ /* * @Author: zhp * @Date: 2023-10-31 10:55:20 - * @LastEditTime: 2023-10-31 15:05:30 + * @LastEditTime: 2023-12-06 14:09:14 * @LastEditors: zhp * @Description: */ @@ -33,3 +33,12 @@ export function exportEnergyPlcExcel(query) { responseType: 'blob' }) } + +export function getOriginalGlassRetrace(query) { + return request({ + url: '/base/original-glass-statistics/originalGlassRetrace', + method: 'get', + params: query, + }) +} + diff --git a/src/api/report/glass.js b/src/api/report/glass.js new file mode 100644 index 00000000..00b52fd3 --- /dev/null +++ b/src/api/report/glass.js @@ -0,0 +1,61 @@ +/* + * @Author: Do not edit + * @Date: 2023-12-08 10:26:48 + * @LastEditTime: 2023-12-13 17:16:00 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 创建原片自动报 +export function createGlass(data) { + return request({ + url: '/base/report-auto-original-glass/create', + method: 'post', + data: data + }) +} + +// 批量更新原片自动报 +export function updateGlass(data) { + return request({ + url: '/base/report-auto-original-glass/updatePlus', + method: 'put', + data: data + }) +} +// 更新原片自动报 +export function updateGlassRemark(data) { + return request({ + url: '/base/report-auto-original-glass/update', + method: 'put', + data: data + }) +} + +// 获得原片自动报 +export function getGlass(id) { + return request({ + url: '/base/report-auto-original-glass/get?id=' + id, + method: 'get' + }) +} + +// 获得原片分页 +export function getGlassPage(query) { + return request({ + url: '/base/report-auto-original-glass/listPlus', + method: 'get', + params: query + }) +} + +// 导出原片自动报 Excel +export function exportGlasscExcel(query) { + return request({ + url: '/base/report-auto-original-glass/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/api/report/production.js b/src/api/report/production.js new file mode 100644 index 00000000..aecf5bda --- /dev/null +++ b/src/api/report/production.js @@ -0,0 +1,41 @@ +/* + * @Author: zhp + * @Date: 2023-12-12 13:49:02 + * @LastEditTime: 2023-12-13 15:52:11 + * @LastEditors: zhp + * @Description: + */ +import request from '@/utils/request' + +// 获得质量检查信息记录表分页 + +export function getProductionDataList(query) { + return request({ + url: '/base/report-auto-production/listPlus', + method: 'get', + data: query, + }) +} + +export function updateProductionDataList(query) { + return request({ + url: '/base/report-auto-production/updatePlus', + method: 'put', + data: query, + }) +} +export function updateSumProductionDataList(query) { + return request({ + url: '/base/report-auto-production/update', + method: 'put', + data: query, + }) +} + +export function getAutoDeliveDataList(query) { + return request({ + url: '/base/report-auto-delive/listPlus', + method: 'put', + data: query, + }) +} diff --git a/src/components/DialogForm/index.vue b/src/components/DialogForm/index.vue index c780edba..0c4fcff1 100644 --- a/src/components/DialogForm/index.vue +++ b/src/components/DialogForm/index.vue @@ -142,9 +142,6 @@ function findMaxLabelWidth(rows) { if (!opt.label) return 0; if (opt.label.length > max) { max = opt.label.length; - if (opt.label.includes('(')) { - max = max - 3 - } } }); }); @@ -242,7 +239,7 @@ export default { size: { type: String, default: '', - } + }, }, data() { return { diff --git a/src/components/Editor/index.vue b/src/components/Editor/index.vue index 50ae3e74..dc9fc82d 100644 --- a/src/components/Editor/index.vue +++ b/src/components/Editor/index.vue @@ -83,7 +83,7 @@ export default { ], }, placeholder: '请输入内容', - // readOnly: false, + readOnly: true, }, }; }, @@ -123,7 +123,6 @@ export default { const editor = this.$refs.editor; this.Quill = new Quill(editor, this.options); // 取消自动聚焦 start - this.Quill?.enable(false); this.$nextTick(() => { this.Quill?.blur(); this.Quill?.enable(true); @@ -195,7 +194,7 @@ export default { }; - diff --git a/src/views/base/coreHotMaterial/add-or-updata.vue b/src/views/base/coreHotMaterial/add-or-updata.vue index 4ffcd316..95484ca1 100644 --- a/src/views/base/coreHotMaterial/add-or-updata.vue +++ b/src/views/base/coreHotMaterial/add-or-updata.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-18 14:16:25 * @LastEditors: DY - * @LastEditTime: 2023-11-27 20:12:00 + * @LastEditTime: 2023-12-14 13:52:42 * @Description: --> + + diff --git a/src/views/base/coreHotMaterial/index.vue b/src/views/base/coreHotMaterial/index.vue index 0667b5c9..d661316e 100644 --- a/src/views/base/coreHotMaterial/index.vue +++ b/src/views/base/coreHotMaterial/index.vue @@ -83,13 +83,19 @@ export default { }, tableProps, tableBtn: [ - this.$auth.hasPermi(`base:core-hot-material:update`) + this.$auth.hasPermi(`base:core-hot-material-check:detail`) + ? { + type: 'detail', + btnName: '详情', + } + : undefined, + this.$auth.hasPermi(`base:core-hot-material-check:update`) ? { type: 'edit', btnName: '编辑', } : undefined, - this.$auth.hasPermi(`base:core-hot-material:delete`) + this.$auth.hasPermi(`base:core-hot-material-check:delete`) ? { type: 'delete', btnName: '删除', @@ -120,7 +126,7 @@ export default { type: 'separate', }, { - type: this.$auth.hasPermi('base:core-hot-material:create') ? 'button' : '', + type: this.$auth.hasPermi('base:core-hot-material-check:create') ? 'button' : '', btnName: '新增', name: 'add', color: 'success', @@ -143,6 +149,14 @@ export default { // this.dataListLoading = false; // }); // }, + otherMethods(val) { + // 详情 + this.addOrUpdateVisible = true; + this.addOrEditTitle = "详情"; + this.$nextTick(() => { + this.$refs.addOrUpdate.init(val.data.id, true); + }); + }, buttonClick(val) { switch (val.btnName) { case 'search': diff --git a/src/views/base/coreProduct/add-or-updata.vue b/src/views/base/coreProduct/add-or-updata.vue index a3cee7eb..8c855299 100644 --- a/src/views/base/coreProduct/add-or-updata.vue +++ b/src/views/base/coreProduct/add-or-updata.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-18 14:16:25 * @LastEditors: DY - * @LastEditTime: 2023-11-27 20:07:09 + * @LastEditTime: 2023-12-06 10:36:56 * @Description: -->