From dbe5f1d0156bd5bef1067c548ff39fe93d10205e Mon Sep 17 00:00:00 2001
From: 懒羊羊 <15939171744@163.com>
Date: 星期四, 18 一月 2024 16:51:13 +0800
Subject: [PATCH] 车间导入

---
 jcdm-ui/src/views/main/kb/engineCheck/index.vue |   71 +++++++++--------------------------
 1 files changed, 18 insertions(+), 53 deletions(-)

diff --git a/jcdm-ui/src/views/main/kb/engineCheck/index.vue b/jcdm-ui/src/views/main/kb/engineCheck/index.vue
index 7f0964b..67deef1 100644
--- a/jcdm-ui/src/views/main/kb/engineCheck/index.vue
+++ b/jcdm-ui/src/views/main/kb/engineCheck/index.vue
@@ -28,8 +28,8 @@
            <el-descriptions-item>
              <el-form ref="form" :model="form"  label-width="200px" style="height: 60px;margin-top: 20px" >
                <el-form-item   prop="productType" >
-      	     <span slot="label" style="font-size:45px;color:black"><strong>浜у搧鍨嬪彿</strong></span>
-                 <el-input disabled style="font-size:30px" v-model="form.productType" placeholder="" />
+      	     <span slot="label" style="font-size:45px;color:black"><strong>鏈哄瀷</strong></span>
+                 <el-input disabled style="font-size:30px" value="form.productType" v-model="form.productType" placeholder="" />
                </el-form-item>
              </el-form>
            </el-descriptions-item>
@@ -55,7 +55,10 @@
            <el-col :span="1.5">
              <el-button plain  style="width:400px;height:160px" v-hasPermi="['bs:formula:add']">
                <span   class="el-icon-thumb"   style="font-size:45px;color:black"></span>
-               <span style="font-size:45px;color:black"><strong>寮哄埗涓婄嚎</strong></span></el-button>
+               <span style="font-size:45px;color:black"><strong>寮哄埗涓婄嚎</strong></span>
+             </el-button>
+             <el-button @click="scanCompleted" style="float: right" type="primary">鎵爜瀹屾垚</el-button>
+
            </el-col>
          </el-row>
        </el-card>
@@ -85,10 +88,7 @@
 </template>
 <script>
 
-import { listOrderScheduling, getOrderScheduling, delOrderScheduling, addOrderScheduling, updateOrderScheduling } from "@/api/main/bs/orderScheduling/orderScheduling";
-import {listWorkshop} from "@/api/main/bs/workshop/workshop";
-import axios from 'axios';
-
+import {listOrderScheduling} from "@/api/main/bs/orderScheduling/orderScheduling";
 
 export default {
   components: { },
@@ -101,29 +101,7 @@
       queryParams: {
         pageNum: 1,
         pageSize: 10,
-        orderNo: null,
         engineNo: null,
-        productType: '666',
-        model: null,
-        productionStatus: null,
-        workingHours: null,
-        currentWorkstation: null,
-        qualityStatus: null,
-        whetherOrPrint: null,
-        report10: null,
-        report20: null,
-        combinedBoxTime: null,
-        finalAssemblyTime: null,
-        operator: null,
-        operateTime: null,
-        status: null,
-        spareField1: null,
-        spareField2: null,
-        spareField3: null,
-        spareField4: null,
-        createUser: null,
-        updateUser: null,
-        remarks: null
       },
 
       // 琛ㄥ崟鍙傛暟
@@ -134,40 +112,27 @@
   computed: {},
   watch: {},
   created() {
-    this.initOrderScheduling();
   },
   mounted() {},
   methods: {
+    scanCompleted(){
 
+    },
     EngineNohandleChange(){
-      axios.get('@/api/main/bs/orderScheduling/orderScheduling', {
-        params: {
-          engineNo: this.engineNo,
-        },
-      })
-        .then(response => {
-          const dataFromOrderScheduling = response.data;
-          if (dataFromOrderScheduling.length > 0) {
-            const order = dataFromOrderScheduling[0];
-            this.engineNo = order.engineNo;
-            this.productType = order.productType;
-            this.orderNo = order.orderNo;
-          } else {
-            // Handle case when no data is found
-          }
-        })
-        .catch(error => {
-          console.error(error);
+      if(this.form.engineNo !== null && this.form.engineNo !== undefined){
+        this.queryParams.engineNo = this.form.engineNo;
+        listOrderScheduling(this.queryParams).then(response => {
+          this.$message('鎵爜瀹屾垚'+response.rows[0].model);
+          console.log("--------------------"+response.rows[0])
+          this.form.productType = response.rows[0].model
+          this.form.orderNo = response.rows[0].orderNo
+          this.form.qualityStatus = response.rows[0].qualityStatus
         });
+      }
     },
   },
 
-    initOrderScheduling(){
-      listOrderScheduling(this.queryParams).then(response => {
-        this.form.queryParams = response.rows;
 
-      });
-    },
   }
 
 

--
Gitblit v1.9.3