|
|
@ -178,7 +178,7 @@ |
|
|
v-if="!kefu && activeTab == 'pass' || activeTab == 'reject' || activeTab == 'done'" |
|
|
v-if="!kefu && activeTab == 'pass' || activeTab == 'reject' || activeTab == 'done'" |
|
|
width="150px" show-overflow-tooltip></el-table-column> |
|
|
width="150px" show-overflow-tooltip></el-table-column> |
|
|
<el-table-column prop="receivedTime" label="到账时间" |
|
|
<el-table-column prop="receivedTime" label="到账时间" |
|
|
v-if="caiwu && activeTab == 'pass' || activeTab == 'done'" width="180px"> |
|
|
|
|
|
|
|
|
v-if="!kefu && activeTab == 'pass' || activeTab == 'done'" width="180px"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="remark" label="备注" v-if="activeTab != 'reject'" width="150px" |
|
|
<el-table-column prop="remark" label="备注" v-if="activeTab != 'reject'" width="150px" |
|
|
show-overflow-tooltip></el-table-column> |
|
|
show-overflow-tooltip></el-table-column> |
|
|
@ -282,27 +282,28 @@ |
|
|
</div> |
|
|
</div> |
|
|
<!-- 客服新增弹窗 --> |
|
|
<!-- 客服新增弹窗 --> |
|
|
<el-dialog class="adddialog" v-model="addFormisible" width="20vw" :before-close="closeAddForm"> |
|
|
<el-dialog class="adddialog" v-model="addFormisible" width="20vw" :before-close="closeAddForm"> |
|
|
<el-form class="addForm" label-width="4vw" label-position="left"> |
|
|
|
|
|
<el-form-item label="精网号" required> |
|
|
|
|
|
|
|
|
<el-form class="addForm" ref="addFormRef" :rules="addFormRule" :model="addFormData" label-width="4vw" |
|
|
|
|
|
label-position="left"> |
|
|
|
|
|
<el-form-item label="精网号" required prop="jwcode"> |
|
|
<el-input v-model="addFormData.jwcode" placeholder="请输入精网号" @blur="jwcodeSeachMarket" /> |
|
|
<el-input v-model="addFormData.jwcode" placeholder="请输入精网号" @blur="jwcodeSeachMarket" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="客户姓名" required> |
|
|
|
|
|
|
|
|
<el-form-item label="客户姓名" required prop="name"> |
|
|
<el-input disabled="true" v-model="addFormData.name" placeholder="请输入客户姓名" /> |
|
|
<el-input disabled="true" v-model="addFormData.name" placeholder="请输入客户姓名" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="所属地区" required> |
|
|
|
|
|
|
|
|
<el-form-item label="所属地区" required prop="market"> |
|
|
<el-input disabled="true" v-model="addFormData.market" :value="addFormData.marketName" |
|
|
<el-input disabled="true" v-model="addFormData.market" :value="addFormData.marketName" |
|
|
placeholder="请输入所属地区" /> |
|
|
placeholder="请输入所属地区" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="活动名称" required> |
|
|
|
|
|
|
|
|
<el-form-item label="活动名称" required prop="activity"> |
|
|
<el-input v-model="addFormData.activity" placeholder="请输入活动名称" /> |
|
|
<el-input v-model="addFormData.activity" placeholder="请输入活动名称" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="产品名称" required @change="ifGold"> |
|
|
|
|
|
|
|
|
<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> |
|
|
|
|
|
|
|
|
<el-form-item v-show="!isGold" label="产品数量" required prop="goodNum"> |
|
|
<div style="padding-right: 50px; display: flex;"> |
|
|
<div style="padding-right: 50px; display: flex;"> |
|
|
<el-input style="padding-right: 10px;" v-model="addFormData.goodNum" placeholder="请输入产品数量" /> |
|
|
<el-input style="padding-right: 10px;" v-model="addFormData.goodNum" placeholder="请输入产品数量" /> |
|
|
<span style="color: #999999;">年</span> |
|
|
|
|
|
|
|
|
<span style="color: #999999;">{{ productUnit }}</span> |
|
|
</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;"> |
|
|
@ -319,28 +320,28 @@ |
|
|
v-model="addFormData.freeGold" /> |
|
|
v-model="addFormData.freeGold" /> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<el-form-item label="付款币种" required> |
|
|
|
|
|
|
|
|
<el-form-item label="付款币种" required prop="paymentCurrency"> |
|
|
<CurrencySelect v-model="addFormData.paymentCurrency" :items="customOptions" placeholder="请选择付款币种" |
|
|
<CurrencySelect v-model="addFormData.paymentCurrency" :items="customOptions" placeholder="请选择付款币种" |
|
|
@change="handleCurrencyChange" /> |
|
|
@change="handleCurrencyChange" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="付款金额" required> |
|
|
|
|
|
|
|
|
<el-form-item label="付款金额" required prop="paymentAmount"> |
|
|
<el-input v-model="addFormData.paymentAmount" placeholder="请输入付款金额" /> |
|
|
<el-input v-model="addFormData.paymentAmount" placeholder="请输入付款金额" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="支付方式" required> |
|
|
|
|
|
|
|
|
<el-form-item label="支付方式" required prop="payType"> |
|
|
<CurrencySelect v-model="addFormData.payType" :items="paytypeOptions" placeholder="请选择支付方式" |
|
|
<CurrencySelect v-model="addFormData.payType" :items="paytypeOptions" placeholder="请选择支付方式" |
|
|
@change="ifGroup"> |
|
|
@change="ifGroup"> |
|
|
</CurrencySelect> |
|
|
</CurrencySelect> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="到账地区" required> |
|
|
|
|
|
|
|
|
<el-form-item label="到账地区" required prop="receivedMarket"> |
|
|
<CurrencySelect v-model="addFormData.receivedMarket" :items="MoneyAddressOptions" |
|
|
<CurrencySelect v-model="addFormData.receivedMarket" :items="MoneyAddressOptions" |
|
|
:disabled="isGroup" placeholder="请选择到账地区"> |
|
|
:disabled="isGroup" placeholder="请选择到账地区"> |
|
|
</CurrencySelect> |
|
|
</CurrencySelect> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="付款时间" required> |
|
|
|
|
|
|
|
|
<el-form-item label="付款时间" required prop="payTime"> |
|
|
<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> |
|
|
|
|
|
|
|
|
<el-form-item label="转账凭证" required 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" |
|
|
@ -353,7 +354,7 @@ |
|
|
</el-upload> |
|
|
</el-upload> |
|
|
</div> |
|
|
</div> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="备注" required> |
|
|
|
|
|
|
|
|
<el-form-item label="备注" required 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> |
|
|
@ -533,15 +534,16 @@ |
|
|
</el-form> |
|
|
</el-form> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right"> |
|
|
<div class="right"> |
|
|
<el-form class="editFormRighrt" label-width="4.5vw" label-position="left"> |
|
|
|
|
|
|
|
|
<el-form ref="editFormRef" :rules="editFormRule" :model="editFormData" class="editFormRighrt" |
|
|
|
|
|
label-width="4.5vw" label-position="left"> |
|
|
<el-form-item label="到账货币"> |
|
|
<el-form-item label="到账货币"> |
|
|
<CurrencySelect v-model="editFormData.receivedCurrency" :items="customOptions" |
|
|
<CurrencySelect v-model="editFormData.receivedCurrency" :items="customOptions" |
|
|
placeholder="请选择到账货币" /> |
|
|
placeholder="请选择到账货币" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="到账金额"> |
|
|
|
|
|
|
|
|
<el-form-item label="到账金额" prop="receivedAmount"> |
|
|
<el-input v-model="editFormData.receivedAmount" placeholder="请输入到账金额" /> |
|
|
<el-input v-model="editFormData.receivedAmount" placeholder="请输入到账金额" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="手续费"> |
|
|
|
|
|
|
|
|
<el-form-item label="手续费" prop="handlingCharge"> |
|
|
<el-input v-model="editFormData.handlingCharge" placeholder="请输入手续费" /> |
|
|
<el-input v-model="editFormData.handlingCharge" placeholder="请输入手续费" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<!-- <el-form-item label="银行流水订单号"> |
|
|
<!-- <el-form-item label="银行流水订单号"> |
|
|
@ -675,6 +677,7 @@ const adminStore = useAdminStore(); |
|
|
const { menuTree } = storeToRefs(adminStore); |
|
|
const { menuTree } = storeToRefs(adminStore); |
|
|
console.log('menutree', menuTree.value); |
|
|
console.log('menutree', menuTree.value); |
|
|
import _ from 'lodash' |
|
|
import _ from 'lodash' |
|
|
|
|
|
import { addFormRule, editFormRule } from './utils/recriveFormRules.js' |
|
|
//===================== 查询相关 ================================= |
|
|
//===================== 查询相关 ================================= |
|
|
const tableData = ref([]) |
|
|
const tableData = ref([]) |
|
|
const searchData = ref({ |
|
|
const searchData = ref({ |
|
|
@ -735,6 +738,13 @@ const getlist = async () => { |
|
|
} |
|
|
} |
|
|
} else if (HQcaiwu.value) { |
|
|
} else if (HQcaiwu.value) { |
|
|
cashRoleId = '2' |
|
|
cashRoleId = '2' |
|
|
|
|
|
console.log('ctiveTab.value', activeTab.value); |
|
|
|
|
|
|
|
|
|
|
|
if (activeTab.value == 'pass') { |
|
|
|
|
|
searchData.value.status = 13 |
|
|
|
|
|
} else if (activeTab.value == 'done') { |
|
|
|
|
|
searchData.value.status = 46 |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
const result = await request({ |
|
|
const result = await request({ |
|
|
url: '/cashCollection/selectCollection', |
|
|
url: '/cashCollection/selectCollection', |
|
|
@ -821,12 +831,33 @@ const addFormData = ref({ |
|
|
freeGold: 0, |
|
|
freeGold: 0, |
|
|
goodsName: '' |
|
|
goodsName: '' |
|
|
}) |
|
|
}) |
|
|
|
|
|
const addFormRef = ref(null) |
|
|
const isGold = ref(false) |
|
|
const isGold = ref(false) |
|
|
|
|
|
const isProduct = ref(false) |
|
|
|
|
|
const selectItems = [ |
|
|
|
|
|
"AI机构追踪", |
|
|
|
|
|
"AI机构出击", |
|
|
|
|
|
"AI机构资金", |
|
|
|
|
|
"AI机活跃度", |
|
|
|
|
|
"超级机构透视", |
|
|
|
|
|
"超级机构伏击", |
|
|
|
|
|
"超级机构猎杀", |
|
|
|
|
|
"超级机构脉搏", |
|
|
|
|
|
"超级机构罗盘", |
|
|
|
|
|
"静态信息费", |
|
|
|
|
|
"博股会员" |
|
|
|
|
|
]; |
|
|
|
|
|
const productUnit = ref('个') |
|
|
const ifGold = () => { |
|
|
const ifGold = () => { |
|
|
if (addFormData.value.goodsName == '金币充值') { |
|
|
if (addFormData.value.goodsName == '金币充值') { |
|
|
isGold.value = true |
|
|
isGold.value = true |
|
|
} else { |
|
|
} else { |
|
|
isGold.value = false |
|
|
isGold.value = false |
|
|
|
|
|
if (selectItems.includes(addFormData.value.goodsName)) { |
|
|
|
|
|
productUnit.value = '年' |
|
|
|
|
|
} else { |
|
|
|
|
|
productUnit.value = '个' |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
const isEditGold = ref(false) |
|
|
const isEditGold = ref(false) |
|
|
@ -904,10 +935,12 @@ const closeAddForm = () => { |
|
|
addFormData.value = {} |
|
|
addFormData.value = {} |
|
|
addOrEdit.value = 0 |
|
|
addOrEdit.value = 0 |
|
|
isGold.value = false |
|
|
isGold.value = false |
|
|
|
|
|
addFormRef.value?.resetFields(); |
|
|
} |
|
|
} |
|
|
//客服新增 |
|
|
//客服新增 |
|
|
const handleAddForm = async () => { |
|
|
const handleAddForm = async () => { |
|
|
try { |
|
|
try { |
|
|
|
|
|
await addFormRef.value.validate(); |
|
|
if (addFormData.value.payTime) { |
|
|
if (addFormData.value.payTime) { |
|
|
addFormData.value.payTime = moment(addFormData.value.payTime).format('YYYY-MM-DD HH:mm:ss') |
|
|
addFormData.value.payTime = moment(addFormData.value.payTime).format('YYYY-MM-DD HH:mm:ss') |
|
|
} |
|
|
} |
|
|
@ -936,6 +969,7 @@ const handleAddForm = async () => { |
|
|
console.log('返回参数:', result); |
|
|
console.log('返回参数:', result); |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
console.log(error); |
|
|
console.log(error); |
|
|
|
|
|
ElMessage.error('请完善表单信息后提交'); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
//客服提交撤回的编辑记录 |
|
|
//客服提交撤回的编辑记录 |
|
|
@ -1177,6 +1211,7 @@ const editFormData = ref({ |
|
|
|
|
|
|
|
|
const ifOnline = ref(false) |
|
|
const ifOnline = ref(false) |
|
|
const editFormisible = ref(false) |
|
|
const editFormisible = ref(false) |
|
|
|
|
|
const editFormRef = ref(null) |
|
|
const openEditForm = (row) => { |
|
|
const openEditForm = (row) => { |
|
|
console.log('编辑时该行数据:', row); |
|
|
console.log('编辑时该行数据:', row); |
|
|
editFormData.value = row |
|
|
editFormData.value = row |
|
|
@ -1196,6 +1231,7 @@ const closeEditForm = () => { |
|
|
//提交编辑 |
|
|
//提交编辑 |
|
|
const submitEditForm = async () => { |
|
|
const submitEditForm = async () => { |
|
|
try { |
|
|
try { |
|
|
|
|
|
await editFormRef.value.validate(); |
|
|
if (editFormData.value.receivedTime) { |
|
|
if (editFormData.value.receivedTime) { |
|
|
editFormData.value.receivedTime = moment(editFormData.value.receivedTime).format('YYYY-MM-DD HH:mm:ss') |
|
|
editFormData.value.receivedTime = moment(editFormData.value.receivedTime).format('YYYY-MM-DD HH:mm:ss') |
|
|
} |
|
|
} |
|
|
@ -1220,6 +1256,7 @@ const submitEditForm = async () => { |
|
|
console.log('返回参数:', result); |
|
|
console.log('返回参数:', result); |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
console.log(error); |
|
|
console.log(error); |
|
|
|
|
|
ElMessage.error('请检查表单数据格式'); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
//================== 审核相关 ========================= |
|
|
//================== 审核相关 ========================= |
|
|
|