From 62be85bac61d46f1a60fa77c2e9532a57e1b4850 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期四, 07 三月 2024 14:03:50 +0800
Subject: [PATCH] 销售订单-下载排产单3

---
 src/views/quality/rawMaterial/rawMaterial-form.vue |   22 ++++++++--------------
 src/api/plan/customerorder.js                      |    4 ++--
 2 files changed, 10 insertions(+), 16 deletions(-)

diff --git a/src/api/plan/customerorder.js b/src/api/plan/customerorder.js
index f9b987e..2dc7524 100644
--- a/src/api/plan/customerorder.js
+++ b/src/api/plan/customerorder.js
@@ -267,9 +267,9 @@
 export function downloadProduct(data){
     return request({
         url: '/mes/plan/customerOrder/getProduct',
-        method: 'get',
+        method: 'post',
         responseType: 'blob',
-        params: data
+        data: data
       })
 }
 
diff --git a/src/views/quality/rawMaterial/rawMaterial-form.vue b/src/views/quality/rawMaterial/rawMaterial-form.vue
index 83fdeb7..1cbd198 100644
--- a/src/views/quality/rawMaterial/rawMaterial-form.vue
+++ b/src/views/quality/rawMaterial/rawMaterial-form.vue
@@ -177,14 +177,14 @@
                       <el-table-column prop="testValue" label="妫�娴嬪��" min-width="160" v-for="(item,index) in empiricalValueAdd" :key="index">
                         <template slot-scope="scope">
                           <div v-if="!scope.row.children">
-                            <el-select v-model="scope.row.testValueList[index]"
+                            <el-select
+                            v-model="scope.row.testValueList[index]"
                             ref="testValueSelect"
+                            id="testValueSelect"
                             clearable
                             filterable
-                            allow-create
-                            default-first-option
                             @change="changeState(scope.row)"
-                            @blur="onTypeBlur($event)">
+                            @blur="onTypeBlur($event,scope.row,scope.$index,index)">
                                 <el-option label="鏄�" value="鏄�"></el-option>
                                 <el-option label="鍚�" value="鍚�"></el-option>
                             </el-select>
@@ -928,16 +928,10 @@
         }
         this.changeState(command)
       },
-      onTypeBlur(event){
-        const enterKeyEvent = new KeyboardEvent('keyup', {
-            key: 'Enter',
-            keyCode: 13,
-            which: 13,
-            bubbles: true
-        });
-
-        // 妯℃嫙鍦ㄨ緭鍏ユ涓婅Е鍙戞寜閿簨浠�
-        this.$refs.testValueSelect.dispatchEvent(enterKeyEvent);
+      onTypeBlur(event,row,rowIndex,index){
+        console.log("澶辩劍",event,row,rowIndex,index);
+        console.log(event.target.value);
+        console.log(this.list[rowIndex-1]);
       },
       changeState(row) {
         if(row.use){

--
Gitblit v1.9.3