From bf4cd4ee46b87410e82734c22f8d9d1cfe2fd364 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期四, 16 四月 2026 10:32:30 +0800
Subject: [PATCH] 指标统计:发货率改为“回款率”,销售额改为“合同金额”

---
 src/views/productionManagement/productionProcess/Edit.vue |   66 +++++++++++++++++++++++++++++++--
 1 files changed, 62 insertions(+), 4 deletions(-)

diff --git a/src/views/productionManagement/productionProcess/Edit.vue b/src/views/productionManagement/productionProcess/Edit.vue
index 31e3109..3d35f7c 100644
--- a/src/views/productionManagement/productionProcess/Edit.vue
+++ b/src/views/productionManagement/productionProcess/Edit.vue
@@ -2,18 +2,18 @@
   <div>
     <el-dialog
         v-model="isShow"
-        title="缂栬緫宸ュ簭"
+        title="缂栬緫閮ㄤ欢"
         width="400"
         @close="closeModal"
     >
       <el-form label-width="140px" :model="formState" label-position="top" ref="formRef">
         <el-form-item
-            label="宸ュ簭鍚嶇О锛�"
+            label="閮ㄤ欢锛�"
             prop="name"
             :rules="[
                 {
                 required: true,
-                message: '璇疯緭鍏ュ伐搴忓悕绉�',
+                message: '璇疯緭鍏ラ儴浠�',
               },
               {
                 max: 100,
@@ -22,8 +22,33 @@
             ]">
           <el-input v-model="formState.name" />
         </el-form-item>
+        <el-form-item label="閮ㄤ欢缂栧彿" prop="no">
+          <el-input v-model="formState.no"  />
+        </el-form-item>
+        <el-form-item
+            label="閮ㄤ欢绫诲瀷"
+            prop="type"
+            :rules="[
+                {
+                required: true,
+                message: '璇烽�夋嫨閮ㄤ欢绫诲瀷',
+              }
+            ]"
+        >
+          <el-select v-model="formState.type" placeholder="璇烽�夋嫨閮ㄤ欢绫诲瀷">
+            <el-option label="鍔犲伐" :value="1" />
+            <el-option label="鍒澘鍐疯姱鍒朵綔" :value="2" />
+            <el-option label="绠¤矾缁勫" :value="3" />
+            <el-option label="缃愪綋杩炴帴鍙婅皟璇�" :value="4" />
+            <el-option label="娴嬭瘯鎵撳帇" :value="5" />
+            <el-option label="鍏朵粬" :value="6" />
+          </el-select>
+        </el-form-item>
         <el-form-item label="宸ヨ祫瀹氶" prop="salaryQuota">
           <el-input v-model="formState.salaryQuota" type="number" :step="0.001" />
+        </el-form-item>
+        <el-form-item label="鏄惁璐ㄦ" prop="isQuality">
+          <el-switch v-model="formState.isQuality" :active-value="true" inactive-value="false"/>
         </el-form-item>
         <el-form-item label="澶囨敞" prop="remark">
           <el-input v-model="formState.remark" type="textarea" />
@@ -40,7 +65,7 @@
 </template>
 
 <script setup>
-import { ref, computed, getCurrentInstance } from "vue";
+import { ref, computed, getCurrentInstance, watch } from "vue";
 import {update} from "@/api/productionManagement/productionProcess.js";
 
 const props = defineProps({
@@ -61,8 +86,11 @@
 const formState = ref({
   id: props.record.id,
   name: props.record.name,
+  type: props.record.type,
+  no: props.record.no,
   remark: props.record.remark,
   salaryQuota: props.record.salaryQuota,
+  isQuality: props.record.isQuality,
 });
 
 const isShow = computed({
@@ -74,6 +102,36 @@
   },
 });
 
+// 鐩戝惉 record 鍙樺寲锛屾洿鏂拌〃鍗曟暟鎹�
+watch(() => props.record, (newRecord) => {
+  if (newRecord && isShow.value) {
+    formState.value = {
+      id: newRecord.id,
+      name: newRecord.name || '',
+      no: newRecord.no || '',
+      type: newRecord.type,
+      remark: newRecord.remark || '',
+      salaryQuota: newRecord.salaryQuota || '',
+      isQuality: props.record.isQuality,
+    };
+  }
+}, { immediate: true, deep: true });
+
+// 鐩戝惉寮圭獥鎵撳紑锛岄噸鏂板垵濮嬪寲琛ㄥ崟鏁版嵁
+watch(() => props.visible, (visible) => {
+  if (visible && props.record) {
+    formState.value = {
+      id: props.record.id,
+      name: props.record.name || '',
+      no: props.record.no || '',
+      type: props.record.type,
+      remark: props.record.remark || '',
+      salaryQuota: props.record.salaryQuota || '',
+      isQuality: props.record.isQuality,
+    };
+  }
+});
+
 let { proxy } = getCurrentInstance()
 
 const closeModal = () => {

--
Gitblit v1.9.3