|
|
|
@ -139,9 +139,9 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="pagination"> |
|
|
|
<el-pagination background :current-page="pageInfo.pageNum" :page-size="pageInfo.pageSize" :page-sizes="[5, 10, 20, 50, 100]" |
|
|
|
layout="total, sizes, prev, pager, next, jumper" :total="total" |
|
|
|
@size-change="handlePagination('size', $event)" |
|
|
|
<el-pagination background :current-page="pageInfo.pageNum" :page-size="pageInfo.pageSize" |
|
|
|
:page-sizes="[5, 10, 20, 50, 100]" layout="total, sizes, prev, pager, next, jumper" |
|
|
|
:total="total" @size-change="handlePagination('size', $event)" |
|
|
|
@current-change="handlePagination('page', $event)"></el-pagination> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
@ -189,7 +189,7 @@ |
|
|
|
<el-form-item label="客户姓名" required prop="name"> |
|
|
|
<el-input disabled v-model="addFormData.name" placeholder="请输入客户姓名" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="所属地区" prop="market"> |
|
|
|
<el-form-item label="所属地区" prop="market"> |
|
|
|
<el-input disabled v-model="addFormData.marketName" placeholder="请输入所属地区" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="活动名称" required prop="activity"> |
|
|
|
@ -244,7 +244,7 @@ |
|
|
|
<el-date-picker type="datetime" placement="right" v-model="addFormData.payTime" |
|
|
|
placeholder="请选择付款时间" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="转账凭证" prop="voucher"> |
|
|
|
<el-form-item label="转账凭证" prop="voucher"> |
|
|
|
<div class="pic"> |
|
|
|
<el-upload ref="uploadRef" class="uploader" :show-file-list="false" list-type="picture-card" |
|
|
|
:auto-upload="false" :before-upload="beforeUpload" :on-error="handelImgErr" |
|
|
|
@ -257,7 +257,7 @@ |
|
|
|
</el-upload> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="备注" prop="remark"> |
|
|
|
<el-form-item label="备注" prop="remark"> |
|
|
|
<el-input v-model="addFormData.remark" type="textarea" :rows="4" placeholder="请输入备注" maxlength="100" |
|
|
|
show-word-limit /> |
|
|
|
</el-form-item> |
|
|
|
@ -302,8 +302,8 @@ |
|
|
|
<el-text style="width:4vw;">产品数量</el-text> |
|
|
|
<el-input style="padding-right: 10px; width:6.5vw;" v-model="refundFormData.goodNum" |
|
|
|
placeholder="请输入产品数量" disabled /> |
|
|
|
<CurrencySelect disabled v-model="refundFormData.numUnit" :items="numUnitList" style="width: 3.5vw;" |
|
|
|
placeholder="单位" @change="handleCurrencyChange" /> |
|
|
|
<CurrencySelect disabled v-model="refundFormData.numUnit" :items="numUnitList" |
|
|
|
style="width: 3.5vw;" placeholder="单位" @change="handleCurrencyChange" /> |
|
|
|
</div> |
|
|
|
<div v-show="isRefundGold" style="margin-bottom: 15px; "> |
|
|
|
<div style=" display: flex; "> |
|
|
|
@ -364,11 +364,13 @@ |
|
|
|
<el-radio value="1">部分退款</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</div> |
|
|
|
<div class="add-item" v-show="refundFormData.goodsName === '金币充值' && refundFormData.refundModel === '1'"> |
|
|
|
<div class="add-item" |
|
|
|
v-show="refundFormData.goodsName === '金币充值' && refundFormData.refundModel === '1'"> |
|
|
|
<el-text style="width:4vw;">永久金币</el-text> |
|
|
|
<el-input v-model="refundFormData.partRefundGold" style="width:5vw;" /> 个 |
|
|
|
</div> |
|
|
|
<div class="add-item" v-show="refundFormData.goodsName === '金币充值' && refundFormData.refundModel === '1'"> |
|
|
|
<div class="add-item" |
|
|
|
v-show="refundFormData.goodsName === '金币充值' && refundFormData.refundModel === '1'"> |
|
|
|
<el-text style="width:4vw;">免费金币</el-text> |
|
|
|
<el-input v-model="refundFormData.partRefundFree" style="width:5vw;" /> 个 |
|
|
|
</div> |
|
|
|
@ -434,8 +436,8 @@ const search = () => { |
|
|
|
const reset = () => { |
|
|
|
searchData.value = {} |
|
|
|
getTime.value = [] |
|
|
|
// 重置页码 |
|
|
|
pageInfo.value.pageNum = 1 |
|
|
|
// 重置页码 |
|
|
|
pageInfo.value.pageNum = 1 |
|
|
|
getlist() |
|
|
|
} |
|
|
|
|
|
|
|
@ -532,7 +534,7 @@ const ifGold = () => { |
|
|
|
addFormData.value.numUnit = '' |
|
|
|
} else if (addFormData.value.goodsName == '静态信息费') { |
|
|
|
addFormData.value.numUnit = '年' |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
addFormData.value.numUnit = '个' |
|
|
|
} |
|
|
|
} |
|
|
|
@ -819,6 +821,10 @@ const closeRefundForm = () => { |
|
|
|
// 提交退款 |
|
|
|
const submitRefund = async () => { |
|
|
|
try { |
|
|
|
if (refundFormData.value.refundModel == 0) { |
|
|
|
refundFormData.value.partRefundGold = refundFormData.value.permanentGold, |
|
|
|
refundFormData.value.partRefundFree = refundFormData.value.freeGold |
|
|
|
} |
|
|
|
const result = await request({ |
|
|
|
url: '/Money/add', |
|
|
|
data: { |
|
|
|
@ -826,7 +832,7 @@ const submitRefund = async () => { |
|
|
|
name: refundFormData.value.name, |
|
|
|
market: refundFormData.value.marketName, |
|
|
|
submitterId: adminData.value.id, |
|
|
|
submitterMarket:adminData.value.markets, |
|
|
|
submitterMarket: adminData.value.markets, |
|
|
|
remark: refundFormData.value.remark, |
|
|
|
refundReason: refundFormData.value.refundReason, |
|
|
|
refundModel: refundFormData.value.refundModel, |
|
|
|
|