|
|
@ -20,7 +20,6 @@ |
|
|
<el-option v-for="item in marketList" :key="item" :label="item" :value="item" /> |
|
|
<el-option v-for="item in marketList" :key="item" :label="item" :value="item" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</div> |
|
|
</div> |
|
|
<!-- 仅保留客服专属的“订单状态”筛选 --> |
|
|
|
|
|
<div class="rowItem"> |
|
|
<div class="rowItem"> |
|
|
<el-text style="width: 4vw;">订单状态</el-text> |
|
|
<el-text style="width: 4vw;">订单状态</el-text> |
|
|
<el-select v-model="searchData.status" placeholder="请选择订单状态" style="width: 10vw;" clearable> |
|
|
<el-select v-model="searchData.status" placeholder="请选择订单状态" style="width: 10vw;" clearable> |
|
|
@ -55,7 +54,6 @@ |
|
|
@change="handleDatePickerChange" :default-time="defaultTime" |
|
|
@change="handleDatePickerChange" :default-time="defaultTime" |
|
|
:disabled-date="disabledDate" /> |
|
|
:disabled-date="disabledDate" /> |
|
|
</div> |
|
|
</div> |
|
|
<!-- 仅保留客服的查询、重置按钮(删除超级管理员相关按钮) --> |
|
|
|
|
|
<div class="buttons"> |
|
|
<div class="buttons"> |
|
|
<el-button type="primary" @click="search">查询</el-button> |
|
|
<el-button type="primary" @click="search">查询</el-button> |
|
|
<el-button type="success" @click="reset">重置</el-button> |
|
|
<el-button type="success" @click="reset">重置</el-button> |
|
|
@ -124,7 +122,6 @@ |
|
|
<span v-else></span> |
|
|
<span v-else></span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<!-- 仅保留客服专属操作(删除财务审核、编辑手续费操作) --> |
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="120px"> |
|
|
<el-table-column fixed="right" label="操作" width="120px"> |
|
|
<template #default=scope> |
|
|
<template #default=scope> |
|
|
<el-link v-if="scope.row.status == 4" style="color: #FA5A1E;" |
|
|
<el-link v-if="scope.row.status == 4" style="color: #FA5A1E;" |
|
|
@ -141,7 +138,6 @@ |
|
|
</el-table> |
|
|
</el-table> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<!-- 分页组件:保留公共逻辑 --> |
|
|
|
|
|
<div class="pagination"> |
|
|
<div class="pagination"> |
|
|
<el-pagination background :page-size="pageInfo.pageSize" :page-sizes="[5, 10, 20, 50, 100]" |
|
|
<el-pagination background :page-size="pageInfo.pageSize" :page-sizes="[5, 10, 20, 50, 100]" |
|
|
layout="total, sizes, prev, pager, next, jumper" :total="total" |
|
|
layout="total, sizes, prev, pager, next, jumper" :total="total" |
|
|
@ -151,7 +147,6 @@ |
|
|
</el-card> |
|
|
</el-card> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<!-- 仅保留客服专属弹窗:撤回确认、退款确认、新增/编辑收款、退款弹窗 --> |
|
|
|
|
|
<!-- 撤回确认弹窗 --> |
|
|
<!-- 撤回确认弹窗 --> |
|
|
<div class="recallDialog" v-show="recallDialog"> |
|
|
<div class="recallDialog" v-show="recallDialog"> |
|
|
<div class="close"> |
|
|
<div class="close"> |
|
|
@ -194,19 +189,24 @@ |
|
|
<el-form-item label="客户姓名" required prop="name"> |
|
|
<el-form-item label="客户姓名" required prop="name"> |
|
|
<el-input disabled v-model="addFormData.name" placeholder="请输入客户姓名" /> |
|
|
<el-input disabled v-model="addFormData.name" placeholder="请输入客户姓名" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="所属地区" required prop="market"> |
|
|
|
|
|
|
|
|
<el-form-item label="所属地区" prop="market"> |
|
|
<el-input disabled v-model="addFormData.marketName" placeholder="请输入所属地区" /> |
|
|
<el-input disabled v-model="addFormData.marketName" placeholder="请输入所属地区" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="活动名称" required prop="activity"> |
|
|
<el-form-item label="活动名称" required prop="activity"> |
|
|
<el-input v-model="addFormData.activity" placeholder="请输入活动名称" /> |
|
|
|
|
|
|
|
|
<el-select v-model="addFormData.activity" placeholder="请选择活动方式" clearable> |
|
|
|
|
|
<el-option v-for="item in activityList" :key="item.id" :label="item.activityName" |
|
|
|
|
|
:value="item.id" /> |
|
|
|
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="产品名称" required @change="ifGold" prop="goodsName"> |
|
|
<el-form-item label="产品名称" required @change="ifGold" prop="goodsName"> |
|
|
<ProductSelect ref="productSelectRef" v-model="addFormData.goodsName"></ProductSelect> |
|
|
<ProductSelect ref="productSelectRef" v-model="addFormData.goodsName"></ProductSelect> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item v-show="!isGold" label="产品数量" required prop="goodNum"> |
|
|
<el-form-item v-show="!isGold" label="产品数量" required prop="goodNum"> |
|
|
<div style="padding-right: 50px; display: flex;"> |
|
|
|
|
|
<el-input style="padding-right: 10px;" v-model="addFormData.goodNum" placeholder="请输入产品数量" /> |
|
|
|
|
|
<span style="color: #999999;">{{ productUnit }}</span> |
|
|
|
|
|
|
|
|
<div style="display: flex;"> |
|
|
|
|
|
<el-input style="padding-right: 30px; flex: 3;" v-model="addFormData.goodNum" |
|
|
|
|
|
placeholder="请输入产品数量" /> |
|
|
|
|
|
<CurrencySelect v-model="addFormData.numUnit" :items="numUnitList" style="flex: 1.5;" |
|
|
|
|
|
placeholder="单位" @change="handleCurrencyChange" /> |
|
|
</div> |
|
|
</div> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<div v-show="isGold" style="margin-bottom: 15px; display: flex;"> |
|
|
<div v-show="isGold" style="margin-bottom: 15px; display: flex;"> |
|
|
@ -235,7 +235,7 @@ |
|
|
@change="ifGroup"> |
|
|
@change="ifGroup"> |
|
|
</CurrencySelect> |
|
|
</CurrencySelect> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="到账地区" required prop="receivedMarket"> |
|
|
|
|
|
|
|
|
<el-form-item label="到账地区" prop="receivedMarket"> |
|
|
<CurrencySelect v-model="addFormData.receivedMarket" :items="MoneyAddressOptions" |
|
|
<CurrencySelect v-model="addFormData.receivedMarket" :items="MoneyAddressOptions" |
|
|
:disabled="isGroup" placeholder="请选择到账地区"> |
|
|
:disabled="isGroup" placeholder="请选择到账地区"> |
|
|
</CurrencySelect> |
|
|
</CurrencySelect> |
|
|
@ -244,7 +244,7 @@ |
|
|
<el-date-picker type="datetime" placement="right" v-model="addFormData.payTime" |
|
|
<el-date-picker type="datetime" placement="right" v-model="addFormData.payTime" |
|
|
placeholder="请选择付款时间" /> |
|
|
placeholder="请选择付款时间" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="转账凭证" required prop="voucher"> |
|
|
|
|
|
|
|
|
<el-form-item label="转账凭证" prop="voucher"> |
|
|
<div class="pic"> |
|
|
<div class="pic"> |
|
|
<el-upload ref="uploadRef" class="uploader" :show-file-list="false" list-type="picture-card" |
|
|
<el-upload ref="uploadRef" class="uploader" :show-file-list="false" list-type="picture-card" |
|
|
:auto-upload="false" :before-upload="beforeUpload" :on-error="handelImgErr" |
|
|
:auto-upload="false" :before-upload="beforeUpload" :on-error="handelImgErr" |
|
|
@ -257,7 +257,7 @@ |
|
|
</el-upload> |
|
|
</el-upload> |
|
|
</div> |
|
|
</div> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="备注" required prop="remark"> |
|
|
|
|
|
|
|
|
<el-form-item label="备注" prop="remark"> |
|
|
<el-input v-model="addFormData.remark" type="textarea" :rows="4" placeholder="请输入备注" maxlength="100" |
|
|
<el-input v-model="addFormData.remark" type="textarea" :rows="4" placeholder="请输入备注" maxlength="100" |
|
|
show-word-limit /> |
|
|
show-word-limit /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
@ -394,7 +394,7 @@ import { hasMenuPermission } from '@/utils/menuTreePermission.js' |
|
|
import _ from 'lodash' |
|
|
import _ from 'lodash' |
|
|
// 导入客服相关规则和静态数据 |
|
|
// 导入客服相关规则和静态数据 |
|
|
import { addFormRule } from './utils/recriveFormRules.js' |
|
|
import { addFormRule } from './utils/recriveFormRules.js' |
|
|
import { productList, MarketNameForId, CurrencyForId, marketList, statusList } from './utils/staticData.js' |
|
|
|
|
|
|
|
|
import { productList, MarketNameForId, CurrencyForId, marketList, statusList, numUnitList } from './utils/staticData.js' |
|
|
|
|
|
|
|
|
// ===================== 基础状态管理(仅保留客服相关) ===================== |
|
|
// ===================== 基础状态管理(仅保留客服相关) ===================== |
|
|
const adminStore = useAdminStore(); |
|
|
const adminStore = useAdminStore(); |
|
|
@ -506,7 +506,6 @@ const addFormData = ref({ name: '', market: '', permanentGold: 0, freeGold: 0, g |
|
|
const addFormRef = ref(null) // 表单引用 |
|
|
const addFormRef = ref(null) // 表单引用 |
|
|
const addOrEdit = ref(0) // 1=新增,2=编辑 |
|
|
const addOrEdit = ref(0) // 1=新增,2=编辑 |
|
|
const isGold = ref(false) // 是否为金币充值产品 |
|
|
const isGold = ref(false) // 是否为金币充值产品 |
|
|
const productUnit = ref('个') // 产品单位 |
|
|
|
|
|
const productSelectRef = ref(null) // 产品选择器引用 |
|
|
const productSelectRef = ref(null) // 产品选择器引用 |
|
|
const uploadRef = ref(null) // 上传组件引用 |
|
|
const uploadRef = ref(null) // 上传组件引用 |
|
|
|
|
|
|
|
|
@ -517,9 +516,14 @@ const ifGold = () => { |
|
|
addFormData.value.goodNum = 0 |
|
|
addFormData.value.goodNum = 0 |
|
|
} else { |
|
|
} else { |
|
|
isGold.value = false |
|
|
isGold.value = false |
|
|
// 特殊产品单位为“年” |
|
|
|
|
|
const selectItems = ["AI机构追踪", "AI机构出击", "AI机构资金", "AI机活跃度", "超级机构透视", "超级机构伏击", "超级机构猎杀", "超级机构脉搏", "超级机构罗盘", "静态信息费", "博股会员"] |
|
|
|
|
|
productUnit.value = selectItems.includes(addFormData.value.goodsName) ? '年' : '个' |
|
|
|
|
|
|
|
|
const selectItems = ["AI机构追踪", "AI机构出击", "AI机构资金", "AI机活跃度", "超级机构透视", "超级机构伏击", "超级机构猎杀", "超级机构脉搏", "超级机构罗盘", 'HC信息费'] |
|
|
|
|
|
if (selectItems.includes(addFormData.value.goodsName)) { |
|
|
|
|
|
addFormData.value.numUnit = '' |
|
|
|
|
|
} else if (addFormData.value.goodsName == '静态信息费') { |
|
|
|
|
|
addFormData.value.numUnit = '年' |
|
|
|
|
|
}else{ |
|
|
|
|
|
addFormData.value.numUnit = '个' |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -742,8 +746,6 @@ const ifRefundGold = () => { |
|
|
refundFormData.value.goodNum = 0 |
|
|
refundFormData.value.goodNum = 0 |
|
|
} else { |
|
|
} else { |
|
|
isRefundGold.value = false |
|
|
isRefundGold.value = false |
|
|
const selectItems = ["AI机构追踪", "AI机构出击", "AI机构资金", "AI机活跃度", "超级机构透视", "超级机构伏击", "超级机构猎杀", "超级机构脉搏", "超级机构罗盘", "静态信息费", "博股会员"] |
|
|
|
|
|
productUnit.value = selectItems.includes(refundFormData.value.goodsName) ? '年' : '个' |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|