From 47ab3b599d4765161d4adaf5b9a368429b152845 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期四, 11 四月 2024 14:30:00 +0800
Subject: [PATCH] 添加按钮

---
 src/views/plan/manufacturingorder/index.vue |   33 +++++++++++++++++----------------
 1 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/src/views/plan/manufacturingorder/index.vue b/src/views/plan/manufacturingorder/index.vue
index af81923..a417123 100644
--- a/src/views/plan/manufacturingorder/index.vue
+++ b/src/views/plan/manufacturingorder/index.vue
@@ -204,10 +204,10 @@
     <el-dialog title="鏍囩鍒楄〃" :visible.sync="diaPrintTab" width="28%" top="5vh">
       <div style="width:100%;height: 400px;overflow-y: auto;">
         <div class="dia_body">
-          <el-checkbox 
+          <el-checkbox
           style="margin: 10px 5px;"
-          :indeterminate="isIndeterminate" 
-          v-model="checkAll" 
+          :indeterminate="isIndeterminate"
+          v-model="checkAll"
           @change="handleCheckAllChange">鍏ㄩ��</el-checkbox>
           <el-checkbox-group @change="changePrintCode()" v-model="checkIndexList">
             <el-card class="box-card" v-for="(item, i) in qrData" :key="i" style="margin-bottom: 15px; font-size: 16px !important;">
@@ -451,6 +451,16 @@
         // 鏍囬
         column: [
           {
+            minWidth: '120',
+            prop: 'moNo',
+            label: '杞﹂棿璁㈠崟鍙�',
+            sort: true,
+            isTrue: true,
+            isSearch: true,
+            searchInfoType: 'text',
+            render: { fun: this.addOrUpdateHandle }
+          },
+          {
             minWidth: '140',
             prop: 'state',
             label: '鐘舵��',
@@ -591,16 +601,7 @@
               return this.bomTypeDbOptions
             }
           },
-          {
-            minWidth: '120',
-            prop: 'moNo',
-            label: '杞﹂棿璁㈠崟鍙�',
-            sort: true,
-            isTrue: true,
-            isSearch: true,
-            searchInfoType: 'text',
-            render: { fun: this.addOrUpdateHandle }
-          },
+
           {
             minWidth: '120',
             prop: 'manufactureAttr',
@@ -1141,10 +1142,10 @@
             printable: 'printMOrder',//椤甸潰
             type: "html",//鏂囨。绫诲瀷
               maxWidth:450,
-              targetStyles:['*'],                 
+              targetStyles:['*'],
               style: `@page {
                 margin:0;
-                size: 360px 175px;
+                size: 360px 175px landscape;
               }
               html{
                 zoom:100%;
@@ -1166,7 +1167,7 @@
         console.log(data);
         let index = Number(data.qtyRequired) + Number(data.scrapQty)
         if(index>0){
-          for(var i=1;i<= index;i++){
+          for(var i=index;i>= 1;i--){
             let obj = {
               orderNo: data.customerOrderNo,
               cName: data.customerName,

--
Gitblit v1.9.3