From e705ef7b15c04307d6f37b388564dedfaeef4a55 Mon Sep 17 00:00:00 2001
From: 张诺 <zhang_12370@163.com>
Date: 星期二, 21 四月 2026 15:27:09 +0800
Subject: [PATCH] 阳光彩印web 生产报工的机台展示

---
 src/views/procurementManagement/priceManagement/index.vue |   19 ++++++++-----------
 1 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/src/views/procurementManagement/priceManagement/index.vue b/src/views/procurementManagement/priceManagement/index.vue
index 12f785b..1b1b188 100644
--- a/src/views/procurementManagement/priceManagement/index.vue
+++ b/src/views/procurementManagement/priceManagement/index.vue
@@ -34,15 +34,15 @@
         <el-table-column label="瑙勬牸鍨嬪彿" prop="specification" />
         <el-table-column label="渚涘簲鍟嗗悕绉�" prop="supplierName" />
         <el-table-column label="鍘熶环鏍�" prop="oldPrice" width="120">
-          <template #default="{ row }">楼{{ row.oldPrice.toFixed(2) }}</template>
+          <template #default="{ row }">楼{{ row.oldPrice.toFixed(3) }}</template>
         </el-table-column>
         <el-table-column label="鏂颁环鏍�" prop="newPrice" width="120">
-          <template #default="{ row }">楼{{ row.newPrice.toFixed(2) }}</template>
+          <template #default="{ row }">楼{{ row.newPrice.toFixed(3) }}</template>
         </el-table-column>
         <el-table-column label="璋冧环骞呭害" prop="priceChange" width="120">
           <template #default="{ row }">
             <span :style="{ color: row.priceChange >= 0 ? '#f56c6c' : '#67c23a' }">
-              {{ row.priceChange >= 0 ? '+' : '' }}{{ row.priceChange.toFixed(2) }}%
+              {{ row.priceChange >= 0 ? '+' : '' }}{{ row.priceChange.toFixed(3) }}%
             </span>
           </template>
         </el-table-column>
@@ -62,7 +62,7 @@
       </el-table>
     </el-card>
 
-    <el-dialog v-model="dialogVisible" :title="dialogType === 'add' ? '鏂板浠锋牸' : '缂栬緫浠锋牸'" width="600px">
+    <FormDialog v-model="dialogVisible" :title="dialogType === 'add' ? '鏂板浠锋牸' : '缂栬緫浠锋牸'" :width="'600px'" :operation-type="dialogType" @close="dialogVisible = false" @confirm="handleSubmit" @cancel="dialogVisible = false">
       <el-form :model="formData" label-width="120px">
         <el-form-item label="鍟嗗搧鍚嶇О">
           <el-select v-model="formData.productName" placeholder="璇烽�夋嫨鍟嗗搧" style="width: 100%">
@@ -102,15 +102,12 @@
           <el-input v-model="formData.remark" type="textarea" :rows="3" placeholder="璇疯緭鍏ュ娉ㄤ俊鎭�" />
         </el-form-item>
       </el-form>
-      <template #footer>
-        <el-button @click="dialogVisible = false">鍙栨秷</el-button>
-        <el-button type="primary" @click="handleSubmit">纭畾</el-button>
-      </template>
-    </el-dialog>
+    </FormDialog>
   </div>
 </template>
 
 <script setup>
+import FormDialog from '@/components/Dialog/FormDialog.vue';
 import { ref, reactive, computed } from 'vue'
 import { ElMessage, ElMessageBox } from 'element-plus'
 
@@ -145,7 +142,7 @@
     oldPrice: 50.00,
     newPrice: 55.00,
     priceChange: 10.00,
-    effectiveTime: '2024-12-01 00:00:00',
+    effectiveTime: '2025-12-01 00:00:00',
     status: 'active',
     reason: '甯傚満浠锋牸鍙樺姩',
     remark: '甯傚満浠锋牸涓婃定'
@@ -158,7 +155,7 @@
     oldPrice: 80.00,
     newPrice: 75.00,
     priceChange: -6.25,
-    effectiveTime: '2024-12-01 00:00:00',
+    effectiveTime: '2025-12-01 00:00:00',
     status: 'active',
     reason: '鎴愭湰鍙樺寲',
     remark: '鎴愭湰涓嬮檷'

--
Gitblit v1.9.3