diff --git a/.env.dev b/.env.dev index 27bc4a9e..5ca0e399 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ ### # @Author: Do not edit # @Date: 2023-08-29 09:40:39 - # @LastEditTime: 2023-12-13 17:01:23 + # @LastEditTime: 2023-12-14 14:02:40 # @LastEditors: DY # @Description: ### @@ -20,7 +20,7 @@ VUE_APP_BASE_API = 'http://192.168.0.33:48082' # VUE_APP_BASE_API = 'http://192.168.1.8:48082' # VUE_APP_BASE_API = 'http://192.168.4.159:48080' # VUE_APP_BASE_API = 'http://192.168.1.56:48082' -# VUE_APP_BASE_API = 'http://192.168.4.159:48080' +# VUE_APP_BASE_API = 'http://192.168.1.62:48082' # 积木报表指向地址 VUE_APP_JIMU_API = 'http://192.168.0.33:48082' diff --git a/src/api/base/energyQuantityManual.js b/src/api/base/energyQuantityManual.js new file mode 100644 index 00000000..d919b5a3 --- /dev/null +++ b/src/api/base/energyQuantityManual.js @@ -0,0 +1,56 @@ +import request from '@/utils/request' + +// 获得分页数据 +export function energyQuantityManualPage(data) { + return request({ + url: '/base/energy-quantity-manual/page', + method: 'post', + data: data + }) +} + +// 创建 +export function energyQuantityManualCreate(data) { + return request({ + url: '/base/energy-quantity-manual/create', + method: 'post', + data: data + }) +} + +// 更新 +export function energyQuantityManualUpdate(data) { + return request({ + url: '/base/energy-quantity-manual/update', + method: 'put', + data: data + }) +} + +//获得能源抄表(手动) +export function energyQuantityManualGet(query) { + return request({ + url: '/base/energy-quantity-manual/get', + method: 'get', + params: query + }) +} + +//删除 +export function energyQuantityManualDelete(query) { + return request({ + url: '/base/energy-quantity-manual/delete', + method: 'delete', + params: query + }) +} + +//导出 +export function energyQuantityManualExport(data) { + return request({ + url: '/base/energy-quantity-manual/export-excel', + method: 'post', + data: data, + responseType: 'blob' + }) +} \ 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/cost/costEneryAutoReport.js b/src/api/cost/costEneryAutoReport.js new file mode 100644 index 00000000..4cfe8633 --- /dev/null +++ b/src/api/cost/costEneryAutoReport.js @@ -0,0 +1,78 @@ +/* + * @Author: zwq + * @Date: 2023-11-23 14:57:00 + * @LastEditors: zwq + * @LastEditTime: 2023-12-07 09:37:18 + * @Description: + */ +import request from '@/utils/request' + +// 创建能源自动记录报 +export function createCostEneryAutoReport(data) { + return request({ + url: '/extend/cost-enery-auto-report/create', + method: 'post', + data: data + }) +} + +// 更新能源自动记录报 +export function updateCostEneryAutoReport(data) { + return request({ + url: '/extend/cost-enery-auto-report/update', + method: 'put', + data: data + }) +} + +// 删除能源自动记录报 +export function deleteCostEneryAutoReport(id) { + return request({ + url: '/extend/cost-enery-auto-report/delete?id=' + id, + method: 'delete' + }) +} + +// 获得能源自动记录报 +export function getCostEneryAutoReport(id) { + return request({ + url: '/extend/cost-enery-auto-report/get?id=' + id, + method: 'get' + }) +} + +// 获得能源自动记录报分页历史 +export function getCostEneryAutoReportPage(data) { + return request({ + url: '/extend/cost-enery-auto-report/page', + method: 'post', + data: data + }) +} +// 获得能源查询 +export function getCostEneryAutoPage(data) { + return request({ + url: '/extend/cost-energy-search/getData', + method: 'post', + data: data + }) +} +// 导出能源自动记录报 Excel +export function exportCostEneryAutoReportExcel(data) { + return request({ + url: '/extend/cost-enery-auto-report/export-excel', + method: 'post', + data: data, + responseType: 'blob' + }) +} + +// 导出能源自动记录报 Excel 查询 +export function exportCostEneryExcel(data) { + return request({ + url: '/extend/cost-energy-search/export-excel', + method: 'post', + data: data, + responseType: 'blob' + }) +} diff --git a/src/api/cost/costMaterialAutoReport.js b/src/api/cost/costMaterialAutoReport.js new file mode 100644 index 00000000..32a58dc1 --- /dev/null +++ b/src/api/cost/costMaterialAutoReport.js @@ -0,0 +1,73 @@ +import request from '@/utils/request' + +// 创建原料成本自动统计报 +export function createCostMaterialAutoReport(data) { + return request({ + url: '/extend/cost-material-auto-report/create', + method: 'post', + data: data + }) +} + +// 更新原料成本自动统计报 +export function updateCostMaterialAutoReport(data) { + return request({ + url: '/extend/cost-material-auto-report/update', + method: 'put', + data: data + }) +} + +// 删除原料成本自动统计报 +export function deleteCostMaterialAutoReport(id) { + return request({ + url: '/extend/cost-material-auto-report/delete?id=' + id, + method: 'delete' + }) +} + +// 获得原料成本自动统计报 +export function getCostMaterialAutoReport(id) { + return request({ + url: '/extend/cost-material-auto-report/get?id=' + id, + method: 'get' + }) +} + +// 获得原料成本自动统计报分页历史 +export function getCostMaterialAutoReportPage(data) { + return request({ + url: '/extend/cost-material-auto-report/page', + method: 'post', + data: data + }) +} + +// 获得原料成本查询 +export function getCostMaterialSearchPage(data) { + return request({ + url: '/extend/cost-material-search/getData', + method: 'post', + data: data + }) +} + +// 导出原料成本自动统计报 Excel +export function exportCostMaterialAutoReportExcel(data) { + return request({ + url: '/extend/cost-material-auto-report/export-excel', + method: 'post', + data: data, + responseType: 'blob' + }) +} + +// 导出原料成本自动统计报 Excel查询 +export function exportCostMaterialSearch(data) { + return request({ + url: '/extend/cost-material-search/export-excel', + method: 'post', + data: data, + responseType: 'blob' + }) +} diff --git a/src/api/cost/costMaterialSet.js b/src/api/cost/costMaterialSet.js new file mode 100644 index 00000000..6d825d33 --- /dev/null +++ b/src/api/cost/costMaterialSet.js @@ -0,0 +1,61 @@ +/* + * @Author: zwq + * @Date: 2023-11-15 09:24:30 + * @LastEditors: zwq + * @LastEditTime: 2023-12-05 14:38:48 + * @Description: + */ +import request from '@/utils/request' + +// 创建原料价位配置 +export function createCostMaterialSet(data) { + return request({ + url: '/extend/cost-material-set/create', + method: 'post', + data: data + }) +} + +// 更新原料价位配置 +export function updateCostMaterialSet(data) { + return request({ + url: '/extend/cost-material-set/update', + method: 'put', + data: data + }) +} + +// 删除原料价位配置 +export function deleteCostMaterialSet(id) { + return request({ + url: '/extend/cost-material-set/delete?id=' + id, + method: 'delete' + }) +} + +// 获得原料价位配置 +export function getCostMaterialSet(id) { + return request({ + url: '/extend/cost-material-set/get?id=' + id, + method: 'get' + }) +} + +// 获得原料价位配置分页 +export function getCostMaterialSetPage(data) { + return request({ + url: '/extend/cost-material-set/page', + method: 'POST', + data: data + }) +} + +// 导出原料价位配置 Excel +export function exportCostMaterialSetExcel(query) { + return request({ + url: '/extend/cost-material-set/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} 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/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/api/safetyEnvironmental/environmental.js b/src/api/safetyEnvironmental/environmental.js new file mode 100644 index 00000000..355d0f89 --- /dev/null +++ b/src/api/safetyEnvironmental/environmental.js @@ -0,0 +1,92 @@ +import request from '@/utils/request' + +// 获得环保检测指标实时数据 +export function environmentalCheckRealtime(query) { + return request({ + url: '/base/environmental-check/realtime', + method: 'get', + params: query + }) +} + +// 获得环保检测指标趋势数据 +export function environmentalCheckRealtimeTrend(data) { + return request({ + url: '/base/environmental-check-record/trend', + method: 'post', + data: data + }) +} + +// 获得环保检测指标分页 +export function environmentalCheckPage(query) { + return request({ + url: '/base/environmental-check/page', + method: 'get', + params: query + }) +} + +// 创建环保检测指标 +export function environmentalCheckCreate(data) { + return request({ + url: '/base/environmental-check/create', + method: 'post', + data: data + }) +} + +// 更新环保检测指标 +export function environmentalCheckUpdate(data) { + return request({ + url: '/base/environmental-check/update', + method: 'put', + data: data + }) +} + +// 获得环保检测指标 +export function environmentalCheckGet(query) { + return request({ + url: '/base/environmental-check/get', + method: 'get', + params: query + }) +} + +// 删除环保检测指标 +export function environmentalCheckDelete(query) { + return request({ + url: '/base/environmental-check/delete', + method: 'delete', + params: query + }) +} + +// 获得环保检测记录分页 +export function environmentalCheckRecordPage(data) { + return request({ + url: '/base/environmental-check-record/page', + method: 'post', + data: data + }) +} + +// 导出环保检测记录 Excel +export function environmentalCheckRecordExport(data) { + return request({ + url: '/base/environmental-check-record/export-excel', + method: 'post', + data: data, + responseType: 'blob' + }) +} + +// 获取环保检测指标code +export function getEnvironmentalCheckCode(query) { + return request({ + url: '/base/environmental-check/getCode', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/assets/images/choicepart/Cost.png b/src/assets/images/choicepart/Cost.png new file mode 100644 index 00000000..76cf8538 Binary files /dev/null and b/src/assets/images/choicepart/Cost.png differ diff --git a/src/assets/images/choicepart/Databoard.png b/src/assets/images/choicepart/Databoard.png new file mode 100644 index 00000000..d9bc3d0c Binary files /dev/null and b/src/assets/images/choicepart/Databoard.png differ diff --git a/src/assets/images/choicepart/SafetyEnvironmental.png b/src/assets/images/choicepart/SafetyEnvironmental.png new file mode 100644 index 00000000..ef6e9085 Binary files /dev/null and b/src/assets/images/choicepart/SafetyEnvironmental.png differ diff --git a/src/assets/images/detectionData.png b/src/assets/images/detectionData.png new file mode 100644 index 00000000..7142140d Binary files /dev/null and b/src/assets/images/detectionData.png differ 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/packagingPrintModel/add-or-updata.vue b/src/views/base/packagingPrintModel/add-or-updata.vue index 9e66ebe9..d22f295f 100644 --- a/src/views/base/packagingPrintModel/add-or-updata.vue +++ b/src/views/base/packagingPrintModel/add-or-updata.vue @@ -1,12 +1,12 @@