|
@@ -7,7 +7,7 @@
|
|
|
<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.name }}</view>
|
|
|
+ <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>
|
|
|
<text class="icon ok" v-else></text>
|
|
@@ -24,43 +24,29 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
param: {},
|
|
|
- list: [
|
|
|
- {
|
|
|
- name: '杨振生',
|
|
|
- items: [
|
|
|
- { name: '订单确认', state: 0 },
|
|
|
- { name: '进境申报', state: 0 },
|
|
|
- { name: '进口申报', state: 1 }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- name: '林傍玲',
|
|
|
- items: [
|
|
|
- { name: '订单确认', state: 1 },
|
|
|
- { name: '进境申报', state: 0 },
|
|
|
- { name: '进口申报', state: 1 }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- name: '毛燕美',
|
|
|
- items: [
|
|
|
- { name: '订单确认', state: 0 },
|
|
|
- { name: '进境申报', state: 1 },
|
|
|
- { name: '进口申报', state: 1 }
|
|
|
- ]
|
|
|
- }
|
|
|
- ]
|
|
|
+ list: []
|
|
|
};
|
|
|
},
|
|
|
- onLoad() {
|
|
|
- //this.getData();
|
|
|
+ onLoad(e) {
|
|
|
+ this.param.orderId = e.id
|
|
|
+ this.getData();
|
|
|
},
|
|
|
methods: {
|
|
|
getData() {
|
|
|
+
|
|
|
this.http.request({
|
|
|
- url: '/level-one-server/app/TbOrder/xxx',
|
|
|
+ url: '/level-one-server/app/TbOrder/selectPeopleConfirmByOrderId',
|
|
|
data: this.param,
|
|
|
- success: res => {}
|
|
|
+ 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)
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
detail(item) {
|