Browse Source

feat:修改材料缴交BUG

DESKTOP-USV654P\pc 6 months ago
parent
commit
369ebdb3e2

+ 1 - 0
src/views/finance/consumption/material.vue

@@ -38,6 +38,7 @@
     bordered: true,
     immediate: false,
     canResize: true,
+    resizeHeightOffset: 120,
   });
 
   const [registerModal, { setModalProps }] = useModalInner(async (data) => {

+ 14 - 21
src/views/materialManager/taskTodoList/components/viewModal.vue

@@ -123,7 +123,7 @@
     openFormTemplage(true, {
       id: taskDataInfo.value.formReleaseId,
       isView: item ? true : false,
-      formReleaseId: item?.formReleaseId,
+      formReleaseId: item?.formDataId,
     });
   };
 </script>
@@ -140,7 +140,7 @@
     <div class="taskView-Content" v-if="taskDataInfo">
       <div class="taskView-Content-title">
         <h3>{{ taskDataInfo.name }}</h3>
-        <span style="color: black;">{{
+        <span style="color: black">{{
           `[${
             taskDataInfo.status === 1
               ? '未开始'
@@ -157,53 +157,46 @@
         <div v-html="taskDataInfo.requirement"></div>
       </div>
       <div class="fileLListBox">
-        <span style="margin-bottom: 12px; font-size: 16px; color: black;">材料附件列表:</span>
+        <span style="margin-bottom: 12px; font-size: 16px; color: black">材料附件列表:</span>
         <ul>
           <template v-if="taskDataInfo.materialCategory === 'MT0001'">
             <li
-              style="display: flex; align-items: center; justify-content: space-between;"
+              style="display: flex; align-items: center; justify-content: space-between"
               v-for="item in taskDataInfo.files"
               :key="item.id"
             >
               <div
-                style="
-                  width: 400px;
-                  overflow: hidden;
-                  text-overflow: ellipsis;
-                  white-space: nowrap;
-                "
+                style="width: 400px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap"
               >
                 <LinkOutlined />
                 {{ item.fileName }}
               </div>
 
-              <div style="white-space: nowrap;">
-                <span style="margin-right: 12px;" @click="handleReview(item, 1)">预览</span>
+              <div style="white-space: nowrap">
+                <span style="margin-right: 12px" @click="handleReview(item, 1)">预览</span>
                 <span @click="handleReview(item, 2)">下载</span>
               </div>
             </li>
           </template>
-          <li v-else style="display: flex; align-items: center; justify-content: space-between;">
+          <li v-else style="display: flex; align-items: center; justify-content: space-between">
             <div
-              style="width: 400px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"
+              style="width: 400px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap"
             >
               <LinkOutlined />
               {{ taskDataInfo.formReleaseIdCn }}
             </div>
 
-            <div style="white-space: nowrap;">
-              <span style="margin-right: 12px;" @click="handleFromReview()">
-                预览
-              </span>
+            <div style="white-space: nowrap">
+              <span style="margin-right: 12px" @click="handleFromReview()"> 预览 </span>
             </div>
           </li>
         </ul>
       </div>
       <div> </div>
-      <div style="padding: 24px;">
+      <div style="padding: 24px">
         <RadioGroup
           button-style="solid"
-          style="display: flex;"
+          style="display: flex"
           v-model:value="status"
           @change="handleChange"
         >
@@ -228,7 +221,7 @@
             <a-button type="primary">导出</a-button>
           </template>
           <template #action="{ record }">
-            <div style="display: flex; justify-content: center;">
+            <div style="display: flex; justify-content: center">
               <TableAction
                 :actions="[
                   {