From 8cfe20288690f2ba46c804f41f39e8aa48c2dea0 Mon Sep 17 00:00:00 2001
From: admin <15939171744@163.com>
Date: 星期六, 15 六月 2024 09:08:30 +0800
Subject: [PATCH] 上传逻辑大版本更新

---
 jcdm-ui/src/views/main/cfkb/Instructions/index.vue |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/jcdm-ui/src/views/main/cfkb/Instructions/index.vue b/jcdm-ui/src/views/main/cfkb/Instructions/index.vue
index deb759a..392992f 100644
--- a/jcdm-ui/src/views/main/cfkb/Instructions/index.vue
+++ b/jcdm-ui/src/views/main/cfkb/Instructions/index.vue
@@ -23,7 +23,7 @@
 
     </el-row>
     <el-row :gutter="5" style="margin-top: 5px">
-      <el-col :span="24">
+      <el-col :span="12">
         <el-tabs type="border-card"  style="height: 600px" v-model="activeName" @tab-click="changeMenu">
           <el-tab-pane name="first">
             <span slot="label"> <a class="el-icon-date"></a>棣栭〉</span>
@@ -60,6 +60,10 @@
             </el-col>
           </el-tab-pane>
         </el-tabs>
+      </el-col>
+      <el-col :span="12">
+        <el-input v-model="weightValue" placeholder="璇疯緭鍏ョО閲嶆暟鎹�"></el-input>
+        <el-button @click="enterWeighing">褰曞叆</el-button>
       </el-col>
     </el-row>
     <el-dialog v-dialogpop-up :title="title" :visible.sync="open1" width="1000" append-to-body>
@@ -213,7 +217,7 @@
 import USBDevice from "@/utils/usb.json";
 import {addPassingStationCollection} from "@/api/main/da/passingStationCollection/passingStationCollection";
 import {
-  addTighteningParameters,
+  addTighteningParameters, enterWeighing,
   replaceAssemblyCode,
   saveCampaignTimeParameters,
   yzAddBasicParameters,
@@ -224,6 +228,7 @@
   name: "stationTerminal",
   data() {
     return {
+      weightValue: '',
       showInput: true,
       serialPortContent: '',
       // 鏌ヨ鍙傛暟
@@ -338,6 +343,19 @@
     },
   },
   methods: {
+    enterWeighing(){
+      if(this.headContent.sfcCode ==='' || this.weightValue === '' ){
+        this.$message.error('鍙傛暟涓嶅叏锛�');
+      }else {
+        let param = {
+          sfcCode: this.headContent.sfcCode,
+          weightValue: this.weightValue,
+        }
+        enterWeighing(param).then(response => {
+          this.$message('褰曞叆瀹屾垚锛�');
+        });
+      }
+    },
     serialLink() {
       this.open1 = true
     },

--
Gitblit v1.9.3