From a0bee2b2dc61a4c4ca860fcbb34f7848b30fef99 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 26 十一月 2025 17:18:20 +0800
Subject: [PATCH] 1.湟水峡-生产派单逻辑修改联调

---
 src/views/productionManagement/productionOrder/index.vue                    |    2 +-
 src/views/productionManagement/productionDispatching/components/formDia.vue |   27 +++++++++++++--------------
 src/views/productionManagement/productionDispatching/index.vue              |    9 ++++-----
 3 files changed, 18 insertions(+), 20 deletions(-)

diff --git a/src/views/productionManagement/productionDispatching/components/formDia.vue b/src/views/productionManagement/productionDispatching/components/formDia.vue
index a60f751..509bc80 100644
--- a/src/views/productionManagement/productionDispatching/components/formDia.vue
+++ b/src/views/productionManagement/productionDispatching/components/formDia.vue
@@ -8,31 +8,29 @@
     >
       <el-form :model="form" label-width="140px" label-position="top" :rules="rules" ref="formRef">
         <el-row :gutter="30">
-          <el-col :span="12">
-            <el-form-item label="椤圭洰鍚嶇О锛�" prop="projectName">
-              <el-input v-model="form.projectName" placeholder="璇疯緭鍏�" clearable disabled/>
-            </el-form-item>
-          </el-col>
+<!--          <el-col :span="12">-->
+<!--            <el-form-item label="椤圭洰鍚嶇О锛�" prop="projectName">-->
+<!--              <el-input v-model="form.projectName" placeholder="璇疯緭鍏�" clearable disabled/>-->
+<!--            </el-form-item>-->
+<!--          </el-col>-->
           <el-col :span="12">
             <el-form-item label="浜у搧澶х被锛�" prop="productCategory">
               <el-input v-model="form.productCategory" placeholder="璇疯緭鍏�" clearable disabled/>
             </el-form-item>
           </el-col>
+					<el-col :span="12">
+						<el-form-item label="鎬绘暟閲忥細" prop="quantity">
+							<el-input v-model="form.quantity" placeholder="璇疯緭鍏�" clearable disabled/>
+						</el-form-item>
+					</el-col>
         </el-row>
         <el-row :gutter="30">
-          <el-col :span="12">
-            <el-form-item label="鎬绘暟閲忥細" prop="quantity">
-              <el-input v-model="form.quantity" placeholder="璇疯緭鍏�" clearable disabled/>
-            </el-form-item>
-          </el-col>
           <el-col :span="12">
 						<el-form-item label="寰呮帓浜ф暟閲忥細" prop="pendingQuantity">
 							<el-input v-model="form.pendingQuantity" placeholder="璇疯緭鍏�" clearable disabled/>
 						</el-form-item>
           </el-col>
-        </el-row>
-        <el-row :gutter="30">
-          <el-col :span="12">
+					<el-col :span="12">
 						<el-form-item label="鏈鎺掍骇鏁伴噺锛�" prop="schedulingNum">
 							<el-input-number
 								v-model="form.schedulingNum"
@@ -45,7 +43,7 @@
 								style="width: 100%"
 							/>
 						</el-form-item>
-          </el-col>
+					</el-col>
         </el-row>
         <el-row :gutter="30">
 					<el-col :span="12">
@@ -145,6 +143,7 @@
 const submitForm = () => {
   proxy.$refs.formRef.validate(valid => {
     if (valid) {
+			form.value.salesLedgerProductId = form.value.id
 			productionDispatch(form.value).then(res => {
 				proxy.$modal.msgSuccess("鎻愪氦鎴愬姛");
 				closeDia();
diff --git a/src/views/productionManagement/productionDispatching/index.vue b/src/views/productionManagement/productionDispatching/index.vue
index b7052c7..a97c407 100644
--- a/src/views/productionManagement/productionDispatching/index.vue
+++ b/src/views/productionManagement/productionDispatching/index.vue
@@ -50,7 +50,6 @@
 <script setup>
 import {onMounted, ref} from "vue";
 import FormDia from "@/views/productionManagement/productionDispatching/components/formDia.vue";
-import dayjs from "dayjs";
 import {schedulingListPage} from "@/api/productionManagement/productionOrder.js";
 import { ElMessageBox } from "element-plus";
 
@@ -80,7 +79,7 @@
 	},
 	{
 		label: "褰曞叆鏃ユ湡",
-		prop: "entryDate",
+		prop: "registerDate",
 	},
 	{
 		label: "鏁伴噺",
@@ -135,11 +134,11 @@
 	schedulingListPage(params).then((res) => {
 		tableLoading.value = false;
 		// 澶勭悊姣忔潯鏁版嵁锛屽鍔爌endingQuantity瀛楁
-		tableData.value = res.data.records.map(item => ({
+		tableData.value = res.data.data.records.map(item => ({
 			...item,
 			pendingQuantity: (Number(item.quantity) || 0) - (Number(item.schedulingNum) || 0)
 		}));
-		page.total = res.data.total;
+		page.total = res.data.data.total;
 	}).catch(() => {
 		tableLoading.value = false;
 	})
@@ -172,7 +171,7 @@
 		type: "warning",
 	})
 		.then(() => {
-			proxy.download("/salesLedger/scheduling/exportOne", {}, "鐢熶骇娲惧伐.xlsx");
+			proxy.download("/productionOrder/exportOne", {}, "鐢熶骇娲惧伐.xlsx");
 		})
 		.catch(() => {
 			proxy.$modal.msg("宸插彇娑�");
diff --git a/src/views/productionManagement/productionOrder/index.vue b/src/views/productionManagement/productionOrder/index.vue
index 6a8d627..8b093ff 100644
--- a/src/views/productionManagement/productionOrder/index.vue
+++ b/src/views/productionManagement/productionOrder/index.vue
@@ -431,7 +431,7 @@
 		type: "warning",
 	})
 		.then(() => {
-			proxy.download("/salesLedger/scheduling/export", {}, "鐢熶骇璁㈠崟.xlsx");
+			proxy.download("/productionOrder/export", {}, "鐢熶骇璁㈠崟.xlsx");
 		})
 		.catch(() => {
 			proxy.$modal.msg("宸插彇娑�");

--
Gitblit v1.9.3