소스 검색

弹窗美化

xiaochan 5 달 전
부모
커밋
0304d338da

+ 0 - 4
src/components/cy/CyDialog/index.ts

@@ -30,10 +30,6 @@ export namespace UseDialogType {
     }
 }
 
-export interface UseDialogEmits {
-    (e: "cyDialogConfirm" | "cyDialogCancel", value?: any): void;
-}
-
 type FirstParam<T> =
     T extends Component<infer P, any, any, any, any, any>
         ? P extends Record<string, any>

+ 4 - 0
src/components/cy/CyDialog/index.vue

@@ -130,9 +130,12 @@ const style = (item: DialogState) => {
 
 <style lang="scss">
 .cy_dialog-v2 {
+  border-radius: 20px;
+
   .el-dialog__title {
     font-weight: 600;
   }
+
 }
 
 .cy-dialog_hideHeader {
@@ -144,6 +147,7 @@ const style = (item: DialogState) => {
 .cy_dialog-v2.el-dialog.is-fullscreen {
   display: flex;
   flex-direction: column;
+  border-radius: 0;
 
   .el-dialog__body {
     flex: 1;

+ 4 - 4
src/components/medical-insurance/medicine-return-order/GenerateMedicineReturnOrder.vue

@@ -1,6 +1,6 @@
 <template>
   <el-button type="warning" @click="dialog = true">生成退药单</el-button>
-  <el-dialog v-model="dialog" title="生成退药单" append-to-body>
+  <el-dialog v-model="dialog" title="生成退药单" width="60vw" append-to-body>
     <div class="header">
       药房:
       <el-select v-model="groupNo"
@@ -26,7 +26,7 @@
     </div>
     <div>
       退药理由:
-      <el-select v-model="refundReason">
+      <el-select v-model="refundReason" style="width: 220px">
         <el-option v-for="item in refundReasonList"
                    :key="item.code"
                    :value="item.code"
@@ -125,7 +125,7 @@ import {refundReasonList} from "@/data";
 const dialog = ref(false)
 const dateRange = ref([])
 
-let data = reactive({
+const data = reactive({
   notGenerated: [],
   toGenerate: [],
   pageNo: null,
@@ -137,7 +137,7 @@ const refundReason = ref(1)
 
 // 获取未生成的药单
 const clickToAccess = () => {
-  let {startTime, endTime} = getDateRangeFormatDate(dateRange.value)
+  const {startTime, endTime} = getDateRangeFormatDate(dateRange.value)
   if (stringIsBlank(startTime)) {
     BizException(ExceptionEnum.MESSAGE_ERROR, "时间不能为空。")
   }