Pārlūkot izejas kodu

[张田田] 先把作废功能注释 这是第二期的功能

张田田 10 mēneši atpakaļ
vecāks
revīzija
e16dca41a5

+ 2 - 1
src/pages/index/care/conditioningRecord.vue

@@ -82,7 +82,7 @@ const gridOptions = reactive<VxeGridProps<ConditioningRecordListModel>>({
     custom: true,
     zoom: true,
     slots: {
-      buttons: 'handle',
+      // buttons: 'handle',
       tools: 'toolbar-extra',
     },
   },
@@ -103,6 +103,7 @@ const gridOptions = reactive<VxeGridProps<ConditioningRecordListModel>>({
     { field: 'estimatedStartDate', title: '开始调养日期' },
     { field: 'progress', title: '调理状态', slots: { default: 'patients' } },
     {
+      field: 'action',
       title: '操作',
       align: 'center',
       width: 120,

+ 7 - 3
src/service/ServicePackageDetail.vue

@@ -76,6 +76,10 @@ function handleViewRecord(model?: ConditioningRecordListModel) {
     emit('voidSubmit', tableData.value as SystemCwModel);
   });
 }
+const visible = ref<boolean>(false);
+const setVisible = (value: boolean): void => {
+  visible.value = value;
+};
 </script>
 
 <template>
@@ -169,7 +173,7 @@ function handleViewRecord(model?: ConditioningRecordListModel) {
 
     <!-- 表格和作废字样包裹层 -->
     <div class="table-wrapper">
-      <div v-if="tableData.progress === '1'" class="voided-stamp">作废</div>
+      <!-- <div v-if="tableData.progress === '1'" class="voided-stamp">作废</div> -->
       <vxe-table :data="tableData?.items" border>
         <vxe-column field="conditioningProgramDetail.name" title="项目名称" align="center" />
         <vxe-column field="days" title="周期" align="center" :disabled="true" />
@@ -211,11 +215,11 @@ function handleViewRecord(model?: ConditioningRecordListModel) {
     </div>
 
     <!-- 按钮区,作废后隐藏 -->
-    <div class="footer-btns">
+    <!-- <div class="footer-btns">
       <a-button type="primary" style="margin-right: 24px" @click="handleChangePlan" v-if="props.data.title === '调养方案'">转方案</a-button>
       <a-button @click="handleVoid" v-if="tableData.progress !== '1'" >作废</a-button>
       <a-button type="primary" style="margin-left: 24px" @click="handleViewRecord(props.data)" v-if="isVoided && tableData.progress !== '1'">查看记录</a-button>
-    </div>
+    </div> -->
   </div>
 </template>