|
|
@@ -1,95 +1,157 @@
|
|
1
|
1
|
<template>
|
|
2
|
|
- <view class="order-send-out-goods">
|
|
3
|
|
- <headersVue @headerJump="topgi" :header-title="headerTitle"></headersVue>
|
|
4
|
|
- <view class="order-send-out-goods__content">
|
|
5
|
|
- <shipmentGoodsCardVue :title="shipmentGoodsTitle"/>
|
|
6
|
|
- <orderDetailSendCardVue class="custom_class"/>
|
|
7
|
|
- <fillLogisticsInfoVue class="custom_class" v-if="goodsCustomType==='sendGoods'"/>
|
|
8
|
|
- <reInputItemVue v-if="goodsCustomType==='pickup'" class="inputInfo" ></reInputItemVue>
|
|
9
|
|
- <view class="btn-box">
|
|
10
|
|
- <button type="primary" class="send-goods" v-if="goodsCustomType==='sendGoods'">发货</button>
|
|
11
|
|
- <button type="primary" class="send-goods" v-if="goodsCustomType==='pickup'">自提</button>
|
|
12
|
|
- </view>
|
|
13
|
|
- </view>
|
|
14
|
|
- </view>
|
|
|
2
|
+ <view class="order-send-out-goods">
|
|
|
3
|
+ <headersVue @headerJump="topgi" :header-title="headerTitle"></headersVue>
|
|
|
4
|
+ <view class="order-send-out-goods__content">
|
|
|
5
|
+ <shipmentGoodsCardVue :title="shipmentGoodsTitle" />
|
|
|
6
|
+ <orderDetailSendCardVue class="custom_class" />
|
|
|
7
|
+ <fillLogisticsInfoVue
|
|
|
8
|
+ class="custom_class"
|
|
|
9
|
+ v-if="goodsCustomType === 'sendGoods'"
|
|
|
10
|
+ />
|
|
|
11
|
+ <reInputItemVue
|
|
|
12
|
+ v-if="goodsCustomType === 'pickup'"
|
|
|
13
|
+ class="inputInfo"
|
|
|
14
|
+ ></reInputItemVue>
|
|
|
15
|
+ <reInputItemVue
|
|
|
16
|
+ v-if="goodsCustomType === 'pickup'"
|
|
|
17
|
+ class="inputInfo"
|
|
|
18
|
+ ></reInputItemVue>
|
|
|
19
|
+ <popupSelectItemVue
|
|
|
20
|
+ v-if="goodsCustomType === 'deliverGoods'"
|
|
|
21
|
+ class="inputInfo"
|
|
|
22
|
+ defaultLabel="请选择送货人员"
|
|
|
23
|
+ name="送货人员信息"
|
|
|
24
|
+ title="送货人员信息"
|
|
|
25
|
+ :selectData="selectData"
|
|
|
26
|
+ @click-tabs="clickTabs"
|
|
|
27
|
+ ></popupSelectItemVue>
|
|
|
28
|
+ <view class="btn-box">
|
|
|
29
|
+ <button
|
|
|
30
|
+ type="primary"
|
|
|
31
|
+ class="send-goods"
|
|
|
32
|
+ v-if="goodsCustomType === 'sendGoods'"
|
|
|
33
|
+ >
|
|
|
34
|
+ 发货
|
|
|
35
|
+ </button>
|
|
|
36
|
+ <button
|
|
|
37
|
+ type="primary"
|
|
|
38
|
+ class="send-goods"
|
|
|
39
|
+ v-if="goodsCustomType === 'pickup'"
|
|
|
40
|
+ >
|
|
|
41
|
+ 自提
|
|
|
42
|
+ </button>
|
|
|
43
|
+ </view>
|
|
|
44
|
+ </view>
|
|
|
45
|
+ </view>
|
|
15
|
46
|
</template>
|
|
16
|
47
|
|
|
17
|
48
|
<script>
|
|
18
|
|
- import shipmentGoodsCardVue from './components/shipmentGoodsCard.vue'
|
|
19
|
|
- import orderDetailSendCardVue from './components/orderDetailSendCard.vue'
|
|
20
|
|
- import fillLogisticsInfoVue from './components/fillLogisticsInfo.vue'
|
|
21
|
|
- import headersVue from '../components/headers/headers.vue'
|
|
22
|
|
- import reInputItemVue from './components/reInputItem/reInputItem.vue'
|
|
23
|
|
- export default {
|
|
24
|
|
- components:{shipmentGoodsCardVue,orderDetailSendCardVue,fillLogisticsInfoVue,headersVue,reInputItemVue},
|
|
25
|
|
- data() {
|
|
26
|
|
- return {
|
|
27
|
|
- indexs: '',
|
|
28
|
|
- status: '',
|
|
29
|
|
- order_id: '', //订单ID
|
|
30
|
|
- headerTitle:"发货",
|
|
31
|
|
- shipmentGoodsTitle:"发货商品",
|
|
32
|
|
- goodsCustomType:"sendGoods"
|
|
33
|
|
- }
|
|
34
|
|
- },
|
|
35
|
|
- onLoad(e) {
|
|
36
|
|
- this.order_id = e.order_id
|
|
37
|
|
- this.indexs = e.indexs
|
|
38
|
|
- this.status = e.status
|
|
39
|
|
- this.goodsCustomType = e.goodsCustomType
|
|
40
|
|
- this.headerTitle = this.goodsCustomType==="sendGoods"?"发货":'自提'
|
|
41
|
|
- this.shipmentGoodsTitle = this.goodsCustomType==="sendGoods"?"发货商品":'自提商品'
|
|
42
|
|
- },
|
|
43
|
|
- methods: {
|
|
44
|
|
- topgi(){
|
|
45
|
|
- uni.redirectTo({
|
|
46
|
|
- url: './order?status=' + this.status + '&index=' + this.indexs
|
|
47
|
|
- // url: './order'
|
|
48
|
|
- });
|
|
49
|
|
- }
|
|
50
|
|
- }
|
|
|
49
|
+import shipmentGoodsCardVue from "./components/shipmentGoodsCard.vue";
|
|
|
50
|
+import orderDetailSendCardVue from "./components/orderDetailSendCard.vue";
|
|
|
51
|
+import fillLogisticsInfoVue from "./components/fillLogisticsInfo.vue";
|
|
|
52
|
+import headersVue from "../components/headers/headers.vue";
|
|
|
53
|
+import reInputItemVue from "./components/reInputItem/reInputItem.vue";
|
|
|
54
|
+import popupSelectItemVue from "./components/popupSelectItem/popupSelectItem.vue";
|
|
|
55
|
+export default {
|
|
|
56
|
+ components: {
|
|
|
57
|
+ shipmentGoodsCardVue,
|
|
|
58
|
+ orderDetailSendCardVue,
|
|
|
59
|
+ fillLogisticsInfoVue,
|
|
|
60
|
+ headersVue,
|
|
|
61
|
+ reInputItemVue,
|
|
|
62
|
+ popupSelectItemVue
|
|
|
63
|
+ },
|
|
|
64
|
+ data() {
|
|
|
65
|
+ return {
|
|
|
66
|
+ selectData:[
|
|
|
67
|
+ { value: 0, text: "张伟" },
|
|
|
68
|
+ { value: 1, text: "王芳" },
|
|
|
69
|
+ { value: 2, text: "李强" },
|
|
|
70
|
+ { value: 3, text: "刘洋" },
|
|
|
71
|
+ { value: 4, text: "陈静" },
|
|
|
72
|
+ { value: 5, text: "杨勇" },
|
|
|
73
|
+ { value: 6, text: "黄丽" },
|
|
|
74
|
+ { value: 7, text: "周杰" },
|
|
|
75
|
+ { value: 8, text: "徐敏" },
|
|
|
76
|
+ { value: 9, text: "吴涛" },
|
|
|
77
|
+ { value: 10, text: "孙莉" },
|
|
|
78
|
+ { value: 11, text: "马强" },
|
|
|
79
|
+ { value: 12, text: "胡月" },
|
|
|
80
|
+ { value: 13, text: "林浩" },
|
|
|
81
|
+ { value: 14, text: "何婷" }
|
|
|
82
|
+],
|
|
|
83
|
+ indexs: "",
|
|
|
84
|
+ status: "",
|
|
|
85
|
+ order_id: "", //订单ID
|
|
|
86
|
+ headerTitle: "发货",
|
|
|
87
|
+ shipmentGoodsTitle: "发货商品",
|
|
|
88
|
+ goodsCustomType: "sendGoods",
|
|
|
89
|
+ headerTitleMap: {
|
|
|
90
|
+ deliverGoods: "送货",
|
|
|
91
|
+ sendGoods: "发货",
|
|
|
92
|
+ pickup: "自提",
|
|
|
93
|
+ },
|
|
|
94
|
+ shipmentGoodsTitleMap: {
|
|
|
95
|
+ deliverGoods: "发货商品",
|
|
|
96
|
+ sendGoods: "发货商品",
|
|
|
97
|
+ pickup: "自提商品",
|
|
|
98
|
+ },
|
|
|
99
|
+ };
|
|
|
100
|
+ },
|
|
|
101
|
+ onLoad(e) {
|
|
|
102
|
+ this.order_id = e.order_id;
|
|
|
103
|
+ this.indexs = e.indexs;
|
|
|
104
|
+ this.status = e.status;
|
|
|
105
|
+ this.goodsCustomType = e.goodsCustomType;
|
|
|
106
|
+ this.headerTitle = this.headerTitleMap[this.goodsCustomType];
|
|
|
107
|
+ this.shipmentGoodsTitle = this.shipmentGoodsTitleMap[this.goodsCustomType];
|
|
|
108
|
+ },
|
|
|
109
|
+ methods: {
|
|
|
110
|
+ topgi() {
|
|
|
111
|
+ uni.redirectTo({
|
|
|
112
|
+ url: "./order?status=" + this.status + "&index=" + this.indexs,
|
|
|
113
|
+ // url: './order'
|
|
|
114
|
+ });
|
|
|
115
|
+ },
|
|
|
116
|
+ clickTabs({ selected, item, index }){
|
|
|
117
|
+ console.log("clickTabs", selected, item, index)
|
|
51
|
118
|
}
|
|
|
119
|
+ },
|
|
|
120
|
+};
|
|
52
|
121
|
</script>
|
|
53
|
122
|
<style>
|
|
54
|
|
- page {
|
|
55
|
|
- background-color: #F7F8FC;
|
|
56
|
|
- }
|
|
|
123
|
+page {
|
|
|
124
|
+ background-color: #f7f8fc;
|
|
|
125
|
+}
|
|
57
|
126
|
</style>
|
|
58
|
127
|
<style scoped lang="scss">
|
|
59
|
|
- .order-send-out-goods{
|
|
60
|
|
- width: 100%;
|
|
61
|
|
- height: 100%;
|
|
62
|
|
- display: flex;
|
|
63
|
|
- flex-direction: column;
|
|
64
|
|
- align-items: center;
|
|
65
|
|
- &__content{
|
|
66
|
|
- width: 100%;
|
|
67
|
|
- margin: 130rpx 0 50rpx;
|
|
68
|
|
- .btn-box{
|
|
69
|
|
- width: 100%;
|
|
70
|
|
- position: fixed;
|
|
71
|
|
-
|
|
72
|
|
- bottom:30rpx;
|
|
73
|
|
- .send-goods{
|
|
74
|
|
- margin:0 32rpx;
|
|
75
|
|
- }
|
|
76
|
|
- }
|
|
77
|
|
-
|
|
78
|
|
- }
|
|
79
|
|
-
|
|
80
|
|
- .custom_class{
|
|
81
|
|
- margin-top: 26rpx;
|
|
82
|
|
- }
|
|
83
|
|
-
|
|
84
|
|
-
|
|
85
|
|
-
|
|
86
|
|
- }
|
|
87
|
|
-
|
|
88
|
|
-
|
|
89
|
|
- .inputInfo{
|
|
90
|
|
- margin-top:26rpx;
|
|
91
|
|
- padding:0 26rpx;
|
|
92
|
|
- }
|
|
|
128
|
+.order-send-out-goods {
|
|
|
129
|
+ width: 100%;
|
|
|
130
|
+ height: 100%;
|
|
|
131
|
+ display: flex;
|
|
|
132
|
+ flex-direction: column;
|
|
|
133
|
+ align-items: center;
|
|
|
134
|
+ &__content {
|
|
|
135
|
+ width: 100%;
|
|
|
136
|
+ margin: 130rpx 0 50rpx;
|
|
|
137
|
+ .btn-box {
|
|
|
138
|
+ width: 100%;
|
|
|
139
|
+ position: fixed;
|
|
|
140
|
+
|
|
|
141
|
+ bottom: 30rpx;
|
|
|
142
|
+ .send-goods {
|
|
|
143
|
+ margin: 0 32rpx;
|
|
|
144
|
+ }
|
|
|
145
|
+ }
|
|
|
146
|
+ }
|
|
93
|
147
|
|
|
|
148
|
+ .custom_class {
|
|
|
149
|
+ margin-top: 26rpx;
|
|
|
150
|
+ }
|
|
|
151
|
+}
|
|
94
|
152
|
|
|
|
153
|
+.inputInfo {
|
|
|
154
|
+ margin-top: 26rpx;
|
|
|
155
|
+ padding: 0 26rpx;
|
|
|
156
|
+}
|
|
95
|
157
|
</style>
|