From 9e7c8d26cfbe9eca1f0d0e1302581832e3b7d22a Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期四, 26 十一月 2026 09:35:44 +0800
Subject: [PATCH] Merge branch 'master' of http://116.62.18.175:6699/r/~yxh/opo-web

---
 src/views/project/fund/performancedetails/index.vue |   70 ++++++++++++++++++++++++++---------
 1 files changed, 52 insertions(+), 18 deletions(-)

diff --git a/src/views/project/fund/performancedetails/index.vue b/src/views/project/fund/performancedetails/index.vue
index e9358a6..597d9b8 100644
--- a/src/views/project/fund/performancedetails/index.vue
+++ b/src/views/project/fund/performancedetails/index.vue
@@ -235,43 +235,52 @@
             </el-table-column> -->
             <el-table-column
               prop="amount"
-              align="center"
+              align="right"
+              header-align="right"
+              class-name="money-column"
               label="绋庡墠閲戦"
               width="120"
-            >
+             :formatter="formatMoney">
               <template slot-scope="scope">
                 <el-input
                   v-model="scope.row.amount"
+                  class="money-input"
                   placeholder="绋庡墠閲戦"
-                  @blur="chargeSum"
+                  @blur="normalizeMoney(scope.row, 'amount'); chargeSum()"
                 />
               </template>
             </el-table-column>
             <el-table-column
               prop="taxamount"
-              align="center"
+              align="right"
+              header-align="right"
+              class-name="money-column"
               label="鍔冲姟涓◣"
               width="120"
-            >
+             :formatter="formatMoney">
               <template slot-scope="scope">
                 <el-input
-                  @blur="chargeSum"
+                  @blur="normalizeMoney(scope.row, 'taxamount'); chargeSum()"
                   v-model="scope.row.taxamount"
-                  placeholder="鍔冲姟涓◣"
+                  class="money-input"
+                  placeholder="涓◣"
                 />
               </template>
             </el-table-column>
             <el-table-column
               prop="taxedamount"
-              align="center"
-              label="鍔冲姟绋庡悗"
+              align="right"
+              header-align="right"
+              class-name="money-column"
+              label="绋庡悗閲戦"
               width="120"
-            >
+             :formatter="formatMoney">
               <template slot-scope="scope">
                 <el-input
                   v-model="scope.row.taxedamount"
-                  placeholder="鍔冲姟绋庡悗"
-                  @blur="queenchargeSum"
+                  class="money-input"
+                  placeholder="绋庡悗閲戦"
+                  @blur="normalizeMoney(scope.row, 'taxedamount'); queenchargeSum()"
                 />
               </template>
             </el-table-column>
@@ -2801,14 +2810,30 @@
       this.showSelectionDialog = false;
     },
     handleUploadError() {},
+    /** 2026-11-23锛氭寜鏂囦欢鍚嶄粠鍒楄〃涓簿纭垹闄や竴椤癸紝閬垮厤鐢ㄩ瑙堝垪琛�(blob)鏁磋〃瑕嗙洊闄勪欢瀛楁 */
+    spliceByName(list, name) {
+      if (!list || !name) {
+        return;
+      }
+      const idx = list.findIndex(item => item && item.name === name);
+      if (idx > -1) {
+        list.splice(idx, 1);
+      }
+    },
     remove(file, fileList) {
       const rbDetails = [...this.rbDetails];
       if (this.activeName == 1) {
-        this.fileListto.splice(this.fileListto.indexOf(file), 1);
-        rbDetails[this.atpresent].annexfilesList = this.fileListto;
+        this.spliceByName(this.fileListto, file && file.name);
+        this.spliceByName(
+          rbDetails[this.atpresent].annexfilesList,
+          file && file.name
+        );
       } else {
-        this.invoicefileListto.splice(this.invoicefileListto.indexOf(file), 1);
-        rbDetails[this.atpresent].invoicefilesList = this.invoicefileListto;
+        this.spliceByName(this.invoicefileListto, file && file.name);
+        this.spliceByName(
+          rbDetails[this.atpresent].invoicefilesList,
+          file && file.name
+        );
       }
     },
     // 鑾峰彇璇锋眰澶�
@@ -2821,9 +2846,16 @@
      * 瑙勫垯涓庡悗绔� AttachmentNameValidator 鍚屽彛寰勶細涓嶅己鍒跺惈涓枃 / 鍘绘帀鎵╁睍鍚嶅悗涓诲共 鈮�20 瀛� /
      * 涓嶅惈绌烘牸鍙� / \ : * ? " < > | # % 绛夌壒娈婂瓧绗︺��
      */
+    /**
+     * 2026-11-17锛氶檮浠跺悕鏄惁蹇呴』鍚腑鏂�
+     * 涓撳鍔冲姟璐�(1)銆佷鸡鐞嗕笓瀹惰垂(2) 涓嶈姹傦紱缁╂晥鍙婂叾浠栫被鍨嬪繀椤诲惈涓枃
+     */
+    requireChineseName() {
+      return !(this.businessType == "1" || this.businessType == "2");
+    },
     checkUploadFileName(file) {
       const raw = file && file.raw ? file.raw.name : file && file.name;
-      const r = checkFileName(raw);
+      const r = checkFileName(raw, { requireChinese: this.requireChineseName() });
       if (!r.ok) {
         this.$modal.msgError(r.msg);
         return false;
@@ -2841,7 +2873,9 @@
       if (this.form && this.form.id) {
         return true;
       }
-      const c = checkDetails(this.rbDetails);
+      const c = checkDetails(this.rbDetails, {
+        requireChinese: this.requireChineseName()
+      });
       if (!c.ok) {
         this.$modal.msgError(c.msg);
         return false;

--
Gitblit v1.9.3