店铺调整

This commit is contained in:
BabyBoy 2025-07-29 16:26:32 +08:00
parent 88085eccc9
commit 8e1b373819
3 changed files with 24 additions and 6 deletions

View File

@ -3,7 +3,7 @@ import request from '@/utils/request';
// 查询商品分类列表
export function listPmsProductCategory(query, pageReq) {
return request({
url: '/pms/productCategory/list',
url: '/pms/productCategory/page',
method: 'post',
data: query,
params: pageReq

View File

@ -11,6 +11,13 @@ export function listTenant(query: TenantQuery): AxiosPromise<TenantVO[]> {
data: query
});
}
// 获取比例套餐分成下拉表
export function getlistDivide(query): AxiosPromise<TenantVO[]> {
return request({
url: '/system/commission-template/all',
method: 'get'
});
}
// 查询租户详细
export function getTenant(id: string | number): AxiosPromise<TenantVO> {

View File

@ -379,7 +379,10 @@
</el-col>
<el-col :span="8">
<el-form-item label="分成比例" prop="splitRatio">
<el-input v-model="form.splitRatio" type="text" placeholder="请输入分成比例" />
<!-- <el-input v-model="form.splitRatio" type="text" placeholder="请输入分成比例" /> -->
<el-select v-model="form.splitRatio" placeholder="请选择分成比例">
<el-option v-for="item in fnall" :key="item.id" :label="item.templateName" :value="item.id" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
@ -596,7 +599,7 @@
</el-col>
<el-col :span="8">
<el-form-item label="分成比例:" prop="splitRatio">
{{ tenantForm.splitRatio }}
{{ tenantForm.templateName }}
</el-form-item>
</el-col>
<el-col :span="8">
@ -620,18 +623,19 @@
</el-row>
</div>
</el-form>
<template #footer>
<!-- <template #footer>
<div class="dialog-footer">
<el-button :loading="buttonLoading" type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</template>
</template> -->
</el-dialog>
</div>
</template>
<script setup name="Tenant" lang="ts">
import {
getlistDivide,
listTenant,
getTenant,
delTenant,
@ -642,6 +646,7 @@ import {
syncTenantDict,
getTenantBannelList
} from '@/api/system/tenant';
import { listUmsMember } from '@/api/ums/member';
import { getDictionaryByKey } from '@/utils/dict';
import { selectTenantPackage } from '@/api/system/tenantPackage';
@ -764,6 +769,11 @@ const getByKey = async () => {
signList.value = orderStatusstatus;
};
const businessTypesjson = ref([]); //
const fnall = ref([]);
const accountCountFun = async () => {
const res = await getlistDivide();
fnall.value = res.data;
};
const initFormData: TenantForm = {
id: undefined,
tenantId: undefined,
@ -796,7 +806,7 @@ const initFormData: TenantForm = {
personName: '', //
personPhone: '', //
signDate: '', //
splitRatio: 0, //
splitRatio: '', //
signer: '', //
contractYear: '', //
signStatus: '', //
@ -1062,6 +1072,7 @@ const handleSyncTenantDict = async () => {
};
onMounted(() => {
accountCountFun();
getByKey();
getList();
});