|
@@ -37,12 +37,12 @@
|
|
|
</template>
|
|
</template>
|
|
|
<template #currentProfit="scope">
|
|
<template #currentProfit="scope">
|
|
|
<span :class="['money-text', scope.row.currentProfit >= 0 ? 'success' : 'danger']">
|
|
<span :class="['money-text', scope.row.currentProfit >= 0 ? 'success' : 'danger']">
|
|
|
- {{ scope.row.currentProfit >= 0 ? '+' : '' }}¥ {{ formatMoney(scope.row.currentProfit) }}
|
|
|
|
|
|
|
+ {{ scope.row.currentProfit >= 0 ? "+" : "" }}¥ {{ formatMoney(scope.row.currentProfit) }}
|
|
|
</span>
|
|
</span>
|
|
|
</template>
|
|
</template>
|
|
|
<template #totalProfit="scope">
|
|
<template #totalProfit="scope">
|
|
|
<span :class="['money-text', scope.row.totalProfit >= 0 ? 'success' : 'danger']">
|
|
<span :class="['money-text', scope.row.totalProfit >= 0 ? 'success' : 'danger']">
|
|
|
- {{ scope.row.totalProfit >= 0 ? '+' : '' }}¥ {{ formatMoney(scope.row.totalProfit) }}
|
|
|
|
|
|
|
+ {{ scope.row.totalProfit >= 0 ? "+" : "" }}¥ {{ formatMoney(scope.row.totalProfit) }}
|
|
|
</span>
|
|
</span>
|
|
|
</template>
|
|
</template>
|
|
|
</page-content>
|
|
</page-content>
|
|
@@ -112,8 +112,17 @@
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
|
|
<!-- 上账/下账弹窗 -->
|
|
<!-- 上账/下账弹窗 -->
|
|
|
- <el-dialog v-model="balanceDialogVisible" :title="balanceDialogType === 1 ? '上账(充值)' : '下账(扣款)'" width="500px">
|
|
|
|
|
- <el-form ref="balanceFormRef" :model="balanceForm" :rules="balanceFormRules" label-width="100px">
|
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
|
+ v-model="balanceDialogVisible"
|
|
|
|
|
+ :title="balanceDialogType === 1 ? '上账(充值)' : '下账(扣款)'"
|
|
|
|
|
+ width="500px"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-form
|
|
|
|
|
+ ref="balanceFormRef"
|
|
|
|
|
+ :model="balanceForm"
|
|
|
|
|
+ :rules="balanceFormRules"
|
|
|
|
|
+ label-width="100px"
|
|
|
|
|
+ >
|
|
|
<el-form-item label="企业名称">
|
|
<el-form-item label="企业名称">
|
|
|
<el-input v-model="balanceForm.firmName" disabled />
|
|
<el-input v-model="balanceForm.firmName" disabled />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -123,15 +132,28 @@
|
|
|
</el-input>
|
|
</el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item :label="balanceDialogType === 1 ? '上账金额' : '下账金额'" prop="amount">
|
|
<el-form-item :label="balanceDialogType === 1 ? '上账金额' : '下账金额'" prop="amount">
|
|
|
- <el-input-number v-model="balanceForm.amount" :min="0.01" :precision="2" :step="100" style="width: 100%" />
|
|
|
|
|
|
|
+ <el-input-number
|
|
|
|
|
+ v-model="balanceForm.amount"
|
|
|
|
|
+ :min="0.01"
|
|
|
|
|
+ :precision="2"
|
|
|
|
|
+ :step="100"
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="备注" prop="remark">
|
|
<el-form-item label="备注" prop="remark">
|
|
|
- <el-input v-model="balanceForm.remark" type="textarea" :rows="3" placeholder="请输入备注" />
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="balanceForm.remark"
|
|
|
|
|
+ type="textarea"
|
|
|
|
|
+ :rows="3"
|
|
|
|
|
+ placeholder="请输入备注"
|
|
|
|
|
+ />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<template #footer>
|
|
<template #footer>
|
|
|
<el-button @click="balanceDialogVisible = false">取消</el-button>
|
|
<el-button @click="balanceDialogVisible = false">取消</el-button>
|
|
|
- <el-button type="primary" :loading="balanceLoading" @click="handleBalanceSubmit">确定</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" :loading="balanceLoading" @click="handleBalanceSubmit">
|
|
|
|
|
+ 确定
|
|
|
|
|
+ </el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
</div>
|
|
</div>
|
|
@@ -428,6 +450,8 @@ const contentConfig: IContentConfig<FirmInfoPageQuery> = reactive({
|
|
|
attrs: () => ({
|
|
attrs: () => ({
|
|
|
type: "success",
|
|
type: "success",
|
|
|
icon: "Plus",
|
|
icon: "Plus",
|
|
|
|
|
+ link: true,
|
|
|
|
|
+ size: "small",
|
|
|
disabled: isSfUser.value,
|
|
disabled: isSfUser.value,
|
|
|
}),
|
|
}),
|
|
|
},
|
|
},
|
|
@@ -437,6 +461,8 @@ const contentConfig: IContentConfig<FirmInfoPageQuery> = reactive({
|
|
|
attrs: () => ({
|
|
attrs: () => ({
|
|
|
type: "warning",
|
|
type: "warning",
|
|
|
icon: "Minus",
|
|
icon: "Minus",
|
|
|
|
|
+ link: true,
|
|
|
|
|
+ size: "small",
|
|
|
disabled: isSfUser.value,
|
|
disabled: isSfUser.value,
|
|
|
}),
|
|
}),
|
|
|
},
|
|
},
|
|
@@ -446,6 +472,8 @@ const contentConfig: IContentConfig<FirmInfoPageQuery> = reactive({
|
|
|
attrs: () => ({
|
|
attrs: () => ({
|
|
|
type: "primary",
|
|
type: "primary",
|
|
|
icon: "Setting",
|
|
icon: "Setting",
|
|
|
|
|
+ link: true,
|
|
|
|
|
+ size: "small",
|
|
|
disabled: isSfUser.value,
|
|
disabled: isSfUser.value,
|
|
|
}),
|
|
}),
|
|
|
show: (row: any) => row.firmType === 1, // 仅企业类型显示邀请码
|
|
show: (row: any) => row.firmType === 1, // 仅企业类型显示邀请码
|
|
@@ -456,6 +484,8 @@ const contentConfig: IContentConfig<FirmInfoPageQuery> = reactive({
|
|
|
attrs: () => ({
|
|
attrs: () => ({
|
|
|
type: "primary",
|
|
type: "primary",
|
|
|
icon: "edit",
|
|
icon: "edit",
|
|
|
|
|
+ link: true,
|
|
|
|
|
+ size: "small",
|
|
|
disabled: isSfUser.value,
|
|
disabled: isSfUser.value,
|
|
|
}),
|
|
}),
|
|
|
},
|
|
},
|
|
@@ -465,6 +495,8 @@ const contentConfig: IContentConfig<FirmInfoPageQuery> = reactive({
|
|
|
attrs: () => ({
|
|
attrs: () => ({
|
|
|
type: "danger",
|
|
type: "danger",
|
|
|
icon: "delete",
|
|
icon: "delete",
|
|
|
|
|
+ link: true,
|
|
|
|
|
+ size: "small",
|
|
|
disabled: isSfUser.value,
|
|
disabled: isSfUser.value,
|
|
|
}),
|
|
}),
|
|
|
},
|
|
},
|
|
@@ -549,7 +581,7 @@ const editModalConfig: IModalConfig<FirmInfoForm> = reactive({
|
|
|
// 处理操作按钮点击
|
|
// 处理操作按钮点击
|
|
|
const dialogTableVisible = ref(false);
|
|
const dialogTableVisible = ref(false);
|
|
|
const firmId = ref();
|
|
const firmId = ref();
|
|
|
-const firmName= ref();
|
|
|
|
|
|
|
+const firmName = ref();
|
|
|
|
|
|
|
|
// 上账/下账相关
|
|
// 上账/下账相关
|
|
|
const balanceDialogVisible = ref(false);
|
|
const balanceDialogVisible = ref(false);
|