|
@@ -21,7 +21,9 @@
|
|
|
@click="openMaintenancePlan(item)"
|
|
@click="openMaintenancePlan(item)"
|
|
|
>
|
|
>
|
|
|
<div class="circle">{{ index + 1 }}</div>
|
|
<div class="circle">{{ index + 1 }}</div>
|
|
|
- <div class="desc">{{ item.ruleName || item.itemTaskName }}</div>
|
|
|
|
|
|
|
+ <div class="desc">{{
|
|
|
|
|
+ item.ruleName || item.itemTaskName || item.planConfigName
|
|
|
|
|
+ }}</div>
|
|
|
<div class="methods">{{ item.recordRulesExecuteMethodName }}</div>
|
|
<div class="methods">{{ item.recordRulesExecuteMethodName }}</div>
|
|
|
|
|
|
|
|
<el-button
|
|
<el-button
|
|
@@ -42,33 +44,32 @@
|
|
|
<el-button @click="handleClose">取消</el-button>
|
|
<el-button @click="handleClose">取消</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
- <programRulesDialog
|
|
|
|
|
- ref="programRulesDialogRef"
|
|
|
|
|
- :dialogTitle="dialogTitle"
|
|
|
|
|
- @reload="getData"
|
|
|
|
|
- />
|
|
|
|
|
-
|
|
|
|
|
<releaseRulesDialog ref="releaseRulesDialogRef" @reload="getData" />
|
|
<releaseRulesDialog ref="releaseRulesDialogRef" @reload="getData" />
|
|
|
|
|
|
|
|
<taskDialog ref="taskDialogRef" @reload="getData" />
|
|
<taskDialog ref="taskDialogRef" @reload="getData" />
|
|
|
|
|
+
|
|
|
|
|
+ <PlanRulesDialog ref="planRulesDialogRef"></PlanRulesDialog>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import releaseRulesDialog from './releaseRulesDialog.vue';
|
|
import releaseRulesDialog from './releaseRulesDialog.vue';
|
|
|
- import programRulesDialog from './programRulesDialog.vue';
|
|
|
|
|
import {
|
|
import {
|
|
|
getLastRuleRecords,
|
|
getLastRuleRecords,
|
|
|
getProduceTaskInstanceId
|
|
getProduceTaskInstanceId
|
|
|
} from '@/api/producetaskrulerecord/index.js';
|
|
} from '@/api/producetaskrulerecord/index.js';
|
|
|
import taskDialog from './taskDialog.vue';
|
|
import taskDialog from './taskDialog.vue';
|
|
|
|
|
+ import PlanRulesDialog from './PlanRulesDialog.vue';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
- components: { programRulesDialog, releaseRulesDialog, taskDialog },
|
|
|
|
|
|
|
+ components: {
|
|
|
|
|
+ releaseRulesDialog,
|
|
|
|
|
+ taskDialog,
|
|
|
|
|
+ PlanRulesDialog
|
|
|
|
|
+ },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
|
- dialogTitle: '设备保养计划',
|
|
|
|
|
ruleRecordsList: [],
|
|
ruleRecordsList: [],
|
|
|
// 工艺路线
|
|
// 工艺路线
|
|
|
workOrderInfo: null,
|
|
workOrderInfo: null,
|
|
@@ -153,13 +154,9 @@
|
|
|
console.log('item', item);
|
|
console.log('item', item);
|
|
|
|
|
|
|
|
if (item.executeMethod == 1) {
|
|
if (item.executeMethod == 1) {
|
|
|
- // 设备保养计划相关逻辑
|
|
|
|
|
- this.dialogTitle = '新增设备保养计划';
|
|
|
|
|
- this.$refs.programRulesDialogRef.init(
|
|
|
|
|
- item,
|
|
|
|
|
- this.workOrderInfo,
|
|
|
|
|
- this.produceTaskInfo
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ // 计划规则 巡点检
|
|
|
|
|
+ this.$refs.planRulesDialogRef.open(item);
|
|
|
|
|
+
|
|
|
} else if (item.executeMethod == 2) {
|
|
} else if (item.executeMethod == 2) {
|
|
|
this.$refs.releaseRulesDialogRef.open(
|
|
this.$refs.releaseRulesDialogRef.open(
|
|
|
item,
|
|
item,
|