sunyanqiang 3 лет назад
Родитель
Сommit
bd0964ee9c

+ 35 - 21
src/components/look_word/bdgldiary.vue

@@ -81,7 +81,7 @@
           <td class="JR_left" style="font-family: '宋体'">实到</td>
           <td class="JR_left" width="52" style="font-family: '宋体'">到课率</td>
         </tr>
-        <tr v-for="(item, i) in message.contextData" :key="i + '  '">
+        <tr v-for="(item, i) in message.contextData" :key="i + '     '">
           <td height="88">{{item.dateline}}</td>
           <td align="left" colspan="9" v-html="aaa(item.contents)"></td>
           <td>{{item.shouldArrive}}</td>
@@ -175,7 +175,7 @@
             <span align="center">{{ item.dialogue }}</span>
           </td>
         </tr>
-        <tr v-for="index in chapu.list" :key="index + '  '" class="JR_tr" style="font-family: '仿宋'">
+        <tr v-for="index in chapu.list" :key="index + ''" class="JR_tr" style="font-family: '仿宋'">
           <td class="JR_right" height="33">
           </td>
           <td class="JR_right">
@@ -318,7 +318,7 @@
             v-html="message.invalid">
           </td>
         </tr>
-        <tr style="font-family: '仿宋'" class="JR_tr" v-for="(item1, i) in message.kinsfolk" :key="i + ''">
+        <tr style="font-family: '仿宋'" class="JR_tr" v-for="(item1, i) in message.kinsfolk" :key="i + ' '">
           <td class="JR_right" height="33">
             <span align="center">{{ item1.peopleName }}</span>
           </td>
@@ -336,7 +336,7 @@
             <span align="center">{{ item1.leaveDate }}</span>
           </td>
         </tr>
-        <tr style="font-family: '仿宋'" class="JR_tr" v-for="i in qinshu.list" :key="i + ''">
+        <tr style="font-family: '仿宋'" class="JR_tr" v-for="i in qinshu.list" :key="i + '  '">
           <td class="JR_right" height="33">
           </td>
           <td class="JR_right">
@@ -389,7 +389,7 @@
             时(天)数
           </td>
         </tr>
-        <tr class="JR_tr" style="font-family: '仿宋'" v-for="(item, i) in message.bdglLeaves" :key="i">
+        <tr class="JR_tr" style="font-family: '仿宋'" v-for="(item, i) in message.bdglLeaves" :key="i+'   '">
           <td class="JR_right">
             <p align="center">{{ item.peopleName }}</p>
           </td>
@@ -417,7 +417,7 @@
             <p align="center">{{ guiTime[i] }}</p>
           </td>
         </tr>
-        <tr class="JR_tr" height="30" style="font-family: '仿宋'" v-for="i in qingjia.list" :key="i">
+        <tr class="JR_tr" height="30" style="font-family: '仿宋'" v-for="i in qingjia.list" :key="i+'    '">
           <td class="JR_right">
           </td>
           <td class="JR_right">
@@ -537,22 +537,36 @@ export default {
       exportWord(this.faith)
     },
     aaa(raw){
-      return raw.replaceAll(',','<br/>')
+      if(raw !=""||raw !=null){
+        return raw =null
+      }else{
+        return raw.replaceAll(',','<br/>')
+      }
+      
     },
     bbb(raw){
+       if(raw !=""||raw !=null){
+        return raw =null
+      }else{
       return raw.replace('.00','')
+      }
     },
     xunlians(){
-      const a = this.message.contextData.早晨 !== null && this.message.contextData.早晨 !== "",
-            b = this.message.contextData.上午 !== null && this.message.contextData.上午 !== "",
-            c = this.message.contextData.下午 !== null && this.message.contextData.下午 !== "",
-            d = this.message.contextData.晚上 !== null && this.message.contextData.晚上 !== ""
-      if (a && b && c && d) {
-        this.xlist.早晨 = this.message.contextData.早晨
-        this.xlist.上午 = this.message.contextData.上午
-        this.xlist.下午 = this.message.contextData.下午
-        this.xlist.晚上 = this.message.contextData.晚上
-      }
+      console.log(this.message.contextData);
+      // const a = this.message.contextData.早晨 !== null && this.message.contextData.早晨 !== "",
+      //       b = this.message.contextData.上午 !== null && this.message.contextData.上午 !== "",
+      //       c = this.message.contextData.下午 !== null && this.message.contextData.下午 !== "",
+      //       d = this.message.contextData.晚上 !== null && this.message.contextData.晚上 !== ""
+            // console.log(a);
+            // console.log(b);            
+            // console.log(c);
+            // console.log(d );
+
+      //   this.xlist.早晨 = this.message.contextData.早晨
+      //   this.xlist.上午 = this.message.contextData.上午
+      //   this.xlist.下午 = this.message.contextData.下午
+      //   this.xlist.晚上 = this.message.contextData.晚上
+      // }
     },
     chapus() {
       if (this.message.inspect != null) {
@@ -707,10 +721,10 @@ table {
 
 .box1 {
   position: absolute;
-  right: 10px;
-  top: 60px;
-  border: 1px solid pink;
-  background: pink;
+    right: 30px;
+    top: 80px;
+    border: 1px solid rgb(129, 130, 131);
+    border-radius: 5px;
 }
 
 .distinguish {

+ 81 - 92
src/components/look_word/bdglequip.vue

@@ -51,7 +51,7 @@
         <tbody style="font-size: 16px; font-weight: 500">
           <tr class="JR_tr">
             <td
-              width="37"
+              width="35"
               valign="center"
               rowspan="2"
               class="JR_left"
@@ -62,7 +62,7 @@
               >
             </td>
             <td
-              width="64"
+              width="63"
               valign="center"
               rowspan="2"
               class="JR_left"
@@ -73,7 +73,7 @@
               >
             </td>
             <td
-              width="85"
+              width="82"
               valign="center"
               rowspan="2"
               class="JR_left"
@@ -84,7 +84,7 @@
               >
             </td>
             <td
-              width="272"
+              width="268"
               height="45"
               valign="center"
               colspan="5"
@@ -96,7 +96,7 @@
               >
             </td>
             <td
-              width="177"
+              width="173"
               valign="center"
               colspan="3"
               class="JR_left"
@@ -107,7 +107,7 @@
               >
             </td>
             <td
-              width="178"
+              width="177"
               valign="center"
               colspan="3"
               class="JR_left"
@@ -118,7 +118,7 @@
               >
             </td>
             <td
-              width="54"
+              width="53"
               valign="center"
               rowspan="2"
               class="JR_left"
@@ -129,7 +129,7 @@
               >
             </td>
             <td
-              width="55"
+              width="54"
               valign="center"
               rowspan="2"
               class="JR_left"
@@ -142,7 +142,7 @@
           </tr>
           <tr class="JR_tr" style="border-bottom: none">
             <td
-              width="65"
+              width="64"
               valign="center"
               class="JR_left"
               style="font-family: '黑体'; text-align: center; font-size: 16px"
@@ -153,7 +153,7 @@
               </span>
             </td>
             <td
-              width="55"
+              width="54"
               valign="center"
               class="JR_left"
               style="font-family: '黑体'; text-align: center; font-size: 16px"
@@ -164,7 +164,7 @@
               </span>
             </td>
             <td
-              width="48"
+              width="46"
               valign="center"
               style="font-family: '黑体'; text-align: center; font-size: 16px"
             >
@@ -174,7 +174,7 @@
               </span>
             </td>
             <td
-              width="48"
+              width="47"
               valign="center"
               style="font-family: '黑体'; text-align: center; font-size: 16px"
             >
@@ -184,7 +184,7 @@
               </span>
             </td>
             <td
-              width="56"
+              width="55"
               valign="center"
               style="font-family: '黑体'; text-align: center; font-size: 16px"
             >
@@ -194,7 +194,7 @@
               </span>
             </td>
             <td
-              width="56"
+              width="53"
               valign="center"
               style="font-family: '黑体'; text-align: center; font-size: 16px"
             >
@@ -203,7 +203,7 @@
               </span>
             </td>
             <td
-              width="47"
+              width="46"
               valign="center"
               style="font-family: '黑体'; text-align: center; font-size: 16px"
             >
@@ -212,7 +212,7 @@
               </span>
             </td>
             <td
-              width="74"
+              width="72"
               valign="center"
               style="font-family: '黑体'; text-align: center; font-size: 16px"
             >
@@ -221,7 +221,7 @@
               </span>
             </td>
             <td
-              width="57"
+              width="55"
               valign="center"
               style="font-family: '黑体'; text-align: center; font-size: 16px"
             >
@@ -230,7 +230,7 @@
               </span>
             </td>
             <td
-              width="47"
+              width="46"
               valign="center"
               style="font-family: '黑体'; text-align: center; font-size: 16px"
             >
@@ -239,7 +239,7 @@
               </span>
             </td>
             <td
-              width="76"
+              width="75"
               valign="center"
               style="font-family: '黑体'; text-align: center; font-size: 16px"
             >
@@ -248,26 +248,10 @@
               </span>
             </td>
           </tr>
+          
         </tbody>
-      </table>
-      <table
-        class="b1"
-        border="1"
-        style="
-          border-collapse: collapse;
-          border: none;
-          mso-border-left-alt: 0.5pt solid windowtext;
-          mso-border-top-alt: 0.5pt solid windowtext;
-          mso-border-right-alt: 0.5pt solid windowtext;
-          mso-border-bottom-alt: 0.5pt solid windowtext;
-          mso-border-insideh: 0.5pt solid windowtext;
-          mso-border-insidev: 0.5pt solid windowtext;
-          mso-padding-alt: 0pt 0pt 0pt 0pt;
-        "
-        width="933"
-        bordercolor="black"
-      >
-        <tbody id="tbody" style="font-size: 16px; font-weight: 500">
+
+         <tbody id="tbody" style="font-size: 16px; font-weight: 500">
           <tr
             class="JR_tr"
             style="font-family: 'fangsong'"
@@ -286,9 +270,8 @@
               <span align="center">{{ item.id }}</span>
             </td>
             <td
-              width="64"
+              width="63"
               valign="center"
-              rowspan="1"
               style="
                 font-family: '仿宋_GB2312';
                 text-align: center;
@@ -298,7 +281,7 @@
               <span align="center">{{ item.type }}</span>
             </td>
             <td
-              width="84"
+              width="82"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -309,7 +292,7 @@
               <span align="center" class="JR_right">{{ item.title }}</span>
             </td>
             <td
-              width="65"
+              width="64"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -320,7 +303,7 @@
               <span align="center" class="JR_right">{{ item.unitName }}</span>
             </td>
             <td
-              width="55"
+              width="54"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -333,7 +316,7 @@
               }}</span>
             </td>
             <td
-              width="48"
+              width="46"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -344,7 +327,7 @@
               <span align="center" class="JR_right">{{ item.grantnum }}</span>
             </td>
             <td
-              width="48"
+              width="47"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -355,7 +338,7 @@
               <span align="center" class="JR_right">{{ item.ownnum }}</span>
             </td>
             <td
-              width="56"
+              width="55"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -366,7 +349,7 @@
               <span align="center" class="JR_right">{{ item.stocknum }}</span>
             </td>
             <td
-              width="55"
+              width="53"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -379,7 +362,7 @@
               }}</span>
             </td>
             <td
