From c05b81c7f50df80ab247a05f9f92af2d799e77cd Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期五, 10 四月 2026 15:59:04 +0800
Subject: [PATCH] feat:1.销售添加是否生产 2.生产订单添加备注

---
 src/views/productionManagement/productionOrder/New.vue   |    8 
 src/views/productionManagement/productionOrder/index.vue |    5 
 src/views/salesManagement/salesLedger/index.vue          | 1133 +++++++++++++++++++++++++++-----------------------------
 3 files changed, 553 insertions(+), 593 deletions(-)

diff --git a/src/views/productionManagement/productionOrder/New.vue b/src/views/productionManagement/productionOrder/New.vue
index 83682fc..fd84f2b 100644
--- a/src/views/productionManagement/productionOrder/New.vue
+++ b/src/views/productionManagement/productionOrder/New.vue
@@ -90,6 +90,12 @@
           <el-input-number v-model="formState.quantity" :step="1" :min="1" style="width: 100%" />
         </el-form-item>
 
+        <el-form-item
+            label="澶囨敞"
+            prop="remark"
+        >
+          <el-input v-model="formState.remark" placeholder="澶囨敞" />
+        </el-form-item>
       </el-form>
 
       <!-- 浜у搧閫夋嫨寮圭獥 -->
@@ -140,6 +146,7 @@
   priority: undefined,
   quantity: 0,
   batchNo: "",
+  remark: "",
 });
 
 const isShow = computed({
@@ -173,6 +180,7 @@
     priority: priority_type.value && priority_type.value.length > 0 ? priority_type.value[2].value : undefined,
     quantity: '',
     batchNo: "",
+    remark: "",
   };
   isShow.value = false;
 };
