|
|
|
|
@ -4,38 +4,92 @@
|
|
|
|
|
<el-form inline>
|
|
|
|
|
<el-form-item label="分店名称:" :label-width="labelWidth">
|
|
|
|
|
<div class="form-width-ms">
|
|
|
|
|
<el-input v-model="label">
|
|
|
|
|
<el-button size="mini" slot="append" icon="el-icon-search" @click="openBranch"></el-button>
|
|
|
|
|
<el-input v-model="label">
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
slot="append"
|
|
|
|
|
icon="el-icon-search"
|
|
|
|
|
@click="openBranch"
|
|
|
|
|
></el-button>
|
|
|
|
|
</el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="手机号:" :label-width="labelWidth">
|
|
|
|
|
<div class="form-width-ms">
|
|
|
|
|
<el-input oninput="this.value=this.value.replace(/\D/g,'')" pattern="[0-9]*" maxlength="11" v-model="proForm.mobilePhone" @blur="memberOne" @change="memberOne">
|
|
|
|
|
<el-button size="mini" slot="append" icon="el-icon-search" @click="openMember"></el-button>
|
|
|
|
|
<el-input
|
|
|
|
|
oninput="this.value=this.value.replace(/\D/g,'')"
|
|
|
|
|
pattern="[0-9]*"
|
|
|
|
|
maxlength="11"
|
|
|
|
|
v-model="proForm.mobilePhone"
|
|
|
|
|
@blur="memberOne"
|
|
|
|
|
@change="memberOne"
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
slot="append"
|
|
|
|
|
icon="el-icon-search"
|
|
|
|
|
@click="openMember"
|
|
|
|
|
></el-button>
|
|
|
|
|
</el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="会员名字:" :label-width="labelWidth">
|
|
|
|
|
<div class="form-width-ms">
|
|
|
|
|
{{proForm.memberName}}
|
|
|
|
|
{{ proForm.memberName }}
|
|
|
|
|
</div>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="业务时间:" :label-width="labelWidth" v-show="isAddition==1">
|
|
|
|
|
<el-form-item
|
|
|
|
|
label="业务时间:"
|
|
|
|
|
:label-width="labelWidth"
|
|
|
|
|
v-show="isAddition == 1"
|
|
|
|
|
>
|
|
|
|
|
<div class="form-width-ms">
|
|
|
|
|
<span style="cursor: pointer;" @click="(recDateShow=true)" v-show="!recDateShow">{{proForm.additionDate }} <i class="el-icon-edit"></i> </span>
|
|
|
|
|
<el-date-picker size="medium" @blur='(recDateShow=false)' :picker-options="pickerOptions" v-show="recDateShow" ref="recDate" v-model="proForm.additionDate" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择日期">
|
|
|
|
|
<span
|
|
|
|
|
style="cursor: pointer;"
|
|
|
|
|
@click="recDateShow = true"
|
|
|
|
|
v-show="!recDateShow"
|
|
|
|
|
>{{ proForm.additionDate }} <i class="el-icon-edit"></i>
|
|
|
|
|
</span>
|
|
|
|
|
<el-date-picker
|
|
|
|
|
size="medium"
|
|
|
|
|
@blur="recDateShow = false"
|
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
|
v-show="recDateShow"
|
|
|
|
|
ref="recDate"
|
|
|
|
|
v-model="proForm.additionDate"
|
|
|
|
|
format="yyyy-MM-dd"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
placeholder="选择日期"
|
|
|
|
|
>
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</div>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<div class="raisetable bg-white margin-left-lg margin-bottom-xs">
|
|
|
|
|
<div class="raisetable-sum ">
|
|
|
|
|
<div>转出疗程 <el-button v-if="proForm.memberName" :disabled="!proForm.memberId" size="mini" type="primary" @click='openPro(1)'>添加
|
|
|
|
|
<div>
|
|
|
|
|
转出疗程
|
|
|
|
|
<el-button
|
|
|
|
|
v-if="proForm.memberName"
|
|
|
|
|
:disabled="!proForm.memberId"
|
|
|
|
|
size="mini"
|
|
|
|
|
type="primary"
|
|
|
|
|
@click="openPro(1)"
|
|
|
|
|
>添加
|
|
|
|
|
</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="width: 150px;">总金额 : {{outMoneys}}</div>
|
|
|
|
|
<div style="width: 150px;">总金额 : {{ outMoneys }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table :data="outList" empty-text='暂无数据 , 点击添加疗程' max-height="200" :header-cell-style="{background: 'linear-gradient(#6cb3ff, #1873d4)' ,color:'#eeeeee'}" style="margin-top: 5px;">
|
|
|
|
|
|
|
|
|
|
<el-table
|
|
|
|
|
:data="outList"
|
|
|
|
|
empty-text="暂无数据 , 点击添加疗程"
|
|
|
|
|
max-height="200"
|
|
|
|
|
:header-cell-style="{
|
|
|
|
|
background: 'linear-gradient(#6cb3ff, #1873d4)',
|
|
|
|
|
color: '#eeeeee'
|
|
|
|
|
}"
|
|
|
|
|
style="margin-top: 5px;"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column type="expand">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div class="flex justify-start align-center flex-wrap ">
|
|
|
|
|
@ -75,52 +129,232 @@
|
|
|
|
|
{{scope.row.rollOffCount}}
|
|
|
|
|
<i class="el-icon-edit text-cyan"></i>
|
|
|
|
|
</div>
|
|
|
|
|
<el-input v-else v-focus class="form-input-width-xs" type='number' v-model="scope.row.rollOffCount" @blur="endrollOffCount(scope.row,scope.$index)"></el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="转后次数" align="center" prop="courseAfterUsableCount" min-width="70"></el-table-column>
|
|
|
|
|
<el-table-column label="转前金额" align="center" prop="courseBeforeUsableMoney" min-width="70"></el-table-column>
|
|
|
|
|
<el-table-column label="转出金额" align="center" prop="rollOffMoney" min-width="90">
|
|
|
|
|
<template slot-scope='scope'>
|
|
|
|
|
<div class="form-input-width" v-if="outMoneyIndex!=scope.$index" @click="openEditOut(scope.row,scope.$index,outMoneyIndex=scope.$index)">
|
|
|
|
|
{{scope.row.rollOffMoney}}
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="项目编码"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
align="center"
|
|
|
|
|
prop="courseProjectNum"
|
|
|
|
|
min-width="80"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="账户名称"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
align="center"
|
|
|
|
|
prop="courseProjectName"
|
|
|
|
|
min-width="120"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="可用次数"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="courseConsumeCount"
|
|
|
|
|
min-width="70"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="疗程单价"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="price"
|
|
|
|
|
min-width="70"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="转前次数"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="courseBeforeUsableCount"
|
|
|
|
|
min-width="70"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="转出次数"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="rollOffCount"
|
|
|
|
|
min-width="90"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div
|
|
|
|
|
class="form-input-width"
|
|
|
|
|
v-if="!scope.row.rollOffCountShow"
|
|
|
|
|
@click="
|
|
|
|
|
openEditOut(
|
|
|
|
|
scope.row,
|
|
|
|
|
scope.$index,
|
|
|
|
|
(scope.row.rollOffCountShow = true)
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
{{ scope.row.rollOffCount }}
|
|
|
|
|
<i class="el-icon-edit text-cyan"></i>
|
|
|
|
|
</div>
|
|
|
|
|
<el-input
|
|
|
|
|
v-else
|
|
|
|
|
v-focus
|
|
|
|
|
class="form-input-width-xs"
|
|
|
|
|
type="number"
|
|
|
|
|
v-model="scope.row.rollOffCount"
|
|
|
|
|
@blur="endrollOffCount(scope.row, scope.$index)"
|
|
|
|
|
></el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="转后次数"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="courseAfterUsableCount"
|
|
|
|
|
min-width="70"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="转前金额"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="courseBeforeUsableMoney"
|
|
|
|
|
min-width="70"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="转出金额"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="rollOffMoney"
|
|
|
|
|
min-width="90"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div
|
|
|
|
|
class="form-input-width"
|
|
|
|
|
v-if="outMoneyIndex != scope.$index"
|
|
|
|
|
@click="
|
|
|
|
|
openEditOut(
|
|
|
|
|
scope.row,
|
|
|
|
|
scope.$index,
|
|
|
|
|
(outMoneyIndex = scope.$index)
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
{{ scope.row.rollOffMoney }}
|
|
|
|
|
<i class="el-icon-edit text-cyan"></i>
|
|
|
|
|
</div>
|
|
|
|
|
<el-input v-else v-focus class="form-input-width-xs" type='number' v-model="scope.row.rollOffMoney" @blur="endOutMoney(scope.row)"></el-input>
|
|
|
|
|
<el-input
|
|
|
|
|
v-else
|
|
|
|
|
v-focus
|
|
|
|
|
class="form-input-width-xs"
|
|
|
|
|
type="number"
|
|
|
|
|
v-model="scope.row.rollOffMoney"
|
|
|
|
|
@blur="endOutMoney(scope.row)"
|
|
|
|
|
></el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="转后金额" align="center" prop="courseAfterUsableMoney" min-width="70"></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="转后金额"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="courseAfterUsableMoney"
|
|
|
|
|
min-width="70"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column align="center" fixed="right" min-width="80">
|
|
|
|
|
<template slot-scope='scope'>
|
|
|
|
|
<div @click="delOldPro(scope.$index)" class="el-icon-delete"></div>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div
|
|
|
|
|
@click="delOldPro(scope.$index)"
|
|
|
|
|
class="el-icon-delete"
|
|
|
|
|
></div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="raisetable bg-white margin-left-lg">
|
|
|
|
|
<div class="raisetable-sum">
|
|
|
|
|
<div>转入充值 <el-button v-if="proForm.memberName" size="mini" type="primary" :disabled="inList.length==1" @click='openPro(0)'>添加</el-button>
|
|
|
|
|
<el-button size="mini" v-if="proForm.memberName" type="warning" :disabled="inList.length==0" @click='backout'>撤销</el-button>
|
|
|
|
|
<div>
|
|
|
|
|
转入充值
|
|
|
|
|
<el-button
|
|
|
|
|
v-if="proForm.memberName"
|
|
|
|
|
size="mini"
|
|
|
|
|
type="primary"
|
|
|
|
|
:disabled="inList.length == 1"
|
|
|
|
|
@click="openPro(0)"
|
|
|
|
|
>添加</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
v-if="proForm.memberName"
|
|
|
|
|
type="warning"
|
|
|
|
|
:disabled="inList.length == 0"
|
|
|
|
|
@click="backout"
|
|
|
|
|
>撤销</el-button
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="width: 150px;">总金额 : {{inMoneys}}</div>
|
|
|
|
|
<div style="width: 150px;">总金额 : {{ inMoneys }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table :data="inList" max-height="150" empty-text='暂无数据 , 点击添加充值' :header-cell-style="{background: 'linear-gradient(#6cb3ff, #1873d4)' ,color:'#eeeeee'}" style="margin-top: 5px;">
|
|
|
|
|
<el-table-column label="充值编码" show-overflow-tooltip align="center" prop="rechargeTypeNum" min-width="100"></el-table-column>
|
|
|
|
|
<el-table-column label="充值名称" show-overflow-tooltip align="center" prop="rechargeTypeName" min-width="110"></el-table-column>
|
|
|
|
|
<el-table-column label="充值金额" align="center" prop="rechargeMoney" min-width="70"></el-table-column>
|
|
|
|
|
<el-table-column label="折扣(%)" align="center" prop="discount" min-width="70"></el-table-column>
|
|
|
|
|
<el-table-column label="转前金额" align="center" prop="rechargeBeforeMoney" min-width="70"></el-table-column>
|
|
|
|
|
<el-table-column label="转入金额" align="center" prop="rechargeInMoney" min-width="90">
|
|
|
|
|
<template slot-scope='scope'>
|
|
|
|
|
<div class="form-input-width" v-if="!scope.row.rechargeInMoneyShow" @click="openEdit(scope.row,scope.$index,scope.row.rechargeInMoneyShow=true)">
|
|
|
|
|
{{scope.row.rechargeInMoney}}
|
|
|
|
|
<el-table
|
|
|
|
|
:data="inList"
|
|
|
|
|
max-height="150"
|
|
|
|
|
empty-text="暂无数据 , 点击添加充值"
|
|
|
|
|
:header-cell-style="{
|
|
|
|
|
background: 'linear-gradient(#6cb3ff, #1873d4)',
|
|
|
|
|
color: '#eeeeee'
|
|
|
|
|
}"
|
|
|
|
|
style="margin-top: 5px;"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="充值编码"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
align="center"
|
|
|
|
|
prop="rechargeTypeNum"
|
|
|
|
|
min-width="100"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="充值名称"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
align="center"
|
|
|
|
|
prop="rechargeTypeName"
|
|
|
|
|
min-width="110"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="充值金额"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="rechargeMoney"
|
|
|
|
|
min-width="70"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="折扣(%)"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="discount"
|
|
|
|
|
min-width="70"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="转前金额"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="rechargeBeforeMoney"
|
|
|
|
|
min-width="70"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="转入金额"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="rechargeInMoney"
|
|
|
|
|
min-width="90"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div
|
|
|
|
|
class="form-input-width"
|
|
|
|
|
v-if="!scope.row.rechargeInMoneyShow"
|
|
|
|
|
@click="
|
|
|
|
|
openEdit(
|
|
|
|
|
scope.row,
|
|
|
|
|
scope.$index,
|
|
|
|
|
(scope.row.rechargeInMoneyShow = true)
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
{{ scope.row.rechargeInMoney }}
|
|
|
|
|
<i class="el-icon-edit text-cyan"></i>
|
|
|
|
|
</div>
|
|
|
|
|
<el-input v-focus class="form-input-width-xs" type="number" v-else v-model="scope.row.rechargeInMoney" @blur="endEditPrice(scope.row,scope.$index)"></el-input>
|
|
|
|
|
<el-input
|
|
|
|
|
v-focus
|
|
|
|
|
class="form-input-width-xs"
|
|
|
|
|
type="number"
|
|
|
|
|
v-else
|
|
|
|
|
v-model="scope.row.rechargeInMoney"
|
|
|
|
|
@blur="endEditPrice(scope.row, scope.$index)"
|
|
|
|
|
></el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="转后金额" align="center" prop="rechargeAfterMoney" min-width="70"></el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="转后金额"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="rechargeAfterMoney"
|
|
|
|
|
min-width="70"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@ -130,11 +364,30 @@
|
|
|
|
|
<manager class="border padding-bottom-xs " ref="manager" @managerData="managerData"></manager> -->
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex justify-center padding-top ">
|
|
|
|
|
<el-button size="mini" type="info" @click='empty()' plain>清空</el-button>
|
|
|
|
|
<el-button size="mini" v-if="isAddition==0" type="primary" @click="isAddition = 1">补单</el-button>
|
|
|
|
|
<el-button size="mini" v-else type="success" @click="isAddition = 0">加价</el-button>
|
|
|
|
|
<el-button size="mini" type="primary" @click='raiseProList()' plain>列表</el-button>
|
|
|
|
|
<el-button size="mini" type="primary" @click='submit(true,loading=true)' :loading="loading" :disabled="outList.length==0&&inList.length==0">提交</el-button>
|
|
|
|
|
<el-button size="mini" type="info" @click="empty()" plain
|
|
|
|
|
>清空</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
v-if="isAddition == 0"
|
|
|
|
|
type="primary"
|
|
|
|
|
@click="isAddition = 1"
|
|
|
|
|
>补单</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button size="mini" v-else type="success" @click="isAddition = 0"
|
|
|
|
|
>加价</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button size="mini" type="primary" @click="raiseProList()" plain
|
|
|
|
|
>列表</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="primary"
|
|
|
|
|
@click="submit(true, (loading = true))"
|
|
|
|
|
:loading="loading"
|
|
|
|
|
:disabled="outList.length == 0 && inList.length == 0"
|
|
|
|
|
>提交</el-button
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</el-form>
|
|
|
|
|
<member ref="member" @memberData="memberData"></member>
|
|
|
|
|
@ -142,6 +395,7 @@
|
|
|
|
|
<project ref="project" @projectData="projectData"></project>
|
|
|
|
|
<staffratio ref="staffratio" @staffratioData="staffratioData"></staffratio>
|
|
|
|
|
<recType ref="recType" @recTypeData="recTypeData"></recType>
|
|
|
|
|
<staffratio ref="staffratio" @staffratioData="staffratioData"></staffratio>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
@ -150,7 +404,7 @@ import { propage } from "@/api/storeManage.js";
|
|
|
|
|
import {
|
|
|
|
|
storeMemberOne,
|
|
|
|
|
addRechargeTurnCourse,
|
|
|
|
|
recAccountOne,
|
|
|
|
|
recAccountOne
|
|
|
|
|
} from "@/api/eashier.js";
|
|
|
|
|
import staffratio from "./staffratio";
|
|
|
|
|
import member from "@/components/member/index";
|
|
|
|
|
@ -176,7 +430,7 @@ export default {
|
|
|
|
|
pickerOptions: {
|
|
|
|
|
disabledDate(time) {
|
|
|
|
|
return time.getTime() > Date.now();
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
projectDialogVisible: false,
|
|
|
|
|
recDateShow: false,
|
|
|
|
|
@ -186,9 +440,9 @@ export default {
|
|
|
|
|
additionDate: null,
|
|
|
|
|
manageStaffName: null,
|
|
|
|
|
mobilePhone: null,
|
|
|
|
|
Branch:null,
|
|
|
|
|
Branch: null,
|
|
|
|
|
staffLists: [{ ratio: 100 }],
|
|
|
|
|
payLists: [],
|
|
|
|
|
payLists: []
|
|
|
|
|
},
|
|
|
|
|
outList: [],
|
|
|
|
|
inList: [],
|
|
|
|
|
@ -197,7 +451,7 @@ export default {
|
|
|
|
|
total: 0,
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
list: [],
|
|
|
|
|
list: []
|
|
|
|
|
},
|
|
|
|
|
proRadio: null,
|
|
|
|
|
proRadioForm: null,
|
|
|
|
|
@ -237,13 +491,16 @@ export default {
|
|
|
|
|
setStaffRatio() {
|
|
|
|
|
var that = this;
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
if(this.StoreIds){
|
|
|
|
|
that.$refs.staffsles.show(that.proForm.staffLists,that.StoreIds);
|
|
|
|
|
}else{
|
|
|
|
|
if (this.StoreIds) {
|
|
|
|
|
that.$refs.staffsles.show(that.proForm.staffLists, that.StoreIds);
|
|
|
|
|
} else {
|
|
|
|
|
that.$refs.staffsles.show(that.proForm.staffLists);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
console.log("🚀 ~ file: index.vue ~ line 189 ~ setTimeout ~ that.proForm.staffLists", that.proForm.staffLists)
|
|
|
|
|
|
|
|
|
|
console.log(
|
|
|
|
|
"🚀 ~ file: index.vue ~ line 189 ~ setTimeout ~ that.proForm.staffLists",
|
|
|
|
|
that.proForm.staffLists
|
|
|
|
|
);
|
|
|
|
|
}, 800);
|
|
|
|
|
},
|
|
|
|
|
staffslesData(v) {
|
|
|
|
|
@ -252,21 +509,19 @@ export default {
|
|
|
|
|
openMember() {
|
|
|
|
|
this.$refs.member.show();
|
|
|
|
|
},
|
|
|
|
|
openBranch(){
|
|
|
|
|
|
|
|
|
|
openBranch() {
|
|
|
|
|
this.$refs.Branch.show();
|
|
|
|
|
},
|
|
|
|
|
memberData(v) {
|
|
|
|
|
this.proForm.mobilePhone = v.mobilePhone;
|
|
|
|
|
|
|
|
|
|
this.memberOne();
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
BranchData(v) {
|
|
|
|
|
this.StoreIds=v.id
|
|
|
|
|
this.label=v.label
|
|
|
|
|
this.setStaffRatio();
|
|
|
|
|
console.log("🚀 ~ file: index.vue ~ line 217 ~ BranchData ~ " , 'aaaa')
|
|
|
|
|
this.StoreIds = v.id;
|
|
|
|
|
this.label = v.label;
|
|
|
|
|
this.setStaffRatio();
|
|
|
|
|
console.log("🚀 ~ file: index.vue ~ line 217 ~ BranchData ~ ", "aaaa");
|
|
|
|
|
},
|
|
|
|
|
submit() {
|
|
|
|
|
this.proForm.rechargeInMoney = this.inMoneys;
|
|
|
|
|
@ -285,7 +540,7 @@ export default {
|
|
|
|
|
confirmButtonClass: "confirmbtnFalses",
|
|
|
|
|
type: "warning",
|
|
|
|
|
center: true,
|
|
|
|
|
callback: (action) => {},
|
|
|
|
|
callback: action => {}
|
|
|
|
|
});
|
|
|
|
|
this.loading = false;
|
|
|
|
|
}
|
|
|
|
|
@ -295,11 +550,11 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
addRechargeTurnCourse() {
|
|
|
|
|
var that = this;
|
|
|
|
|
addRechargeTurnCourse(this.proForm).then((res) => {
|
|
|
|
|
addRechargeTurnCourse(this.proForm).then(res => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
if (res.code == "000000") {
|
|
|
|
|
this.$message.success({
|
|
|
|
|
message: res.message,
|
|
|
|
|
message: res.message
|
|
|
|
|
});
|
|
|
|
|
this.empty();
|
|
|
|
|
} else {
|
|
|
|
|
@ -308,7 +563,7 @@ export default {
|
|
|
|
|
confirmButtonClass: "confirmbtnFalses",
|
|
|
|
|
type: "warning",
|
|
|
|
|
center: true,
|
|
|
|
|
callback: (action) => {},
|
|
|
|
|
callback: action => {}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
@ -340,7 +595,13 @@ export default {
|
|
|
|
|
form.cardSalesAchievement=rows[0].cardSalesAchievement
|
|
|
|
|
form.cardSalesCommission=rows[0].cardSalesCommission
|
|
|
|
|
let flag = true;
|
|
|
|
|
this.outList.forEach((item) => {
|
|
|
|
|
form.staffLists=rows
|
|
|
|
|
|
|
|
|
|
form.cardAchievementAmount=rows[0].cardAchievementAmount
|
|
|
|
|
form.cardCommissionAmount=rows[0].cardCommissionAmount
|
|
|
|
|
form.cardSalesAchievement=rows[0].cardSalesAchievement
|
|
|
|
|
form.cardSalesCommission=rows[0].cardSalesCommission
|
|
|
|
|
this.outList.forEach(item => {
|
|
|
|
|
if (form.id == item.form.id) {
|
|
|
|
|
flag = false;
|
|
|
|
|
}
|
|
|
|
|
@ -358,13 +619,13 @@ export default {
|
|
|
|
|
let form = {
|
|
|
|
|
storeId: this.proForm.storeId,
|
|
|
|
|
memberId: this.proForm.memberId,
|
|
|
|
|
rechargeTypeId: v.id,
|
|
|
|
|
rechargeTypeId: v.id
|
|
|
|
|
};
|
|
|
|
|
v.rechargeTypeId = v.id;
|
|
|
|
|
recAccountOne(form).then((res) => {
|
|
|
|
|
recAccountOne(form).then(res => {
|
|
|
|
|
if (res.data != undefined && res.data.state == 0) {
|
|
|
|
|
this.$message.error({
|
|
|
|
|
message: "账户已锁定, 不允许使用 ! ",
|
|
|
|
|
message: "账户已锁定, 不允许使用 ! "
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
if (res.code == "000000" || res.code == "200004") {
|
|
|
|
|
@ -389,7 +650,7 @@ export default {
|
|
|
|
|
confirmButtonClass: "confirmbtnFalses",
|
|
|
|
|
type: "warning",
|
|
|
|
|
center: true,
|
|
|
|
|
callback: (action) => {},
|
|
|
|
|
callback: action => {}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -404,16 +665,19 @@ export default {
|
|
|
|
|
// this.empty();
|
|
|
|
|
let row = { ...this.proForm };
|
|
|
|
|
let form = {
|
|
|
|
|
mobilePhone: mobilePhone,
|
|
|
|
|
storeId: sessionStorage.getItem("parentId"),
|
|
|
|
|
};
|
|
|
|
|
mobilePhone: mobilePhone,
|
|
|
|
|
storeId: sessionStorage.getItem("parentId")
|
|
|
|
|
};
|
|
|
|
|
if (mobilePhone) {
|
|
|
|
|
console.log("🚀 ~ file: index.vue ~ line 347 ~ memberOne ~ this.StoreIds", this.StoreIds)
|
|
|
|
|
console.log(
|
|
|
|
|
"🚀 ~ file: index.vue ~ line 347 ~ memberOne ~ this.StoreIds",
|
|
|
|
|
this.StoreIds
|
|
|
|
|
);
|
|
|
|
|
let form = {
|
|
|
|
|
mobilePhone: mobilePhone,
|
|
|
|
|
storeId: sessionStorage.getItem("parentId"),
|
|
|
|
|
storeId: sessionStorage.getItem("parentId")
|
|
|
|
|
};
|
|
|
|
|
storeMemberOne(form).then((res) => {
|
|
|
|
|
storeMemberOne(form).then(res => {
|
|
|
|
|
this.proForm.mobilePhone = mobilePhone;
|
|
|
|
|
if (res.code == "000000") {
|
|
|
|
|
row.memberId = res.data.id;
|
|
|
|
|
@ -431,7 +695,7 @@ export default {
|
|
|
|
|
confirmButtonClass: "confirmbtnFalses",
|
|
|
|
|
type: "warning",
|
|
|
|
|
center: true,
|
|
|
|
|
callback: (action) => {},
|
|
|
|
|
callback: action => {}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
@ -448,13 +712,12 @@ export default {
|
|
|
|
|
this.$refs.recType.show();
|
|
|
|
|
}
|
|
|
|
|
if (num == 1) {
|
|
|
|
|
if(this.StoreIds){
|
|
|
|
|
this.proForm.storeId=this.StoreIds
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
this.proForm.storeId=""
|
|
|
|
|
if (this.StoreIds) {
|
|
|
|
|
this.proForm.storeId = this.StoreIds;
|
|
|
|
|
} else {
|
|
|
|
|
this.proForm.storeId = "";
|
|
|
|
|
}
|
|
|
|
|
this.$refs.project.show(this.proForm)
|
|
|
|
|
this.$refs.project.show(this.proForm);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
delOldPro(index) {
|
|
|
|
|
@ -467,13 +730,13 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
openEdit(row, index) {
|
|
|
|
|
let form = {
|
|
|
|
|
...row,
|
|
|
|
|
...row
|
|
|
|
|
};
|
|
|
|
|
this.inList.splice(index, 1, form);
|
|
|
|
|
},
|
|
|
|
|
openEditOut(row, index) {
|
|
|
|
|
let form = {
|
|
|
|
|
...row,
|
|
|
|
|
...row
|
|
|
|
|
};
|
|
|
|
|
this.outList.splice(index, 1, form);
|
|
|
|
|
},
|
|
|
|
|
@ -488,7 +751,7 @@ export default {
|
|
|
|
|
confirmButtonClass: "confirmbtnFalses",
|
|
|
|
|
type: "warning",
|
|
|
|
|
center: true,
|
|
|
|
|
callback: (action) => {},
|
|
|
|
|
callback: action => {}
|
|
|
|
|
});
|
|
|
|
|
row.rollOffCount = row.courseConsumeCount;
|
|
|
|
|
} else {
|
|
|
|
|
@ -511,7 +774,7 @@ export default {
|
|
|
|
|
confirmButtonClass: "confirmbtnFalses",
|
|
|
|
|
type: "warning",
|
|
|
|
|
center: true,
|
|
|
|
|
callback: (action) => {},
|
|
|
|
|
callback: action => {}
|
|
|
|
|
});
|
|
|
|
|
row.rollOffMoney = money;
|
|
|
|
|
} else {
|
|
|
|
|
@ -523,13 +786,13 @@ export default {
|
|
|
|
|
sumMoney() {
|
|
|
|
|
let inMoneys = 0;
|
|
|
|
|
let outMoneys = 0;
|
|
|
|
|
this.inList.forEach((item) => {
|
|
|
|
|
this.inList.forEach(item => {
|
|
|
|
|
item.rechargeInMoney = this.outMoneys;
|
|
|
|
|
inMoneys += item.rechargeInMoney * 1;
|
|
|
|
|
item.rechargeAfterMoney =
|
|
|
|
|
(item.rechargeBeforeMoney + item.rechargeInMoney).toFixed(2) * 1;
|
|
|
|
|
});
|
|
|
|
|
this.outList.forEach((item) => {
|
|
|
|
|
this.outList.forEach(item => {
|
|
|
|
|
item.courseAfterUsableCount =
|
|
|
|
|
(item.courseBeforeUsableCount - item.rollOffCount).toFixed(0) * 1;
|
|
|
|
|
item.courseAfterUsableMoney =
|
|
|
|
|
@ -562,9 +825,9 @@ export default {
|
|
|
|
|
state: 1,
|
|
|
|
|
directConsumption: 0,
|
|
|
|
|
storeIds: JSON.parse(sessionStorage.getItem("storeIdLists")),
|
|
|
|
|
isCooperation: 0,
|
|
|
|
|
isCooperation: 0
|
|
|
|
|
};
|
|
|
|
|
propage(page).then((res) => {
|
|
|
|
|
propage(page).then(res => {
|
|
|
|
|
if (res.code == "000000") {
|
|
|
|
|
this.proPageInfo = res.pageInfo;
|
|
|
|
|
} else {
|
|
|
|
|
@ -573,7 +836,7 @@ export default {
|
|
|
|
|
confirmButtonClass: "confirmbtnFalses",
|
|
|
|
|
type: "warning",
|
|
|
|
|
center: true,
|
|
|
|
|
callback: (action) => {},
|
|
|
|
|
callback: action => {}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
@ -585,9 +848,9 @@ export default {
|
|
|
|
|
pageSize: this.proPageInfo.pageSize,
|
|
|
|
|
state: 1,
|
|
|
|
|
directConsumption: 0,
|
|
|
|
|
storeIds: JSON.parse(sessionStorage.getItem("storeIdLists")),
|
|
|
|
|
storeIds: JSON.parse(sessionStorage.getItem("storeIdLists"))
|
|
|
|
|
};
|
|
|
|
|
propage(page).then((res) => {
|
|
|
|
|
propage(page).then(res => {
|
|
|
|
|
if (res.code == "000000") {
|
|
|
|
|
this.proPageInfo = res.pageInfo;
|
|
|
|
|
} else {
|
|
|
|
|
@ -596,7 +859,7 @@ export default {
|
|
|
|
|
confirmButtonClass: "confirmbtnFalses",
|
|
|
|
|
type: "warning",
|
|
|
|
|
center: true,
|
|
|
|
|
callback: (action) => {},
|
|
|
|
|
callback: action => {}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
@ -607,11 +870,11 @@ export default {
|
|
|
|
|
sessionStorage.getItem("sessionStorageData")
|
|
|
|
|
);
|
|
|
|
|
this.proForm.additionDate = this.formatTime(new Date(), "YYYY-MM-DD");
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.setPage();
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|