|
|
|
@ -170,7 +170,19 @@ |
|
|
|
<Radio :label="1">校园区域</Radio> |
|
|
|
<Radio :label="2">社会区域</Radio> |
|
|
|
</RadioGroup> |
|
|
|
<div class="geo-tip">社会区域首页展示待成团,并隐藏配送入口</div> |
|
|
|
<div class="geo-tip">社会区域首页展示待成团,可单独配置快递/跑腿入口</div> |
|
|
|
</FormItem> |
|
|
|
<FormItem v-if="showEditParentAgent && Number(form.areaKind) === 2" label="快递/跑腿"> |
|
|
|
<i-switch |
|
|
|
size="large" |
|
|
|
v-model="form.expressErrandEnabled" |
|
|
|
:true-value="1" |
|
|
|
:false-value="0" |
|
|
|
> |
|
|
|
<span slot="open">开启</span> |
|
|
|
<span slot="close">关闭</span> |
|
|
|
</i-switch> |
|
|
|
<div class="geo-tip">关闭后社会区域首页和底部栏不展示快递/跑腿入口</div> |
|
|
|
</FormItem> |
|
|
|
<FormItem v-if="showEditParentAgent" label="匹配范围"> |
|
|
|
<Map |
|
|
|
@ -310,7 +322,19 @@ |
|
|
|
<Radio :label="1">校园区域</Radio> |
|
|
|
<Radio :label="2">社会区域</Radio> |
|
|
|
</RadioGroup> |
|
|
|
<div class="geo-tip">社会区域首页展示待成团,并隐藏配送入口</div> |
|
|
|
<div class="geo-tip">社会区域首页展示待成团,可单独配置快递/跑腿入口</div> |
|
|
|
</FormItem> |
|
|
|
<FormItem v-if="showAddParentAgent && Number(formAdd.areaKind) === 2" label="快递/跑腿"> |
|
|
|
<i-switch |
|
|
|
size="large" |
|
|
|
v-model="formAdd.expressErrandEnabled" |
|
|
|
:true-value="1" |
|
|
|
:false-value="0" |
|
|
|
> |
|
|
|
<span slot="open">开启</span> |
|
|
|
<span slot="close">关闭</span> |
|
|
|
</i-switch> |
|
|
|
<div class="geo-tip">关闭后社会区域首页和底部栏不展示快递/跑腿入口</div> |
|
|
|
</FormItem> |
|
|
|
<FormItem v-if="showAddParentAgent" label="匹配范围"> |
|
|
|
<Map |
|
|
|
@ -482,6 +506,7 @@ export default { |
|
|
|
parentAgentName: "", |
|
|
|
commissionRatio: 0, |
|
|
|
areaKind: 1, |
|
|
|
expressErrandEnabled: 1, |
|
|
|
centerLng: null, |
|
|
|
centerLat: null, |
|
|
|
radiusMeters: "", |
|
|
|
@ -763,6 +788,7 @@ export default { |
|
|
|
this.$delete(target, "commissionRatio"); |
|
|
|
this.clearGeoValue(target); |
|
|
|
this.$set(target, "areaKind", 1); |
|
|
|
this.$set(target, "expressErrandEnabled", 1); |
|
|
|
} else { |
|
|
|
if ( |
|
|
|
target.commissionRatio === "" || |
|
|
|
@ -775,6 +801,11 @@ export default { |
|
|
|
} |
|
|
|
const areaKind = Number(target.areaKind); |
|
|
|
this.$set(target, "areaKind", areaKind === 2 ? 2 : 1); |
|
|
|
this.$set( |
|
|
|
target, |
|
|
|
"expressErrandEnabled", |
|
|
|
areaKind === 2 && Number(target.expressErrandEnabled) === 0 ? 0 : 1 |
|
|
|
); |
|
|
|
} |
|
|
|
}, |
|
|
|
syncGeoFromEntity(target) { |
|
|
|
@ -910,6 +941,11 @@ export default { |
|
|
|
} |
|
|
|
const areaKind = Number(this.form.areaKind); |
|
|
|
this.$set(this.form, "areaKind", areaKind === 2 ? 2 : 1); |
|
|
|
this.$set( |
|
|
|
this.form, |
|
|
|
"expressErrandEnabled", |
|
|
|
areaKind === 2 && Number(this.form.expressErrandEnabled) === 0 ? 0 : 1 |
|
|
|
); |
|
|
|
this.syncGeoFromEntity(this.form); |
|
|
|
} else { |
|
|
|
this.cancelEdit(); |
|
|
|
@ -933,6 +969,7 @@ export default { |
|
|
|
parentAgentName: "", |
|
|
|
commissionRatio: 0, |
|
|
|
areaKind: 1, |
|
|
|
expressErrandEnabled: 1, |
|
|
|
centerLng: null, |
|
|
|
centerLat: null, |
|
|
|
radiusMeters: "", |
|
|
|
@ -1041,6 +1078,7 @@ export default { |
|
|
|
status: 0, |
|
|
|
parentAgentId: "", |
|
|
|
parentAgentName: "", |
|
|
|
expressErrandEnabled: 1, |
|
|
|
}; |
|
|
|
this.modalVisible = true; |
|
|
|
return; |
|
|
|
@ -1061,6 +1099,7 @@ export default { |
|
|
|
status: 0, |
|
|
|
parentAgentId: "", |
|
|
|
parentAgentName: "", |
|
|
|
expressErrandEnabled: 1, |
|
|
|
}; |
|
|
|
this.modalVisible = true; |
|
|
|
}, |
|
|
|
@ -1080,6 +1119,7 @@ export default { |
|
|
|
parentAgentName: "", |
|
|
|
commissionRatio: 0, |
|
|
|
areaKind: 1, |
|
|
|
expressErrandEnabled: 1, |
|
|
|
centerLng: null, |
|
|
|
centerLat: null, |
|
|
|
radiusMeters: "", |
|
|
|
|