From 8fb3ee9eae369f7a5c39da8ed69d0e8cea3ae2f8 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期三, 24 十二月 2025 16:24:59 +0800
Subject: [PATCH] 生产加工单上显示图纸和图纸尺寸调整功能,流程卡上图纸尺寸调整功能

---
 north-glass-erp/northglass-erp/src/components/sd/order/PrintSheet4.vue |   32 ++++++++++++++++++++++++++++++--
 1 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/components/sd/order/PrintSheet4.vue b/north-glass-erp/northglass-erp/src/components/sd/order/PrintSheet4.vue
index aea384a..b07f4db 100644
--- a/north-glass-erp/northglass-erp/src/components/sd/order/PrintSheet4.vue
+++ b/north-glass-erp/northglass-erp/src/components/sd/order/PrintSheet4.vue
@@ -8,14 +8,17 @@
 import {ElMessage} from "element-plus";
 import useUserInfoStore from "@/stores/userInfo";
 import {Bottom, Burger, Food} from "@element-plus/icons-vue";
+import ImageSizeEditor from '@/components/ImageSizeEditor.vue'
 const company = companyInfo()
 const userStore = useUserInfoStore()
 const username = userStore.user.userName
 let dialogVisible = ref(false)
 
 
+const imgSizeMap = ref({})
 let props = defineProps({
   orderId:null,
+  dataList:null,
 })
 let productId=ref({
 
@@ -36,6 +39,12 @@
   perimeter: 0,
   weight:0
 })
+const picture = ref([])
+const dataFile = ref({
+  printList: []
+})
+dataFile.value.printList = JSON.parse(props.dataList)
+
 const getData = () => {
   request.get(`/order/printOrderProductDetail/${props.orderId}/${selectedValues.value}`).then(res => {
     data.value= res.data
@@ -53,6 +62,11 @@
     grossNum.value.perimeter = parseFloat(grossNum.value.perimeter.toFixed(3))
     grossNum.value.weight = parseFloat(grossNum.value.weight.toFixed(2))
 
+  })
+
+  //璁㈠崟搴忓彿dwg鍥剧墖鏌ヨ
+  request.post("/orderFile/getOrderFilePicture", dataFile.value.printList).then((res) => {
+    picture.value = res.data
   })
 }
 
@@ -139,6 +153,13 @@
 defineExpose({
   printSheet
 });
+
+// 鍘熷鍥剧墖鏁扮粍 picture
+const pictureMap = computed(() => {
+  return picture.value
+})
+
+
 </script>
 
 
@@ -218,7 +239,7 @@
                 <td style="font-size: 20px;font-weight: bold;">{{items.quantity}}</td>
                 <td style="font-size: 20px;font-weight: bold;">{{items.perimeter}}</td>
                 <td style="font-size: 20px;font-weight: bold;">{{items.grossArea.toFixed(2)}}</td>
-                <td colspan="2">{{items.processingNote}}
+                <td colspan="2" style="text-align: left;border:none;font-weight: bold;font-size: 17px;">{{items.processingNote}}
                   {{items.remarks==null?'':'/'}}
                   {{items.remarks}}</td>
               </tr>
@@ -291,7 +312,14 @@
         </el-option>
       </el-select>
     </el-dialog>
-
+    <ImageSizeEditor
+        :images="pictureMap"
+        v-model:sizeMap="imgSizeMap"
+        key-field="orderNumber"
+        src-field="imageBase64"
+        :default-width="300"
+        :default-height="300"
+    />
   </div>
 
 

--
Gitblit v1.8.0