diff --git a/.env.dev b/.env.dev index 1da25e71..27bc4a9e 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-13 17:01:23 # @LastEditors: DY # @Description: ### @@ -14,7 +14,7 @@ VUE_APP_TITLE = MES系统 # 芋道管理系统/开发环境 # VUE_APP_BASE_API = 'http://100.64.0.26:48082' VUE_APP_BASE_API = 'http://192.168.0.33:48082' -# VUE_APP_BASE_API = 'http://192.168.4.173:48080' +# VUE_APP_BASE_API = 'http://192.168.1.78:48082' # VUE_APP_BASE_API = 'http://192.168.2.173:48080' # VUE_APP_BASE_API = 'http://192.168.1.49:48082' # VUE_APP_BASE_API = 'http://192.168.1.8:48082' 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/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/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index dc64e8dc..63308ee3 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -15,6 +15,7 @@ :headers="headers" :file-list="fileList" :on-preview="handlePictureCardPreview" + :disabled="disabled" :class="{hide: this.fileList.length >= this.limit}" > @@ -44,6 +45,7 @@ diff --git a/src/views/base/coreCustomer/index.vue b/src/views/base/coreCustomer/index.vue index 0a1a9a1a..dc1dbeff 100644 --- a/src/views/base/coreCustomer/index.vue +++ b/src/views/base/coreCustomer/index.vue @@ -88,13 +88,19 @@ export default { }, tableProps, tableBtn: [ + this.$auth.hasPermi(`base:core-customer:detail`) + ? { + type: 'detail', + btnName: '详情', + } + : undefined, this.$auth.hasPermi(`base:core-customer:update`) ? { type: 'edit', btnName: '编辑', } : undefined, - this.$auth.hasPermi(`base:core-customer:delete`) + this.$auth.hasPermi(`base:core-customer:delete`) ? { type: 'delete', btnName: '删除', @@ -171,6 +177,13 @@ export default { console.log(val); } }, + otherMethods(val) { + this.addOrUpdateVisible = true; + this.addOrEditTitle = "详情"; + this.$nextTick(() => { + this.$refs.addOrUpdate.init(val.data.id, true); + }); + } }, }; diff --git a/src/views/base/coreHotMaterial/SmallTitle.vue b/src/views/base/coreHotMaterial/SmallTitle.vue new file mode 100644 index 00000000..93b4a18f --- /dev/null +++ b/src/views/base/coreHotMaterial/SmallTitle.vue @@ -0,0 +1,65 @@ + + + + + + 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: -->