mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 14:31:04 +00:00
优化移动端订单发货
This commit is contained in:
parent
45ed8cdd87
commit
9717ddeb14
@ -22,14 +22,14 @@
|
||||
<view class="item acea-row row-between-wrapper">
|
||||
<view>{{$t(`发货方式`)}}</view>
|
||||
<view class="mode acea-row row-middle row-right">
|
||||
<view class="goods" :class="active === item.key ? 'on' : ''" v-for="(item, index) in types"
|
||||
<view class="goods" :class="active === index ? 'on' : ''" v-for="(item, index) in types"
|
||||
:key="index" @click="changeType(item, index)">
|
||||
{{ item.title }}<span class="iconfont icon-xuanzhong2"></span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<block v-if="logistics.length>0">
|
||||
<view class="list" v-show="active === 1">
|
||||
<view class="list" v-show="active === 0">
|
||||
<view class="item acea-row row-between-wrapper" v-if="delivery.config_export_open == 1">
|
||||
<view>{{$t(`发货类型`)}}</view>
|
||||
<view class="mode acea-row row-middle row-right">
|
||||
@ -101,7 +101,7 @@
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<view class="list" v-show="active === 2">
|
||||
<view class="list" v-show="active === 1">
|
||||
<view class="item acea-row row-between-wrapper">
|
||||
<view>{{$t(`送货人`)}}</view>
|
||||
<view class="select-box" v-if="postPeople.length>0">
|
||||
@ -113,7 +113,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<textarea v-show="active === 3" v-model="fictitious_content" class="textarea" @blur="bindTextAreaBlur"
|
||||
<textarea v-show="active === 2" v-model="fictitious_content" class="textarea" @blur="bindTextAreaBlur"
|
||||
:placeholder="$t(`备注`)" :maxlength="500" auto-height />
|
||||
</view>
|
||||
<view style="height:1.2rem;"></view>
|
||||
@ -143,7 +143,11 @@
|
||||
title: this.$t(`发货`),
|
||||
key: 1
|
||||
},
|
||||
|
||||
{
|
||||
type: "send",
|
||||
title: this.$t(`送货`),
|
||||
key: 2
|
||||
},
|
||||
{
|
||||
type: "fictitious",
|
||||
title: this.$t(`无需物流`),
|
||||
@ -160,7 +164,7 @@
|
||||
},
|
||||
],
|
||||
curExpress: 1,
|
||||
active: 1,
|
||||
active: 0,
|
||||
order_id: "",
|
||||
delivery: [],
|
||||
logistics: [],
|
||||
@ -235,14 +239,7 @@
|
||||
// 获取配送员列表
|
||||
geTorderOrderDelivery() {
|
||||
orderOrderDelivery().then(res => {
|
||||
if (res.data.length) {
|
||||
this.postPeople = res.data
|
||||
this.types.push({
|
||||
type: "send",
|
||||
title: this.$t(`送货`),
|
||||
key: 2
|
||||
})
|
||||
}
|
||||
this.postPeople = res.data
|
||||
})
|
||||
},
|
||||
// 配送员选择
|
||||
@ -255,7 +252,7 @@
|
||||
this.getLogistics(index || '');
|
||||
},
|
||||
changeType: function(item, index) {
|
||||
this.active = item.key;
|
||||
this.active = index;
|
||||
this.delivery_type = item.key;
|
||||
},
|
||||
getIndex: function() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user