Ver Fonte

欠款管理

shish há 3 anos atrás
pai
commit
6217da39c4
1 ficheiros alterados com 18 adições e 1 exclusões
  1. 18 1
      ghsApp/src/admin/shop/add.vue

+ 18 - 1
ghsApp/src/admin/shop/add.vue

@@ -87,6 +87,18 @@
 					<input v-model="form.packCost" @focus="form.packCost=''" placeholder-class="phcolor" class="tui-input" name="packCost" placeholder="打包费" type="digit" />
 					<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>
 
 
+				<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">
 				<tui-list-cell class="line-cell remark-wrap" :hover="false">
 					<view class="tui-title">简介</view>
 					<view class="tui-title">简介</view>
 					<view class="tui-input">
 					<view class="tui-input">
@@ -145,7 +157,9 @@ export default {
 				mobile: '',
 				mobile: '',
 				telephone:'',
 				telephone:'',
 				packCost:0,
 				packCost:0,
-				img: []
+				img: [],
+				allowDebt:0,
+				allowDebtAmount:5000
 			},
 			},
 			showRegion: false,
 			showRegion: false,
 			region: {
 			region: {
@@ -209,6 +223,9 @@ export default {
 				})
 				})
 			}
 			}
 		},
 		},
+		allowDebtChange(e){
+			this.form.allowDebt = e.target.value ? 1 : 0
+		},
 		openChange(e) {
 		openChange(e) {
 			this.visible = e.target.value ? true : false
 			this.visible = e.target.value ? true : false
 			this.form.open = e.target.value ? 1 : 0
 			this.form.open = e.target.value ? 1 : 0