| | |
| | | </view> |
| | | </scroll-view> |
| | | <view class="box_list"> |
| | | <view class="box_list_item" v-for="(item, index) in 3" :key="index"> |
| | | <view @click="handleDetail(item.id)" class="box_list_item" v-for="(item, index) in list" :key="index"> |
| | | <view class="box_list_item_head"> |
| | | <text>丁恩凯的劳务入厂申请</text> |
| | | <text class="loading">待审核</text> |
| | | <text>{{ item.name }}的劳务入厂申请</text> |
| | | <text class="loading">{{ statusMap[item.status] }}</text> |
| | | </view> |
| | | <view class="box_list_item_nr"> |
| | | <view class="box_list_item_nr_item"> |
| | | <text>被访问人:</text> |
| | | <text>人事部-王亚蓝</text> |
| | | <text>{{ item.receptMemberDepartment }}-{{ item.receptMemberName }}</text> |
| | | </view> |
| | | <view class="box_list_item_nr_item"> |
| | | <text>进厂时间:</text> |
| | | <text>12-12 09:00</text> |
| | | <text>{{ item.starttime }}</text> |
| | | </view> |
| | | <view class="box_list_item_nr_item"> |
| | | <text>离厂时间:</text> |
| | | <text>12-12 12:00</text> |
| | | </view> |
| | | <view class="box_list_item_nr_item"> |
| | | <text>入厂人数:</text> |
| | | <text>10</text> |
| | | <text>{{ item.endtime }}</text> |
| | | </view> |
| | | <view class="box_list_item_nr_item"> |
| | | <text>来访事由:</text> |
| | | <text>业务来往</text> |
| | | <text>{{ item.reason }}</text> |
| | | </view> |
| | | <view class="box_list_item_nr_x"></view> |
| | | <view class="box_list_item_nr_text"> 2023-12-12 09:00提交 </view> |
| | | <view class="box_list_item_nr_text">{{ item.createDate }} 提交</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | data() { |
| | | return { |
| | | pagination: { |
| | | page: 1, |
| | | page: 0, |
| | | capacity: 10 |
| | | }, |
| | | list: [] |
| | | list: [], |
| | | |
| | | statusMap: { |
| | | 0: '待审核', |
| | | 1: '已提交', |
| | | 2: '审核通过', |
| | | 3: '审核不通过', |
| | | 4: '取消', |
| | | 5: '下发成功', |
| | | 6: '下发失败', |
| | | } |
| | | } |
| | | }, |
| | | onLoad() { |
| | | this.getList() |
| | | }, |
| | | methods: { |
| | | handleDetail(id) { |
| | | uni.navigateTo({ |
| | | url: "/pages/appointmentDetails/appointmentDetails?id="+ id |
| | | }) |
| | | }, |
| | | getList() { |
| | | const { pagination } = this |
| | | getVisitedRecord({ |
| | | pageWrap: { ...pagination } |
| | | ...pagination, |
| | | model: { |
| | | openid: this.$store.state.openId |
| | | } , |
| | | |
| | | }).then(res => { |
| | | this.list = res.data |
| | | this.list = res.data.records || [] |
| | | }) |
| | | } |
| | | |