|
|
@@ -87,6 +87,18 @@
|
|
|
<input v-model="form.packCost" @focus="form.packCost=''" placeholder-class="phcolor" class="tui-input" name="packCost" placeholder="打包费" type="digit" />
|
|
|
</tui-list-cell>
|
|
|
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <view class="tui-title">客户欠款</view>
|
|
|
+ <view>
|
|
|
+ <switch style="transform:scale(0.7,0.7)" :checked="form.allowDebt == 0 ? false : true" @change="allowDebtChange" /> {{form.allowDebt==0 ? '不允许' : '允许'}}
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :hover="false" v-if="form.allowDebt == 1">
|
|
|
+ <view class="tui-title ">欠款额度</view>
|
|
|
+ <input v-model="form.allowDebtAmount" placeholder-class="phcolor" class="tui-input" name="allowDebtAmount" placeholder="请填写金额" />
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
<tui-list-cell class="line-cell remark-wrap" :hover="false">
|
|
|
<view class="tui-title">简介</view>
|
|
|
<view class="tui-input">
|
|
|
@@ -145,7 +157,9 @@ export default {
|
|
|
mobile: '',
|
|
|
telephone:'',
|
|
|
packCost:0,
|
|
|
- img: []
|
|
|
+ img: [],
|
|
|
+ allowDebt:0,
|
|
|
+ allowDebtAmount:5000
|
|
|
},
|
|
|
showRegion: false,
|
|
|
region: {
|
|
|
@@ -209,6 +223,9 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ allowDebtChange(e){
|
|
|
+ this.form.allowDebt = e.target.value ? 1 : 0
|
|
|
+ },
|
|
|
openChange(e) {
|
|
|
this.visible = e.target.value ? true : false
|
|
|
this.form.open = e.target.value ? 1 : 0
|