diff --git a/src/api/quality/processTraceability.js b/src/api/quality/processTraceability.js index 5faac726..dc43b420 100644 --- a/src/api/quality/processTraceability.js +++ b/src/api/quality/processTraceability.js @@ -27,7 +27,7 @@ export function getWorkOrderList(query) { export function getCoreProduct(id) { return request({ - url: '/base/core-product/get?id=' + id, + url: '/base/core-product-material/get?id=' + id, method: 'get' }) } 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/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/devConfig/quality/qualityInspectionBoxBtn/dialogForm.vue b/src/views/devConfig/quality/qualityInspectionBoxBtn/dialogForm.vue index 6253c041..cdd143fe 100644 --- a/src/views/devConfig/quality/qualityInspectionBoxBtn/dialogForm.vue +++ b/src/views/devConfig/quality/qualityInspectionBoxBtn/dialogForm.vue @@ -13,60 +13,6 @@ v-loading="formLoading"> - - - - - - - - - - - - - - - - - - - + + + + + + placeholder="请输入按钮值" /> - + + @change="handleInspectionDetChange"> { - // this.formLoading = false; - // this.$emit('update', { - // ...this.dataForm, - // code, - // }); - // }); + if (this.dataForm.productionLineId) { + this.getWorksectionList(this.dataForm.productionLineId); + } }, watch: { 'dataForm.productionId': { @@ -279,11 +234,18 @@ export default { this.dataForm.sectionId = null; this.$emit('update', this.dataForm); }, - async getCode(url) { const response = await this.$axios(url); return response.data; }, + handleInspectionDetChange(id) { + this.inspectionDetList.forEach((item) => { + if (item.value == id) { + this.dataForm.inspectionDetContent = item.label; + } + }); + this.$emit('update', this.dataForm); + } }, }; 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/equipment/base/inspection/items/index.vue b/src/views/equipment/base/inspection/items/index.vue index 3cfb1926..9a5856cd 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/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; } 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/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(); } }, // 表单提交 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/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%"> - + @@ -297,7 +297,7 @@ const tableProps = [ prop: 'dept', label: '部门', minWidth: 120, - filter: (item) => item.name || '', + filter: (item) => item?.name || '', showOverflowtooltip: true, }, { @@ -496,6 +496,9 @@ export default { username: [ { required: true, message: '用户名称不能为空', trigger: 'blur' }, ], + deptId: [ + { required: true, message: '归属部门不能为空', trigger: 'change' }, + ], nickname: [ { required: true, message: '用户昵称不能为空', trigger: 'blur' }, ],