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