|
|
|
@ -37,7 +37,8 @@
|
|
|
|
|
<view class="left"> |
|
|
|
|
<img src="@/static/4412.png" alt=""> |
|
|
|
|
<view class="" style="display: flex; font-weight: 600;"> |
|
|
|
|
<view class="top_name">{{item.name}}</view><view style="flex: 1;">任务总数: {{nub}}/{{week}}</view> |
|
|
|
|
<view class="top_name">{{item.name}}</view> |
|
|
|
|
<view style="flex: 1;">任务总数: {{nub}}/{{week}}</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="right"> |
|
|
|
@ -113,16 +114,14 @@
|
|
|
|
|
{{item.approvalStatus}} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<view style="display: flex;"> |
|
|
|
|
<view style="flex:1"> |
|
|
|
|
<view style="width: 60%;"> |
|
|
|
|
<view class="staffbox"> |
|
|
|
|
<view class="staff"> |
|
|
|
|
<view class="staff2"> |
|
|
|
|
<view>协助人员:</view> |
|
|
|
|
<view v-for="(i,k) in item.supervisors" :key="k" |
|
|
|
|
style="display: flex;justify-content: center;align-items: center;"> |
|
|
|
|
<img v-if="i.posts && i.posts[0] == '主查人员'" src="../../static/447.png" alt=""> |
|
|
|
|
<img v-if="i.posts && i.posts[0] == '协查人员'" src="../../static/446.png" alt=""> |
|
|
|
|
{{i.name}} |
|
|
|
|
<view class="staff_namebox"> |
|
|
|
|
<text v-for="(i,k) in item.supervisors" :key="k">{{i.name}}</text> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
@ -141,7 +140,8 @@
|
|
|
|
|
<view v-else class="staff"> |
|
|
|
|
<view>预定时间:</view> |
|
|
|
|
<picker :value="tasktiem" mode="date" @change="scheduledTime($event,item)"> |
|
|
|
|
<text :class="tasktiem=='检查时间'?'tiem':''" style="margin-right: 12rpx;">{{tasktiem}}</text> |
|
|
|
|
<text :class="tasktiem=='检查时间'?'tiem':''" |
|
|
|
|
style="margin-right: 12rpx;">{{tasktiem}}</text> |
|
|
|
|
</picker> |
|
|
|
|
<image v-if="tasktiem=='检查时间'" src="../../static/down.png" mode=""></image> |
|
|
|
|
</view> |
|
|
|
@ -286,79 +286,17 @@
|
|
|
|
|
this.today.year = date.getFullYear() |
|
|
|
|
|
|
|
|
|
this.dates.day = date.getDate() |
|
|
|
|
let a = this.month % 2 |
|
|
|
|
let b = 0 |
|
|
|
|
if (this.dates.year % 4 == 0 && year % 100 != 0 || this.dates.year % 400 == 0) { |
|
|
|
|
b = 1 |
|
|
|
|
} |
|
|
|
|
if (this.month < 8 && this.month != 2 && a == 0) { |
|
|
|
|
for (let i = 0; i < 30; i++) { |
|
|
|
|
var dt2 = new Date(Date.parse(JSON.stringify(this.dates.month) + " " + "1 " + JSON.stringify(this.dates |
|
|
|
|
.year)) + i * 24 * 3600 * 1000); |
|
|
|
|
var weekDay = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"]; |
|
|
|
|
var week = weekDay[dt2.getDay()] |
|
|
|
|
if (week == "周二" || week == "周四") { |
|
|
|
|
this.week++ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else if (this.month < 8 && this.month != 2 && a != 0) { |
|
|
|
|
for (let i = 0; i < 31; i++) { |
|
|
|
|
var dt2 = new Date(Date.parse(JSON.stringify(this.dates.month) + " " + "1 " + JSON.stringify(this.dates |
|
|
|
|
.year)) + i * 24 * 3600 * 1000); |
|
|
|
|
var weekDay = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"]; |
|
|
|
|
var week = weekDay[dt2.getDay()] |
|
|
|
|
if (week == "周二" || week == "周四") { |
|
|
|
|
this.week++ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else if (this.month >= 8 && a == 0) { |
|
|
|
|
for (let i = 0; i < 31; i++) { |
|
|
|
|
var dt2 = new Date(Date.parse(JSON.stringify(this.dates.month) + " " + "1 " + JSON.stringify(this.dates |
|
|
|
|
.year)) + i * 24 * 3600 * 1000); |
|
|
|
|
var weekDay = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"]; |
|
|
|
|
var week = weekDay[dt2.getDay()] |
|
|
|
|
if (week == "周二" || week == "周四") { |
|
|
|
|
this.week++ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else if (this.month >= 8 && a != 0) { |
|
|
|
|
for (let i = 0; i < 30; i++) { |
|
|
|
|
var dt2 = new Date(Date.parse(JSON.stringify(this.dates.month) + " " + "1 " + JSON.stringify(this.dates |
|
|
|
|
.year)) + i * 24 * 3600 * 1000); |
|
|
|
|
var weekDay = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"]; |
|
|
|
|
var week = weekDay[dt2.getDay()] |
|
|
|
|
if (week == "周二" || week == "周四") { |
|
|
|
|
this.week++ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else if (this.month == 2 && !b) { |
|
|
|
|
for (let i = 0; i < 28; i++) { |
|
|
|
|
var dt2 = new Date(Date.parse(JSON.stringify(this.dates.month) + " " + "1 " + JSON.stringify(this.dates |
|
|
|
|
.year)) + i * 24 * 3600 * 1000); |
|
|
|
|
var weekDay = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"]; |
|
|
|
|
var week = weekDay[dt2.getDay()] |
|
|
|
|
if (week == "周二" || week == "周四") { |
|
|
|
|
this.week++ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
for (let i = 0; i < 29; i++) { |
|
|
|
|
var dt2 = new Date(Date.parse(JSON.stringify(this.dates.month) + " " + "1 " + JSON.stringify(this.dates |
|
|
|
|
.year)) + i * 24 * 3600 * 1000); |
|
|
|
|
var weekDay = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"]; |
|
|
|
|
var week = weekDay[dt2.getDay()] |
|
|
|
|
if (week == "周二" || week == "周四") { |
|
|
|
|
this.week++ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
this.getOrganizations() |
|
|
|
|
}, |
|
|
|
|
onReady() { |
|
|
|
|
|
|
|
|
|
this.getTargetCount() |
|
|
|
|
this.getOrganizations() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
getTargetCount(){ |
|
|
|
|
let selectedTime = this.dates.year + '-' + this.dates.month + '-' + '01' |
|
|
|
|
this.$request.get('/api/TaskTargets/GetTargetCount/'+selectedTime,null,(data,res)=>{ |
|
|
|
|
console.log(res); |
|
|
|
|
this.week=res |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
getOrganizations() { |
|
|
|
|
const that = this |
|
|
|
|
let selectedTime = this.dates.year + '-' + this.dates.month + '-' + '01' |
|
|
|
@ -512,12 +450,12 @@
|
|
|
|
|
}, |
|
|
|
|
start(item) { |
|
|
|
|
if (!item.checkTime) { |
|
|
|
|
return 请选择检查时间 |
|
|
|
|
return this.$alert.showError("请填写检查时间") |
|
|
|
|
} |
|
|
|
|
console.log(item); |
|
|
|
|
// return |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/pages/rescue/task_implement/details?id=' + item.company.id + '&uid=' + item.id, |
|
|
|
|
url: '/pages/rescue/task_implement/details?id=' + item.company.id + '&user=' + item.id, |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -729,6 +667,7 @@
|
|
|
|
|
margin-top: 20rpx; |
|
|
|
|
height: 60rpx; |
|
|
|
|
display: flex; |
|
|
|
|
|
|
|
|
|
.top_name { |
|
|
|
|
width: 180rpx; |
|
|
|
|
white-space: nowrap; |
|
|
|
@ -740,6 +679,7 @@
|
|
|
|
|
text-overflow: ellipsis; |
|
|
|
|
/*文字超出部分以省略号显示*/ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.left { |
|
|
|
|
display: flex; |
|
|
|
|
flex: 1; |
|
|
|
@ -944,26 +884,66 @@
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.staffbox { |
|
|
|
|
|
|
|
|
|
display: flex; |
|
|
|
|
margin: 6rpx 0; |
|
|
|
|
font-size: 30rpx; |
|
|
|
|
white-space: nowrap; |
|
|
|
|
/*内容超宽后禁止换行显示*/ |
|
|
|
|
|
|
|
|
|
overflow: hidden; |
|
|
|
|
/*超出部分隐藏*/ |
|
|
|
|
|
|
|
|
|
text-overflow: ellipsis; |
|
|
|
|
|
|
|
|
|
.staff { |
|
|
|
|
display: flex; |
|
|
|
|
color: rgba(16, 15, 25, 0.48); |
|
|
|
|
image { |
|
|
|
|
margin-top: 8rpx; |
|
|
|
|
width: 26rpx; |
|
|
|
|
height: 26rpx; |
|
|
|
|
|
|
|
|
|
.zhu { |
|
|
|
|
|
|
|
|
|
color: #100F19; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
view { |
|
|
|
|
margin-right: 20rpx; |
|
|
|
|
} |
|
|
|
|
.tiem { |
|
|
|
|
|
|
|
|
|
color: #317AFF; |
|
|
|
|
img { |
|
|
|
|
width: 40rpx; |
|
|
|
|
height: 40rpx; |
|
|
|
|
min-width: 40rpx; |
|
|
|
|
min-height: 40rpx; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.staff2 { |
|
|
|
|
display: flex; |
|
|
|
|
color: rgba(16, 15, 25, 0.48); |
|
|
|
|
// width: 70%; |
|
|
|
|
white-space: nowrap; |
|
|
|
|
/*内容超宽后禁止换行显示*/ |
|
|
|
|
|
|
|
|
|
overflow: hidden; |
|
|
|
|
/*超出部分隐藏*/ |
|
|
|
|
|
|
|
|
|
text-overflow: ellipsis; |
|
|
|
|
|
|
|
|
|
.staff_namebox { |
|
|
|
|
white-space: nowrap; |
|
|
|
|
/*内容超宽后禁止换行显示*/ |
|
|
|
|
|
|
|
|
|
overflow: hidden; |
|
|
|
|
/*超出部分隐藏*/ |
|
|
|
|
|
|
|
|
|
text-overflow: ellipsis; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.zhu { |
|
|
|
|
|
|
|
|
|
color: #100109; |
|
|
|
|
color: #100F19; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
view { |
|
|
|
|
margin-right: 20rpx; |
|
|
|
|
} |
|
|
|
@ -985,17 +965,18 @@
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.implement { |
|
|
|
|
|
|
|
|
|
text-align: right; |
|
|
|
|
margin-bottom: 10rpx; |
|
|
|
|
|
|
|
|
|
width: 100%; |
|
|
|
|
.buttons { |
|
|
|
|
margin-top: 20rpx; |
|
|
|
|
margin-top: 10rpx; |
|
|
|
|
width: 100%; |
|
|
|
|
height: 100%; |
|
|
|
|
padding-top: 20rpx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
img { |
|
|
|
|
// float: right; |
|
|
|
|
width: 100rpx; |
|
|
|
|
height: 100rpx; |
|
|
|
|
} |
|
|
|
|