Browse Source

拉工作台

zhangyong/milestone-20250913-现金管理
ZhangYong 1 month ago
parent
commit
fbb274dbcd
  1. 7
      src/components/workspace/CashManagement.vue
  2. 11
      src/views/moneyManage/executor/executor.vue
  3. 9
      src/views/moneyManage/refundDetail/refundCharge.vue
  4. 10
      src/views/moneyManage/refundDetail/refundFinance.vue
  5. 9
      src/views/moneyManage/refundDetail/refundHeader.vue

7
src/components/workspace/CashManagement.vue

@ -44,7 +44,7 @@
<div v-else v-for="item in cashData.markets" :key="item.name" class="market-item"> <div v-else v-for="item in cashData.markets" :key="item.name" class="market-item">
<span class="market-name">代收{{ item.name }}</span> <span class="market-name">代收{{ item.name }}</span>
<span class="market-value">{{ item.value.toLocaleString() }} </span> <span class="market-value">{{ item.value.toLocaleString() }} </span>
</div> </div>
</div> </div>
@ -100,6 +100,7 @@ const startDate = `${currentYear}-01-01 00:00:00`;
const endDate = `${currentYear}-12-31 23:59:59`; const endDate = `${currentYear}-12-31 23:59:59`;
// //
const fetchCashData = async () => { const fetchCashData = async () => {
getAdminData()
try { try {
const res = await request({ const res = await request({
url: '/workbench/getTotalRevenue', url: '/workbench/getTotalRevenue',
@ -131,7 +132,7 @@ const fetchCashData = async () => {
name: m.name, name: m.name,
value: resMap.get(m.name) ?? 0 value: resMap.get(m.name) ?? 0
})) }))
} else {
} else if (marksFlag.value=== false) {
// 1. // 1.
const currencyMap = { const currencyMap = {
sgd: '新币', sgd: '新币',
@ -227,7 +228,7 @@ const renderChart = () => {
} }
onMounted(() => { onMounted(() => {
getAdminData()
// getAdminData()
fetchCashData() fetchCashData()
}) })
</script> </script>

11
src/views/moneyManage/executor/executor.vue

@ -148,9 +148,10 @@
</div> </div>
<div class="dialog-item"> <div class="dialog-item">
<el-text style="width:4vw;">退款类型</el-text> <el-text style="width:4vw;">退款类型</el-text>
<el-input v-model="editRow.refundModel" style="width:10vw;" disabled>
{{ scope.row.refundModel === 1 ? '部分退款' : '全部退款' }}
</el-input>
<el-select v-model="editRow.refundModel" style="width:10vw;" disabled>
<el-option label="全部退款" :value="0"></el-option>
<el-option label="部分退款" :value="1"></el-option>
</el-select>
</div> </div>
<div class="dialog-item"> <div class="dialog-item">
<el-text style="width:4vw;">付款币种</el-text> <el-text style="width:4vw;">付款币种</el-text>
@ -182,7 +183,7 @@
</div> </div>
<div class="dialog-item"> <div class="dialog-item">
<el-text style="width:4vw;">备注</el-text> <el-text style="width:4vw;">备注</el-text>
<el-input v-model="editForm.remark" style="width:10vw;" :row="3" disabled maxlength="100"
<el-input v-model="editRow.remark" style="width:10vw;" :row="3" disabled maxlength="100"
type="textarea" show-word-limit clearable /> type="textarea" show-word-limit clearable />
</div> </div>
</div> </div>
@ -217,7 +218,7 @@
:show-file-list="false"> :show-file-list="false">
<template #default> <template #default>
<img v-if="editForm.imageUrl" :src="editForm.imageUrl" <img v-if="editForm.imageUrl" :src="editForm.imageUrl"
style="width: 100%; height: 100%; object-fit: cover;">
style="width: 80px; height: 80px; object-fit: cover;">
<el-icon v-else> <el-icon v-else>
<Plus /> <Plus />
</el-icon> </el-icon>

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

@ -111,11 +111,6 @@
</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.paymentAmount" placeholder="请输入退款金额" size="small" style="width:10vw;"
clearable disabled></el-input>
</div>
<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" placeholder="请输入退款备注" size="small" style="width:10vw;" <el-input v-model="auditRow.refundReason" placeholder="请输入退款备注" 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 />
@ -188,7 +183,7 @@
</div> </div>
<div class="right-item"> <div class="right-item">
<el-text style="width:4vw;" size="small">到账时间</el-text> <el-text style="width:4vw;" size="small">到账时间</el-text>
<el-input v-model="auditRow.receiveTime" size="small" style="width:10vw;" disabled />
<el-input v-model="auditRow.receivedTime" size="small" style="width:10vw;" disabled />
</div> </div>
<div class="right-item"> <div class="right-item">
<el-text style="width:4vw;" size="small">备注</el-text> <el-text style="width:4vw;" size="small">备注</el-text>
@ -816,7 +811,7 @@ onMounted(() => {
.top { .top {
width: 30vw; width: 30vw;
height: 19vh;
height: 17vh;
.top-item { .top-item {
display: flex; display: flex;

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

@ -111,10 +111,6 @@
</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.paymentAmount" size="small" style="width:10vw;" disabled />
</div>
<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 />
@ -187,7 +183,7 @@
</div> </div>
<div class="right-item"> <div class="right-item">
<el-text style="width:4vw;" size="small">到账时间</el-text> <el-text style="width:4vw;" size="small">到账时间</el-text>
<el-input v-model="auditRow.receiveTime" size="small" style="width:10vw;" disabled />
<el-input v-model="auditRow.receivedTime" size="small" style="width:10vw;" disabled />
</div> </div>
<div class="right-item"> <div class="right-item">
<el-text style="width:4vw;" size="small">备注</el-text> <el-text style="width:4vw;" size="small">备注</el-text>
@ -866,10 +862,11 @@ onMounted(() => {
display: flex; display: flex;
justify-content: center; justify-content: center;
height: auto; height: auto;
min-height: 40vh;
.top { .top {
width: 30vw; width: 30vw;
height: 19vh;
height: 17vh;
.top-item { .top-item {
display: flex; display: flex;
@ -932,6 +929,7 @@ onMounted(() => {
.bottom { .bottom {
width: 30vw; width: 30vw;
height: auto; height: auto;
padding-bottom: 1vh;
.bottom-item { .bottom-item {
display: flex; display: flex;

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

@ -110,11 +110,6 @@
</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.paymentAmount" placeholder="请输入退款金额" size="small" style="width:10vw;"
clearable disabled></el-input>
</div>
<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" placeholder="请输入退款备注" size="small" style="width:10vw;" <el-input v-model="auditRow.refundReason" placeholder="请输入退款备注" 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 />
@ -187,7 +182,7 @@
</div> </div>
<div class="right-item"> <div class="right-item">
<el-text style="width:4vw;" size="small">到账时间</el-text> <el-text style="width:4vw;" size="small">到账时间</el-text>
<el-input v-model="auditRow.receiveTime" size="small" style="width:10vw;" disabled />
<el-input v-model="auditRow.receivedTime" size="small" style="width:10vw;" disabled />
</div> </div>
<div class="right-item"> <div class="right-item">
<el-text style="width:4vw;" size="small">备注</el-text> <el-text style="width:4vw;" size="small">备注</el-text>
@ -845,7 +840,7 @@ onMounted(() => {
.top { .top {
width: 30vw; width: 30vw;
height: 19vh;
height: 17vh;
.top-item { .top-item {
display: flex; display: flex;

Loading…
Cancel
Save