Przeglądaj źródła

除首工序外不默认设备

LAPTOP-16IUEB3P\Lenovo 2 lat temu
rodzic
commit
5e8cb2fb2f

+ 1 - 3
src/views/produceOrder/components/report/Common.vue

@@ -315,10 +315,8 @@
       infoData: {
         immediate: true,
         handler () {
-          if (this.infoData.id) {
+          if (this.infoData.id && this.currentInfo.code == this.firstInfo.code ) {
             // 设备
-			console.log('currentInfo',this.currentInfo)
-			console.log('firstInfo',this.firstInfo)
             this.workReportDeviceList = Object.assign(
               {},
               this.workReportDeviceList,

+ 1 - 1
src/views/produceOrder/components/report/Extrusion.vue

@@ -399,7 +399,7 @@
       infoData: {
         immediate: true,
         handler () {
-          if (this.infoData.id) {
+          if (this.infoData.id && this.currentInfo.code == this.firstInfo.code) {
             // 设备
             this.workReportDeviceList = Object.assign(
               {},

+ 1 - 1
src/views/produceOrder/components/report/Furnace.vue

@@ -168,7 +168,7 @@
       infoData: {
         immediate: true,
         handler () {
-          if (this.infoData.id) {
+          if (this.infoData.id&& this.currentInfo.code == this.firstInfo.code) {
             // 设备
             this.workReportDeviceList = Object.assign(
               {},

+ 1 - 1
src/views/produceOrder/components/report/HalfAdded.vue

@@ -329,7 +329,7 @@
       infoData: {
         immediate: true,
         handler () {
-          if (this.infoData.id) {
+          if (this.infoData.id && this.currentInfo.code == this.firstInfo.code) {
             // 设备
             this.workReportDeviceList = Object.assign(
               {},

+ 1 - 1
src/views/produceOrder/components/report/Heating.vue

@@ -338,7 +338,7 @@
       infoData: {
         immediate: true,
         handler () {
-          if (this.infoData.id) {
+          if (this.infoData.id && this.currentInfo.code == this.firstInfo.code) {
             // 设备
             this.workReportDeviceList = Object.assign(
               {},

+ 1 - 1
src/views/produceOrder/components/report/Sinter.vue

@@ -146,7 +146,7 @@
       infoData: {
         immediate: true,
         handler () {
-          if (this.infoData.id) {
+          if (this.infoData.id && this.currentInfo.code == this.firstInfo.code) {
             // 设备
             this.workReportDeviceList = Object.assign(
               {},