|
|
@@ -179,24 +179,27 @@
|
|
|
<switch :checked="form.passStatus == 0 ? false : true" @change="passStatusChangeFn" style="transform: scale(0.8,0.8)" />
|
|
|
</div>
|
|
|
</tui-list-cell>
|
|
|
-
|
|
|
- <tui-list-cell class="line-cell" :hover="false">
|
|
|
- <div class="tui-title">送货上门</div>
|
|
|
- <div class="switch_bx">
|
|
|
- <text v-if="form.home == 0">不支持</text>
|
|
|
- <text v-else>支持</text>
|
|
|
- <switch :checked="form.home == 0 ? false : true" @change="homeChangeFn" style="transform: scale(0.8,0.8)" />
|
|
|
- </div>
|
|
|
- </tui-list-cell>
|
|
|
-
|
|
|
- <tui-list-cell class="line-cell" :hover="false" v-if="form.home == 1">
|
|
|
- <div class="tui-title">上门最低消费</div>
|
|
|
- <button class="admin-button-com middle" :class="[userInfo.homeType == 0 ? 'blue' : 'default']" @click="userInfo.homeType=0">金额</button>
|
|
|
- <button class="admin-button-com middle" :class="[userInfo.homeType == 1 ? 'blue' : 'default']" @click="userInfo.homeType=1" style="margin-left:5upx;margin-right:5upx;">扎数</button>
|
|
|
- <input v-model="userInfo.homeAmount" @click="userInfo.homeAmount=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="不限填0" type="digit" style="width:100upx;border:1upx solid #ddd;margin-right:5upx;height:70upx;text-align:center;" />
|
|
|
- <button class="admin-button-com blue middle" @tap="changeHomeAmount">确定</button>
|
|
|
- </tui-list-cell>
|
|
|
-
|
|
|
+ <view style="border:1upx solid #CCCCCC;">
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <div class="tui-title">送货上门</div>
|
|
|
+ <div class="switch_bx">
|
|
|
+ <text v-if="form.home == 0">不支持</text>
|
|
|
+ <text v-else>支持</text>
|
|
|
+ <switch :checked="form.home == 0 ? false : true" @change="homeChangeFn" style="transform: scale(0.8,0.8)" />
|
|
|
+ </div>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :hover="false" v-if="form.home == 1">
|
|
|
+ <div class="tui-title">最低消费金额</div>
|
|
|
+ <input v-model="userInfo.homeAmount" @click="userInfo.homeAmount=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="不限制填0" type="digit" style="width:260upx;border:1upx solid #ddd;margin-right:30upx;height:70upx;text-align:center;" />
|
|
|
+ <button class="admin-button-com blue middle" @tap="changeHomeParams">确定</button>
|
|
|
+ </tui-list-cell>
|
|
|
+ <tui-list-cell class="line-cell" :hover="false" v-if="form.home == 1">
|
|
|
+ <div class="tui-title">最低消费扎数</div>
|
|
|
+ <input v-model="userInfo.homeNum" @click="userInfo.homeNum=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="不限制填0" type="digit" style="width:260upx;border:1upx solid #ddd;margin-right:30upx;height:70upx;text-align:center;" />
|
|
|
+ <button class="admin-button-com blue middle" @tap="changeHomeParams">确定</button>
|
|
|
+ </tui-list-cell>
|
|
|
+ </view>
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<div class="tui-title">查看库存</div>
|
|
|
<div class="switch_bx">
|
|
|
@@ -340,7 +343,7 @@ import ModalModule from "@/components/plugin/modal"
|
|
|
import { getUserDet,debt} from "@/api/member";
|
|
|
import { IMGHOST } from '@/config'
|
|
|
import { mapGetters } from "vuex"
|
|
|
-import { changeShowStock,changePassStatus,toChangeHome,changeWlName,modifyShortName,modifyHomeAmount,changeLevel,changeDebtLimitPay,createSeatSnFn,modifySeatSnFn,changeDelStatus } from "@/api/custom"
|
|
|
+import { changeShowStock,changePassStatus,toChangeHome,changeWlName,modifyShortName,modifyHomeParams,changeLevel,changeDebtLimitPay,createSeatSnFn,modifySeatSnFn,changeDelStatus } from "@/api/custom"
|
|
|
import { updateDebtLimit,updateCustomBlack,changeDiscount,changeName,rechargeFn,getGatheringCode} from "@/api/custom";
|
|
|
import { getAllDist,changeDist } from "@/api/dist"
|
|
|
export default {
|
|
|
@@ -363,6 +366,7 @@ export default {
|
|
|
passStatus:0,
|
|
|
home:1,
|
|
|
homeAmount:0,
|
|
|
+ homeNum:0,
|
|
|
wlId:0,
|
|
|
level:1,
|
|
|
staffName:'',
|
|
|
@@ -558,10 +562,18 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
- changeHomeAmount(){
|
|
|
- let homeAmount = this.userInfo.homeAmount||0
|
|
|
- let homeType = this.userInfo.homeType||0
|
|
|
- modifyHomeAmount({id:this.option.id,homeAmount:homeAmount,homeType:homeType}).then(res=>{
|
|
|
+ changeHomeParams(){
|
|
|
+ if(this.$util.isEmpty(this.userInfo.homeAmount)){
|
|
|
+ this.$msg('请填写最低消费金额')
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ if(this.$util.isEmpty(this.userInfo.homeNum)){
|
|
|
+ this.$msg('请填写最低消费扎数')
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ let homeAmount = this.userInfo.homeAmount
|
|
|
+ let homeNum = this.userInfo.homeNum
|
|
|
+ modifyHomeParams({id:this.option.id,homeAmount:homeAmount,homeNum:homeNum}).then(res=>{
|
|
|
if(res.code == 1){
|
|
|
this.$msg(res.msg)
|
|
|
}
|