diff --git a/src/api/inout/ioDepartmentOrder.js b/src/api/inout/ioDepartmentOrder.js
index 9a08fcab..8afa936b 100644
--- a/src/api/inout/ioDepartmentOrder.js
+++ b/src/api/inout/ioDepartmentOrder.js
@@ -31,3 +31,11 @@ export function clickToTriggerbyCode(data) {
     params: data
   });
 }
+
+export function deleteSkSicker(data) {
+  return axios({
+    url: "/udiwms/inout/ioDepartmentOrder/deleteSkSicker",
+    method: "delete",
+    params: data
+  });
+}
diff --git a/src/components/inout/baziPanel.vue b/src/components/inout/baziPanel.vue
index 3c05a357..995fc5b6 100644
--- a/src/components/inout/baziPanel.vue
+++ b/src/components/inout/baziPanel.vue
@@ -1,7 +1,10 @@
 <template>
   <el-card :body-style="{margin:'20px'}"
-           style="margin:20px 20px 20px 20px;height: 200px;background-color: #e1f3fb;border-radius: 12px"
+           style="margin:20px 20px 20px 20px;height: 200px;background-color: #e1f3fb;border-radius: 12px; position: relative;"
   >
+    <!-- 添加一个删除按钮在左上角 -->
+    <el-button icon="el-icon-close" circle class="close-button" @click="handleDelete">
+    </el-button>
     <template #header>
       <el-form class="query-form" size="mini">
         <el-form-item class="query-form-item" label-width="23%" label="姓 名:">
@@ -11,6 +14,7 @@
             clearable
             disabled
             class="custom-disabled-input"
+            style="width: 80%"
           >
           </el-input>
         </el-form-item>
@@ -21,6 +25,7 @@
             placeholder="请输入住院号"
             clearable
             disabled
+            style="width: 80%"
             class="custom-disabled-input"
           >
           </el-input>
@@ -66,7 +71,22 @@ export default {
   mounted() {
   },
   methods: {
-    onCodeSubmit() {
+    handleDelete() {
+      // 在这里处理删除逻辑,例如弹出一个确认框或者直接删除数据
+      // 可以使用 this.$confirm 或其他方式
+      this.$confirm('确认删除吗?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        // 用户点击了确定按钮,执行删除操作
+        // 例如:你可以通过 this.$emit 发送一个事件到父组件来处理删除
+        this.$emit('deleteBaziPanel',this.info);
+      }).catch(() => {
+        // 用户点击了取消按钮
+      });
+  },
+  onCodeSubmit() {
       this.$emit('baziPanel', this.info)
     },
     statusFilterType(status) {
@@ -86,4 +106,11 @@ export default {
 .custom-disabled-input input.el-input__inner:disabled {
   color: #000000; /* 修改为需要的颜色 */
 }
+/* 添加样式来定位左上角的删除按钮 */
+.close-button {
+  position: absolute;
+  top: 10px; /* 你可以根据需要调整这个值 */
+  right: 10px; /* 你可以根据需要调整这个值 */
+  z-index: 1; /* 确保按钮在卡片内容之上 */
+}
 </style>
diff --git a/src/views/inout/IoDepartmentOrder.vue b/src/views/inout/IoDepartmentOrder.vue
index 0e43322d..3c527b54 100644
--- a/src/views/inout/IoDepartmentOrder.vue
+++ b/src/views/inout/IoDepartmentOrder.vue
@@ -57,7 +57,7 @@
 
       <el-row :gutter="8">
         <el-col v-for="(bazi,key) in list" :key="key" :xs="12" :sm="8" :md="8" :lg="6">
-          <BaziPanel :info="bazi" @baziPanel="getValue"></BaziPanel>
+          <BaziPanel :info="bazi" @baziPanel="getValue" @deleteBaziPanel="deleteBaziPanel"></BaziPanel>
         </el-col>
       </el-row>
       <!--      <pagination style="height: 20px"-->
@@ -191,7 +191,7 @@
 
 <script>
 import BaziPanel from '@/components/inout/baziPanel.vue'
-import {getSkSickerList, getOrderListbyCode, addInfoSkSicker, clickToTriggerbyCode} from '@/api/inout/ioDepartmentOrder'
+import {getSkSickerList, getOrderListbyCode, addInfoSkSicker, clickToTriggerbyCode,deleteSkSicker} from '@/api/inout/ioDepartmentOrder'
 import addOrder from "@/views/inout/DialogCreateOrder";
 import {isBlank} from "@/utils/strUtil";
 
@@ -212,6 +212,7 @@ export default {
       showSearch: true,
       filterQuery: {
         name: '',
+        deptCode: this.$store.getters.locDeptCode,
         page: 1,
         limit: 12,
         startTime: null,
@@ -305,6 +306,23 @@ export default {
     window.removeEventListener('resize', this.handleResize);
   },
   methods: {
+    deleteBaziPanel(info) {
+      let query = {
+        adNum: info.adNum
+      }
+      deleteSkSicker(query).then((response) => {
+        if (response.code === 20000) {
+          this.$message.success("操作成功!")
+          this.getList();
+        } else {
+          this.$message.error(response.message)
+        }
+      })
+        .catch((error) => {
+          this.$message.error(error.message)
+        })
+
+    },
     getValue(info) {
       console.log(info)
       let query = {
@@ -324,11 +342,12 @@ export default {
               this.idQuery = this.orderListDate[0]; // 确保数组不为空
             } else {
               // 处理订单列表为空的情况,设置默认值或者显示消息
+              this.idQuery = {};
             }
             this.sickerAdNum = info.adNum;
             this.sickerAdName = info.name;
-            this.addOrderVisible = true;
             this.list = response.data || [];
+            this.addOrderVisible = true;
           } else {
             this.$message.error(response.message)
           }
@@ -409,6 +428,7 @@ export default {
     onReset() {
       this.filterQuery = {
         name: '',
+        deptCode: this.$store.getters.locDeptCode,
         page: 1,
         limit: 24
       }