Browse Source

11

lihuilin/feature-20250923114949-现金
lihuilin 1 month ago
parent
commit
c96d3291c1
  1. 4
      .env.development
  2. 7
      src/views/moneyManage/executor/executor.vue
  3. 6
      src/views/moneyManage/refundDetail/refundCharge.vue
  4. 3
      src/views/moneyManage/refundDetail/refundFinance.vue
  5. 6
      src/views/moneyManage/refundDetail/refundHeader.vue
  6. 48
      src/views/moneyManage/refundDetail/refundService.vue

4
.env.development

@ -1,4 +1,4 @@
# VITE_API_BASE='https://hwjb.homilychart.com/dev/admin'
VITE_API_BASE='https://hwjb.homilychart.com/dev/admin'
# 测试环境 # 测试环境
# VITE_API_BASE='http://54.255.212.181:10704/' # VITE_API_BASE='http://54.255.212.181:10704/'
# 正式环境 # 正式环境
@ -11,7 +11,7 @@ VITE_UPLOAD_URL=http://39.101.133.168:8828/hljw/api/aws/upload
# zhangyong # zhangyong
# VITE_API_BASE='http://192.168.3.83:8081/' # VITE_API_BASE='http://192.168.3.83:8081/'
# 本地 # 本地
VITE_API_BASE='http://localhost:8081/'
# VITE_API_BASE='http://localhost:8081/'
# sunjiabei # sunjiabei
# VITE_API_BASE='http://192.168.1.70:8081/' # VITE_API_BASE='http://192.168.1.70:8081/'

7
src/views/moneyManage/executor/executor.vue

@ -19,7 +19,7 @@
</div> </div>
<div class="search"> <div class="search">
<el-text size="large" style="width:4vw;">退款币种</el-text> <el-text size="large" style="width:4vw;">退款币种</el-text>
<el-select v-model="searchForm.payType" style="width:9vw;" clearable>
<el-select v-model="searchForm.refundCurrency" style="width:9vw;" clearable>
<el-option v-for="item in currencies" :key="item.value" :label="item.label" :value="item.value" /> <el-option v-for="item in currencies" :key="item.value" :label="item.label" :value="item.value" />
</el-select> </el-select>
</div> </div>
@ -293,11 +293,12 @@ const getRefund = async function () {
// 3032 // 3032
// 4041退 // 4041退
paymentCurrency: searchForm.value.paymentCurrency, paymentCurrency: searchForm.value.paymentCurrency,
payType: searchForm.value.payType,
refundCurrency: searchForm.value.refundCurrency,
startTime: dateRange.value && dateRange.value[0] ? dayjs(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss') : "", startTime: dateRange.value && dateRange.value[0] ? dayjs(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss') : "",
endtime: dateRange.value && dateRange.value[1] ? dayjs(dateRange.value[1]).format('YYYY-MM-DD HH:mm:ss') : "", endtime: dateRange.value && dateRange.value[1] ? dayjs(dateRange.value[1]).format('YYYY-MM-DD HH:mm:ss') : "",
adminId: adminData.value.id, adminId: adminData.value.id,
account: adminData.value.account
account: adminData.value.account,
refundChannels:searchForm.value.refundChannels
} }
} }

6
src/views/moneyManage/refundDetail/refundCharge.vue