-              width="47"
+              width="46"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -390,7 +373,7 @@
               <span align="center" class="JR_right">{{ item.innum }}</span>
             </td>
             <td
-              width="74"
+              width="72"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -401,7 +384,7 @@
               <span align="center" class="JR_right">{{ item.peopleName }}</span>
             </td>
             <td
-              width="57"
+              width="55"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -414,7 +397,7 @@
               }}</span>
             </td>
             <td
-              width="47"
+              width="46"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -425,7 +408,7 @@
               <span align="center" class="JR_right">{{ item.outnum }}</span>
             </td>
             <td
-              width="76"
+              width="75"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -516,10 +499,34 @@
             align="left"
             style="font-family: '黑体'; font-size: 19px; border: none"
           >
-            <span style="margin-left: 17px">时间:</span>
+            <span style="margin-left: 43px">时间:</span>
           </td>
         </tr>
       </table>
+
+
+
+
+
+      <table
+        class="b1"
+        border="1"
+        style="
+          border-collapse: collapse;
+          border: none;
+          mso-border-left-alt: 0.5pt solid windowtext;
+          mso-border-top-alt: 0.5pt solid windowtext;
+          mso-border-right-alt: 0.5pt solid windowtext;
+          mso-border-bottom-alt: 0.5pt solid windowtext;
+          mso-border-insideh: 0.5pt solid windowtext;
+          mso-border-insidev: 0.5pt solid windowtext;
+          mso-padding-alt: 0pt 0pt 0pt 0pt;
+        "
+        width="933"
+        bordercolor="black"
+      >
+
+      </table>
       <!-- <div
         class="a1"
         style="
