|
|
|
|
@ -10,7 +10,7 @@
|
|
|
|
|
<el-button icon="el-icon-circle-plus-outline" type="text" @click="openAddMember"></el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="会员名字:" label-width="160px">
|
|
|
|
|
<el-form-item label="会员名字:" label-width="140px">
|
|
|
|
|
<div class="form-width-ms">
|
|
|
|
|
<span>{{ form.memberName }} <i v-if="form.sex==1" class="el-icon-male text-blue"></i>
|
|
|
|
|
<i v-if="form.sex==0" class="el-icon-female text-pink"></i></span>
|
|
|
|
|
@ -29,6 +29,18 @@
|
|
|
|
|
<el-button size="mini" type="text" @click="openMoney()">去还款</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="form.mobilePhone" label="成交额">
|
|
|
|
|
<div class="form-width-ms"><span class="text-price text-red">{{ amountType(1) }}</span></div>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="form.mobilePhone" label="卡付">
|
|
|
|
|
<div class="form-width-ms"><span class="text-price text-red">{{ amountType(2) }}</span></div>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="form.mobilePhone" label="现付">
|
|
|
|
|
<div class="form-width-ms"><span class="text-price text-red">{{ amountType(3) }}</span></div>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="form.mobilePhone" label="欠款">
|
|
|
|
|
<div class="form-width-ms"><span class="text-price text-red">{{ amountType(4) }}</span></div>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<br />
|
|
|
|
|
<!-- <el-form-item label="疗程编码:">
|
|
|
|
|
<div class="form-width-ms flex ">
|
|
|
|
|
@ -228,7 +240,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
<div class="reat" style="display:flex;margin-top:20px;align-content:space-between">
|
|
|
|
|
<div class="reat">
|
|
|
|
|
<div class="margin-bottom-xs marginAuto">
|
|
|
|
|
<span style="flex:1">员工/门店管理层/高管业绩</span>
|
|
|
|
|
<div style="display: flex">
|
|
|
|
|
@ -259,7 +271,7 @@
|
|
|
|
|
<el-button size="mini" type="primary" plain @click="getList" v-role="5004001" style="width:100%;height:35px;;margin:10px 10px">列表</el-button>
|
|
|
|
|
<el-button size="mini" type="primary" @click="save((saveloading = true))" :loading="saveloading" v-role="5004002" style="width:100%;height:35px;;margin:10px 10px">提交</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="right">
|
|
|
|
|
<!-- <div class="right">
|
|
|
|
|
<el-form ref="form" label-width="65px">
|
|
|
|
|
<el-form-item label="成交额:">
|
|
|
|
|
<span class="text-price text-red">{{ amountType(1) }}</span>
|
|
|
|
|
@ -274,7 +286,7 @@
|
|
|
|
|
<span class="text-price text-red">{{ amountType(4) }}</span>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
</div>
|
|
|
|
|
</div> -->
|
|
|
|
|
</div>
|
|
|
|
|
<div class="reatmen">
|
|
|
|
|
<!-- 保存列表弹窗 -->
|
|
|
|
|
@ -561,7 +573,7 @@ export default {
|
|
|
|
|
sessionStorageData: {}, //门店参数集合
|
|
|
|
|
editStaffRatioRow: "",
|
|
|
|
|
radioEditStaffList: {},
|
|
|
|
|
formLabelwidth: "80px",
|
|
|
|
|
formLabelwidth: "70px",
|
|
|
|
|
rechargeAccountList: [], //卡付列表
|
|
|
|
|
collectionCashAmount: "",
|
|
|
|
|
editStaffDailogtitle: "",
|
|
|
|
|
@ -1500,7 +1512,6 @@ export default {
|
|
|
|
|
|
|
|
|
|
//保存确定方法
|
|
|
|
|
save() {
|
|
|
|
|
// this.payLists
|
|
|
|
|
// this.form.courseReatmentAmount = parseInt(this.paidAmount)
|
|
|
|
|
// this.form.debtMoney = parseInt(this.treatAmount)
|
|
|
|
|
// ----
|
|
|
|
|
@ -1627,16 +1638,36 @@ export default {
|
|
|
|
|
}, 3000);
|
|
|
|
|
let courseLists = this.list.map(item=>{
|
|
|
|
|
return {
|
|
|
|
|
...item,...this.form
|
|
|
|
|
...item,
|
|
|
|
|
mobilePhone:this.form.mobilePhone,
|
|
|
|
|
memberName:this.form.memberName,
|
|
|
|
|
memberId:this.form.memberId,
|
|
|
|
|
sex:this.form.sex,
|
|
|
|
|
isDebt:item.debtMoney?1:0,
|
|
|
|
|
isAddition:this.isAddition,
|
|
|
|
|
collectionCashAmount:item.nowAmount
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
let from = {
|
|
|
|
|
var payLists = [];
|
|
|
|
|
// 用作删除数组
|
|
|
|
|
const auxiliaryArr = ['isShow','state','collectionType','id','collectionTypeName']
|
|
|
|
|
for (let i =0;i<this.payLists.length;i++) {
|
|
|
|
|
let params = {...this.payLists[i]}
|
|
|
|
|
params.payId = this.payLists[i].id;
|
|
|
|
|
params.payName = this.payLists[i].collectionTypeName;
|
|
|
|
|
auxiliaryArr.forEach(item=>{
|
|
|
|
|
delete params[item]
|
|
|
|
|
})
|
|
|
|
|
if (this.payLists[i].payMoney * 1 > 0) {
|
|
|
|
|
payLists.push(params);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
let form = {
|
|
|
|
|
...val,
|
|
|
|
|
payLists:this.payLists,
|
|
|
|
|
payLists,
|
|
|
|
|
courseLists
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
|
addcourse(this.form).then((res) => {
|
|
|
|
|
addcourse(form).then((res) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
if (res.code == "000000") {
|
|
|
|
|
this.empty();
|
|
|
|
|
@ -2023,7 +2054,11 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style scoped>
|
|
|
|
|
*>>>.el-input-group--append .el-input__inner{
|
|
|
|
|
.form-width-ms{
|
|
|
|
|
width: 0.65rem !important;
|
|
|
|
|
z-index: 999999999 !important;
|
|
|
|
|
}
|
|
|
|
|
>>>.el-input-group--append .el-input__inner{
|
|
|
|
|
width: 123px;
|
|
|
|
|
}
|
|
|
|
|
.reatmen {
|
|
|
|
|
@ -2096,6 +2131,9 @@ export default {
|
|
|
|
|
padding: 20px 20px;
|
|
|
|
|
}
|
|
|
|
|
.reat{
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-around;
|
|
|
|
|
overflow:auto
|
|
|
|
|
}
|
|
|
|
|
.right{
|
|
|
|
|
|