@ -112,8 +112,8 @@
</el-select> </el-select>
</div> </div>
<div class="top-item"> <div class="top-item">
<el-text style="width:4vw;" size="small">退款备注</el-text>
<el-input v-model="auditRow.refundReason" placeholder="请输入退款备注" size="small" style="width:10vw;"
<el-text style="width:4vw;" size="small">退款理由</el-text>
<el-input v-model="auditRow.refundReason" size="small" style="width:10vw;"
:rows="3" maxlength="100" show-word-limit type="textarea" disabled /> :rows="3" maxlength="100" show-word-limit type="textarea" disabled />
</div> </div>
</div> </div>
@ -538,7 +538,7 @@ const handleReject = async function () {
} }
} }
const showStep = function (row) { const showStep = function (row) {
if (!hasMenuPermission(menuTree.value, permissionMapping.refundFinanceProgShow)) {
if (!hasMenuPermission(menuTree.value, permissionMapping.refundChargeProgShow)) {
ElMessage.error('无此权限') ElMessage.error('无此权限')
return return
} }

3
src/views/moneyManage/refundDetail/refundFinance.vue

@ -61,7 +61,6 @@
<el-table-column prop="jwcode" label="Homily ID" width="120" fixed="left" /> <el-table-column prop="jwcode" label="Homily ID" width="120" fixed="left" />
<el-table-column prop="name" label="姓名" width="120" fixed="left" show-overflow-tooltip /> <el-table-column prop="name" label="姓名" width="120" fixed="left" show-overflow-tooltip />
<el-table-column prop="marketName" label="所属地区" width="120" /> <el-table-column prop="marketName" label="所属地区" width="120" />
<el-table-column prop="activity" label="活动名称" width="120px" show-overflow-tooltip />
<el-table-column prop="goodsName" label="产品名称" width="130" show-overflow-tooltip /> <el-table-column prop="goodsName" label="产品名称" width="130" show-overflow-tooltip />
<el-table-column prop="goodNum" label="产品数量" width="120" /> <el-table-column prop="goodNum" label="产品数量" width="120" />
<el-table-column prop="refundModel" label="退款方式" width="120"> <el-table-column prop="refundModel" label="退款方式" width="120">
@ -112,7 +111,7 @@
</el-select> </el-select>
</div> </div>
<div class="top-item"> <div class="top-item">
<el-text style="width:4vw;" size="small">退款备注</el-text>
<el-text style="width:4vw;" size="small">退款理由</el-text>
<el-input v-model="auditRow.refundReason" size="small" style="width:10vw;" :rows="3" maxlength="100" <el-input v-model="auditRow.refundReason" size="small" style="width:10vw;" :rows="3" maxlength="100"
show-word-limit type="textarea" disabled /> show-word-limit type="textarea" disabled />
</div> </div>

6
src/views/moneyManage/refundDetail/refundHeader.vue

@ -112,8 +112,8 @@
</el-select> </el-select>
</div> </div>
<div class="top-item"> <div class="top-item">
<el-text style="width:4vw;" size="small">退款备注</el-text>
<el-input v-model="auditRow.refundReason" placeholder="请输入退款备注" size="small" style="width:10vw;"
<el-text style="width:4vw;" size="small">退款理由</el-text>
<el-input v-model="auditRow.refundReason" size="small" style="width:10vw;"
:rows="3" maxlength="100" show-word-limit type="textarea" disabled /> :rows="3" maxlength="100" show-word-limit type="textarea" disabled />
</div> </div>
</div> </div>
@ -624,7 +624,7 @@ const reset = function () {
getRefund() getRefund()
} }
const showStep = function (row) { const showStep = function (row) {
if (!hasMenuPermission(menuTree.value, permissionMapping.refundFinanceProgShow)) {
if (!hasMenuPermission(menuTree.value, permissionMapping.refundHeaderProgShow)) {
ElMessage.error('无此权限') ElMessage.error('无此权限')
return return
} }

48
src/views/moneyManage/refundDetail/refundService.vue

@ -22,7 +22,7 @@
<div class="item1"> <div class="item1">
<el-text size="large" style="width:4vw;" multiple>订单状态</el-text> <el-text size="large" style="width:4vw;" multiple>订单状态</el-text>
<el-select v-model="searchForm.statuses" style="width:9vw;" clearable> <el-select v-model="searchForm.statuses" style="width:9vw;" clearable>
<el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value" />
<el-option v-for="item in statusList" :key="item" :label="item" :value="item" />
</el-select> </el-select>
</div> </div>
</div> </div>
@ -246,28 +246,7 @@ const uploadRef = ref(null)
const showBack = ref(false) const showBack = ref(false)
const showError = ref(false) const showError = ref(false)
const isKF = adminData.value.adminName.includes('客服') const isKF = adminData.value.adminName.includes('客服')
const statusList = ref([
{
value:'submitted',
label:'已提交',
},
{
value: 'back',
label: '已撤回',
},
{
value: 'pending',
label: '审核中'
},
{
value: 'completed',
label: '已退款'
},
{
value:'rejected',
label:'已驳回'
}
])
const statusList = ref(['已提交', '已撤回', '进行中','已退款','已驳回'])
// //
const getRefund = async function () { const getRefund = async function () {
if (!hasMenuPermission(menuTree.value, permissionMapping.refundServiceShow)) { if (!hasMenuPermission(menuTree.value, permissionMapping.refundServiceShow)) {
@ -275,16 +254,17 @@ const getRefund = async function () {
return return
} }
try { try {
if (searchForm.value.statuses === 'submitted') {
searchForm.value.statuses = [10]
} else if (searchForm.value.statuses === 'back') {
searchForm.value.statuses = [11]
} else if (searchForm.value.statuses === 'pending') {
searchForm.value.statuses = [20,30,40]
} else if(searchForm.value.statuses === 'completed') {
searchForm.value.statuses = [41]
} else if(searchForm.value.statuses === 'rejected') {
searchForm.value.statuses = [12,22,32]
const statusParam = ref([])
if (searchForm.value.statuses === '已提交') {
statusParam.value = [10]
} else if (searchForm.value.statuses === '已撤回') {
statusParam.value = [11]
} else if (searchForm.value.statuses === '进行中') {
statusParam.value = [20,30,40]
} else if(searchForm.value.statuses === '已退款') {
statusParam.value = [41]
} else if(searchForm.value.statuses === '已驳回') {
statusParam.value = [12,22,32]
} }
const params = { const params = {
pageNum: pagination.value.pageNum, pageNum: pagination.value.pageNum,
@ -294,7 +274,7 @@ const getRefund = async function () {
name: searchForm.value.name,// name: searchForm.value.name,//
markets: searchForm.value.market,// markets: searchForm.value.market,//
goodsNames: searchForm.value.goodsName,// goodsNames: searchForm.value.goodsName,//
statuses: searchForm.value.statuses,//1012
statuses: statusParam.value,//1012
// 2022 // 2022
// 3032 // 3032
// 4041退 // 4041退

Loading…
Cancel
Save