Просмотр исходного кода

Merge branch 'dev' of http://110.41.163.243:9980/kd-aiot/kd-aiot-frontend-mes into dev

LAPTOP-16IUEB3P\Lenovo 2 лет назад
Родитель
Сommit
b23a21e010

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

@@ -90,7 +90,10 @@
                 (categoryMsg.totalWeight =
                 (categoryMsg.totalWeight =
                   categoryMsg.number === ''
                   categoryMsg.number === ''
                     ? ''
                     ? ''
-                    : categoryMsg.number * (infoData.productUnitWeight || 1))
+                    : multiply(
+                        categoryMsg.number,
+                        infoData.productUnitWeight || 1
+                      ))
               "
               "
               clearable
               clearable
             ></el-input>
             ></el-input>

+ 6 - 3
src/views/produceOrder/components/report/Drying.vue

@@ -91,7 +91,10 @@
                 (categoryMsg.totalWeight =
                 (categoryMsg.totalWeight =
                   categoryMsg.number === ''
                   categoryMsg.number === ''
                     ? ''
                     ? ''
-                    : categoryMsg.number * (infoData.productUnitWeight || 1))
+                    : multiply(
+                        categoryMsg.number,
+                        infoData.productUnitWeight || 1
+                      ))
               "
               "
               clearable
               clearable
             ></el-input>
             ></el-input>
@@ -110,7 +113,7 @@
         <el-descriptions-item label="舟皿数量" :span="3"
         <el-descriptions-item label="舟皿数量" :span="3"
           ><el-input
           ><el-input
             placeholder="请输入"
             placeholder="请输入"
-            v-model="boatMsg.extraField.boatMsg"
+            v-model="boatMsg.extraField.boatNum"
           ></el-input
           ></el-input
         ></el-descriptions-item>
         ></el-descriptions-item>
         <el-descriptions-item label="质检项" :span="2">
         <el-descriptions-item label="质检项" :span="2">
@@ -329,7 +332,7 @@
           rootCategoryLevelId: '',
           rootCategoryLevelId: '',
           specification: '',
           specification: '',
           extraField: {
           extraField: {
-            boatMsg: ''
+            boatNum: ''
           }
           }
         }
         }
       };
       };

+ 8 - 4
src/views/produceOrder/components/report/Extrusion.vue

@@ -86,7 +86,7 @@
                 :key="index"
                 :key="index"
                 :label="item.batchNum"
                 :label="item.batchNum"
                 :value="item.batchNum"
                 :value="item.batchNum"
-                @click.native="categoryMsg.totalWeight = item.storageNum"
+                @click.native="categoryMsg.number = item.storageNum"
               ></el-option>
               ></el-option>
             </el-select>
             </el-select>
           </el-form-item>
           </el-form-item>
@@ -98,9 +98,9 @@
             required
             required
             label-width="0"
             label-width="0"
             class="w100"
             class="w100"
-            prop="categoryMsg.totalWeight"
+            prop="categoryMsg.number"
             ><el-input
             ><el-input
-              v-model="categoryMsg.totalWeight"
+              v-model="categoryMsg.number"
               placeholder="请输入"
               placeholder="请输入"
             ></el-input> </el-form-item
             ></el-input> </el-form-item
         ></el-descriptions-item>
         ></el-descriptions-item>
