Pārlūkot izejas kodu

修改标签预览 以及标签采购的一个bug

gongwencan 2 mēneši atpakaļ
vecāks
revīzija
e921e99481

BIN
src/assets/imgs/logo.png


+ 9 - 9
src/assets/main.scss

@@ -77,7 +77,7 @@
   --border-color: #DBDBDB;
   --empty-color: #ABABAB;
 
-  width: calc(90mm * var(--scalc));
+  width: calc(100mm * var(--scalc));
   background: #ffffff;
 
   .tag-info {
@@ -85,14 +85,14 @@
   }
 
   .tag-logo {
-    width: calc(16mm * var(--scalc));
-    height: calc(5mm * var(--scalc));
+    width: calc(40mm * var(--scalc));
+    height: calc(13mm * var(--scalc));
   }
 
   .tag-materiel-info {
     font-size: calc(10px * var(--scalc));
-    height: calc(8.5mm * var(--scalc));
-    margin-top: calc(2mm * var(--scalc));
+    height: calc(9mm * var(--scalc));
+    margin-top: calc(3mm * var(--scalc));
 
     &:empty {
       border: 1px dashed var(--border-color);
@@ -114,7 +114,7 @@
   .tag-provider-name {
     font-size: calc(9px * var(--scalc));
     height: calc(4mm * var(--scalc));
-    margin-top: calc(6mm * var(--scalc));
+    margin-top: calc(3mm * var(--scalc));
 
     &:empty {
       border: 1px dashed var(--border-color);
@@ -126,9 +126,9 @@
   }
 
   .tag-qr {
-    width: calc(27mm * var(--scalc));
-    height: calc(27mm * var(--scalc));
-    margin: calc(1.5mm * var(--scalc)) calc(2.5mm * var(--scalc));
+    width: calc(32mm * var(--scalc));
+    height: calc(32mm * var(--scalc));
+    margin: calc(2.5mm * var(--scalc)) calc(2.5mm * var(--scalc));
 
     &:empty {
       display: flex;

+ 1 - 1
src/components/DialogTagPurchaseDetail.vue

@@ -163,7 +163,7 @@ export default {
     },
     filteredTagTypes () {
       if (this.list.length <= 0) {
-        return null
+        return this.optionGroup1 && this.optionGroup1.TagType && this.optionGroup1.TagType.list ? this.optionGroup1.TagType.list : []
       }
       const listTagTypes = this.list ? new Set(this.list.map(item => item.tagTypeId)) : []
       const optionGroupTagTypes = this.optionGroup1.TagType.list.filter(tagType => !listTagTypes.has(tagType.id))