From edb5616505a118523882a83f53f00e88d03bd373 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期一, 20 五月 2024 12:07:51 +0800 Subject: [PATCH] qxtj --- src/views/hosp/customer/index.vue | 27 ++++++++++++++++++++++++++- 1 files changed, 26 insertions(+), 1 deletions(-) diff --git a/src/views/hosp/customer/index.vue b/src/views/hosp/customer/index.vue index 086c560..52f5760 100644 --- a/src/views/hosp/customer/index.vue +++ b/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() -- Gitblit v1.8.0