Browse Source

车销管理

shish 3 years ago
parent
commit
5c8c7e8bb5
1 changed files with 12 additions and 1 deletions
  1. 12 1
      ghsApp/src/admin/shop/add.vue

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

@@ -106,6 +106,13 @@
 					<input type="number" v-model="form.allowDebtAmount" @focus="form.allowDebtAmount=''" placeholder-class="phcolor" class="tui-input" name="allowDebtAmount" placeholder="请填写金额" />
 				</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.carSale == 0 ? false : true" @change="carSaleChange" /> {{form.carSale==0 ? '否' : '是'}}
+					</view>
+				</tui-list-cell>
+
 				<tui-list-cell class="line-cell" :hover="false">
 					<view class="tui-title">默认门店</view>
 					<view>
@@ -175,7 +182,8 @@ export default {
 				allowDebt:0,
 				allowDebtAmount:5000,
 				presell:0,
-				default:0
+				default:0,
+				carSale:0
 			},
 			showRegion: false,
 			region: {
@@ -242,6 +250,9 @@ export default {
 		presellChange(e){
 			this.form.presell = e.target.value ? 1 : 0
 		},
+		carSaleChange(e){
+			this.form.carSale = e.target.value ? 1 : 0
+		},
 		defaultChange(e){
 			this.form.default = e.target.value ? 1 : 0
 		},