封装钱包规则下拉框
This commit is contained in:
1 parent
c23f369a77
commit
7da1bb9a05
12 files changed
+194
-79
No files matched your search
@@ -30,10 +30,10 @@
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts" name="MchDeptUserDialog">
|
||||
<script setup lang="ts" name="MchDeptDialog">
|
||||
import { useDict } from "/@/hooks/dict"
|
||||
import { useMessage } from "/@/hooks/message"
|
||||
import { getObj, addObj, putObj } from "/@/api/wallet/mch-dept-user"
|
||||
import { getObj, addObj, putObj } from "/@/api/wallet/mch-dept"
|
||||
import { rule } from "/@/utils/validate"
|
||||
const emit = defineEmits(["refresh"])
|
||||
|
||||
@@ -86,9 +86,9 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts" name="systemMchDeptUser">
|
||||
<script setup lang="ts" name="systemMchDept">
|
||||
import { BasicTableProps, useTable } from "/@/hooks/table"
|
||||
import * as mchDeptUserApi from "/@/api/wallet/mch-dept-user"
|
||||
import * as mchDeptUserApi from "/@/api/wallet/mch-dept"
|
||||
import { useMessage, useMessageBox } from "/@/hooks/message"
|
||||
import { useDict } from "/@/hooks/dict"
|
||||
import { ro } from "element-plus/es/locale"
|
||||
@@ -1,15 +1,15 @@
|
||||
<template>
|
||||
<el-dialog :title="form.id ? '编辑' : '新增'" v-model="visible" :close-on-click-modal="false" draggable>
|
||||
<el-dialog :title="form.id ? '编辑' : '新增'" width="30%" v-model="visible" :close-on-click-modal="false" draggable>
|
||||
<el-form ref="dataFormRef" :model="form" :rules="dataRules" formDialogRef label-width="90px" v-loading="loading">
|
||||
<el-row :gutter="24">
|
||||
<el-col :span="24" class="mb20">
|
||||
<el-form-item label="规则" prop="rulePriceConfigId">
|
||||
<el-input v-model="form.rulePriceConfigId" placeholder="规则" />
|
||||
<select-mch-rule v-model="form.rulePriceConfigId" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24" class="mb20">
|
||||
<el-form-item label="目标商户" prop="tragetDeptId">
|
||||
<el-input v-model="form.tragetDeptId" placeholder="请输入目标商户id" />
|
||||
<select-mch v-model="form.tragetDeptId" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -26,7 +26,7 @@
|
||||
<script setup lang="ts" name="WalletRuleMchConfigFormDialog">
|
||||
import { useDict } from "/@/hooks/dict"
|
||||
import { useMessage } from "/@/hooks/message"
|
||||
import * as walletRuleMchConfigApi from "/@/api/wallet/wallet-rule-mch-config"
|
||||
import * as walletRuleMchConfigApi from "../../../api/wallet/mch-rule-join"
|
||||
import { rule } from "/@/utils/validate"
|
||||
const emit = defineEmits(["refresh"])
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts" name="mchRuleConfigDialog">
|
||||
import * as walletRuleMchConfigApi from "/@/api/wallet/wallet-rule-mch-config"
|
||||
import * as walletRuleMchConfigApi from "../../../api/wallet/mch-rule-join"
|
||||
import { BasicTableProps, useTable } from "/@/hooks/table"
|
||||
import { useMessage, useMessageBox } from "/@/hooks/message"
|
||||
import { useDict } from "/@/hooks/dict"
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<script setup lang="ts" name="WalletRulePriceConfigDialog">
|
||||
import { useDict } from "/@/hooks/dict"
|
||||
import { useMessage } from "/@/hooks/message"
|
||||
import { getObj, addObj, putObj } from "/@/api/wallet/wallet-rule-price-config"
|
||||
import { getObj, addObj, putObj } from "../../../api/wallet/mch-rule-price-config"
|
||||
import { storePrice, displayPrice } from "/@/utils/formatMoney"
|
||||
const emit = defineEmits(["refresh"])
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
|
||||
<script setup lang="ts" name="systemWalletRulePriceConfig">
|
||||
import { BasicTableProps, useTable } from "/@/hooks/table"
|
||||
import { fetchList, delObjs } from "/@/api/wallet/wallet-rule-price-config"
|
||||
import { fetchList, delObjs } from "../../../api/wallet/mch-rule-price-config"
|
||||
import { useMessage, useMessageBox } from "/@/hooks/message"
|
||||
import { displayPrice } from "/@/utils/formatMoney"
|
||||
import { useDict } from "/@/hooks/dict"
|
||||
|
||||
Reference in new issue
Block a user