yxh
yxh
9 天以前 8171fac4d00c3dcbb33d82043ef4a5923694aec4
src/views/project/tallage/computingBill/index.vue
@@ -1268,11 +1268,24 @@
      return sums;
    },
    // 文件------------------------
    /** 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 donorchargeorgans = [...this.donorchargeorgans];
      this.fileListto.splice(this.fileListto.indexOf(file), 1);
      donorchargeorgans[this.atpresent].annexFilesList = this.fileListto;
      this.spliceByName(this.fileListto, file && file.name);
      this.spliceByName(
        donorchargeorgans[this.atpresent].annexFilesList,
        file && file.name
      );
    },
    uploadSccess(response, file, fileList) {