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: --> @@ -15,19 +15,19 @@ - + - + - + @@ -35,6 +35,7 @@ - + + + + 质量信息 + + + + + 新增 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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: --> @@ -91,27 +91,30 @@ - + - + - + - - + + + + + @@ -240,7 +243,8 @@ export default { specifications: undefined, processTime: 0, remark: undefined, - unit: undefined + unit: undefined, + weight: undefined }, productAttrList: [], visible: false, @@ -257,6 +261,24 @@ export default { }, mounted() {}, methods: { + clearArea() { + this.$set(this.dataForm, 'area', 0) + this.$set(this.dataForm, 'weight', 0) + }, + setArea() { + if (this.dataForm.specifications) { + const height = Number(this.dataForm.specifications.slice(2,4)) + const length = Number(this.dataForm.specifications.slice(4,8)) + const width = Number(this.dataForm.specifications.slice(8)) + // this.dataForm.area = length * width + // this.dataForm.weight = 2.5 * height * length * width + this.$set(this.dataForm, 'area', length * width) + this.$set(this.dataForm, 'weight', 2.5 * height * length * width) + } else { + this.dataForm.area = 0 + this.dataForm.weight = 0 + } + }, initData() { this.productAttrList.splice(0); this.listQuery.total = 0; @@ -317,6 +339,10 @@ export default { // 获取产品详情 this.urlOptions.infoURL(id).then(response => { this.dataForm = response.data + // this.dataForm.area = response.data.area || 0 + // this.dataForm.weight = response.data.weight || 0 + // this.dataForm.specifications = response.data.specifications || undefined + console.log('11res112', this.dataForm.specifications, this.dataForm.weight, this.dataForm.area) if (this.dataForm.unit !== undefined) { this.dataForm.unit = String(this.dataForm.unit) } @@ -339,7 +365,7 @@ export default { goback() { this.$emit('refreshDataList'); this.visible = false; - // this.initData(); + this.initData(); }, goEdit() { this.isdetail = false; @@ -370,6 +396,7 @@ export default { this.urlOptions.createURL(this.dataForm).then(response => { this.$modal.msgSuccess("新增成功"); this.idAttrShow = true + this.dataForm.id = response.data // this.visible = false; this.$emit("refreshDataList"); }); diff --git a/src/views/base/coreWorkOrder/index.vue b/src/views/base/coreWorkOrder/index.vue index f03890b6..c34c1553 100644 --- a/src/views/base/coreWorkOrder/index.vue +++ b/src/views/base/coreWorkOrder/index.vue @@ -140,12 +140,13 @@ export default { allocationVisible: false, tableProps, tableBtn: [ - this.$auth.hasPermi(`base:core-work-order:material`) - ? { - type: 'material', - btnName: '原料信息', - } - : undefined, + // this.$auth.hasPermi(`base:core-work-order:material`) + // ? { + // type: 'material', + // btnName: '原料信息', + // showTip: '预使用原料信息' + // } + // : undefined, { type: 'active', btnName: '激活', diff --git a/src/views/base/material/add-or-updata.vue b/src/views/base/material/add-or-updata.vue index 0c082ef9..b88d7e9d 100644 --- a/src/views/base/material/add-or-updata.vue +++ b/src/views/base/material/add-or-updata.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-18 14:16:25 * @LastEditors: DY - * @LastEditTime: 2023-11-27 15:26:12 + * @LastEditTime: 2023-12-04 15:10:11 * @Description: --> @@ -377,6 +377,7 @@ export default { this.urlOptions.createURL(this.dataForm).then(response => { this.$modal.msgSuccess("新增成功"); this.idAttrShow = true + this.dataForm.id = response.data this.$emit("refreshDataList"); }); }); diff --git a/src/views/equipment/base/inspection/Record/addRecord.vue b/src/views/equipment/base/inspection/Record/addRecord.vue index 8f5699ef..7b528a5c 100644 --- a/src/views/equipment/base/inspection/Record/addRecord.vue +++ b/src/views/equipment/base/inspection/Record/addRecord.vue @@ -125,7 +125,7 @@ \ No newline at end of file diff --git a/src/views/report/glass/month.vue b/src/views/report/glass/month.vue new file mode 100644 index 00000000..caa0b23b --- /dev/null +++ b/src/views/report/glass/month.vue @@ -0,0 +1,177 @@ + + + + + + + + + + 查询 + 导出 + + + + + + + + + + + diff --git a/src/views/report/glass/weekly.vue b/src/views/report/glass/weekly.vue new file mode 100644 index 00000000..cf36a70b --- /dev/null +++ b/src/views/report/glass/weekly.vue @@ -0,0 +1,198 @@ + + + + + + + + + + + 查询 + 导出 + + + + + + + + + + diff --git a/src/views/report/glass/year.vue b/src/views/report/glass/year.vue new file mode 100644 index 00000000..ff487c79 --- /dev/null +++ b/src/views/report/glass/year.vue @@ -0,0 +1,158 @@ + + + + + + + + + + 查询 + 导出 + + + + + + + + + +