Эх сурвалжийг харах

去掉百度统计;
打印热送单,定尺全展示

zhangafei 1 сар өмнө
parent
commit
945c57f823

+ 2 - 2
index.html

@@ -167,7 +167,7 @@
     </div>
     <script type="module" src="/src/main.ts"></script>
     <!-- 百度统计 -->
-    <script>
+    <!-- <script>
       var _hmt = _hmt || [];
       (function() {
         var hm = document.createElement("script");
@@ -175,7 +175,7 @@
         var s = document.getElementsByTagName("script")[0];
         s.parentNode.insertBefore(hm, s);
       })();
-    </script>
+    </script> -->
 
   </body>
 </html>

+ 18 - 1
src/views/billet/operator/components/rollLinePrint.vue

@@ -36,7 +36,20 @@
             <component :is="renderDictTag(info.brandNum, 'billet_spec')" />
           </a-descriptions-item>
           <a-descriptions-item style="border: 1px solid #bfbfbf; font-size: 12px; padding: 4px; text-align: center; height: 36px" label="规格尺寸">
-            <a-select v-model:value="sizeValue" :options="sizeOptions" @change="getStartEnd" style="width: 100%" :bordered="false"></a-select>
+            <!-- <a-select v-model:value="sizeValue" :options="sizeOptions" @change="getStartEnd" style="width: 100%" :bordered="false"></a-select> -->
+            <div
+              class="line"
+              :class="[sizeValue !== ele.value ? 'noprint' : 'selected']"
+              style="cursor: pointer"
+              v-for="ele in sizeOptions"
+              @click="
+                () => {
+                  sizeValue = ele.value;
+                  getStartEnd();
+                }
+              "
+              >{{ ele.label }}</div
+            >
           </a-descriptions-item>
           <a-descriptions-item style="border: 1px solid #bfbfbf; font-size: 12px; padding: 4px; text-align: center; height: 36px" label="合格支数">
             {{ sizeValue && rollOneInfo.size[sizeValue] ? rollOneInfo.size[sizeValue] : '' }}
@@ -158,6 +171,10 @@
     :deep(.ant-select-arrow) {
       display: none;
     }
+
+    .selected {
+      color: #f50;
+    }
   }
 </style>
 <style lang="less">