From b69442a151f8a0990cd17acb705f482609e6727d Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期四, 09 十一月 2023 13:11:16 +0800
Subject: [PATCH] 	modified:   package.json 	modified:   src/api/quality/finishedProduct.js 	modified:   src/views/equipment/equipment/index.vue 	modified:   src/views/equipment/metering/index.vue 	modified:   src/views/quality/finishedProductInspection/finishedProduct-form.vue 	modified:   src/views/quality/finishedProductInspection/finishedProduct-print.vue 	modified:   src/views/quality/finishedProductInspection/index.vue 	modified:   src/views/quality/rawMaterial/rawMaterial-print.vue

---
 src/views/equipment/metering/index.vue |  192 ++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 155 insertions(+), 37 deletions(-)

diff --git a/src/views/equipment/metering/index.vue b/src/views/equipment/metering/index.vue
index bbc96a2..3364d51 100644
--- a/src/views/equipment/metering/index.vue
+++ b/src/views/equipment/metering/index.vue
@@ -19,6 +19,34 @@
           @refreshDataList="getData"
         ></table-form>
       </basic-container>
+      <el-dialog title="鏍囩鍒楄〃" :visible.sync="diaPrintTab" width="500px">
+        <div class="dia_body" style="height: 400px;overflow-y: auto;padding: 0 10px;">
+          <el-card class="box-card" v-for="(tem, i) in multipleSelection" :key="i" style="margin-bottom: 15px;">
+            <el-row>
+              <el-col :span="10" :offset="3">搴忓彿锛�</el-col>
+              <el-col :span="10" style="font-weight: bold;">{{ i + 1 }}</el-col>
+            </el-row>
+            <el-row>
+              <el-col :span="10" :offset="3">缂栧彿锛�</el-col>
+              <el-col :span="10" style="font-weight: bold;">{{ tem.code }}</el-col>
+            </el-row>
+            <el-row>
+              <el-col :span="10" :offset="3">璁惧鍚嶇О锛�</el-col>
+              <el-col :span="10" style="font-weight: bold;">{{ tem.name }}</el-col>
+            </el-row>
+            <el-row>
+              <el-col :span="10" :offset="3">璁惧浜岀淮鐮侊細</el-col>
+              <el-col :span="10">
+                <vueQr :text="tem.code" :size="80" :margin="2"></vueQr>
+              </el-col>
+            </el-row>
+          </el-card>
+        </div>
+        <span slot="footer" class="dialog-footer">
+          <el-button @click="diaPrintTab = false">鍙� 娑�</el-button>
+          <el-button type="primary" @click="diaPrintTab = false">鎵� 鍗�</el-button>
+        </span>
+      </el-dialog>
     </div>
   </template>
   
@@ -29,6 +57,7 @@
   import { mapGetters } from 'vuex'
   import * as fecha from 'element-ui/lib/utils/date'
   import { remote } from '../../../api/admin/dict'
