Forráskód Böngészése

项目录入模板添加规格

DESKTOP-MINPJAU\Administrator 3 éve
szülő
commit
099669bf6b
1 módosított fájl, 28 hozzáadás és 25 törlés
  1. 28 25
      src/components/med-tec-mod/HuoQuMuBan.vue

+ 28 - 25
src/components/med-tec-mod/HuoQuMuBan.vue

@@ -5,14 +5,15 @@
         <el-table-column label="模板名称" prop="name" width="120px">
           <!-- 店家激发弹出框 -->
           <template #default="scope">
-            <el-popover :width="600" placement="right" trigger="click">
+            <el-popover :width="900" placement="right" trigger="click">
               <template #reference>
                 <el-button text @click="getMuBanXinXiClick(scope.row)" type="primary" :title="scope.row.name">
                   {{ scope.row.name }}
                 </el-button>
               </template>
               <!-- 这里是弹出框中的数据 -->
-              <el-table :data="muBanXiangQing" :height="windowSize.h - 170" class="eltable" @selection-change="xuanZeXiangMuTable">
+              <el-table :data="muBanXiangQing" :height="windowSize.h - 170" class="eltable"
+                        @selection-change="xuanZeXiangMuTable">
                 <el-table-column type="selection"></el-table-column>
                 <el-table-column label="项目名称" prop="chargeName"></el-table-column>
                 <el-table-column label="国家编码" prop="nationalCode"></el-table-column>
@@ -25,6 +26,7 @@
                   </template>
                 </el-table-column>
                 <el-table-column label="编码" prop="chargeCodeMx"></el-table-column>
+                <el-table-column label="规格" prop="descriptions"></el-table-column>
               </el-table>
             </el-popover>
           </template>
@@ -32,12 +34,12 @@
         <el-table-column>
           <template #default="scope">
             <el-popconfirm
-              cancel-button-text="取消"
-              confirm-button-text="确认"
-              icon="Info"
-              iconColor="red"
-              title="是否删除该数据"
-              @confirm="shanChuMuBanClick(scope.$index, scope.row)"
+                cancel-button-text="取消"
+                confirm-button-text="确认"
+                icon="Info"
+                iconColor="red"
+                title="是否删除该数据"
+                @confirm="shanChuMuBanClick(scope.$index, scope.row)"
             >
               <template #reference>
                 <el-button type="danger">删除</el-button>
@@ -47,24 +49,24 @@
         </el-table-column>
       </el-table>
       <el-pagination
-        :current-page="templateData.currentPage"
-        :page-size="templateData.pageSize"
-        :pager-count="5"
-        :total="templateData.total"
-        layout=" prev, pager, next"
-        small
-        style="margin-top: 5px"
-        @current-change="templatePaging"
+          :current-page="templateData.currentPage"
+          :page-size="templateData.pageSize"
+          :pager-count="5"
+          :total="templateData.total"
+          layout=" prev, pager, next"
+          small
+          style="margin-top: 5px"
+          @current-change="templatePaging"
       ></el-pagination>
     </el-aside>
   </el-container>
 </template>
 
 <script name="HuoQuMuBan" setup>
-import { onMounted, ref } from 'vue'
-import { getMuBan, getMuBanXinXi, shanChuMuBan } from '@/api/inpatient/xiang-mu-lu-ru'
+import {onMounted, ref} from 'vue'
+import {getMuBan, getMuBanXinXi, shanChuMuBan} from '@/api/inpatient/xiang-mu-lu-ru'
 import store from '@/store'
-import { ElMessageBox } from 'element-plus'
+import {ElMessageBox} from 'element-plus'
 
 const emit = defineEmits(['selectionFeiYong'])
 
@@ -98,7 +100,7 @@ const muBanXiangQing = ref([])
 
 // 获取选择的数据
 const xuanZeXiangMuTable = (val) => {
-  emit('selectionFeiYong', { val })
+  emit('selectionFeiYong', {val})
 }
 
 const shanChuMuBanClick = (index, data) => {
@@ -106,12 +108,13 @@ const shanChuMuBanClick = (index, data) => {
     ElMessageBox.confirm('该模板非本人创建是否强制删除', '提示', {
       type: 'error',
     })
-      .then(() => {
-        shanChuMuBan(data.name, data.opIdCode).then((res) => {
-          templateData.data.splice(index, 1)
+        .then(() => {
+          shanChuMuBan(data.name, data.opIdCode).then((res) => {
+            templateData.data.splice(index, 1)
+          })
+        })
+        .catch(() => {
         })
-      })
-      .catch(() => {})
   } else {
     shanChuMuBan(data.name, data.opIdCode).then((res) => {
       templateData.data.splice(index, 1)