Explorar el Código

[张田田]【中医调养】新增项目/服务包后列表未刷新

张田田 hace 10 meses
padre
commit
8a10613803
Se han modificado 2 ficheros con 7 adiciones y 14 borrados
  1. 4 4
      src/components/Evaluation.vue
  2. 3 10
      src/pages/index/care/systemService.vue

+ 4 - 4
src/components/Evaluation.vue

@@ -191,13 +191,13 @@ function subEvalation() {
         <div class="mr-2 font-bold" style="font-size: 14px">基本信息</div>
         <div class="mr-3">{{ props.data.medicalTime }}</div>
         <span class="mr-3">{{ props.data.patientName }}</span>
-        <span class="mr-3"> {{ props.data.sex === '1' ? '男' : '女' }}</span>
+        <span class="mr-3"> {{ props.data.sex === '1' ? '女' : '男' }}</span>
         <span> {{ props.data.age }}岁</span>
       </div>
       <div class="border-r border-r-2 border-r-gray-300 border-r-solid pr-6 pl-6">
         诊断:{{ props.data?.diagnosis }}
       </div>
-      <div class="pl-6">症状:{{ props.data?.syndromeList?.join(',') }}</div>
+      <div class="pl-6" v-if="props.data?.syndromeList?.length > 0">症状:{{ props.data?.syndromeList?.join(',') }}</div>
     </div>
 
     <vxe-grid class="reverse-table detail" v-bind="gridOptions">
@@ -245,8 +245,8 @@ function subEvalation() {
                     : '恶化'
             }}
           </div>
-          <div class="font-bold mt-2 mb-1">备注:</div>
-          <p class="indent-6 w-30 text-pretty">{{ props.data?.evaluateDesc }}</p>
+          <div class="font-bold mt-2 mb-1" v-if="props.data?.evaluateDesc">备注:</div>
+          <p class="indent-6 w-30 text-pretty" v-if="props.data?.evaluateDesc">{{ props.data?.evaluateDesc }}</p>
           <div class="font-bold mb-4 mt-15">下一步处置</div>
           <div class="indent-6 font-bold">
             {{ props.data?.evaluateDeal === '1' ? '复诊' : '中医调养' }}

+ 3 - 10
src/pages/index/care/systemService.vue

@@ -163,12 +163,12 @@ function deleteSystemService(model: SystemCwModel, index: number) {
   const { name } = model;
   VxeUI.modal.confirm({
     title: `删除系统服务`,
-    content: `确认要删除 ${name} 系统服务吗?`,
+    content: `确认要删除 ${name} 系统服务吗?`,
     showClose: false,
     onConfirm() {
       deleteSystemCwMethod(model).then(() => {
         notification.success({
-          message: `删除系统服务: ${name}`,
+          message: `删除系统服务: ${name}`,
           description: '操作成功',
         });
         refresh(page.value);
@@ -182,8 +182,6 @@ function seeInstitution(model?: SystemCwModel, index?: number) {
   VxeUI.modal.open({
     id: 'servicePackageDetail-modal',
     title: '系统服务',
-    // height: 700,
-    // width: 1000,
     height: window.innerHeight,
     width: window.innerWidth,
     escClosable: true,
@@ -202,20 +200,15 @@ function editSystemService(model?: SystemCwModel, index?: number) {
   VxeUI.modal.open({
     id: 'edit-system-service-modal',
     title: model?.id ? `修改系统服务` : `新增系统服务`,
-    // height: 700,
-    // width: 1200,
     height: window.innerHeight,
     width: window.innerWidth,
-    // position: {
-    //   top: Math.min(100, window.innerHeight * 0.1),
-    // },
     escClosable: true,
     destroyOnClose: true,
     slots: {
       default() {
         return h(EditSystemService, <any>{
           data: { ...model, types },
-          onSubmitSubmit(data: SystemCwModel) {
+          onSubmit(data: SystemCwModel) {
             refresh(page.value);
             VxeUI.modal.close(`edit-system-service-modal`);
           },