店铺调整

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) { export function listPmsProductCategory(query, pageReq) {
return request({ return request({
url: '/pms/productCategory/list', url: '/pms/productCategory/page',
method: 'post', method: 'post',
data: query, data: query,
params: pageReq params: pageReq

View File

@ -11,6 +11,13 @@ export function listTenant(query: TenantQuery): AxiosPromise<TenantVO[]> {
data: query 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> { export function getTenant(id: string | number): AxiosPromise<TenantVO> {

View File

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