diff --git a/.env.dev b/.env.dev index 1da25e71..b1305aa6 100644 --- a/.env.dev +++ b/.env.dev @@ -1,8 +1,8 @@ ### # @Author: Do not edit # @Date: 2023-08-29 09:40:39 - # @LastEditTime: 2023-11-21 10:36:47 - # @LastEditors: DY + # @LastEditTime: 2023-12-15 16:28:20 + # @LastEditors: zhp # @Description: ### # 开发环境配置 @@ -20,7 +20,8 @@ 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_BASE_API = 'http://192.168.1.78:48082' # 积木报表指向地址 VUE_APP_JIMU_API = 'http://192.168.0.33:48082' diff --git a/.env.prod b/.env.prod index 085ca647..d89ed16a 100644 --- a/.env.prod +++ b/.env.prod @@ -15,7 +15,7 @@ VUE_APP_TITLE = MES系统 VUE_APP_BASE_API = '/prod-api' # 积木报表指向地址 -VUE_APP_JIMU_API = 'http://10.70.2.2:8080' +VUE_APP_JIMU_API = 'http://10.70.2.22:8080' # 根据服务器或域名修改 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..b665f1dc --- /dev/null +++ b/src/api/base/qualityHotMaterial.js @@ -0,0 +1,125 @@ + +/* + * @Author: zhp + * @Date: 2023-11-06 15:38:12 + * @LastEditTime: 2023-12-15 15:29:16 + * @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 + }) +} + +export function createQualityHotMaterialDet(query){ + return request({ + url: '/base/quality-hot-material-det/create', + method: 'post', + data: query + }) +} + +export function updateQualityHotMaterialDet(query){ + return request({ + url: '/base/quality-hot-material-det/listbyfilter', + method: 'put', + data: query + }) +} + +export function getQualityHotMaterialDetList(query){ + return request({ + url: '/base/quality-hot-material-det/listbyfilter', + method: 'get', + params: query + }) +} diff --git a/src/api/base/qualityInspectionBoxBtn.js b/src/api/base/qualityInspectionBoxBtn.js index 44ffd522..18954b61 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-14 10:06:03 + * @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 }) } @@ -12,7 +19,7 @@ export function createQualityInspectionBoxBtn(data) { // 更新安灯按钮16键对应 export function updateQualityInspectionBoxBtn(data) { return request({ - url: '/base/quality-inspection-box-btn/update', + url: '/base/quality-inspection-box-btn/updateBatch', method: 'put', data: data }) @@ -37,7 +44,7 @@ export function getQualityInspectionBoxBtn(id) { // 获得安灯按钮16键对应分页 export function getQualityInspectionBoxBtnPage(query) { return request({ - url: '/base/quality-inspection-box-btn/page', + url: '/base/quality-inspection-box-btn/listGroupByLineSection', method: 'get', params: query }) @@ -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/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..adaf9d14 --- /dev/null +++ b/src/api/report/production.js @@ -0,0 +1,57 @@ +/* + * @Author: zhp + * @Date: 2023-12-12 13:49:02 + * @LastEditTime: 2023-12-14 14:21:43 + * @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, + }) +} + +export function updateAutoDeliveDataList(query) { + return request({ + url: '/base/report-auto-delive/update', + method: 'put', + data: query, + }) +} + +export function updateSumAutoDeliveDataList(query) { + return request({ + url: '/base/report-auto-delive/updatePlus', + 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/icons/svg/noStandards.svg b/src/assets/icons/svg/noStandards.svg new file mode 100644 index 00000000..2e70ef07 --- /dev/null +++ b/src/assets/icons/svg/noStandards.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/svg/standards.svg b/src/assets/icons/svg/standards.svg new file mode 100644 index 00000000..bb02bee3 --- /dev/null +++ b/src/assets/icons/svg/standards.svg @@ -0,0 +1 @@ + \ 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 3248ce17..d286ac61 100644 --- a/src/components/DialogForm/index.vue +++ b/src/components/DialogForm/index.vue @@ -143,9 +143,12 @@ function findMaxLabelWidth(rows) { if (!opt.label) return 0; if (opt.label.length > max) { max = opt.label.length; +<<<<<<< HEAD if (opt.label.includes('(')) { max = max - 3; } +======= +>>>>>>> projects/mesxc-test } }); }); 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: -->