|
|
|
@ -5,13 +5,13 @@ |
|
|
|
<div class="row1"> |
|
|
|
<div class="rowItem"> |
|
|
|
<el-text style="width: 4vw;">{{ t('common.jwcode') }}</el-text> |
|
|
|
<el-input v-model="searchData.jwcode" :placeholder="t('common.jwcodePlaceholder')" style="width:10vw;" |
|
|
|
clearable></el-input> |
|
|
|
<el-input v-model="searchData.jwcode" :placeholder="t('common.jwcodePlaceholder')" |
|
|
|
style="width:10vw;" clearable></el-input> |
|
|
|
</div> |
|
|
|
<div class="rowItem"> |
|
|
|
<el-text style="width: 4vw;">{{ t('common.customerName') }}</el-text> |
|
|
|
<el-input v-model="searchData.name" :placeholder="t('common.customerNamePlaceholder')" style="width:10vw;" |
|
|
|
clearable></el-input> |
|
|
|
<el-input v-model="searchData.name" :placeholder="t('common.customerNamePlaceholder')" |
|
|
|
style="width:10vw;" clearable></el-input> |
|
|
|
</div> |
|
|
|
<div class="rowItem"> |
|
|
|
<el-text style="width: 4vw;">{{ t('common.market') }}</el-text> |
|
|
|
@ -24,14 +24,15 @@ |
|
|
|
<!-- 地区财务固定显示付款币种,删除客服的订单状态 --> |
|
|
|
<div class="rowItem"> |
|
|
|
<el-text style="width: 4vw;">{{ t('common.payCurrency') }}</el-text> |
|
|
|
<el-select v-model="searchData.paymentCurrency" :placeholder="t('common.payCurrencyPlaceholder')" style="width: 10vw;" |
|
|
|
clearable> |
|
|
|
<el-select v-model="searchData.paymentCurrency" |
|
|
|
:placeholder="t('common.payCurrencyPlaceholder')" style="width: 10vw;" clearable> |
|
|
|
<el-option v-for="item in customOptions" :key="item" :label="item" :value="item" /> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
<div class="rowItem"> |
|
|
|
<el-text style="width: 4vw;">{{ t('common.payModel') }}</el-text> |
|
|
|
<el-select v-model="searchData.payType" :placeholder="t('common.payModelPlaceholder')" style="width: 10vw;" clearable> |
|
|
|
<el-select v-model="searchData.payType" :placeholder="t('common.payModelPlaceholder')" |
|
|
|
style="width: 10vw;" clearable> |
|
|
|
<el-option v-for="item in paytypeList" :key="item" :label="item" :value="item" /> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
@ -40,8 +41,8 @@ |
|
|
|
<div class="left"> |
|
|
|
<div class="rowItem"> |
|
|
|
<el-text style="width: 4vw;">{{ t('common.activityName') }}</el-text> |
|
|
|
<el-select v-model="searchData.activity" :placeholder="t('common.activityNameChoose')" style="width: 10vw;" |
|
|
|
clearable> |
|
|
|
<el-select v-model="searchData.activity" :placeholder="t('common.activityNameChoose')" |
|
|
|
style="width: 10vw;" clearable> |
|
|
|
<el-option v-for="item in activityList" :key="item.id" :label="item.activityName" |
|
|
|
:value="item.id" /> |
|
|
|
</el-select> |
|
|
|
@ -54,17 +55,17 @@ |
|
|
|
<div class="rowItem" style="width: 25vw"> |
|
|
|
<el-text style="width: 4vw; margin-left: 0.5vw;">{{ t('common.payTime') }}</el-text> |
|
|
|
<el-date-picker v-model="getTime" type="datetimerange" :range-separator="t('common.to')" |
|
|
|
:start-placeholder="t('common.startTime')" :end-placeholder="t('common.endTime')" style="width: 22vw; " |
|
|
|
@change="handleDatePickerChange" :default-time="defaultTime" |
|
|
|
:start-placeholder="t('common.startTime')" :end-placeholder="t('common.endTime')" |
|
|
|
style="width: 22vw; " @change="handleDatePickerChange" :default-time="defaultTime" |
|
|
|
:disabled-date="disabledDate" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-button style="width: 3vw;" type="primary" @click="search">{{ t('common.search') }}</el-button> |
|
|
|
<el-button style="width: 3vw;" type="success" @click="reset">{{ t('common.reset') }}</el-button> |
|
|
|
<el-button v-if="activeTab == 'done'" style="width: 5vw;" type="warning" |
|
|
|
@click="exportExcel()">{{ t('common.exportExcel') }}</el-button> |
|
|
|
<el-button v-if="activeTab == 'done'" style="width: 6vw;" type="primary" |
|
|
|
@click="openExportList">{{ t('common.viewExportList') }}</el-button> |
|
|
|
<el-button v-if="activeTab == 'done'" style="width: 5vw;" type="warning" @click="exportExcel()">{{ |
|
|
|
t('common.exportExcel') }}</el-button> |
|
|
|
<el-button v-if="activeTab == 'done'" style="width: 6vw;" type="primary" @click="openExportList">{{ |
|
|
|
t('common.viewExportList') }}</el-button> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
</div> |
|
|
|
@ -89,7 +90,8 @@ |
|
|
|
</div> |
|
|
|
<div class="info-tooltip"> |
|
|
|
<el-popover placement="top" :title="t('cash.receiveCashDataTitle')" :width="260" trigger="hover" |
|
|
|
:content="t('cash.receiveCashDataContent')" popper-class="custom-popover" :show-arrow="false"> |
|
|
|
:content="t('cash.receiveCashDataContent')" popper-class="custom-popover" |
|
|
|
:show-arrow="false"> |
|
|
|
<template #reference> |
|
|
|
<el-icon class="service-icon"> |
|
|
|
<Warning /> |
|
|
|
@ -111,11 +113,13 @@ |
|
|
|
<el-table-column fixed="left" prop="jwcode" label="Homily ID" width="110px" /> |
|
|
|
<el-table-column fixed="left" prop="name" :label="t('common_list.name')" width="110px" /> |
|
|
|
<el-table-column prop="marketName" :label="t('common_list.market')" width="80px" /> |
|
|
|
<el-table-column prop="activity" :label="t('common_list.activity')" width="120px" show-overflow-tooltip /> |
|
|
|
<el-table-column prop="activity" :label="t('common_list.activity')" width="120px" |
|
|
|
show-overflow-tooltip /> |
|
|
|
<el-table-column prop="goodsName" :label="t('common_list.productName')" width="120px" /> |
|
|
|
<el-table-column prop="goodNum" :label="t('common_list.productNum')" width="130px"> |
|
|
|
<template #default="scope"> |
|
|
|
<span v-if="scope.row.goodsName == t('cash.coinRecharge')">{{ scope.row.permanentGold }}</span> |
|
|
|
<span v-if="scope.row.goodsName == t('cash.coinRecharge')">{{ scope.row.permanentGold |
|
|
|
}}</span> |
|
|
|
<span v-else>{{ scope.row.goodNum }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -147,7 +151,8 @@ |
|
|
|
<div v-if="scope.row.voucher" |
|
|
|
style="display: flex; justify-content: center; align-items: center; cursor: pointer;" |
|
|
|
@click="previewImage(scope.row.voucher)"> |
|
|
|
<img :src="scope.row.voucher" :alt="t('common_list.payVoucher')" style="width: auto; height: 40px;"> |
|
|
|
<img :src="scope.row.voucher" :alt="t('common_list.payVoucher')" |
|
|
|
style="width: auto; height: 40px;"> |
|
|
|
</div> |
|
|
|
<div v-else |
|
|
|
style="display: flex; justify-content: center; align-items: center; height: 40px;"> |
|
|
|
@ -163,18 +168,20 @@ |
|
|
|
show-overflow-tooltip></el-table-column> |
|
|
|
<el-table-column prop="receivedTime" :label="t('common_list.receiveTime')" |
|
|
|
v-if="activeTab == 'pass' || activeTab == 'done'" width="180px" /> |
|
|
|
<el-table-column prop="remark" :label="t('common_list.remark')" v-if="activeTab != 'reject'" width="150px" |
|
|
|
show-overflow-tooltip></el-table-column> |
|
|
|
<el-table-column prop="status" fixed="right" :label="t('common_list.orderStatus')" v-if="activeTab == 'done'" |
|
|
|
width="150px" show-overflow-tooltip> |
|
|
|
<el-table-column prop="remark" :label="t('common_list.remark')" v-if="activeTab != 'reject'" |
|
|
|
width="150px" show-overflow-tooltip></el-table-column> |
|
|
|
<el-table-column prop="status" fixed="right" :label="t('common_list.orderStatus')" |
|
|
|
v-if="activeTab == 'done'" width="150px" show-overflow-tooltip> |
|
|
|
<template #default="scope"> |
|
|
|
<span style="color: rgb(242, 84, 83);" v-if="scope.row.status == 6">{{ t('common_list.refund') }}</span> |
|
|
|
<span style="color: rgb(242, 84, 83);" v-if="scope.row.status == 6">{{ |
|
|
|
t('common_list.refund') }}</span> |
|
|
|
<span style="color: rgb(127,204,133);" v-else>{{ t('common_list.normal') }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="auditTime" :label="t('common_list.rejectTime')" v-if="activeTab == 'reject'" width="180px" |
|
|
|
show-overflow-tooltip></el-table-column> |
|
|
|
<el-table-column prop="rejectReason" :label="t('common_list.rejectReason')" v-if="activeTab == 'reject'" width="150px"> |
|
|
|
<el-table-column prop="auditTime" :label="t('common_list.rejectTime')" |
|
|
|
v-if="activeTab == 'reject'" width="180px" show-overflow-tooltip></el-table-column> |
|
|
|
<el-table-column prop="rejectReason" :label="t('common_list.rejectReason')" |
|
|
|
v-if="activeTab == 'reject'" width="150px"> |
|
|
|
<template #default="scope"> |
|
|
|
<div class="ellipsis-container" |
|
|
|
@mouseenter="handleMouseEnter($event, scope.row.rejectReason)" |
|
|
|
@ -193,16 +200,19 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<!-- 总部财务表格操作(待审核→审核,已通过→编辑) --> |
|
|
|
<el-table-column fixed="right" :label="t('common_list.operation')" width="120px" v-if="activeTab != 'reject'"> |
|
|
|
<el-table-column fixed="right" :label="t('common_list.operation')" width="120px" |
|
|
|
v-if="activeTab != 'reject'"> |
|
|
|
<template #default=scope> |
|
|
|
<el-link v-if="activeTab == 'wait'" style="color: #2741DE;" |
|
|
|
@click="openAuditForm(scope.row)">{{ t('common.audit') }}</el-link> |
|
|
|
<el-link |
|
|
|
v-else-if="activeTab == 'pass' && !(scope.row.status == 6 || scope.row.status == 4)" |
|
|
|
style="color: #2741DE;" @click="openEditForm(scope.row)">{{ t('common.edit') }}</el-link> |
|
|
|
style="color: #2741DE;" @click="openEditForm(scope.row)">{{ t('common.edit') |
|
|
|
}}</el-link> |
|
|
|
<el-link |
|
|
|
v-else-if="activeTab == 'done' && scope.row.status == 4 && startsWith(scope.row.orderCode, 'GOLDCOIN')" |
|
|
|
style="color: rgb(242, 84, 83);" @click="openRefundConfirm(scope.row)">{{ t('common.refund') }}</el-link> |
|
|
|
style="color: rgb(242, 84, 83);" @click="openRefundConfirm(scope.row)">{{ |
|
|
|
t('common.refund') }}</el-link> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -237,41 +247,46 @@ |
|
|
|
<div class="left"> |
|
|
|
<el-form class="editForm" label-width="6vw" label-position="left"> |
|
|
|
<el-form-item :label="t('common_add.jwcode')"> |
|
|
|
<el-input disabled="true" v-model="editFormData.jwcode" :placeholder="t('common_add.jwcode')" /> |
|
|
|
<el-input disabled="true" v-model="editFormData.jwcode" |
|
|
|
:placeholder="t('common_add.jwcode')" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="t('common_add.customerName')"> |
|
|
|
<el-input disabled="true" v-model="editFormData.name" :placeholder="t('common_add.customerName')" /> |
|
|
|
<el-input disabled="true" v-model="editFormData.name" |
|
|
|
:placeholder="t('common_add.customerName')" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="t('common_add.market')"> |
|
|
|
<el-input disabled="true" v-model="editFormData.marketName" :placeholder="t('common_add.market')" /> |
|
|
|
<el-input disabled="true" v-model="editFormData.marketName" |
|
|
|
:placeholder="t('common_add.market')" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="t('common_add.activity')"> |
|
|
|
<el-input disabled="true" v-model="editFormData.activity" :placeholder="t('common_add.activity')" /> |
|
|
|
<el-input disabled="true" v-model="editFormData.activity" |
|
|
|
:placeholder="t('common_add.activity')" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="t('common_add.productName')"> |
|
|
|
<el-select disabled="true" v-model="editFormData.goodsName" :placeholder="t('common_add.productName')" |
|
|
|
clearable></el-select> |
|
|
|
<el-select disabled="true" v-model="editFormData.goodsName" |
|
|
|
:placeholder="t('common_add.productName')" clearable></el-select> |
|
|
|
</el-form-item> |
|
|
|
<!-- 金币产品特殊显示 --> |
|
|
|
<el-form-item v-show="!isEditGold" :label="t('common_add.productNum')"> |
|
|
|
<div style="display: flex;"> |
|
|
|
<el-input disabled="true" style="padding-right: 30px; flex: 3;" |
|
|
|
v-model="editFormData.goodNum" :placeholder="t('common_add.productNumPlaceholder')" /> |
|
|
|
v-model="editFormData.goodNum" |
|
|
|
:placeholder="t('common_add.productNumPlaceholder')" /> |
|
|
|
<CurrencySelect disabled="true" v-model="editFormData.numUnit" :items="numUnitList" |
|
|
|
style="flex: 1.5;" :placeholder="t('common_add.numUnit')" /> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
<div v-show="isEditGold" style="margin-bottom: 15px; display: flex;"> |
|
|
|
<div style=" display: flex; margin-right: 10px;"> |
|
|
|
<span |
|
|
|
style="color: #999999; display: flex; white-space: nowrap;align-items: center;">{{ t('common_add.permanentGold') }}:</span> |
|
|
|
<span style="color: #999999; display: flex; white-space: nowrap;align-items: center;">{{ |
|
|
|
t('common_add.permanentGold') }}:</span> |
|
|
|
<el-input disabled="true" |
|
|
|
style="padding-right: 10px; padding-left: 10px; height: 30px; width: 110px;" |
|
|
|
v-model="editFormData.permanentGold" /> |
|
|
|
</div> |
|
|
|
<div style="padding-right: 5px; display: flex;"> |
|
|
|
<span |
|
|
|
style="color: #999999; display: flex; white-space: nowrap;align-items: center;">{{ t('common_add.freeGold') }}:</span> |
|
|
|
<span style="color: #999999; display: flex; white-space: nowrap;align-items: center;">{{ |
|
|
|
t('common_add.freeGold') }}:</span> |
|
|
|
<el-input disabled="true" |
|
|
|
style="padding-right: 10px; padding-left: 10px; height: 30px; width: 110px;" |
|
|
|
v-model="editFormData.freeGold" /> |
|
|
|
@ -282,15 +297,16 @@ |
|
|
|
:items="customOptions" :placeholder="t('common_add.payCurrencyPlaceholder')" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="t('common_add.payAmount')"> |
|
|
|
<el-input :disabled="!ifOnline" v-model="editFormData.paymentAmount" :placeholder="t('common_add.payAmountPlaceholder')" /> |
|
|
|
<el-input :disabled="!ifOnline" v-model="editFormData.paymentAmount" |
|
|
|
:placeholder="t('common_add.payAmountPlaceholder')" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="t('common_add.payMethod')"> |
|
|
|
<el-select disabled="true" v-model="editFormData.payType" :placeholder="t('common_add.payMethodPlaceholder')" |
|
|
|
clearable></el-select> |
|
|
|
<el-select disabled="true" v-model="editFormData.payType" |
|
|
|
:placeholder="t('common_add.payMethodPlaceholder')" clearable></el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="t('common_add.receiveArea')"> |
|
|
|
<el-select disabled="true" v-model="editFormData.receivedMarket" :placeholder="t('common_add.receiveAreaPlaceholder')" |
|
|
|
clearable></el-select> |
|
|
|
<el-select disabled="true" v-model="editFormData.receivedMarket" |
|
|
|
:placeholder="t('common_add.receiveAreaPlaceholder')" clearable></el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="t('common_add.payTime')"> |
|
|
|
<el-date-picker disabled="true" type="datetime" v-model="editFormData.payTime" |
|
|
|
@ -326,13 +342,16 @@ |
|
|
|
:placeholder="t('common_add.receiveCurrencyPlaceholder')" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="t('common_add.receiveAmount')" prop="receivedAmount"> |
|
|
|
<el-input v-model="editFormData.receivedAmount" :placeholder="t('common_add.receiveAmountPlaceholder')" type="number" /> |
|
|
|
<el-input v-model="editFormData.receivedAmount" |
|
|
|
:placeholder="t('common_add.receiveAmountPlaceholder')" type="number" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="t('common_add.fee')" prop="handlingCharge"> |
|
|
|
<el-input v-model="editFormData.handlingCharge" :placeholder="t('common_add.feePlaceholder')" type="number" /> |
|
|
|
<el-input v-model="editFormData.handlingCharge" |
|
|
|
:placeholder="t('common_add.feePlaceholder')" type="number" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="t('common_add.receiveTime')" required> |
|
|
|
<el-date-picker type="datetime" v-model="editFormData.receivedTime" :placeholder="t('common_add.receiveTimePlaceholder')" /> |
|
|
|
<el-date-picker type="datetime" v-model="editFormData.receivedTime" |
|
|
|
:placeholder="t('common_add.receiveTimePlaceholder')" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<span class="editBtns"> |
|
|
|
@ -348,8 +367,8 @@ |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- 新增退款 --> |
|
|
|
<el-dialog v-model="refundDialog" :title="t('common_add.refund')" class="refundDialog" overflow draggable style="width: 40vw;" |
|
|
|
:before-close="closeRefundForm"> |
|
|
|
<el-dialog v-model="refundDialog" :title="t('common_add.refund')" class="refundDialog" overflow draggable |
|
|
|
style="width: 40vw;" :before-close="closeRefundForm"> |
|
|
|
<div style="display: flex;"> |
|
|
|
<div class="left"> |
|
|
|
<div class="add-item"> |
|
|
|
@ -381,7 +400,8 @@ |
|
|
|
</div> |
|
|
|
<div v-show="isRefundGold" style="display: flex; margin-bottom: 10px;"> |
|
|
|
<div style=" display: flex; align-items: center;justify-content: center; "> |
|
|
|
<span style="color: #999999; white-space: nowrap;">{{ t('common_add.permanentGold') }}:</span> |
|
|
|
<span style="color: #999999; white-space: nowrap;">{{ t('common_add.permanentGold') |
|
|
|
}}:</span> |
|
|
|
<el-input style="padding-right: 10px; height: 30px; width: 70px;" |
|
|
|
v-model="refundFormData.permanentGold" disabled /> |
|
|
|
</div> |
|
|
|
@ -409,7 +429,8 @@ |
|
|
|
</div> |
|
|
|
<div class="add-item"> |
|
|
|
<el-text style="width:4vw;" size="small">{{ t('common_add.transferVoucher') }}</el-text> |
|
|
|
<el-form-item :rules="{ required: true, message: t('common_add.uploadPhoto'), trigger: 'change' }"> |
|
|
|
<el-form-item |
|
|
|
:rules="{ required: true, message: t('common_add.uploadPhoto'), trigger: 'change' }"> |
|
|
|
<el-upload ref="uploadRef" :auto-upload="false" list-type="picture-card" |
|
|
|
:show-file-list="false"> |
|
|
|
<template #default> |
|
|
|
@ -438,7 +459,8 @@ |
|
|
|
</div> |
|
|
|
<div v-show="refundFormData.refundModel == '1'" style="display: flex; margin-bottom: 10px;"> |
|
|
|
<div style=" display: flex; align-items: center;justify-content: center; "> |
|
|
|
<span style="color: #999999; white-space: nowrap;">{{ t('common_add.permanentGold') }}:</span> |
|
|
|
<span style="color: #999999; white-space: nowrap;">{{ t('common_add.permanentGold') |
|
|
|
}}:</span> |
|
|
|
<el-input style="padding-right: 10px; height: 30px; width: 70px;" |
|
|
|
v-model="refundFormData.partRefundGold" disabled /> |
|
|
|
</div> |
|
|
|
@ -702,17 +724,17 @@ const getTagType = (state) => { |
|
|
|
//根据状态返回对应的标签文案 |
|
|
|
const getTagText = (state) => { |
|
|
|
switch (state) { |
|
|
|
case 0: |
|
|
|
return t('elmessage.pendingExecution'); |
|
|
|
case 1: |
|
|
|
return t('elmessage.executing'); |
|
|
|
case 2: |
|
|
|
return t('elmessage.executed'); |
|
|
|
case 3: |
|
|
|
return t('elmessage.errorExecution'); |
|
|
|
default: |
|
|
|
return t('elmessage.unknownStatus'); |
|
|
|
} |
|
|
|
case 0: |
|
|
|
return t('elmessage.pendingExecution'); |
|
|
|
case 1: |
|
|
|
return t('elmessage.executing'); |
|
|
|
case 2: |
|
|
|
return t('elmessage.executed'); |
|
|
|
case 3: |
|
|
|
return t('elmessage.errorExecution'); |
|
|
|
default: |
|
|
|
return t('elmessage.unknownStatus'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -721,28 +743,28 @@ const adminData = ref({}); |
|
|
|
const activityList = ref([]); |
|
|
|
// 付款币种和支付方式选项(客服专用) |
|
|
|
const customOptions = ref([ |
|
|
|
t('cash.currency.usd'), // 美元(USD) |
|
|
|
t('cash.currency.hkd'), // 港币(HKD) |
|
|
|
t('cash.currency.sgd'), // 新币(SGD) |
|
|
|
t('cash.currency.myr'), // 马币(MYR) |
|
|
|
t('cash.currency.thb'), // 泰铢(THB) |
|
|
|
t('cash.currency.cad'), // 加币(CAD) |
|
|
|
t('cash.currency.vnd'), // 越南盾(VND) |
|
|
|
t('cash.currency.krw') // 韩元(KRW) |
|
|
|
t('cash.currency.usd'), // 美元(USD) |
|
|
|
t('cash.currency.hkd'), // 港币(HKD) |
|
|
|
t('cash.currency.sgd'), // 新币(SGD) |
|
|
|
t('cash.currency.myr'), // 马币(MYR) |
|
|
|
t('cash.currency.thb'), // 泰铢(THB) |
|
|
|
t('cash.currency.cad'), // 加币(CAD) |
|
|
|
t('cash.currency.vnd'), // 越南盾(VND) |
|
|
|
t('cash.currency.krw') // 韩元(KRW) |
|
|
|
]) |
|
|
|
// 支付类型选项 - 使用cash.payMethods下的键名 |
|
|
|
const paytypeList = ref([ |
|
|
|
t('cash.payMethods.stripe'), // Stripe-链接收款 |
|
|
|
t('cash.payMethods.paymentAsia'), // PaymentAsia-链接收款 |
|
|
|
t('cash.payMethods.ipay88'), // Ipay88-链接收款 |
|
|
|
t('cash.payMethods.grabpay'), // Grabpay |
|
|
|
t('cash.payMethods.nets'), // Nets |
|
|
|
t('cash.payMethods.transfer'), // E-Transfer |
|
|
|
t('cash.payMethods.paypal'), // PayPal |
|
|
|
t('cash.payMethods.bankTransfer'),// 银行转账 |
|
|
|
t('cash.payMethods.card'), // 刷卡 |
|
|
|
t('cash.payMethods.cash'), // 现金 |
|
|
|
t('cash.payMethods.check') // 支票 |
|
|
|
t('cash.payMethods.stripe'), // Stripe-链接收款 |
|
|
|
t('cash.payMethods.paymentAsia'), // PaymentAsia-链接收款 |
|
|
|
t('cash.payMethods.ipay88'), // Ipay88-链接收款 |
|
|
|
t('cash.payMethods.grabpay'), // Grabpay |
|
|
|
t('cash.payMethods.nets'), // Nets |
|
|
|
t('cash.payMethods.transfer'), // E-Transfer |
|
|
|
t('cash.payMethods.paypal'), // PayPal |
|
|
|
t('cash.payMethods.bankTransfer'),// 银行转账 |
|
|
|
t('cash.payMethods.card'), // 刷卡 |
|
|
|
t('cash.payMethods.cash'), // 现金 |
|
|
|
t('cash.payMethods.check') // 支票 |
|
|
|
]) |
|
|
|
const paytypeOptions = ref([...paytypeList.value]); |
|
|
|
|
|
|
|
@ -1010,6 +1032,11 @@ const submitEditForm = async () => { |
|
|
|
try { |
|
|
|
await editFormRef.value.validate(); |
|
|
|
|
|
|
|
if (editFormData.value.paymentCurrency != editFormData.value.receivedCurrency) { |
|
|
|
ElMessage.error('付款币种与到账币种不一致') |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
// 处理时间格式 |
|
|
|
if (editFormData.value.receivedTime) { |
|
|
|
editFormData.value.receivedTime = moment(editFormData.value.receivedTime).format('YYYY-MM-DD HH:mm:ss'); |
|
|
|
|