|
|
@@ -140,15 +140,27 @@
|
|
|
|
|
|
|
|
|
<modal-module :show="changeShow" @click="confirmChange" :maskClosable="true" title="修改名称" padding="30rpx 30rpx" >
|
|
|
- <template v-slot:content>
|
|
|
- <div class="app-modal-input-wrap">
|
|
|
- <div class="inp-list-line">
|
|
|
- <div class="line-input">
|
|
|
- <input type="text" style="width:61%;text-align:center;" :focus="changeFocus" v-model="customName" class="inp-input" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
+ <template v-slot:content>
|
|
|
+ <div class="app-modal-input-wrap">
|
|
|
+ <div class="inp-list-line">
|
|
|
+ <div class="line-input">
|
|
|
+ <input type="text" style="width:61%;text-align:center;" :focus="changeFocus" v-model="customName" class="inp-input" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </modal-module>
|
|
|
+
|
|
|
+ <modal-module :show="czShow" @click="confirmRecharge" :maskClosable="true" title="充值结账" padding="30rpx 30rpx" >
|
|
|
+ <template v-slot:content>
|
|
|
+ <div class="app-modal-input-wrap">
|
|
|
+ <div class="inp-list-line">
|
|
|
+ <div class="line-input">
|
|
|
+ <input type="digit" style="width:61%;text-align:center;" :focus="czFocus" v-model="rechargeMoney" class="inp-input" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</modal-module>
|
|
|
|
|
|
</view>
|
|
|
@@ -159,7 +171,7 @@ import { share } from "@/mixins";
|
|
|
import ModalModule from "@/components/plugin/modal"
|
|
|
import { getUserDet,debt} from "@/api/member";
|
|
|
import { changeShowStock,changeWlName,changeLevel,createSeatSnFn,modifySeatSnFn } from "@/api/custom"
|
|
|
-import { updateDebtLimit,updateCustomBlack,changeDiscount,changeName} from "@/api/custom";
|
|
|
+import { updateDebtLimit,updateCustomBlack,changeDiscount,changeName,rechargeClear} from "@/api/custom";
|
|
|
export default {
|
|
|
name: "detail",
|
|
|
components: {
|
|
|
@@ -191,16 +203,21 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
name: "添加员工",
|
|
|
- img: `${this.$constant.imgUrl}/retail/member/tab-icon-1.png`,
|
|
|
+ img: `${this.$constant.imgUrl}/retail/member/tab-icon-4.png`,
|
|
|
funtion: () => {
|
|
|
this.addStaff()
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- name: "发红包",
|
|
|
- img: `${this.$constant.imgUrl}/retail/member/tab-icon-2.png`,
|
|
|
+ name: "充值结账",
|
|
|
+ img: `${this.$constant.imgUrl}/retail/member/tab-icon-1.png`,
|
|
|
funtion: () => {
|
|
|
- this.$msg("开发中");
|
|
|
+ this.czShow = true
|
|
|
+ setTimeout(x => {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.czFocus = true
|
|
|
+ })
|
|
|
+ }, 200)
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -214,7 +231,10 @@ export default {
|
|
|
customName:'',
|
|
|
changeShow:false,
|
|
|
changeFocus:false,
|
|
|
- wlList: []
|
|
|
+ wlList: [],
|
|
|
+ czFocus:false,
|
|
|
+ czShow:false,
|
|
|
+ rechargeMoney:''
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
|
@@ -311,6 +331,26 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ confirmRecharge(val){
|
|
|
+ let that=this;
|
|
|
+ if (val.index == 0) {
|
|
|
+ that.czShow = false
|
|
|
+ that.czFocus = false
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(Number(this.rechargeMoney)<0){
|
|
|
+ this.$msg('充值金额需要大于0')
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ rechargeClear({amount:this.rechargeMoney}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ that.czShow = false
|
|
|
+ that.czFocus = false
|
|
|
+ that.rechargeMoney = ''
|
|
|
+ that.$msg(res.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
createOrder(){
|
|
|
this.$util.pageTo({url: '/admin/billing/index',type:2,query: {customId: this.userInfo.id,customName:this.userInfo.name}})
|
|
|
},
|