|
@@ -1,17 +1,28 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
<view class="search">
|
|
|
- <u-search placeholder="输入姓名搜索" v-model="param.goodsName" bgColor="white" @search="refresh()" :animation="true" actionText="取消" @clear="refresh()"></u-search>
|
|
|
+ <u-search placeholder="输入姓名搜索" v-model="goodsName" bgColor="white" @search="refresh()" :animation="true"
|
|
|
+ actionText="取消" @clear="refresh()"></u-search>
|
|
|
<view class="clear"></view>
|
|
|
</view>
|
|
|
<view class="list">
|
|
|
<view class="item" v-for="(item, index) in list" :key="index">
|
|
|
<view class="flex">
|
|
|
<view class="f name" style="flex: 0.5">{{ item.peopleName }}</view>
|
|
|
- <view class="f" v-for="(item, index) in item.items" :key="index">
|
|
|
- <text class="icon" v-if="item.state == 0"></text>
|
|
|
+ <view class="f">
|
|
|
+ <text class="icon" v-if="item.orderStatus == 0"></text>
|
|
|
<text class="icon ok" v-else></text>
|
|
|
- <text>{{ item.name }}</text>
|
|
|
+ <text>订单确认</text>
|
|
|
+ </view>
|
|
|
+ <view class="f">
|
|
|
+ <text class="icon" v-if="item.entryStatus == 0"></text>
|
|
|
+ <text class="icon ok" v-else></text>
|
|
|
+ <text>进境申报</text>
|
|
|
+ </view>
|
|
|
+ <view class="f">
|
|
|
+ <text class="icon" v-if="item.importStatus == 0"></text>
|
|
|
+ <text class="icon ok" v-else></text>
|
|
|
+ <text>进口申报</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -20,67 +31,67 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-export default {
|
|
|
- data() {
|
|
|
- return {
|
|
|
- param: {},
|
|
|
- list: []
|
|
|
- };
|
|
|
- },
|
|
|
- onLoad(e) {
|
|
|
- this.param.orderId = e.id
|
|
|
- this.getData();
|
|
|
- },
|
|
|
- methods: {
|
|
|
- getData() {
|
|
|
-
|
|
|
- this.http.request({
|
|
|
- url: '/level-one-server/app/TbOrder/selectPeopleConfirmByOrderId',
|
|
|
- data: this.param,
|
|
|
- success: res => {
|
|
|
- this.list = res.data.data
|
|
|
- this.list.map(item => {
|
|
|
- item.items = [
|
|
|
- { name: '订单确认', state: item.progressApply },
|
|
|
- { name: '进境申报', state: item.importApply },
|
|
|
- ]
|
|
|
- })
|
|
|
- console.log(this.list)
|
|
|
- }
|
|
|
- });
|
|
|
+ export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ goodsName: '',
|
|
|
+ list: []
|
|
|
+ };
|
|
|
},
|
|
|
- detail(item) {
|
|
|
- uni.navigateTo({ url: '/pages/market/one/leader/detail?id=' + item.id });
|
|
|
+ onLoad(e) {
|
|
|
+ console.log("订单Id", e.orderId, "组Id", e.groupId)
|
|
|
+ if (e.orderId && e.groupId) {
|
|
|
+ this.http.request({
|
|
|
+ url: '/level-one-server/app/TbOrder/getPeopleState',
|
|
|
+ data: { orderId: e.orderId, groupId: e.groupId},
|
|
|
+ success: res => {
|
|
|
+ this.list = res.data.data;
|
|
|
+ console.log('list', this.list);
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ getData() {
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
-};
|
|
|
+ };
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
-page {
|
|
|
- background-color: $pg;
|
|
|
-}
|
|
|
-.list {
|
|
|
- padding: 15px;
|
|
|
- .item {
|
|
|
- padding: 15px 10px 15px 10px;
|
|
|
- background-color: white;
|
|
|
- border-radius: 5px;
|
|
|
- margin-bottom: 10px;
|
|
|
- color: $font-c;
|
|
|
- .f {
|
|
|
- padding: 2px;
|
|
|
- font-size: 14px;
|
|
|
- .icon {
|
|
|
- color: #c3c5c7;
|
|
|
+ page {
|
|
|
+ background-color: $pg;
|
|
|
+ }
|
|
|
+
|
|
|
+ .list {
|
|
|
+ padding: 15px;
|
|
|
+
|
|
|
+ .item {
|
|
|
+ padding: 15px 10px 15px 10px;
|
|
|
+ background-color: white;
|
|
|
+ border-radius: 5px;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ color: $font-c;
|
|
|
+
|
|
|
+ .f {
|
|
|
+ padding: 2px;
|
|
|
+ font-size: 14px;
|
|
|
+
|
|
|
+ .icon {
|
|
|
+ color: #c3c5c7;
|
|
|
+ }
|
|
|
+
|
|
|
+ .ok {
|
|
|
+ color: $main-color;
|
|
|
+ }
|
|
|
}
|
|
|
- .ok {
|
|
|
- color: $main-color;
|
|
|
+
|
|
|
+ .name {
|
|
|
+ font-weight: bold;
|
|
|
}
|
|
|
}
|
|
|
- .name {
|
|
|
- font-weight: bold;
|
|
|
- }
|
|
|
}
|
|
|
-}
|
|
|
</style>
|