qinxianzhangyao
2024-05-20 edb5616505a118523882a83f53f00e88d03bd373
src/views/hosp/customer/index.vue
@@ -99,6 +99,16 @@
          v-hasPermi="['hosp:customer:remove']">删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="primary"
          size="mini"
          @click="handleBlacklist"
          :disabled="single"
          v-hasPermi="['hosp:order:export']"
          >加入黑名单</el-button
        >
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-download" size="mini" @click="handleExport"
          v-hasPermi="['hosp:customer:export']">导出</el-button>
      </el-col>
@@ -142,6 +152,11 @@
      <el-table-column label="VIP" align="center" prop="cusIsvip" width="55px" :show-overflow-tooltip="true">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.sys_yes_no" :value="scope.row.cusIsvip" />
        </template>
      </el-table-column>
      <el-table-column label="黑名单" align="center" prop="isBlack" width="76px" >
        <template slot-scope="scope">
          <dict-tag :options="dict.type.sys_yes_no" :value="scope.row.isBlack" />
        </template>
      </el-table-column>
      <el-table-column label="索引卡号" align="center" prop="indexCard" :show-overflow-tooltip="true" />
@@ -340,7 +355,7 @@
  updateCustomer,
  getHistryTjOrderByCusIdCard
} from "@/api/hosp/customer";
import { getPdf } from "@/api/hosp/order";
import { getPdf ,addCustomerBlack} from "@/api/hosp/order";
export default {
  name: "Customer",
@@ -551,6 +566,16 @@
      })
    },
    handleBlacklist(){
      let data ={
        cusId :this.ids[0]
      }
      addCustomerBlack(data).then(res => {
        this.$modal.msgSuccess("已加入黑名单")
        this.getList();
      })
    },
    selectChargeRule(val) {
      if (val.length > 1) {
        this.$refs.selectChargeRuleRef.clearSelection()