From 6f7e7ae5db4d7d451bde80e285fb0e9896569172 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 11 十月 2025 13:23:15 +0800
Subject: [PATCH] 生产明细采购单价改为采购总价
---
src/views/production/components/ProductionDetailsTable.vue | 36 +++++++++++++++++++++++++++++++++---
1 files changed, 33 insertions(+), 3 deletions(-)
diff --git a/src/views/production/components/ProductionDetailsTable.vue b/src/views/production/components/ProductionDetailsTable.vue
index 48308f4..e017a4d 100644
--- a/src/views/production/components/ProductionDetailsTable.vue
+++ b/src/views/production/components/ProductionDetailsTable.vue
@@ -1,5 +1,24 @@
<template>
<el-table :data="tableData" :border="border" style="width: 100%">
+ <el-table-column label="鐓ゆ枡绫诲瀷" min-width="120">
+ <template #default="{ row, $index }">
+ <el-select
+ clearable
+ v-model="row.type"
+ placeholder="璇烽�夋嫨鐓ゆ枡绫诲瀷"
+ filterable
+ :key="`coalId-select-${$index}-${typeList.length}`"
+ :disabled="isViewMode"
+ >
+ <el-option
+ v-for="(item, index) of typeList"
+ :key="`option-${index}-${item.value}`"
+ :label="item.label"
+ :value="item.value"
+ />
+ </el-select>
+ </template>
+ </el-table-column>
<el-table-column label="鐓ょ" min-width="120">
<template #default="{ row, $index }">
<el-select
@@ -83,11 +102,11 @@
</template>
</el-table-column>
- <el-table-column label="閲囪喘鍗曚环" min-width="120">
+ <el-table-column label="閲囪喘鎬讳环" min-width="120">
<template #default="{ row, $index }">
<el-input
v-model="row.purchasePrice"
- placeholder="璇疯緭鍏ラ噰璐崟浠�"
+ placeholder="璇疯緭鍏ラ噰璐�讳环"
type="number"
@input="handleInput('purchasePrice', $index, $event)"
:disabled="isViewMode"
@@ -140,7 +159,7 @@
label="鎿嶄綔"
width="120"
fixed="right"
- v-if="dialogType !== 'viewRow'"
+ v-if="dialogType === 'add'"
>
<template #default="{ $index }">
<el-button
@@ -164,6 +183,16 @@
import {getCoalInfoList} from "@/api/production";
import {userListAll} from "@/api/publicApi";
+const typeList = [
+ {
+ label: "鎴愬搧",
+ value: 1,
+ },
+ {
+ label: "鍘熸枡",
+ value: 2,
+ }
+ ]
const props = defineProps({
modelValue: {
type: Array,
@@ -387,6 +416,7 @@
purchasePrice: "",
totalCost: "",
producerId: "",
+ type: 1,
...rowData,
};
tableData.value = [...tableData.value, defaultRow];
--
Gitblit v1.9.3