diff --git a/src/views/productionManagement/productionOrder/index.vue b/src/views/productionManagement/productionOrder/index.vue
index c123928..887b6f7 100644
--- a/src/views/productionManagement/productionOrder/index.vue
+++ b/src/views/productionManagement/productionOrder/index.vue
@@ -211,6 +211,11 @@
       width: 120,
     },
     {
+      label: "澶囨敞",
+      prop: "remark",
+      width: 120,
+    },
+    {
       dataType: "action",
       label: "鎿嶄綔",
       align: "center",
diff --git a/src/views/salesManagement/salesLedger/index.vue b/src/views/salesManagement/salesLedger/index.vue
index bac19a1..81a8313 100644
--- a/src/views/salesManagement/salesLedger/index.vue
+++ b/src/views/salesManagement/salesLedger/index.vue
@@ -1,63 +1,61 @@
 <template>
-  <div class="app-container">
-    <div class="search_form">
-      <el-form :model="searchForm" :inline="true">
-        <el-form-item label="瀹㈡埛鍚嶇О锛�">
-          <el-input v-model="searchForm.customerName" placeholder="璇疯緭鍏�" clearable prefix-icon="Search"
-            @change="handleQuery" />
-        </el-form-item>
-        <el-form-item label="閿�鍞悎鍚屽彿锛�">
-          <el-input v-model="searchForm.salesContractNo" placeholder="璇疯緭鍏�" clearable prefix-icon="Search"
-            @change="handleQuery" />
-        </el-form-item>
-        <el-form-item label="椤圭洰鍚嶇О锛�">
-          <el-input v-model="searchForm.projectName" placeholder="璇疯緭鍏�" clearable prefix-icon="Search"
-            @change="handleQuery" />
-        </el-form-item>
-        <el-form-item label="褰曞叆鏃ユ湡锛�">
-          <el-date-picker v-model="searchForm.entryDate" value-format="YYYY-MM-DD" format="YYYY-MM-DD" type="daterange"
-            placeholder="璇烽�夋嫨" clearable @change="changeDaterange" />
-        </el-form-item>
-        <el-form-item>
-          <el-button type="primary" @click="handleQuery"> 鎼滅储 </el-button>
-        </el-form-item>
-      </el-form>
-    </div>
-    <div class="table_list">
-      <div class="actions">
-        <div></div>
-        <div>
-          <el-button type="primary" @click="openForm('add')">
-            鏂板鍙拌处
-          </el-button>
-          <el-button type="primary" plain @click="handleImport">瀵煎叆</el-button>
-          <el-button @click="handleOut">瀵煎嚭</el-button>
-          <el-button type="danger" plain @click="handleDelete">鍒犻櫎</el-button>
-          <el-button type="primary" plain @click="handlePrint">鎵撳嵃</el-button>
-        </div>
-      </div>
-      <el-table :data="tableData" border v-loading="tableLoading" @selection-change="handleSelectionChange"
-        :expand-row-keys="expandedRowKeys" :row-key="(row) => row.id" :row-class-name="tableRowClassName" show-summary style="width: 100%"
-        :summary-method="summarizeMainTable" @expand-change="expandChange" height="calc(100vh - 18.5em)">
-        <el-table-column align="center" type="selection" width="55" fixed="left"/>
-        <el-table-column type="expand" width="60" fixed="left">
-          <template #default="props">
-            <el-table :data="props.row.children" border show-summary :summary-method="summarizeChildrenTable">
-              <el-table-column align="center" label="搴忓彿" type="index"/>
-              <el-table-column label="浜у搧澶х被" prop="productCategory" />
-              <el-table-column label="瑙勬牸鍨嬪彿" prop="specificationModel" />
-              <el-table-column label="鍗曚綅" prop="unit" />
-              <el-table-column label="鏂欏彿" prop="materialCode" />
-							<el-table-column label="浜у搧鐘舵��"
-															 width="100px"
-															 align="center">
-                <template #default="scope">
-									<el-tag v-if="scope.row.approveStatus === 1"
-													type="success">鍏呰冻</el-tag>
-									<el-tag v-else
-													type="danger">涓嶈冻</el-tag>
-                </template>
-              </el-table-column>
+	<div class="app-container">
+		<div class="search_form">
+			<el-form :model="searchForm" :inline="true">
+				<el-form-item label="瀹㈡埛鍚嶇О锛�">
+					<el-input v-model="searchForm.customerName" placeholder="璇疯緭鍏�" clearable prefix-icon="Search"
+						@change="handleQuery" />
+				</el-form-item>
+				<el-form-item label="閿�鍞悎鍚屽彿锛�">
+					<el-input v-model="searchForm.salesContractNo" placeholder="璇疯緭鍏�" clearable prefix-icon="Search"
+						@change="handleQuery" />
+				</el-form-item>
+				<el-form-item label="椤圭洰鍚嶇О锛�">
+					<el-input v-model="searchForm.projectName" placeholder="璇疯緭鍏�" clearable prefix-icon="Search"
+						@change="handleQuery" />
+				</el-form-item>
+				<el-form-item label="褰曞叆鏃ユ湡锛�">
+					<el-date-picker v-model="searchForm.entryDate" value-format="YYYY-MM-DD" format="YYYY-MM-DD"
+						type="daterange" placeholder="璇烽�夋嫨" clearable @change="changeDaterange" />
+				</el-form-item>
+				<el-form-item>
+					<el-button type="primary" @click="handleQuery"> 鎼滅储 </el-button>
+				</el-form-item>
+			</el-form>
+		</div>
+		<div class="table_list">
+			<div class="actions">
+				<div></div>
+				<div>
+					<el-button type="primary" @click="openForm('add')">
+						鏂板鍙拌处
+					</el-button>
+					<el-button type="primary" plain @click="handleImport">瀵煎叆</el-button>
+					<el-button @click="handleOut">瀵煎嚭</el-button>
+					<el-button type="danger" plain @click="handleDelete">鍒犻櫎</el-button>
+					<el-button type="primary" plain @click="handlePrint">鎵撳嵃</el-button>
+				</div>
+			</div>
+			<el-table :data="tableData" border v-loading="tableLoading" @selection-change="handleSelectionChange"
+				:expand-row-keys="expandedRowKeys" :row-key="(row) => row.id" :row-class-name="tableRowClassName"
+				show-summary style="width: 100%" :summary-method="summarizeMainTable" @expand-change="expandChange"
+				height="calc(100vh - 18.5em)">
+				<el-table-column align="center" type="selection" width="55" fixed="left" />
+				<el-table-column type="expand" width="60" fixed="left">
+					<template #default="props">
+						<el-table :data="props.row.children" border show-summary
+							:summary-method="summarizeChildrenTable">
+							<el-table-column align="center" label="搴忓彿" type="index" />
+							<el-table-column label="浜у搧澶х被" prop="productCategory" />
+							<el-table-column label="瑙勬牸鍨嬪彿" prop="specificationModel" />
+							<el-table-column label="鍗曚綅" prop="unit" />
+							<el-table-column label="鏂欏彿" prop="materialCode" />
+							<el-table-column label="浜у搧鐘舵��" width="100px" align="center">
+								<template #default="scope">
+									<el-tag v-if="scope.row.approveStatus === 1" type="success">鍏呰冻</el-tag>
+									<el-tag v-else type="danger">涓嶈冻</el-tag>
+								</template>
+							</el-table-column>
 							<el-table-column label="鍙戣揣鐘舵��" width="140" align="center">
 								<template #default="scope">
 									<el-tag :type="getShippingStatusType(scope.row)" size="small">
@@ -67,74 +65,72 @@
 							</el-table-column>
 							<el-table-column label="蹇�掑叕鍙�" prop="expressCompany" show-overflow-tooltip />
 							<el-table-column label="蹇�掑崟鍙�" prop="expressNumber" show-overflow-tooltip />
-              <el-table-column label="鍙戣揣杞︾墝" minWidth="100px" align="center">
-                <template #default="scope">
-                  <div>
-                    <el-tag type="success" v-if="scope.row.shippingCarNumber">{{ scope.row.shippingCarNumber }}</el-tag>
-                    <el-tag v-else type="info">-</el-tag>
-                  </div>
-                </template>
-              </el-table-column>
-							<el-table-column label="鍙戣揣鏃ユ湡"
-															 minWidth="100px"
-															 align="center">
-                <template #default="scope">
-                  <div>
-                    <div v-if="scope.row.shippingDate">{{ scope.row.shippingDate }}</div>
-										<el-tag v-else
-														type="info">-</el-tag>
-                  </div>
-                </template>
-              </el-table-column>
-              <el-table-column label="鏁伴噺" prop="quantity" />
-              <el-table-column label="绋庣巼(%)" prop="taxRate" />
-              <el-table-column label="鍚◣鍗曚环(鍏�)" prop="taxInclusiveUnitPrice" :formatter="formattedNumber" />
-              <el-table-column label="鍚◣鎬讳环(鍏�)" prop="taxInclusiveTotalPrice" :formatter="formattedNumber" />
-              <el-table-column label="涓嶅惈绋庢�讳环(鍏�)" prop="taxExclusiveTotalPrice" :formatter="formattedNumber" />
-            <!--鎿嶄綔-->
-              <el-table-column Width="60px" label="鎿嶄綔" align="center">
-                <template #default="scope">
-                  <el-button 
-                    link 
-                    type="primary" 
-                    size="small"
-                    :disabled="!canShip(scope.row)"
-                    @click="openDeliveryForm(scope.row)">
-                    鍙戣揣
-                  </el-button>
-                </template>
-              </el-table-column>
-            </el-table>
-          </template>
-        </el-table-column>
-        <el-table-column align="center" label="搴忓彿" type="index" width="60" />
-        <el-table-column label="閿�鍞悎鍚屽彿" prop="salesContractNo" width="180" show-overflow-tooltip />
-        <el-table-column label="瀹㈡埛鍚嶇О" prop="customerName" width="300" show-overflow-tooltip />
-        <el-table-column label="涓氬姟鍛�" prop="salesman" width="100" show-overflow-tooltip />
-        <el-table-column label="椤圭洰鍚嶇О" prop="projectName" width="180" show-overflow-tooltip />
-        <el-table-column label="浠樻鏂瑰紡" prop="paymentMethod" show-overflow-tooltip />
-        <el-table-column label="鍚堝悓閲戦(鍏�)" prop="contractAmount" width="220" show-overflow-tooltip
-          :formatter="formattedNumber" />
-        <el-table-column label="褰曞叆浜�" prop="entryPersonName" width="100" show-overflow-tooltip />
-        <el-table-column label="褰曞叆鏃ユ湡" prop="entryDate" width="120" show-overflow-tooltip />
-        <el-table-column label="绛捐鏃ユ湡" prop="executionDate" width="120" show-overflow-tooltip />
-        <el-table-column label="浜や粯鏃ユ湡" prop="deliveryDate" width="120" show-overflow-tooltip />
-        <el-table-column label="澶囨敞" prop="remarks" width="200" show-overflow-tooltip />
-        <el-table-column fixed="right" label="鎿嶄綔" min-width="100" align="center">
-          <template #default="scope">
-            <el-button link type="primary" size="small" @click="openForm('edit', scope.row)" :disabled="!scope.row.isEdit">缂栬緫</el-button>
-<!--            <el-button link type="primary" size="small" @click="openForm('view', scope.row)">璇︽儏</el-button>-->
-            <el-button link type="primary" size="small" @click="downLoadFile(scope.row)">闄勪欢</el-button>
-<!--            <el-button link type="primary" size="small" @click="openDeliveryForm(scope.row)">鍙戣揣</el-button>-->
-          </template>
-        </el-table-column>
-      </el-table>
-      <pagination v-show="total > 0" :total="total" layout="total, sizes, prev, pager, next, jumper"
-        :page="page.current" :limit="page.size" @pagination="paginationChange" />
-    </div>
-    <FormDialog v-model="dialogFormVisible" :title="operationType === 'add' ? '鏂板閿�鍞彴璐﹂〉闈�' : '缂栬緫閿�鍞彴璐﹂〉闈�'" :width="'70%'"
-      :operation-type="operationType" @close="closeDia" @confirm="submitForm" @cancel="closeDia">
-      <el-form :model="form" label-width="140px" label-position="top" :rules="rules" ref="formRef">
+							<el-table-column label="鍙戣揣杞︾墝" minWidth="100px" align="center">
+								<template #default="scope">
+									<div>
+										<el-tag type="success" v-if="scope.row.shippingCarNumber">{{
+											scope.row.shippingCarNumber }}</el-tag>
+										<el-tag v-else type="info">-</el-tag>
+									</div>
+								</template>
+							</el-table-column>
+							<el-table-column label="鍙戣揣鏃ユ湡" minWidth="100px" align="center">
+								<template #default="scope">
+									<div>
+										<div v-if="scope.row.shippingDate">{{ scope.row.shippingDate }}</div>
+										<el-tag v-else type="info">-</el-tag>
+									</div>
+								</template>
+							</el-table-column>
+							<el-table-column label="鏁伴噺" prop="quantity" />
+							<el-table-column label="绋庣巼(%)" prop="taxRate" />
+							<el-table-column label="鍚◣鍗曚环(鍏�)" prop="taxInclusiveUnitPrice"
+								:formatter="formattedNumber" />
+							<el-table-column label="鍚◣鎬讳环(鍏�)" prop="taxInclusiveTotalPrice"
+								:formatter="formattedNumber" />
+							<el-table-column label="涓嶅惈绋庢�讳环(鍏�)" prop="taxExclusiveTotalPrice"
+								:formatter="formattedNumber" />
+							<!--鎿嶄綔-->
+							<el-table-column Width="60px" label="鎿嶄綔" align="center">
+								<template #default="scope">
+									<el-button link type="primary" size="small" :disabled="!canShip(scope.row)"
+										@click="openDeliveryForm(scope.row)">
+										鍙戣揣
+									</el-button>
+								</template>
+							</el-table-column>
+						</el-table>
+					</template>
+				</el-table-column>
+				<el-table-column align="center" label="搴忓彿" type="index" width="60" />
+				<el-table-column label="閿�鍞悎鍚屽彿" prop="salesContractNo" width="180" show-overflow-tooltip />
+				<el-table-column label="瀹㈡埛鍚嶇О" prop="customerName" width="300" show-overflow-tooltip />
+				<el-table-column label="涓氬姟鍛�" prop="salesman" width="100" show-overflow-tooltip />
+				<el-table-column label="椤圭洰鍚嶇О" prop="projectName" width="180" show-overflow-tooltip />
+				<el-table-column label="浠樻鏂瑰紡" prop="paymentMethod" show-overflow-tooltip />
+				<el-table-column label="鍚堝悓閲戦(鍏�)" prop="contractAmount" width="220" show-overflow-tooltip
+					:formatter="formattedNumber" />
+				<el-table-column label="褰曞叆浜�" prop="entryPersonName" width="100" show-overflow-tooltip />
+				<el-table-column label="褰曞叆鏃ユ湡" prop="entryDate" width="120" show-overflow-tooltip />
+				<el-table-column label="绛捐鏃ユ湡" prop="executionDate" width="120" show-overflow-tooltip />
+				<el-table-column label="浜や粯鏃ユ湡" prop="deliveryDate" width="120" show-overflow-tooltip />
+				<el-table-column label="澶囨敞" prop="remarks" width="200" show-overflow-tooltip />
+				<el-table-column fixed="right" label="鎿嶄綔" min-width="100" align="center">
+					<template #default="scope">
+						<el-button link type="primary" size="small" @click="openForm('edit', scope.row)"
+							:disabled="!scope.row.isEdit">缂栬緫</el-button>
+						<!--            <el-button link type="primary" size="small" @click="openForm('view', scope.row)">璇︽儏</el-button>-->
+						<el-button link type="primary" size="small" @click="downLoadFile(scope.row)">闄勪欢</el-button>
+						<!--            <el-button link type="primary" size="small" @click="openDeliveryForm(scope.row)">鍙戣揣</el-button>-->
+					</template>
+				</el-table-column>
+			</el-table>
+			<pagination v-show="total > 0" :total="total" layout="total, sizes, prev, pager, next, jumper"
+				:page="page.current" :limit="page.size" @pagination="paginationChange" />
+		</div>
+		<FormDialog v-model="dialogFormVisible" :title="operationType === 'add' ? '鏂板閿�鍞彴璐﹂〉闈�' : '缂栬緫閿�鍞彴璐﹂〉闈�'"
+			:width="'70%'" :operation-type="operationType" @close="closeDia" @confirm="submitForm" @cancel="closeDia">
+			<el-form :model="form" label-width="140px" label-position="top" :rules="rules" ref="formRef">
 				<!-- 鎶ヤ环鍗曞鍏ュ叆鍙o細鏀惧湪琛ㄥ崟椤堕儴锛岄�夋嫨鍚庡弽鏄惧鎴�/涓氬姟鍛樼瓑 -->
 				<el-row v-if="operationType === 'add'" style="margin-bottom: 10px;">
 					<el-col :span="24" style="text-align: right;">
@@ -143,86 +139,101 @@
 						</el-button>
 					</el-col>
 				</el-row>
-        <el-row :gutter="30">
-          <el-col :span="12">
-            <el-form-item label="閿�鍞悎鍚屽彿锛�" prop="salesContractNo">
-              <el-input v-model="form.salesContractNo" placeholder="鑷姩鐢熸垚" clearable disabled />
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="涓氬姟鍛橈細" prop="salesman">
-              <el-select v-model="form.salesman" placeholder="璇烽�夋嫨" clearable :disabled="operationType === 'view'">
-                <el-option v-for="item in userList" :key="item.nickName" :label="item.nickName"
-                  :value="item.nickName" />
-              </el-select>
-            </el-form-item>
-          </el-col>
-        </el-row>
-        <el-row :gutter="30">
-          <el-col :span="12">
-            <el-form-item label="瀹㈡埛鍚嶇О锛�" prop="customerId">
-              <el-select v-model="form.customerId" placeholder="璇烽�夋嫨" clearable :disabled="operationType === 'view'">
-                <el-option v-for="item in customerOption" :key="item.id" :label="item.customerName" :value="item.id">
-                  {{
-                    item.customerName + "鈥斺��" + item.taxpayerIdentificationNumber
-                  }}
-                </el-option>
-              </el-select>
-            </el-form-item>
-          </el-col>
+				<el-row :gutter="30">
 					<el-col :span="12">
-						<el-form-item label="椤圭洰鍚嶇О锛�" prop="projectName">
-							<el-input v-model="form.projectName" placeholder="璇疯緭鍏�" clearable :disabled="operationType === 'view'" />
+						<el-form-item label="閿�鍞悎鍚屽彿锛�" prop="salesContractNo">
+							<el-input v-model="form.salesContractNo" placeholder="鑷姩鐢熸垚" clearable disabled />
 						</el-form-item>
 					</el-col>
-        </el-row>
-        <el-row :gutter="30">
+					<el-col :span="12">
+						<el-form-item label="涓氬姟鍛橈細" prop="salesman">
+							<el-select v-model="form.salesman" placeholder="璇烽�夋嫨" clearable
+								:disabled="operationType === 'view'">
+								<el-option v-for="item in userList" :key="item.nickName" :label="item.nickName"
+									:value="item.nickName" />
+							</el-select>
+						</el-form-item>
+					</el-col>
+				</el-row>
+				<el-row :gutter="30">
+					<el-col :span="12">
+						<el-form-item label="瀹㈡埛鍚嶇О锛�" prop="customerId">
+							<el-select v-model="form.customerId" placeholder="璇烽�夋嫨" clearable
+								:disabled="operationType === 'view'">
+								<el-option v-for="item in customerOption" :key="item.id" :label="item.customerName"
+									:value="item.id">
+									{{
+										item.customerName + "鈥斺��" + item.taxpayerIdentificationNumber
+									}}
+								</el-option>
+							</el-select>
+						</el-form-item>
+					</el-col>
+					<el-col :span="12">
+						<el-form-item label="椤圭洰鍚嶇О锛�" prop="projectName">
+							<el-input v-model="form.projectName" placeholder="璇疯緭鍏�" clearable
+								:disabled="operationType === 'view'" />
+						</el-form-item>
+					</el-col>
+				</el-row>
+				<el-row :gutter="30">
 					<el-col :span="12">
 						<el-form-item label="绛捐鏃ユ湡锛�" prop="executionDate">
 							<el-date-picker style="width: 100%" v-model="form.executionDate" value-format="YYYY-MM-DD"
-															format="YYYY-MM-DD" type="date" placeholder="璇烽�夋嫨" clearable :disabled="operationType === 'view'" />
+								format="YYYY-MM-DD" type="date" placeholder="璇烽�夋嫨" clearable
+								:disabled="operationType === 'view'" />
 						</el-form-item>
 					</el-col>
 					<el-col :span="12">
 						<el-form-item label="浠樻鏂瑰紡">
-							<el-input v-model="form.paymentMethod" placeholder="璇疯緭鍏�" clearable :disabled="operationType === 'view'" />
+							<el-input v-model="form.paymentMethod" placeholder="璇疯緭鍏�" clearable
+								:disabled="operationType === 'view'" />
 						</el-form-item>
 					</el-col>
 				</el-row>
 				<el-row :gutter="30">
 					<el-col :span="12">
 						<el-form-item label="褰曞叆浜猴細" prop="entryPerson">
-							<el-select v-model="form.entryPerson"
-												 filterable
-												 default-first-option
-												 :reserve-keyword="false" placeholder="璇烽�夋嫨" clearable @change="changs">
-								<el-option v-for="item in userList" :key="item.userId" :label="item.nickName" :value="item.userId" />
+							<el-select v-model="form.entryPerson" filterable default-first-option
+								:reserve-keyword="false" placeholder="璇烽�夋嫨" clearable @change="changs">
+								<el-option v-for="item in userList" :key="item.userId" :label="item.nickName"
+									:value="item.userId" />
 							</el-select>
 						</el-form-item>
 					</el-col>
 					<el-col :span="12">
 						<el-form-item label="褰曞叆鏃ユ湡锛�" prop="entryDate">
-							<el-date-picker style="width: 100%" v-model="form.entryDate" value-format="YYYY-MM-DD" format="YYYY-MM-DD"
-															type="date" placeholder="璇烽�夋嫨" clearable />
+							<el-date-picker style="width: 100%" v-model="form.entryDate" value-format="YYYY-MM-DD"
+								format="YYYY-MM-DD" type="date" placeholder="璇烽�夋嫨" clearable />
 						</el-form-item>
 					</el-col>
 				</el-row>
-        <el-row :gutter="30">
-          <el-col :span="12">
-            <el-form-item label="浜よ揣鏃ユ湡锛�" prop="entryDate">
-              <el-date-picker style="width: 100%" v-model="form.deliveryDate" value-format="YYYY-MM-DD" format="YYYY-MM-DD"
-                              type="date" placeholder="璇烽�夋嫨" clearable />
-            </el-form-item>
-          </el-col>
-        </el-row>
+				<el-row :gutter="30">
+					<el-col :span="12">
+						<el-form-item label="浜よ揣鏃ユ湡锛�" prop="entryDate">
+							<el-date-picker style="width: 100%" v-model="form.deliveryDate" value-format="YYYY-MM-DD"
+								format="YYYY-MM-DD" type="date" placeholder="璇烽�夋嫨" clearable />
+						</el-form-item>
+					</el-col>
+					<el-col :span="12">
+						<el-form-item label="鏄惁鐢熶骇锛�" prop="produce">
+							<el-radio-group v-model="form.produce">
+								<el-radio :label="true">鏄�</el-radio>
+								<el-radio :label="false">鍚�</el-radio>
+							</el-radio-group>
+						</el-form-item>
+					</el-col>
+				</el-row>
 				<el-row>
 					<el-form-item label="浜у搧淇℃伅锛�" prop="entryDate">
-						<el-button v-if="operationType !== 'view'" type="primary" @click="openProductForm('add')">娣诲姞</el-button>
-						<el-button v-if="operationType !== 'view'" plain type="danger" @click="deleteProduct" >鍒犻櫎</el-button>
+						<el-button v-if="operationType !== 'view'" type="primary"
+							@click="openProductForm('add')">娣诲姞</el-button>
+						<el-button v-if="operationType !== 'view'" plain type="danger"
+							@click="deleteProduct">鍒犻櫎</el-button>
 					</el-form-item>
 				</el-row>
 				<el-table :data="productData" border @selection-change="productSelected" show-summary
-									:summary-method="summarizeMainTable">
+					:summary-method="summarizeMainTable">
 					<el-table-column align="center" type="selection" width="55" v-if="operationType !== 'view'"
 						:selectable="(row) => !isProductShipped(row)" />
 					<el-table-column align="center" label="搴忓彿" type="index" width="60" />
@@ -235,27 +246,29 @@
 					<el-table-column label="鍚◣鍗曚环(鍏�)" prop="taxInclusiveUnitPrice" :formatter="formattedNumber" />
 					<el-table-column label="鍚◣鎬讳环(鍏�)" prop="taxInclusiveTotalPrice" :formatter="formattedNumber" />
 					<el-table-column label="涓嶅惈绋庢�讳环(鍏�)" prop="taxExclusiveTotalPrice" :formatter="formattedNumber" />
-					<el-table-column fixed="right" label="鎿嶄綔" min-width="60" align="center" v-if="operationType !== 'view'">
+					<el-table-column fixed="right" label="鎿嶄綔" min-width="60" align="center"
+						v-if="operationType !== 'view'">
 						<template #default="scope">
-							<el-button link type="primary" size="small" 
-								:disabled="isProductShipped(scope.row)"
-								@click="openProductForm('edit', scope.row,scope.$index)">缂栬緫</el-button>
+							<el-button link type="primary" size="small" :disabled="isProductShipped(scope.row)"
+								@click="openProductForm('edit', scope.row, scope.$index)">缂栬緫</el-button>
 						</template>
 					</el-table-column>
 				</el-table>
 				<el-row :gutter="30">
 					<el-col :span="24">
 						<el-form-item label="澶囨敞锛�" prop="remarks">
-							<el-input v-model="form.remarks" placeholder="璇疯緭鍏�" clearable type="textarea" :rows="2" :disabled="operationType === 'view'" />
+							<el-input v-model="form.remarks" placeholder="璇疯緭鍏�" clearable type="textarea" :rows="2"
+								:disabled="operationType === 'view'" />
 						</el-form-item>
 					</el-col>
 				</el-row>
 				<el-row :gutter="30">
 					<el-col :span="24">
 						<el-form-item label="闄勪欢鏉愭枡锛�" prop="salesLedgerFiles">
-							<el-upload v-model:file-list="fileList" :action="upload.url" multiple ref="fileUpload" auto-upload
-												 :headers="upload.headers" :before-upload="handleBeforeUpload" :on-error="handleUploadError"
-												 :on-success="handleUploadSuccess" :on-remove="handleRemove">
+							<el-upload v-model:file-list="fileList" :action="upload.url" multiple ref="fileUpload"
+								auto-upload :headers="upload.headers" :before-upload="handleBeforeUpload"
+								:on-error="handleUploadError" :on-success="handleUploadSuccess"
+								:on-remove="handleRemove">
 								<el-button type="primary" v-if="operationType !== 'view'">涓婁紶</el-button>
 								<template #tip v-if="operationType !== 'view'">
 									<div class="el-upload__tip">
@@ -271,38 +284,17 @@
 		</FormDialog>
 
 		<!-- 浠庢姤浠峰崟瀵煎叆锛堜粎瀹℃壒閫氳繃锛� -->
-		<el-dialog
-			v-model="quotationDialogVisible"
-			title="閫夋嫨瀹℃壒閫氳繃鐨勯攢鍞姤浠峰崟"
-			width="80%"
-			:close-on-click-modal="false"
-		>
+		<el-dialog v-model="quotationDialogVisible" title="閫夋嫨瀹℃壒閫氳繃鐨勯攢鍞姤浠峰崟" width="80%" :close-on-click-modal="false">
 			<div style="margin-bottom: 12px; display:flex; gap: 12px; align-items:center;">
-				<el-input
-					v-model="quotationSearchForm.quotationNo"
-					placeholder="璇疯緭鍏ユ姤浠峰崟鍙�"
-					clearable
-					style="max-width: 260px;"
-					@change="fetchQuotationList"
-				/>
-				<el-input
-					v-model="quotationSearchForm.customer"
-					placeholder="璇疯緭鍏ュ鎴峰悕绉�"
-					clearable
-					style="max-width: 260px;"
-					@change="fetchQuotationList"
-				/>
+				<el-input v-model="quotationSearchForm.quotationNo" placeholder="璇疯緭鍏ユ姤浠峰崟鍙�" clearable
+					style="max-width: 260px;" @change="fetchQuotationList" />
+				<el-input v-model="quotationSearchForm.customer" placeholder="璇疯緭鍏ュ鎴峰悕绉�" clearable
+					style="max-width: 260px;" @change="fetchQuotationList" />
 				<el-button type="primary" @click="fetchQuotationList">鎼滅储</el-button>
 				<el-button @click="resetQuotationSearch">閲嶇疆</el-button>
 			</div>
-			
-			<el-table
-				:data="quotationList"
-				border
-				stripe
-				v-loading="quotationLoading"
-				height="420px"
-			>
+
+			<el-table :data="quotationList" border stripe v-loading="quotationLoading" height="420px">
 				<el-table-column align="center" label="搴忓彿" type="index" width="60" />
 				<el-table-column prop="quotationNo" label="鎶ヤ环鍗曞彿" width="180" show-overflow-tooltip />
 				<el-table-column prop="customer" label="瀹㈡埛鍚嶇О" min-width="220" show-overflow-tooltip />
@@ -320,56 +312,47 @@
 					</template>
 				</el-table-column>
 			</el-table>
-			
-			<pagination
-				v-show="quotationPage.total > 0"
-				:total="quotationPage.total"
-				layout="total, sizes, prev, pager, next, jumper"
-				:page="quotationPage.current"
-				:limit="quotationPage.size"
-				@pagination="quotationPaginationChange"
-			/>
-			
+
+			<pagination v-show="quotationPage.total > 0" :total="quotationPage.total"
+				layout="total, sizes, prev, pager, next, jumper" :page="quotationPage.current"
+				:limit="quotationPage.size" @pagination="quotationPaginationChange" />
+
 			<template #footer>
 				<el-button @click="quotationDialogVisible = false">鍏抽棴</el-button>
 			</template>
 		</el-dialog>
-		<FormDialog
-			v-model="productFormVisible"
-			:title="productOperationType === 'add' ? '鏂板浜у搧' : '缂栬緫浜у搧'"
-			:width="'40%'"
-			:operation-type="productOperationType"
-			@close="closeProductDia"
-			@confirm="submitProduct"
+		<FormDialog v-model="productFormVisible" :title="productOperationType === 'add' ? '鏂板浜у搧' : '缂栬緫浜у搧'"
+			:width="'40%'" :operation-type="productOperationType" @close="closeProductDia" @confirm="submitProduct"
 			@cancel="closeProductDia">
-			<el-form :model="productForm" label-width="140px" label-position="top" :rules="productRules" ref="productFormRef">
+			<el-form :model="productForm" label-width="140px" label-position="top" :rules="productRules"
+				ref="productFormRef">
 				<el-row :gutter="30">
 					<el-col :span="24">
 						<el-form-item label="浜у搧澶х被锛�" prop="productCategory">
 							<!-- <el-select v-model="productForm.productCategory" placeholder="璇烽�夋嫨" clearable>
 								<el-option v-for="item in userList" :key="item.nickName" :label="item.nickName" :value="item.nickName"/>
 							</el-select> -->
-							<el-tree-select v-model="productForm.productCategory" placeholder="璇烽�夋嫨" clearable check-strictly
-															@change="getModels" :data="productOptions" :render-after-expand="false" style="width: 100%" />
+							<el-tree-select v-model="productForm.productCategory" placeholder="璇烽�夋嫨" clearable
+								check-strictly @change="getModels" :data="productOptions" :render-after-expand="false"
+								style="width: 100%" />
 						</el-form-item>
 					</el-col>
 				</el-row>
 				<el-row :gutter="30">
 					<el-col :span="24">
 						<el-form-item label="瑙勬牸鍨嬪彿锛�" prop="productModelId">
-							<el-select v-model="productForm.productModelId" placeholder="璇烽�夋嫨" clearable @change="getProductModel" filterable>
-								<el-option v-for="item in modelOptions" :key="item.id" :label="item.model" :value="item.id" />
+							<el-select v-model="productForm.productModelId" placeholder="璇烽�夋嫨" clearable
+								@change="getProductModel" filterable>
+								<el-option v-for="item in modelOptions" :key="item.id" :label="item.model"
+									:value="item.id" />
 							</el-select>
 						</el-form-item>
 					</el-col>
-          <el-col :span="24">
-            <el-form-item label="鏂欏彿锛�"
-                          prop="materialCode">
-              <el-input v-model="productForm.materialCode"
-                        placeholder="璇疯緭鍏�"
-                        disabled />
-            </el-form-item>
-          </el-col>
+					<el-col :span="24">
+						<el-form-item label="鏂欏彿锛�" prop="materialCode">
+							<el-input v-model="productForm.materialCode" placeholder="璇疯緭鍏�" disabled />
+						</el-form-item>
+					</el-col>
 				</el-row>
 				<el-row :gutter="30">
 					<el-col :span="12">
@@ -379,7 +362,8 @@
 					</el-col>
 					<el-col :span="12">
 						<el-form-item label="绋庣巼(%)锛�" prop="taxRate">
-							<el-select v-model="productForm.taxRate" placeholder="璇烽�夋嫨" clearable @change="calculateFromTaxRate">
+							<el-select v-model="productForm.taxRate" placeholder="璇烽�夋嫨" clearable
+								@change="calculateFromTaxRate">
 								<el-option label="1" value="1" />
 								<el-option label="6" value="6" />
 								<el-option label="13" value="13" />
@@ -390,28 +374,29 @@
 				<el-row :gutter="30">
 					<el-col :span="12">
 						<el-form-item label="鍚◣鍗曚环(鍏�)锛�" prop="taxInclusiveUnitPrice">
-							<el-input-number :step="0.01" :min="0" v-model="productForm.taxInclusiveUnitPrice" style="width: 100%"
-															 :precision="2"
-															 placeholder="璇疯緭鍏�" clearable @change="calculateFromUnitPrice" />
+							<el-input-number :step="0.01" :min="0" v-model="productForm.taxInclusiveUnitPrice"
+								style="width: 100%" :precision="2" placeholder="璇疯緭鍏�" clearable
+								@change="calculateFromUnitPrice" />
 						</el-form-item>
 					</el-col>
 					<el-col :span="12">
 						<el-form-item label="鏁伴噺锛�" prop="quantity">
-							<el-input-number  :step="0.1" :min="0" v-model="productForm.quantity" placeholder="璇疯緭鍏�" clearable
-																:precision="2"
-																@change="calculateFromQuantity" style="width: 100%" />
+							<el-input-number :step="0.1" :min="0" v-model="productForm.quantity" placeholder="璇疯緭鍏�"
+								clearable :precision="2" @change="calculateFromQuantity" style="width: 100%" />
 						</el-form-item>
 					</el-col>
 				</el-row>
 				<el-row :gutter="30">
 					<el-col :span="12">
 						<el-form-item label="鍚◣鎬讳环(鍏�)锛�" prop="taxInclusiveTotalPrice">
-							<el-input v-model="productForm.taxInclusiveTotalPrice" placeholder="璇疯緭鍏�" clearable @change="calculateFromTotalPrice" />
+							<el-input v-model="productForm.taxInclusiveTotalPrice" placeholder="璇疯緭鍏�" clearable
+								@change="calculateFromTotalPrice" />
 						</el-form-item>
 					</el-col>
 					<el-col :span="12">
 						<el-form-item label="涓嶅惈绋庢�讳环(鍏�)锛�" prop="taxExclusiveTotalPrice">
-							<el-input v-model="productForm.taxExclusiveTotalPrice" placeholder="璇疯緭鍏�" clearable @change="calculateFromExclusiveTotalPrice" />
+							<el-input v-model="productForm.taxExclusiveTotalPrice" placeholder="璇疯緭鍏�" clearable
+								@change="calculateFromExclusiveTotalPrice" />
 						</el-form-item>
 					</el-col>
 				</el-row>
@@ -428,28 +413,12 @@
 			</el-form>
 		</FormDialog>
 		<!-- 瀵煎叆寮圭獥 -->
-		<FormDialog
-			v-model="importUpload.open"
-			:title="importUpload.title"
-			:width="'600px'"
-			@close="importUpload.open = false"
-			@confirm="submitImportFile"
-			@cancel="importUpload.open = false"
-		>
-			<el-upload
-				ref="importUploadRef"
-				:limit="1"
-				accept=".xlsx,.xls"
-				:action="importUpload.url"
-				:headers="importUpload.headers"
-				:before-upload="importUpload.beforeUpload"
-				:on-success="importUpload.onSuccess"
-				:on-error="importUpload.onError"
-				:on-progress="importUpload.onProgress"
-				:on-change="importUpload.onChange"
-				:auto-upload="false"
-				drag
-			>
+		<FormDialog v-model="importUpload.open" :title="importUpload.title" :width="'600px'"
+			@close="importUpload.open = false" @confirm="submitImportFile" @cancel="importUpload.open = false">
+			<el-upload ref="importUploadRef" :limit="1" accept=".xlsx,.xls" :action="importUpload.url"
+				:headers="importUpload.headers" :before-upload="importUpload.beforeUpload"
+				:on-success="importUpload.onSuccess" :on-error="importUpload.onError"
+				:on-progress="importUpload.onProgress" :on-change="importUpload.onChange" :auto-upload="false" drag>
 				<i class="el-icon-upload"></i>
 				<div class="el-upload__text">
 					灏嗘枃浠舵嫋鍒版澶勶紝鎴�<em>鐐瑰嚮涓婁紶</em>
@@ -463,19 +432,10 @@
 			</el-upload>
 		</FormDialog>
 		<!-- 闄勪欢鍒楄〃寮圭獥 -->
-		<FileListDialog
-			ref="fileListRef"
-			v-model="fileListDialogVisible"
-			title="闄勪欢鍒楄〃"
-		/>
+		<FileListDialog ref="fileListRef" v-model="fileListDialogVisible" title="闄勪欢鍒楄〃" />
 		<!-- 鎵撳嵃棰勮寮圭獥 -->
-		<el-dialog
-			v-model="printPreviewVisible"
-			title="鎵撳嵃棰勮"
-			width="90%"
-			:close-on-click-modal="false"
-			class="print-preview-dialog"
-		>
+		<el-dialog v-model="printPreviewVisible" title="鎵撳嵃棰勮" width="90%" :close-on-click-modal="false"
+			class="print-preview-dialog">
 			<div class="print-preview-container">
 				<div class="print-preview-header">
 					<el-button type="primary" @click="executePrint">鎵ц鎵撳嵃</el-button>
@@ -485,7 +445,8 @@
 					<div v-if="printData.length === 0" style="text-align: center; padding: 50px; color: #999;">
 						鏆傛棤鎵撳嵃鏁版嵁
 					</div>
-					<div v-else style="text-align: center; padding: 10px; color: #666; font-size: 14px; background: #e8f4fd; margin-bottom: 10px;">
+					<div v-else
+						style="text-align: center; padding: 10px; color: #666; font-size: 14px; background: #e8f4fd; margin-bottom: 10px;">
 						鍏� {{ printData.length }} 鏉℃暟鎹緟鎵撳嵃
 					</div>
 					<div v-for="(item, index) in printData" :key="index" class="print-page">
@@ -494,126 +455,120 @@
 								<div class="company-name">婀栧崡楣忓垱鐢靛瓙鏈夐檺鍏徃</div>
 								<div class="document-title">閫佽揣鍗�</div>
 							</div>
-							
+
 							<div class="info-section">
 								<div class="info-row">
-                  <div>
-                    <span class="label">瀹㈡埛鍚嶇О锛�</span>
-                    <span class="value">{{ item.customerName }}</span>
-                  </div>
-                  <div>
-                    <span class="label">閫佽揣鍦板潃锛�</span>
-                    <span class="value">{{ item.companyAddress }}</span>
-                  </div>
+									<div>
+										<span class="label">瀹㈡埛鍚嶇О锛�</span>
+										<span class="value">{{ item.customerName }}</span>
+									</div>
+									<div>
+										<span class="label">閫佽揣鍦板潃锛�</span>
+										<span class="value">{{ item.companyAddress }}</span>
+									</div>
 								</div>
 								<div class="info-row">
-                  <div>
-                    <span class="label">鍗曟嵁缂栧彿锛�</span>
-                    <span class="value">{{ item.salesContractNo }}</span>
-                  </div>
+									<div>
+										<span class="label">鍗曟嵁缂栧彿锛�</span>
+										<span class="value">{{ item.salesContractNo }}</span>
+									</div>
 
-                  <div>
-                    <span class="label">閫佽揣鏃ユ湡锛�</span>
-                    <span class="value">{{ formatDate(null) }}</span>
-                  </div>
+									<div>
+										<span class="label">閫佽揣鏃ユ湡锛�</span>
+										<span class="value">{{ formatDate(null) }}</span>
+									</div>
 
-                  <div>
-                    <span class="label">鑱旂郴鐢佃瘽锛�</span>
-                    <span class="value">{{ item.contactPhone }}</span>
-                  </div>
+									<div>
+										<span class="label">鑱旂郴鐢佃瘽锛�</span>
+										<span class="value">{{ item.contactPhone }}</span>
+									</div>
 								</div>
 							</div>
 
-              <div class="info-section">
-                <div class="info-row">
-                  <div>
-                    <span class="label">鑱旂郴鏂瑰紡锛�</span>
-                    <span class="value"></span>
-                  </div>
-                  <div>
-                    <span class="label">閫佽揣鍗曚綅锛�</span>
-                    <span class="value">婀栧崡楣忓垱鐢靛瓙鏈夐檺鍏徃</span>
-                  </div>
-                  <div>
-                    <span class="label">鍦板潃锛�</span>
-                    <span class="value">婀栧崡鑰掗槼甯傚垱鏂板垱涓氬洯A1鏍�</span>
-                  </div>
-                </div>
-              </div>
+							<div class="info-section">
+								<div class="info-row">
+									<div>
+										<span class="label">鑱旂郴鏂瑰紡锛�</span>
+										<span class="value"></span>
+									</div>
+									<div>
+										<span class="label">閫佽揣鍗曚綅锛�</span>
+										<span class="value">婀栧崡楣忓垱鐢靛瓙鏈夐檺鍏徃</span>
+									</div>
+									<div>
+										<span class="label">鍦板潃锛�</span>
+										<span class="value">婀栧崡鑰掗槼甯傚垱鏂板垱涓氬洯A1鏍�</span>
+									</div>
+								</div>
+							</div>
 
-              <span style="font-size: 16px;">璐х墿璇︾粏淇℃伅锛�</span>
+							<span style="font-size: 16px;">璐х墿璇︾粏淇℃伅锛�</span>
 							<div class="table-section">
 								<table class="product-table">
 									<thead>
-									<tr>
-										<th>搴忓彿</th>
-										<th>鏂欏彿</th>
-										<th>鍝佸悕/瑙勬牸</th>
-										<th>鍗曚綅</th>
-										<th>鏁伴噺</th>
-										<th>璁㈠崟鍙�</th>
-									</tr>
+										<tr>
+											<th>搴忓彿</th>
+											<th>鏂欏彿</th>
+											<th>鍝佸悕/瑙勬牸</th>
+											<th>鍗曚綅</th>
+											<th>鏁伴噺</th>
+											<th>璁㈠崟鍙�</th>
+										</tr>
 									</thead>
 									<tbody>
-									<tr v-for="(product, index) in item.products" :key="product.id">
-										<td>{{ index + 1 }}</td>
-										<td>{{ product.materialCode || '' }}</td>
-										<td>{{`${product.productCategory || ''}/${product.specificationModel || ''}` }}</td>
-										<td>{{ product.unit || '' }}</td>
-										<td>{{ product.quantity || '0' }}</td>
-										<td>{{ item.salesContractNo || '' }}</td>
-									</tr>
-									<tr v-if="!item.products || item.products.length === 0">
-										<td colspan="6" style="text-align: center; color: #999;">鏆傛棤浜у搧鏁版嵁</td>
-									</tr>
+										<tr v-for="(product, index) in item.products" :key="product.id">
+											<td>{{ index + 1 }}</td>
+											<td>{{ product.materialCode || '' }}</td>
+											<td>{{ `${product.productCategory || ''}/${product.specificationModel || ''}`
+												}}</td>
+											<td>{{ product.unit || '' }}</td>
+											<td>{{ product.quantity || '0' }}</td>
+											<td>{{ item.salesContractNo || '' }}</td>
+										</tr>
+										<tr v-if="!item.products || item.products.length === 0">
+											<td colspan="6" style="text-align: center; color: #999;">鏆傛棤浜у搧鏁版嵁</td>
+										</tr>
 									</tbody>
 									<tfoot>
-									<tr>
-										<td class="label"></td>
-										<td class="label">鍚堣</td>
-										<td class="total-value"></td>
-										<td class="total-value"></td>
-										<td class="total-value">{{ getTotalQuantity(item.products) }}</td>
-										<td class="total-value"></td>
-									</tr>
+										<tr>
+											<td class="label"></td>
+											<td class="label">鍚堣</td>
+											<td class="total-value"></td>
+											<td class="total-value"></td>
+											<td class="total-value">{{ getTotalQuantity(item.products) }}</td>
+											<td class="total-value"></td>
+										</tr>
 									</tfoot>
 								</table>
 
-                <div style="width: 30px;">
-                  鍏卞洓鑱斿瓨鏍瑰洖鍗曞鎴蜂粨搴�
-                </div>
+								<div style="width: 30px;">
+									鍏卞洓鑱斿瓨鏍瑰洖鍗曞鎴蜂粨搴�
+								</div>
 							</div>
 
-              <el-descriptions :column="1">
-                <el-descriptions-item label="澶囨敞锛�">璐靛叕鍙稿湪鏀惰揣鍚庤鍗冲埢鏍稿疄鏁伴噺鍙婂搧璐紝鑻ユ湁寮傝锛岃鍦�3鏃ュ唴鎻愬嚭锛屽惁鍒欒涓烘敹濡ャ��</el-descriptions-item>
-              </el-descriptions>
-              <el-descriptions :column="2">
-                <el-descriptions-item label="閫佽揣鍗曚綅锛堢绔狅級锛�"/>
-                <el-descriptions-item label="鏀惰揣鍗曚綅锛�"/>
-                <el-descriptions-item label="閫佽揣浜猴細"/>
-                <el-descriptions-item label="鏀惰揣浜猴細"/>
-              </el-descriptions>
+							<el-descriptions :column="1">
+								<el-descriptions-item
+									label="澶囨敞锛�">璐靛叕鍙稿湪鏀惰揣鍚庤鍗冲埢鏍稿疄鏁伴噺鍙婂搧璐紝鑻ユ湁寮傝锛岃鍦�3鏃ュ唴鎻愬嚭锛屽惁鍒欒涓烘敹濡ャ��</el-descriptions-item>
+							</el-descriptions>
+							<el-descriptions :column="2">
+								<el-descriptions-item label="閫佽揣鍗曚綅锛堢绔狅級锛�" />
+								<el-descriptions-item label="鏀惰揣鍗曚綅锛�" />
+								<el-descriptions-item label="閫佽揣浜猴細" />
+								<el-descriptions-item label="鏀惰揣浜猴細" />
+							</el-descriptions>
 						</div>
 					</div>
 				</div>
 			</div>
 		</el-dialog>
 		<!-- 鍙戣揣寮规 -->
-		<el-dialog
-			v-model="deliveryFormVisible"
-			title="鍙戣揣淇℃伅"
-		width="40%"
-			@close="closeDeliveryDia"
-		>
-			<el-form :model="deliveryForm" label-width="120px" label-position="top" :rules="deliveryRules" ref="deliveryFormRef">
+		<el-dialog v-model="deliveryFormVisible" title="鍙戣揣淇℃伅" width="40%" @close="closeDeliveryDia">
+			<el-form :model="deliveryForm" label-width="120px" label-position="top" :rules="deliveryRules"
+				ref="deliveryFormRef">
 				<el-row :gutter="30">
 					<el-col :span="24">
 						<el-form-item label="鍙戣揣绫诲瀷锛�" prop="type">
-							<el-select
-								v-model="deliveryForm.type"
-								placeholder="璇烽�夋嫨鍙戣揣绫诲瀷"
-								style="width: 100%"
-							>
+							<el-select v-model="deliveryForm.type" placeholder="璇烽�夋嫨鍙戣揣绫诲瀷" style="width: 100%">
 								<el-option label="璐ц溅" value="璐ц溅" />
 								<el-option label="蹇��" value="蹇��" />
 							</el-select>
@@ -621,50 +576,36 @@
 					</el-col>
 				</el-row>
 
-        <!-- 瀹℃壒浜洪�夋嫨锛堜豢鍗忓悓瀹℃壒閲岀殑瀹℃壒浜鸿妭鐐归�夋嫨锛� -->
-        <el-row>
-          <el-col :span="24">
-            <el-form-item>
-              <template #label>
-                <span>瀹℃壒浜洪�夋嫨锛�</span>
-                <el-button type="primary" @click="addApproverNode" style="margin-left: 8px;">鏂板鑺傜偣</el-button>
-              </template>
-              <div style="display: flex; align-items: flex-end; flex-wrap: wrap;">
-                <div
-                  v-for="(node, index) in approverNodes"
-                  :key="node.id"
-                  style="margin-right: 20px; text-align: center; margin-bottom: 10px;"
-                >
-                  <div>
-                    <span>瀹℃壒浜�</span>
-                    鈫�
-                  </div>
-                  <el-select
-                    v-model="node.userId"
-                    placeholder="閫夋嫨浜哄憳"
-                    filterable
-                    style="width: 140px; margin-bottom: 8px;"
-                  >
-                    <el-option
-                      v-for="user in userList"
-                      :key="user.userId"
-                      :label="user.nickName"
-                      :value="user.userId"
-                    />
-                  </el-select>
-                  <div>
-                    <el-button
-                      type="danger"
-                      size="small"
-                      @click="removeApproverNode(index)"
-                      v-if="approverNodes.length > 1"
-                    >鍒犻櫎</el-button>
-                  </div>
-                </div>
-              </div>
-            </el-form-item>
-          </el-col>
-        </el-row>
+				<!-- 瀹℃壒浜洪�夋嫨锛堜豢鍗忓悓瀹℃壒閲岀殑瀹℃壒浜鸿妭鐐归�夋嫨锛� -->
+				<el-row>
+					<el-col :span="24">
+						<el-form-item>
+							<template #label>
+								<span>瀹℃壒浜洪�夋嫨锛�</span>
+								<el-button type="primary" @click="addApproverNode"
+									style="margin-left: 8px;">鏂板鑺傜偣</el-button>
+							</template>
+							<div style="display: flex; align-items: flex-end; flex-wrap: wrap;">
+								<div v-for="(node, index) in approverNodes" :key="node.id"
+									style="margin-right: 20px; text-align: center; margin-bottom: 10px;">
+									<div>
+										<span>瀹℃壒浜�</span>
+										鈫�
+									</div>
+									<el-select v-model="node.userId" placeholder="閫夋嫨浜哄憳" filterable
+										style="width: 140px; margin-bottom: 8px;">
+										<el-option v-for="user in userList" :key="user.userId" :label="user.nickName"
+											:value="user.userId" />
+									</el-select>
+									<div>
+										<el-button type="danger" size="small" @click="removeApproverNode(index)"
+											v-if="approverNodes.length > 1">鍒犻櫎</el-button>
+									</div>
+								</div>
+							</div>
+						</el-form-item>
+					</el-col>
+				</el-row>
 			</el-form>
 			<template #footer>
 				<div class="dialog-footer">
@@ -679,7 +620,7 @@
 <script setup>
 import { getToken } from "@/utils/auth";
 import pagination from "@/components/PIMTable/Pagination.vue";
-import {onMounted, ref, getCurrentInstance} from "vue";
+import { onMounted, ref, getCurrentInstance } from "vue";
 import { addShippingInfo } from "@/api/salesManagement/deliveryLedger.js";
 import { ElMessageBox, ElMessage } from "element-plus";
 import { UploadFilled, Download } from "@element-plus/icons-vue";
@@ -739,7 +680,8 @@
 		customerId: "",
 		entryPerson: "",
 		entryDate: "",
-    deliveryDate: "",
+		deliveryDate: "",
+		produce: false,
 		maintenanceTime: "",
 		productData: [],
 		executionDate: "",
@@ -749,7 +691,7 @@
 		customerId: [{ required: true, message: "璇烽�夋嫨", trigger: "change" }],
 		entryPerson: [{ required: true, message: "璇烽�夋嫨", trigger: "change" }],
 		entryDate: [{ required: true, message: "璇烽�夋嫨", trigger: "change" }],
-    deliveryDate: [{ required: true, message: "璇烽�夋嫨", trigger: "change" }],
+		deliveryDate: [{ required: true, message: "璇烽�夋嫨", trigger: "change" }],
 		executionDate: [{ required: true, message: "璇烽�夋嫨", trigger: "change" }],
 	},
 });
