| | |
| | | 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> |
| | |
| | | <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" /> |
| | |
| | | updateCustomer, |
| | | getHistryTjOrderByCusIdCard |
| | | } from "@/api/hosp/customer"; |
| | | import { getPdf } from "@/api/hosp/order"; |
| | | import { getPdf ,addCustomerBlack} from "@/api/hosp/order"; |
| | | |
| | | export default { |
| | | name: "Customer", |
| | |
| | | }) |
| | | }, |
| | | |
| | | 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() |