From 210cc5e18506e265951c73052b2756940bd71f47 Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期四, 14 五月 2026 13:46:17 +0800
Subject: [PATCH] 生产计划新增调整
---
src/views/productionPlan/productionPlan/index.vue | 90 ++++++++++++++++++++++++--------------------
1 files changed, 49 insertions(+), 41 deletions(-)
diff --git a/src/views/productionPlan/productionPlan/index.vue b/src/views/productionPlan/productionPlan/index.vue
index 6bcc7b2..e07c212 100644
--- a/src/views/productionPlan/productionPlan/index.vue
+++ b/src/views/productionPlan/productionPlan/index.vue
@@ -303,46 +303,49 @@
{
label: "涓荤敓浜ц鍒掑彿",
prop: "mpsNo",
- width: "150px",
+ minWidth: "150px",
+ align: "center",
},
- {
- label: "鏉ユ簮",
- prop: "source",
- width: "150px",
- dataType: "tag",
- formatType: params => {
- return params == "閿�鍞�" ? "primary" : "info";
- },
- formatData: params => {
- return params == "閿�鍞�" ? "閿�鍞�" : "鍐呴儴";
- },
- },
-
+ // {
+ // label: "鏉ユ簮",
+ // prop: "source",
+ // width: "150px",
+ // dataType: "tag",
+ // formatType: params => {
+ // return params == "閿�鍞�" ? "primary" : "info";
+ // },
+ // formatData: params => {
+ // return params == "閿�鍞�" ? "閿�鍞�" : "鍐呴儴";
+ // },
+ // },
{
label: "浜у搧鍚嶇О",
prop: "productName",
- width: "200px",
+ minWidth: "200px",
dataType: "tag",
formatType: params => {
return "primary";
},
+ align: "center",
},
{
label: "浜у搧瑙勬牸",
prop: "model",
- width: "150px",
+ minWidth: "150px",
className: "spec-cell",
+ align: "center",
},
{
label: "鍗曚綅",
prop: "unit",
width: "100px",
+ align: "center",
},
{
label: "鎵�闇�鏁伴噺",
prop: "qtyRequired",
- width: "150px",
- align: "right",
+ minWidth: "150px",
+ align: "center",
dataType: "slot",
slot: "qtyRequired",
className: "volume-cell",
@@ -369,49 +372,54 @@
};
return statusMap[cell] || "";
},
+ align: "center",
},
{
label: "宸蹭笅鍙戞暟閲�",
prop: "quantityIssued",
- width: "120px",
+ minWidth: "120px",
className: "spec-cell",
+ align: "center",
// formatData: (cell, row) => (cell ? `${cell}${row.unit || "鏂�"}` : 0),
},
{
label: "闇�姹傛棩鏈�",
prop: "requiredDate",
- width: "160px",
+ minWidth: "160px",
className: "date-cell",
formatData: cell => (cell ? dayjs(cell).format("YYYY-MM-DD") : ""),
+ align: "center",
},
{
label: "鎵胯鏃ユ湡",
prop: "promisedDeliveryDate",
- width: "160px",
+ minWidth: "160px",
className: "date-cell",
formatData: cell => (cell ? dayjs(cell).format("YYYY-MM-DD") : ""),
+ align: "center",
},
- {
- label: "閿�鍞悎鍚屽彿",
- prop: "salesContractNo",
- width: "200px",
- dataType: "slot",
- slot: "salesContractNo",
- },
- {
- label: "瀹㈡埛鍚嶇О",
- prop: "customerName",
- width: "150px",
- },
- {
- label: "椤圭洰鍚嶇О",
- prop: "projectName",
- width: "150px",
- },
+ // {
+ // label: "閿�鍞悎鍚屽彿",
+ // prop: "salesContractNo",
+ // width: "200px",
+ // dataType: "slot",
+ // slot: "salesContractNo",
+ // },
+ // {
+ // label: "瀹㈡埛鍚嶇О",
+ // prop: "customerName",
+ // width: "150px",
+ // },
+ // {
+ // label: "椤圭洰鍚嶇О",
+ // prop: "projectName",
+ // width: "150px",
+ // },
{
label: "澶囨敞",
- width: "150px",
+ minWidth: "150px",
prop: "remark",
+ align: "center",
},
{
dataType: "action",
@@ -441,13 +449,13 @@
mergeForm.productName = row.productName || "";
mergeForm.model = row.model || "";
mergeForm.totalAssignedQuantity =
- Number(row.qtyRequired || 0) - Number(row.quantityIssued || 0);
+ Number(row.qtyRequired || 0) - Number(row.quantityIssued || 0);
mergeForm.planCompleteTime = row.requiredDate || "";
mergeForm.productId = row.productId || "";
mergeForm.ids = [row.id];
mergeForm.workshopId = row.workshopId ?? undefined;
sumAssignedQuantity.value =
- Number(row.qtyRequired || 0) - Number(row.quantityIssued || 0);
+ Number(row.qtyRequired || 0) - Number(row.quantityIssued || 0);
isShowNewModal.value = true;
},
},
--
Gitblit v1.9.3