|
|
@@ -230,12 +230,16 @@
|
|
|
this.dialogVisible = false;
|
|
|
},
|
|
|
openMaintenancePlan(item) {
|
|
|
- console.log('item', item);
|
|
|
-
|
|
|
+ console.log('item~~~', item);
|
|
|
+ // itemType 事项类型
|
|
|
if (item.itemType == 1) {
|
|
|
// 计划规则 巡点检 设备保养
|
|
|
this.$refs.planRulesDialogRef.open(item);
|
|
|
} else if (item.itemType == 2) {
|
|
|
+ if(!item.planId && item.executeMethod == 1) {
|
|
|
+ this.$message.error('未生成记录计划');
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.$refs.releaseRulesDialogRef.open(
|
|
|
item,
|
|
|
this.workOrderInfo,
|