Forráskód Böngészése

任务查看修改

duy 1 hete
szülő
commit
a0b4fb16c8
1 módosított fájl, 49 hozzáadás és 11 törlés
  1. 49 11
      src/views/tasks/components/hc-data/task-review.vue

+ 49 - 11
src/views/tasks/components/hc-data/task-review.vue

@@ -385,7 +385,7 @@
                                                     </div>
                                                 </div>
                                             </div>
-                                            <div v-else class="input hc-bt-0">
+                                            <div v-else class="input hc-bt-0 textarea-container">
                                                 <el-input
                                                     v-model="
                                                         meterApproveOpinion2.supervisorAudit
@@ -396,6 +396,9 @@
                                                     }"
                                                     type="textarea"
                                                 />
+                                                <div v-if="meterApproveOpinion1.supervisorAuditDefault" class="suffix-icon">
+                                                    <span>(不填写默认为拟同意)</span>
+                                                </div>
                                             </div>
                                         </template>
 
@@ -436,7 +439,7 @@
                                                 </div>
                                                 <div
                                                     v-else
-                                                    class="input hc-bt-0"
+                                                    class="input hc-bt-0 textarea-container"
                                                 >
                                                     <el-input
                                                         v-model="
@@ -448,6 +451,9 @@
                                                         }"
                                                         type="textarea"
                                                     />
+                                                    <div v-if="meterApproveOpinion1.projectBuildDefault" class="suffix-icon">
+                                                        <span>(不填写默认为拟同意)</span>
+                                                    </div>
                                                 </div>
                                             </div>
                                             <div class="box">
@@ -486,7 +492,7 @@
                                                 </div>
                                                 <div
                                                     v-else
-                                                    class="input no-b hc-bt-0"
+                                                    class="input no-b hc-bt-0 textarea-container"
                                                 >
                                                     <el-input
                                                         v-model="
@@ -498,6 +504,9 @@
                                                         }"
                                                         type="textarea"
                                                     />
+                                                    <div v-if="meterApproveOpinion1.projectBuildLeaderDefault" class="suffix-icon">
+                                                        <span>(不填写默认为拟同意)</span>
+                                                    </div>
                                                 </div>
                                             </div>
                                         </div>
@@ -541,7 +550,7 @@
                                                 </div>
                                                 <div
                                                     v-else
-                                                    class="input hc-bt-0"
+                                                    class="input hc-bt-0 textarea-container"
                                                 >
                                                     <el-input
                                                         v-model="
@@ -553,6 +562,9 @@
                                                         }"
                                                         type="textarea"
                                                     />
+                                                    <div v-if="meterApproveOpinion1.safetyManagerDefault" class="suffix-icon">
+                                                        <span>(不填写默认为拟同意)</span>
+                                                    </div>
                                                 </div>
                                             </div>
                                             <div class="box">
@@ -591,7 +603,7 @@
                                                 </div>
                                                 <div
                                                     v-else
-                                                    class="input no-b hc-bt-0"
+                                                    class="input no-b hc-bt-0 textarea-container"
                                                 >
                                                     <el-input
                                                         v-model="
@@ -603,6 +615,9 @@
                                                         }"
                                                         type="textarea"
                                                     />
+                                                    <div v-if="meterApproveOpinion1.safetyManagerLeaderDefault" class="suffix-icon">
+                                                        <span>(不填写默认为拟同意)</span>
+                                                    </div>
                                                 </div>
                                             </div>
                                         </div>
@@ -643,7 +658,7 @@
                                                 </div>
                                                 <div
                                                     v-else
-                                                    class="input hc-bt-0"
+                                                    class="input hc-bt-0 textarea-container"
                                                 >
                                                     <el-input
                                                         v-model="
@@ -655,6 +670,9 @@
                                                         }"
                                                         type="textarea"
                                                     />
+                                                    <div v-if="meterApproveOpinion1.contractDeptDefault" class="suffix-icon">
+                                                        <span>(不填写默认为拟同意)</span>
+                                                    </div>
                                                 </div>
                                             </div>
                                             <div class="box">
@@ -693,7 +711,7 @@
                                                 </div>
                                                 <div
                                                     v-else
-                                                    class="input no-b hc-bt-0"
+                                                    class="input no-b hc-bt-0 textarea-container"
                                                 >
                                                     <el-input
                                                         v-model="
@@ -705,6 +723,9 @@
                                                         }"
                                                         type="textarea"
                                                     />
+                                                    <div v-if="meterApproveOpinion1.contractDeptLeaderDefault" class="suffix-icon">
+                                                        <span>(不填写默认为拟同意)</span>
+                                                    </div>
                                                 </div>
                                             </div>
                                         </div>
@@ -742,7 +763,7 @@
                                                 </div>
                                             </div>
                                         </div>
-                                        <div v-else class="input hc-bt-0">
+                                        <div v-else class="input hc-bt-0 textarea-container">
                                             <el-input
                                                 v-model="
                                                     meterApproveOpinion2.generalManager
@@ -753,6 +774,9 @@
                                                 }"
                                                 type="textarea"
                                             />
+                                            <div v-if="meterApproveOpinion1.generalManagerDefault" class="suffix-icon">
+                                                <span>(不填写默认为拟同意)</span>
+                                            </div>
                                         </div>
 
                                         <div class="name no-b hc-bt-0">
@@ -788,7 +812,7 @@
                                                 </div>
                                             </div>
                                         </div>
-                                        <div v-else class="input no-b hc-bt-0">
+                                        <div v-else class="input no-b hc-bt-0 textarea-container">
                                             <el-input
                                                 v-model="
                                                     meterApproveOpinion2.chiefExecutive
@@ -799,6 +823,9 @@
                                                 }"
                                                 type="textarea"
                                             />
+                                            <div v-if="meterApproveOpinion1.chiefExecutiveDefault" class="suffix-icon">
+                                                <span>(不填写默认为同意)</span>
+                                            </div>
                                         </div>
                                     </template>
                                     <template v-else>
@@ -1044,7 +1071,7 @@ const setDefaultValue = (field, defaultOpinion) => {
 }
 
 const setDefaultOpinion = () => {
-    const defaultOpinion = '拟同意(不填写默认为拟同意)'
+    const defaultOpinion = '拟同意'
     //setDefaultValue('chiefSupervisor', defaultOpinion)
     setDefaultValue('supervisorAudit', defaultOpinion)
     setDefaultValue('projectBuild', defaultOpinion)
@@ -1056,7 +1083,7 @@ const setDefaultOpinion = () => {
     setDefaultValue('generalManager', defaultOpinion)
 
     // 注意:这里修改为了与其他默认意见一致
-    setDefaultValue('chiefExecutive', '同意(不填写默认为同意)')
+    setDefaultValue('chiefExecutive', '同意')
 }
 
 //流程信息,1待审批,2已审批
@@ -1315,6 +1342,17 @@ const tabsChange = ({ key }) => {
 </script>
 
 <style lang="scss" scoped>
+.textarea-container {
+  position: relative;
+}
+
+.suffix-icon {
+  position: absolute;
+  bottom: 8px;
+  right: 10px;
+  font-size: 14px;
+  color: #888;
+}
 .hc-task-name {
     font-weight: bold;
     color: #1a1a1a;