张田田 пре 10 месеци
родитељ
комит
9ccb1385d4
1 измењених фајлова са 6 додато и 6 уклоњено
  1. 6 6
      src/service/ServicePackageDetail.vue

+ 6 - 6
src/service/ServicePackageDetail.vue

@@ -62,7 +62,10 @@ function handleViewRecord(model?: ConditioningRecordListModel) {
     },
   });
 }
-
+const visible = ref<boolean>(false);
+const setVisible = (value: boolean): void => {
+  visible.value = value;
+};
 // 作废
  function handleVoid() {
   voidConditioningSchemeMethod(Number(props.data.id)).then(async (res) => {
@@ -76,10 +79,7 @@ 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>
@@ -213,13 +213,13 @@ const setVisible = (value: boolean): void => {
         {{ tableData.phone }}</span
       >
     </div>
-
     <!-- 按钮区,作废后隐藏 -->
     <!-- <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>
 </template>