From 84dbd8d5b28f84a032e77db1b5285a840b8760c7 Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Fri, 3 Jan 2025 14:37:54 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=8E=92=E7=8F=ADbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/schedulingRuleConfigAdd.vue | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/views/group/base/schedulingRuleConfig/components/schedulingRuleConfigAdd.vue b/src/views/group/base/schedulingRuleConfig/components/schedulingRuleConfigAdd.vue index c8050a45..7120db2a 100644 --- a/src/views/group/base/schedulingRuleConfig/components/schedulingRuleConfigAdd.vue +++ b/src/views/group/base/schedulingRuleConfig/components/schedulingRuleConfigAdd.vue @@ -125,13 +125,15 @@ export default { addButtonShow: '', planArr: [], //排班计划数组 rules: { - name: [{ required: true, message: '请输入班组名称', trigger: 'blur' }], startDay: [ { required: true, message: '请选择排班开始时间', trigger: 'change' }, ], endDay: [ { required: true, message: '请选择排班结束时间', trigger: 'change' }, ], + planId:[ + { required: true, message: '请选择排班计划', trigger: 'change' }, + ] }, }; }, @@ -231,6 +233,10 @@ export default { }; list.push(obj); }); + if (list.length === 0) { + this.$modal.msgError('班组上班顺序不能为空'); + return false; + } this.form.list = list; updateGroupRule({ ...this.form }).then((res) => { this.$modal.msgSuccess('操作成功'); @@ -246,6 +252,10 @@ export default { }; list.push(obj); }); + if (list.length === 0) { + this.$modal.msgError('班组上班顺序不能为空'); + return false; + } this.form.list = list; createGroupRule({ ...this.form }).then((res) => { this.$modal.msgSuccess('操作成功'); @@ -268,13 +278,8 @@ export default { margin-bottom: 5px; } .min-title::before { - content: ''; - display: inline-block; - vertical-align: middle; - width: 6px; - height: 6px; - border-radius: 50%; - margin: auto 5px; - background-color: #0b58ff; + content: "*"; + color: #ff5454; + margin-right: 4px; } From 30c45e6f7485a2c3fa7d25be5a2cb027f5e1545e Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Mon, 6 Jan 2025 10:44:23 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=B3=BB=E7=BB=9Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/role.js | 6 +----- .../mall/promotion/couponTemplate/index.vue | 1 - src/views/system/role/components/roleAdd.vue | 16 ++++++++++++++-- src/views/system/role/index.vue | 3 ++- src/views/system/user/index.vue | 3 +++ 5 files changed, 20 insertions(+), 9 deletions(-) diff --git a/src/api/system/role.js b/src/api/system/role.js index 05d2a59f..60d11b0c 100644 --- a/src/api/system/role.js +++ b/src/api/system/role.js @@ -44,11 +44,7 @@ export function updateRole(data) { } // 角色状态修改 -export function changeRoleStatus(id, status) { - const data = { - id, - status - } +export function changeRoleStatus(data) { return request({ url: '/system/role/update-status', method: 'put', diff --git a/src/views/mall/promotion/couponTemplate/index.vue b/src/views/mall/promotion/couponTemplate/index.vue index db81ab3c..ffdbb920 100644 --- a/src/views/mall/promotion/couponTemplate/index.vue +++ b/src/views/mall/promotion/couponTemplate/index.vue @@ -176,7 +176,6 @@ import { } from "@/utils/constants"; import { getSpuSimpleList } from "@/api/mall/product/spu"; import { parseTime } from "@/utils/ruoyi"; -import {changeRoleStatus} from "@/api/system/role"; export default { name: "PromotionCouponTemplate", diff --git a/src/views/system/role/components/roleAdd.vue b/src/views/system/role/components/roleAdd.vue index 26de73be..4c983354 100644 --- a/src/views/system/role/components/roleAdd.vue +++ b/src/views/system/role/components/roleAdd.vue @@ -26,7 +26,7 @@ - + @@ -38,7 +38,7 @@ diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index 30b611c8..15fbfa6c 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -39,7 +39,7 @@ @confirm="handleConfirm" :before-close="handleCancel" width="50%"> - + Date: Tue, 7 Jan 2025 14:27:13 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/permission.js | 2 +- .../equipment/base/inspection/items/index.vue | 1 - src/views/system/components/statusBtn2.vue | 10 ++++- src/views/system/dept/index.vue | 44 +++++++++++-------- src/views/system/dict/data.vue | 21 +++++++-- src/views/system/dict/index.vue | 23 +++++++--- src/views/system/menu/index.vue | 31 +++++++------ src/views/system/post/index.vue | 23 +++++++--- src/views/system/user/index.vue | 4 +- 9 files changed, 108 insertions(+), 51 deletions(-) diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js index 62a875b6..e4154b80 100644 --- a/src/store/modules/permission.js +++ b/src/store/modules/permission.js @@ -23,7 +23,7 @@ const permission = { state.topbarRouters = routes }, SET_SIDEBAR_ROUTERS: (state, routes) => { - console.log('==SET_SIDEBAR_ROUTERS==:',routes) + // console.log('==SET_SIDEBAR_ROUTERS==:',routes) state.sidebarRouters = routes }, }, diff --git a/src/views/equipment/base/inspection/items/index.vue b/src/views/equipment/base/inspection/items/index.vue index fbf01d64..be5171a7 100644 --- a/src/views/equipment/base/inspection/items/index.vue +++ b/src/views/equipment/base/inspection/items/index.vue @@ -28,7 +28,6 @@ import moment from 'moment'; import basicPageMixin from '@/mixins/lb/basicPageMixin'; import { deleteProgramTypeData } from '@/api/equipment/base/maintain/items' import showDetail from './showDetail.vue' -import { publicFormatter } from '@/utils/dict'; export default { name: 'PlanConfig', diff --git a/src/views/system/components/statusBtn2.vue b/src/views/system/components/statusBtn2.vue index 3a4ab297..ed3b490f 100644 --- a/src/views/system/components/statusBtn2.vue +++ b/src/views/system/components/statusBtn2.vue @@ -5,6 +5,7 @@ diff --git a/src/views/devConfig/quality/qualityInspectionBoxBtn/index.vue b/src/views/devConfig/quality/qualityInspectionBoxBtn/index.vue index 8387c7fa..bc54f307 100644 --- a/src/views/devConfig/quality/qualityInspectionBoxBtn/index.vue +++ b/src/views/devConfig/quality/qualityInspectionBoxBtn/index.vue @@ -40,7 +40,7 @@ @close="cancel" @cancel="cancel" @confirm="submitForm"> - + @@ -65,78 +65,6 @@ export default { components: { DialogForm }, data() { return { - rows: [ - [ - { - select: true, - label: '产线', - url: '/base/production-line/listAll', - prop: 'productionId', - rules: [ - { required: true, message: '产线不能为空', trigger: 'blur' }, - ], - bind: { - filterable: true, - }, - }, - { - select: true, - label: '工段', - url: '/base/workshop-section/listAll', - prop: 'sectionId', - rules: [ - { required: true, message: '工段不能为空', trigger: 'blur' }, - ], - bind: { - filterable: true, - }, - }, - ], - [ - { - input: true, - label: '按钮盒识别码', - prop: 'buttonId', - rules: [ - { - type: 'number', - message: '请输入整数', - trigger: 'blur', - transform: (val) => - Number.isInteger(Number(val)) && Number(val), - }, - ], - }, - { input: true, label: '按钮盒模式', prop: 'model' }, - ], - [ - { - input: true, - label: '按钮值', - prop: 'keyValue', - rules: [ - { - type: 'number', - message: '请输入100以内的整数', - trigger: 'blur', - transform: (val) => - Number(val) <= 100 && Number.isInteger(+val) && Number(val), - }, - ], - bind: { type: 'number', min: 0, max: 100 }, - }, - { - select: true, - label: '检测内容', - url: '/base/quality-inspection-det/listAll', - prop: 'inspectionDetId', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], - bind: { - filterable: true, - }, - }, - ], - ], searchBarFormConfig: [ { type: 'input', @@ -230,6 +158,7 @@ export default { id: null, buttonId: null, inspectionDetId: null, + inspectionDetContent: null, productionLineId: null, sectionId: null, model: null, @@ -256,12 +185,13 @@ export default { this.form = { id: null, buttonId: null, + inspectionDetId: null, inspectionDetContent: null, - productionId: null, + productionLineId: null, sectionId: null, model: null, keyValue: null, - }; + }, this.resetForm('form'); }, /** 新增按钮操作 */ diff --git a/src/views/order/base/orderManage/components/addWorkOrder.vue b/src/views/order/base/orderManage/components/addWorkOrder.vue deleted file mode 100644 index 45f2a62e..00000000 --- a/src/views/order/base/orderManage/components/addWorkOrder.vue +++ /dev/null @@ -1,304 +0,0 @@ - - \ No newline at end of file diff --git a/src/views/order/base/orderManage/components/orderAdd.vue b/src/views/order/base/orderManage/components/orderAdd.vue deleted file mode 100644 index df871a9e..00000000 --- a/src/views/order/base/orderManage/components/orderAdd.vue +++ /dev/null @@ -1,293 +0,0 @@ - - \ No newline at end of file diff --git a/src/views/order/base/orderManage/index.vue b/src/views/order/base/orderManage/index.vue deleted file mode 100644 index ed5d0547..00000000 --- a/src/views/order/base/orderManage/index.vue +++ /dev/null @@ -1,470 +0,0 @@ - - diff --git a/src/views/order/base/orderManage/orderDetailData.vue b/src/views/order/base/orderManage/orderDetailData.vue deleted file mode 100644 index 80764f7e..00000000 --- a/src/views/order/base/orderManage/orderDetailData.vue +++ /dev/null @@ -1,343 +0,0 @@ - - - diff --git a/src/views/order/monitoring/components/monitoringRingCharts.vue b/src/views/order/monitoring/components/monitoringRingCharts.vue deleted file mode 100644 index 54a55a19..00000000 --- a/src/views/order/monitoring/components/monitoringRingCharts.vue +++ /dev/null @@ -1,168 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/order/monitoring/orderCompletionMonitoring/index.vue b/src/views/order/monitoring/orderCompletionMonitoring/index.vue deleted file mode 100644 index b2a469cd..00000000 --- a/src/views/order/monitoring/orderCompletionMonitoring/index.vue +++ /dev/null @@ -1,371 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/quality/monitoring/processTraceability/index.vue b/src/views/quality/monitoring/processTraceability/index.vue index f1b4c287..e12382d5 100644 --- a/src/views/quality/monitoring/processTraceability/index.vue +++ b/src/views/quality/monitoring/processTraceability/index.vue @@ -172,6 +172,7 @@ export default { query: { id: val.data.processFlowId, orderId: val.data.id, + lineId: val.data.lineId, name: val.data.name, specifications: res.data.specifications, productName: val.data.planProductName, diff --git a/src/views/quality/monitoring/processTraceabilityDetail/components/ProcessBomList.vue b/src/views/quality/monitoring/processTraceabilityDetail/components/ProcessBomList.vue index c1da0893..224b9a81 100644 --- a/src/views/quality/monitoring/processTraceabilityDetail/components/ProcessBomList.vue +++ b/src/views/quality/monitoring/processTraceabilityDetail/components/ProcessBomList.vue @@ -8,9 +8,6 @@ diff --git a/src/views/quality/monitoring/processTraceabilityDetail/components/ProcessInfo.vue b/src/views/quality/monitoring/processTraceabilityDetail/components/ProcessInfo.vue index 6fc7073c..2d40f6f7 100644 --- a/src/views/quality/monitoring/processTraceabilityDetail/components/ProcessInfo.vue +++ b/src/views/quality/monitoring/processTraceabilityDetail/components/ProcessInfo.vue @@ -71,7 +71,9 @@ export default { }, mounted() { this.getInfo() - console.log(this.$route.query) + }, + activated() { + this.getInfo() }, computed: {}, methods: { diff --git a/src/views/quality/qualityInspectionRecord/index.vue b/src/views/quality/qualityInspectionRecord/index.vue index 604a80de..a7ca41d7 100644 --- a/src/views/quality/qualityInspectionRecord/index.vue +++ b/src/views/quality/qualityInspectionRecord/index.vue @@ -85,7 +85,7 @@ export default { }, { type: 'datePicker', - label: '时间段', + label: '检测时间', dateType: 'daterange', // datetimerange // format: 'yyyy-MM-dd HH:mm:ss', format: 'yyyy-MM-dd', @@ -182,7 +182,7 @@ export default { checkPerson: undefined, workOrderId: undefined, checkTime: undefined, - source: undefined, + source: 1, workOrderId: undefined, remark: undefined, }, @@ -257,7 +257,7 @@ export default { sectionId: undefined, checkPerson: undefined, checkTime: undefined, - source: undefined, + source: 1, workOrderId: undefined, remark: undefined, productionLineId: undefined, diff --git a/src/views/quality/qualityScrapLog/add-or-updata.vue b/src/views/quality/qualityScrapLog/add-or-updata.vue index edf4696b..e56492fa 100644 --- a/src/views/quality/qualityScrapLog/add-or-updata.vue +++ b/src/views/quality/qualityScrapLog/add-or-updata.vue @@ -133,8 +133,6 @@ import { getDetList, getLineList, } from '@/api/base/qualityScrapLog'; -// import { getList } from '@/api/base/qualityScrapType'; -import moment from 'moment'; export default { data() { return { @@ -166,16 +164,14 @@ export default { }, dataRule: { workOrderId: [ - { required: true, message: '工单号不能为空', trigger: 'change' }, + { required: true, message: '工单名称不能为空', trigger: 'change' }, ], num: [{ required: true, message: '数量不能为空', trigger: 'blur' }], detId: [ { required: true, message: '报废原因不能为空', trigger: 'change' }, ], - logTime: [ - { required: true, message: '报废时间不能为空', trigger: 'change' }, - ], + logTime: [{ required: true, message: '报废时间不能为空', trigger: 'change' }], }, showDetail: false, }; @@ -193,10 +189,9 @@ export default { console.log(res); this.dataForm = res.data; this.dataForm.logTime = res.data.logTime || null; - console.log('=================='); }); } else { - this.dataForm.logTime = moment().format('yyyy-MM-DD hh:mm:ss'); + this.dataForm.logTime = Date.now(); } }, // 表单提交