SanHQin 5 місяців тому
батько
коміт
1c1987367a
1 змінених файлів з 157 додано та 86 видалено
  1. 157 86
      src/views/projectManage/components/Closingstatement.vue

+ 157 - 86
src/views/projectManage/components/Closingstatement.vue

@@ -207,13 +207,9 @@
           {{
             myArrayProp[0].schoolRemould.includes("2") ? "☑" : "□"
           }}环境治理项目
-          {{
-            myArrayProp[0].schoolRemould.includes("3") ? "☑" : "□"
-          }}
+          {{ myArrayProp[0].schoolRemould.includes("3") ? "☑" : "□" }}
           校园服务项目
-          {{
-            myArrayProp[0].schoolRemould.includes("4") ? "☑" : "□"
-          }}
+          {{ myArrayProp[0].schoolRemould.includes("4") ? "☑" : "□" }}
           文创装置项目
         </td>
       </tr>
@@ -472,7 +468,7 @@
           <td colspan="7" style="text-align: left; height: auto">
             <p>四、项目创新点评估</p>
             <div
-             v-if="isDownPdf"
+              v-if="isDownPdf"
               class="textCss"
               v-html="
                 myArrayProp[0]['ClosingstatementData'].innovate.replace(
@@ -482,7 +478,7 @@
               "
             ></div>
             <el-input
-            v-else
+              v-else
               type="textarea"
               :autosize="{ minRows: 6 }"
               placeholder="请输入内容"
@@ -923,7 +919,8 @@
         </tr>
         <tr>
           <td colspan="7" :style="{ height: isDownPdf ? 'auto' : '200px' }">
-            <p>四、社会价值(项目实践运用情况及效果评价)</p><!--实际运用情况及效果评价-->
+            <p>四、社会价值(项目实践运用情况及效果评价)</p>
+            <!--实际运用情况及效果评价-->
             <el-input
               v-if="!isDownPdf"
               type="textarea"
@@ -1176,7 +1173,56 @@
         <tr style="height: 350px">
           <td class="vertical">所在学院/部门初审意见</td>
           <td colspan="7" style="position: relative">
-            <div
+            <template v-for="item in qpList.filter((i) => i.type == 8)">
+              <div
+                :key="item.id"
+                class="qpText"
+                v-html="item.text"
+              ></div>
+              <div
+                style="
+                  width: 200px;
+                  position: absolute;
+                  right: 80px;
+                  bottom: 50px;
+                "
+              >
+                负责人签章:<span>{{ item.username }} </span>
+              </div>
+              <div
+                style="
+                  width: 300px;
+                  position: absolute;
+                  right: 0px;
+                  bottom: 15px;
+                "
+              >
+                日期:{{ item.time }}
+              </div>
+            </template>
+            <template  v-if="qpList.filter((i) => i.type == 8).length = 0">
+              <div
+                style="
+                  width: 200px;
+                  position: absolute;
+                  right: 80px;
+                  bottom: 50px;
+                "
+              >
+                负责人签章:
+              </div>
+              <div
+                style="
+                  width: 300px;
+                  position: absolute;
+                  right: 0px;
+                  bottom: 15px;
+                "
+              >
+                年 月 日
+              </div>
+            </template>
+            <!-- <div
               v-if="qpList.length && qpList[2] && qpList[2].type == 4"
               class="qpText"
               v-html="qpList[2].text"
@@ -1205,7 +1251,7 @@
               v-else
             >
               年 月 日
-            </div>
+            </div> -->
           </td>
         </tr>
       </tbody>
@@ -1224,65 +1270,55 @@
         <tr style="height: 350px">
           <td class="vertical">创新创业学院审核意见</td>
           <td colspan="7" style="position: relative">
-            <div
-              v-if="qpList.length && qpList[1] && qpList[1].type == 3"
-              class="qpText"
-              v-html="qpList[1].text"
-            ></div>
-            <div
-              v-else-if="
-                qpList.length &&
-                qpList.length == 1 &&
-                qpList[0] &&
-                qpList[0].type == 0
-              "
-              class="qpText"
-              v-html="qpList[0].text"
-            ></div>
-            <div
-              style="
-                width: 200px;
-                position: absolute;
-                right: 80px;
-                bottom: 50px;
-              "
-            >
-              负责人签章:<span
-                v-if="qpList.length && qpList[1] && qpList[1].type == 3"
-                >{{ qpList[1].username }} </span
-              ><span
-                v-else-if="
-                  qpList.length &&
-                  qpList.length == 1 &&
-                  qpList[0] &&
-                  qpList[0].type == 0
+            <template v-for="item in qpList.filter((i) => i.type == 9)">
+              <div
+                :key="item.id"
+                class="qpText"
+                v-html="item.text"
+              ></div>
+              <div
+                style="
+                  width: 200px;
+                  position: absolute;
+                  right: 80px;
+                  bottom: 50px;
                 "
-                >{{ qpList[0].username }}
-              </span>
-            </div>
-            <div
-              v-if="qpList.length && qpList[1] && qpList[1].type == 3"
-              style="width: 300px; position: absolute; right: 0px; bottom: 15px"
-            >
-              日期:{{ qpList[1].time }}
-            </div>
-            <div
-              v-else-if="
-                qpList.length &&
-                qpList.length == 1 &&
-                qpList[0] &&
-                qpList[0].type == 0
-              "
-              style="width: 300px; position: absolute; right: 0px; bottom: 15px"
-            >
-              日期:{{ qpList[0].time }}
-            </div>
-            <div
-              style="width: 300px; position: absolute; right: 0px; bottom: 15px"
-              v-else
-            >
-              年 月 日
-            </div>
+              >
+                负责人签章:<span>{{ item.username }} </span>
+              </div>
+              <div
+                style="
+                  width: 300px;
+                  position: absolute;
+                  right: 0px;
+                  bottom: 15px;
+                "
+              >
+                日期:{{ item.time }}
+              </div>
+            </template>
+            <template  v-if="qpList.filter((i) => i.type == 9).length = 0">
+              <div
+                style="
+                  width: 200px;
+                  position: absolute;
+                  right: 80px;
+                  bottom: 50px;
+                "
+              >
+                负责人签章:
+              </div>
+              <div
+                style="
+                  width: 300px;
+                  position: absolute;
+                  right: 0px;
+                  bottom: 15px;
+                "
+              >
+                年 月 日
+              </div>
+            </template>
           </td>
         </tr>
       </tbody>
@@ -1327,21 +1363,55 @@
         <tr style="height: 350px">
           <td class="vertical" style="height: 350px">学校终审意见</td>
           <td colspan="7">
-            <div
-              style="
-                width: 200px;
-                position: absolute;
-                right: 80px;
-                bottom: 50px;
-              "
-            >
-              负责人签章:
-            </div>
-            <div
-              style="width: 300px; position: absolute; right: 0px; bottom: 15px"
-            >
-              年 月 日
-            </div>
+            <template v-for="item in qpList.filter((i) => i.type == 10)">
+              <div
+                :key="item.id"
+                class="qpText"
+                v-html="item.text"
+              ></div>
+              <div
+                style="
+                  width: 200px;
+                  position: absolute;
+                  right: 80px;
+                  bottom: 50px;
+                "
+              >
+                负责人签章:<span>{{ item.username }} </span>
+              </div>
+              <div
+                style="
+                  width: 300px;
+                  position: absolute;
+                  right: 0px;
+                  bottom: 15px;
+                "
+              >
+                日期:{{ item.time }}
+              </div>
+            </template>
+            <template  v-if="qpList.filter((i) => i.type == 10).length = 0">
+              <div
+                style="
+                  width: 200px;
+                  position: absolute;
+                  right: 80px;
+                  bottom: 50px;
+                "
+              >
+                负责人签章:
+              </div>
+              <div
+                style="
+                  width: 300px;
+                  position: absolute;
+                  right: 0px;
+                  bottom: 15px;
+                "
+              >
+                年 月 日
+              </div>
+            </template>
           </td>
         </tr>
       </tbody>
@@ -1861,7 +1931,7 @@ export default {
           cdata: encodeURIComponent(
             JSON.stringify(this.myArrayProp[0]["ClosingstatementData"])
           ),
-          mData:encodeURIComponent(
+          mData: encodeURIComponent(
             JSON.stringify(this.myArrayProp[0]["money"])
           ),
           sta: 2,
@@ -1890,6 +1960,7 @@ export default {
       this.ajax.get(this.$store.state.api + "/selectSign", param).then(
         (res) => {
           this.qpList = res.data[0];
+          this.$forceUpdate()
           // console.log('this.qpList',this.qpList);
         },
         (err) => {
@@ -2434,7 +2505,7 @@ table {
               word-break: break-word;
               text-align: left;
               margin-left: 10px;
-              max-width: calc(50vw/2);
+              max-width: calc(50vw / 2);
             }
           }
           .fileBoxRight {