|
@@ -205,7 +205,7 @@
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
- const isSourceTask = this.type === 1;
|
|
|
|
|
|
|
+ const isSourceTask = this.type == 1;
|
|
|
|
|
|
|
|
const params = {
|
|
const params = {
|
|
|
workOrderId: this.workOrder?.id,
|
|
workOrderId: this.workOrder?.id,
|
|
@@ -214,7 +214,8 @@
|
|
|
: this.produceTaskInfo?.id,
|
|
: this.produceTaskInfo?.id,
|
|
|
produceTaskInstanceId: isSourceTask
|
|
produceTaskInstanceId: isSourceTask
|
|
|
? this.produceTaskInfo?.id
|
|
? this.produceTaskInfo?.id
|
|
|
- : this.workOrder?.taskId
|
|
|
|
|
|
|
+ : this.workOrder?.taskId,
|
|
|
|
|
+ type: isSourceTask ? 2 : 1
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const { list = [] } = await getQualityInspectionList(params);
|
|
const { list = [] } = await getQualityInspectionList(params);
|