+  import vueQr from 'vue-qr'
   export default {
     data() {
       return {
@@ -37,7 +66,7 @@
         uploadInfo: {
           // 鏄惁灞曠ず涓婁紶EXCEL浠ュ強瀵瑰簲鐨剈rl
           isShow: true,
-          url: '/mes/equipment/upload'
+          url: '/mes/equipmentDevice/upload'
         },
         prelang: 'workstation',
         options: {
@@ -94,41 +123,23 @@
             //   isSearch: true,
             //   searchInfoType: 'text'
             // },
-            {
-              minWidth: '30',
-              prop: 'type',
-              label: '璁惧绫诲瀷',
-            //   sort: true,
-              isTrue: true,
-              isSearch: true,
-            //   searchInfoType: 'select',
-              formatter: this.workShopFormatter,
-            //   optList: () => {
-            //     return this.workshopList
-            //   }
-            },
+            // {
+            //   minWidth: '30',
+            //   prop: 'type',
+            //   label: '璁惧绫诲瀷',
+            // //   sort: true,
+            //   isTrue: true,
+            //   isSearch: true,
+            // //   searchInfoType: 'select',
+            //   formatter: this.workShopFormatter,
+            // //   optList: () => {
+            // //     return this.workshopList
+            // //   }
+            // },
             // 鍨嬪彿瑙勬牸
-            {
-              minWidth: '30',
-              prop: 'supplier',
-              label: '鍘傚',
-              sort: true,
-              isTrue: true,
-              isSearch: false,
-              searchInfoType: 'text'
-            },
-                         // 鐘舵��
-                         {
-              minWidth: '30',
-              prop: 'status',
-              label: '鐘舵��',
-              sort: true,
-              isTrue: true,
-              isSearch: true,
-              searchInfoType: 'text'
-            },
-            // 鍒堕�犳棩鏈�
-            {
+
+ // 鍒堕�犳棩鏈�
+ {
               minWidth: '150',
               width: '250',
               prop: 'createTime',
@@ -151,12 +162,110 @@
               isSearch: true,
               searchInfoType: 'datetime'
             },
+            {
+              minWidth: '30',
+              prop: 'createUser',
+              label: '璐熻矗浜�',
+              sort: true,
+              isTrue: true,
+              isSearch: false,
+              searchInfoType: 'text'
+            },
+
+            {
+              minWidth: '30',
+              prop: 'supplier',
+              label: '鍘傚',
+              sort: true,
+              isTrue: true,
+              isSearch: false,
+              searchInfoType: 'text'
+            },
+                         // 鐘舵��
+                         {
+              minWidth: '30',
+              prop: 'status',
+              label: '鐘舵��',
+              sort: true,
+              isTrue: true,
+              isSearch: true,
+              searchInfoType: 'text'
+            },
+               // 鐘舵��
+               {
+              minWidth: '30',
+              prop: 'responsibleDepartment',
+              label: '璐熻矗閮ㄩ棬',
+              sort: true,
+              isTrue: true,
+              isSearch: true,
+              searchInfoType: 'text'
+            },
+            {
+              minWidth: '30',
+              prop: 'InspectionUnit',
+              label: '妫�楠屽崟浣�',
+              sort: true,
+              isTrue: true,
+              isSearch: true,
+              searchInfoType: 'text'
+            },
+            {
+              minWidth: '30',
+              prop: 'certificate',
+              label: '璇佷功缂栧彿',
+              sort: true,
+              isTrue: true,
+              isSearch: true,
+              searchInfoType: 'text'
+            },
+            {
+              minWidth: '30',
+              prop: 'verification',
+              label: '妫�瀹�',
+              sort: true,
+              isTrue: true,
+              isSearch: true,
+              searchInfoType: 'text'
+            },
+            {
+              minWidth: '30',
+              prop: 'classification',
+              label: '鍒嗙被',
+              sort: true,
+              isTrue: true,
+              isSearch: true,
+              searchInfoType: 'text'
+            },
+            {
+              minWidth: '30',
+              prop: 'FixedPointPosition',
+              label: '瀹氱偣浣嶇疆',
+              sort: true,
+              isTrue: true,
+              isSearch: true,
+              searchInfoType: 'text'
+            },
+            {
+              minWidth: '30',
+              prop: 'specifications',
+              label: '瑙勬牸',
+              sort: true,
+              isTrue: true,
+              isSearch: true,
+              searchInfoType: 'text'
+            },
           ],
           toolbar: [
             {
               text: '鏂板',
               type: 'primary',
               fun: this.addOrUpdateHandle
+            },
+            {
+              text: '鏍囩鎵撳嵃',
+              type: 'primary',
+              fun: this.labelPrint
             },
             // {
             //   text: '鍚屾',
@@ -189,12 +298,14 @@
           }
         },
         addOrUpdateVisible: false,
-        workshopList: []
+        workshopList: [],
+        diaPrintTab: false
       }
     },
     components: {
       ttable,
-      TableForm
+      TableForm,
+      vueQr
     },
     computed: {
       ...mapGetters(['permissions'])
@@ -261,6 +372,13 @@
             this.$message.success('鍒犻櫎鎴愬姛')
             this.getData()
           })
+      },
+      labelPrint(){
+        if(this.multipleSelection.length==0){
+          this.$message.warning('璇烽�夋嫨涓�鏉℃暟鎹�')
+          return
+        }
+        this.diaPrintTab = true
       }
     }
   }

--
Gitblit v1.9.3