Browse Source

Merge branch 'master' of https://git.cocorobo.cn/CocoRoboLabs/ssti-CollegeManage

yuanyiming 2 years ago
parent
commit
684f043e37

+ 49 - 51
src/components/MakerSpaceWord.vue

@@ -161,8 +161,8 @@
                 </el-input>
               </div>
               <div class="operate">
-                <el-button @click="addTeacher" v-if="wordData['teacher'].length==index+1" type="primary" size="mini">+</el-button>
-                <el-button v-if="wordData['teacher'].length!=1  && wordData['teacher'].length>3" @click="DelTeacher(index)" type="primary" size="mini">-</el-button>
+                <el-button @click="addTeacher" v-if="wordData['teacher'].length==index+1" type="primary" size="mini">添加</el-button>
+                <el-button v-if="wordData['teacher'].length!=1  && wordData['teacher'].length>3" @click="DelTeacher(index)" type="primary" size="mini">删除</el-button>
               </div>
             </div>
           </div>
@@ -221,8 +221,8 @@
                 </el-input>
               </div>
               <div class="operate">
-                <el-button @click="addStudent" v-if="wordData['student'].length==index+1" type="primary" size="mini">+</el-button>
-                <el-button @click="DelStudent(index)" v-if="wordData['student'].length!=1  && wordData['student'].length>5"  type="primary" size="mini">-</el-button>
+                <el-button @click="addStudent" v-if="wordData['student'].length==index+1" type="primary" size="mini">添加</el-button>
+                <el-button @click="DelStudent(index)" v-if="wordData['student'].length!=1  && wordData['student'].length>5"  type="primary" size="mini">删除</el-button>
               </div>
             </div>
           </div>
@@ -251,6 +251,13 @@
               </div>
               <div class="chaptersValue" id="eight">
                 <span>建设内容(空间优化/场馆规划方面拟解决的关键问题及主要建设指标)</span><br/>
+                <!-- <el-input
+                  type="textarea"
+                  autosize
+                  resize="none"
+                  placeholder="请输入项目名称"
+                  v-model="wordData['projectName']">
+                </el-input> -->
                 <el-input
                   type="textarea"
                   class="noCenter"
@@ -375,7 +382,7 @@
           <div class="fundTable">
             <div class="fundTotal">
               <div class="fundLabel">总经费</div>
-              <div class="fundValue">{{wordData['fund']['device']+wordData['fund']['Material']+wordData['fund']['processing']+wordData['fund']['Collaboration']+wordData['fund']['APPRAISAL']+wordData['fund']['entery']+wordData['fund']['activities']+wordData['fund']['Transaction']}}元</div>
+              <div class="fundValue">{{wordData['fund']['total']||0}}万</div>
             </div>
             <div class="fundHeader">
               <div class="HeaderLabel">支出类别</div>
@@ -390,12 +397,12 @@
                   <div class="fundDataValue">小型仪器设备费</div>
                   <div class="fundDataValue">
                     <el-input
-                      type="textarea"
+                      type="number"
                       autosize
                       resize="none"
                       placeholder="小型仪器设备费"
                       v-model.number="wordData['fund']['device']"
-                      @change="convertNumber('device',wordData['fund']['device'])"></el-input>
+                      @change="getTotal"></el-input>
                   </div>
                   <div class="fundDataValue"><span>项目开展所需的小型专用仪器设备、工具、配件购置或租赁费用。</span></div>
                 </div>
@@ -404,12 +411,12 @@
                   <div class="fundDataValue">材料费</div>
                   <div class="fundDataValue">
                     <el-input
-                      type="textarea"
+                      type="number"
                       autosize
                       resize="none"
                       placeholder="材料费"
                       v-model.number="wordData['fund']['Material']"
-                      @change="convertNumber('Material',wordData['fund']['Material'])"></el-input>
+                      @change="getTotal"></el-input>
                   </div>
                   <div class="fundDataValue"><span>项目开展需消耗的各种原材料、辅助材料等低值易耗品的采购费用。</span></div>
                 </div>
@@ -418,12 +425,12 @@
                   <div class="fundDataValue">测试化验加工费</div>
                   <div class="fundDataValue">
                     <el-input
-                      type="textarea"
+                      type="number"
                       autosize
                       resize="none"
                       placeholder="测试化验加工费"
                       v-model.number="wordData['fund']['processing']"
-                      @change="convertNumber('processing',wordData['fund']['processing'])"></el-input>
+                      @change="getTotal"></el-input>
                   </div>
                   <div class="fundDataValue"><span>项目开展过程中支付给外单位的检验、测试、化验、计算、分析及加工费等费用。</span></div>
                 </div>
@@ -432,12 +439,12 @@
                   <div class="fundDataValue">项目协作费</div>
                   <div class="fundDataValue">
                     <el-input
-                      type="textarea"
+                      type="number"
                       autosize
                       resize="none"
                       placeholder="项目协作费"
                       v-model.number="wordData['fund']['Collaboration']"
-                      @change="convertNumber('Collaboration',wordData['fund']['Collaboration'])"></el-input>
+                      @change="getTotal"></el-input>
                   </div>
                   <div class="fundDataValue"><span>按合同规定支付给协作单位的费用</span></div>
                 </div>
@@ -452,12 +459,12 @@
                   <div class="fundDataValue">项目成果鉴定费</div>
                   <div class="fundDataValue">
                     <el-input
-                      type="textarea"
+                      type="number"
                       autosize
                       resize="none"
                       placeholder="项目成果鉴定费"
                       v-model.number="wordData['fund']['APPRAISAL']"
-                      @change="convertNumber('APPRAISAL',wordData['fund']['APPRAISAL'])"></el-input>
+                      @change="getTotal"></el-input>
                   </div>
                   <div class="fundDataValue"><span>学术会务费、评审费、鉴定费、成果集制作费等费用。</span></div>
                 </div>
@@ -466,12 +473,12 @@
                   <div class="fundDataValue">参展参赛费</div>
                   <div class="fundDataValue">
                     <el-input
-                      type="textarea"
+                      type="number"
                       autosize
                       resize="none"
                       placeholder="参展参赛费"
                       v-model.number="wordData['fund']['entery']"
-                      @change="convertNumber('entery',wordData['fund']['entery'])"></el-input>
+                      @change="getTotal"></el-input>
                   </div>
                   <div class="fundDataValue"><span>参加创客展会、竞赛等所需的报名费、展位费、布展费、宣传推广费及差旅费等费用。</span></div>
                 </div>
@@ -480,12 +487,12 @@
                   <div class="fundDataValue">创客交流活动费</div>
                   <div class="fundDataValue">
                     <el-input
-                      type="textarea"
+                      type="number"
                       autosize
                       resize="none"
                       placeholder="创客交流活动费"
                       v-model.number="wordData['fund']['activities']"
-                      @change="convertNumber('activities',wordData['fund']['activities'])"></el-input>
+                      @change="getTotal"></el-input>
                   </div>
                   <div class="fundDataValue"><span>创客交流活动中支付给校外专家的指导费、咨询费、授课费等费用。</span></div>
                 </div>
@@ -494,12 +501,12 @@
                   <div class="fundDataValue">知识产权事务费</div>
                   <div class="fundDataValue">
                     <el-input
-                      type="textarea"
+                      type="number"
                       autosize
                       resize="none"
                       placeholder="知识产权事务费"
                       v-model.number="wordData['fund']['Transaction']"
-                      @change="convertNumber('Transaction',wordData['fund']['Transaction'])">
+                      @change="getTotal">
                     </el-input>
                   </div>
                   <div class="fundDataValue"><span>论文版面费、专利及其他知识产权事务等费用。</span></div>
