|
@@ -24,7 +24,7 @@
|
|
</div> -->
|
|
</div> -->
|
|
|
|
|
|
<table
|
|
<table
|
|
- class="b1"
|
|
|
|
|
|
+ class="b1"
|
|
border="none"
|
|
border="none"
|
|
style="
|
|
style="
|
|
border-collapse: collapse;
|
|
border-collapse: collapse;
|
|
@@ -71,7 +71,7 @@
|
|
</tr>
|
|
</tr>
|
|
</table>
|
|
</table>
|
|
<table
|
|
<table
|
|
- class="b1"
|
|
|
|
|
|
+ class="b1"
|
|
border="1"
|
|
border="1"
|
|
style="
|
|
style="
|
|
border-collapse: collapse;
|
|
border-collapse: collapse;
|
|
@@ -131,7 +131,7 @@
|
|
</td>
|
|
</td>
|
|
<td width="68" class="JR_left" style="font-family: 'songti'">合计</td>
|
|
<td width="68" class="JR_left" style="font-family: 'songti'">合计</td>
|
|
<td width="68" class="JR_left" style="font-family: 'fangsong'">
|
|
<td width="68" class="JR_left" style="font-family: 'fangsong'">
|
|
- {{ message.orgcadre + message.orgsoldier}}
|
|
|
|
|
|
+ {{ message.orgcadre + message.orgsoldier }}
|
|
</td>
|
|
</td>
|
|
<td width="68" class="JR_left" style="font-family: 'songti'">干部</td>
|
|
<td width="68" class="JR_left" style="font-family: 'songti'">干部</td>
|
|
<td width="68" class="JR_left" style="font-family: 'fangsong'">
|
|
<td width="68" class="JR_left" style="font-family: 'fangsong'">
|
|
@@ -143,7 +143,7 @@
|
|
</td>
|
|
</td>
|
|
<td width="68" class="JR_left" style="font-family: 'songti'">合计</td>
|
|
<td width="68" class="JR_left" style="font-family: 'songti'">合计</td>
|
|
<td width="68" class="JR_left" style="font-family: 'fangsong'">
|
|
<td width="68" class="JR_left" style="font-family: 'fangsong'">
|
|
- {{ message.nowcadre + message.nowsoldier}}
|
|
|
|
|
|
+ {{ message.nowcadre + message.nowsoldier }}
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<!-- 训练、教育或者执行其他任务情况 -->
|
|
<!-- 训练、教育或者执行其他任务情况 -->
|
|
@@ -206,7 +206,19 @@
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<td class="JR_right" height="70">{{ items.dateline }}</td>
|
|
<td class="JR_right" height="70">{{ items.dateline }}</td>
|
|
- <td style="text-align: left" colspan="9" v-html="items.startTime + '-' + items.endTime + items.contents+'(组织人:' + items.organizer + ')'"></td>
|
|
|
|
|
|
+ <td
|
|
|
|
+ style="text-align: left"
|
|
|
|
+ colspan="9"
|
|
|
|
+ v-html="
|
|
|
|
+ items.startTime +
|
|
|
|
+ '-' +
|
|
|
|
+ items.endTime +
|
|
|
|
+ items.contents +
|
|
|
|
+ '(组织人:' +
|
|
|
|
+ items.organizer +
|
|
|
|
+ ')'
|
|
|
|
+ "
|
|
|
|
+ ></td>
|
|
<td class="JR_right" height="70">{{ items.shouldArrive }}</td>
|
|
<td class="JR_right" height="70">{{ items.shouldArrive }}</td>
|
|
<td class="JR_right" height="70">{{ items.realTo }}</td>
|
|
<td class="JR_right" height="70">{{ items.realTo }}</td>
|
|
<td class="JR_right" height="70">{{ items.percentage }}</td>
|
|
<td class="JR_right" height="70">{{ items.percentage }}</td>
|
|
@@ -217,12 +229,11 @@
|
|
align="center"
|
|
align="center"
|
|
v-if="
|
|
v-if="
|
|
message.weekworkRegisters == null ||
|
|
message.weekworkRegisters == null ||
|
|
- (message.weekworkRegisters.length < 4 || message.weekworkRegisters.length == 0)
|
|
|
|
|
|
+ message.weekworkRegisters.length < 4 ||
|
|
|
|
+ message.weekworkRegisters.length == 0
|
|
"
|
|
"
|
|
>
|
|
>
|
|
- <td class="JR_left" height="70" style="font-family: 'songti'">
|
|
|
|
-
|
|
|
|
- </td>
|
|
|
|
|
|
+ <td class="JR_left" height="70" style="font-family: 'songti'"></td>
|
|
<td class="JR_right" colspan="9"></td>
|
|
<td class="JR_right" colspan="9"></td>
|
|
<td class="JR_right"></td>
|
|
<td class="JR_right"></td>
|
|
<td class="JR_right"></td>
|
|
<td class="JR_right"></td>
|
|
@@ -234,12 +245,11 @@
|
|
align="center"
|
|
align="center"
|
|
v-if="
|
|
v-if="
|
|
message.weekworkRegisters == null ||
|
|
message.weekworkRegisters == null ||
|
|
- (message.weekworkRegisters.length < 3 || message.weekworkRegisters.length == 0)
|
|
|
|
|
|
+ message.weekworkRegisters.length < 3 ||
|
|
|
|
+ message.weekworkRegisters.length == 0
|
|
"
|
|
"
|
|
>
|
|
>
|
|
- <td class="JR_left" height="70" style="font-family: 'songti'">
|
|
|
|
-
|
|
|
|
- </td>
|
|
|
|
|
|
+ <td class="JR_left" height="70" style="font-family: 'songti'"></td>
|
|
<td class="JR_right" colspan="9"></td>
|
|
<td class="JR_right" colspan="9"></td>
|
|
<td class="JR_right"></td>
|
|
<td class="JR_right"></td>
|
|
<td class="JR_right"></td>
|
|
<td class="JR_right"></td>
|
|
@@ -251,12 +261,11 @@
|
|
align="center"
|
|
align="center"
|
|
v-if="
|
|
v-if="
|
|
message.weekworkRegisters == null ||
|
|
message.weekworkRegisters == null ||
|
|
- (message.weekworkRegisters.length < 2 || message.weekworkRegisters.length == 0)
|
|
|
|
|
|
+ message.weekworkRegisters.length < 2 ||
|
|
|
|
+ message.weekworkRegisters.length == 0
|
|
"
|
|
"
|
|
>
|
|
>
|
|
- <td class="JR_left" height="70" style="font-family: 'songti'">
|
|
|
|
-
|
|
|
|
- </td>
|
|
|
|
|
|
+ <td class="JR_left" height="70" style="font-family: 'songti'"></td>
|
|
<td class="JR_right" colspan="9"></td>
|
|
<td class="JR_right" colspan="9"></td>
|
|
<td class="JR_right"></td>
|
|
<td class="JR_right"></td>
|
|
<td class="JR_right"></td>
|
|
<td class="JR_right"></td>
|
|
@@ -268,12 +277,11 @@
|
|
align="center"
|
|
align="center"
|
|
v-if="
|
|
v-if="
|
|
message.weekworkRegisters == null ||
|
|
message.weekworkRegisters == null ||
|
|
- (message.weekworkRegisters.length < 1 || message.weekworkRegisters.length == 0)
|
|
|
|
|
|
+ message.weekworkRegisters.length < 1 ||
|
|
|
|
+ message.weekworkRegisters.length == 0
|
|
"
|
|
"
|
|
>
|
|
>
|
|
- <td class="JR_left" height="70" style="font-family: 'songti'">
|
|
|
|
-
|
|
|
|
- </td>
|
|
|
|
|
|
+ <td class="JR_left" height="70" style="font-family: 'songti'"></td>
|
|
<td class="JR_right" colspan="9"></td>
|
|
<td class="JR_right" colspan="9"></td>
|
|
<td class="JR_right"></td>
|
|
<td class="JR_right"></td>
|
|
<td class="JR_right"></td>
|
|
<td class="JR_right"></td>
|
|
@@ -557,7 +565,7 @@
|
|
<p align="center">{{ item1.relation }}</p>
|
|
<p align="center">{{ item1.relation }}</p>
|
|
</td>
|
|
</td>
|
|
<td class="JR_right" height="30">
|
|
<td class="JR_right" height="30">
|
|
- <p align="center">{{ item1.comeDate}}</p>
|
|
|
|
|
|
+ <p align="center">{{ item1.comeDate }}</p>
|
|
</td>
|
|
</td>
|
|
<td class="JR_right" height="30">
|
|
<td class="JR_right" height="30">
|
|
<p align="center">{{ item1.leaveDate }}</p>
|
|
<p align="center">{{ item1.leaveDate }}</p>
|
|
@@ -623,7 +631,7 @@
|
|
height="30"
|
|
height="30"
|
|
style="font-family: 'songti'"
|
|
style="font-family: 'songti'"
|
|
>
|
|
>
|
|
- <td rowspan="6" class="JR_left">
|
|
|
|
|
|
+ <td :rowspan="qingjia" class="JR_left">
|
|
<p align="center" style="margin: 0 15px; font-family: 'songti'">
|
|
<p align="center" style="margin: 0 15px; font-family: 'songti'">
|
|
请 <br />
|
|
请 <br />
|
|
假 <br />
|
|
假 <br />
|
|
@@ -662,7 +670,49 @@
|
|
时(天)数
|
|
时(天)数
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
- <tr class="JR_tr" height="30" style="font-family: 'fangsong'">
|
|
|
|
|
|
+ <tr
|
|
|
|
+ class="JR_tr"
|
|
|
|
+ height="30"
|
|
|
|
+ style="font-family: 'fangsong'"
|
|
|
|
+ v-for="(item, i) in message.bdglLeaves"
|
|
|
|
+ :key="i"
|
|
|
|
+ >
|
|
|
|
+ <td class="JR_right">
|
|
|
|
+ <p align="center">{{ item.peopleName }}</p>
|
|
|
|
+ </td>
|
|
|
|
+ <td class="JR_right">
|
|
|
|
+ <p align="center">
|
|
|
|
+ <dict-tag :options="dict.type.post_Level" :value="item.postId" />
|
|
|
|
+ </p>
|
|
|
|
+ </td>
|
|
|
|
+ <td class="JR_right" colspan="2">
|
|
|
|
+ <p align="center">{{ item.leaveReason }}</p>
|
|
|
|
+ </td>
|
|
|
|
+ <td class="JR_right" colspan="2">
|
|
|
|
+ <p align="center">{{ time[i] }}</p>
|
|
|
|
+ </td>
|
|
|
|
+ <td class="JR_right" colspan="2">
|
|
|
|
+ <p align="center">{{ item.peopleName1 }}</p>
|
|
|
|
+ </td>
|
|
|
|
+ <td class="JR_right" colspan="2">
|
|
|
|
+ <p align="center">{{ item.departureTime }}</p>
|
|
|
|
+ </td>
|
|
|
|
+ <td class="JR_right" colspan="2">
|
|
|
|
+ <p align="center">{{ item.returnTime }}</p>
|
|
|
|
+ </td>
|
|
|
|
+ <td class="JR_right" colspan="3">
|
|
|
|
+ <p align="center">{{ guiTime[i] }}</p>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ <tr
|
|
|
|
+ class="JR_tr"
|
|
|
|
+ height="30"
|
|
|
|
+ style="font-family: 'fangsong'"
|
|
|
|
+ v-if="
|
|
|
|
+ this.message.bdglLeaves == null ||
|
|
|
|
+ this.message.bdglLeaves.length < 5
|
|
|
|
+ "
|
|
|
|
+ >
|
|
<td class="JR_right"><p align="center"></p></td>
|
|
<td class="JR_right"><p align="center"></p></td>
|
|
<td class="JR_right"><p align="center"></p></td>
|
|
<td class="JR_right"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="2"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="2"><p align="center"></p></td>
|
|
@@ -672,7 +722,15 @@
|
|
<td class="JR_right" colspan="2"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="2"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="3"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="3"><p align="center"></p></td>
|
|
</tr>
|
|
</tr>
|
|
- <tr class="JR_tr" height="30" style="font-family: 'fangsong'">
|
|
|
|
|
|
+ <tr
|
|
|
|
+ class="JR_tr"
|
|
|
|
+ height="30"
|
|
|
|
+ style="font-family: 'fangsong'"
|
|
|
|
+ v-if="
|
|
|
|
+ this.message.bdglLeaves == null ||
|
|
|
|
+ this.message.bdglLeaves.length < 4
|
|
|
|
+ "
|
|
|
|
+ >
|
|
<td class="JR_right"><p align="center"></p></td>
|
|
<td class="JR_right"><p align="center"></p></td>
|
|
<td class="JR_right"><p align="center"></p></td>
|
|
<td class="JR_right"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="2"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="2"><p align="center"></p></td>
|
|
@@ -682,7 +740,15 @@
|
|
<td class="JR_right" colspan="2"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="2"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="3"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="3"><p align="center"></p></td>
|
|
</tr>
|
|
</tr>
|
|
- <tr class="JR_tr" height="30" style="font-family: 'fangsong'">
|
|
|
|
|
|
+ <tr
|
|
|
|
+ class="JR_tr"
|
|
|
|
+ height="30"
|
|
|
|
+ style="font-family: 'fangsong'"
|
|
|
|
+ v-if="
|
|
|
|
+ this.message.bdglLeaves == null ||
|
|
|
|
+ this.message.bdglLeaves.length < 3
|
|
|
|
+ "
|
|
|
|
+ >
|
|
<td class="JR_right"><p align="center"></p></td>
|
|
<td class="JR_right"><p align="center"></p></td>
|
|
<td class="JR_right"><p align="center"></p></td>
|
|
<td class="JR_right"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="2"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="2"><p align="center"></p></td>
|
|
@@ -692,7 +758,15 @@
|
|
<td class="JR_right" colspan="2"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="2"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="3"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="3"><p align="center"></p></td>
|
|
</tr>
|
|
</tr>
|
|
- <tr class="JR_tr" height="30" style="font-family: 'fangsong'">
|
|
|
|
|
|
+ <tr
|
|
|
|
+ class="JR_tr"
|
|
|
|
+ height="30"
|
|
|
|
+ style="font-family: 'fangsong'"
|
|
|
|
+ v-if="
|
|
|
|
+ this.message.bdglLeaves == null ||
|
|
|
|
+ this.message.bdglLeaves.length < 2
|
|
|
|
+ "
|
|
|
|
+ >
|
|
<td class="JR_right"><p align="center"></p></td>
|
|
<td class="JR_right"><p align="center"></p></td>
|
|
<td class="JR_right"><p align="center"></p></td>
|
|
<td class="JR_right"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="2"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="2"><p align="center"></p></td>
|
|
@@ -702,7 +776,15 @@
|
|
<td class="JR_right" colspan="2"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="2"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="3"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="3"><p align="center"></p></td>
|
|
</tr>
|
|
</tr>
|
|
- <tr class="JR_tr" height="30" style="font-family: 'fangsong'">
|
|
|
|
|
|
+ <tr
|
|
|
|
+ class="JR_tr"
|
|
|
|
+ height="30"
|
|
|
|
+ style="font-family: 'fangsong'"
|
|
|
|
+ v-if="
|
|
|
|
+ this.message.bdglLeaves == null ||
|
|
|
|
+ this.message.bdglLeaves.length < 1
|
|
|
|
+ "
|
|
|
|
+ >
|
|
<td class="JR_right"><p align="center"></p></td>
|
|
<td class="JR_right"><p align="center"></p></td>
|
|
<td class="JR_right"><p align="center"></p></td>
|
|
<td class="JR_right"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="2"><p align="center"></p></td>
|
|
<td class="JR_right" colspan="2"><p align="center"></p></td>
|
|
@@ -742,7 +824,7 @@
|
|
</table>
|
|
</table>
|
|
|
|
|
|
<table
|
|
<table
|
|
- class="b1"
|
|
|
|
|
|
+ class="b1"
|
|
border="none"
|
|
border="none"
|
|
style="
|
|
style="
|
|
border-collapse: collapse;
|
|
border-collapse: collapse;
|
|
@@ -804,6 +886,7 @@ import "@/utils/lodJs.js";
|
|
export default {
|
|
export default {
|
|
name: "bdgleven",
|
|
name: "bdgleven",
|
|
props: ["message"],
|
|
props: ["message"],
|
|
|
|
+ dicts: ["post_Level"],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
title: "连队要事日记",
|
|
title: "连队要事日记",
|
|
@@ -814,6 +897,9 @@ export default {
|
|
week: "",
|
|
week: "",
|
|
qinshu2: 3,
|
|
qinshu2: 3,
|
|
number: 6,
|
|
number: 6,
|
|
|
|
+ time: [],
|
|
|
|
+ guiTime: [],
|
|
|
|
+ qingjia: 1,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -822,6 +908,7 @@ export default {
|
|
this.week = this.getWeek(this.message.blogDate);
|
|
this.week = this.getWeek(this.message.blogDate);
|
|
this.qinshu2 = this.qinshus2();
|
|
this.qinshu2 = this.qinshus2();
|
|
this.xunlian();
|
|
this.xunlian();
|
|
|
|
+ this.qingjias();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
daochu() {
|
|
daochu() {
|
|
@@ -843,15 +930,26 @@ export default {
|
|
}
|
|
}
|
|
return 3;
|
|
return 3;
|
|
},
|
|
},
|
|
- xunlian(){
|
|
|
|
-
|
|
|
|
- console.log(this.message)
|
|
|
|
- if(this.message.weekworkRegisters!= null){
|
|
|
|
- if (this.message.weekworkRegisters.length > 4){
|
|
|
|
- this.number += (this.message.weekworkRegisters.length - 4)
|
|
|
|
|
|
+ xunlian() {
|
|
|
|
+ this.getTian();
|
|
|
|
+ this.getCao();
|
|
|
|
+ if (this.message.weekworkRegisters != null) {
|
|
|
|
+ if (this.message.weekworkRegisters.length > 4) {
|
|
|
|
+ this.number += this.message.weekworkRegisters.length - 4;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ qingjias() {
|
|
|
|
+ if (this.message.bdglLeaves != null) {
|
|
|
|
+ if (this.message.bdglLeaves.length > 5) {
|
|
|
|
+ this.qingjia += this.message.bdglLeaves.length;
|
|
|
|
+ } else {
|
|
|
|
+ this.qingjia +=
|
|
|
|
+ 5 - this.message.bdglLeaves.length + this.message.bdglLeaves.length;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ } else {
|
|
|
|
+ this.qingjia += 5;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
/*
|
|
/*
|
|
获取当前星期几
|
|
获取当前星期几
|
|
@@ -865,7 +963,33 @@ export default {
|
|
);
|
|
);
|
|
return "星期" + "日一二三四五六".charAt(date.getDay());
|
|
return "星期" + "日一二三四五六".charAt(date.getDay());
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+ // 计算请假天数
|
|
|
|
+ getTian() {
|
|
|
|
+ if (this.message.bdglLeaves != null) {
|
|
|
|
+ this.message.bdglLeaves.forEach((element) => {
|
|
|
|
+ var dateBegin = new Date(element.startTime).getTime();
|
|
|
|
+ var dateBegins = new Date(element.endTime).getTime();
|
|
|
|
+ var num = dateBegins - dateBegin;
|
|
|
|
+ num = num / (1000 * 3600 * 24);
|
|
|
|
+ this.time.push(num);
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ // 计算超时天数
|
|
|
|
+ getCao() {
|
|
|
|
+ if (this.message.bdglLeaves != null) {
|
|
|
|
+ this.message.bdglLeaves.forEach((element) => {
|
|
|
|
+ var dateBegin = new Date(element.actualreturntime).getTime();
|
|
|
|
+ var dateBegins = new Date(element.returnTime).getTime();
|
|
|
|
+ var num = dateBegin - dateBegins;
|
|
|
|
+ num = num / (1000 * 3600 * 24);
|
|
|
|
+ if (num < 0) {
|
|
|
|
+ num = 0;
|
|
|
|
+ }
|
|
|
|
+ this.guiTime.push(num);
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
/*
|
|
/*
|
|
标准时间转换格式
|
|
标准时间转换格式
|
|
*/
|
|
*/
|