小牛集卡web 客户端
chenwei
2021-06-04 7f5659967e4b5864d1c56a6072ebfe3abe4702dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
<template>
  <div>
    <div class="left-main">
      <div class="content">
        <div class="nav">
          <div
            v-for="(item, index) in nav"
            :key="index"
            @click="changeType(item)"
            :class="{ meactive: item == isType }"
          >
            {{ item }}
          </div>
        </div>
        <div class="form">
          <el-form ref="form" :model="form" label-width="160px">
            <el-form-item>
              <template slot="label">
                <div class="form-label">
                  <i class="iconfont icon-listmatou"></i>
                  <!-- <img src="../../../../public/img/index/boat.png" alt="" /> -->
                  <span>提箱地 : </span>
                </div>
              </template>
              <div class="form-input">
                <box-adress
                  :boxaddress="retrunPlaceList"
                  @acceptreturn="acceptReturnAdress"
                ></box-adress>
              </div>
            </el-form-item>
            <el-form-item>
              <template slot="label">
                <div class="form-label">
                  <i
                    class="iconfont icon-diaoyun_lift_jizhuangxiang_container"
                  ></i>
                  <!-- <img
                        src="../../../../public/img/index/zhuang.png"
                        alt=""
                      /> -->
                  <span>装卸地 : </span>
                </div>
              </template>
              <div class="form-input enter-text">
                <ai-adress></ai-adress>
                <div class="suffix-txt">
                  <div>常用地址</div>
                </div>
              </div>
            </el-form-item>
            <el-form-item>
              <template slot="label">
                <div class="form-label">
                  <!-- <img
                        src="../../../../public/img/index/haixiangdi.svg"
                        alt=""
                      /> -->
                  <i class="iconfont icon-components-full"></i>
                  <span>还箱地 : </span>
                </div>
              </template>
              <div class="form-input">
                <el-select v-model="form.region" placeholder="请选择活动区域">
                  <el-option label="区域一" value="shanghai"></el-option>
                  <el-option label="区域二" value="beijing"></el-option>
                </el-select>
                <div class="suffix-txt">
                  <div>果园港</div>
                  <div>果园港</div>
                  <div>果园港</div>
                </div>
              </div>
            </el-form-item>
            <el-form-item>
              <template slot="label">
                <div class="form-label">
                  <!-- <img
                        src="../../../../public/img/index/box-state.png"
                        alt=""
                      /> -->
                  <i class="iconfont icon-express-package-full"></i>
                  <span>双托箱型 : </span>
                </div>
              </template>
              <div class="form-input">
                <el-select v-model="form.region" placeholder="请选择活动区域">
                  <el-option label="区域一" value="shanghai"></el-option>
                  <el-option label="区域二" value="beijing"></el-option>
                </el-select>
              </div>
            </el-form-item>
            <el-form-item>
              <template slot="label">
                <div class="form-label">
                  <!-- <img
                        src="../../../../public/img/index/box-state.png"
                        alt=""
                      /> -->
                  <i class="iconfont icon-express-package-full"></i>
                  <span>重量 : </span>
                </div>
              </template>
              <div class="form-input wind-weight">
                <el-input></el-input>
                <span>吨</span>
              </div>
            </el-form-item>
            <el-form-item>
              <template slot="label">
                <div class="form-label">
                  <!-- <img src="../../../../public/img/index/time.svg" alt="" /> -->
                  <i class="iconfont icon-shijian"></i>
                  <span>到达时间 : </span>
                </div>
              </template>
              <div class="form-input">
                <el-date-picker
                  v-model="value1"
                  type="date"
                  placeholder="选择日期"
                >
                </el-date-picker>
              </div>
            </el-form-item>
            <el-form-item>
              <template slot="label">
                <div class="form-label">
                  <!-- <img
                        src="../../../../public/img/index/product.svg"
                        alt=""
                      /> -->
                  <i class="iconfont icon-express-package-full"></i>
                  <span>物品 : </span>
                </div>
              </template>
              <div class="form-input">
                <div v-for="(item, index) in productData" :key="index">
                  <div
                    class="product"
                    :class="{ activepro: item == activeVal }"
                    @click="proActive(item)"
                  >
                    {{ item }}
                  </div>
                </div>
                <div class="pro-input">
                  <el-input placeholder="输入物品" @focus="proInput"></el-input>
                </div>
              </div>
            </el-form-item>
          </el-form>
          <div class="undeter">
            <img src="../../../../public/img/index/tuidan.svg" alt="" />
            <span>箱子具体信息[智能输入]</span>
          </div>
        </div>
      </div>
      <div class="btns" v-if="!cardialog">
        <div class="mill" v-for="(fitem, findex) in factory" :key="findex">
          {{ fitem }}
        </div>
        <div class="change-mill">
          <i class="el-icon-refresh"></i>
          <span>换一换</span>
        </div>
        <div class="place-order">
          <button @click="inquiryOrder">
            <i class="el-icon-search"></i>询价下单
          </button>
        </div>
      </div>
 
      <div class="share-pill" v-if="cardialog">
        <button @click="sharePill">拼 单</button>
      </div>
    </div>
    <el-dialog title="顺风达拼车" :visible.sync="carDialog" width="900px" class="ride">
      <!-- <car-pool></car-pool> -->
        <car-sharing></car-sharing>
    </el-dialog>
  </div>
