From 4743d5644fb9c1a4d4a8038331526a0890a453e9 Mon Sep 17 00:00:00 2001
From: 张诺 <zhang_12370@163.com>
Date: 星期六, 25 四月 2026 14:21:38 +0800
Subject: [PATCH] feat: 在工艺路线相关界面添加开数、工艺正数和加放数字段

---
 src/views/productionManagement/productionOrder/BindRouteDialog.vue |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/views/productionManagement/productionOrder/BindRouteDialog.vue b/src/views/productionManagement/productionOrder/BindRouteDialog.vue
index e2b6337..c09754a 100644
--- a/src/views/productionManagement/productionOrder/BindRouteDialog.vue
+++ b/src/views/productionManagement/productionOrder/BindRouteDialog.vue
@@ -155,9 +155,9 @@
       </el-descriptions-item>
     </el-descriptions>
     <!-- ================= 鍒囨枡鍥剧ず ================= -->
-    <div class="section-title" v-if="formData.cuttingFileVo.length > 0">鍒囨枡鍥剧ず</div>
+    <div class="section-title" v-if="type === 'add' || (type === 'detail' && formData.cuttingFileVo.length > 0)">鍒囨枡鍥剧ず</div>
     <ActionFileUpload
-    v-if="formData.cuttingFileVo.length > 0"
+        v-if="type === 'add' || (type === 'detail' && formData.cuttingFileVo.length > 0)"
         style="width: 50%;float: left;"
         v-model:file-list="formData.cuttingFileVo"
         :action="upload.url"
@@ -171,7 +171,7 @@
         :onDownload="onDownload"
         :onRemove="onRemove"
         :onPreview="onPreview"
-        :onView="type === 'detail' ? false : true"
+        :onView="type!=='detail'"
         :tip-text="type === 'detail' ? '' : '鏀寔鍥剧墖锛坖pg, jpeg, png锛夋牸寮�'"
     />
     <el-image
@@ -192,7 +192,7 @@
         <el-input v-model="formData.cutNum" placeholder="鍒囨枡灏哄" :disabled="isDetail" />
       </el-descriptions-item>
       <el-descriptions-item label="鍒囨枡鏁伴噺" align="center">
-        <el-input v-model="formData.cutSize" placeholder="鍒囨枡灏哄" :disabled="isDetail" />
+        <el-input v-model="formData.cutSize" placeholder="鍒囨枡鏁伴噺" :disabled="isDetail" />
       </el-descriptions-item>
       <el-descriptions-item label="涓洅鏁伴噺" align="center">
         <el-input v-model="formData.mediumBoxQty" placeholder="涓洅鏁伴噺" :disabled="isDetail" />
@@ -451,6 +451,10 @@
   headers: { Authorization: 'Bearer ' + getToken() }
 })
 
+const showCuttingFile = computed(() => {
+  return props.type === 'detail' && Array.isArray(formData.cuttingFileVo) && formData.cuttingFileVo.length > 0
+})
+
 const filePreviewRef = ref()
 const formData = reactive({
   productOrderList:null,
@@ -462,6 +466,7 @@
   no: "",
   productName: "",
   productDescription: "",
+  cuttingDiagramCheckout:"",
   clientName: "",
   finishedSize: "",
   cutNum: "",
@@ -484,7 +489,6 @@
   ],
   processContent: [
     {
-      id: "1",
       processId: "",
       processName: "",
       mediumBoxQty: "",
@@ -500,7 +504,6 @@
   ],
   materialInfo: [
     {
-      id: "1",
       productId: "",
       name: "",
       productModelId: "",
@@ -558,6 +561,7 @@
   no: "",
   productName: "",
   productDescription: "",
+  cuttingDiagramCheckout:"骞冲紶",
   clientName: "",
   finishedSize: "",
   cutNum: "",
@@ -580,7 +584,6 @@
   ],
   processContent: [
     {
-      id: "1",
       processId: "",
       processName: "",
       mediumBoxQty: "",
@@ -596,7 +599,6 @@
   ],
   materialInfo: [
     {
-      id: "1",
       productId: "",
       name: "",
       productModelId: "",
@@ -892,7 +894,6 @@
 
 const addProcessRow = () => {
   formData.processContent.push({
-    id: Date.now().toString(),
     processId: "",
     processName: "",
     openCount: "",

--
Gitblit v1.9.3