|
|
@@ -148,6 +148,15 @@
|
|
|
</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.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>
|
|
|
<input v-model="userInfo.wlName" @click="userInfo.wlName=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="请填写" type="text" style="width:48%;border:1upx solid #ddd;margin-right:15upx;height:52upx;text-align:center;" />
|
|
|
@@ -216,7 +225,7 @@ import ModalModule from "@/components/plugin/modal"
|
|
|
import { getUserDet,debt} from "@/api/member";
|
|
|
import { IMGHOST } from '@/config'
|
|
|
import { mapGetters } from "vuex"
|
|
|
-import { changeShowStock,changeWlName,changeLevel,createSeatSnFn,modifySeatSnFn } from "@/api/custom"
|
|
|
+import { changeShowStock,changePassStatus,changeWlName,changeLevel,createSeatSnFn,modifySeatSnFn } from "@/api/custom"
|
|
|
import { updateDebtLimit,updateCustomBlack,changeDiscount,changeName,rechargeFn,getGatheringCode} from "@/api/custom";
|
|
|
export default {
|
|
|
name: "detail",
|
|
|
@@ -234,6 +243,7 @@ export default {
|
|
|
debt: 0,
|
|
|
black: 1,
|
|
|
showStock:0,
|
|
|
+ passStatus:0,
|
|
|
wlId:0,
|
|
|
level:1
|
|
|
},
|
|
|
@@ -525,6 +535,14 @@ export default {
|
|
|
let msg = e.detail.value?'已开启':'已禁用'
|
|
|
this.$msg(msg)
|
|
|
},
|
|
|
+ passStatusChangeFn(e){
|
|
|
+ this.form.passStatus = e.detail.value ? 1 : 0
|
|
|
+ changePassStatus({customId:this.userInfo.id,passStatus:this.form.passStatus}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ this.$msg(res.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
showStockChangeFn(e){
|
|
|
this.form.showStock = e.detail.value ? 1 : 0
|
|
|
changeShowStock({customId:this.userInfo.id,showStock:this.form.showStock}).then(res=>{
|
|
|
@@ -559,6 +577,7 @@ export default {
|
|
|
this.form.level = this.userInfo.level
|
|
|
this.form.black = this.userInfo.black
|
|
|
this.form.showStock = this.userInfo.showStock
|
|
|
+ this.form.passStatus = this.userInfo.passStatus
|
|
|
this.discount = parseFloat(res.data.discount)
|
|
|
if(res.data.remainDebtAmount && Number(res.data.remainDebtAmount)>0){
|
|
|
let name = res.data.name && !this.$util.isEmpty(res.data.name) ? res.data.name+' 待结金额' : '待结金额'
|