|
@@ -18,6 +18,10 @@
|
|
|
<text v-if="userInfo.overTimeUnExpend && userInfo.overTimeUnExpend == 30" style="margin-left:40upx;color:green;font-weight:bold;">超1个月未下单</text>
|
|
<text v-if="userInfo.overTimeUnExpend && userInfo.overTimeUnExpend == 30" style="margin-left:40upx;color:green;font-weight:bold;">超1个月未下单</text>
|
|
|
<text v-if="userInfo.overTimeUnExpend && userInfo.overTimeUnExpend == 180" style="margin-left:40upx;color:green;font-weight:bold;">超半年未下单</text>
|
|
<text v-if="userInfo.overTimeUnExpend && userInfo.overTimeUnExpend == 180" style="margin-left:40upx;color:green;font-weight:bold;">超半年未下单</text>
|
|
|
<text v-if="userInfo.overTimeUnExpend && userInfo.overTimeUnExpend == 365" style="margin-left:40upx;color:green;font-weight:bold;">超1年未下单</text>
|
|
<text v-if="userInfo.overTimeUnExpend && userInfo.overTimeUnExpend == 365" style="margin-left:40upx;color:green;font-weight:bold;">超1年未下单</text>
|
|
|
|
|
+
|
|
|
|
|
+ <text v-if="Number(userInfo.black)==2" style="color:red;font-weight:bold;margin-left:40upx;">黑名单</text>
|
|
|
|
|
+ <text v-if="Number(userInfo.delStatus)==1" style="color:red;font-weight:bold;margin-left:40upx;">已删除</text>
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -209,6 +213,15 @@
|
|
|
</div>
|
|
</div>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
|
|
+ <div class="tui-title">删除客户</div>
|
|
|
|
|
+ <div class="switch_bx">
|
|
|
|
|
+ <text v-if="form.delStatus == 1">已删</text>
|
|
|
|
|
+ <text v-else>未删</text>
|
|
|
|
|
+ <switch :checked="form.delStatus == 1 ? true : false" @change="delChangeFn" style="transform: scale(0.8,0.8)" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </tui-list-cell>
|
|
|
|
|
+
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<div class="tui-title">短名称</div>
|
|
<div class="tui-title">短名称</div>
|
|
|
<input v-model="userInfo.shortName" @click="userInfo.shortName=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="请填写" type="text" style="width:48%;border:1upx solid #ddd;margin-right:12upx;height:70upx;text-align:center;" />
|
|
<input v-model="userInfo.shortName" @click="userInfo.shortName=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="请填写" type="text" style="width:48%;border:1upx solid #ddd;margin-right:12upx;height:70upx;text-align:center;" />
|
|
@@ -298,7 +311,7 @@ import ModalModule from "@/components/plugin/modal"
|
|
|
import { getUserDet,debt} from "@/api/member";
|
|
import { getUserDet,debt} from "@/api/member";
|
|
|
import { IMGHOST } from '@/config'
|
|
import { IMGHOST } from '@/config'
|
|
|
import { mapGetters } from "vuex"
|
|
import { mapGetters } from "vuex"
|
|
|
-import { changeShowStock,changePassStatus,toChangeHome,changeWlName,modifyShortName,modifyHomeAmount,changeLevel,createSeatSnFn,modifySeatSnFn } from "@/api/custom"
|
|
|
|
|
|
|
+import { changeShowStock,changePassStatus,toChangeHome,changeWlName,modifyShortName,modifyHomeAmount,changeLevel,createSeatSnFn,modifySeatSnFn,changeDelStatus } from "@/api/custom"
|
|
|
import { updateDebtLimit,updateCustomBlack,changeDiscount,changeName,rechargeFn,getGatheringCode} from "@/api/custom";
|
|
import { updateDebtLimit,updateCustomBlack,changeDiscount,changeName,rechargeFn,getGatheringCode} from "@/api/custom";
|
|
|
export default {
|
|
export default {
|
|
|
name: "detail",
|
|
name: "detail",
|
|
@@ -315,6 +328,7 @@ export default {
|
|
|
name:'',
|
|
name:'',
|
|
|
debt: 0,
|
|
debt: 0,
|
|
|
black: 1,
|
|
black: 1,
|
|
|
|
|
+ delStatus:0,
|
|
|
showStock:0,
|
|
showStock:0,
|
|
|
passStatus:0,
|
|
passStatus:0,
|
|
|
home:1,
|
|
home:1,
|
|
@@ -646,15 +660,24 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- async blackChangeFn(e){
|
|
|
|
|
|
|
+ delChangeFn(e){
|
|
|
|
|
+ this.form.delStatus = e.detail.value ? 1 : 0;
|
|
|
|
|
+ changeDelStatus({id:this.userInfo.id,delStatus:this.form.delStatus}).then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ this.$msg('操作成功')
|
|
|
|
|
+ this.getUserDetail()
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ blackChangeFn(e){
|
|
|
this.form.black = e.detail.value ? 2 : 1;
|
|
this.form.black = e.detail.value ? 2 : 1;
|
|
|
- try {
|
|
|
|
|
- let res = await updateCustomBlack({ black: this.form.black, customId: this.userInfo.id })
|
|
|
|
|
- let msg = e.detail.value ? '已拉黑' : '已开放'
|
|
|
|
|
- this.$msg(msg);
|
|
|
|
|
- } catch (err) {
|
|
|
|
|
- console.log(err)
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ updateCustomBlack({ black: this.form.black, customId: this.userInfo.id }).then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ let msg = e.detail.value ? '已拉黑' : '已开放'
|
|
|
|
|
+ this.$msg(msg)
|
|
|
|
|
+ this.getUserDetail()
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
callUp() {
|
|
callUp() {
|
|
|
uni.makePhoneCall({
|
|
uni.makePhoneCall({
|
|
@@ -671,6 +694,7 @@ export default {
|
|
|
this.form.debt = this.userInfo.debt
|
|
this.form.debt = this.userInfo.debt
|
|
|
this.form.level = this.userInfo.level
|
|
this.form.level = this.userInfo.level
|
|
|
this.form.black = this.userInfo.black
|
|
this.form.black = this.userInfo.black
|
|
|
|
|
+ this.form.delStatus = this.userInfo.delStatus
|
|
|
this.form.showStock = this.userInfo.showStock
|
|
this.form.showStock = this.userInfo.showStock
|
|
|
this.form.passStatus = this.userInfo.passStatus
|
|
this.form.passStatus = this.userInfo.passStatus
|
|
|
this.form.home = this.userInfo.home
|
|
this.form.home = this.userInfo.home
|