diff --git a/src/views/specialEquipment/check/Content-add.vue b/src/views/specialEquipment/check/Content-add.vue index 67aeab10..7f334286 100644 --- a/src/views/specialEquipment/check/Content-add.vue +++ b/src/views/specialEquipment/check/Content-add.vue @@ -24,6 +24,8 @@ ({ diff --git a/src/views/specialEquipment/check/Content-add_detail.vue b/src/views/specialEquipment/check/Content-add_detail.vue index 4d5865e8..6fc64acb 100644 --- a/src/views/specialEquipment/check/Content-add_detail.vue +++ b/src/views/specialEquipment/check/Content-add_detail.vue @@ -155,6 +155,18 @@ export default { rules: [ { required: true, message: '设备不能为空', trigger: 'blur' }, ], + bind: { + clearable: true, + filterable: true + } + }, + { + input: true, + label: '巡检项目', + prop: 'program', + rules: [ + { required: true, message: '巡检项目不能为空', trigger: 'blur' }, + ], }, ], [ diff --git a/src/views/specialEquipment/check/Content-edit.vue b/src/views/specialEquipment/check/Content-edit.vue index 1a7c8326..81c90c2e 100644 --- a/src/views/specialEquipment/check/Content-edit.vue +++ b/src/views/specialEquipment/check/Content-edit.vue @@ -251,6 +251,10 @@ export default { rules: [ { required: true, message: '设备不能为空', trigger: 'blur' }, ], + bind: { + filterable: true, + clearable: true, + } }, ], [ diff --git a/src/views/specialEquipment/check/Record.vue b/src/views/specialEquipment/check/Record.vue index 815f81de..a1402435 100644 --- a/src/views/specialEquipment/check/Record.vue +++ b/src/views/specialEquipment/check/Record.vue @@ -91,7 +91,7 @@ export default { tableProps: [ { prop: 'name', label: '巡检单名称' }, { prop: 'department', label: '部门' }, - { prop: 'actualCheckTime', label: '巡检时间', filter: parseTime }, + { prop: 'planCheckTime', label: '巡检时间', filter: parseTime }, { prop: 'groupClass', label: '班次' }, // { // prop: '_detail', diff --git a/src/views/specialEquipment/check/add.vue b/src/views/specialEquipment/check/add.vue index b793d809..a954f3c1 100644 --- a/src/views/specialEquipment/check/add.vue +++ b/src/views/specialEquipment/check/add.vue @@ -109,6 +109,7 @@ export default { departmentId: null, planCheckTime: null, confirmTimeLimit: null, + checkPeriod: null, groupClass: null, remark: null, // special: true, diff --git a/src/views/specialEquipment/maintain/Monitor--detail.vue b/src/views/specialEquipment/maintain/Monitor--detail.vue index 29449ea2..c305ff97 100644 --- a/src/views/specialEquipment/maintain/Monitor--detail.vue +++ b/src/views/specialEquipment/maintain/Monitor--detail.vue @@ -40,37 +40,37 @@ - {{ form.name }} + {{ form.name || '---' }} - {{ form.departmentName }} + {{ form.departmentName || '---' }} - {{ form.lineName }} + {{ form.lineName || '---' }} - {{ form.maintenancePeriod }} + {{ form.maintenancePeriod || '---' }} - {{ form.maintainDuration }} + {{ form.maintainDuration || '---' }} - {{ form.maintainer }} + {{ form.maintainer || '---' }} diff --git a/src/views/specialEquipment/maintain/Monitor.vue b/src/views/specialEquipment/maintain/Monitor.vue index e56c3e2a..637ff9c3 100644 --- a/src/views/specialEquipment/maintain/Monitor.vue +++ b/src/views/specialEquipment/maintain/Monitor.vue @@ -119,7 +119,7 @@ const btn = { render: function (h) { return ( - {this.injectData.name} + {this.injectData.entryText} ); }, @@ -188,7 +188,7 @@ export default { { prop: 'opt2', label: '保养内容', - name: '详情', + entryText: '详情', subcomponent: btn, width: 100, }, @@ -386,6 +386,7 @@ export default { case '保养内容': this.monitorDetailVisible = true; this.$nextTick(() => { + console.log('value', value); this.$refs.monitorDetailDrawer.show(value); }); break; diff --git a/src/views/specialEquipment/maintain/PlanConfig--addContent.vue b/src/views/specialEquipment/maintain/PlanConfig--addContent.vue index fea136d1..cf8f95bf 100644 --- a/src/views/specialEquipment/maintain/PlanConfig--addContent.vue +++ b/src/views/specialEquipment/maintain/PlanConfig--addContent.vue @@ -188,6 +188,10 @@ export default { rules: [ { required: true, message: '设备不能为空', trigger: 'blur' }, ], + bind: { + filterable: true, + clearable: true, + } }, ], [ diff --git a/src/views/specialEquipment/maintain/Record.vue b/src/views/specialEquipment/maintain/Record.vue index 5e0b7a97..8175f3ea 100644 --- a/src/views/specialEquipment/maintain/Record.vue +++ b/src/views/specialEquipment/maintain/Record.vue @@ -296,6 +296,8 @@ export default { placeholder: '请选择保养计划名称', param: 'maintainPlanId', defaultSelect: null, + filterable: true, + clearable: true }, // 开始结束时间 { diff --git a/src/views/specialEquipment/maintain/WaitingList--add--unplanned.vue b/src/views/specialEquipment/maintain/WaitingList--add--unplanned.vue index 068c0137..3cf2778d 100644 --- a/src/views/specialEquipment/maintain/WaitingList--add--unplanned.vue +++ b/src/views/specialEquipment/maintain/WaitingList--add--unplanned.vue @@ -269,6 +269,7 @@ export default { }, mounted() { // !this.edit && this.getCode('/base/equipment-maintain-plan/getCode'); + // this.getList('code'); this.getList('maintainer'); this.getList('department'); this.getList('line'); @@ -328,6 +329,7 @@ export default { '/base/core-department/listAll', '/base/core-worker/workerList', // '/base/core-worker/listAll', + '/base/equipment-maintain-log/getCode', ]; let res; switch (source) { diff --git a/src/views/specialEquipment/maintain/WaitingList.vue b/src/views/specialEquipment/maintain/WaitingList.vue index 89faded4..3d943f59 100644 --- a/src/views/specialEquipment/maintain/WaitingList.vue +++ b/src/views/specialEquipment/maintain/WaitingList.vue @@ -381,6 +381,8 @@ export default { placeholder: '请选择保养计划名称', param: 'maintainPlanId', defaultSelect: null, + clearable: true, + filterable: true, }, // 开始结束时间 { @@ -669,8 +671,21 @@ export default { /** 新增按钮操作 */ handleAdd() { this.reset(); - this.open = true; - this.title = '添加待确认保养记录'; + this.$axios({ + url: '/base/equipment-maintain-log/getCode', + }) + .then((res) => { + if (res.code == 0) { + this.form.maintainOrderNumber = res.data; + this.open = true; + this.title = '添加待确认保养记录'; + } + }) + .catch((err) => { + this.$message.error('获取保养单号出错'); + this.open = true; + this.title = '添加待确认保养记录'; + }); }, getConfirmed() { diff --git a/src/views/specialEquipment/maintain/WaitingListUnplanned--add_detail.vue b/src/views/specialEquipment/maintain/WaitingListUnplanned--add_detail.vue index 65ac8674..0e4b02cf 100644 --- a/src/views/specialEquipment/maintain/WaitingListUnplanned--add_detail.vue +++ b/src/views/specialEquipment/maintain/WaitingListUnplanned--add_detail.vue @@ -9,7 +9,9 @@ +

+ 确认要关闭页面吗? +

+ , + //

+ // 确定关闭将不保留编辑内容 + //

+ { + confirmButtonText: '确 定', + cancelButtonText: '取 消', + type: 'warning', + } + ) + ) { + this.handleConfirm(); + } + } catch (err) { + return false; + } + }, + handleSearchBarBtnClick(btn) { switch (btn.btnName) { case 'search':