@@ -763,7 +705,7 @@
 	productForm: {
 		productCategory: "",
 		specificationModel: "",
-    materialCode: "",
+		materialCode: "",
 		unit: "",
 		quantity: "",
 		taxInclusiveUnitPrice: "",
@@ -826,14 +768,14 @@
 const deliveryFormVisible = ref(false);
 const currentDeliveryRow = ref(null);
 const deliveryFormData = reactive({
-  deliveryForm: {
-    type: "璐ц溅", // 璐ц溅, 蹇��
-  },
-  deliveryRules: {
-    type: [
-      { required: true, message: "璇烽�夋嫨鍙戣揣绫诲瀷", trigger: "change" }
-    ]
-  },
+	deliveryForm: {
+		type: "璐ц溅", // 璐ц溅, 蹇��
+	},
+	deliveryRules: {
+		type: [
+			{ required: true, message: "璇烽�夋嫨鍙戣揣绫诲瀷", trigger: "change" }
+		]
+	},
 });
 const { deliveryForm, deliveryRules } = toRefs(deliveryFormData);
 
@@ -841,10 +783,10 @@
 const approverNodes = ref([{ id: 1, userId: null }]);
 let nextApproverId = 2;
 const addApproverNode = () => {
-  approverNodes.value.push({ id: nextApproverId++, userId: null });
+	approverNodes.value.push({ id: nextApproverId++, userId: null });
 };
 const removeApproverNode = (index) => {
-  approverNodes.value.splice(index, 1);
+	approverNodes.value.splice(index, 1);
 };
 
 // 瀵煎叆鐩稿叧
@@ -966,11 +908,11 @@
 	if (index !== -1) {
 		productForm.value.specificationModel = modelOptions.value[index].model;
 		productForm.value.unit = modelOptions.value[index].unit;
-    productForm.value.materialCode = modelOptions.value[index].materialCode;
+		productForm.value.materialCode = modelOptions.value[index].materialCode;
 	} else {
 		productForm.value.specificationModel = null;
 		productForm.value.unit = null;
-    productForm.value.materialCode = null;
+		productForm.value.materialCode = null;
 	}
 };
 const findNodeById = (nodes, productId) => {
@@ -997,7 +939,7 @@
 		if (children && children.length > 0) {
 			newItem.children = convertIdToValue(children);
 		}
-		
+
 		return newItem;
 	});
 }
