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,19 +205,12 @@
        </template>
      </el-table-column>
      
      <el-table-column label="回款日期" width="120" align="center">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.organtime, "{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="payOrganName"
        label="器官名称-结算"
        width="140"
        align="center"
        show-overflow-tooltip
      />
      <el-table-column prop="name" label="受体" width="120" align="center" />
      <el-table-column
        prop="organchargedesc"
        label="备注"
@@ -292,11 +285,11 @@
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="(结算)器官名称" prop="payOrganName">
            <el-form-item label="器官名称" prop="organname">
              <el-input
                v-model="editForm.payOrganName"
                v-model="editForm.organname"
                maxlength="100"
                placeholder="请输入(结算)器官名称"
                placeholder="请输入器官名称"
              />
            </el-form-item>
          </el-col>
@@ -343,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>
@@ -487,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>
@@ -570,6 +565,7 @@
    organState: null,
    organcharge: null,
    amount: null,
    amounttime: null,
    organtime: null,
    organchargedesc: null
  };
@@ -609,7 +605,8 @@
        { value: "4", label: "失功" },
        { value: "5", label: "直系免除" },
        { value: "6", label: "不良事件" },
        { value: "7", label: "科研" }
        { value: "7", label: "科研" },
        { value: "8", label: "回纳" }
      ],
      // 修改弹窗
      editOpen: false,
@@ -618,13 +615,15 @@
        id: null,
        hospitalno: null,
        hospitalname: null,
        payOrganName: null,
        organname: null,
        caseno: null,
        name: null,
        organcharge: null,
        amount: null,
        amount: null,
        amounttime: null,
        organState: null,
        organchargedesc: null,
        receiveTime: null,
        organtime: null
      },
      // 新增弹窗
@@ -813,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,
@@ -872,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 = {
@@ -881,7 +895,7 @@
            ? null
            : String(row.hospitalno),
        hospitalname: row.hospitalname || null,
        payOrganName: row.payOrganName || "",
        organname: row.organname ,
        caseno: row.caseno || "",
        name: row.name || "",
        organcharge:
@@ -895,7 +909,8 @@
            ? null
            : String(row.organState),
        organchargedesc: row.organchargedesc || "",
        organtime: row.organtime
        organtime: row.organtime,
        receiveTime: this.toDateTimeStr(row.receiveTime)
      };
      this.editOpen = true;
    },