yxh
3 天以前 1c9ee4095d176ac8a361c44b43399e2b42a480e5
src/views/project/unitCost/organfee/index.vue
@@ -155,13 +155,13 @@
      <el-table-column
        prop="donorname"
        label="捐献者"
        width="120"
        width="100"
        align="center"
      />
      <el-table-column
        prop="organname"
        label="器官名称"
        width="120"
        width="100"
        align="center"
      />
      
@@ -171,7 +171,7 @@
        align="center"
        show-overflow-tooltip
      />   
      <el-table-column label="利用状态" width="120" align="center">
      <el-table-column label="利用状态" width="100" align="center">
        <template slot-scope="scope">
          <span>{{ selectOrganState(scope.row.organState) }}</span>
        </template>
@@ -179,16 +179,16 @@
       <el-table-column
        prop="hospitalname"
        label="回款医院"
        width="200"
        width="240"
        align="center"
      />
      <el-table-column
        prop="organcharge"
        label="应收金额"
        width="120"
        width="100"
        align="center"
      />
      <el-table-column label="回款状态" width="100" align="center">
      <el-table-column label="回款状态" width="80" align="center">
        <template slot-scope="scope">
          <span>{{ payStatus(scope.row) }}</span>
        </template>
@@ -199,7 +199,7 @@
        width="120"
        align="center"
      />
      <el-table-column label="未回款金额" width="160" align="center">
      <el-table-column label="未回款金额" width="100" align="center">
        <template slot-scope="scope">
          <span>{{ formatReceivableDiff(scope.row) }}</span>
        </template>
@@ -210,7 +210,7 @@
          <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="90" align="center" />
      <el-table-column
        prop="organchargedesc"
        label="备注"
@@ -265,6 +265,27 @@
    >
      <el-form ref="editForm" :model="editForm" label-width="110px">
        <el-row :gutter="20">
           <el-col :span="12">
            <el-form-item label="捐献者" prop="donorname">
              <el-input
                v-model="editForm.donorname"
                maxlength="50"
                placeholder="请输入捐献者"
              />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="捐献日期" prop="donationtime">
              <el-date-picker
                v-model="editForm.donationtime"
                type="datetime"
                format="yyyy-MM-dd"
                value-format="yyyy-MM-dd HH:mm"
                placeholder="请选择捐献日期"
                style="width: 100%"
              />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="回款医院" prop="hospitalno">
              <el-select
@@ -312,6 +333,22 @@
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="利用状态" prop="organState">
              <el-select
                v-model="editForm.organState"
                placeholder="请选择器官利用状态"
                style="width: 100%"
              >
                <el-option
                  v-for="item in organStateList"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="应收金额" prop="organcharge">
              <el-input-number
                v-model="editForm.organcharge"
@@ -346,23 +383,20 @@
                style="width: 100%"
              />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="利用状态" prop="organState">
              <el-select
                v-model="editForm.organState"
                placeholder="请选择器官利用状态"
          </el-col>
          <!-- <el-col :span="12">
            <el-form-item label="收款日期" prop="amounttime">
              <el-date-picker
                v-model="editForm.amounttime"
                type="datetime"
                format="yyyy-MM-dd HH:mm"
                value-format="yyyy-MM-dd HH:mm"
                placeholder="请选择收款日期"
                style="width: 100%"
              >
                <el-option
                  v-for="item in organStateList"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                />
              </el-select>
              />
            </el-form-item>
          </el-col>
          </el-col> -->
          <el-col :span="24">
            <el-form-item label="备注" prop="organchargedesc">
              <el-input
@@ -406,6 +440,18 @@
                v-model="addForm.donorname"
                maxlength="50"
                placeholder="请输入捐献者"
              />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="捐献日期" prop="donationtime">
              <el-date-picker
                v-model="addForm.donationtime"
                type="datetime"
                format="yyyy-MM-dd"
                value-format="yyyy-MM-dd HH:mm"
                placeholder="请选择捐献日期"
                style="width: 100%"
              />
            </el-form-item>
          </el-col>
@@ -479,8 +525,8 @@
                />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
          </el-col>
          <!-- <el-col :span="12">
            <el-form-item label="回款日期" prop="amounttime">
              <el-date-picker
                v-model="addForm.amounttime"
@@ -491,7 +537,7 @@
                style="width: 100%"
              />
            </el-form-item>
          </el-col>
          </el-col> -->
          <el-col :span="12">
            <el-form-item label="应收金额" prop="organcharge">
              <el-input-number
@@ -565,6 +611,7 @@
    organState: null,
    organcharge: null,
    amount: null,
    donationtime: null,
    amounttime: null,
    organtime: null,
    organchargedesc: null
@@ -615,6 +662,7 @@
        id: null,
        hospitalno: null,
        hospitalname: null,
        donorname: null,
        organname: null,
        caseno: null,
        name: null,
@@ -623,6 +671,7 @@
        amounttime: null,
        organState: null,
        organchargedesc: null,
        donationtime: null,
        receiveTime: null,
        organtime: null
      },
@@ -812,7 +861,6 @@
        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
@@ -833,7 +881,8 @@
            : row.organcharge,
        amount:
          row.amount === null || row.amount === undefined ? null : row.amount,
        organtime: row.organtime || null,
        amounttime: this.toDateTimeStr(row.amounttime),
        donationtime: this.toDateTimeStr(row.donationtime),
        organchargedesc: row.organchargedesc || null
      };
      this.addOpen = true;
@@ -910,7 +959,10 @@
            : String(row.organState),
        organchargedesc: row.organchargedesc || "",
        organtime: row.organtime,
        receiveTime: this.toDateTimeStr(row.receiveTime)
        receiveTime: this.toDateTimeStr(row.receiveTime),
        amounttime: this.toDateTimeStr(row.amounttime),
        donationtime: this.toDateTimeStr(row.donationtime),
        donorname: row.donorname
      };
      this.editOpen = true;
    },