From 58916670fe54367e9c9350596fb293787b73b425 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期一, 23 三月 2026 18:00:36 +0800
Subject: [PATCH] Merge branch 'dev_银川_中盛建材' of http://114.132.189.42:9002/r/product-inventory-management into dev_银川_中盛建材
---
src/views/productionManagement/productStructure/Detail/index.vue | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/src/views/productionManagement/productStructure/Detail/index.vue b/src/views/productionManagement/productStructure/Detail/index.vue
index ae76ed4..252c8fc 100644
--- a/src/views/productionManagement/productStructure/Detail/index.vue
+++ b/src/views/productionManagement/productStructure/Detail/index.vue
@@ -117,6 +117,21 @@
</el-form-item>
</template>
</el-table-column>
+ <el-table-column prop="unitPrice"
+ label="鍗曚环">
+ <template #default="{ row, $index }">
+ <el-form-item v-if="dataValue.isEdit"
+ :rules="[{ required: true, message: '璇疯緭鍏ュ崟浠�', trigger: ['blur','change'] }]"
+ style="margin: 0">
+ <el-input-number v-model="row.unitPrice"
+ :min="0"
+ :step="1"
+ controls-position="right"
+ style="width: 100%"
+ :disabled="!dataValue.isEdit" />
+ </el-form-item>
+ </template>
+ </el-table-column>
<el-table-column label="鎿嶄綔"
fixed="right"
width="200">
@@ -344,6 +359,11 @@
isValid = false;
return;
}
+ if (!item.unitPrice) {
+ ElMessage.error("璇疯緭鍏ュ崟浠�");
+ isValid = false;
+ return;
+ }
if (isOrderPage.value && !item.demandedQuantity) {
ElMessage.error("璇疯緭鍏ラ渶姹傛�婚噺");
isValid = false;
@@ -439,6 +459,7 @@
processId: "",
processName: "",
unitQuantity: 0,
+ unitPrice: 0,
demandedQuantity: 0,
unit: "",
children: [],
@@ -461,6 +482,7 @@
processId: "",
processName: "",
unitQuantity: 0,
+ unitPrice: 0,
demandedQuantity: 0,
unit: "",
children: [],
@@ -487,6 +509,7 @@
productModelId: undefined,
processId: "",
unitQuantity: 0,
+ unitPrice: 0,
demandedQuantity: 0,
children: [],
unit: "",
--
Gitblit v1.9.3