@@ -548,25 +555,23 @@ export default {
   data() {
     return {
       title: "训练器材、教材登记簿",
-      num: [],
-      arr: [],
       faith: {
-        fileName: "网络、移动电话、涉密载体使用管理登记本", //文档名
+        fileName: "训练器材、教材登记簿", //文档名
         fileType: ".doc", //文档类型  经测试  可以doc xls html 其他的自己去试
         // header: "测试页眉", //页眉标题
         // footer: "测试页脚", //页脚标题
         direction: "Horizontal", //默认或不填写为纵向,Horizontal 为横向
         dom: "#contents", // dom节点
       },
-      // style:
-      //   ".b1{width:860px !important};.JR_tr {height: 40px;};.JR_left{width: 120px;font-size: 1.151em; font-family: '楷体_GB2312';};.JR_right{ font-size: 1.231em; font-family: 仿宋_GB2312;};.JR_bottom{border-left:0; font-size: 1.331em; font-family: 仿宋_GB2312; text-align: right};",
     };
   },
   mounted() {
-    this.message.forEach((item) => {
+
+    this.message.forEach((item,i) => {
       item.outtime = this.zhuanhuan(item.outtime);
       item.intime = this.zhuanhuan(item.intime);
       item.granttime = this.zhuanhuan(item.granttime);
+      item.ids= i+1
     });
     //循环遍历
     for (var i = 0; i < this.message.length; i++) {
@@ -579,6 +584,7 @@ export default {
         //如果最后一行和倒数第二行属性不同,则rowspan=1;否则直接结束循环
         if (this.message[i].type != this.message[i - 1].type) {
           this.message[i].rowspan = rowspan;
+          
         }
         break;
       }
@@ -603,7 +609,7 @@ export default {
     var html = ``;
     for (var i = 0; i < this.message.length; i++) {
       html += `<tr><td
-              width="33"
+              width="35"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -611,16 +617,16 @@ export default {
                 font-size: 16px;
               "
             >
-              <span align="center" class="JR_right" >${this.message[i].id}</span>
+              <span align="center" class="JR_right" >${this.message[i].ids}</span>
             </td>`;
       //动态添加rowspan属性
       if (this.message[i].rowspan != null) {
-        html += `<td width="64" rowspan = '${this.message[i].rowspan}'>${this.message[i].type}</td>`;
+        html += `<td width="63" rowspan = '${this.message[i].rowspan}'>${this.message[i].type}</td>`;
       }
       html += `
       
       <td
-              width="84"
+              width="82"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -632,7 +638,7 @@ export default {
             </td>
            
             <td
-              width="65"
+              width="64"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -643,7 +649,7 @@ export default {
               <span align="center" class="JR_right">${this.message[i].unitName}</span>
             </td>
             <td
-              width="55"
+              width="54"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -654,7 +660,7 @@ export default {
               <span align="center" class="JR_right">${this.message[i].granttime}</span>
             </td>
             <td
-              width="48"
+              width="46"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -665,7 +671,7 @@ export default {
               <span align="center" class="JR_right">${this.message[i].grantnum}</span>
             </td>
             <td
-              width="48"
+              width="47"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -676,7 +682,7 @@ export default {
               <span align="center" class="JR_right">${this.message[i].ownnum}</span>
             </td>
             <td
-              width="56"
+              width="55"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -687,7 +693,7 @@ export default {
               <span align="center" class="JR_right">${this.message[i].stocknum}</span>
             </td>
             <td
-              width="55"
+              width="53"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -698,7 +704,7 @@ export default {
               <span align="center" class="JR_right">${this.message[i].intime}</span>
             </td>
             <td
-              width="47"
+              width="46"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -709,7 +715,7 @@ export default {
               <span align="center" class="JR_right">${this.message[i].innum}</span>
             </td>
             <td
-              width="74"
+              width="72"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -720,7 +726,7 @@ export default {
               <span align="center" class="JR_right">${this.message[i].peopleName}</span>
             </td>
             <td
-              width="57"
+              width="55"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -731,7 +737,7 @@ export default {
               <span align="center" class="JR_right">${this.message[i].outtime}</span>
             </td>
             <td
-              width="47"
+              width="46"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -742,7 +748,7 @@ export default {
               <span align="center" class="JR_right">${this.message[i].outnum}</span>
             </td>
             <td
-              width="76"
+              width="75"
               valign="center"
               style="
                 font-family: '仿宋_GB2312';
@@ -778,27 +784,10 @@ export default {
 `;
     }
     tbody.innerHTML = html;
-    // this.message.forEach((item, i) => {
-
-    //   if (this.num.length <= 0) {
-    //     this.num.push(item.type);
-    //   } else if (this.num.indexOf(item.type) == -1) {
-    //     this.num.push(item.type);
-    //   }
-    //   if (item.type == item.type) {
-    //     console.log(item.type);
-    //   }
-    // });
-
-    // for (let index = 0; index < this.num.length; index++) {
-    //   this.arr[index] = {
-    //     index: null,
-    //   };
-    // }
   },
   methods: {
     daochu() {
-      // exportWord(this.faith);
+      // // exportWord(this.faith);
       lookequipuntits(this.message[0].unitId).then((res) => {
         window.open(res.msg, "_self");
       });

+ 130 - 593
src/components/look_word/bdglfood.vue

@@ -36,7 +36,7 @@
         bordercolor="black"
       >
         <!-- 930px -->
-        <!-- <tr
+        <tr
           class="aaa"
           style="
             border: none;
@@ -50,29 +50,29 @@
             class="JR_right"
             colspan="5"
             align="left"
-            style="border: none; line-height: 45px; font-family: 'songti'"
+            style="border: none; line-height: 45px; font-family: '宋体'"
           >
-            日期:<span style="font-family: 'fangsong'">
+            日期:<span style="font-family: '宋体'">
               {{ message.recordDate }}</span
             >
           </td>
           <td
             class="JR_right"
-            colspan="8"
+            colspan="6"
             align="left"
-            style="border: none; line-height: 45px; font-family: 'songti'"
+            style="border: none; line-height: 45px; font-family: '宋体'"
           >
             {{ week }}
           </td>
           <td
             class="JR_right"
-            colspan="3"
+            colspan="4"
             align="left"
-            style="border: none; line-height: 45px; font-family: 'songti'"
+            style="border: none; line-height: 45px; font-family: '宋体'"
           >
             单位:千克/元
           </td>
-        </tr> -->
+        </tr>
         <tbody style="font-size: 16px; font-weight: 500">
           <!-- 区分早中晚一日三餐 -->
           <tr class="JR_tr">
@@ -1051,10 +1051,15 @@
         width="561"
         align="center"
       >
-        <tbody style="font-size: 16px; font-weight: 500">
+        <tbody style="font-size: 16px; font-weight: 500" ref="shiwu">
           <tr height="29" align="center">
             <td
-              style="font-family: '宋体'; text-align: center; font-size: 1em"
+              style="
+                font-family: '宋体';
+                text-align: center;
+                font-size: 1em;
+                border-top: 0;
+              "
               colspan="7"
             >
               <span align="center" style="display: block; text-align: center"
@@ -1105,564 +1110,6 @@
               >
             </td>
           </tr>
-          <!-- 主食 -->
-          <tr class="JR_tr">
-            <td
-              style="font-family: '宋体'; text-align: center; font-size: 1em"
-              colspan="1"
-              rowspan="4"
-            >
-              <span>主食</span>
-            </td>
-          </tr>
-          <tr
-            align="center"
-            style="
-              font-family: '仿宋_GB2312';
-              text-align: center;
-              font-size: 1em;
-              height: 31px;
-            "
-          >
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >大米</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >中量</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >单价</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >金额</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >购买</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >备注</span
-              >
-            </td>
-          </tr>
-
-          <tr
-            align="center"
-            style="
-              font-family: '仿宋_GB2312';
-              text-align: center;
-              font-size: 1em;
-              height: 18px;
-            "
-          >
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >大米</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >中量</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >单价</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >金额</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >购买</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >备注</span
-              >
-            </td>
-          </tr>
-
-          <tr
-            align="center"
-            style="
-              font-family: '仿宋_GB2312';
-              text-align: center;
-              font-size: 1em;
-              height: 18px;
-            "
-          >
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >大米</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >中量</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >单价</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >金额</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >购买</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >备注</span
-              >
-            </td>
-          </tr>
-
-          <!-- 副食品名 -->
-          <tr class="JR_tr">
-            <td
-              style="font-family: '宋体'; text-align: center; font-size: 1em"
-              colspan="1"
-              rowspan="4"
-            >
-              <span>副食</span>
-            </td>
-          </tr>
-          <tr
-            align="center"
-            style="
-              font-family: '仿宋_GB2312';
-              text-align: center;
-              font-size: 1em;
-              height: 31px;
-            "
-          >
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >大米</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >中量</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >单价</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >金额</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >购买</span
-              >
-            </td>
-            <td s>
-              <span align="center" style="display: block; text-align: center"
-                >备注</span
-              >
-            </td>
-          </tr>
-
-          <tr
-            align="center"
-            style="
-              font-family: '仿宋_GB2312';
-              text-align: center;
-              font-size: 1em;
-              height: 18px;
-            "
-          >
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >大米</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >中量</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >单价</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >金额</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >购买</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >备注</span
-              >
-            </td>
-          </tr>
-
-          <tr
-            align="center"
-            style="
-              font-family: '仿宋_GB2312';
-              text-align: center;
-              font-size: 1em;
-              height: 18px;
-            "
-          >
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >大米</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >中量</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >单价</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >金额</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >购买</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >备注</span
-              >
-            </td>
-          </tr>
-
-          <!-- 其他物品品名 -->
-          <tr class="JR_tr">
-            <td
-              style="font-family: '宋体'; text-align: center; font-size: 1em"
-              colspan="1"
-              rowspan="4"
-            >
-              <span>其他</span>
-            </td>
-          </tr>
-
-          <tr
-            align="center"
-            style="
-              font-family: '仿宋_GB2312';
-              text-align: center;
-              font-size: 1em;
-              height: 31px;
-            "
-          >
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >大米</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >中量</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >单价</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >金额</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >购买</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >备注</span
-              >
-            </td>
-          </tr>
-
-          <tr
-            align="center"
-            style="
-              font-family: '仿宋_GB2312';
-              text-align: center;
-              font-size: 1em;
-              height: 18px;
-            "
-          >
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >大米</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >中量</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >单价</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >金额</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >购买</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >备注</span
-              >
-            </td>
-          </tr>
-
-          <tr
-            align="center"
-            style="
-              font-family: '仿宋_GB2312';
-              text-align: center;
-              font-size: 1em;
-              height: 18px;
-            "
-          >
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >大米</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >中量</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >单价</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >金额</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >购买</span
-              >
-            </td>
-            <td>
-              <span align="center" style="display: block; text-align: center"
-                >备注</span
-              >
-            </td>
-          </tr>
-          <!-- <tr>
-            <td
-              style="
-                font-family: '宋体';
-                text-align: center;
-                font-size: 1em;
-                height: 31px;
-              "
-              align="center"
-            >
-              <span>大米</span>
-            </td>
-            <td
-              style="
-                font-family: '宋体';
-                text-align: center;
-                font-size: 1em;
-                height: 31px;
-              "
-              align="center"
-            >
-              <span>大米</span>
-            </td>
-            <td
-              style="
-                font-family: '宋体';
-                text-align: center;
-                font-size: 1em;
-                height: 31px;
-              "
-              align="center"
-            >
-              <span>大米</span>
-            </td>
-            <td
-              style="
-                font-family: '宋体';
-                text-align: center;
-                font-size: 1em;
-                height: 31px;
-              "
-              align="center"
-            >
-              <span>大米</span>
-            </td>
-            <td
-              style="
-                font-family: '宋体';
-                text-align: center;
-                font-size: 1em;
-                height: 31px;
-              "
-              align="center"
-            >
-              <span>大米</span>
-            </td>
-            <td
-              style="
-                font-family: '宋体';
-                text-align: center;
-                font-size: 1em;
-                height: 31px;
-              "
-              align="center"
-            >
-              <span>大米1</span>
-            </td>
-          </tr> -->
-
-          <!-- <tr>
-            <td
-              style="
-                font-family: '宋体';
-                text-align: center;
-                font-size: 1em;
-                height: 18px;
-              "
-              align="center"
-            >
-              <span>面粉</span>
-            </td>
-            <td></td>
-            <td></td>
-            <td></td>
-            <td></td>
-            <td></td>
-          </tr>
-          
-          <tr>
-            <td></td>
-            <td></td>
-            <td></td>
-            <td></td>
-            <td></td>
-            <td></td>
-          </tr> -->
-
-          <!-- 
-          <tr
-            class="JR_tr"
-            v-for="(item, i) in message.bdglFoodKinds"
-            :key="i + ''"
-          >
-            <td width="" rowspan="" class="JR_left">
-              <p align="center" style="font-family: 'songti'">
-                {{ i == 0 ? "主食" : i == 1 ? "副食" : "其他" }}
-              </p>
-            </td>
-            <td
-              width=""
-              style="color: black; font-family: 'fangsong'"
-              colspan="3"
-              class="JR_right"
-            >
-              <p align="center">{{ item.name }}</p>
-            </td>
-            <td
-              width=""
-              style="color: black; font-family: 'fangsong'"
-              colspan="2"
-              class="JR_right"
-            >
-              <p align="center">
-                {{ item.distinctions }}
-              </p>
-            </td>
-            <td
-              width=""
-              style="color: black; font-family: 'fangsong'"
-              colspan="2"
-              class="JR_right"
-            >
-              <p align="center">{{ item.weight }}</p>
-            </td>
-            <td
-              width=""
-              style="color: black; font-family: 'fangsong'"
-              colspan="2"
-              class="JR_right"
-            >
-              <p align="center">{{ item.money }}</p>
-            </td>
-            <td
-              width=""
-              style="color: black; font-family: 'fangsong'"
-              colspan="3"
-              class="JR_right"
-            >
-              <p align="center">{{ item.types }}</p>
-            </td>
-            <td
-              width=""
-              style="color: black; font-family: 'fangsong'"
-              colspan="3"
-              class="JR_right"
-            >
-              <p align="center">{{ item.money }}</p>
-            </td>
-          </tr> -->
         </tbody>
       </table>
       <!-- 交退伙食费 -->
@@ -1678,25 +1125,41 @@
         <tbody>
           <tr height="29" align="center">
             <td
-              style="font-family: '宋体'; text-align: center; font-size: 1em"
+              style="
+                font-family: '宋体';
+                text-align: center;
+                font-size: 1em;
+                border-top: 0;
+              "
               colspan="8"
+              align="center"
             >
               <span align="center" style="display: block; text-align: center"
                 >交退伙食费</span
               >
             </td>
           </tr>
-          <tr class="JR_tr" style="text-align: center; font-family: '宋体'">
+          <tr
+            class="JR_tr"
+            style="text-align: center; font-family: '宋体'"
+            align="center"
+          >
             <td width="99" colspan="1" rowspan="2" class="JR_left">
               <p align="center">姓名</p>
             </td>
-            <td width="186" colspan="3" class="JR_left">
+            <td width="186" colspan="3" class="JR_left" align="center">
               <p align="center">交伙食费</p>
             </td>
-            <td width="99" colspan="1" rowspan="2" class="JR_left">
+            <td
+              width="99"
+              colspan="1"
+              rowspan="2"
+              class="JR_left"
+              align="center"
+            >
               <p align="center">姓名</p>
             </td>
-            <td width="171" colspan="3" class="JR_left">
+            <td width="171" colspan="3" class="JR_left" align="center">
               <p align="center">退伙食费</p>
             </td>
           </tr>
@@ -1733,47 +1196,42 @@
             v-for="(item, i) in by_reset"
             :key="i + ' '"
             class="JR_tr"
-            style="
-              text-align: center;
-              line-height: 47px;
-              font-family: 'fangsong';
-            "
+            style="text-align: center; font-family: '仿宋'"
           >
-            <td colspan="1" class="JR_right" align="center">
-              {{ item.peopleName }}
+            <td colspan="1" class="JR_right" align="center" height="33">
+              <p align="center">{{ item.peopleName }}</p>
             </td>
             <td colspan="1" class="JR_right" align="center">{{ item.sky }}</td>
             <td colspan="1" class="JR_right" align="center">
-              {{ item.standard }}
+              <p align="center">{{ item.standard }}</p>
             </td>
             <td colspan="1" class="JR_right" align="center">
-              {{ item.money }}
+              <p align="center">{{ item.money }}</p>
             </td>
 
             <td colspan="1" v-if="isWho" class="JR_right" align="center">
-              {{ reset[i].peopleName }}
+              <p align="center">{{ reset[i].peopleName }}</p>
             </td>
             <td colspan="1" v-if="isWho" class="JR_right" align="center">
-              {{ reset[i].sky }}
+              <p align="center">{{ reset[i].sky }}</p>
             </td>
             <td colspan="1" v-if="isWho" class="JR_right" align="center">
-              {{ reset[i].standard }}
+              <p align="center">{{ reset[i].standard }}</p>
             </td>
             <td colspan="1" v-if="isWho" class="JR_right" align="center">
-              {{ reset[i].money }}
+              <p align="center">{{ reset[i].money }}</p>
             </td>
-
             <td colspan="1" v-if="!isWho" class="JR_right" align="center">
-              {{ by[i].peopleName }}
+              <p align="center">{{ by[i].peopleName }}</p>
             </td>
             <td colspan="1" v-if="!isWho" class="JR_right" align="center">
-              {{ by[i].sky }}
+              <p align="center">{{ by[i].sky }}</p>
             </td>
             <td colspan="1" v-if="!isWho" class="JR_right" align="center">
-              {{ by[i].standard }}
+              <p align="center">{{ by[i].standard }}</p>
             </td>
             <td colspan="1" v-if="!isWho" class="JR_right" align="center">
-              {{ by[i].money }}
+              <p align="center">{{ by[i].money }}</p>
             </td>
           </tr>
         </tbody>
@@ -1795,7 +1253,7 @@
             height="29"
             style="font-family: '宋体'"
           >
-            <td width="" colspan="11" class="JR_left">
+            <td width="" colspan="11" class="JR_left" style="border-top: 0">
               <span>在食堂购物</span>
             </td>
           </tr>
@@ -1976,6 +1434,9 @@ import exportWord from "@/utils/exportWord.js";
 export default {
   name: "bdgleven",
   props: ["message"],
+    dicts: [
+    "purchaseFood",
+  ],
   data() {
     return {
       title: "伙食管理登记簿",
@@ -2003,11 +1464,84 @@ export default {
   created() {
     this.isWhy();
     this.week = this.getWeek(this.message.recordDate);
+        // 品名
+    this.getDicts("Degree_level").then((response) => {
+      this.educationId = response.data;
+    });
+
+  },
+  mounted() {
+    this.aaa();
   },
   methods: {
     daochu() {
       exportWord(this.faith);
     },
+    aaa() {
+      let name = [];
+      let name1 = [];
+      for (var i in this.message.bdglFoodKindData) {
+        name.push(i);
+        name1.push(i.split("").join("<br/>"));
+        console.log(name);
+      }
+      let dom = "";
+      for (let index = 0; index < name.length; index++) {
+        dom += "<tr>";
+        let rowspan = null;
+        if (this.message.bdglFoodKindData[name[index]].length == 0) {
+          rowspan = 1;
+        } else {
+          rowspan = this.message.bdglFoodKindData[name[index]].length;
+        }
+        dom += `<td " rowspan="${rowspan}">
+        <p align="center">${name1[index]}</p>
+        </td>`;
+        if (this.message.bdglFoodKindData[name[index]].length == 0) {
+          dom += `
+            <td ></td>
+            <td></td>
+            <td></td>
+            <td></td>
+            <td></td>
+            <td></td>
+          `;
+        } else {
+          for (
+            let j = 0;
+            j < this.message.bdglFoodKindData[name[index]].length;
+            j++
+          ) {
+            let result = this.message.bdglFoodKindData[name[index]][j];
+
+            if (j == 0) {
+              dom += `
+              <td height='31' align='center'>${result.foodId}</td>
+              <td align='center'>${result.weight}</td>
+              <td align='center'>${result.unitPrice}</td>
+              <td align='center'>${result.money}</td>
+              <td align='center'>${result.types}</td>
+              <td align='center'>${result.remark}</td>
+            `;
+            } else {
+              dom += `
+                <tr align='center'>
+                  <td height='31' align='center'>${result.foodId}</td>
+                  <td align='center'>${result.weight}</td>
+                  <td align='center'>${result.unitPrice}</td>
+                  <td align='center'>${result.money}</td>
+                  <td align='center'>${result.types}</td>
+                  <td align='center'>${result.remark}</td>
+                </tr>
+              `;
+            }
+          }
+        }
+        dom += "</tr>";
+      }
+
+      this.$refs.shiwu.innerHTML += dom;
+    },
     isWhy() {
       let item;
       let i;
@@ -2043,7 +1577,7 @@ export default {
       }
     },
     /*
-      获取当前星期几
+      获取当前星期几
      */
     getWeek(dateString) {
       var dateArray = dateString.split("-");
@@ -2063,9 +1597,11 @@ tbody {
   color: black;
   text-align: center;
 }
+
 tr:last-child {
   border-bottom: 1px solid;
 }
+
 .box1 {
   position: absolute;
   right: 30px;
@@ -2073,6 +1609,7 @@ tr:last-child {
   border: 1px solid rgb(129, 130, 131);
   border-radius: 5px;
 }
+
 @page {
   size: auto;
   margin: 0mm;

+ 71 - 67
src/components/look_word/bdglmeeting.vue

@@ -27,27 +27,27 @@
           mso-border-insidev: 0.5pt solid windowtext;
           mso-padding-alt: 0pt 0pt 0pt 0pt;
         "
-        width="600"
+        width="623"
         align="center"
         bordercolor="black"
         class="b1"
       >
         <tbody style="font-size: 16px; font-weight: 500">
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="39">
             <th class="" colspan="2">
-              <h4
+              <p
                 align="center"
-                style="font-size: 18px; font-weight: 500; font-family: 'kaiti'"
+                style="font-size: 18px;  font-family: '楷体_GB2312';font-weight: 400;"
               >
                 团支部委员会会议
-              </h4>
+              </p>
             </th>
           </tr>
-          <tr class="JR_tr">
+          <tr class="JR_tr"  height="39" style="font-size: 19px">
             <td
               width="110"
               class="JR_left"
-              style="border-right: none !important; font-family: 'kaiti'"
+              style="border-right: none !important; font-family: '楷体_GB2312'"
             >
               <p align="center">&nbsp;&nbsp;时 &nbsp;间:</p>
             </td>
@@ -56,17 +56,16 @@
               align="left"
               style="
                 border-left: none !important;
-                padding-left: 20px;
-                font-family: 'fangsong';
+                font-family: '仿宋_GB2312';
               "
             >
-              <p>{{ message.convokeTime | dataFormaty }}</p>
+              <p style="text-indent: 8px">{{ message.convokeTime | dataFormaty }}</p>
             </td>
           </tr>
-          <tr class="JR_tr">
+          <tr class="JR_tr"  height="39" style="font-size: 19px">
             <td
               class="JR_left"
-              style="border-right: none !important; font-family: 'kaiti'"
+              style="border-right: none !important; font-family: '楷体_GB2312'"
             >
               <p align="center">&nbsp;&nbsp;地 &nbsp;点:</p>
             </td>
@@ -75,17 +74,17 @@
               align="left"
               style="
                 border-left: none !important;
-                padding-left: 20px;
-                font-family: 'fangsong';
+
+                font-family: '仿宋_GB2312';
               "
             >
-              <p>{{ message.address }}</p>
+              <p style="text-indent: 8px">{{ message.address }}</p>
             </td>
           </tr>
-          <tr class="JR_tr">
+          <tr class="JR_tr"  height="39" style="font-size: 19px">
             <td
               class="JR_left"
-              style="border-right: none !important; font-family: 'kaiti'"
+              style="border-right: none !important; font-family: '楷体_GB2312'"
             >
               <p align="center">&nbsp;&nbsp;主持人:</p>
             </td>
@@ -94,17 +93,16 @@
               align="left"
               style="
                 border-left: none ;
-                padding-left: 20px;
-                font-family: 'fangsong';
+                font-family: '仿宋_GB2312';
               "
             >
-              <p>{{ message.compereRen }}</p>
+              <p style="text-indent: 8px">{{ message.compereRen }}</p>
             </td>
           </tr>
-          <tr class="JR_tr">
+          <tr class="JR_tr"  style="font-size: 19px" height="46">
             <td
               class="JR_left"
-              style="border-right: none !important; font-family: 'kaiti'"
+              style="border-right: none !important; font-family: '楷体_GB2312'"
             >
               <p align="center">&nbsp;&nbsp;参加人:</p>
             </td>
@@ -113,17 +111,16 @@
               align="left"
               style="
                 border-left: none !important;
-                padding-left: 20px;
-                font-family: 'fangsong';
+                font-family: '仿宋_GB2312';
               "
             >
-              <p>{{ message.joinId }}</p>
+              <p style="text-indent: 8px">{{ message.joinId }}</p>
             </td>
           </tr>
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="39" style="font-size:19px">
             <td
               class="JR_left"
-              style="border-right: none !important; font-family: 'kaiti'"
+              style="border-right: none !important; font-family: '楷体_GB2312'"
             >
               <p align="center">&nbsp;&nbsp;列席人:</p>
             </td>
@@ -132,17 +129,16 @@
               align="left"
               style="
                 border-left: none !important;
-                padding-left: 20px;
-                font-family: 'fangsong';
+                font-family: '仿宋_GB2312';
               "
             >
-              <p>{{ message.peopleIds }}</p>
+              <p style="text-indent: 8px">{{ message.peopleIds }}</p>
             </td>
           </tr>
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="39" style="font-size:19px">
             <td
               class="JR_left"
-              style="border-right: none !important; font-family: 'kaiti'"
+              style="border-right: none !important; font-family: '楷体_GB2312'"
             >
               <p align="center">&nbsp;&nbsp;缺席人:</p>
             </td>
@@ -151,17 +147,16 @@
               align="left"
               style="
                 border-left: none !important;
-                padding-left: 20px;
-                font-family: 'fangsong';
+                font-family: '仿宋_GB2312';
               "
             >
-              <p>{{ message.absentIds }}</p>
+              <p style="text-indent: 8px">{{ message.absentIds }}</p>
             </td>
           </tr>
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="39" style="font-size:19px">
             <td
               class="JR_left"
-              style="border-right: none !important; font-family: 'kaiti'"
+              style="border-right: none !important; font-family: '楷体_GB2312'"
             >
               <p align="center">&nbsp;&nbsp;记录人:</p>
             </td>
@@ -170,54 +165,55 @@
               align="left"
               style="
                 border-left: none !important;
-                padding-left: 20px;
-                font-family: 'fangsong';
+                font-family: '仿宋_GB2312';
               "
             >
-              <p>{{ message.peopleJiLu }}</p>
+              <p style="text-indent: 8px">{{ message.peopleJiLu }}</p>
             </td>
           </tr>
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="40" style="font-size:19px">
             <td
               class="JR_left"
-              style="border-right: none !important; font-family: 'kaiti'"
+              style="border-right: none !important; font-family: '楷体_GB2312'"
             >
               <p align="center">&nbsp;&nbsp;议 &nbsp;题:</p>
             </td>
             <td
-              class="JR_right"
+                class="colors"
               align="left"
               style="
                 border-left: none !important;
-                padding-left: 20px;
-                font-family: 'fangsong';
+                font-family: '仿宋_GB2312';
               "
               v-html="message.title"
+              
             >
-              <!-- <p>{{ message.title }}</p> -->
             </td>
           </tr>
-          <tr class="JR_tr">
-            <td class="JR_left" style="border-right: 0; font-family: 'kaiti'">
+          <!-- <tr class="JR_tr" ></tr> -->
+          <tr class="JR_tr" height="40" style="font-size:19px">
+            <td class="JR_left" style="border-right: 0; font-family: '楷体_GB2312'">
               <p align="center">&nbsp;&nbsp; 内 &nbsp;容:</p>
             </td>
             <td class="TableData" style="border-left: 0"></td>
           </tr>
-          <tr align="left" class="JR_tr">
+          <tr align="left" class="JR_tr" height="50" style="font-size:19px;">
             <td
               colspan="2"
-              class="JR_right"
+                class="colors"
               v-html="message.contents"
               style="
                 text-indent: 30px;
                 padding: 0px 10px;
                 border: 1px solid black;
-                font-family: 'fangsong';
+                font-family: '仿宋_GB2312';
               "
             ></td>
           </tr>
         </tbody>
       </table>
+
+
       <table
         border="1"
         style="
@@ -231,21 +227,21 @@
           mso-border-insidev: 0.5pt solid windowtext;
           mso-padding-alt: 0pt 0pt 0pt 0pt;
         "
-        width="600"
+        width="623"
         align="center"
         bordercolor="black"
         class="b1"
         border-top="none"
       >
         <tbody>
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="39" style="font-size:19px">
             <td
               colspan="2"
               class="JR_bottom"
               style="
                 border-top: none;
                 border-left: 1px solid black;
-                font-family: 'heiti';
+                font-family: '仿宋_GB2312';
               "
             >
               <p style="text-align: right; margin-right: 20px">
@@ -253,36 +249,31 @@
                 {{ message.compereRen }}
               </p>
             </td>
-            <!-- <td style="width: 100px; border-top: none; border-left: none"></td> -->
           </tr>
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="39" style="font-size:19px">
             <td
               colspan="2"
               class="JR_bottom"
-              style="border-left: 1px solid black; font-family: 'heiti'"
+              style="border-left: 1px solid black; font-family: '仿宋_GB2312'"
             >
-              <!-- border-right: none; -->
               <p style="text-align: right; margin-right: 20px">
                 记录人:
                 {{ message.peopleJiLu }}
               </p>
             </td>
-            <!-- <td style="width: 100px; border-left: none"></td> -->
           </tr>
 
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="39" style="font-size:19px">
             <td
               colspan="2"
               class="JR_bottom"
-              style="border-left: 1px solid black; font-family: 'fangsong'"
+              style="border-left: 1px solid black; font-family: '仿宋_GB2312'"
             >
-              <!--<p style=" text-align:right;padding-right: 10px;">    年  月  日</p>-->
               <p style="text-align: right; margin-right: 20px">
                 时间:
                 {{ message.convokeTime | dataFormaty }}
               </p>
             </td>
-            <!-- <td style="width: 100px; border-left: none"></td> -->
           </tr>
         </tbody>
       </table>
@@ -290,7 +281,7 @@
   </div>
 </template>
 <script>
-import { lookWord } from "@/utils/look_word.js";
+import exportWord from "@/utils/exportWord.js";
 import "@/utils/lodJs.js";
 export default {
   name: "bdgleven",
@@ -298,13 +289,22 @@ export default {
   data() {
     return {
       title: "团支部工作记录本",
-      style:
-        ".b1{width:630px !important};.JR_tr {height: 40px;};.JR_left{border-right:none!important;width: 120px;font-size: 1.331em; font-family: '楷体_GB2312';};.JR_right{border-left:0; font-size: 1.331em; font-family: 仿宋_GB2312;};.JR_bottom{border-left:0; font-size: 1.331em; font-family: 仿宋_GB2312; text-align: right}",
+       faith: {
+        fileName: "团支部工作记录本", //文档名
+        fileType: ".doc", //文档类型  经测试  可以doc xls html 其他的自己去试
+        // header: '测试页眉',//页眉标题
+        // footer: '测试页脚',//页脚标题
+        direction: "", //默认或不填写为纵向,Horizontal 为横向
+        dom: "#contents", // dom节点
+        style:'.colors{color: black !important}'
+      },
     };
   },
+  created(){
+  },
   methods: {
     daochu() {
-      lookWord(this.title, "#contents", this.style);
+        exportWord(this.faith);
     },
   },
 };
@@ -327,4 +327,8 @@ tr:last-child {
 span {
   color: #000;
 }
+
+::v-deep .colors{
+  color: black  !important ;
+}
 </style>

+ 81 - 97
src/components/look_word/bdglparty.vue

@@ -2,7 +2,7 @@
   <div>
     <el-button class="box1" @click="daochu">导出</el-button>
 
-    <div class="word" id="contents" style="font-family: 'kaiti'">
+    <div class="word" id="contents" style="font-family: '楷体_GB2312'">
       <p
         style="
           font-size: 16pt;
@@ -27,163 +27,134 @@
           mso-border-insidev: 0.5pt solid windowtext;
           mso-padding-alt: 0pt 0pt 0pt 0pt;
         "
-        width="600"
+        width="623"
         align="center"
         bordercolor="black"
         class="size"
       >
-        <tbody style="font-size: 16px; font-weight: 500">
-          <tr class="JR_tr">
-            <th class="" colspan="2" style="font-family: 'kaiti'">
-              <h4
-                align="center"
-                style="font-size: 18px; font-weight: 500; font-family: 'kaiti'"
-              >
+        <tbody style="font-size: 16px;">
+          <tr class="JR_tr" height="39">
+            <th class="" colspan="2" style="font-family: '楷体_GB2312'">
+              <p align="center" style="font-size: 18px;font-weight: 400;">
                 党支部委员会议(简称支委会)
-              </h4>
+              </p>
             </th>
           </tr>
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="39" style="font-size: 19px">
             <td
               width="110"
               class="JR_left"
-              style="border-right: none; font-family: 'kaiti'"
+              style="border-right: none; font-family: '楷体_GB2312'"
             >
               <p align="center">&nbsp;&nbsp;时 &nbsp;间:</p>
             </td>
             <td
               align="left"
               class="JR_right"
-              style="
-                border-left: none;
-                padding-left: 20px;
-                font-family: 'fangsong';
-              "
+              style="border-left: none; font-family: '仿宋_GB2312'"
             >
-              <p>{{ message.convokeTime | dataFormaty }}</p>
+              <p style="text-indent: 8px">
+                {{ message.convokeTime | dataFormaty }}
+              </p>
             </td>
           </tr>
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="39" style="font-size: 19px">
             <td
               align="left"
               class="JR_left"
-              style="border-right: none; font-family: 'kaiti'"
+              style="border-right: none; font-family: '楷体_GB2312'"
             >
               <p align="center">&nbsp;&nbsp;地 &nbsp;点:</p>
             </td>
             <td
               align="left"
               class="JR_right"
-              style="
-                border-left: none;
-                padding-left: 20px;
-                font-family: 'fangsong';
-              "
+              style="border-left: none; font-family: '仿宋_GB2312'"
             >
-              <p>{{ message.address }}</p>
+              <p style="text-indent: 8px">{{ message.address }}</p>
             </td>
           </tr>
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="39" style="font-size: 19px">
             <td
               class="JR_left"
-              style="border-right: none; font-family: 'kaiti'"
+              style="border-right: none; font-family: '楷体_GB2312'"
             >
               <p align="center">&nbsp;&nbsp;主持人:</p>
             </td>
             <td
               align="left"
               class="JR_right"
-              style="
-                border-left: none;
-                padding-left: 20px;
-                font-family: 'fangsong';
-              "
+              style="border-left: none; font-family: '仿宋_GB2312'"
             >
-              <p>{{ message.compereRen }}</p>
+              <p style="text-indent: 8px">{{ message.compereRen }}</p>
             </td>
           </tr>
-          <tr class="JR_tr">
+          <tr class="JR_tr" style="font-size: 19px" height="46">
             <td
               class="JR_left"
-              style="border-right: none; font-family: 'kaiti'"
+              style="border-right: none; font-family: '楷体_GB2312'"
             >
               <p align="center">&nbsp;&nbsp;参加人:</p>
             </td>
             <td
               align="left"
               class="JR_right"
-              style="
-                border-left: none;
-                padding-left: 20px;
-                font-family: 'fangsong';
-              "
+              style="border-left: none; font-family: '仿宋_GB2312'"
             >
-              <p>{{ message.joinId }}</p>
+              <p style="text-indent: 8px">{{ message.joinId }}</p>
             </td>
           </tr>
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="39" style="font-size:19px">
             <td
               class="JR_left"
-              style="border-right: none; font-family: 'kaiti'"
+              style="border-right: none; font-family: '楷体_GB2312'"
             >
               <p align="center">&nbsp;&nbsp;列席人:</p>
             </td>
             <td
               align="left"
               class="JR_right"
-              style="
-                border-left: none;
-                padding-left: 20px;
-                font-family: 'fangsong';
-              "
+              style="border-left: none; font-family: '仿宋_GB2312'"
             >
-              <p>{{ message.peopleIds }}</p>
+              <p style="text-indent: 8px">{{ message.peopleIds }}</p>
             </td>
           </tr>
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="39" style="font-size:19px">
             <td
               class="JR_left"
-              style="border-right: none; font-family: 'kaiti'"
+              style="border-right: none; font-family: '楷体_GB2312'"
             >
               <p align="center">&nbsp;&nbsp;缺席人:</p>
             </td>
             <td
               align="left"
               class="JR_right"
-              style="
-                border-left: none;
-                padding-left: 20px;
-                font-family: 'fangsong';
-              "
+              style="border-left: none; font-family: '仿宋_GB2312'"
             >
-              <p>{{ message.absentIds }}</p>
+              <p style="text-indent: 8px">{{ message.absentIds }}</p>
             </td>
           </tr>
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="39" style="font-size:19px">
             <td
               class="JR_left"
-              style="border-right: none; font-family: 'kaiti'"
+              style="border-right: none; font-family: '楷体_GB2312'"
             >
               <p align="center">&nbsp;&nbsp;记录人:</p>
             </td>
             <td
               align="left"
               class="JR_right"
-              style="
-                border-left: none;
-                padding-left: 20px;
-                font-family: 'fangsong';
-              "
+              style="border-left: none; font-family: '仿宋_GB2312'"
             >
-              <p>{{ message.peopleJiLu }}</p>
+              <p style="text-indent: 8px">{{ message.peopleJiLu }}</p>
             </td>
           </tr>
 
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="40" style="font-size:19px">
             <td
               rowspan="2"
               class="JR_left"
-              style="border-right: none; font-family: 'kaiti'"
+              style="border-right: none; font-family: '楷体_GB2312'"
             >
               <p align="center">&nbsp;&nbsp;议 &nbsp;题:</p>
             </td>
@@ -191,33 +162,35 @@
               rowspan="2"
               style="
                 border-left: none;
-                padding: 0px 20px;
-                font-family: 'fangsong';
+                font-family: '仿宋_GB2312';
+                text-indent: 8px;
               "
               align="left"
-              class="JR_right"
               v-html="message.title"
-            >
-              <!-- {{ message.title }} -->
-            </td>
+              class="colors"
+            ></td>
           </tr>
-          <tr class="JR_tr"></tr>
-          <tr class="JR_tr">
-            <td class="JR_left" style="border-right: 0; font-family: 'kaiti'">
+          <tr class="JR_tr" ></tr>
+          <tr class="JR_tr" height="40" style="font-size:19px">
+            <td
+              class="JR_left"
+              style="border-right: 0; font-family: '楷体_GB2312'"
+            >
               <p align="center">&nbsp;&nbsp; 内 &nbsp;容:</p>
             </td>
-            <td class="TableData" style="border-left: 0"></td>
+            <td class="TableData" style="border-left: 0" ></td>
           </tr>
-          <tr align="left" class="JR_tr">
+          <tr align="left" class="JR_tr" height="50" style="font-size:19px;">
             <td
               colspan="2"
-              class="JR_right"
+              class="colors"
               v-html="message.contents"
               style="
                 text-indent: 30px;
-                padding: 0px 10px;
+                text-indent: 8px;
                 border: 1px solid black;
-                font-family: 'fangsong';
+                font-family: '仿宋_GB2312';
+                color: black !important;
               "
             ></td>
           </tr>
@@ -236,21 +209,21 @@
           mso-border-insidev: 0.5pt solid windowtext;
           mso-padding-alt: 0pt 0pt 0pt 0pt;
         "
-        width="600"
+        width="623"
         align="center"
         bordercolor="black"
         class="size"
         border-top="none"
       >
         <tbody>
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="39" style="font-size:19px">
             <td
               colspan="2"
               class="JR_bottom"
               style="
                 border-top: none;
                 border-left: 1px solid black;
-                font-family: 'heiti';
+                font-family: '仿宋_GB2312';
               "
             >
               <p style="text-align: right; margin-right: 20px">
@@ -258,35 +231,31 @@
                 {{ message.compereRen }}
               </p>
             </td>
-            <!-- <td style="width: 100px; border-top: none; border-left: none"></td> -->
           </tr>
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="39" style="font-size:19px">
             <td
               colspan="2"
               class="JR_bottom"
-              style="border-left: 1px solid black; font-family: 'heiti'"
+              style="border-left: 1px solid black; font-family: '仿宋_GB2312'"
             >
               <p style="text-align: right; margin-right: 20px">
                 记录人:
                 {{ message.peopleJiLu }}
               </p>
             </td>
-            <!-- <td style="width: 100px; border-left: none"></td> -->
           </tr>
 
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="39" style="font-size:19px">
             <td
               colspan="2"
               class="JR_bottom"
-              style="border-left: 1px solid black"
+              style="border-left: 1px solid black;font-family:'仿宋_GB2312'"
             >
-              <!--<p style=" text-align:right;padding-right: 10px;">    年  月  日</p>-->
               <p style="text-align: right; margin-right: 20px">
                 时间:
                 {{ message.convokeTime | dataFormaty }}
               </p>
             </td>
-            <!-- <td style="width: 100px; border-left: none"></td> -->
           </tr>
         </tbody>
       </table>
@@ -294,7 +263,8 @@
   </div>
 </template>
 <script>
-import { lookWord } from "@/utils/look_word.js";
+// import { lookWord } from "@/utils/look_word.js";
+import exportWord from "@/utils/exportWord.js";
 import "@/utils/lodJs.js";
 export default {
   name: "bdgleven",
@@ -302,13 +272,21 @@ export default {
   data() {
     return {
       title: "党支部会议记录本",
-      style:
-        ".size{width:99%};.JR_tr {height: 40px;};.JR_left{border-right:none;font-size: 1.331em; font-family: '楷体_GB2312';};.JR_right{border-left:0; font-size: 1.331em; font-family: 仿宋_GB2312;};.JR_bottom{border-left:0; font-size: 1.331em; font-family: 仿宋_GB2312; text-align: right}",
+      faith: {
+        fileName: "党支部会议记录本", //文档名
+        fileType: ".doc", //文档类型  经测试  可以doc xls html 其他的自己去试
+        // header: '测试页眉',//页眉标题
+        // footer: '测试页脚',//页脚标题
+        direction: "", //默认或不填写为纵向,Horizontal 为横向
+        dom: "#contents", // dom节点
+        style:'.colors{color: black !important}'
+      },
     };
   },
   methods: {
     daochu() {
-      lookWord(this.title, "#contents", this.style);
+      // lookWord(this.title, "#contents", this.style);
+      exportWord(this.faith);
     },
   },
 };
@@ -327,5 +305,11 @@ tr:last-child {
   top: 80px;
   border: 1px solid rgb(129, 130, 131);
   border-radius: 5px;
+}
+ ::v-deep .colors p span {
+  color: black  !important ;
+}
+::v-deep .colors{
+  color: black  !important ;
 }
 </style>

+ 64 - 57
src/components/look_word/bdglsoldier.vue

@@ -9,7 +9,7 @@
           margin-botttom: 30px;
           color: black;
           text-align: center;
-          font-family: 'heiti';
+          font-family: '仿宋_GB2312';
         "
       >
         《军人委员会工作记录本》
@@ -27,140 +27,140 @@
           mso-border-insidev: 0.5pt solid windowtext;
           mso-padding-alt: 0pt 0pt 0pt 0pt;
         "
-        width="600"
+        width="623"
         align="center"
         bordercolor="black"
         class="size"
       >
         <tbody style="font-size: 16px; font-weight: 500">
-          <tr class="JR_tr">
-            <th class="" colspan="2" style="font-family: 'kaiti'">
+          <tr class="JR_tr" height="39">
+            <th class="" colspan="2" style="font-family: '楷体_GB2312'">
               <p
                 align="center"
-                style="font-size: 18px; font-weight: 500; font-family: 'kaiti'"
+                style="font-size: 18px;  font-family: '楷体_GB2312';font-weight: 400;"
               >
                 军人委员会会议
               </p>
             </th>
           </tr>
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="39" style="font-size: 19px">
             <td
               align="center"
               width="110"
               class="JR_left"
-              style="border-right: 0; font-family: 'kaiti'"
+              style="border-right: 0; font-family: '楷体_GB2312'"
             >
               <p align="center">&nbsp;&nbsp;&nbsp;&nbsp;时 &nbsp;间:</p>
             </td>
             <td
               align="left"
               class="JR_right"
-              style="border-left: 0; font-family: 'fangsong'"
+              style="border-left: 0; font-family: '仿宋_GB2312'"
             >
-              <p>{{ message.convokeTime | dataFormaty }}</p>
+              <p style="text-indent: 8px">{{ message.convokeTime | dataFormaty }}</p>
             </td>
           </tr>
-          <tr class="JR_tr">
-            <td class="JR_left" style="border-right: 0; font-family: 'kaiti'">
+          <tr class="JR_tr" height="39" style="font-size: 19px">
+            <td class="JR_left" style="border-right: 0; font-family: '楷体_GB2312'">
               <p align="center">&nbsp;&nbsp;&nbsp;&nbsp;地 &nbsp;点:</p>
             </td>
             <td
               align="left"
               class="JR_right"
-              style="border-left: 0; font-family: 'fangsong'"
+              style="border-left: 0; font-family: '仿宋_GB2312'"
             >
-              <p>{{ message.address }}</p>
+              <p style="text-indent: 8px">{{ message.address }}</p>
             </td>
           </tr>
-          <tr class="JR_tr">
-            <td class="JR_left" style="border-right: 0; font-family: 'kaiti'">
+          <tr class="JR_tr" height="39" style="font-size: 19px">
+            <td class="JR_left" style="border-right: 0; font-family: '楷体_GB2312'">
               <p align="center">&nbsp;&nbsp;&nbsp;&nbsp;主持人:</p>
             </td>
             <td
               align="left"
               class="JR_right"
-              style="border-left: 0; font-family: 'fangsong'"
+              style="border-left: 0; font-family: '仿宋_GB2312'"
             >
-              <p>{{ message.compereRen }}</p>
+              <p style="text-indent: 8px">{{ message.compereRen }}</p>
             </td>
           </tr>
-          <tr class="JR_tr">
-            <td class="JR_left" style="border-right: 0; font-family: 'kaiti'">
+          <tr class="JR_tr" style="font-size: 19px" height="46">
+            <td class="JR_left" style="border-right: 0; font-family: '楷体_GB2312'">
               <p align="center">&nbsp;&nbsp;&nbsp;&nbsp;参加人:</p>
             </td>
             <td
               align="left"
               class="JR_right"
-              style="border-left: 0; font-family: 'fangsong'"
+              style="border-left: 0; font-family: '仿宋_GB2312'"
             >
-              <p>{{ message.joinId }}</p>
+              <p style="text-indent: 8px">{{ message.joinId }}</p>
             </td>
           </tr>
-          <tr class="JR_tr">
-            <td class="JR_left" style="border-right: 0; font-family: 'kaiti'">
+          <tr class="JR_tr" height="39" style="font-size:19px">
+            <td class="JR_left" style="border-right: 0; font-family: '楷体_GB2312'">
               <p align="center">&nbsp;&nbsp;&nbsp;&nbsp;列席人:</p>
             </td>
             <td
               align="left"
               class="JR_right"
-              style="border-left: 0; font-family: 'fangsong'"
+              style="border-left: 0; font-family: '仿宋_GB2312'"
             >
-              <p>{{ message.peopleIds }}</p>
+              <p style="text-indent: 8px">{{ message.peopleIds }}</p>
             </td>
           </tr>
-          <tr class="JR_tr">
-            <td class="JR_left" style="border-right: 0; font-family: 'kaiti'">
+          <tr class="JR_tr" height="39" style="font-size:19px">
+            <td class="JR_left" style="border-right: 0; font-family: '楷体_GB2312'">
               <p align="center">&nbsp;&nbsp;&nbsp;&nbsp;缺席人:</p>
             </td>
             <td
               align="left"
               class="JR_right"
-              style="border-left: 0; font-family: 'fangsong'"
+              style="border-left: 0; font-family: '仿宋_GB2312'"
             >
-              <p>{{ message.absentIds }}</p>
+              <p style="text-indent: 8px">{{ message.absentIds }}</p>
             </td>
           </tr>
-          <tr class="JR_tr">
-            <td class="JR_left" style="border-right: 0; font-family: 'kaiti'">
+          <tr class="JR_tr"  height="39" style="font-size:19px">
+            <td class="JR_left" style="border-right: 0; font-family: '楷体_GB2312'">
               <p align="center">&nbsp;&nbsp;&nbsp;&nbsp;记录人:</p>
             </td>
             <td
               align="left"
               class="JR_right"
-              style="border-left: 0; font-family: 'fangsong'"
+              style="border-left: 0; font-family: '仿宋_GB2312'"
             >
-              <p>{{ message.peopleJiLu }}</p>
+              <p style="text-indent: 8px">{{ message.peopleJiLu }}</p>
             </td>
           </tr>
-          <tr class="JR_tr">
-            <td class="JR_left" style="border-right: 0; font-family: 'kaiti'">
+          <tr class="JR_tr" height="40" style="font-size:19px">
+            <td class="JR_left" style="border-right: 0; font-family: '楷体_GB2312'">
               <p align="center">&nbsp;&nbsp;&nbsp;议 &nbsp;题:</p>
             </td>
             <td
+             class="colors"
               align="left"
-              class="JR_right"
-              style="border-left: 0; font-family: 'fangsong'"
+              style="border-left: 0; font-family: '仿宋_GB2312'"
               v-html="message.title"
             >
               <!-- <p>{{ message.title }}</p> -->
             </td>
           </tr>
-          <tr class="JR_tr">
-            <td class="JR_left" style="border-right: 0; font-family: 'kaiti'">
+          <tr class="JR_tr" height="40" style="font-size:19px">
+            <td class="JR_left" style="border-right: 0; font-family: '楷体_GB2312'">
               <p align="center">&nbsp;&nbsp; 内 &nbsp;容:</p>
             </td>
             <td class="TableData" style="border-left: 0"></td>
           </tr>
-          <tr align="left" class="JR_tr">
+          <tr align="left" class="JR_tr" height="50" style="font-size:19px;">
             <td
               colspan="2"
-              class="JR_right"
+               class="colors"
               v-html="message.contents"
               style="
                 text-indent: 30px;
                 padding: 0px 10px;
                 border: 1px solid black;
-                font-family: 'fangsong';
+                font-family: '仿宋_GB2312';
               "
             ></td>
           </tr>
@@ -179,21 +179,21 @@
           mso-border-insidev: 0.5pt solid windowtext;
           mso-padding-alt: 0pt 0pt 0pt 0pt;
         "
-        width="600"
+        width="623"
         align="center"
         bordercolor="black"
         class="size"
         border-top="none"
       >
         <tbody>
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="39" style="font-size:19px">
             <td
               colspan="2"
               class="JR_bottom"
               style="
                 border-top: none;
                 border-left: 1px solid black;
-                font-family: 'heiti';
+                font-family: '仿宋_GB2312';
               "
             >
               <p style="text-align: right; margin-right: 20px">
@@ -201,35 +201,31 @@
                 {{ message.compereRen }}
               </p>
             </td>
-            <!-- <td style="width: 100px; border-top: none; border-left: none"></td> -->
           </tr>
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="39" style="font-size:19px">
             <td
               colspan="2"
               class="JR_bottom"
-              style="border-left: 1px solid black; font-family: 'heiti'"
+              style="border-left: 1px solid black; font-family: '仿宋_GB2312'"
             >
               <p style="text-align: right; margin-right: 20px">
                 记录人:
                 {{ message.peopleJiLu }}
               </p>
             </td>
-            <!-- <td style="width: 100px; border-left: none"></td> -->
           </tr>
 
-          <tr class="JR_tr">
+          <tr class="JR_tr" height="39" style="font-size:19px">
             <td
               colspan="2"
               class="JR_bottom"
-              style="border-left: 1px solid black; font-family: 'heiti'"
+              style="border-left: 1px solid black; font-family: '仿宋_GB2312'"
             >
-              <!--<p style=" text-align:right;padding-right: 10px;">    年  月  日</p>-->
               <p style="text-align: right; margin-right: 20px">
                 时间:
                 {{ message.convokeTime | dataFormaty }}
               </p>
             </td>
-            <!-- <td style="width: 100px; border-left: none"></td> -->
           </tr>
         </tbody>
       </table>
@@ -237,7 +233,8 @@
   </div>
 </template>
 <script>
-import { lookWord } from "@/utils/look_word.js";
+// import { lookWord } from "@/utils/look_word.js";
+import exportWord from "@/utils/exportWord.js";
 import "@/utils/lodJs.js";
 export default {
   name: "bdgleven",
@@ -245,13 +242,20 @@ export default {
   data() {
     return {
       title: "军人委员会",
-      style:
-        ".size{width:99%};.JR_tr {height: 40px;};.JR_left{text-align:center;font-size: 1.331em; font-family: '楷体_GB2312';};.JR_right{ font-size: 1.331em; font-family: 仿宋_GB2312;};.JR_bottom{border-left:0; font-size: 1.331em; font-family: 仿宋_GB2312; text-align: right}",
+       faith: {
+        fileName: "军人委员会", //文档名
+        fileType: ".doc", //文档类型  经测试  可以doc xls html 其他的自己去试
+        // header: '测试页眉',//页眉标题
+        // footer: '测试页脚',//页脚标题
+        direction: "", //默认或不填写为纵向,Horizontal 为横向
+        dom: "#contents", // dom节点
+        style:'.colors{color: black !important}'
+      },
     };
   },
   methods: {
     daochu() {
-      lookWord(this.title, "#contents", this.style);
+       exportWord(this.faith);
     },
   },
 };
@@ -271,4 +275,7 @@ tr:last-child {
   border: 1px solid rgb(129, 130, 131);
   border-radius: 5px;
 }
+::v-deep .colors{
+  color: black  !important ;
+}
 </style>

+ 43 - 54
src/components/look_word/bdglweekwork.vue

@@ -40,7 +40,7 @@
           mso-border-insidev: 0.5pt solid windowtext;
           mso-padding-alt: 0pt 0pt 0pt 0pt;
         "
-        width="906"
+        width="907"
         align="center"
         bordercolor="black"
       >
@@ -49,45 +49,34 @@
           style="
             border: none;
             color: black;
-            font-size: 9px;
             font-weight: 500;
             line-height: 30px;
             width: 930px;
-            font-family: 'kaiti'
-            margin-left:8px;
-
+            margin-left: 8px;
           "
         >
           <td
             class="JR_left"
-            colspan="1"
+            colspan="3"
             align="left"
-            style="border: none; line-height: 45px"
+            style="border: none; line-height: 45px; font-size: 16px"
           >
             <span style="margin-left: 8px"
               >连值班领导:{{ message.peopleName }}</span
             >
           </td>
-          <td
-            class="JR_left"
-            colspan="3"
-            align="left"
-            style="border: none; line-height: 45px"
-          >
-            <span style="margin-left: 188px"> 电话:{{ message.phone }}</span>
+          <td class="JR_left" colspan="2" align="left" style="border: none">
+            <span style="margin-left: 188px; font-size: 16px">
+              电话:{{ message.phone }}</span
+            >
           </td>
           <td
             class="JR_left"
-            colspan="2"
+            colspan="3"
             align="left"
-            style="
-              border: none;
-              line-height: 45px;
-
-              text-align: right;
-            "
+            style="border: none; text-align: right"
           >
-            <span style="margin-left: 20px">
+            <span style="margin-left: 20px; font-size: 16px">
               {{ message.startTime | dataFormaty }}—{{
                 message.endTime | dataFormaty
               }}</span
@@ -105,10 +94,10 @@
             "
           >
             <td
-              width="143"
+              width="142"
               height="22"
               valign="center"
-              rowspan="2"
+              colspan="3"
               class="JR_left"
               style="font-family: '黑体'; text-align: center; font-size: 16px"
             >
@@ -117,9 +106,9 @@
               >
             </td>
             <td
-              width="245"
+              width="241"
               valign="center"
-              rowspan="2"
+             
               class="JR_left"
               style="font-family: '黑体'; text-align: center; font-size: 16px"
             >
@@ -129,9 +118,9 @@
             </td>
 
             <td
-              width="84"
+              width="85"
               valign="center"
-              rowspan="2"
+             
               class="JR_left"
               style="font-family: '黑体'; text-align: center; font-size: 16px"
             >
@@ -141,9 +130,9 @@
               >
             </td>
             <td
-              width="151"
+              width="153"
               valign="center"
-              rowspan="2"
+           
               class="JR_left"
               style="font-family: '黑体'; text-align: center; font-size: 16px"
             >
@@ -153,9 +142,9 @@
               >
             </td>
             <td
-              width="125"
+              width="126"
               valign="center"
-              rowspan="2"
+           
               class="JR_left"
               style="font-family: '黑体'; text-align: center; font-size: 16px"
             >
@@ -165,9 +154,9 @@
               >
             </td>
             <td
-              width="157"
+              width="151"
               valign="center"
-              rowspan="2"
+             
               class="JR_left"
               style="font-family: '黑体'; text-align: center; font-size: 16px"
             >
@@ -178,26 +167,6 @@
             </td>
           </tr>
         </tbody>
-      </table>
-      <table
-        class="b1"
-        border="1"
-        style="
-          border-collapse: collapse;
-          border: none;
-          mso-border-left-alt: 0.5pt solid windowtext;
-          mso-border-top-alt: 0.5pt solid windowtext;
-          mso-border-right-alt: 0.5pt solid windowtext;
-          mso-border-bottom-alt: 0.5pt solid windowtext;
-          mso-border-insideh: 0.5pt solid windowtext;
-          mso-border-insidev: 0.5pt solid windowtext;
-          mso-padding-alt: 0pt 0pt 0pt 0pt;
-          margin-left: 77px;
-        "
-        width="907"
-        align="center"
-        bordercolor="black"
-      >
         <tbody id="tbody" style="font-size: 16px; font-weight: 500">
           <tr
             class="JR_tr"
@@ -320,6 +289,26 @@
           </td>
         </tr>
       </table>
+
+      <table
+        class="b1"
+        border="1"
+        style="
+          border-collapse: collapse;
+          border: none;
+          mso-border-left-alt: 0.5pt solid windowtext;
+          mso-border-top-alt: 0.5pt solid windowtext;
+          mso-border-right-alt: 0.5pt solid windowtext;
+          mso-border-bottom-alt: 0.5pt solid windowtext;
+          mso-border-insideh: 0.5pt solid windowtext;
+          mso-border-insidev: 0.5pt solid windowtext;
+          mso-padding-alt: 0pt 0pt 0pt 0pt;
+          margin-left: 77px;
+        "
+        width="907"
+        align="center"
+        bordercolor="black"
+      ></table>
     </div>
   </div>
 </template>

+ 1 - 0
src/views/grassrootsregistration/bdgldiary/index.vue

@@ -1931,6 +1931,7 @@ export default {
 /* 训练、教育或者执行其他任务情况 */
 .box {
   margin-bottom: 25px;
+  padding-bottom: 20px;
 }
 ::v-deep .box .el-textarea__inner {
   width: 395px;

+ 1 - 0
src/views/grassrootsregistration/bdglfood/index.vue

@@ -1720,6 +1720,7 @@ export default {
         this.wordInfo = response.data;
         this.title = "查看伙食管理登记薄";
         this.menuRoleVisible = true;
+        // console.log(this.wordInfo);
       });
     },
     /** 提交按钮 */