店铺调整
This commit is contained in:
parent
88085eccc9
commit
8e1b373819
@ -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
|
||||||
|
@ -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> {
|
||||||
|
@ -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();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user