|
|
@@ -244,6 +244,11 @@
|
|
|
<!-- <workes ref="jobRefs"> </workes> -->
|
|
|
|
|
|
<!-- :workListIds="workListIds" :taskId="taskObj.id" -->
|
|
|
+ <!-- 产前准备 、 过程控制 、产后检测 -->
|
|
|
+ <prenatalExamination
|
|
|
+ ref="prenatalExaminationRef"
|
|
|
+ @close="closePrenatalExamination"
|
|
|
+ />
|
|
|
<!-- 工步 -->
|
|
|
<workStep ref="workStepRef" />
|
|
|
<!-- 任务 -->
|
|
|
@@ -264,6 +269,7 @@
|
|
|
import TaskDialog from '@/views/produce/components/taskDialog/index.vue';
|
|
|
import Search from '@/views/produce/components/search.vue';
|
|
|
import footBtn from '@/views/produce/components/footBtn.vue';
|
|
|
+ import prenatalExamination from '@/views/produce/components/prenatalExamination/index.vue';
|
|
|
import produceOrder from '@/views/produce/components/new_produceOrder.vue';
|
|
|
import productionResource from '@/views/produce/components/productionResource/index.vue';
|
|
|
import outsourcing from '@/views/produce/components/outsourcing/index.vue';
|
|
|
@@ -333,7 +339,8 @@
|
|
|
outsourcingDetails,
|
|
|
pleaseEntrust,
|
|
|
addPlease,
|
|
|
- qualityInspection
|
|
|
+ qualityInspection,
|
|
|
+ prenatalExamination
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -954,6 +961,48 @@
|
|
|
);
|
|
|
}
|
|
|
|
|
|
+ // this.$refs.prenatalExaminationRef.open(
|
|
|
+ // this.workData.list[0],
|
|
|
+ // this.produceTaskInfo,
|
|
|
+ // type
|
|
|
+ // );
|
|
|
+
|
|
|
+ if (t == 'prenatalExamination') {
|
|
|
+ if (this.workListIds.length > 1) {
|
|
|
+ return this.$message.warning('产前准备只能选择一个工单!');
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$refs.prenatalExaminationRef.open(
|
|
|
+ this.workOrderInfo,
|
|
|
+ this.taskObj,
|
|
|
+ 1
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ if (t == 'postpartumExamination') {
|
|
|
+ if (this.workListIds.length > 1) {
|
|
|
+ return this.$message.warning('产后检查只能选择一个工单!');
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$refs.prenatalExaminationRef.open(
|
|
|
+ this.workOrderInfo,
|
|
|
+ this.taskObj,
|
|
|
+ 3
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ if (t == 'processDetection') {
|
|
|
+ if (this.workListIds.length > 1) {
|
|
|
+ return this.$message.warning('过程控制只能选择一个工单!');
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$refs.prenatalExaminationRef.open(
|
|
|
+ this.workOrderInfo,
|
|
|
+ this.taskObj,
|
|
|
+ 2
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
if (t === 'error') {
|
|
|
if (this.workListIds.length > 1) {
|
|
|
return this.$message.warning('异常只能选择一个工单!');
|