From 39b2b67a94947f5dca9fa52ae4a2e561bf3e2576 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 03 三月 2026 09:50:27 +0800
Subject: [PATCH] 公司 1.商机管理添加字段合同金额与付款描述字段,以及其他字段优化修改

---
 src/views/salesManagement/opportunityManagement/index.vue |   82 +++++++++++++++++++++++++++++++++-------
 1 files changed, 67 insertions(+), 15 deletions(-)

diff --git a/src/views/salesManagement/opportunityManagement/index.vue b/src/views/salesManagement/opportunityManagement/index.vue
index 888a9ac..dc95edf 100644
--- a/src/views/salesManagement/opportunityManagement/index.vue
+++ b/src/views/salesManagement/opportunityManagement/index.vue
@@ -200,15 +200,40 @@
           </el-select>
         </el-form-item>
         
-        <el-form-item label="瀹㈡埛鍚嶇О" prop="customerName">
-          <el-select v-model="form.customerName" placeholder="璇烽�夋嫨" clearable :disabled="operationType === 'detail' || operationType === 'addOperation'">
-            <el-option v-for="item in customerOption" :key="item.customerName" :label="item.customerName" :value="item.customerName">
-              {{
-                item.customerName + "鈥斺��" + item.taxpayerIdentificationNumber
-              }}
-            </el-option>
-          </el-select>
-        </el-form-item>
+        <el-row :gutter="20">
+          <el-col :span="12">
+            <el-form-item label="瀹㈡埛鍚嶇О" prop="customerName">
+              <el-select
+                v-model="form.customerName"
+                placeholder="璇烽�夋嫨"
+                clearable
+                style="width: 100%"
+                :disabled="operationType === 'detail' || operationType === 'addOperation'"
+              >
+                <el-option
+                  v-for="item in customerOption"
+                  :key="item.customerName"
+                  :label="item.customerName"
+                  :value="item.customerName"
+                >
+                  {{
+                    item.customerName + "鈥斺��" + item.taxpayerIdentificationNumber
+                  }}
+                </el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="鍟嗘満鏉ユ簮" prop="businessSource">
+              <el-input
+                v-model="form.businessSource"
+                placeholder="璇疯緭鍏ュ晢鏈烘潵婧�"
+                clearable
+                :disabled="operationType === 'detail' || operationType === 'addOperation'"
+              />
+            </el-form-item>
+          </el-col>
+        </el-row>
         
         <el-row :gutter="20">
           <el-col :span="12">
@@ -244,17 +269,36 @@
           </el-col>
         </el-row>
         
-        <el-form-item label="鍟嗘満鏉ユ簮" prop="businessSource">
-          <el-input v-model="form.businessSource" placeholder="璇疯緭鍏ュ晢鏈烘潵婧�" :disabled="operationType === 'detail' || operationType === 'addOperation'" />
+        <el-form-item label="鍚堝悓閲戦" prop="contractAmount">
+          <el-input
+            v-model="form.contractAmount"
+            placeholder="璇疯緭鍏ュ悎鍚岄噾棰�"
+            clearable
+            :disabled="operationType === 'detail' || operationType === 'addOperation'"
+          >
+            <template #append>鍏�</template>
+          </el-input>
         </el-form-item>
         
-        <el-form-item label="瀹㈡埛鎻忚堪" prop="description" v-if="operationType !== 'detail'">
+        <el-form-item label="鏀归�犲唴瀹�" prop="description">
           <el-input
             v-model="form.description"
             type="textarea"
-            :rows="3"
-            placeholder="璇疯緭鍏ュ鎴锋弿杩�"
+            :autosize="{ minRows: 4, maxRows: 10 }"
+            :placeholder="renovationPlaceholder"
             show-word-limit
+            :disabled="operationType === 'detail'"
+          />
+        </el-form-item>
+
+        <el-form-item label="浠樻鎻忚堪" prop="paymentDescription">
+          <el-input
+            v-model="form.paymentDescription"
+            type="textarea"
+            :autosize="{ minRows: 3, maxRows: 10 }"
+            placeholder="鏄惁鍨祫锛熶紒涓氭槸鍚﹀紑绁紵浼佷笟鏄惁鍒嗚ˉ璐存垨棰濆鍑洪挶锛�"
+            show-word-limit
+            :disabled="operationType === 'detail'"
           />
         </el-form-item>
         
@@ -340,7 +384,7 @@
                   </el-tag>
                 </div>
                 <div class="description-change" v-if="record.description">
-                  <span class="label">瀹㈡埛鎻忚堪锛�</span>
+                  <span class="label">鏀归�犲唴瀹癸細</span>
                   <span class="description-text">{{ record.description }}</span>
                 </div>
               </div>
@@ -430,10 +474,14 @@
   customerScale: '',
   mainProducts: '',
   businessSource: '',
+  contractAmount: '',
   description: '',
+  paymentDescription: '',
   entryPerson: userStore.nickName,
   entryDate: dayjs().format('YYYY-MM-DD')
 })
+
+const renovationPlaceholder = '1.鏍囧噯鍖栵細\n2.瀹氬埗鍖栵細\n3.澶栭噰锛�'
 
 // 鍙樻洿璁板綍鏁版嵁锛堟ā鎷熸暟鎹級
 const changeHistory = ref([])
@@ -637,6 +685,7 @@
     // 淇濈暀鍘熷鍟嗘満ID锛岀敤浜庡叧鑱旀搷浣滆褰�
     status: row.status,
     description: '', // 娓呯┖瀹㈡埛鎻忚堪锛屽厑璁搁噸鏂板~鍐�
+    paymentDescription: '', // 娓呯┖浠樻鎻忚堪锛屽厑璁搁噸鏂板~鍐�
     entryPerson: userStore.nickName, // 璁剧疆褰曞叆浜轰负褰撳墠璐﹀彿
     entryDate: dayjs().format('YYYY-MM-DD') // 璁剧疆褰曞叆鏃堕棿涓哄綋澶�
   })
@@ -780,6 +829,7 @@
         submitData = {
           status: form.status,
           description: form.description,
+          paymentDescription: form.paymentDescription,
           entryPerson: form.entryPerson,
           entryDate: form.entryDate,
           tempFileIds: tempFileIds,
@@ -857,7 +907,9 @@
     customerScale: '',
     mainProducts: '',
     businessSource: '',
+    contractAmount: '',
     description: '',
+    paymentDescription: '',
     entryPerson: userStore.nickName,
     entryDate: dayjs().format('YYYY-MM-DD')
   })

--
Gitblit v1.9.3