From 8debaf556ec55b74ef338d714ad013415eda208f Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期五, 21 六月 2024 17:29:34 +0800
Subject: [PATCH] su

---
 src/views/hosp/customer/index.vue |   29 +++++++++++++++++++++++++++--
 1 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/src/views/hosp/customer/index.vue b/src/views/hosp/customer/index.vue
index 086c560..6f45569 100644
--- a/src/views/hosp/customer/index.vue
+++ b/src/views/hosp/customer/index.vue
@@ -80,7 +80,7 @@
         </el-select>
       </el-form-item>
       <el-form-item>
-        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"  style="margin: 0 15px;">鎼滅储</el-button>
         <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button>
       </el-form-item>
     </el-form>
@@ -97,6 +97,16 @@
       <el-col :span="1.5">
         <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
           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"
@@ -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