@@ -324,6 +324,7 @@
       return {
       return {
         categoryMsg: {
         categoryMsg: {
           batchNo: '',
           batchNo: '',
+          number: '',
           totalWeight: '',
           totalWeight: '',
           brandNum: '',
           brandNum: '',
           sourceCategoryId: '',
           sourceCategoryId: '',
@@ -465,7 +466,7 @@
 
 
           realTimeStorage({
           realTimeStorage({
             categoryCode: res.categoryCode,
             categoryCode: res.categoryCode,
-            factoryCode: this.infoData.werks || '14T1'
+            factoryCode: res.factoryCode || '14T1'
           }).then((res) => {
           }).then((res) => {
             this.batchList = res;
             this.batchList = res;
           });
           });
@@ -513,8 +514,11 @@
               if (this.boatMsg.code) {
               if (this.boatMsg.code) {
                 workReportDeviceList.push(this.boatMsg);
                 workReportDeviceList.push(this.boatMsg);
               }
               }
+
+              this.categoryMsg.totalWeight = this.categoryMsg.number;
               fun({
               fun({
                 checkState: 1,
                 checkState: 1,
+                isSapReportState: 1,
                 workReport: this.workReport,
                 workReport: this.workReport,
                 workReportCategoryList: [this.categoryMsg],
                 workReportCategoryList: [this.categoryMsg],
                 workReportDeviceList
                 workReportDeviceList

+ 9 - 2
src/views/produceOrder/components/report/HalfAdded.vue

@@ -90,7 +90,10 @@
                 (categoryMsg.totalWeight =
                 (categoryMsg.totalWeight =
                   categoryMsg.number === ''
                   categoryMsg.number === ''
                     ? ''
                     ? ''
-                    : categoryMsg.number * (infoData.productUnitWeight || 1))
+                    : multiply(
+                        categoryMsg.number,
+                        infoData.productUnitWeight || 1
+                      ))
               "
               "
               clearable
               clearable
             ></el-input>
             ></el-input>
@@ -427,11 +430,15 @@
                 name: this.infoData.productName,
                 name: this.infoData.productName,
                 code: this.infoData.productCode
                 code: this.infoData.productCode
               });
               });
+              const workReportCategoryList = [this.categoryMsg];
+              if (this.boatMsg.code) {
+                workReportCategoryList.push(this.boatMsg);
+              }
               fun({
               fun({
                 checkState: 1,
                 checkState: 1,
                 workReport: this.workReport,
                 workReport: this.workReport,
                 workReportDeviceList: [this.workReportDeviceList],
                 workReportDeviceList: [this.workReportDeviceList],
-                workReportCategoryList: [this.categoryMsg]
+                workReportCategoryList
               }).then((res) => {
               }).then((res) => {
                 // this.$message.success('报工成功!');
                 // this.$message.success('报工成功!');
                 // this.getReportCount();
                 // this.getReportCount();

+ 12 - 4
src/views/produceOrder/components/report/Heating.vue

@@ -90,7 +90,10 @@
                 (categoryMsg.totalWeight =
                 (categoryMsg.totalWeight =
                   categoryMsg.number === ''
                   categoryMsg.number === ''
                     ? ''
                     ? ''
-                    : categoryMsg.number * (infoData.productUnitWeight || 1))
+                    : multiply(
+                        categoryMsg.number,
+                        infoData.productUnitWeight || 1
+                      ))
               "
               "
               clearable
               clearable
             ></el-input>
             ></el-input>
@@ -105,7 +108,7 @@
         <el-descriptions-item label="舟皿数量" :span="3"
         <el-descriptions-item label="舟皿数量" :span="3"
           ><el-input
           ><el-input
             placeholder="请输入"
             placeholder="请输入"
-            v-model="boatMsg.extraField.num"
+            v-model="boatMsg.extraField.boatNum"
           ></el-input
           ></el-input
         ></el-descriptions-item>
         ></el-descriptions-item>
         <el-descriptions-item label="质检项" :span="2">
         <el-descriptions-item label="质检项" :span="2">
@@ -326,7 +329,7 @@
           rootCategoryLevelId: '',
           rootCategoryLevelId: '',
           specification: '',
           specification: '',
           extraField: {
           extraField: {
-            num: ''
+            boatNum: ''
           }
           }
         }
         }
       };
       };
@@ -436,11 +439,16 @@
                 name: this.infoData.productName,
                 name: this.infoData.productName,
                 code: this.infoData.productCode
                 code: this.infoData.productCode
               });
               });
+
+              const workReportCategoryList = [this.categoryMsg];
+              if (this.boatMsg.code) {
+                workReportCategoryList.push(this.boatMsg);
+              }
               fun({
               fun({
                 checkState: 1,
                 checkState: 1,
                 workReport: this.workReport,
                 workReport: this.workReport,
                 workReportDeviceList: [this.workReportDeviceList],
                 workReportDeviceList: [this.workReportDeviceList],
-                workReportCategoryList: [this.categoryMsg]
+                workReportCategoryList
               }).then((res) => {
               }).then((res) => {
                 // this.$message.success('报工成功!');
                 // this.$message.success('报工成功!');
                 // this.getReportCount();
                 // this.getReportCount();

+ 31 - 26
src/views/produceOrder/components/report/Warehousing.vue

@@ -39,7 +39,7 @@
             type="datetime"
             type="datetime"
             format="yyyy-MM-dd HH:mm:ss"
             format="yyyy-MM-dd HH:mm:ss"
             placeholder="请选择"
             placeholder="请选择"
-			:disabled="formData.dateType==2"
+            :disabled="formData.dateType == 2"
           ></el-date-picker
           ></el-date-picker
         ></el-form-item>
         ></el-form-item>
       </div>
       </div>
@@ -129,20 +129,20 @@
         type: Object,
         type: Object,
         default: () => ({})
         default: () => ({})
       },
       },
-		formData: {
-		  type: Object,
-		  default: () => ({})
-		},
-		firstInfo:{
-		  type: Object,
-		  default: () => ({})
-		},
-		currentInfo:{
-			type: Object,
-			default: () => ({}) 
-		}
+      formData: {
+        type: Object,
+        default: () => ({})
+      },
+      firstInfo: {
+        type: Object,
+        default: () => ({})
+      },
+      currentInfo: {
+        type: Object,
+        default: () => ({})
+      }
     },
     },
