|
|
@@ -138,14 +138,29 @@
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
- <div class="tui-title">列入黑名单</div>
|
|
|
+ <div class="tui-title">审核状态</div>
|
|
|
<div class="switch_bx">
|
|
|
- <text v-if="form.black == 1">否</text>
|
|
|
- <text v-else>是</text>
|
|
|
- <switch :checked="form.black == 1 ? false : true" @change="blackChangeFn" style="transform: scale(0.8,0.8)" />
|
|
|
+ <text v-if="form.passStatus == 0">待审</text>
|
|
|
+ <text v-else>通过</text>
|
|
|
+ <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>
|
|
|
+ <input v-model="userInfo.homeAmount" @click="userInfo.homeAmount=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="请填写,0表示没门槛" type="text" style="width:48%;border:1upx solid #ddd;margin-right:15upx;height:52upx;text-align:center;" />
|
|
|
+ <button class="admin-button-com blue mini-btn" @tap="changeHomeAmount">确定</button>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<div class="tui-title">查看库存</div>
|
|
|
<div class="switch_bx">
|
|
|
@@ -156,11 +171,11 @@
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
- <div class="tui-title">审核状态</div>
|
|
|
+ <div class="tui-title">列入黑名单</div>
|
|
|
<div class="switch_bx">
|
|
|
- <text v-if="form.passStatus == 0">待审</text>
|
|
|
- <text v-else>通过</text>
|
|
|
- <switch :checked="form.passStatus == 0 ? false : true" @change="passStatusChangeFn" style="transform: scale(0.8,0.8)" />
|
|
|
+ <text v-if="form.black == 1">否</text>
|
|
|
+ <text v-else>是</text>
|
|
|
+ <switch :checked="form.black == 1 ? false : true" @change="blackChangeFn" style="transform: scale(0.8,0.8)" />
|
|
|
</div>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
@@ -253,7 +268,7 @@ import ModalModule from "@/components/plugin/modal"
|
|
|
import { getUserDet,debt} from "@/api/member";
|
|
|
import { IMGHOST } from '@/config'
|
|
|
import { mapGetters } from "vuex"
|
|
|
-import { changeShowStock,changePassStatus,changeWlName,modifyShortName,changeLevel,createSeatSnFn,modifySeatSnFn } from "@/api/custom"
|
|
|
+import { changeShowStock,changePassStatus,toChangeHome,changeWlName,modifyShortName,modifyHomeAmount,changeLevel,createSeatSnFn,modifySeatSnFn } from "@/api/custom"
|
|
|
import { updateDebtLimit,updateCustomBlack,changeDiscount,changeName,rechargeFn,getGatheringCode} from "@/api/custom";
|
|
|
export default {
|
|
|
name: "detail",
|
|
|
@@ -272,6 +287,8 @@ export default {
|
|
|
black: 1,
|
|
|
showStock:0,
|
|
|
passStatus:0,
|
|
|
+ home:1,
|
|
|
+ homeAmount:0,
|
|
|
wlId:0,
|
|
|
level:1,
|
|
|
staffName:'',
|
|
|
@@ -459,6 +476,14 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ changeHomeAmount(){
|
|
|
+ let homeAmount = this.userInfo.homeAmount||0
|
|
|
+ modifyHomeAmount({id:this.option.id,homeAmount:homeAmount}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ this.$msg(res.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
changeShortName(){
|
|
|
let shortName = this.userInfo.shortName||''
|
|
|
modifyShortName({id:this.option.id,shortName:shortName}).then(res=>{
|
|
|
@@ -573,6 +598,14 @@ export default {
|
|
|
let msg = e.detail.value?'已开启':'已禁用'
|
|
|
this.$msg(msg)
|
|
|
},
|
|
|
+ homeChangeFn(e){
|
|
|
+ this.form.home = e.detail.value ? 1 : 0
|
|
|
+ toChangeHome({customId:this.userInfo.id,home:this.form.home}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ this.$msg(res.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
passStatusChangeFn(e){
|
|
|
this.form.passStatus = e.detail.value ? 1 : 0
|
|
|
changePassStatus({customId:this.userInfo.id,passStatus:this.form.passStatus}).then(res=>{
|
|
|
@@ -616,6 +649,7 @@ export default {
|
|
|
this.form.black = this.userInfo.black
|
|
|
this.form.showStock = this.userInfo.showStock
|
|
|
this.form.passStatus = this.userInfo.passStatus
|
|
|
+ this.form.home = this.userInfo.home
|
|
|
this.form.staffId = this.userInfo.staffId
|
|
|
this.form.staffName = this.userInfo.staffName
|
|
|
this.discount = parseFloat(res.data.discount)
|