|
|
|
@ -19,10 +19,10 @@
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item v-show="sessionStorageData.recDebt&&arrears" label="以往欠款:">
|
|
|
|
<el-form-item v-if="sessionStorageData.recDebt&&debtMoneys" label="以往欠款:">
|
|
|
|
<div class="form-width-ms">
|
|
|
|
<div class="form-width-ms">
|
|
|
|
{{ debtMoneys }}
|
|
|
|
{{ debtMoneys }}
|
|
|
|
<el-button size="mini" type="text" @click="openMoney()" v-show="debtMoneys">去还款</el-button>
|
|
|
|
<el-button size="mini" type="text" @click="openMoney()" v-show="debtMoneys != 0">去还款</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="业务时间:" v-if="isAddition==1">
|
|
|
|
<el-form-item label="业务时间:" v-if="isAddition==1">
|
|
|
|
@ -378,6 +378,7 @@ import {
|
|
|
|
storeOne,
|
|
|
|
storeOne,
|
|
|
|
recAccountList,
|
|
|
|
recAccountList,
|
|
|
|
recTypeOne,
|
|
|
|
recTypeOne,
|
|
|
|
|
|
|
|
debtPage,
|
|
|
|
selectOne,
|
|
|
|
selectOne,
|
|
|
|
succsee,
|
|
|
|
succsee,
|
|
|
|
} from "@/api/eashier.js";
|
|
|
|
} from "@/api/eashier.js";
|
|
|
|
@ -457,7 +458,6 @@ export default {
|
|
|
|
adminList: [{ brandNumber: "", staffName: "", ratio: 100 }],
|
|
|
|
adminList: [{ brandNumber: "", staffName: "", ratio: 100 }],
|
|
|
|
staffList: [],
|
|
|
|
staffList: [],
|
|
|
|
managerList: [],
|
|
|
|
managerList: [],
|
|
|
|
arrears:false,
|
|
|
|
|
|
|
|
form: {
|
|
|
|
form: {
|
|
|
|
mobilePhone: null,
|
|
|
|
mobilePhone: null,
|
|
|
|
memberName: null,
|
|
|
|
memberName: null,
|
|
|
|
@ -519,9 +519,7 @@ export default {
|
|
|
|
this.adminList = [...v];
|
|
|
|
this.adminList = [...v];
|
|
|
|
},
|
|
|
|
},
|
|
|
|
openMoney() {
|
|
|
|
openMoney() {
|
|
|
|
delete this.vip.docType
|
|
|
|
|
|
|
|
this.$refs.repayment.show(this.vip);
|
|
|
|
this.$refs.repayment.show(this.vip);
|
|
|
|
console.log("🚀 ~ file: collectionList.vue ~ line 522 ~ openMoney ~ this.vip", this.vip)
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
recChange(v) {
|
|
|
|
recChange(v) {
|
|
|
|
if (v) {
|
|
|
|
if (v) {
|
|
|
|
@ -571,20 +569,11 @@ export default {
|
|
|
|
if (v != 0) {
|
|
|
|
if (v != 0) {
|
|
|
|
this.getRecList();
|
|
|
|
this.getRecList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(this.form.rechargeTypeName){
|
|
|
|
if(this.form.rechargeTypeName){
|
|
|
|
this.form.rechargeTypeName=""
|
|
|
|
this.form.rechargeTypeName=""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(this.sessionStorageData.recDebt&&this.arrears){
|
|
|
|
|
|
|
|
this.$alert("存在欠款不允许升降级", "提示", {
|
|
|
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
|
|
|
confirmButtonClass: "confirmbtnFalses",
|
|
|
|
|
|
|
|
type: "warning",
|
|
|
|
|
|
|
|
center: true,
|
|
|
|
|
|
|
|
callback: (action) => {},
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
this.liftType=0
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -760,18 +749,6 @@ export default {
|
|
|
|
//选中会员返回方法
|
|
|
|
//选中会员返回方法
|
|
|
|
memberData(v) {
|
|
|
|
memberData(v) {
|
|
|
|
this.form.mobilePhone = v.mobilePhone;
|
|
|
|
this.form.mobilePhone = v.mobilePhone;
|
|
|
|
console.log("🚀 ~ file: collectionList.vue ~ line 764 ~ memberData ~ v.docType", v.docType)
|
|
|
|
|
|
|
|
// if(v.docType[0]=="card_use"||v.docType[1]=="card_use"||v.docType.length==0){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// this.arrears=false
|
|
|
|
|
|
|
|
// console.log("🚀 ~ file: collectionList.vue ~ line 766 ~ memberData ~ this.arrears", this.arrears)
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
v.docType.forEach((item)=>{
|
|
|
|
|
|
|
|
if(item=="card_recharge"){
|
|
|
|
|
|
|
|
this.arrears=true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
console.log("🚀 ~ file: collectionList.vue ~ line 766 ~ memberData ~ this.arrears", this.arrears)
|
|
|
|
|
|
|
|
this.query();
|
|
|
|
this.query();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//上传文件方法
|
|
|
|
//上传文件方法
|
|
|
|
@ -845,7 +822,7 @@ export default {
|
|
|
|
query() {
|
|
|
|
query() {
|
|
|
|
var number = partten.phoneNum;
|
|
|
|
var number = partten.phoneNum;
|
|
|
|
var mobilePhone = this.form.mobilePhone;
|
|
|
|
var mobilePhone = this.form.mobilePhone;
|
|
|
|
// this.empty();为什么要执行清空??????、
|
|
|
|
this.empty();
|
|
|
|
if (!number.test(mobilePhone)) {
|
|
|
|
if (!number.test(mobilePhone)) {
|
|
|
|
this.$message.info({
|
|
|
|
this.$message.info({
|
|
|
|
message: "请输入正确的手机号 ! ",
|
|
|
|
message: "请输入正确的手机号 ! ",
|
|
|
|
@ -952,13 +929,7 @@ export default {
|
|
|
|
console.log("a")
|
|
|
|
console.log("a")
|
|
|
|
},
|
|
|
|
},
|
|
|
|
memberAdd(v) {
|
|
|
|
memberAdd(v) {
|
|
|
|
console.log("🚀 ~ file: collectionList.vue ~ line 941 ~ memberAdd ~ (v", v)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.form.mobilePhone = v.mobilePhone;
|
|
|
|
this.form.mobilePhone = v.mobilePhone;
|
|
|
|
|
|
|
|
|
|
|
|
// if(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
this.query();
|
|
|
|
this.query();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//选择金额.`
|
|
|
|
//选择金额.`
|
|
|
|
@ -1384,6 +1355,29 @@ export default {
|
|
|
|
}).then((res) => {
|
|
|
|
}).then((res) => {
|
|
|
|
if (res.code == "000000") {
|
|
|
|
if (res.code == "000000") {
|
|
|
|
this.recList = res.rows;
|
|
|
|
this.recList = res.rows;
|
|
|
|
|
|
|
|
let form = {
|
|
|
|
|
|
|
|
pageSize: 99,
|
|
|
|
|
|
|
|
memberId: this.form.memberId,
|
|
|
|
|
|
|
|
state: 0,
|
|
|
|
|
|
|
|
storeId: sessionStorage.getItem("storeId"),
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
//获取欠款列表
|
|
|
|
|
|
|
|
debtPage(form).then((res) => {
|
|
|
|
|
|
|
|
if (res.code == "000000") {
|
|
|
|
|
|
|
|
var klist=res.pageInfo.list
|
|
|
|
|
|
|
|
klist.forEach((item)=>{
|
|
|
|
|
|
|
|
this.recList.forEach((items,index)=>{
|
|
|
|
|
|
|
|
if(item.tradeName==items.rechargeTypeName){
|
|
|
|
|
|
|
|
this.recList.splice(index,1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
console.log("🚀 ~ file: collectionList.vue ~ line 586 ~ this.recList.forEach ~ this.recList", this.recList)
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$alert("查询会员充值卡: " + res.message, "提示", {
|
|
|
|
this.$alert("查询会员充值卡: " + res.message, "提示", {
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|