Browse Source

检查时间

master
jingbowen 2 years ago
parent
commit
8974779904
  1. 2
      components/tabbar.vue
  2. 13
      pages/rescue/index.vue
  3. 8
      pages/rescue/taskapply.vue
  4. 16
      pages/rescue/taskreceive.vue
  5. 2
      unpackage/dist/build/mp-weixin/common/vendor.js

2
components/tabbar.vue

@ -71,7 +71,7 @@
console.log("item", item) console.log("item", item)
console.log("index", index) console.log("index", index)
let url = item.pagePath; let url = item.pagePath;
uni.switchTab({ uni.reLaunch({
url url
}) })

13
pages/rescue/index.vue

@ -270,13 +270,13 @@
list: [], list: [],
month: 0, month: 0,
nub: 0, nub: 0,
index2:0, index2:false,
tasktiem:"检查时间", tasktiem:"检查时间",
index: false, index: false,
months: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] months: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
} }
}, },
mounted() { created() {
console.log(123456); console.log(123456);
let date = new Date() let date = new Date()
this.dates.month = date.getMonth() + 1 this.dates.month = date.getMonth() + 1
@ -470,7 +470,7 @@
} }
} }
this.index2 = 1 this.index2 = true
}, },
dateYear(e) { dateYear(e) {
console.log(e); console.log(e);
@ -511,6 +511,9 @@
}) })
}, },
start(item) { start(item) {
if(!item.checkTime){
return 请选择检查时间
}
console.log(item); console.log(item);
// return // return
uni.navigateTo({ uni.navigateTo({
@ -547,10 +550,10 @@
.itembox { .itembox {
// background: #fff; // background: #fff;
position: absolute; position: absolute;
bottom: 180rpx; bottom: 230rpx;
left: 0; left: 0;
width: 100%; width: 100%;
height: 500rpx; height: 600rpx;
.item_top { .item_top {
height: 60rpx; height: 60rpx;

8
pages/rescue/taskapply.vue

@ -280,7 +280,7 @@
months: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] months: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
} }
}, },
created() { mounted() {
let date = new Date() let date = new Date()
this.dates.month = date.getMonth() + 1 this.dates.month = date.getMonth() + 1
@ -360,7 +360,7 @@
}, },
onReady() { onReady() {
this.getOrganizations()
}, },
methods: { methods: {
getOrganizations() { getOrganizations() {
@ -543,10 +543,10 @@
.itembox { .itembox {
// background: #fff; // background: #fff;
position: absolute; position: absolute;
bottom: 0; bottom: 230rpx;
left: 0; left: 0;
width: 100%; width: 100%;
height: 800rpx; height: 600rpx;
.item_top { .item_top {
height: 60rpx; height: 60rpx;

16
pages/rescue/taskreceive.vue

@ -114,9 +114,7 @@
<button type="default" @tap="bohui(item)">驳回</button> <button type="default" @tap="bohui(item)">驳回</button>
</view> </view>
<view v-else class="jiancha" style="color: #FFBA19;">
{{item.approvalStatus}}
</view>
</view> </view>
<view style="display: flex;"> <view style="display: flex;">
<view style="flex:1"> <view style="flex:1">
@ -133,10 +131,9 @@
:class="{jiancha_color:item.approvalStatus=='通过'}"> :class="{jiancha_color:item.approvalStatus=='通过'}">
{{item.approvalStatus}} {{item.approvalStatus}}
</view> </view>
<!-- <view v-else class="jiancha" <view v-else style="color: #14B488;">
style="color: #FFBA19;">
{{item.approvalStatus}} {{item.approvalStatus}}
</view> --> </view>
</view> </view>
</view> </view>
@ -285,7 +282,7 @@
months: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] months: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
} }
}, },
created() { mounted() {
let date = new Date() let date = new Date()
this.dates.month = date.getMonth() + 1 this.dates.month = date.getMonth() + 1
this.today.month = date.getMonth() + 1 this.today.month = date.getMonth() + 1
@ -396,7 +393,7 @@
} else { } else {
this.getSupervisor() this.getSupervisor()
} }
this.index3 =true
this.getTaskListOfStation(userId) this.getTaskListOfStation(userId)
}) })
}, },
@ -485,6 +482,7 @@
this.nub += 1 this.nub += 1
} }
} }
this.index3 =true
this.opts.subtitle.name = JSON.stringify(this.nub) this.opts.subtitle.name = JSON.stringify(this.nub)
}, },
@ -563,7 +561,7 @@
.itembox { .itembox {
// background: #fff; // background: #fff;
position: absolute; position: absolute;
bottom: 0; bottom: 160rpx;
left: 0; left: 0;
width: 100%; width: 100%;
height: 600rpx; height: 600rpx;

2
unpackage/dist/build/mp-weixin/common/vendor.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save