</template>
<script>
import Wind from "./Wind.vue";
import ShareCar from "../comment/ShareCar.vue";
// import CarPool from "./CarPool.vue";
import CarSharing from'../comment/CarSharing.vue'
import AiAdress from "../map/AiAdress.vue";
import BoxAdress from"../comment/BoxAdress"
export default {
  data() {
    return {
      nav: ["我要装", "我要卸"],
      lunboImg: [
        require("../../../../public/img/index/lunbo.png"),
        require("../../../../public/img/index/niu.png"),
        require("../../../../public/img/index/erweima.jpg"),
        require("../../../../public/img/index/driver.png"),
      ],
      isType: "我要装",
      form: {
        name: "",
        region: "",
        date1: "",
        date2: "",
        delivery: false,
        type: [],
        resource: "",
        desc: "",
      },
      submitForm: {
        CityId: "5dc90c98-475e-4529-bb3a-c3010a82b0e1",
        OrderType: 3,
       
      },
      radio1: "",
      productData: [
        "物品1",
        "物品2",
        "物品3",
        "物品4",
        "物品5",
        "物品6",
        "物品7",
      ],
      value1: "",
      factory: ["重庆长安新厂区", "重庆福特厂区", "重庆福特配件厂区"],
      activeVal: "",
      carDialog: false,
    };
  },
  components: {
    Wind,
    ShareCar,
    // CarPool,
    AiAdress,BoxAdress,CarSharing
  },
  props: ["cardialog"],
  methods: {
    proActive(content) {
      this.activeVal = content;
    },
    proInput() {
      this.activeVal = "";
    },
    changeType(item) {
      this.isType = item;
    },
    inquiryOrder() {
      this.carDialog = true;
      // this.$router.push("/inquiry");
    },
    sharePill() {
      this.$emit("share", this.form);
    },
  },
};
</script>
<style lang="less" scoped>
// 修改弹窗的样式
.ride{
  /deep/.el-dialog__body{
    padding: 0 10px;
    padding-bottom: 10px;
  }
}
.activepro {
  background-color: #e6a23c;
  color: #fff;
}
.wind-weight {
  /deep/.el-input {
    width: 200px;
  }
}
.wind-weight span {
  color: #aaaaaa;
  margin-left: 6px;
}
.share-pill {
  text-align: center;
}
.share-pill button {
  background-color: #f59a23;
  padding: 6px 25px;
  outline: none;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
}
.share-pill button:hover {
  background-color: #f7b053;
}
.fronthome-top {
  margin-top: 20px;
}
.left-main .content {
  display: flex;
}
.nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.nav div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  width: 16px;
  padding: 0 10px;
  background-color: #000;
  color: #fff;
  border: 1px solid #efefef;
}
.meactive {
  background-color: #fff !important;
  color: #000 !important;
}
.meactive::before {
  content: url("../../../../public/img/index/gouxuan2.svg");
}
.left-main .content {
  margin: 10px;
}
.content .form {
  width: 100%;
  border: 1px solid #aaaaaa;
  padding: 10px;
  box-sizing: border-box;
}
.form-label {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.form-label i {
  font-size: 30px;
  margin-right: 10px;
}
.form-label span {
  font-weight: 900;
  font-size: 18px;
  color: #000;
  width: 90px;
}
.form-input {
  display: flex;
  flex-wrap: wrap;
}
.enter-text {
  /deep/.el-input {
    width: 300px;
  }
}
.suffix-txt {
  display: flex;
  margin-left: 50px;
  color: #aaaaaa;
}
.suffix-txt div {
  margin-right: 20px;
}
.product {
  padding: 0px 40px;
  border: 1px solid #e4e4e4;
  margin-right: 30px;
  margin-bottom: 10px;
  cursor: pointer;
  border-radius: 3px;
}
.pro-input {
  /deep/.el-input {
    width: 117px;
  }
}
.undeter {
  display: flex;
  align-items: center;
}
.undeter span {
  text-decoration: underline;
  color: #aaaaaa;
  margin-left: 15px;
  cursor: pointer;
}
.btns {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  box-sizing: border-box;
  padding-left: 48px;
  padding-bottom: 10px;
  color: #8b8b8b;
}
.btns .mill {
  border: 1px solid #e4e4e4;
  padding: 5px 20px;
  cursor: pointer;
}
.btns .change-mill,
.btns .place-order {
  display: flex;
  align-items: center;
}
.btns .change-mill span {
  cursor: pointer;
  margin-left: 3px;
}
.place-order button {
  padding: 5px 20px;
  color: #fff;
  font-weight: bold;
  background-color: #f59a23;
  cursor: pointer;
  outline: none;
  border: none;
  border-radius: 3px;
}
.place-order button i {
  margin-right: 5px;
}
.place-order button:hover {
  background-color: #f3a53f;
}
.right img {
  width: 400px;
  height: 100%;
}
</style>