qinxianzhangyao
2023-10-19 ceb611ede1ca3988d731adffee433a1a7bcd442b
src/views/hosp/settlement/index.vue
@@ -12,27 +12,27 @@
    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-edit" size="mini" @click="handleUpdate" v-hasPermi="['hosp:water:edit']">统计</el-button>
        <el-button type="primary" icon="el-icon-edit" size="mini" @click="handleUpdate">统计</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-check" size="mini" @click="handlesettle" :disabled="discode === 200 ? true : false" v-hasPermi="['hosp:water:export']" >结账</el-button>
        <el-button type="primary" icon="el-icon-check" size="mini" @click="handlesettle" :disabled="discode === 200 ? true : false"  >结账</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" size="mini" v-hasPermi="['hosp:water:remove']" @click="handleabout">日结查询</el-button>
        <el-button type="primary" size="mini"  @click="handleabout">日结查询</el-button>
      </el-col>
    </el-row>
    <el-table :data="dataList" border style="width: 75%">
      <el-table-column label="姓名" align="center" prop="cusName" width="140px" :show-overflow-tooltip="true"/>
      <el-table-column label="订单流水号" align="center" prop="waterId" width="149px" :show-overflow-tooltip="true"/>
      <el-table-column label="应收金额" align="center" prop="copeWith" width="90px" :show-overflow-tooltip="true"/>
      <el-table-column label="折扣" align="center" prop="discount" width="90px" :show-overflow-tooltip="true"/>
      <el-table-column label="实收金额" align="center" prop="paidIn" width="90px" :show-overflow-tooltip="true"/>
      <el-table-column label="付款状态" align="center" prop="payStasus" width="100px" :show-overflow-tooltip="true"/>
      <el-table-column label="付款方式" align="center" prop="payType" width="100px" :show-overflow-tooltip="true"/>
      <el-table-column label="收费员" align="center" prop="updateBy" width="140px" :show-overflow-tooltip="true"/>
      <el-table-column label="收费时间" align="center" prop="updateTime" width="180px" :show-overflow-tooltip="true"/>
      <el-table-column label="退费时间" align="center" prop="refundTime" width="180px" :show-overflow-tooltip="true"/>
      <el-table-column label="姓名" align="center" prop="cusName" width="91px" />
      <el-table-column label="订单流水号" align="center" prop="waterId" width="186px" />
      <el-table-column label="应收金额" align="center" prop="copeWith" width="90px" />
      <el-table-column label="折扣" align="center" prop="discount" width="90px" />
      <el-table-column label="实收金额" align="center" prop="paidIn" width="90px" />
      <el-table-column label="付款状态" align="center" prop="payStasus" width="100px" />
      <el-table-column label="付款方式" align="center" prop="payType" width="100px" />
      <el-table-column label="收费员" align="center" prop="updateBy" width="140px"/>
      <el-table-column label="收费时间" align="center" prop="updateTime" width="180px"/>
      <el-table-column label="退费时间" align="center" prop="refundTime" width="200px" />
    </el-table>
    <div class="pag">
@@ -145,39 +145,6 @@
          ];
        }
      });
      // listWater(this.queryParams).then(response => {
      //   this.waterList = response.rows;
      //   for (let i = 0; i < response.rows.length; i++) {
      //     response.rows[i].nweID = i + 1;
      //   }
      //   this.total = response.total;
      //   this.loading = false;
      // });
      // getDaily().then(res => {
      //   this.tableData = res.data.list
      //   this.tableData.forEach(item => {
      //     if (item.payStasus == "0") {
      //       item.payStasus = "未付款"
      //     } else if (item.payStasus == "1") {
      //       item.payStasus = "已付款"
      //     } else {
      //       item.payStasus = "退费"
      //     }
      //     if (item.payType == "0") {
      //       item.payType = "现金"
      //     } else if (item.payType == "1") {
      //       item.payType = "刷卡"
      //     } else if (item.payType == "2") {
      //       item.payType = "支付宝"
      //     } else if (item.payType == "3") {
      //       item.payType = "微信"
      //     } else {
      //       item.payType = "云闪付"
      //     }
      //   })
      //   this.loading = false;
      // })
    },
    /** 统计 */