@@ -584,6 +591,7 @@ import {getNowDate} from '@/components/tool/Date.js'
           Transforming:"",//学生创客团队孵化、转化创业项目情况
           condition:"",//立 项基 础及条 件
           fund:{
+            total:"",
             device:"",
             Material:"",
             processing:"",
@@ -801,11 +809,9 @@ import {getNowDate} from '@/components/tool/Date.js'
       DelStudent(index){
         this.wordData['student'].splice(index,1)
       },
-      convertNumber(type,str){
-        if(typeof str=='string'){
-          this.wordData['fund'][type] = Number(str.replace(/\D/g,''));
-        }
-        
+      getTotal(){
+        this.wordData['fund']['total'] = Number(this.wordData['fund']['device'])+Number(this.wordData['fund']['Material'])+Number(this.wordData['fund']['processing'])+Number(this.wordData['fund']['Collaboration'])+Number(this.wordData['fund']['APPRAISAL'])+Number(this.wordData['fund']['entery'])+Number(this.wordData['fund']['activities'])+Number(this.wordData['fund']['Transaction'])
+        this.wordData['fund']['total'] = this.wordData['fund']['total']/10000
       }
     },
     mounted(){
@@ -1011,7 +1017,8 @@ import {getNowDate} from '@/components/tool/Date.js'
         flex-direction: column;
         .chaptersValue{
           flex: 1;
-          min-height:200px;
+          height: auto;
+          // min-height:200px;
           box-sizing: border-box;
           border-bottom: solid 1px black;
           padding: 5px;
@@ -1122,16 +1129,7 @@ import {getNowDate} from '@/components/tool/Date.js'
         }
       }
     }
