yxh
3 天以前 45d4fe24016c03fcccbe7c9798533ca97e2e7aea
src/views/project/unitCost/organfee/index.vue
@@ -142,13 +142,13 @@
    >
      <el-table-column type="index" label="序号" width="55" align="center" />
      <el-table-column
        prop="donatetime"
        prop="donationtime"
        label="捐献日期"
        width="120"
        align="center"
      >
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.donatetime, "{y}-{m}-{d}") }}</span>
          <span>{{ parseTime(scope.row.donationtime, "{y}-{m}-{d}") }}</span>
        </template>
      </el-table-column>
      
@@ -205,14 +205,12 @@
        </template>
      </el-table-column>
      
      <el-table-column label="回款日期" width="120" align="center">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.amounttime, "{y}-{m}-{d}") }}</span>
      <el-table-column label="回款日期" width="120" align="center"  prop="receiveTime">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.receiveTime, "{y}-{m}-{d}") }}</span>
        </template>
      </el-table-column>
      <el-table-column prop="name" label="受体" width="120" align="center" />
      <el-table-column prop="name" label="受体" width="120" align="center" />
      <el-table-column
        prop="organchargedesc"
        label="备注"
@@ -338,12 +336,13 @@
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="收款日期" prop="organtime">
            <el-form-item label="回款日期" prop="receiveTime">
              <el-date-picker
                v-model="editForm.organtime"
                v-model="editForm.receiveTime"
                type="date"
                value-format="yyyy-MM-dd"
                placeholder="请选择收款日期"
                format="yyyy-MM-dd"
                value-format="yyyy-MM-dd HH:mm"
                placeholder="请选择回款日期"
                style="width: 100%"
              />
            </el-form-item>
@@ -482,12 +481,13 @@
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="收款日期" prop="organtime">
            <el-form-item label="回款日期" prop="amounttime">
              <el-date-picker
                v-model="addForm.organtime"
                v-model="addForm.amounttime"
                type="date"
                value-format="yyyy-MM-dd"
                placeholder="请选择收款日期"
                format="yyyy-MM-dd"
                value-format="yyyy-MM-dd HH:mm"
                placeholder="请选择回款日期"
                style="width: 100%"
              />
            </el-form-item>
@@ -565,6 +565,7 @@
    organState: null,
    organcharge: null,
    amount: null,
    amounttime: null,
    organtime: null,
    organchargedesc: null
  };
@@ -618,9 +619,11 @@
        caseno: null,
        name: null,
        organcharge: null,
        amount: null,
        amount: null,
        amounttime: null,
        organState: null,
        organchargedesc: null,
        receiveTime: null,
        organtime: null
      },
      // 新增弹窗
@@ -809,12 +812,14 @@
        infoid:
          row.infoid === null || row.infoid === undefined ? null : row.infoid,
        donorname: row.donorname || null,
        donationtime: row.donationtime || null,
        hospitalno:
          row.hospitalno === null || row.hospitalno === undefined
            ? null
            : String(row.hospitalno),
        hospitalname: row.hospitalname || null,
        organname: row.organname || null,
        organno: row.organno || null,
        payOrganName: row.payOrganName || null,
        caseno: row.caseno || null,
        name: row.name || null,
@@ -868,6 +873,19 @@
          });
      });
    },
    /**
     * 2026-12-03:把接口返回的日期值统一规整为 yyyy-MM-dd HH:mm。
     * 后端全局 Jackson 配置把 Date 出参统一成 "yyyy-MM-dd HH:mm"(JacksonDateConfig),
     * 而历史接口/其他模块也可能返回 "yyyy-MM-dd"、ISO、时间戳,
     * 统一在这里转一次,保证 date-picker(value-format="yyyy-MM-dd HH:mm")能正确回显。
     */
    toDateTimeStr(value) {
      if (!value) {
        return null;
      }
      const m = this.$moment(value);
      return m.isValid() ? m.format("YYYY-MM-DD HH:mm") : null;
    },
    /** 打开修改弹窗(回款医院、付款器官名称、金额、利用状态、备注) */
    handleEdit(row) {
      this.editForm = {
@@ -891,7 +909,8 @@
            ? null
            : String(row.organState),
        organchargedesc: row.organchargedesc || "",
        organtime: row.organtime
        organtime: row.organtime,
        receiveTime: this.toDateTimeStr(row.receiveTime)
      };
      this.editOpen = true;
    },