From 9a7521e691198a521ce383e3e8abfd4993a9d9e6 Mon Sep 17 00:00:00 2001 From: lb Date: Fri, 17 Nov 2023 11:15:18 +0800 Subject: [PATCH 01/20] add CustomTrasfer --- .../components/CustomTransfer.vue | 112 ++++++++++++++++++ .../components/CustomTransferBox.vue | 78 ++++++++++++ .../components/ProcessBomList.vue | 12 +- 3 files changed, 195 insertions(+), 7 deletions(-) create mode 100644 src/views/extend/processFlowView/components/CustomTransfer.vue create mode 100644 src/views/extend/processFlowView/components/CustomTransferBox.vue diff --git a/src/views/extend/processFlowView/components/CustomTransfer.vue b/src/views/extend/processFlowView/components/CustomTransfer.vue new file mode 100644 index 00000000..08d0fc0d --- /dev/null +++ b/src/views/extend/processFlowView/components/CustomTransfer.vue @@ -0,0 +1,112 @@ + + + + + + + diff --git a/src/views/extend/processFlowView/components/CustomTransferBox.vue b/src/views/extend/processFlowView/components/CustomTransferBox.vue new file mode 100644 index 00000000..d4f9f7d2 --- /dev/null +++ b/src/views/extend/processFlowView/components/CustomTransferBox.vue @@ -0,0 +1,78 @@ + + + + + + + diff --git a/src/views/extend/processFlowView/components/ProcessBomList.vue b/src/views/extend/processFlowView/components/ProcessBomList.vue index 69bf868c..5908eba4 100644 --- a/src/views/extend/processFlowView/components/ProcessBomList.vue +++ b/src/views/extend/processFlowView/components/ProcessBomList.vue @@ -66,19 +66,17 @@ @close="cancel" @cancel="cancel" @confirm="submitForm"> - - - + From bb731dfcd43886ff1d73c4f4f5172a939f8eb908 Mon Sep 17 00:00:00 2001 From: lb Date: Fri, 17 Nov 2023 14:56:43 +0800 Subject: [PATCH 03/20] add custom tree --- .../components/CustomBomList.vue | 109 ++++++++++++++++++ .../components/CustomTransfer.vue | 7 +- .../components/CustomTransferBox.vue | 42 ++++++- .../processFlowView/components/CustomTree.vue | 65 +++++++++++ 4 files changed, 215 insertions(+), 8 deletions(-) create mode 100644 src/views/extend/processFlowView/components/CustomBomList.vue create mode 100644 src/views/extend/processFlowView/components/CustomTree.vue diff --git a/src/views/extend/processFlowView/components/CustomBomList.vue b/src/views/extend/processFlowView/components/CustomBomList.vue new file mode 100644 index 00000000..d1243363 --- /dev/null +++ b/src/views/extend/processFlowView/components/CustomBomList.vue @@ -0,0 +1,109 @@ + + + + + + + diff --git a/src/views/extend/processFlowView/components/CustomTransfer.vue b/src/views/extend/processFlowView/components/CustomTransfer.vue index 9c8bb234..52498647 100644 --- a/src/views/extend/processFlowView/components/CustomTransfer.vue +++ b/src/views/extend/processFlowView/components/CustomTransfer.vue @@ -11,8 +11,8 @@ key="left" class="left-ctb" title="设备列表" - :candidate-list="[]" - :selected-list="[]" + :candidate-list="candidateList" + :selected-list="selectedList" @selected-list-change="handleChange" />
-
- +
+ + + + + +
+ @@ -70,7 +100,9 @@ export default { flex: 1; padding: 12px; } + .ctb-footer { + user-select: none; min-height: 12px; padding: 12px; border-top: 1px solid #ccc; diff --git a/src/views/extend/processFlowView/components/CustomTree.vue b/src/views/extend/processFlowView/components/CustomTree.vue new file mode 100644 index 00000000..ecf7ee37 --- /dev/null +++ b/src/views/extend/processFlowView/components/CustomTree.vue @@ -0,0 +1,65 @@ + + + + + + + From 75f59c3279b83cc58739c7ae9e7458908f91bfd0 Mon Sep 17 00:00:00 2001 From: zwq Date: Fri, 17 Nov 2023 15:48:17 +0800 Subject: [PATCH 04/20] =?UTF-8?q?=E6=9B=B4=E6=96=B0-=E4=BB=93=E5=BA=93-2?= =?UTF-8?q?=E7=BA=A7bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/warehouse/end-material/warehouseLocationHis/index.vue | 2 +- src/views/warehouse/out-material/warehouseLocationHis/index.vue | 2 +- .../warehouse/package-material/warehouseLocationHis/index.vue | 2 +- .../warehouse/part-material/warehouseLocationHis/index.vue | 2 +- src/views/warehouse/raw-material/warehouseLocationHis/index.vue | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/warehouse/end-material/warehouseLocationHis/index.vue b/src/views/warehouse/end-material/warehouseLocationHis/index.vue index a958e289..a4f7805f 100644 --- a/src/views/warehouse/end-material/warehouseLocationHis/index.vue +++ b/src/views/warehouse/end-material/warehouseLocationHis/index.vue @@ -114,7 +114,7 @@ export default { tableData: [], tableProps, tableBtn: [ - this.$auth.hasPermi(`end-material:warehouse-realtime-location-his:query`) + this.$auth.hasPermi(`end-material:warehouse-location-his:query`) ? { type: 'info', btnName: '详情', diff --git a/src/views/warehouse/out-material/warehouseLocationHis/index.vue b/src/views/warehouse/out-material/warehouseLocationHis/index.vue index f9b2944f..12bcd7cf 100644 --- a/src/views/warehouse/out-material/warehouseLocationHis/index.vue +++ b/src/views/warehouse/out-material/warehouseLocationHis/index.vue @@ -114,7 +114,7 @@ export default { tableData: [], tableProps, tableBtn: [ - this.$auth.hasPermi(`out-material:warehouse-realtime-location-his:query`) + this.$auth.hasPermi(`out-material:warehouse-location-his:query`) ? { type: 'info', btnName: '详情', diff --git a/src/views/warehouse/package-material/warehouseLocationHis/index.vue b/src/views/warehouse/package-material/warehouseLocationHis/index.vue index 5c461c40..70b1efa8 100644 --- a/src/views/warehouse/package-material/warehouseLocationHis/index.vue +++ b/src/views/warehouse/package-material/warehouseLocationHis/index.vue @@ -114,7 +114,7 @@ export default { tableData: [], tableProps, tableBtn: [ - this.$auth.hasPermi(`pack-material:warehouse-realtime-location-his:query`) + this.$auth.hasPermi(`pack-material:warehouse-location-his:query`) ? { type: 'info', btnName: '详情', diff --git a/src/views/warehouse/part-material/warehouseLocationHis/index.vue b/src/views/warehouse/part-material/warehouseLocationHis/index.vue index d1518d03..5d1d7273 100644 --- a/src/views/warehouse/part-material/warehouseLocationHis/index.vue +++ b/src/views/warehouse/part-material/warehouseLocationHis/index.vue @@ -114,7 +114,7 @@ export default { tableData: [], tableProps, tableBtn: [ - this.$auth.hasPermi(`part-material:warehouse-realtime-location-his:query`) + this.$auth.hasPermi(`part-material:warehouse-location-his:query`) ? { type: 'info', btnName: '详情', diff --git a/src/views/warehouse/raw-material/warehouseLocationHis/index.vue b/src/views/warehouse/raw-material/warehouseLocationHis/index.vue index 642534cc..e41e654f 100644 --- a/src/views/warehouse/raw-material/warehouseLocationHis/index.vue +++ b/src/views/warehouse/raw-material/warehouseLocationHis/index.vue @@ -114,7 +114,7 @@ export default { tableData: [], tableProps, tableBtn: [ - this.$auth.hasPermi(`raw-material:warehouse-realtime-location-his:query`) + this.$auth.hasPermi(`raw-material:warehouse-location-his:query`) ? { type: 'info', btnName: '详情', From 76f5385140db08e835f5733553ffbef5f17e5bac Mon Sep 17 00:00:00 2001 From: lb Date: Fri, 17 Nov 2023 16:05:57 +0800 Subject: [PATCH 05/20] add Candidate --- .../components/CustomBomList.vue | 16 +++-- .../components/CustomTransfer.vue | 66 +++++++++++++++++-- .../components/CustomTransferBox.vue | 2 +- .../processFlowView/components/CustomTree.vue | 30 +++------ .../processFlowView/components/candidate.js | 43 ++++++++++++ 5 files changed, 124 insertions(+), 33 deletions(-) create mode 100644 src/views/extend/processFlowView/components/candidate.js diff --git a/src/views/extend/processFlowView/components/CustomBomList.vue b/src/views/extend/processFlowView/components/CustomBomList.vue index d1243363..5f25fadb 100644 --- a/src/views/extend/processFlowView/components/CustomBomList.vue +++ b/src/views/extend/processFlowView/components/CustomBomList.vue @@ -18,7 +18,9 @@
+ :class="{ + hidden: active && bomListLength > 0 ? false : true, + }">
  • {{ bom.name }} @@ -94,16 +96,16 @@ li { } ul { - display: flex; - flex-direction: column; - gap: 4px; - margin-top: 4px; + display: flex; + flex-direction: column; + gap: 4px; + margin-top: 4px; } .material-bom > li, .param-bom > li { padding: 4px 24px; - background: #0001; - border-radius: 4px; + background: #0001; + border-radius: 4px; } diff --git a/src/views/extend/processFlowView/components/CustomTransfer.vue b/src/views/extend/processFlowView/components/CustomTransfer.vue index 52498647..7d78ee22 100644 --- a/src/views/extend/processFlowView/components/CustomTransfer.vue +++ b/src/views/extend/processFlowView/components/CustomTransfer.vue @@ -51,8 +51,66 @@ export default { pageNo: 1, pageSize: 100, }, - candidateList: [], - selectedList: [], + candidate: { + total: 0, + tree: [ + { + id: 1, + name: '设备1', + paramBomList: [ + { name: '参数BOM1', type: 'param', id: 1 }, + { name: '参数BOM2', type: 'param', id: 2 }, + { name: '参数BOM3', type: 'param', id: 3 }, + { name: '参数BOM4', type: 'param', id: 4 }, + { name: '参数BOM5', type: 'param', id: 5 }, + ], + materialBomList: [ + { name: '物料BOM1', type: 'material', id: 1 }, + { name: '物料BOM2', type: 'material', id: 2 }, + { name: '物料BOM3', type: 'material', id: 3 }, + { name: '物料BOM4', type: 'material', id: 4 }, + { name: '物料BOM5', type: 'material', id: 5 }, + ], + }, + { + id: 2, + name: '设备2', + paramBomList: [ + { name: '参数BOM1', type: 'param', id: 1 }, + { name: '参数BOM2', type: 'param', id: 2 }, + { name: '参数BOM3', type: 'param', id: 3 }, + { name: '参数BOM4', type: 'param', id: 4 }, + { name: '参数BOM5', type: 'param', id: 5 }, + ], + materialBomList: [ + { name: '物料BOM1', type: 'material', id: 1 }, + { name: '物料BOM2', type: 'material', id: 2 }, + { name: '物料BOM3', type: 'material', id: 3 }, + { name: '物料BOM4', type: 'material', id: 4 }, + { name: '物料BOM5', type: 'material', id: 5 }, + ], + }, + { + id: 3, + name: '设备3', + paramBomList: [ + { name: '参数BOM1', type: 'param', id: 1 }, + { name: '参数BOM2', type: 'param', id: 2 }, + { name: '参数BOM3', type: 'param', id: 3 }, + { name: '参数BOM4', type: 'param', id: 4 }, + { name: '参数BOM5', type: 'param', id: 5 }, + ], + materialBomList: [ + { name: '物料BOM1', type: 'material', id: 1 }, + { name: '物料BOM2', type: 'material', id: 2 }, + { name: '物料BOM3', type: 'material', id: 3 }, + { name: '物料BOM4', type: 'material', id: 4 }, + { name: '物料BOM5', type: 'material', id: 5 }, + ], + }, + ], + }, + selectedList: [], }; }, computed: {}, @@ -101,8 +159,8 @@ export default { } this.bomLoading = false; }, - // - handleChange() {} + // + handleChange() {}, }, }; diff --git a/src/views/extend/processFlowView/components/CustomTransferBox.vue b/src/views/extend/processFlowView/components/CustomTransferBox.vue index ca4a3574..95098dee 100644 --- a/src/views/extend/processFlowView/components/CustomTransferBox.vue +++ b/src/views/extend/processFlowView/components/CustomTransferBox.vue @@ -26,7 +26,7 @@ - +
@@ -64,19 +53,12 @@
参数BOM
- - - + +
@@ -84,9 +66,10 @@ ; diff --git a/src/views/extend/processFlowView/components/BomSelector.vue b/src/views/extend/processFlowView/components/BomSelector.vue index 39ab1710..9927f7b1 100644 --- a/src/views/extend/processFlowView/components/BomSelector.vue +++ b/src/views/extend/processFlowView/components/BomSelector.vue @@ -12,6 +12,7 @@ @@ -23,16 +24,19 @@
可分配设备 - {{ selectedEquipments.length }}/{{ bomList.length }} + + {{ selectedEquipments.length }}/{{ filteredBomList.length }} +
- +
- +
@@ -42,6 +46,7 @@ [], }, + value: { + type: Array, + default: () => [], + }, }, data() { return { @@ -83,8 +97,29 @@ export default { selected: [], materialsBomList: [], valuesBomList: [], + refreshKey: Math.random(), }; }, + watch: { + value: { + handler(val) { + console.log('value', val); + if (val) { + this.selectedEquipments = val.map((item) => item.equipmentId); + this.selected = val; + } + }, + deep: true, + immediate: true, + }, + }, + computed: { + filteredBomList() { + return this.bomList.filter((item) => { + return item.name.includes(this.searchText); + }); + }, + }, methods: { handleEquipmentChange(eq, selected) { this.currentEquipment = eq.id; @@ -92,16 +127,24 @@ export default { this.valuesBomList = eq.valuesBom; if (selected) { + this.selectedEquipments.push(eq.id); this.selected.push({ equipmentId: eq.id, equValueBomId: null, equMaterialBomId: null, }); + this.$emit('update', this.selected); } else { // 清空选择状态 + this.selectedEquipments = this.selectedEquipments.filter( + (id) => id !== eq.id + ); + this.$refs.materialsBomList.clearSelected(); + this.$refs.valuesBomList.clearSelected(); this.selected = this.selected.filter( (item) => item.equipmentId !== eq.id ); + this.$emit('update', this.selected); } }, @@ -109,14 +152,41 @@ export default { const selectedItem = this.selected.find( (item) => item.equipmentId == equipmentId ); - selectedItem.equMaterialBomId = selected ? bomId : null; + if (selected && !selectedItem) { + // 如果没找到这个 + this.selectedEquipments.push(equipmentId); + this.selected.push({ + equipmentId, + equValueBomId: null, + equMaterialBomId: bomId, + }); + // 强制更新'设备'一栏 + this.refreshKey = Math.random(); + this.$emit('update', this.selected); + return; + } + selectedItem && (selectedItem.equMaterialBomId = selected ? bomId : null); + this.$emit('update', this.selected); }, handleValueBomChange(equipmentId, bomId, selected) { const selectedItem = this.selected.find( (item) => item.equipmentId == equipmentId ); - selectedItem.equValueBomId = selected ? bomId : null; + if (selected && !selectedItem) { + // 如果没找到这个 + this.selectedEquipments.push(equipmentId); + this.selected.push({ + equipmentId, + equValueBomId: bomId, + equMaterialBomId: null, + }); + this.refreshKey = Math.random(); + this.$emit('update', this.selected); + return; + } + selectedItem && (selectedItem.equValueBomId = selected ? bomId : null); + this.$emit('update', this.selected); }, }, }; diff --git a/src/views/extend/processFlowView/components/CustomBomList.vue b/src/views/extend/processFlowView/components/CustomBomList.vue deleted file mode 100644 index 5f25fadb..00000000 --- a/src/views/extend/processFlowView/components/CustomBomList.vue +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - - diff --git a/src/views/extend/processFlowView/components/CustomTransfer.vue b/src/views/extend/processFlowView/components/CustomTransfer.vue deleted file mode 100644 index 173c6c5a..00000000 --- a/src/views/extend/processFlowView/components/CustomTransfer.vue +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - - diff --git a/src/views/extend/processFlowView/components/CustomTransferBox.vue b/src/views/extend/processFlowView/components/CustomTransferBox.vue deleted file mode 100644 index 95098dee..00000000 --- a/src/views/extend/processFlowView/components/CustomTransferBox.vue +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - - diff --git a/src/views/extend/processFlowView/components/CustomTree.vue b/src/views/extend/processFlowView/components/CustomTree.vue deleted file mode 100644 index 6fd4e3e7..00000000 --- a/src/views/extend/processFlowView/components/CustomTree.vue +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - diff --git a/src/views/extend/processFlowView/components/ProcessBomList.vue b/src/views/extend/processFlowView/components/ProcessBomList.vue index 0e4e334f..8522f904 100644 --- a/src/views/extend/processFlowView/components/ProcessBomList.vue +++ b/src/views/extend/processFlowView/components/ProcessBomList.vue @@ -68,13 +68,12 @@ @cancel="cancel" @confirm="submitForm"> - + diff --git a/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue b/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue index 8731cd6f..26bac412 100644 --- a/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue +++ b/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue @@ -29,7 +29,10 @@
{{ section.name }} -
+
+
添加报警 @@ -102,9 +104,9 @@
@@ -123,9 +125,9 @@ + @@ -191,29 +193,12 @@ export default { url: '/base/equipment-group-alarm/getCode', rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, - { - select: true, - label: '报警类型', // 固定选项 - prop: 'type', - options: [ - { label: '布尔型', value: 2 }, - { label: '字符型', value: 1 }, - ], - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], - }, - ], - [ { select: true, label: '报警级别', // 字典 prop: 'grade', options: this.getDictDatas(this.DICT_TYPE.EQU_ALARM_LEVEL), }, - { - input: true, - label: '设备报警编码', // 对应到设备实际的报警编码 - prop: 'alarmCode', - }, ], [ { @@ -229,6 +214,23 @@ export default { rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, ], + [ + { + select: true, + label: '报警类型', // 固定选项 + prop: 'type', + options: [ + { label: '布尔型', value: 2 }, + { label: '字符型', value: 1 }, + ], + rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + }, + { + input: true, + label: '设备报警编码', // 对应到设备实际的报警编码 + prop: 'alarmCode', + }, + ], ], attrQuery: { params: { diff --git a/src/views/equipment/base/config/AlarmGroup/components/dialogForm.vue b/src/views/equipment/base/config/AlarmGroup/components/dialogForm.vue index ec7a67a0..ca8afb7b 100644 --- a/src/views/equipment/base/config/AlarmGroup/components/dialogForm.vue +++ b/src/views/equipment/base/config/AlarmGroup/components/dialogForm.vue @@ -23,6 +23,7 @@ @change="$emit('update', dataForm)" placeholder="请输入报警编码" /> + - - - - - - - - - - - - - - - - @@ -122,6 +86,42 @@ + + + + + + + + + + + + + + + diff --git a/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue b/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue index bd599044..ea1eab95 100644 --- a/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue +++ b/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue @@ -29,7 +29,10 @@
{{ section.name }} -
+
+
添加属性 @@ -102,9 +104,9 @@
@@ -120,10 +122,10 @@ @close="closeAttrForm" @cancel="closeAttrForm" @confirm="submitAttrForm"> + diff --git a/src/views/equipment/base/config/BindGroup/components/dialogForm.vue b/src/views/equipment/base/config/BindGroup/components/dialogForm.vue index fe7b848b..db6a5ee4 100644 --- a/src/views/equipment/base/config/BindGroup/components/dialogForm.vue +++ b/src/views/equipment/base/config/BindGroup/components/dialogForm.vue @@ -41,29 +41,6 @@ --> - - - - - - - - - - - - - - - @@ -122,6 +86,42 @@ + + + + + + + + + + + + + + + diff --git a/src/views/equipment/base/config/DataCollection/components/BasicDrawer.vue b/src/views/equipment/base/config/DataCollection/components/BasicDrawer.vue index 8fe9f1b1..a22fcedf 100644 --- a/src/views/equipment/base/config/DataCollection/components/BasicDrawer.vue +++ b/src/views/equipment/base/config/DataCollection/components/BasicDrawer.vue @@ -29,7 +29,10 @@
{{ section.name }} -
+
+
添加属性 @@ -104,9 +106,9 @@
@@ -122,10 +124,10 @@ @close="closeAttrForm" @cancel="closeAttrForm" @confirm="submitAttrForm"> + diff --git a/src/views/equipment/base/maintain/Record/index.vue b/src/views/equipment/base/maintain/Record/index.vue index a2d91f5b..f6fd273d 100644 --- a/src/views/equipment/base/maintain/Record/index.vue +++ b/src/views/equipment/base/maintain/Record/index.vue @@ -269,7 +269,6 @@ export default { prop: 'files', }, ], - // TODO: 富文本 [ { label: '保养描述', From ac28476024c71ea9b1c6188bebb695eb10b37145 Mon Sep 17 00:00:00 2001 From: lb Date: Wed, 22 Nov 2023 11:15:39 +0800 Subject: [PATCH 18/20] update hints --- .../components/EquipmentDrawer.vue | 2 +- .../components/EquipmentInfoForm.vue | 10 +- src/views/base/coreEquipment/index.vue | 20 +- .../base/coreEquipmentLineBind/index.vue | 6 +- src/views/base/coreEquipmentType/index.vue | 2 +- .../base/equipmentBindSection/dialogForm.vue | 6 +- src/views/base/equipmentBindSection/index.vue | 6 +- .../base/equipmentGroupAlarm/dialogForm.vue | 26 +- src/views/base/equipmentGroupAlarm/index.vue | 8 +- src/views/base/equipmentPlc/index.vue | 6 +- .../components/BasicDrawer.vue | 9 +- src/views/base/equipmentPlcConnect/index.vue | 6 +- src/views/base/equipmentPlcParam/index.vue | 9 +- .../AlarmGroup/components/BasicDrawer.vue | 8 +- .../AlarmGroup/components/dialogForm.vue | 27 +- .../base/config/AlarmGroup/index.vue | 10 +- .../BindGroup/components/BasicDrawer.vue | 8 +- .../BindGroup/components/dialogForm.vue | 26 +- .../equipment/base/config/BindGroup/index.vue | 6 +- .../DataCollection/CollectionConfig.vue | 6 +- .../config/DataCollection/TableConfig.vue | 6 +- .../DataCollection/components/BasicDrawer.vue | 13 +- .../base/config/deprecated/dialogForm.vue | 187 --------- .../base/config/deprecated/index.vue | 361 ------------------ .../base/inspection/Content/index.vue | 6 +- .../base/inspection/Record/index.vue | 7 +- .../base/inspection/Settings/index.vue | 6 +- .../base/maintain/PlanConfig/index.vue | 6 +- .../equipment/base/maintain/Record/index.vue | 10 +- .../base/repair/CustomDialogForm.vue | 8 +- src/views/equipment/base/repair/index.vue | 8 +- .../base/spareParts/Config/index.vue | 4 +- .../equipment/base/spareParts/List/index.vue | 17 +- .../base/spareParts/Monitor/index.vue | 4 +- src/views/extend/processFlow/index.vue | 6 +- .../components/ProcessDetail.vue | 4 +- src/views/extend/processFlowView/index.vue | 17 +- .../components/ProcessDetail.vue | 4 +- .../qualityInspectionBoxBtn/dialogForm.vue | 152 +++++--- .../qualityInspectionBoxBtn/index.vue | 5 +- .../base/qualityInspectionDet/index.vue | 4 +- .../base/qualityInspectionType/index.vue | 42 +- .../monitoring/currentData/dialogForm.vue | 10 +- .../components/ProcessDetail.vue | 4 +- .../qualityInspectionRecord/dialogForm.vue | 10 +- .../qualityInspectionRecord/index.vue | 17 +- .../monitoring/statisticalData/dialogForm.vue | 10 +- 47 files changed, 255 insertions(+), 880 deletions(-) delete mode 100644 src/views/equipment/base/config/deprecated/dialogForm.vue delete mode 100644 src/views/equipment/base/config/deprecated/index.vue diff --git a/src/views/base/coreEquipment/components/EquipmentDrawer.vue b/src/views/base/coreEquipment/components/EquipmentDrawer.vue index 10f95cea..4fd9551b 100644 --- a/src/views/base/coreEquipment/components/EquipmentDrawer.vue +++ b/src/views/base/coreEquipment/components/EquipmentDrawer.vue @@ -162,7 +162,7 @@ export default { input: true, label: '属性名称', prop: 'name', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '属性名称不能为空', trigger: 'blur' }], }, ], [ diff --git a/src/views/base/coreEquipment/components/EquipmentInfoForm.vue b/src/views/base/coreEquipment/components/EquipmentInfoForm.vue index 508e7d79..926c850a 100644 --- a/src/views/base/coreEquipment/components/EquipmentInfoForm.vue +++ b/src/views/base/coreEquipment/components/EquipmentInfoForm.vue @@ -10,7 +10,7 @@ v-loading="formLoading"> - + @@ -33,7 +33,7 @@ + :rules="[{ required: true, message: '设备类型不能为空', trigger: 'blur' }]"> @@ -43,7 +43,7 @@ + :rules="[{ required: true, message: '产线不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '工段不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '设备不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '报警编码不能为空', trigger: 'blur' }]"> - + :rules="[{ required: true, message: '报警类型不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '报警级别不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '参数列名不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '报警内容不能为空', trigger: 'blur' }]"> Number(val), }, ], - // rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, ], [ @@ -230,13 +228,11 @@ export default { input: true, label: '标准值', prop: 'defaultValue', - // rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, { input: true, label: '描述', prop: 'description', - // rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, ], [ @@ -244,7 +240,6 @@ export default { input: true, label: '备注', prop: 'remark', - // rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, ], ], diff --git a/src/views/base/equipmentPlcConnect/index.vue b/src/views/base/equipmentPlcConnect/index.vue index bb7c2df3..418c9c76 100644 --- a/src/views/base/equipmentPlcConnect/index.vue +++ b/src/views/base/equipmentPlcConnect/index.vue @@ -236,7 +236,7 @@ export default { prop: 'plcId', labelKey: `plcTableName`, url: '/base/equipment-plc/listAll', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '关联表名不能为空', trigger: 'blur' }], bind: { filterable: true, }, @@ -248,7 +248,7 @@ export default { label: '设备', prop: 'equipmentId', url: '/base/core-equipment/page?pageNo=1&pageSize=99', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '设备不能为空', trigger: 'blur' }], bind: { filterable: true, }, @@ -274,7 +274,7 @@ export default { input: true, label: '设备名', prop: 'equipmentName', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '设备名不能为空', trigger: 'blur' }], // bind: { // disabled: this.editMode == 'detail', // some condition, like detail mode... // } diff --git a/src/views/base/equipmentPlcParam/index.vue b/src/views/base/equipmentPlcParam/index.vue index e2454c75..5092dc9e 100644 --- a/src/views/base/equipmentPlcParam/index.vue +++ b/src/views/base/equipmentPlcParam/index.vue @@ -120,13 +120,13 @@ export default { input: true, label: '参数列名', prop: 'plcParamName', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '参数列名不能为空', trigger: 'blur' }], }, { input: true, label: '参数名称', prop: 'name', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '参数名称不能为空', trigger: 'blur' }], }, ], [ @@ -135,7 +135,6 @@ export default { label: '单位', prop: 'unit', options: this.getDictDatas(this.DICT_TYPE.UNIT_DICT), - // rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, { switch: true, @@ -176,7 +175,6 @@ export default { transform: (val) => Number(val), }, ], - // rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, ], [ @@ -184,13 +182,11 @@ export default { input: true, label: '标准值', prop: 'defaultValue', - // rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, { input: true, label: '描述', prop: 'description', - // rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, ], [ @@ -198,7 +194,6 @@ export default { input: true, label: '备注', prop: 'remark', - // rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, ], ], diff --git a/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue b/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue index 26bac412..f12d707c 100644 --- a/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue +++ b/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue @@ -191,7 +191,7 @@ export default { label: '报警编码', // 自动生成 prop: 'code', url: '/base/equipment-group-alarm/getCode', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '报警编码不能为空', trigger: 'blur' }], }, { select: true, @@ -205,13 +205,13 @@ export default { input: true, label: '参数列名', // 在实时数据库的列名 prop: 'plcParamName', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '参数列名不能为空', trigger: 'blur' }], }, { input: true, label: '报警内容', prop: 'alarmContent', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '报警内容不能为空', trigger: 'blur' }], }, ], [ @@ -223,7 +223,7 @@ export default { { label: '布尔型', value: 2 }, { label: '字符型', value: 1 }, ], - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '报警类型不能为空', trigger: 'blur' }], }, { input: true, diff --git a/src/views/equipment/base/config/AlarmGroup/components/dialogForm.vue b/src/views/equipment/base/config/AlarmGroup/components/dialogForm.vue index ca8afb7b..cab8b8fd 100644 --- a/src/views/equipment/base/config/AlarmGroup/components/dialogForm.vue +++ b/src/views/equipment/base/config/AlarmGroup/components/dialogForm.vue @@ -16,36 +16,19 @@ + :rules="[{ required: true, message: '报警编码不能为空', trigger: 'blur' }]"> - - + :rules="[{ required: true, message: '报警级别不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '参数列名不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '报警内容不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '报警类型不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '报警编码不能为空', trigger: 'blur' }]"> - + :rules="[{ required: true, message: '报警级别不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '参数列名不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '报警内容不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '报警类型不能为空', trigger: 'blur' }]"> Number(val), }, ], - // rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, ], [ @@ -283,13 +281,11 @@ export default { input: true, label: '标准值', prop: 'defaultValue', - // rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, { input: true, label: '描述', prop: 'description', - // rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, ], [ @@ -297,7 +293,6 @@ export default { input: true, label: '备注', prop: 'remark', - // rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, ], ], diff --git a/src/views/equipment/base/config/deprecated/dialogForm.vue b/src/views/equipment/base/config/deprecated/dialogForm.vue deleted file mode 100644 index 329186da..00000000 --- a/src/views/equipment/base/config/deprecated/dialogForm.vue +++ /dev/null @@ -1,187 +0,0 @@ - - - - - - - diff --git a/src/views/equipment/base/config/deprecated/index.vue b/src/views/equipment/base/config/deprecated/index.vue deleted file mode 100644 index dda58f82..00000000 --- a/src/views/equipment/base/config/deprecated/index.vue +++ /dev/null @@ -1,361 +0,0 @@ - - - diff --git a/src/views/equipment/base/inspection/Content/index.vue b/src/views/equipment/base/inspection/Content/index.vue index 22320c5f..bcdd8efd 100644 --- a/src/views/equipment/base/inspection/Content/index.vue +++ b/src/views/equipment/base/inspection/Content/index.vue @@ -127,7 +127,7 @@ export default { label: '巡检内容编号', prop: 'code', url: '/base/equipment-check/getCode', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '巡检内容编号不能为空', trigger: 'blur' }], }, ], [ @@ -135,7 +135,7 @@ export default { input: true, label: '巡检项目', prop: 'program', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '巡检项目不能为空', trigger: 'blur' }], }, ], [ @@ -143,7 +143,7 @@ export default { input: true, label: '巡检内容', prop: 'content', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '巡检内容不能为空', trigger: 'blur' }], }, ], [ diff --git a/src/views/equipment/base/inspection/Record/index.vue b/src/views/equipment/base/inspection/Record/index.vue index 965e6ad6..98a9604d 100644 --- a/src/views/equipment/base/inspection/Record/index.vue +++ b/src/views/equipment/base/inspection/Record/index.vue @@ -166,7 +166,7 @@ export default { filterable: true, clearable: true, }, - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '设备名称不能为空', trigger: 'blur' }], }, ], [ @@ -181,8 +181,7 @@ export default { clearable: true, multiple: true, }, - options: [{ label: 'test', value: 'test' }], - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '维修工不能为空', trigger: 'blur' }], }, { input: true, @@ -195,7 +194,7 @@ export default { datetime: true, label: '故障发生时间', prop: 'faultTime', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '故障发生时间不能为空', trigger: 'blur' }], bind: { format: 'yyyy-MM-dd HH:mm:ss', 'value-format': 'timestamp', diff --git a/src/views/equipment/base/inspection/Settings/index.vue b/src/views/equipment/base/inspection/Settings/index.vue index f1abafb2..e686ffdb 100644 --- a/src/views/equipment/base/inspection/Settings/index.vue +++ b/src/views/equipment/base/inspection/Settings/index.vue @@ -152,14 +152,14 @@ export default { input: true, label: '配置名称', prop: 'name', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '配置名称不能为空', trigger: 'blur' }], }, { input: true, label: '配置编码', prop: 'code', url: '/base/equipment-check-config/getCode', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '配置编码不能为空', trigger: 'blur' }], }, ], [ @@ -168,7 +168,7 @@ export default { label: '设备名称', prop: 'equipmentId', url: '/base/core-equipment/listAll', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '设备名称不能为空', trigger: 'blur' }], }, { input: true, diff --git a/src/views/equipment/base/maintain/PlanConfig/index.vue b/src/views/equipment/base/maintain/PlanConfig/index.vue index 6eb79d63..69b52e6b 100644 --- a/src/views/equipment/base/maintain/PlanConfig/index.vue +++ b/src/views/equipment/base/maintain/PlanConfig/index.vue @@ -169,14 +169,14 @@ export default { input: true, label: '计划名称', prop: 'name', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '计划名称不能为空', trigger: 'blur' }], }, { input: true, label: '计划编号', prop: 'code', url: '/base/equipment-maintain-plan/getCode', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '计划编号不能为空', trigger: 'blur' }], }, ], [ @@ -185,7 +185,7 @@ export default { label: '设备名称', prop: 'equipmentId', url: '/base/core-equipment/listAll', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '设备名称不能为空', trigger: 'blur' }], }, { select: true, diff --git a/src/views/equipment/base/maintain/Record/index.vue b/src/views/equipment/base/maintain/Record/index.vue index f6fd273d..ece2a1ea 100644 --- a/src/views/equipment/base/maintain/Record/index.vue +++ b/src/views/equipment/base/maintain/Record/index.vue @@ -186,7 +186,7 @@ export default { filterable: true, clearable: true, }, - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '保养设备不能为空', trigger: 'blur' }], }, { select: true, @@ -199,7 +199,7 @@ export default { clearable: true, multiple: true, }, - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '保养人员不能为空', trigger: 'blur' }], }, { input: true, @@ -216,7 +216,7 @@ export default { 'active-value': 1, 'inactive-value': 2, }, - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '是否计划保养不能为空', trigger: 'blur' }], }, {}, { @@ -235,7 +235,7 @@ export default { datetime: true, label: '开始时间', prop: 'startTime', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '开始时间不能为空', trigger: 'blur' }], bind: { format: 'yyyy-MM-dd HH:mm:ss', 'value-format': 'timestamp', @@ -247,7 +247,7 @@ export default { datetime: true, label: '结束时间', prop: 'endTime', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '结束时间不能为空', trigger: 'blur' }], bind: { format: 'yyyy-MM-dd HH:mm:ss', 'value-format': 'timestamp', diff --git a/src/views/equipment/base/repair/CustomDialogForm.vue b/src/views/equipment/base/repair/CustomDialogForm.vue index e854d239..1b2dd8a8 100644 --- a/src/views/equipment/base/repair/CustomDialogForm.vue +++ b/src/views/equipment/base/repair/CustomDialogForm.vue @@ -63,7 +63,7 @@ + :rules="[{ required: true, message: '维修开始时间不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '维修结束时间不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '维修方式不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '故障明细不能为空', trigger: 'blur' }]"> diff --git a/src/views/equipment/base/repair/index.vue b/src/views/equipment/base/repair/index.vue index 965775e2..6ccba2e3 100644 --- a/src/views/equipment/base/repair/index.vue +++ b/src/views/equipment/base/repair/index.vue @@ -169,7 +169,7 @@ export default { input: true, label: '维修单号', prop: 'repairOrderNumber', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '维修单号不能为空', trigger: 'blur' }], }, { select: true, @@ -180,7 +180,7 @@ export default { filterable: true, clearable: true, }, - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '设备名称不能为空', trigger: 'blur' }], }, ], [ @@ -198,7 +198,7 @@ export default { // multiple: true, }, // options: [{ label: 'test', value: 'test' }], - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '维修工不能为空', trigger: 'blur' }], }, { input: true, @@ -211,7 +211,7 @@ export default { datetime: true, label: '故障发生时间', prop: 'faultTime', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '故障发生时间不能为空', trigger: 'blur' }], bind: { format: 'yyyy-MM-dd HH:mm:ss', 'value-format': 'timestamp', diff --git a/src/views/equipment/base/spareParts/Config/index.vue b/src/views/equipment/base/spareParts/Config/index.vue index a8d7c891..71b323b2 100644 --- a/src/views/equipment/base/spareParts/Config/index.vue +++ b/src/views/equipment/base/spareParts/Config/index.vue @@ -161,7 +161,7 @@ export default { input: true, label: '配置名称', prop: 'name', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '配置名称不能为空', trigger: 'blur' }], }, ], [ @@ -174,7 +174,7 @@ export default { filterable: true, clearable: true, }, - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '设备名称不能为空', trigger: 'blur' }], }, ], [ diff --git a/src/views/equipment/base/spareParts/List/index.vue b/src/views/equipment/base/spareParts/List/index.vue index f4b02b42..3f291d20 100644 --- a/src/views/equipment/base/spareParts/List/index.vue +++ b/src/views/equipment/base/spareParts/List/index.vue @@ -153,7 +153,7 @@ export default { filterable: true, clearable: true, }, - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '供应商不能为空', trigger: 'blur' }], }, ], [ @@ -196,21 +196,6 @@ export default { prop: 'remark', }, ], - // [ - // { - // datetime: true, - // label: '故障发生时间', - // prop: 'faultTime', - // rules: [{ required: true, message: '不能为空', trigger: 'blur' }], - // bind: { - // format: 'yyyy-MM-dd HH:mm:ss', - // 'value-format': 'timestamp', - // // 'value-format': 'yyyy-MM-dd HH:mm:ss', - // clearable: true, - // }, - // }, - - // ], ], // 是否显示弹出层 open: false, diff --git a/src/views/equipment/base/spareParts/Monitor/index.vue b/src/views/equipment/base/spareParts/Monitor/index.vue index 1f07fa39..cbaffa40 100644 --- a/src/views/equipment/base/spareParts/Monitor/index.vue +++ b/src/views/equipment/base/spareParts/Monitor/index.vue @@ -211,7 +211,7 @@ export default { input: true, label: '配置名称', prop: 'name', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '配置名称不能为空', trigger: 'blur' }], }, ], [ @@ -224,7 +224,7 @@ export default { filterable: true, clearable: true, }, - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '设备名称不能为空', trigger: 'blur' }], }, ], [ diff --git a/src/views/extend/processFlow/index.vue b/src/views/extend/processFlow/index.vue index d346b0d6..083e48ab 100644 --- a/src/views/extend/processFlow/index.vue +++ b/src/views/extend/processFlow/index.vue @@ -180,7 +180,7 @@ export default { input: true, label: '工艺名称', prop: 'name', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '工艺名称不能为空', trigger: 'blur' }], // bind: { // disabled: this.editMode == 'detail', // some condition, like detail mode... // } @@ -197,6 +197,7 @@ export default { select: true, label: '产线', prop: 'lineId', + rules: [{ required: true, message: '产线不能为空', trigger: 'blur' }], // cache: 'processFlow::lineList', url: '/base/core-production-line/listAll', bind: { @@ -217,8 +218,9 @@ export default { [ { textarea: true, - label: '功能描述', + label: '工艺描述', prop: 'remark', + rules: [{ required: true, message: '工艺描述不能为空', trigger: 'blur' }], }, ], ], diff --git a/src/views/extend/processFlowView/components/ProcessDetail.vue b/src/views/extend/processFlowView/components/ProcessDetail.vue index b1f71270..77368267 100644 --- a/src/views/extend/processFlowView/components/ProcessDetail.vue +++ b/src/views/extend/processFlowView/components/ProcessDetail.vue @@ -102,7 +102,7 @@ export default { input: true, label: '工序名称', prop: 'name', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '工序名称不能为空', trigger: 'blur' }], }, ], [ @@ -111,7 +111,7 @@ export default { label: '工段', prop: 'sectionId', url: '/base/core-workshop-section/listAll', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '工段不能为空', trigger: 'blur' }], bind: { filterable: true, }, diff --git a/src/views/extend/processFlowView/index.vue b/src/views/extend/processFlowView/index.vue index 4632eec7..5bc85968 100644 --- a/src/views/extend/processFlowView/index.vue +++ b/src/views/extend/processFlowView/index.vue @@ -25,7 +25,7 @@ export default { data() { return { flowId: null, - currentDet: null + currentDet: null, }; }, provide() { @@ -36,6 +36,14 @@ export default { }, }; }, + beforeRouteEnter(to, from, next) { + console.log('tot', to, from); + if (to.params.id) { + next(); + } else { + next({ path: '/extend/process-flow' }); + } + }, activated() { console.log('activated...', this.$route.params); this.flowId = this.$route.params.id; @@ -44,10 +52,9 @@ export default { methods: { handleDetSelected(det) { if (det != null) { - this.currentDet = { ...det } - } - else this.currentDet = null; - } + this.currentDet = { ...det }; + } else this.currentDet = null; + }, }, }; diff --git a/src/views/extend/processTraceabilityDetail/components/ProcessDetail.vue b/src/views/extend/processTraceabilityDetail/components/ProcessDetail.vue index 431afddc..0a4fa84f 100644 --- a/src/views/extend/processTraceabilityDetail/components/ProcessDetail.vue +++ b/src/views/extend/processTraceabilityDetail/components/ProcessDetail.vue @@ -68,7 +68,7 @@ export default { input: true, label: '工序名称', prop: 'name', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '工序名称不能为空', trigger: 'blur' }], }, ], [ @@ -77,7 +77,7 @@ export default { label: '工段', prop: 'sectionId', url: '/base/core-workshop-section/listAll', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '工段不能为空', trigger: 'blur' }], bind: { filterable: true, }, diff --git a/src/views/quality/base/basicData/qualityInspectionBoxBtn/dialogForm.vue b/src/views/quality/base/basicData/qualityInspectionBoxBtn/dialogForm.vue index f3d76f03..bab9b554 100644 --- a/src/views/quality/base/basicData/qualityInspectionBoxBtn/dialogForm.vue +++ b/src/views/quality/base/basicData/qualityInspectionBoxBtn/dialogForm.vue @@ -6,45 +6,23 @@ --> diff --git a/src/views/base/coreWorkOrder/add-or-updata.vue b/src/views/base/coreWorkOrder/add-or-updata.vue index cf52a675..98f4de45 100644 --- a/src/views/base/coreWorkOrder/add-or-updata.vue +++ b/src/views/base/coreWorkOrder/add-or-updata.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-18 14:16:25 * @LastEditors: DY - * @LastEditTime: 2023-11-06 14:38:20 + * @LastEditTime: 2023-11-20 16:51:24 * @Description: -->