-    // .fundTable{
-    //   tr{
-    //     td{
-    //       height: 50px;
-    //     }
-    //     &:nth-child(1){
-    //       flex: 1;
-    //     }
-    //   }
-    // }
+
     .opinion{
       display: flex;
       .opinionLabel{
@@ -1186,6 +1184,12 @@ import {getNowDate} from '@/components/tool/Date.js'
     box-sizing: border-box;
     border: none;
     outline: none;
+    &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{
+      -webkit-appearance: none !important;
+    }
+    &[type='number'] {
+      -moz-appearance: textfield;
+    }
   }
   :deep(.el-textarea__inner){
     height: 100%;
@@ -1211,20 +1215,14 @@ import {getNowDate} from '@/components/tool/Date.js'
   :deep(.el-input__suffix){
     display:none;
   }
-  // .InputDiv{
-  //   width: 100%;
-  //   height: 100%;
-  //   word-break: break-all;
-  //   display: flex;
-  //   justify-content: center;
-  //   align-items: center;
-  //   box-sizing: border-box;
-  //   padding: 10px;
-  //   outline: none;
-  //   &:focus{
-  //     border:solid 1px #409eff ;
-  //   }
-  // }
+  //去除input number样式
+  input::-webkit-outer-spin-button,
+  input::-webkit-inner-spin-button {
+    -webkit-appearance: none !important;
+  }
+  input[type='number'] {
+    -moz-appearance: textfield;
+  }
   .fontBold{
     font-weight:bold;
   }

+ 2 - 1
src/components/MakerSpaceWordShow.vue

@@ -238,7 +238,7 @@
               <div class="fundTable">
                 <div class="fundTotal">
                   <div class="fundLabel">总经费</div>
-                  <div class="fundValue">{{Number(wordData['fund']['device'])+Number(wordData['fund']['Material'])+Number(wordData['fund']['processing'])+Number(wordData['fund']['Collaboration'])+Number(wordData['fund']['APPRAISAL'])+Number(wordData['fund']['entery'])+Number(wordData['fund']['activities'])+Number(wordData['fund']['Transaction'])}}元</div>
+                  <div class="fundValue">{{wordData['fund']['total']}}元</div>
                 </div>
                 <div class="fundHeader">
                   <div class="HeaderLabel">支出类别</div>
@@ -447,6 +447,7 @@
               Transforming:"学生创客团队孵化、转化创业项目情况",//学生创客团队孵化、转化创业项目情况
               condition:"立项基础及条件",//立 项基 础及条 件
               fund:{
+                total:1401,
                 device:200,
                 Material:100,
                 processing:200,

+ 131 - 12
src/components/markerFundWord.vue

@@ -5,7 +5,7 @@
             <div class="wordTitle">创客专项资金及项目申请表(个人创客)</div>
             <div class="date">申请日期:{{wordData.applicationDate}}</div>
         </div>
-        <table border="1" cellspacing="0" class="table">
+        <table border="1" cellspacing="0" class="table" cellpadding="0">
             <tr>
                 <td colspan="4">项目名称</td><td colspan="13">
                     <el-input
@@ -74,15 +74,17 @@
                 </td>
             </tr>
             <tr>
-                <td colspan="4">项目组人数</td><td colspan="2" v-text="wordData['member'].length"></td>
-                <td colspan="3">参与学生人数</td><td colspan="2">
+                <td colspan="4">项目组人数</td><td colspan="3" v-text="wordData['member'].length"></td>
+                <td colspan="2">参与学生人数</td><td colspan="3">
                   <el-input
-                    type="number"
+                    type="textarea"
+                    autosize
+                    resize="none"
                     placeholder="请输入学生人数"
                     v-model="wordData['student']">
                   </el-input>
                 </td>
-                <td colspan="3">预算总经费</td><td colspan="3"></td>
+                <td colspan="2">预算总经费</td><td colspan="3">{{ wordData['fund']['total'] }}元</td>
             </tr>
             <tr>
                 <td colspan="2" :rowspan="wordData['member'].length+1"><p>项</p> <p>目</p> <p>组</p> <p>成</p> <p>员</p></td><td colspan="2">姓名</td><td colspan="3">工作单位/部门</td><td colspan="10">项目分工</td>
@@ -190,16 +192,16 @@
                 </td>
             </tr>
             <tr>
-                <td rowspan="11"><p>预</p> <p>算</p> <p>经</p> <p>费</p></td>
+                <td rowspan="14"><p>预</p> <p>算</p> <p>经</p> <p>费</p></td>
             </tr>
             <tr>
-                <td rowspan="4" style="border-left: none;">总经费</td><td rowspan="4" colspan="2" >元</td>
+                <td rowspan="4" style="border-left: none;">总经费</td><td rowspan="4" colspan="2" >{{wordData['fund']['total']}}元</td>
             </tr>
             <tr>
                 <td colspan="12" style="border-left: none;">经费月支出计划</td>
             </tr>
             <tr>
-                <td style="border-left: none;">1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td><td>10</td><td>11</td><td>12</td>
+                <td style="border-left: none;">1个月</td><td>2个月</td><td>3个月</td><td>4个月</td><td>5个月</td><td>6个月</td><td>7个月</td><td>8个月</td><td>9个月</td><td>10个月</td><td>11个月</td><td>12个月</td>
             </tr>
             <tr>
                 <td v-for="(item,index) in 12" :key="index+'a'" style="border-left: none;">
@@ -208,14 +210,123 @@
                     autosize
                     style="width: 100%;"
                     resize="none"
-                    v-model="input">
+                    v-model.number="input">
                   </el-input>
                 </td>
             </tr>
             <tr>
-                <td colspan="4" style="border-left: none;">支出类别</td><td colspan="5">支出项目</td><td colspan="4">金额(元)</td><td colspan="2">备注</td>
+                <td colspan="4" style="border-left: none;">支出类别</td><td colspan="4">支出项目</td><td colspan="2">金额(元)</td><td colspan="5">备注</td>
+            </tr>
+            <tr>
+              <td rowspan="4" colspan="4" style="border-left: none;">直接经费</td>
+              <td colspan="4">小型仪器设备费</td>
+              <td colspan="2">
+                <el-input
+                      type="textarea"
+                      autosize
+                      resize="none"
+                      placeholder="小型仪器设备费"
+                      v-model.number="wordData['fund']['device']"
+                      @change="convertNumber('device',wordData['fund']['device'])"></el-input>
+              </td>
+              <td colspan="5">
+                项目开展所需的小型专用仪器设备、工具、配件购置或租赁费用。
+              </td>
+            </tr>
+            <tr>
+              <td colspan="4" style="border-left: none;">材料费</td>
+              <td colspan="2">
+                <el-input
+                      type="textarea"
+                      autosize
+                      resize="none"
+                      placeholder="材料费"
+                      v-model.number="wordData['fund']['Material']"
+                      @change="convertNumber('Material',wordData['fund']['Material'])"></el-input>
+              </td>
+              <td colspan="5">项目开展需消耗的各种原材料、辅助材料等低值易耗品的采购费用。</td>
+            </tr>
+            <tr>
+              <td colspan="4" style="border-left: none;">测试化验加工费</td>
+              <td colspan="2">
+                <el-input
+                      type="textarea"
+                      autosize
+                      resize="none"
+                      placeholder="测试化验加工费"
+                      v-model.number="wordData['fund']['processing']"
+                      @change="convertNumber('processing',wordData['fund']['processing'])"></el-input>
+              </td>
+              <td colspan="5">项目开展过程中支付给外单位的检验、测试、化验、计算、分析及加工费等费用。</td>
+            </tr>
+            <tr>
+              <td colspan="4" style="border-left: none;">项目协作费</td>
+              <td colspan="2">
+                <el-input
+                      type="textarea"
+                      autosize
+                      resize="none"
+                      placeholder="项目协作费"
+                      v-model.number="wordData['fund']['Collaboration']"
+                      @change="convertNumber('Collaboration',wordData['fund']['Collaboration'])"></el-input>
+              </td>
+              <td colspan="5">按合同规定支付给协作单位的费用</td>
+            </tr>
+            <tr>
+              <td rowspan="4" colspan="4" style="border-left: none;">间接经费</td>
+              <td colspan="4">项目成果鉴定费</td>
+              <td colspan="2">
+                <el-input
+                      type="textarea"
+                      autosize
+                      resize="none"
+                      placeholder="项目成果鉴定费"
+                      v-model.number="wordData['fund']['APPRAISAL']"
+                      @change="convertNumber('APPRAISAL',wordData['fund']['APPRAISAL'])"></el-input>
+              </td>
+              <td colspan="5">学术会务费、评审费、鉴定费、成果集制作费等费用。</td>
+            </tr>
+            <tr>
+              <td colspan="4" style="border-left: none;">参展参赛费</td>
+              <td colspan="2">
+                <el-input
+                      type="textarea"
+                      autosize
+                      resize="none"
+                      placeholder="参展参赛费"
+                      v-model.number="wordData['fund']['entery']"
+                      @change="convertNumber('entery',wordData['fund']['entery'])"></el-input>
+              </td>
+              <td colspan="5">参加创客展会、竞赛等所需的报名费、展位费、布展费、宣传推广费及差旅费等费用。</td>
+            </tr>
+            <tr>
+              <td colspan="4" style="border-left: none;">创客交流活动费</td>
+              <td colspan="2">
+                <el-input
+                      type="textarea"
+                      autosize
+                      resize="none"
+                      placeholder="创客交流活动费"
+                      v-model.number="wordData['fund']['activities']"
+                      @change="convertNumber('activities',wordData['fund']['activities'])"></el-input>
+              </td>
+              <td colspan="5">创客交流活动中支付给校外专家的指导费、咨询费、授课费等费用。</td>
+            </tr>
+            <tr>
+              <td colspan="4" style="border-left: none;">知识产权事务费</td>
+              <td colspan="2">
+                <el-input
+                      type="textarea"
+                      autosize
+                      resize="none"
+                      placeholder="知识产权事务费"
+                      v-model.number="wordData['fund']['Transaction']"
+                      @change="convertNumber('Transaction',wordData['fund']['Transaction'])">
+                    </el-input>
+              </td>
+              <td colspan="5">论文版面费、专利及其他知识产权事务等费用。</td>
             </tr>
-            <tr v-for="(item,index) in 5" :key="index">
+            <!-- <tr v-for="(item,index) in 5" :key="index">
                 <td colspan="4" style="border-left: none;">
                   <el-input
                         type="textarea"
@@ -250,7 +361,7 @@
                         v-model="input">
                     </el-input>
                     </td>
-            </tr>
+            </tr> -->
 
 
             <tr>
@@ -332,6 +443,7 @@
               incubate:"",//项目预期孵化、转化创业项目情况
               ImplementationPlan:"",//项目实施计划
               fund:{
+                total:0,
                 device:"",
                 Material:"",
                 processing:"",
@@ -516,6 +628,13 @@
           //     .post(this.$store.state.api+'/SelectAllType',param)
           //     .then(err,res)
           },
+          convertNumber(type,str){
+          if(typeof str=='string'){
+              this.wordData['fund'][type] = Number(str.replace(/\D/g,''));
+            }
+            this.wordData['fund']['total'] = Number(this.wordData['fund']['device'])+Number(this.wordData['fund']['Material'])+Number(this.wordData['fund']['processing'])+Number(this.wordData['fund']['Collaboration'])+Number(this.wordData['fund']['APPRAISAL'])+Number(this.wordData['fund']['entery'])+Number(this.wordData['fund']['activities'])+Number(this.wordData['fund']['Transaction'])
+
+          }
           
         },
         computed:{   //经费总合

+ 486 - 225
src/components/markeractivityWord.vue

@@ -6,6 +6,19 @@
             <div class="date">申请日期:{{wordData.applicationDate}}</div>
         </div>
         <table border="1" cellspacing="0" class="table">
+            <tr>
+              <td colspan="4">关联项目</td>
+              <td colspan="12">
+                <el-select v-model="wordData['associatedProjects']" @change="checkProjectMoney()" style="width: 100%;" placeholder="请选择关联项目(无关联项目可为空)">
+                  <el-option
+                    v-for="item in ProjectData"
+                    :key="item.courseId"
+                    :label="item.title"
+                    :value="item.courseId">
+                  </el-option>
+                </el-select>
+              </td>
+            </tr>
             <tr>
                 <td colspan="4">活动名称</td>
                 <td colspan="5">
@@ -13,8 +26,8 @@
                         type="textarea"
                         autosize
                         resize="none"
-                        placeholder="请输入项目名称"
-                        v-model="input">
+                        placeholder="请输入活动名称"
+                        v-model="wordData['activityName']">
                     </el-input>
                 </td>
                 <td colspan="3">预算经费</td>
@@ -24,7 +37,7 @@
                         autosize
                         resize="none"
                         placeholder="请输入预算经费"
-                        v-model="input">
+                        v-model="total">
                     </el-input>
                 </td>
             </tr>
@@ -35,60 +48,78 @@
                         autosize
                         resize="none"
                         placeholder="请输入负责人"
-                        v-model="input">
+                        v-model="wordData['pro_leader']">
                     </el-input>
                 </td><td colspan="2">所在部门</td><td colspan="3">
-                    <el-input
+                    <!-- <el-input
                         type="textarea"
                         autosize
                         resize="none"
                         placeholder="请输入所在部门"
-                        v-model="input">
-                    </el-input>
+                        v-model="wordData['college']">
+                    </el-input> -->
+                    <el-select v-model="wordData['college']" style="width: 100%;" placeholder="请选择所在学院">
+                      <el-option
+                        v-for="item in DepartmentData"
+                        :key="item.id"
+                        :label="item.name"
+                        :value="item.id">
+                      </el-option>
+                    </el-select>
                 </td><td colspan="2">联系电话</td><td colspan="3">
                     <el-input
                         type="textarea"
                         autosize
                         resize="none"
                         placeholder="请输入联系电话"
-                        v-model="input">
+                        v-model="wordData['tel']">
                     </el-input>
                 </td>
             </tr>
             <tr>
                 <td colspan="4">活动时间</td>
                 <td colspan="5">
-                    <el-date-picker
-                        v-model="wordData.endTime"
+                  <el-date-picker
+                    v-model="wordData['activityTime']"
+                    type="daterange"
+                    value-format="yyyy-MM-dd HH:mm:ss"
+                    range-separator="至"
+                    prefix-icon="none"
+                    start-placeholder="项目起始时间"
+                    end-placeholder="项目完成时间">
+                  </el-date-picker>
+                    <!-- <el-date-picker
+                        v-model="wordData['']"
                         type="date"
                         placeholder="请选择活动时间"
                         prefix-icon="none"
                         value-format="yyyy-MM-dd HH:mm:ss">
-                    </el-date-picker>
+                    </el-date-picker> -->
                 </td>
                 <td colspan="3">参与学生人数</td><td colspan="5">
                     <el-input
                         type="number"
                         autosize
+                        :min="0"
                         style="width: 100%;"
                         resize="none"
-                        placeholder=""
-                        v-model="input">
+                        placeholder="请输入参与学生人数"
+                        v-model="wordData['student']">
                       </el-input>
                 </td>
             </tr>
             
             <tr>
-                <td colspan="2" rowspan="6"><p>活</p> <p>动</p> <p>指</p> <p>导</p> <p>老</p> <p>师</p></td><td colspan="2">姓名</td><td colspan="3">工作单位/部门</td><td colspan="9">项目分工</td>
+                <td colspan="2" :rowspan="wordData['member'].length+1"><p>活</p> <p>动</p> <p>指</p> <p>导</p> <p>老</p> <p>师</p></td><td colspan="2">姓名</td><td colspan="3">工作单位/部门</td><td colspan="9">项目分工</td>
             </tr>
-            <tr v-for="(item,index) in wordData.member" :key="index+'b'">
+            <tr v-for="(item,index) in wordData['member']" :key="index+'b'">
                 <td colspan="2" style="border-left: none;">
                     <el-input
                         type="textarea"
                         autosize
                         resize="none"
                         placeholder="请输入姓名"
-                        v-model="input">
+                        v-model="item['name']">
                     </el-input>
                 </td><td colspan="3">
                     <el-input
@@ -96,7 +127,7 @@
                         autosize
                         resize="none"
                         placeholder="请输入工作单位/部门"
-                        v-model="input">
+                        v-model="item['collage']">
                     </el-input>
                 </td><td colspan="10">
                     <el-input
@@ -104,9 +135,13 @@
                         autosize
                         resize="none"
                         placeholder="请输入项目分工"
-                        v-model="input">
+                        v-model="item['work']">
                     </el-input>
                 </td>
+                <div class="operate">
+                  <el-button @click="addPerson" v-if="wordData['member'].length-1==index" type="primary" size="mini">添加</el-button>
+                  <el-button @click="DelPerson(index)" type="primary" size="mini">删除</el-button>
+                </div>
             </tr>
             <tr class="textLeft">
                 <td colspan="2"><p>活动</p><br> <p>计划</p></td><td style="text-align: left;" colspan="15">
@@ -115,7 +150,7 @@
                       :rows="12"
                       style="width: 100%;"
                       resize="none"
-                      v-model="input">
+                      v-model="wordData['activityPlan']">
                     </el-input>
                 </td>
             </tr>
@@ -126,7 +161,7 @@
                       :rows="10"
                       style="width: 100%;"
                       resize="none"
-                      v-model="input">
+                      v-model="wordData['expectations']">
                     </el-input>
                 </td>
             </tr>
@@ -138,7 +173,7 @@
                       :rows="12"
                       style="width: 100%;"
                       resize="none"
-                      v-model="input">
+                      v-model="wordData['eventAudience']">
                     </el-input>
                 </td>
             </tr>
@@ -163,37 +198,149 @@
                       :rows="10"
                       style="width: 100%;"
                       resize="none"
-                      v-model="input">
+                      v-model="wordData['fundingPlan']">
                     </el-input>
                 </td>
             </tr>
             <tr>
-                <td rowspan="11"><p>预</p> <p>算</p> <p>经</p> <p>费</p></td>
+                <td rowspan="14"><p>预</p> <p>算</p> <p>经</p> <p>费</p></td>
             </tr>
             <tr>
-                <td rowspan="4" style="border-left: none;">总经费</td><td rowspan="4" colspan="2" >元</td>
+                <td rowspan="4" style="border-left: none;">总经费</td><td rowspan="4" colspan="2" >{{total}}元</td>
             </tr>
             <tr>
-                <td colspan="12" style="border-left: none;">经费月支出计划</td>
+                <td colspan="12" style="border-left: none;">经费月支出计划 (元)</td>
             </tr>
             <tr>
-                <td style="border-left: none;">1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td><td>10</td><td>11</td><td>12</td>
+              <td style="border-left: none;">1个月</td><td>2个月</td><td>3个月</td><td>4个月</td><td>5个月</td><td>6个月</td><td>7个月</td><td>8个月</td><td>9个月</td><td>10个月</td><td>11个月</td><td>12个月</td>
             </tr>
             <tr>
-                <td v-for="(item,index) in 12" :key="index+'a'" style="border-left: none;">
+                <td v-for="(item,index) in wordData['expenditureMothPlan']" :key="index" style="border-left: none;">
                   <el-input
                     type="number"
                     autosize
+                    min="0"
                     style="width: 100%;"
                     resize="none"
-                    v-model="input">
+                    v-model.number="wordData['expenditureMothPlan'][index]"
+                    @input="checkExpenditureMothPlan(index)">
                   </el-input>
                 </td>
             </tr>
             <tr>
-                <td colspan="4" style="border-left: none;">支出类别</td><td colspan="5">支出项目</td><td colspan="4">金额(元)</td><td colspan="2">备注</td>
+                <td colspan="4" style="border-left: none;">支出类别</td><td colspan="4">支出项目</td><td colspan="2">金额(元)</td><td colspan="5">备注</td>
             </tr>
-            <tr v-for="(item,index) in wordData.member" :key="index">
+            <tr>
+              <td rowspan="4" colspan="4" style="border-left: none;">直接经费</td>
+              <td colspan="4">小型仪器设备费</td>
+              <td colspan="2">
+                <el-input
+                      type="number"
+                      autosize
+                      resize="none"
+                      placeholder="小型仪器设备费"
+                      v-model.number="wordData['fund']['device']"
+                      @change="checkProjectFund(device)"
+                      ></el-input>
+              </td>
+              <td colspan="5">
+                项目开展所需的小型专用仪器设备、工具、配件购置或租赁费用。
+              </td>
+            </tr>
+            <tr>
+              <td colspan="4" style="border-left: none;">材料费</td>
+              <td colspan="2">
+                <el-input
+                      type="number"
+                      autosize
+                      resize="none"
+                      placeholder="材料费"
+                      v-model.number="wordData['fund']['Material']"
+                      @change="checkProjectFund('Material')"></el-input>
+              </td>
+              <td colspan="5">项目开展需消耗的各种原材料、辅助材料等低值易耗品的采购费用。</td>
+            </tr>
+            <tr>
+              <td colspan="4" style="border-left: none;">测试化验加工费</td>
+              <td colspan="2">
+                <el-input
+                      type="number"
+                      autosize
+                      resize="none"
+                      placeholder="测试化验加工费"
+                      @change="checkProjectFund('processing')"
+                      v-model.number="wordData['fund']['processing']"></el-input>
+              </td>
+              <td colspan="5">项目开展过程中支付给外单位的检验、测试、化验、计算、分析及加工费等费用。</td>
+            </tr>
+            <tr>
+              <td colspan="4" style="border-left: none;">项目协作费</td>
+              <td colspan="2">
+                <el-input
+                      type="number"
+                      autosize
+                      resize="none"
+                      placeholder="项目协作费"
+                      @change="checkProjectFund('Collaboration')"
+                      v-model.number="wordData['fund']['Collaboration']"></el-input>
+              </td>
+              <td colspan="5">按合同规定支付给协作单位的费用</td>
+            </tr>
+            <tr>
+              <td rowspan="4" colspan="4" style="border-left: none;">间接经费</td>
+              <td colspan="4">项目成果鉴定费</td>
+              <td colspan="2">
+                <el-input
+                      type="number"
+                      autosize
+                      resize="none"
+                      placeholder="项目成果鉴定费"
+                      @change="checkProjectFund('APPRAISAL')"
+                      v-model.number="wordData['fund']['APPRAISAL']"></el-input>
+              </td>
+              <td colspan="5">学术会务费、评审费、鉴定费、成果集制作费等费用。</td>
+            </tr>
+            <tr>
+              <td colspan="4" style="border-left: none;">参展参赛费</td>
+              <td colspan="2">
+                <el-input
+                      type="number"
+                      autosize
+                      resize="none"
+                      placeholder="参展参赛费"
+                      @change="checkProjectFund('entery')"
+                      v-model.number="wordData['fund']['entery']"></el-input>
+              </td>
+              <td colspan="5">参加创客展会、竞赛等所需的报名费、展位费、布展费、宣传推广费及差旅费等费用。</td>
+            </tr>
+            <tr>
+              <td colspan="4" style="border-left: none;">创客交流活动费</td>
+              <td colspan="2">
+                <el-input
+                      type="number"
+                      autosize
+                      resize="none"
+                      placeholder="创客交流活动费"
+                      @change="checkProjectFund('activities')"
+                      v-model.number="wordData['fund']['activities']"></el-input>
+              </td>
+              <td colspan="5">创客交流活动中支付给校外专家的指导费、咨询费、授课费等费用。</td>
+            </tr>
+            <tr>
+              <td colspan="4" style="border-left: none;">知识产权事务费</td>
+              <td colspan="2">
+                <el-input
+                      type="number"
+                      autosize
+                      resize="none"
+                      placeholder="知识产权事务费"
+                      @change="checkProjectFund('Transaction')"
+                      v-model.number="wordData['fund']['Transaction']">
+                    </el-input>
+              </td>
+              <td colspan="5">论文版面费、专利及其他知识产权事务等费用。</td>
+            </tr>
+            <!-- <tr v-for="(item,index) in wordData.member" :key="index">
                 <td colspan="4" style="border-left: none;">
                   <el-input
                         type="textarea"
@@ -228,18 +375,18 @@
                         v-model="input">
                     </el-input>
                     </td>
-            </tr>
+            </tr> -->
 
 
             <tr class="textLeft">
-                <td><p>所在部</p> <p>门意见</p></td><td colspan="15">
-                  <el-input
+                <td><p>所在部</p> <p>门意见</p></td><td colspan="15" style="height: 200px;">
+                  <!-- <el-input
                       type="textarea"
                       :rows="10"
                       style="width: 100%;"
                       resize="none"
                       v-model="input">
-                    </el-input>
+                    </el-input> -->
                     <div style="text-align: right;font-size: 18px;width: 80%;margin-bottom: 20px;">负责人签章:</div>
                     <div style="text-align: right;font-size: 18px;width: 90%;">年&nbsp;&nbsp;&nbsp; 月 &nbsp;&nbsp;&nbsp;日</div>
                 </td>
@@ -265,7 +412,7 @@
             <span>备注:</span>
             <span>如表格不够可顺延或另附页。</span>
             <div style="width: 300px;margin: 20px auto;display: flex;justify-content: space-between;">
-                <el-button style="width: 120px;margin: 20px auto;"  type="primary">提交项目</el-button>
+                <el-button @click="applyButton" style="width: 120px;margin: 20px auto;"  type="primary">提交项目</el-button>
                 <el-button style="width: 120px;margin: 20px auto;" type="primary">下载表单</el-button>
             </div>
           </div>
@@ -281,62 +428,43 @@
           return {
             // teacher:[],
             // student:[],
-            allFund:'',
-            input:"",
+            allFund:2000,
             DepartmentData:[],
-    
+            ProjectData:[],
             wordData:{
               applicationDate:getNowDate(1),//申请日期
-              projectName:'',
-              radio: '',
-              checkList:[],
-              schoolRadio:'',
-              applyParsonRadio:'',
-              applyParsonName:'',
-              college:'',
-              tel:'',
-              beginTime:'',
-              endTime:'',
+              associatedProjects:"",//关联项目
+              activityName:'',//项目名称
+              // money:"",//预算经费
+              pro_leader:"",//活动负责人
+              college: '',//所在学院
+              tel:'',//联系电话
+              activityTime:"",//活动时间
+              student:0,//参与学生人数
               member:[
-                {sort:'',project:'',fund:''},
-                {sort:'',project:'',fund:''},
-                {sort:'',project:'',fund:''},
-                {sort:'',project:'',fund:''},
-                {sort:'',project:'',fund:''},
-
-                
+                {name:"",collage:"",work:""},
+                {name:"",collage:"",work:""},
+                {name:"",collage:"",work:""},
+                {name:"",collage:"",work:""},
+                {name:"",collage:"",work:""},
               ],
-              fund:[
-                {name:'',collage:'',work:''},
-                {name:'',collage:'',work:''},
-              ],
-              brief:'',
-              introduce:{
-                back:'',
-                innovate:'',
-                path:'',
-                scene:'',
-                worth:'',
-                team:'',
-                cost:'',
-                expectResults:'',
-                expectResultsTeacher:'',
-                expectConversion:'',
-                plan:''
-              },
-              // fund:{
-              //   facility:'',
-              //   materials:'',
-              //   process:'',
-              //   assist:'',
-              //   authenticate:'',
-              //   match:'',
-              //   activity:'',
-              //   affair:''
-              // }
+              activityPlan:"",//活动计划
+              expectations:"",//预期目标
+              eventAudience:"",//活动受众面
+              fundingPlan:"",//经费支出计划
+              expenditureMothPlan:['','','','','','','','','','','',''],
+              fund:{
+                total:0,
+                device:"",
+                Material:"",
+                processing:"",
+                Collaboration:"",
+                APPRAISAL:"",
+                entery:"",
+                activities:"",
+                Transaction:"",
+              },//预算经费
             }
-              
-    
             //total:总经费     
             //小型仪器设备费:device        deviceRemarks
             //材料费:Material             MaterialRemarks
@@ -353,12 +481,12 @@
               let verify = /^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[189]))\d{8}$/; //获取正则表达式 存放到verify变量中
               let result = verify.test(value.trim()); //判断输入框内容是否符合 正则表达式
               if(!result) return this.$message.error('请输入正确联系号码格式')
-            },
-          addStudent(){   //添加学生
-            this.wordData.studentS.push({name:"",collage:"",work:""});
           },
-          DelStudent(index){   //删除学生
-            this.wordData.studentS.splice(index,1)
+          addPerson(){   //添加学生
+            this.wordData['member'].push({name:"",collage:"",work:""});
+          },
+          DelPerson(index){   //删除学生
+            this.wordData['member'].splice(index,1)
           },
           getProjectDepartmentData(){  //获取项目立项申请基础信息页面所在部门数据
             this.ajax.get(this.$store.state.api+'/SelectAllDepartment',{
@@ -369,157 +497,281 @@
               console.log(err);
             })
           },
-          submitWord(){
+          getProjectData(){//获取未完结的项目
+            this.ajax.get(this.$store.state.api+"/GetAllProjectName",{
+                uid:this.$store.state.userInfo.userid,
+            }).then(res=>{
+                this.ProjectData = res.data[0].filter(item=>item.isupload!=3 && item.isupload!=4 );
+            }).catch(err=>{
+                this.$message.error(err.message)
+            })
+          },
+          checkProjectFund(index){
+            if(this.wordData['associatedProjects']==''){
+              for(let i in this.wordData['fund'])this.wordData['fund'][i]='';
+              return this.$message.error("请先选择关联项目");
+            }
+            if(this.total>this.allFund){
+              this.wordData['fund'][index]=0;
+              return this.$message.error("活动总经费不能超过项目剩余总预算")
+            }
+          },
+          applyButton(){
             const cEmpty = /^\s*$/g;
-            for (let i in this.wordData){
-              // console.log(this.wordData[i],i);
+            const checkPhone = /^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[189]))\d{8}$/; //获取正则表达式 存放到verify变量中
+            for(let i in this.wordData){
               switch(i){
-                case 'projectName':
-                    if (cEmpty.test(this.wordData[i])) {
-                      this.$message.error('请输入项目名称')
-                      // this.$refs.projectName.style.background='rgb(236, 141, 141)'
-                      // setTimeout(() => {
-                      //   this.$refs.projectName.style.background='#ffffff'
-                      // }, 2000);
-                      document.querySelector('#projectName').scrollIntoView({ behavior: "smooth" });
-                      return false
-                    }
+                case "associatedProjects":
+                  if(cEmpty.test(this.wordData[i])){
+                    this.$message.error("请选择关联项目")
+                    return false;
+                  }
                   break;
-                case 'radio':
-                    if (cEmpty.test(this.wordData[i])) {
-                      this.$message.error('请选择项目分组')
-                      document.querySelector('#radio').scrollIntoView({ behavior: "smooth" });
-                      return false
-                    }
+                case "activityName":
+                  if(cEmpty.test(this.wordData[i])){
+                    this.$message.error("请输入活动名称")
+                    return false;
+                  }
                   break;
-                case 'checkList':
-                    if (this.wordData[i].length==0) {
-                      this.$message.error('优先支持项目')
-                      document.querySelector('#checkList').scrollIntoView({ behavior: "smooth" });
-                      return false
-                    }
-                break;
-                case 'schoolRadio':
-                    if (cEmpty.test(this.wordData[i])) {
-                      this.$message.error('请选择美丽校园改造项目')
-                      document.querySelector('#schoolRadio').scrollIntoView({ behavior: "smooth" });
-                      return false
-                    }
-                break;
-                case 'applyParsonRadio':
-                    if (cEmpty.test(this.wordData[i])) {
-                      this.$message.error('请选择项目申请人')
-                      document.querySelector('#applyParsonRadio').scrollIntoView({ behavior: "smooth" });
-                      return false
-                    }
-                break;
-                case 'applyParsonName':
-                    if (cEmpty.test(this.wordData[i])) {
-                      this.$message.error('请填写申请人姓名')
-                      document.querySelector('#applyParsonName').scrollIntoView({ behavior: "smooth" });
-                      return false
-                    }
-                break;
-                case 'college':
-                    if (cEmpty.test(this.wordData[i])) {
-                      this.$message.error('请选择所在学院')
-                      document.querySelector('#applyParsonName').scrollIntoView({ behavior: "smooth" });
-                      return false
-                    }
-                break;
-                case 'tel':
-                    if (cEmpty.test(this.wordData[i])) {
-                      this.$message.error('请填写联系方式')
-                      document.querySelector('#applyParsonName').scrollIntoView({ behavior: "smooth" });
-                      return false
-                    }
-                break;
-                case 'beginTime':
-                    if (cEmpty.test(this.wordData[i])) {
-                      this.$message.error('请选择项目起始时间')
-                      document.querySelector('#beginTime').scrollIntoView({ behavior: "smooth" });
-                      return false
-                    }
-                break;
-                case 'endTime':
-                    if (cEmpty.test(this.wordData[i])) {
-                      this.$message.error('请选择计划完成时间')
-                      document.querySelector('#beginTime').scrollIntoView({ behavior: "smooth" });
-                      return false
-                    }
-                break;
-                case 'studentS':
-                    // if(this.wordData[i].length<5){
-                    //   this.$message.error('学生团队应5人以上')
-                    //   document.querySelector('#studentS').scrollIntoView({ behavior: "smooth" });
-                    //   return false;
-                    // }else{
-                      let snum = 0;
-                      this.wordData[i].forEach(item=>{
-                        for(let j in item){
-                          if(cEmpty.test(item[j])){
-                            snum++;
-                          }
-                        }
-                      })
-                      if(snum>0){
-                        this.$message.error("请填完学生信息");
-                        document.querySelector('#studentS').scrollIntoView({ behavior: "smooth" });
-                        return false;
-                      }
-                    // }
-                break;
-                case 'teacherS':
-                      let num = 0;
-                      this.wordData[i].forEach(item=>{
-                        for(let j in item){
-                          if(cEmpty.test(item[j])){
-                            num++;
-                          }
+                case "pro_leader":
+                  if(cEmpty.test(this.wordData[i])){
+                    this.$message.error("请输入活动负责人")
+                    return false;
+                  }
+                  break;
+                case "college":
+                  if(cEmpty.test(this.wordData[i])){
+                    this.$message.error("请选择所在学院")
+                    return false;;
+                  }else if(!checkPhone.test(this.wordData[i])){
+                    this.$message.error("请输入正确的手机号");
+                    return false;
+                  }
+                  break;
+                case "tel":
+                  if(cEmpty.test(this.wordData[i])){
+                    this.$message.error("请输入联系电话")
+                    return false;
+                  }
+                  break;
+                case "activityTime":
+                  if(cEmpty.test(this.wordData[i][0])){
+                    this.$message.error("请选择活动时间")
+                    return false;;
+                  }
+                  break;
+                case "member":
+                    let num = 0;
+                    this.wordData[i].forEach(item=>{
+                      for(let j in item){
+                        if(cEmpty.test(item[j])){
+                          num++;
                         }
-                      })
-                      if(num>0){
-                        this.$message.error("请填完老师信息");
-                        document.querySelector('#teacherS').scrollIntoView({ behavior: "smooth" });
-                        return false;
                       }
-                break;
-                case 'brief':
-                    if (cEmpty.test(this.wordData[i])) {
-                      this.$message.error('请填写项目简介')
-                      // this.$refs.brief.style.background='rgb(236, 141, 141)'
-                      // setTimeout(() => {
-                      //   this.$refs.brief.style.background='#ffffff'
-                      // }, 2000);
-                      document.querySelector('#brief').scrollIntoView({ behavior: "smooth" });
-                      return false
+                    
+                    })
+                    if(num>0){
+                      this.$message.error("请填完指导老师信息");
+                      // document.querySelector('#five').scrollIntoView({ behavior: "smooth" });
+                      return false;
                     }
-                break;
-                case 'fund':
-                    let mon=this.wordData.fund.facility*1 + this.wordData.fund.materials*1+this.wordData.fund.process*1+ this.input*1+this.wordData.fund.authenticate*1+ this.wordData.fund.match*1+this.wordData.fund.activity*1+this.wordData.fund.affair*1
-                    if(mon==0){
-                      document.querySelector('#fund').scrollIntoView({ behavior: "smooth" });
-                      return this.$message.error('请输入经费')
-                    }
-                break;
+                  break;
+                case "activityPlan":
+                  if(cEmpty.test(this.wordData[i][0])){
+                    this.$message.error("请输入活动计划");
+                    return false;
+                  }
+                  break;
+                case "expectations":
+                  if(cEmpty.test(this.wordData[i][0])){
+                    this.$message.error("预期目标");
+                    return false;
+                  }
+                  break;
+                case "eventAudience":
+                  if(cEmpty.test(this.wordData[i][0])){
+                    this.$message.error("活动受众面")
+                    return false;
+                  }
+                  break;
+                case "fundingPlan":
+                  if(cEmpty.test(this.wordData[i][0])){
+                    this.$message.error("经费支出计划")
+                    return false;
+                  }
+                  break;
+
+
               }
             }
-          //   let param={
-          //     projectName
+            this.$message.success("验证成功")
+          },
+          // submitWord(){
+          //   const cEmpty = /^\s*$/g;
+          //   for (let i in this.wordData){
+          //     // console.log(this.wordData[i],i);
+          //     switch(i){
+          //       case 'projectName':
+          //           if (cEmpty.test(this.wordData[i])) {
+          //             this.$message.error('请输入项目名称')
+          //             // this.$refs.projectName.style.background='rgb(236, 141, 141)'
+          //             // setTimeout(() => {
+          //             //   this.$refs.projectName.style.background='#ffffff'
+          //             // }, 2000);
+          //             document.querySelector('#projectName').scrollIntoView({ behavior: "smooth" });
+          //             return false
+          //           }
+          //         break;
+          //       case 'radio':
+          //           if (cEmpty.test(this.wordData[i])) {
+          //             this.$message.error('请选择项目分组')
+          //             document.querySelector('#radio').scrollIntoView({ behavior: "smooth" });
+          //             return false
+          //           }
+          //         break;
+          //       case 'checkList':
+          //           if (this.wordData[i].length==0) {
+          //             this.$message.error('优先支持项目')
+          //             document.querySelector('#checkList').scrollIntoView({ behavior: "smooth" });
+          //             return false
+          //           }
+          //       break;
+          //       case 'schoolRadio':
+          //           if (cEmpty.test(this.wordData[i])) {
+          //             this.$message.error('请选择美丽校园改造项目')
+          //             document.querySelector('#schoolRadio').scrollIntoView({ behavior: "smooth" });
+          //             return false
+          //           }
+          //       break;
+          //       case 'applyParsonRadio':
+          //           if (cEmpty.test(this.wordData[i])) {
+          //             this.$message.error('请选择项目申请人')
+          //             document.querySelector('#applyParsonRadio').scrollIntoView({ behavior: "smooth" });
+          //             return false
+          //           }
+          //       break;
+          //       case 'applyParsonName':
+          //           if (cEmpty.test(this.wordData[i])) {
+          //             this.$message.error('请填写申请人姓名')
+          //             document.querySelector('#applyParsonName').scrollIntoView({ behavior: "smooth" });
+          //             return false
+          //           }
+          //       break;
+          //       case 'college':
+          //           if (cEmpty.test(this.wordData[i])) {
+          //             this.$message.error('请选择所在学院')
+          //             document.querySelector('#applyParsonName').scrollIntoView({ behavior: "smooth" });
+          //             return false
+          //           }
+          //       break;
+          //       case 'tel':
+          //           if (cEmpty.test(this.wordData[i])) {
+          //             this.$message.error('请填写联系方式')
+          //             document.querySelector('#applyParsonName').scrollIntoView({ behavior: "smooth" });
+          //             return false
+          //           }
+          //       break;
+          //       case 'beginTime':
+          //           if (cEmpty.test(this.wordData[i])) {
+          //             this.$message.error('请选择项目起始时间')
+          //             document.querySelector('#beginTime').scrollIntoView({ behavior: "smooth" });
+          //             return false
+          //           }
+          //       break;
+          //       case 'endTime':
+          //           if (cEmpty.test(this.wordData[i])) {
+          //             this.$message.error('请选择计划完成时间')
+          //             document.querySelector('#beginTime').scrollIntoView({ behavior: "smooth" });
+          //             return false
+          //           }
+          //       break;
+          //       case 'studentS':
+          //           // if(this.wordData[i].length<5){
+          //           //   this.$message.error('学生团队应5人以上')
+          //           //   document.querySelector('#studentS').scrollIntoView({ behavior: "smooth" });
+          //           //   return false;
+          //           // }else{
+          //             let snum = 0;
+          //             this.wordData[i].forEach(item=>{
+          //               for(let j in item){
+          //                 if(cEmpty.test(item[j])){
+          //                   snum++;
+          //                 }
+          //               }
+          //             })
+          //             if(snum>0){
+          //               this.$message.error("请填完学生信息");
+          //               document.querySelector('#studentS').scrollIntoView({ behavior: "smooth" });
+          //               return false;
+          //             }
+          //           // }
+          //       break;
+          //       case 'teacherS':
+          //             let num = 0;
+          //             this.wordData[i].forEach(item=>{
+          //               for(let j in item){
+          //                 if(cEmpty.test(item[j])){
+          //                   num++;
+          //                 }
+          //               }
+          //             })
+          //             if(num>0){
+          //               this.$message.error("请填完老师信息");
+          //               document.querySelector('#teacherS').scrollIntoView({ behavior: "smooth" });
+          //               return false;
+          //             }
+          //       break;
+          //       case 'brief':
+          //           if (cEmpty.test(this.wordData[i])) {
+          //             this.$message.error('请填写项目简介')
+          //             // this.$refs.brief.style.background='rgb(236, 141, 141)'
+          //             // setTimeout(() => {
+          //             //   this.$refs.brief.style.background='#ffffff'
+          //             // }, 2000);
+          //             document.querySelector('#brief').scrollIntoView({ behavior: "smooth" });
+          //             return false
+          //           }
+          //       break;
+          //       case 'fund':
+          //           let mon=this.wordData.fund.facility*1 + this.wordData.fund.materials*1+this.wordData.fund.process*1+ this.input*1+this.wordData.fund.authenticate*1+ this.wordData.fund.match*1+this.wordData.fund.activity*1+this.wordData.fund.affair*1
+          //           if(mon==0){
+          //             document.querySelector('#fund').scrollIntoView({ behavior: "smooth" });
+          //             return this.$message.error('请输入经费')
+          //           }
+          //       break;
+          //     }
           //   }
-          //   this.ajax
-          //     .post(this.$store.state.api+'/SelectAllType',param)
-          //     .then(err,res)
+          // //   let param={
+          // //     projectName
+          // //   }
+          // //   this.ajax
+          // //     .post(this.$store.state.api+'/SelectAllType',param)
+          // //     .then(err,res)
+          // },
+          checkExpenditureMothPlan(index){
+            let count = 0;
+            this.wordData['expenditureMothPlan'].forEach(item=>count+=Number(item))
+            if(count>this.total){
+              this.$message.error("总经费月支出计划不能大于总经费");
+              this.wordData['expenditureMothPlan'][index]=0;
+            }
           },
+          checkProjectMoney(){
+            this.$message.info("切换项目")
+          }
           
         },
         computed:{   //经费总合
-          reversedMessage: function () {
-            return (this.wordData.fund.facility*1 + this.wordData.fund.materials*1+this.wordData.fund.process*1+ this.input*1+this.wordData.fund.authenticate*1+ this.wordData.fund.match*1+this.wordData.fund.activity*1+this.wordData.fund.affair*1)/10000
+          total() {
+            let num = 0;
+            for(let i in this.wordData['fund'])num += Number(this.wordData['fund'][i]);
+            return num;
+            // return (this.wordData.fund.facility*1 + this.wordData.fund.materials*1+this.wordData.fund.process*1+ this.input*1+this.wordData.fund.authenticate*1+ this.wordData.fund.match*1+this.wordData.fund.activity*1+this.wordData.fund.affair*1)/10000
           }
         },
         mounted(){
-          this.getProjectDepartmentData()
+          this.getProjectDepartmentData();
+          this.getProjectData();
         }
       };
     </script>
@@ -566,7 +818,9 @@
             border: none;
             border-top: solid 1px black;
            
-            tr td{
+            tr{
+              position: relative;
+            td{
               border: none;
               border-bottom: solid 1px black;
               border-right: solid 1px black;
@@ -592,6 +846,12 @@
               }
               :deep(.el-input__inner){
                 border: none ;
+                &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{
+                  -webkit-appearance: none !important;
+                }
+                &[type='number'] {
+                  -moz-appearance: textfield;
+                }
                 
                 border-radius: 0px;
                 text-align: center;
@@ -599,6 +859,7 @@
               }
 
             }
+          }
             .textLeft{
               :deep(.el-textarea__inner){
                 // padding: 0;

+ 1 - 1
src/components/tool/getWord.js

@@ -189,7 +189,7 @@ function getMakerSpaceWord(wordData){
             // 将模板内容加载到 Docxtemplater 中
             const doc = new Docxtemplater().loadZip(zip);
             //处理数据
-            wordData['fund']['total'] = Number(wordData['fund']['device'])+Number(wordData['fund']['Material'])+Number(wordData['fund']['processing'])+Number(wordData['fund']['Collaboration'])+Number(wordData['fund']['APPRAISAL'])+Number(wordData['fund']['entery'])+Number(wordData['fund']['activities'])+Number(wordData['fund']['Transaction']);
+            // wordData['fund']['total'] = Number(wordData['fund']['device'])+Number(wordData['fund']['Material'])+Number(wordData['fund']['processing'])+Number(wordData['fund']['Collaboration'])+Number(wordData['fund']['APPRAISAL'])+Number(wordData['fund']['entery'])+Number(wordData['fund']['activities'])+Number(wordData['fund']['Transaction']);
             //模板数据
             let data = {
                 applicationDate:wordData['applicationDate'],

+ 2 - 3
src/views/Word.vue

@@ -5,11 +5,10 @@
          <!-- 学生项目立项 -->
         <studentProjectWord />   
 
-         <!-- 创客专项资金及项目申请表(个人创客) -->
-        <!-- <markerFundWord/>         -->
+  
 
          <!-- 创客专项资金及项目申请表(创客活动) -->
-        <!-- <markeractivityWord/> -->
+        <markeractivityWord/>
       </div>
      
     </div>

+ 84 - 27
src/views/home.vue

@@ -17,23 +17,43 @@
                   @open="handleOpen"
                   @close="handleClose"
                   :unique-opened="true">
-                  <div v-for="(item,ind) in navList" :key="ind">
-                    <el-submenu v-if="item.group.length" :index='ind.toString()'>
+                  <div class="submenu" v-for="(item,ind) in navList" :key="ind">
+                    <el-submenu v-if="item['group'].length" :index='ind.toString()' >
                       <template slot="title">
-                        <i :class="item.icon" style="margin-right: 15px;width: 15px;"></i>
-                        {{ item.label }}
+                        <div class="subTitle" @click="goto(item.goto)" :style="$route.path.indexOf(item.goto)!=-1?'color:#40aaff':''">
+                          <i :class="item.icon" style="margin-right: 15px;width: 15px;" :style="$route.path.indexOf(item.goto)!=-1?'color:#40aaff':''"></i>
+                          {{ item.label }}
+                        </div>
                       </template>
-                      <el-menu-item-group v-if="item.group.length">
-                        <el-menu-item  v-for="(i,num) in item.group" :key="num" :index='ind+"-"+num' @click="goto(i.goto)">
-                          <!-- <i :class="item.icon" style="margin-right: 15px;width: 15px;"></i> -->
-                          {{ i.label }}
+                      <div class="submenu" v-for="(item2,ind2) in item['group']" :key="ind2">
+                        <el-submenu v-if="item2['group']" :index="ind+'-'+ind2">
+                          <template slot="title" >
+                            <div class="subTitle" @click="goto(item2.goto)" :style="$route.path.indexOf(item2.goto)!=-1?'color:#40aaff':''">
+                              {{ item2.label }}
+                            </div>
+                          </template>
+                          <el-menu-item-group>
+                            <el-menu-item  v-for="(item3,ind3) in item2['group']" :key="ind3" :index='ind+"-"+ind2+"-"+ind3' @click="goto(item3.goto)">
+                              <div class="subTitle" :style="$route.path.indexOf(item3.goto)!=-1?'color:#40aaff':''">{{ item3.label }}</div>
+                            </el-menu-item>
+                          </el-menu-item-group>
+                        </el-submenu>
+                        <el-menu-item :index="ind2.toString()" v-else @click="goto(item2.goto)">
+                          <template slot="title">
+                            <div class="subTitle" :style="$route.path.indexOf(item2.goto)!=-1?'color:#40aaff':''">
+                              <i :class="item2.icon" style="margin-right: 15px;width: 15px;"></i>
+                              {{ item2.label }}
+                            </div>
+                          </template>
                         </el-menu-item>
-                      </el-menu-item-group>
+                      </div>
                     </el-submenu>
                     <el-menu-item :index="ind.toString()" v-else @click="goto(item.goto)">
                       <template slot="title">
-                          <i :class="item.icon" style="margin-right: 15px;width: 15px;"></i>
+                        <div class="subTitle" :style="$route.path.indexOf(item.goto)!=-1?'color:#40aaff':''">
+                          <i :class="item.icon" style="margin-right: 15px;width: 15px;" :style="$route.path.indexOf(item.goto)!=-1?'color:#40aaff':''"></i>
                           {{ item.label }}
+                        </div>
                       </template>
                     </el-menu-item>
                   </div>
@@ -59,9 +79,17 @@
       data() {
         return {
           navList:[
-            {id:1,label:"事前申报",icon:"iconfont icon-shuben",group:[{label:"项目立项申请",icon:"iconfont icon-shuben",goto:"/projectApplication"},{label:"活动申请",icon:"el-icon-wind-power",goto:"/makerActvity"}]},
-            // {id:2,label:"活动管理",goto:"/makerActvity",icon:"el-icon-wind-power",group:[]},
-            {id:1,label:"事后汇总",icon:"iconfont icon-zijinguanli",group:[{label:"创客活动资金申请",icon:"el-icon-wind-power",goto:"/makerfund"},{label:"非创客活动资金申请",icon:"el-icon-wind-power",goto:"/makerfund"}]},
+            {id:1,label:"项目立项申请",goto:"/projectApplication",icon:"iconfont icon-shuben",group:[
+              {label:"创客空间",goto:"/projectApplication"},
+              {label:"创客项目",goto:"/makerActvity"},
+              {label:"活动申请",icon:"el-icon-wind-power",goto:"/makerActvity",group:[
+                {label:"创客活动",icon:"iconfont icon-shuben",goto:"/makerActvity"},
+                {label:"个人创客",icon:"iconfont icon-shuben",goto:"/makerActvity"},
+              ]}]},
+            {id:2,label:"事后汇总",goto:"/makerfund",icon:"iconfont icon-zijinguanli",group:[
+              {label:"创客活动资金申请",goto:"/makerfund"},
+              {label:"个人创客资金申请",goto:"/makerfund"}
+            ]},
             // {id:3,label:"资金使用管理",goto:"/makerfund",icon:"iconfont icon-zijinguanli",group:[]},
             {id:4,label:"项目管理",goto:"/ProjectManagement",icon:"el-icon-receiving",group:[]},
             {id:5,label:"项目结项",goto:"/projectSettlement",icon:"iconfont icon-_yuanhuanchong",group:[]},
@@ -77,6 +105,7 @@
         goto(url){
           // console.log(this.$route.path);
           this.$router.push(url)
+          console.log('1111')
         },
         homeExit(){
         // console.log(this.$route.path)
@@ -161,21 +190,49 @@
         width: 100%;
       }
     }
-:deep(.el-submenu){
-  .el-submenu__title{
-      padding-left: 20% !important;
-  }
-  .el-menu{
-    .el-menu-item{
-      // background-color: blue;
-      padding-left: 20% !important;
-    }
-    // padding-left: 25% !important;
+    // .submenu{
+    //   :deep(.el-submenu){
+    //     // .el-submenu__title{
+    //     //     padding-left: 20% !important;
+    //     // }
+    //     .el-submenu{
+    //       .el-menu{
+    //       .el-menu-item{
+    //         // background-color: blue;
+    //         padding-left: 26% !important;
+    //       }
+    //       // padding-left: 25% !important;
+    //       }
+    //     }
+    //     .el-menu{
+    //       .el-menu-item{
+    //         // background-color: blue;
+    //         padding-left: 20% !important;
+    //       }
+    //       // padding-left: 25% !important;
+    //     }
+    //   }
+//       :deep(.el-menu-item){
+//         padding-left: 20% !important;
+//         // background-color: red;
+//       }
+// }
+.subTitle{
+  width: 100%;
+  height: 100%;
+  display: flex;
+  align-items: center;
+  box-sizing: border-box;
+  padding-left: 20%;
+  // background-color: red;
+}
+:deep(.el-menu-item.is-active){
+  color: #333 !important;
+  i{
+    color: #909399;
   }
 }
 
-:deep(.el-menu-item){
-  padding-left: 20% !important;
-  // background-color: red;
-}
+
+
 </style>

+ 9 - 2
src/views/test.vue

@@ -3,7 +3,10 @@
   <div v-loading="loading" id="test">
     <div class="word">
       <!-- <MakerSpaceWord/> -->
-      <MakerSpaceWordShow/>
+      <!-- <MakerSpaceWordShow/> -->
+      <!-- 创客专项资金及项目申请表(个人创客) -->
+      <!-- <markerFundWord/> -->
+      <markeractivityWord/>   
     </div>
 
     <!-- <div>
@@ -28,11 +31,15 @@ import BeUpload from "../components/tool/beUpload.vue";
 import getExcel from "@/components/tool/getExcel";
 import MakerSpaceWord from '@/components/MakerSpaceWord.vue'
 import MakerSpaceWordShow from '@/components/MakerSpaceWordShow.vue'
+import markerFundWord from '@/components/markerFundWord.vue'
+import markeractivityWord from '@/components/markeractivityWord.vue'
 export default {
   components: {
     BeUpload,
     MakerSpaceWord,
     MakerSpaceWordShow,
+    markerFundWord,
+    markeractivityWord,
   },
   data() {
     return {
@@ -59,7 +66,7 @@ export default {
   justify-content: center;
 }
 .word{
-  width: 1200px;
+  width: 1600px;
   margin-left: 40px;
   height: auto;
 }