@@ -1046,19 +988,19 @@
 
 // 娣诲姞琛ㄨ绫诲悕鏂规硶
 const tableRowClassName = ({ row }) => {
-  if (!row.deliveryDate) return '';
-  if (row.isFh) return '';
+	if (!row.deliveryDate) return '';
+	if (row.isFh) return '';
 
-  const diff = row.deliveryDaysDiff;
-  if (diff === 15) {
-    return 'yellow';
-  } else if (diff === 10) {
-    return 'pink';
-  } else if (diff === 2) {
-    return 'purple';
-  } else if (diff < 2) {
-    return 'red';
-  }
+	const diff = row.deliveryDaysDiff;
+	if (diff === 15) {
+		return 'yellow';
+	} else if (diff === 10) {
+		return 'pink';
+	} else if (diff === 2) {
+		return 'purple';
+	} else if (diff < 2) {
+		return 'red';
+	}
 };
 // 涓昏〃鍚堣鏂规硶
 const summarizeMainTable = (param) => {
@@ -1093,6 +1035,8 @@
 		form.value.entryDate = getCurrentDate();
 		// 绛捐鏃ユ湡榛樿涓哄綋澶�
 		form.value.executionDate = getCurrentDate();
+		// 鏄惁鐢熶骇榛樿涓哄惁
+		form.value.produce = false;
 	} else {
 		currentId.value = row.id;
 		getSalesLedgerWithProducts({ id: row.id, type: 1 }).then((res) => {
@@ -1166,10 +1110,10 @@
 const applyQuotation = (row) => {
 	if (!row) return;
 	selectedQuotation.value = row;
-	
+
 	// 涓氬姟鍛�
 	form.value.salesman = (row.salesperson || "").trim();
-	
+
 	// 瀹㈡埛鍚嶇О -> customerId
 	const qCustomerName = String(row.customer || "").trim();
 	const customer = (customerOption.value || []).find((c) => {
@@ -1182,7 +1126,7 @@
 		// 濡傛灉鎵句笉鍒帮紝淇濈暀鍘熷�硷紙鍏佽鐢ㄦ埛鎵嬪姩閫夋嫨/涓嶆墦鏂凡鏈夎緭鍏ワ級
 		form.value.customerId = form.value.customerId || "";
 	}
-	
+
 	// 浜у搧淇℃伅鏄犲皠锛氭姤浠� products -> 鍙拌处 productData
 	const products = Array.isArray(row.products) ? row.products : [];
 	productData.value = products.map((p) => {
@@ -1204,7 +1148,7 @@
 			invoiceType: "澧炴櫘绁�",
 		};
 	});
-	
+
 	quotationDialogVisible.value = false;
 };
 function changs(val) {
@@ -1285,7 +1229,7 @@
 		proxy.$modal.msgWarning("宸插彂璐ф垨瀹℃牳閫氳繃鐨勪骇鍝佷笉鑳界紪杈�");
 		return;
 	}
-	
+
 	productOperationType.value = type;
 	productForm.value = {};
 	proxy.resetForm("productFormRef");
@@ -1325,9 +1269,9 @@
 			if (operationType.value === "edit") {
 				submitProductEdit();
 			} else {
-				if(productOperationType.value === "add"){
+				if (productOperationType.value === "add") {
 					productData.value.push({ ...productForm.value });
-				}else{
+				} else {
 					productData.value[productIndex.value] = { ...productForm.value }
 				}
 				closeProductDia();
@@ -1352,14 +1296,14 @@
 		proxy.$modal.msgWarning("璇烽�夋嫨鏁版嵁");
 		return;
 	}
-	
+
 	// 妫�鏌ユ槸鍚︽湁宸插彂璐ф垨瀹℃牳閫氳繃鐨勪骇鍝�
 	const shippedProducts = productSelectedRows.value.filter(row => isProductShipped(row));
 	if (shippedProducts.length > 0) {
 		proxy.$modal.msgWarning("宸插彂璐ф垨瀹℃牳閫氳繃鐨勪骇鍝佷笉鑳藉垹闄�");
 		return;
 	}
-	
+
 	if (operationType.value === "add") {
 		productSelectedRows.value.forEach((selectedRow) => {
 			const index = productData.value.findIndex(
@@ -1505,25 +1449,25 @@
 		proxy.$modal.msgWarning("璇烽�夋嫨瑕佹墦鍗扮殑鏁版嵁");
 		return;
 	}
-	
+
 	// 鏄剧ず鍔犺浇鐘舵��
 	proxy.$modal.loading("姝e湪鑾峰彇浜у搧鏁版嵁锛岃绋嶅��...");
-	
+
 	try {
 		// 涓烘瘡涓�変腑鐨勯攢鍞彴璐﹁褰曟煡璇㈠搴旂殑浜у搧鏁版嵁
 		const printDataWithProducts = [];
-		
+
 		for (const row of selectedRows.value) {
 			try {
 				// 璋冪敤productList鎺ュ彛鏌ヨ浜у搧鏁版嵁
 				const productRes = await productList({ salesLedgerId: row.id, type: 1 });
-				
+
 				// 灏嗕骇鍝佹暟鎹暣鍚堝埌閿�鍞彴璐﹁褰曚腑
 				const rowWithProducts = {
 					...row,
 					products: productRes.data || []
 				};
-				
+
 				printDataWithProducts.push(rowWithProducts);
 			} catch (error) {
 				console.error(`鑾峰彇閿�鍞彴璐� ${row.id} 鐨勪骇鍝佹暟鎹け璐�:`, error);
@@ -1534,11 +1478,11 @@
 				});
 			}
 		}
-		
+
 		printData.value = printDataWithProducts;
 		console.log('鎵撳嵃鏁版嵁锛堝寘鍚骇鍝侊級:', printData.value);
 		printPreviewVisible.value = true;
-		
+
 	} catch (error) {
 		console.error('鑾峰彇浜у搧鏁版嵁澶辫触:', error);
 		proxy.$modal.msgError("鑾峰彇浜у搧鏁版嵁澶辫触锛岃閲嶈瘯");
@@ -1550,10 +1494,10 @@
 const executePrint = () => {
 	console.log('寮�濮嬫墽琛屾墦鍗帮紝鏁版嵁鏉℃暟:', printData.value.length);
 	console.log('鎵撳嵃鏁版嵁:', printData.value);
-	
+
 	// 鍒涘缓涓�涓柊鐨勬墦鍗扮獥鍙�
 	const printWindow = window.open('', '_blank', 'width=800,height=600');
-	
+
 	// 鏋勫缓鎵撳嵃鍐呭
 	let printContent = `
     <!DOCTYPE html>
@@ -1743,7 +1687,7 @@
     </head>
     <body>
   `;
-	
+
 	// 涓烘瘡鏉℃暟鎹敓鎴愭墦鍗伴〉闈�
 	printData.value.forEach((item, index) => {
 		printContent += `
@@ -1772,7 +1716,7 @@
 
                 <div>
                   <span class="label">閫佽揣鏃ユ湡锛�</span>
-                  <span class="value">${ formatDate(null)}</span>
+                  <span class="value">${formatDate(null)}</span>
                 </div>
 
                 <div>
@@ -1814,7 +1758,7 @@
               </thead>
                   <tbody>
                 ${item.products && item.products.length > 0 ?
-        item.products.map((product, index) => `
+				item.products.map((product, index) => `
                     <tr>
                       <td>${index + 1}</td>
                       <td>${product.materialCode || ''}</td>
@@ -1824,8 +1768,8 @@
                       <td>${item.salesContractNo || ''}</td>
                     </tr>
                   `).join('') :
-        '<tr><td colspan="6" style="text-align: center; color: #999;">鏆傛棤浜у搧鏁版嵁</td></tr>'
-    }
+				'<tr><td colspan="6" style="text-align: center; color: #999;">鏆傛棤浜у搧鏁版嵁</td></tr>'
+			}
               </tbody>
               <tfoot>
                 <tr>
@@ -1833,7 +1777,7 @@
                   <td class="label">鍚堣</td>
                   <td class="total-value"></td>
                   <td class="total-value"></td>
-                  <td class="total-value">${ getTotalQuantity(item.products) || '0'}</td>
+                  <td class="total-value">${getTotalQuantity(item.products) || '0'}</td>
                   <td class="total-value"></td>
                 </tr>
               </tfoot>
@@ -1873,16 +1817,16 @@
       </div>
     `;
 	});
-	
+
 	printContent += `
     </body>
     </html>
   `;
-	
+
 	// 鍐欏叆鍐呭鍒版柊绐楀彛
 	printWindow.document.write(printContent);
 	printWindow.document.close();
-	
+
 	// 绛夊緟鍐呭鍔犺浇瀹屾垚鍚庢墦鍗�
 	printWindow.onload = () => {
 		setTimeout(() => {
@@ -1974,19 +1918,19 @@
 // 鏍规嵁鍚◣鎬讳环璁$畻鍚◣鍗曚环鍜屾暟閲�
 const calculateFromTotalPrice = () => {
 	if (isCalculating.value) return;
-	
+
 	const totalPrice = parseFloat(productForm.value.taxInclusiveTotalPrice);
 	const quantity = parseFloat(productForm.value.quantity);
-	
+
 	if (!totalPrice || !quantity || quantity <= 0) {
 		return;
 	}
-	
+
 	isCalculating.value = true;
-	
+
 	// 璁$畻鍚◣鍗曚环 = 鍚◣鎬讳环 / 鏁伴噺
 	productForm.value.taxInclusiveUnitPrice = (totalPrice / quantity).toFixed(2);
-	
+
 	// 濡傛灉鏈夌◣鐜囷紝璁$畻涓嶅惈绋庢�讳环
 	if (productForm.value.taxRate) {
 		productForm.value.taxExclusiveTotalPrice =
@@ -1995,7 +1939,7 @@
 				productForm.value.taxRate
 			);
 	}
-	
+
 	isCalculating.value = false;
 };
 
@@ -2006,25 +1950,25 @@
 		return;
 	}
 	if (isCalculating.value) return;
-	
+
 	const exclusiveTotalPrice = parseFloat(productForm.value.taxExclusiveTotalPrice);
 	const quantity = parseFloat(productForm.value.quantity);
 	const taxRate = parseFloat(productForm.value.taxRate);
-	
+
 	if (!exclusiveTotalPrice || !quantity || quantity <= 0 || !taxRate) {
 		return;
 	}
-	
+
 	isCalculating.value = true;
-	
+
 	// 鍏堣绠楀惈绋庢�讳环 = 涓嶅惈绋庢�讳环 / (1 - 绋庣巼/100)
 	const taxRateDecimal = taxRate / 100;
 	const inclusiveTotalPrice = exclusiveTotalPrice / (1 - taxRateDecimal);
 	productForm.value.taxInclusiveTotalPrice = inclusiveTotalPrice.toFixed(2);
-	
+
 	// 璁$畻鍚◣鍗曚环 = 鍚◣鎬讳环 / 鏁伴噺
 	productForm.value.taxInclusiveUnitPrice = (inclusiveTotalPrice / quantity).toFixed(2);
-	
+
 	isCalculating.value = false;
 };
 
@@ -2035,19 +1979,19 @@
 		return;
 	}
 	if (isCalculating.value) return;
-	
+
 	const quantity = parseFloat(productForm.value.quantity);
 	const unitPrice = parseFloat(productForm.value.taxInclusiveUnitPrice);
-	
+
 	if (!quantity || quantity <= 0 || !unitPrice) {
 		return;
 	}
-	
+
 	isCalculating.value = true;
-	
+
 	// 璁$畻鍚◣鎬讳环
 	productForm.value.taxInclusiveTotalPrice = (unitPrice * quantity).toFixed(2);
-	
+
 	// 濡傛灉鏈夌◣鐜囷紝璁$畻涓嶅惈绋庢�讳环
 	if (productForm.value.taxRate) {
 		productForm.value.taxExclusiveTotalPrice =
@@ -2056,7 +2000,7 @@
 				productForm.value.taxRate
 			);
 	}
-	
+
 	isCalculating.value = false;
 };
 
@@ -2067,19 +2011,19 @@
 		return;
 	}
 	if (isCalculating.value) return;
-	
+
 	const quantity = parseFloat(productForm.value.quantity);
 	const unitPrice = parseFloat(productForm.value.taxInclusiveUnitPrice);
-	
+
 	if (!quantity || quantity <= 0 || !unitPrice) {
 		return;
 	}
-	
+
 	isCalculating.value = true;
-	
+
 	// 璁$畻鍚◣鎬讳环
 	productForm.value.taxInclusiveTotalPrice = (unitPrice * quantity).toFixed(2);
-	
+
 	// 濡傛灉鏈夌◣鐜囷紝璁$畻涓嶅惈绋庢�讳环
 	if (productForm.value.taxRate) {
 		productForm.value.taxExclusiveTotalPrice =
@@ -2088,7 +2032,7 @@
 				productForm.value.taxRate
 			);
 	}
-	
+
 	isCalculating.value = false;
 };
 
@@ -2099,23 +2043,23 @@
 		return;
 	}
 	if (isCalculating.value) return;
-	
+
 	const inclusiveTotalPrice = parseFloat(productForm.value.taxInclusiveTotalPrice);
 	const taxRate = parseFloat(productForm.value.taxRate);
-	
+
 	if (!inclusiveTotalPrice || !taxRate) {
 		return;
 	}
-	
+
 	isCalculating.value = true;
-	
+
 	// 璁$畻涓嶅惈绋庢�讳环
 	productForm.value.taxExclusiveTotalPrice =
 		proxy.calculateTaxExclusiveTotalPrice(
 			inclusiveTotalPrice,
 			taxRate
 		);
-	
+
 	isCalculating.value = false;
 };
 /**
@@ -2127,15 +2071,15 @@
 	if (row.shippingDate || row.shippingCarNumber) {
 		return '宸插彂璐�';
 	}
-	
+
 	// 鑾峰彇鍙戣揣鐘舵�佸瓧娈�
 	const status = row.shippingStatus;
-	
+
 	// 濡傛灉鐘舵�佷负绌烘垨鏈畾涔夛紝榛樿涓�"寰呭彂璐�"
 	if (status === null || status === undefined || status === '') {
 		return '寰呭彂璐�';
 	}
-	
+
 	// 鐘舵�佹槸瀛楃涓�
 	const statusStr = String(status).trim();
 	const statusTextMap = {
@@ -2158,15 +2102,15 @@
 	if (row.shippingDate || row.shippingCarNumber) {
 		return 'success';
 	}
-	
+
 	// 鑾峰彇鍙戣揣鐘舵�佸瓧娈�
 	const status = row.shippingStatus;
-	
+
 	// 濡傛灉鐘舵�佷负绌烘垨鏈畾涔夛紝榛樿涓虹伆鑹诧紙寰呭彂璐э級
 	if (status === null || status === undefined || status === '') {
 		return 'info';
 	}
-	
+
 	// 鐘舵�佹槸瀛楃涓�
 	const statusStr = String(status).trim();
 	const typeTextMap = {
@@ -2190,15 +2134,15 @@
 	if (row.approveStatus !== 1) {
 		return false;
 	}
-	
+
 	// 鑾峰彇鍙戣揣鐘舵��
 	const shippingStatus = row.shippingStatus;
-	
+
 	// 濡傛灉宸插彂璐э紙鏈夊彂璐ф棩鏈熸垨杞︾墝鍙凤級锛屼笉鑳藉啀娆″彂璐�
 	if (row.shippingDate || row.shippingCarNumber) {
 		return false;
 	}
-	
+
 	// 鍙戣揣鐘舵�佸繀椤绘槸"寰呭彂璐�"鎴�"瀹℃牳鎷掔粷"
 	const statusStr = shippingStatus ? String(shippingStatus).trim() : '';
 	return statusStr === '寰呭彂璐�' || statusStr === '瀹℃牳鎷掔粷';
@@ -2226,69 +2170,69 @@
 		proxy.$modal.msgWarning("鍙湁鍦ㄤ骇鍝佺姸鎬佹槸鍏呰冻锛屽彂璐х姸鎬佹槸寰呭彂璐ф垨瀹℃牳鎷掔粷鐨勬椂鍊欐墠鍙互鍙戣揣");
 		return;
 	}
-	
+
 	currentDeliveryRow.value = row;
-  deliveryForm.value = {
-    type: "璐ц溅",
-  };
-  // 閲嶇疆瀹℃壒浜鸿妭鐐癸紙榛樿涓�涓┖鑺傜偣锛�
-  approverNodes.value = [{ id: 1, userId: null }];
-  nextApproverId = 2;
+	deliveryForm.value = {
+		type: "璐ц溅",
+	};
+	// 閲嶇疆瀹℃壒浜鸿妭鐐癸紙榛樿涓�涓┖鑺傜偣锛�
+	approverNodes.value = [{ id: 1, userId: null }];
+	nextApproverId = 2;
 	deliveryFormVisible.value = true;
 };
 
 // 鎻愪氦鍙戣揣琛ㄥ崟
 const submitDelivery = () => {
-  proxy.$refs["deliveryFormRef"].validate((valid) => {
-    if (valid) {
-      // 瀹℃壒浜哄繀濉牎楠岋紙鎵�鏈夎妭鐐归兘瑕侀�変汉锛�
-      const hasEmptyApprover = approverNodes.value.some(node => !node.userId);
-      if (hasEmptyApprover) {
-        proxy.$modal.msgError("璇蜂负鎵�鏈夊鎵硅妭鐐归�夋嫨瀹℃壒浜猴紒");
-        return;
-      }
-      const approveUserIds = approverNodes.value.map(node => node.userId).join(",");
-      // 淇濆瓨褰撳墠灞曞紑鐨勮ID锛屼互渚垮彂璐у悗閲嶆柊鍔犺浇瀛愯〃鏍兼暟鎹�
-      const currentExpandedKeys = [...expandedRowKeys.value];
-      const salesLedgerId = currentDeliveryRow.value.salesLedgerId;
-      addShippingInfo({
-        salesLedgerId: salesLedgerId,
-        salesLedgerProductId: currentDeliveryRow.value.id,
-        type: deliveryForm.value.type,
+	proxy.$refs["deliveryFormRef"].validate((valid) => {
+		if (valid) {
+			// 瀹℃壒浜哄繀濉牎楠岋紙鎵�鏈夎妭鐐归兘瑕侀�変汉锛�
+			const hasEmptyApprover = approverNodes.value.some(node => !node.userId);
+			if (hasEmptyApprover) {
+				proxy.$modal.msgError("璇蜂负鎵�鏈夊鎵硅妭鐐归�夋嫨瀹℃壒浜猴紒");
+				return;
+			}
+			const approveUserIds = approverNodes.value.map(node => node.userId).join(",");
+			// 淇濆瓨褰撳墠灞曞紑鐨勮ID锛屼互渚垮彂璐у悗閲嶆柊鍔犺浇瀛愯〃鏍兼暟鎹�
+			const currentExpandedKeys = [...expandedRowKeys.value];
+			const salesLedgerId = currentDeliveryRow.value.salesLedgerId;
+			addShippingInfo({
+				salesLedgerId: salesLedgerId,
+				salesLedgerProductId: currentDeliveryRow.value.id,
+				type: deliveryForm.value.type,
 				approveUserIds,
-      })
-        .then(() => {
-          proxy.$modal.msgSuccess("鍙戣揣鎴愬姛");
-          closeDeliveryDia();
-          // 鍒锋柊涓昏〃鏁版嵁
-          getList().then(() => {
-            // 濡傛灉涔嬪墠鏈夊睍寮�鐨勮锛岄噸鏂板姞杞借繖浜涜鐨勫瓙琛ㄦ牸鏁版嵁
-            if (currentExpandedKeys.length > 0) {
-              // 浣跨敤 Promise.all 骞惰鍔犺浇鎵�鏈夊睍寮�琛岀殑瀛愯〃鏍兼暟鎹�
-              const loadPromises = currentExpandedKeys.map(ledgerId => {
-                return productList({ salesLedgerId: ledgerId, type: 1 }).then((res) => {
-                  const index = tableData.value.findIndex((item) => item.id === ledgerId);
-                  if (index > -1) {
-                    tableData.value[index].children = res.data;
-                  }
-                });
-              });
-              Promise.all(loadPromises).then(() => {
-                // 鎭㈠灞曞紑鐘舵��
-                expandedRowKeys.value = currentExpandedKeys;
-              });
-            }
-          });
-        })
-    }
-  });
+			})
+				.then(() => {
+					proxy.$modal.msgSuccess("鍙戣揣鎴愬姛");
+					closeDeliveryDia();
+					// 鍒锋柊涓昏〃鏁版嵁
+					getList().then(() => {
+						// 濡傛灉涔嬪墠鏈夊睍寮�鐨勮锛岄噸鏂板姞杞借繖浜涜鐨勫瓙琛ㄦ牸鏁版嵁
+						if (currentExpandedKeys.length > 0) {
+							// 浣跨敤 Promise.all 骞惰鍔犺浇鎵�鏈夊睍寮�琛岀殑瀛愯〃鏍兼暟鎹�
+							const loadPromises = currentExpandedKeys.map(ledgerId => {
+								return productList({ salesLedgerId: ledgerId, type: 1 }).then((res) => {
+									const index = tableData.value.findIndex((item) => item.id === ledgerId);
+									if (index > -1) {
+										tableData.value[index].children = res.data;
+									}
+								});
+							});
+							Promise.all(loadPromises).then(() => {
+								// 鎭㈠灞曞紑鐘舵��
+								expandedRowKeys.value = currentExpandedKeys;
+							});
+						}
+					});
+				})
+		}
+	});
 };
 
 // 鍏抽棴鍙戣揣寮规
 const closeDeliveryDia = () => {
-  proxy.resetForm("deliveryFormRef");
-  deliveryFormVisible.value = false;
-  currentDeliveryRow.value = null;
+	proxy.resetForm("deliveryFormRef");
+	deliveryFormVisible.value = false;
+	currentDeliveryRow.value = null;
 };
 const currentFactoryName = ref("");
 const getCurrentFactoryName = async () => {
@@ -2310,19 +2254,19 @@
 }
 
 ::v-deep .yellow {
-  background-color: #FAF0DE;
+	background-color: #FAF0DE;
 }
 
 ::v-deep .pink {
-  background-color: #FAE1DE;
+	background-color: #FAE1DE;
 }
 
 ::v-deep .red {
-  background-color: #FAE1DE;
+	background-color: #FAE1DE;
 }
 
-::v-deep .purple{
-  background-color: #F4DEFA;
+::v-deep .purple {
+	background-color: #F4DEFA;
 }
 
 .table_list {
@@ -2334,6 +2278,7 @@
 	justify-content: space-between;
 	margin-bottom: 10px;
 }
+
 .print-preview-dialog {
 	.el-dialog__body {
 		padding: 0;
@@ -2347,12 +2292,12 @@
 		padding: 15px;
 		border-bottom: 1px solid #e4e7ed;
 		text-align: center;
-		
+
 		.el-button {
 			margin: 0 10px;
 		}
 	}
-	
+
 	.print-preview-content {
 		padding: 20px;
 		background-color: #f5f5f5;
@@ -2384,13 +2329,13 @@
 .header {
 	text-align: center;
 	margin-bottom: 8px;
-	
+
 	.company-name {
 		font-size: 18px;
 		font-weight: bold;
 		margin-bottom: 4px;
 	}
-	
+
 	.document-title {
 		font-size: 16px;
 		font-weight: bold;
@@ -2402,16 +2347,16 @@
 	display: flex;
 	justify-content: space-between;
 	align-items: center;
-	
+
 	.info-row {
 		line-height: 20px;
-		
+
 		.label {
 			font-weight: bold;
 			width: 60px;
 			font-size: 14px;
 		}
-		
+
 		.value {
 			margin-right: 20px;
 			min-width: 80px;
@@ -2423,30 +2368,31 @@
 .table-section {
 	margin-bottom: 4px;
 	flex: 1;
-  display: flex;
-	
+	display: flex;
+
 	.product-table {
 		width: 100%;
 		border-collapse: collapse;
 		border: 1px solid #000;
-		
-		th, td {
+
+		th,
+		td {
 			border: 1px solid #000;
 			padding: 6px;
 			text-align: center;
 			font-size: 14px;
 			line-height: 1.4;
 		}
-		
+
 		th {
 			font-weight: bold;
 		}
-		
+
 		.total-label {
 			text-align: right;
 			font-weight: bold;
 		}
-		
+
 		.total-value {
 			font-weight: bold;
 		}
@@ -2459,24 +2405,24 @@
 		margin-bottom: 3px;
 		line-height: 20px;
 		justify-content: flex-start;
-		
+
 		.footer-item {
 			display: flex;
-      align-items: center;
+			align-items: center;
 			margin-right: 20px;
 
 			.label {
 				font-weight: bold;
-        white-space: nowrap;
-        margin-right: 10px;
+				white-space: nowrap;
+				margin-right: 10px;
 				font-size: 14px;
 			}
-			
+
 			.value {
 				min-width: 300px;
 				font-size: 14px;
 			}
-			
+
 			&.address-item {
 				.address-value {
 					min-width: 200px;
@@ -2490,7 +2436,7 @@
 	.app-container {
 		display: none;
 	}
-	
+
 	.print-page {
 		box-shadow: none;
 		margin: 0;
@@ -2499,6 +2445,7 @@
 		page-break-inside: avoid;
 		page-break-after: always;
 	}
+
 	.print-page:last-child {
 		page-break-after: avoid;
 	}

--
Gitblit v1.9.3