|
|
@@ -22,6 +22,41 @@
|
|
|
<input type="text" v-model="form.name" maxlength="4" @focus="form.name = ''" class="tui-input" placeholder="请填写名称,最多4个字" />
|
|
|
</tui-list-cell>
|
|
|
|
|
|
+ <!-- 算运费方式 (仅当选择跑腿 form.style === 2 时展示) -->
|
|
|
+ <tui-list-cell class="line-cell" :hover="false" v-if="form.style === 2">
|
|
|
+ <view class="tui-title">算运费方式</view>
|
|
|
+ <view class="btn-group">
|
|
|
+ <button
|
|
|
+ class="admin-button-com middle"
|
|
|
+ :class="[form.calcType == 0 ? 'blue' : 'default']"
|
|
|
+ @click="form.calcType = 0"
|
|
|
+ >
|
|
|
+ 用跑腿
|
|
|
+ </button>
|
|
|
+ <button
|
|
|
+ class="admin-button-com middle"
|
|
|
+ :class="[form.calcType == 1 ? 'blue' : 'default']"
|
|
|
+ @click="form.calcType = 1"
|
|
|
+ style="margin-left: 20upx;"
|
|
|
+ >
|
|
|
+ 用自定义
|
|
|
+ </button>
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+ <!-- 跑腿提供方 (仅当选择跑腿 form.style === 2 时展示) -->
|
|
|
+ <tui-list-cell class="line-cell" :hover="false" v-if="form.style === 2">
|
|
|
+ <view class="tui-title">跑腿提供方</view>
|
|
|
+ <view class="btn-group">
|
|
|
+ <button
|
|
|
+ class="admin-button-com middle default"
|
|
|
+ @click="pageTo({ url: '/admin/delivery/deliveryManage' })"
|
|
|
+ >
|
|
|
+ 管理
|
|
|
+ </button>
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
<!-- 状态 -->
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">状态</view>
|
|
|
@@ -274,6 +309,7 @@ export default {
|
|
|
id: 0,
|
|
|
style: 0,
|
|
|
name: "",
|
|
|
+ calcType: 0,
|
|
|
status: 1,
|
|
|
sort: 0,
|
|
|
minAmount: 0.00,
|
|
|
@@ -352,6 +388,7 @@ export default {
|
|
|
id: data.id || 0,
|
|
|
style: style,
|
|
|
name: data.name || "",
|
|
|
+ calcType: data.calcType != null ? Number(data.calcType) : 0,
|
|
|
status: data.status != null ? Number(data.status) : 1,
|
|
|
sort: data.sort != null ? Number(data.sort) : 0,
|
|
|
minAmount: data.minAmount != null ? parseFloat(data.minAmount) : 0.00,
|