-    data () {
+    data() {
       return {
       return {
         workReport: {
         workReport: {
           executorId: '',
           executorId: '',
@@ -174,27 +174,31 @@
     watch: {
     watch: {
       taskInfo: {
       taskInfo: {
         immediate: true,
         immediate: true,
-        handler () {
+        handler() {
           if (this.taskInfo.code) {
           if (this.taskInfo.code) {
             this.getReportCount();
             this.getReportCount();
           }
           }
         }
         }
       },
       },
-	  formData: {
-	    immediate: true,
-	    handler () {
-	  		if (this.formData.dateType==2) {
-	  			this.$set(this.workReport,'executeTime',this.formData.appointTime);
-	  		}
-	    }
-	  }
+      formData: {
+        immediate: true,
+        handler() {
+          if (this.formData.dateType == 2) {
+            this.$set(
+              this.workReport,
+              'executeTime',
+              this.formData.appointTime
+            );
+          }
+        }
+      }
     },
     },
-    created () {
+    created() {
       this.workReport.executorId = this.$store.state.user.info?.userId;
       this.workReport.executorId = this.$store.state.user.info?.userId;
       this.workReport.executorJobNum = this.$store.state.user.info?.jobNumber;
       this.workReport.executorJobNum = this.$store.state.user.info?.jobNumber;
     },
     },
     methods: {
     methods: {
-      async getReportCount () {
+      async getReportCount() {
         const res = await reportCount({
         const res = await reportCount({
           taskCode: this.taskInfo.code,
           taskCode: this.taskInfo.code,
           lastTaskCode: this.taskInfo.lastTaskCode,
           lastTaskCode: this.taskInfo.lastTaskCode,
@@ -203,7 +207,7 @@
 
 
         this.countMsg = res;
         this.countMsg = res;
       },
       },
-      report (fun) {
+      report(fun) {
         this.$refs.formRef.validate((value) => {
         this.$refs.formRef.validate((value) => {
           if (value) {
           if (value) {
             this.$confirm('是否确定要报工?', '提示').then(() => {
             this.$confirm('是否确定要报工?', '提示').then(() => {
@@ -217,6 +221,7 @@
               this.workReport.productInfo.standardNum = this.categoryMsg.number;
               this.workReport.productInfo.standardNum = this.categoryMsg.number;
               fun({
               fun({
                 checkState: 3,
                 checkState: 3,
+                isSapReportState: 3,
                 workReport: this.workReport,
                 workReport: this.workReport,
                 workReportCategoryList: [this.categoryMsg]
                 workReportCategoryList: [this.categoryMsg]
               }).then((res) => {
               }).then((res) => {

+ 19 - 19
src/views/produceOrder/detail.vue

@@ -249,14 +249,14 @@
     writeOffWork
     writeOffWork
   } from '@/api/produceOrder/index.js';
   } from '@/api/produceOrder/index.js';
   export default {
   export default {
-	mixins: [dictMixins],
+    mixins: [dictMixins],
     components: {
     components: {
       OrderPrint,
       OrderPrint,
       otherMission,
       otherMission,
       progressBox,
       progressBox,
       bomList
       bomList
     },
     },
-    data () {
+    data() {
       return {
       return {
         infoData: {},
         infoData: {},
         descriptionsShow: true,
         descriptionsShow: true,
@@ -1026,9 +1026,9 @@
               prop: 'storageCode',
               prop: 'storageCode',
               minWidth: 100,
               minWidth: 100,
               align: 'center',
               align: 'center',
-			  formatter: (_row, _column, cellValue) => {
-			    return this.getDictValue('仓库', _row.storageCode);
-			  }
+              formatter: (_row, _column, cellValue) => {
+                return this.getDictValue('仓库', _row.storageCode);
+              }
             },
             },
             {
             {
               label: '操作',
               label: '操作',
@@ -1059,17 +1059,17 @@
         }
         }
       };
       };
     },
     },
-    created () {
-      this.workOrderId = this.$route.query.id;
+    created() {
+      this.workOrderId = this.$route.params.id;
       this.getInfo(this.workOrderId);
       this.getInfo(this.workOrderId);
-	  this.requestDict('仓库');
+      this.requestDict('仓库');
     },
     },
     methods: {
     methods: {
-      handlePrint () {
+      handlePrint() {
         this.$refs.orderPrintRef.open();
         this.$refs.orderPrintRef.open();
       },
       },
 
 
-      handleTabClick (tab) {
+      handleTabClick(tab) {
         if (this.chooseIndex != tab.index) {
         if (this.chooseIndex != tab.index) {
           this.chooseIndex = Number(tab.index);
           this.chooseIndex = Number(tab.index);
           const chooseItem = this.tabList[this.chooseIndex];
           const chooseItem = this.tabList[this.chooseIndex];
@@ -1084,7 +1084,7 @@
           this.setData();
           this.setData();
         }
         }
       },
       },
-      setData () {
+      setData() {
         this.request.completeNum = this.tabList[this.chooseIndex].number;
         this.request.completeNum = this.tabList[this.chooseIndex].number;
         if (this.chooseIndex == this.tabList.length - 1) {
         if (this.chooseIndex == this.tabList.length - 1) {
           this.request.isLast = 1;
           this.request.isLast = 1;
@@ -1094,7 +1094,7 @@
             this.tabList[this.chooseIndex + 1].number;
             this.tabList[this.chooseIndex + 1].number;
         }
         }
       },
       },
-      async datasource ({ page, limit, where }) {
+      async datasource({ page, limit, where }) {
         const res = await reportPage({ ...where, pageNum: page, size: limit });
         const res = await reportPage({ ...where, pageNum: page, size: limit });
         if (typeof res.list == 'string') {
         if (typeof res.list == 'string') {
           res.list = [];
           res.list = [];
@@ -1102,12 +1102,12 @@
         return res;
         return res;
       },
       },
       /* 刷新表格 */
       /* 刷新表格 */
-      reload (where) {
+      reload(where) {
         this.$nextTick(() =>
         this.$nextTick(() =>
           this.$refs.table.reload({ page: 1, limit: 10, where })
           this.$refs.table.reload({ page: 1, limit: 10, where })
         );
         );
       },
       },
-      async getInfo (id) {
+      async getInfo(id) {
         const res = await getInfoById(id);
         const res = await getInfoById(id);
         this.infoData = res;
         this.infoData = res;
         if (typeof res.taskTypeProcessDiagrams == 'string') {
         if (typeof res.taskTypeProcessDiagrams == 'string') {
@@ -1124,19 +1124,19 @@
         this.getReportCount();
         this.getReportCount();
         this.setData();
         this.setData();
       },
       },
-      async getReportCount () {
+      async getReportCount() {
         const res = await reportCount({
         const res = await reportCount({
           taskCode: this.taskCode,
           taskCode: this.taskCode,
           workOrderId: this.workOrderId
           workOrderId: this.workOrderId
         });
         });
         this.countMsg = res;
         this.countMsg = res;
       },
       },
-      openOther () {
+      openOther() {
         this.$refs.otherMissionRef.open();
         this.$refs.otherMissionRef.open();
       },
       },
 
 
       // 冲销
       // 冲销
-      writeOff (row) {
+      writeOff(row) {
         const h = this.$createElement;
         const h = this.$createElement;
         this.$confirm('', {
         this.$confirm('', {
           message: h('div', null, [
           message: h('div', null, [
@@ -1213,11 +1213,11 @@
           .catch(() => {});
           .catch(() => {});
       },
       },
 
 
-      check (row) {
+      check(row) {
         this.$refs.bomListRef.open(row);
         this.$refs.bomListRef.open(row);
       },
       },
 
 
-      async refreshData () {
+      async refreshData() {
         const res = await getInfoById(this.workOrderId);
         const res = await getInfoById(this.workOrderId);
         this.infoData = res;
         this.infoData = res;
         if (typeof res.taskTypeProcessDiagrams == 'string') {
         if (typeof res.taskTypeProcessDiagrams == 'string') {

+ 20 - 21
src/views/produceOrder/index.vue

@@ -100,7 +100,7 @@
   import createDialog from './components/createDialog.vue';
   import createDialog from './components/createDialog.vue';
   import unpackDialog from './components/unpackDialog.vue';
   import unpackDialog from './components/unpackDialog.vue';
   import pickingDialog from './components/pickingDialog.vue';
   import pickingDialog from './components/pickingDialog.vue';
-	import { positiveIntegerReg } from 'ele-admin';
+  import { positiveIntegerReg } from 'ele-admin';
   export default {
   export default {
     components: {
     components: {
       produceOrderSearch,
       produceOrderSearch,
@@ -108,7 +108,7 @@
       createDialog,
       createDialog,
       unpackDialog
       unpackDialog
     },
     },
-    data () {
+    data() {
       return {
       return {
         activeName: 'first',
         activeName: 'first',
 
 
@@ -137,7 +137,7 @@
     },
     },
     computed: {
     computed: {
       // 表格列配置
       // 表格列配置
-      columns () {
+      columns() {
         const opt = {
         const opt = {
           first: [
           first: [
             // {
             // {
@@ -305,16 +305,16 @@
         ];
         ];
       }
       }
     },
     },
-		// created(){
-		// 	 console.log('positiveIntegerReg',positiveIntegerReg)
-		// },
+    // created(){
+    // 	 console.log('positiveIntegerReg',positiveIntegerReg)
+    // },
     methods: {
     methods: {
-      handlePicking () {
+      handlePicking() {
         this.$router.push({
         this.$router.push({
           path: '/produceOrder/picking'
           path: '/produceOrder/picking'
         });
         });
       },
       },
-      statusFormatter (status) {
+      statusFormatter(status) {
         const obj = this.statusOpt[this.activeName].find(
         const obj = this.statusOpt[this.activeName].find(
           (i) => i.value == status
           (i) => i.value == status
         );
         );
@@ -322,21 +322,21 @@
         return obj && obj.label;
         return obj && obj.label;
       },
       },
       /* 表格数据源 */
       /* 表格数据源 */
-      datasource ({ page, limit, where }) {
+      datasource({ page, limit, where }) {
         return getPage({
         return getPage({
           pageNum: page,
           pageNum: page,
           size: limit,
           size: limit,
           ...where
           ...where
         });
         });
       },
       },
-      createSuccess () {
+      createSuccess() {
         this.reload();
         this.reload();
       },
       },
-      handleCreate () {
+      handleCreate() {
         this.$refs.createRef.open(0);
         this.$refs.createRef.open(0);
       },
       },
       // 发布工单
       // 发布工单
-      handleOrderPublish (type, row) {
+      handleOrderPublish(type, row) {
         this.$router.push({
         this.$router.push({
           path: '/produceOrder/report',
           path: '/produceOrder/report',
           query: {
           query: {
@@ -346,7 +346,7 @@
         });
         });
       },
       },
       // 完结与批量完结
       // 完结与批量完结
-      toEnd (row) {
+      toEnd(row) {
         if (row) {
         if (row) {
           this.$confirm(`是否要完结工单【${row.code}】?`, '提醒', {
           this.$confirm(`是否要完结工单【${row.code}】?`, '提醒', {
             confirmButtonText: '确认',
             confirmButtonText: '确认',
@@ -396,7 +396,7 @@
       },
       },
 
 
       // 取消完结
       // 取消完结
-      toCancel (row) {
+      toCancel(row) {
         cancelCompletion([row.id]).then((res) => {
         cancelCompletion([row.id]).then((res) => {
           this.$message.success('成功');
           this.$message.success('成功');
           this.reload();
           this.reload();
@@ -404,15 +404,15 @@
       },
       },
 
 
       // 拆分
       // 拆分
-      toUnpack (row) {
+      toUnpack(row) {
         this.$refs.unpackRef.open(row);
         this.$refs.unpackRef.open(row);
       },
       },
-      handleTabChange () {
+      handleTabChange() {
         this.$refs.searchRef.reset();
         this.$refs.searchRef.reset();
       },
       },
 
 
       /* 刷新表格 */
       /* 刷新表格 */
-      reload (where = {}) {
+      reload(where = {}) {
         this.$nextTick(() => {
         this.$nextTick(() => {
           where.statusList = (
           where.statusList = (
             where.status || this.statusOpt[this.activeName][0].value
             where.status || this.statusOpt[this.activeName][0].value
@@ -421,16 +421,15 @@
         });
         });
       },
       },
 
 
-      goDetail (row) {
+      goDetail(row) {
         this.$router.push({
         this.$router.push({
-          path: '/produceOrder/detail',
+          path: '/produceOrder/detail/' + row.id,
           query: {
           query: {
-            id: row.id,
             produceVersionId: row.produceVersionId
             produceVersionId: row.produceVersionId
           }
           }
         });
         });
       },
       },
-      handleDelete ({ id }) {
+      handleDelete({ id }) {
         this.$confirm('确定删除当前数据?', '提示').then(async () => {
         this.$confirm('确定删除当前数据?', '提示').then(async () => {
           await del(id);
           await del(id);
           this.$message.success('删除成功!');
           this.$message.success('删除成功!');

+ 12 - 12
src/views/produceOrder/report.vue

@@ -123,8 +123,8 @@
         :key="activeName + isUpdate"
         :key="activeName + isUpdate"
         :infoData="infoData"
         :infoData="infoData"
         :formData="formData"
         :formData="formData"
-		:firstInfo="tabList[0]"
-		:currentInfo="tabList[activeName]"
+        :firstInfo="tabList[0]"
+        :currentInfo="tabList[activeName]"
         :taskInfo="{
         :taskInfo="{
           ...tabList[activeName],
           ...tabList[activeName],
           lastTaskCode:
           lastTaskCode:
@@ -163,7 +163,7 @@
       Furnace,
       Furnace,
       Warehousing
       Warehousing
     },
     },
-    data () {
+    data() {
       return {
       return {
         infoData: {},
         infoData: {},
         isUpdate: true,
         isUpdate: true,
@@ -196,7 +196,7 @@
       };
       };
     },
     },
     computed: {
     computed: {
-      componentName () {
+      componentName() {
         const { name } = this.tabList[this.activeName];
         const { name } = this.tabList[this.activeName];
 
 
         if (name.includes('半加')) {
         if (name.includes('半加')) {
@@ -207,12 +207,12 @@
         );
         );
       }
       }
     },
     },
-    created () {
+    created() {
       this.init();
       this.init();
       this.getInfoData();
       this.getInfoData();
     },
     },
     methods: {
     methods: {
-      handleReport () {
+      handleReport() {
         this.$refs.reportRef.report(async (data) => {
         this.$refs.reportRef.report(async (data) => {
           // data.workReportCategoryList = data.workReportCategoryList || [
           // data.workReportCategoryList = data.workReportCategoryList || [
           //   {
           //   {
@@ -231,7 +231,7 @@
           }
           }
 
 
           const params = {
           const params = {
-            isSapReportState: 0,
+            isSapReportState: 2, //sap报工状态(0:不调用SAP接口报工;1:投料;2:报工;3:入库)
             lastTaskCode:
             lastTaskCode:
               this.tabList[
               this.tabList[
                 this.activeName > 0 ? this.activeName - 1 : this.activeName
                 this.activeName > 0 ? this.activeName - 1 : this.activeName
@@ -246,15 +246,15 @@
           });
           });
         });
         });
       },
       },
-      async init () {
+      async init() {
         await this.getDetail();
         await this.getDetail();
         await this._getTaskListById();
         await this._getTaskListById();
       },
       },
-      async getDetail () {
+      async getDetail() {
         const res = await getById(this.$route.query.id);
         const res = await getById(this.$route.query.id);
         this.infoData = res;
         this.infoData = res;
       },
       },
-      async _getTaskListById () {
+      async _getTaskListById() {
         // 获取工序
         // 获取工序
         const res1 = await getTaskListById(this.infoData.produceVersionId);
         const res1 = await getTaskListById(this.infoData.produceVersionId);
 
 
@@ -262,11 +262,11 @@
         this.tabList.push({
         this.tabList.push({
           name: '入库',
           name: '入库',
           code: '999999',
           code: '999999',
-		  sortNum:99
+          sortNum: 99
         });
         });
         this.activeName = '0';
         this.activeName = '0';
       },
       },
-      async getInfoData () {
+      async getInfoData() {
         const res = await getInfo();
         const res = await getInfo();
         if (typeof res != 'string') {
         if (typeof res != 'string') {
           this.formData = res;
           this.formData = res;