|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
- <view class="app-content">
|
|
|
- <templete v-if="!$util.isEmpty(userInfo)">
|
|
|
+ <view class="app-content" style="padding-bottom:30upx;">
|
|
|
+
|
|
|
<view class="app-round_bg"></view>
|
|
|
<view class="module-com user-info">
|
|
|
<view class="user-info_top">
|
|
|
@@ -95,7 +95,7 @@
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false" v-if="form.debt == 1">
|
|
|
<div class="tui-title">赊账额度</div>
|
|
|
- <input v-model="debtLimit" @click="debtLimit=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="请填写" type="digit" style="width:48%;border:1upx solid #ddd;margin-right:15upx;height:52upx;" />
|
|
|
+ <input v-model="debtLimit" @click="debtLimit=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="请填写" type="digit" style="width:48%;border:1upx solid #ddd;margin-right:15upx;height:52upx;text-align:center;" />
|
|
|
<button class="admin-button-com blue mini-btn" @tap="amendMoney">确定</button>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
@@ -124,13 +124,20 @@
|
|
|
|
|
|
<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;" />
|
|
|
+ <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;" />
|
|
|
<button class="admin-button-com blue mini-btn" @tap="changeWlFn">确定</button>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <div class="tui-title">货位号</div>
|
|
|
+ <input v-model="userInfo.seatSn" @click="userInfo.seatSn=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="请填写" type="text" style="width:22%;border:1upx solid #ddd;margin-right:15upx;height:52upx;text-align:center;" />
|
|
|
+ <button class="admin-button-com blue mini-btn" @tap="modifySeatSn">修改</button>
|
|
|
+ <button class="admin-button-com blue mini-btn" @tap="createSeatSn" style="margin-left:10upx;">自动生成</button>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
- </templete>
|
|
|
+
|
|
|
|
|
|
<modal-module :show="changeShow" @click="confirmChange" :maskClosable="true" title="修改名称" padding="30rpx 30rpx" >
|
|
|
<template v-slot:content>
|
|
|
@@ -151,7 +158,7 @@ import TuiListCell from '@/components/plugin/list-cell'
|
|
|
import { share } from "@/mixins";
|
|
|
import ModalModule from "@/components/plugin/modal"
|
|
|
import { getUserDet,debt} from "@/api/member";
|
|
|
-import { changeShowStock,changeWlName,changeLevel } from "@/api/custom"
|
|
|
+import { changeShowStock,changeWlName,changeLevel,createSeatSnFn,modifySeatSnFn } from "@/api/custom"
|
|
|
import { updateDebtLimit,updateCustomBlack,changeDiscount,changeName} from "@/api/custom";
|
|
|
export default {
|
|
|
name: "detail",
|
|
|
@@ -236,6 +243,32 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ modifySeatSn(){
|
|
|
+ if(this.$util.isEmpty(this.userInfo.seatSn)){
|
|
|
+ this.$msg('请填写货位号')
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ let that = this
|
|
|
+ modifySeatSnFn({id:this.option.id,seatSn:this.userInfo.seatSn}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ that.$msg(res.msg)
|
|
|
+ setTimeout(function(){
|
|
|
+ that.getUserDetail()
|
|
|
+ },1200)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ createSeatSn(){
|
|
|
+ let that = this
|
|
|
+ createSeatSnFn({id:this.option.id}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ that.$msg(res.msg)
|
|
|
+ setTimeout(function(){
|
|
|
+ that.getUserDetail()
|
|
|
+ },1000)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
changeWlFn() {
|
|
|
let wlName = this.userInfo.wlName||''
|
|
|
changeWlName({id:this.option.id,wlName:wlName}).then(res=>{
|