|
@@ -77,6 +77,16 @@
|
|
|
|
|
|
|
|
<!-- <el-tab-pane label="退料详情">
|
|
<!-- <el-tab-pane label="退料详情">
|
|
|
</el-tab-pane> -->
|
|
</el-tab-pane> -->
|
|
|
|
|
+
|
|
|
|
|
+ <el-tab-pane
|
|
|
|
|
+ label="记录详情"
|
|
|
|
|
+ v-if="sourceTaskId && workOrderInfo.bomCategoryId"
|
|
|
|
|
+ >
|
|
|
|
|
+ <recordRules
|
|
|
|
|
+ :produceTaskId="sourceTaskId"
|
|
|
|
|
+ :bomCategoryId="workOrderInfo.bomCategoryId"
|
|
|
|
|
+ ></recordRules>
|
|
|
|
|
+ </el-tab-pane>
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
</div>
|
|
</div>
|
|
|
</el-drawer>
|
|
</el-drawer>
|
|
@@ -91,6 +101,7 @@
|
|
|
import { getTaskInstanceList } from '@/api/produce/job';
|
|
import { getTaskInstanceList } from '@/api/produce/job';
|
|
|
import productionDetails from '@/views//workOrderList/components/productionDetails.vue';
|
|
import productionDetails from '@/views//workOrderList/components/productionDetails.vue';
|
|
|
import pickDetails from '../../details.vue';
|
|
import pickDetails from '../../details.vue';
|
|
|
|
|
+ import recordRules from '../recordRules/recordRules.vue';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
@@ -98,7 +109,8 @@
|
|
|
feedDetails,
|
|
feedDetails,
|
|
|
jobDetails,
|
|
jobDetails,
|
|
|
productionDetails,
|
|
productionDetails,
|
|
|
- pickDetails
|
|
|
|
|
|
|
+ pickDetails,
|
|
|
|
|
+ recordRules
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -114,7 +126,8 @@
|
|
|
newId: '',
|
|
newId: '',
|
|
|
routeObj: {
|
|
routeObj: {
|
|
|
id: null
|
|
id: null
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ sourceTaskId: ''
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -133,6 +146,7 @@
|
|
|
this.workOrderInfo = row;
|
|
this.workOrderInfo = row;
|
|
|
this.routeObj.id = this.workOrderInfo.id;
|
|
this.routeObj.id = this.workOrderInfo.id;
|
|
|
console.log(this.workOrderInfo.id, 'workOrderInfo.id');
|
|
console.log(this.workOrderInfo.id, 'workOrderInfo.id');
|
|
|
|
|
+ console.log('workOrderInfo', this.workOrderInfo);
|
|
|
this.getTaskFn();
|
|
this.getTaskFn();
|
|
|
this.drawer = true;
|
|
this.drawer = true;
|
|
|
},
|
|
},
|
|
@@ -151,6 +165,7 @@
|
|
|
this.desIndex = index;
|
|
this.desIndex = index;
|
|
|
console.log(this.routeList, '888888');
|
|
console.log(this.routeList, '888888');
|
|
|
this.newId = this.routeList[this.desIndex]?.taskId || '';
|
|
this.newId = this.routeList[this.desIndex]?.taskId || '';
|
|
|
|
|
+ this.sourceTaskId = this.routeList[this.desIndex]?.sourceTaskId || '';
|
|
|
|
|
|
|
|
if (this.workOrderInfo.taskId != -2) {
|
|
if (this.workOrderInfo.taskId != -2) {
|
|
|
this.curTaskObj = JSON.parse(JSON.stringify(this.routeObj));
|
|
this.curTaskObj = JSON.parse(JSON.stringify(this.routeObj));
|
|
@@ -159,6 +174,8 @@
|
|
|
this.desIndex = 0;
|
|
this.desIndex = 0;
|
|
|
}
|
|
}
|
|
|
this.activeIndex = index;
|
|
this.activeIndex = index;
|
|
|
|
|
+ console.log('this.curTaskObj', this.curTaskObj);
|
|
|
|
|
+ console.log('this.newId', this.newId);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -172,6 +189,7 @@
|
|
|
} else {
|
|
} else {
|
|
|
this.desIndex = index;
|
|
this.desIndex = index;
|
|
|
this.newId = this.routeList[this.desIndex].taskId || '';
|
|
this.newId = this.routeList[this.desIndex].taskId || '';
|
|
|
|
|
+ this.sourceTaskId = this.routeList[this.desIndex]?.sourceTaskId || '';
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|