Commit 1082cea9 authored by ccc2wdd's avatar ccc2wdd

变更签证管理,暂存功能实现

parent 1ed821ba
import { import { ProjectParams, ProjectModel } from '@/api/project/model/projectModel';
ProjectParams,
ProjectModel,
} from '@/api/project/model/projectModel';
import { defHttp } from '@/utils/http/axios'; import { defHttp } from '@/utils/http/axios';
enum Api { enum Api {
//查询厉害记录 //查询历史记录
operationList = '/pro/operator/oper-list', operationList = '/pro/operator/oper-list',
//添加变更记录 //添加变更记录
addItem = '/pro/operator/add-operator', addItem = '/pro/operator/add-operator',
} }
export enum operateType { export enum operateType {
update = "修改", update = '修改',
add = "新增", add = '新增',
delete = "删除", delete = '删除',
audit = "审核", audit = '审核',
} }
export const addItemData = {
export const addItemData={ operateType: '',
operateType: null, businessType: '',
businessType: null, businessId: null,
businessId: null, };
}
export const getOperationList = (params?: ProjectParams) => export const getOperationList = (params?: ProjectParams) =>
defHttp.get<ProjectModel>({ url: Api.operationList, params }) defHttp.get<ProjectModel>({ url: Api.operationList, params });
export const addItemApi = (params?: any) => export const addItemApi = (params?: any) =>
defHttp.post<ProjectModel>( defHttp.post<ProjectModel>({
{ url: Api.addItem,
url: Api.addItem, data: params,
data: params, headers: {
headers: { 'Content-Type': 'application/json;charset=UTF-8',
'Content-Type': 'application/json;charset=UTF-8', },
}, });
}
);
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
@ok="handleSubmit" @ok="handleSubmit"
@visible-change="handleVisibleChange" @visible-change="handleVisibleChange"
> >
<BasicTable @register="registerTable"> </BasicTable> <BasicTable @register="registerTable" />
</BasicModal> </BasicModal>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
...@@ -18,11 +18,12 @@ ...@@ -18,11 +18,12 @@
import { getGroupList } from '@/api/contract/contract'; import { getGroupList } from '@/api/contract/contract';
import { useMessage } from '@/hooks/web/useMessage'; import { useMessage } from '@/hooks/web/useMessage';
import { getBasicColumns } from './data'; import { getBasicColumns } from './data';
import { onMounted, ref,inject} from 'vue'; import { onMounted, ref, inject } from 'vue';
const isContent = ref(false); const isContent = ref(false);
const tableList = ref([]); const tableList = ref([]);
onMounted(async () => { onMounted(async () => {
showList() showList();
}); });
const [registerTable, { expandAll, getSelectRows }] = useTable({ const [registerTable, { expandAll, getSelectRows }] = useTable({
title: '树形表格', title: '树形表格',
...@@ -68,8 +69,8 @@ ...@@ -68,8 +69,8 @@
const emit = defineEmits(['close']); const emit = defineEmits(['close']);
function handleVisibleChange(v) {} function handleVisibleChange(v) {}
const [register, { closeModal }] = useModalInner((data) => { const [register, { closeModal }] = useModalInner((data) => {
console.log(data,"data数据查看") console.log(data, 'data数据查看');
if(data.isContent){ if (data.isContent) {
isContent.value = data.isContent; isContent.value = data.isContent;
// tableList.value=[] // tableList.value=[]
// showList() // showList()
...@@ -80,13 +81,12 @@ ...@@ -80,13 +81,12 @@
getSelectRowList(); getSelectRowList();
closeModal(); closeModal();
} }
async function showList(){ async function showList() {
const list = [];
const list=[] const listDate = await getGroupList({ isContent: true });
const listDate= await getGroupList({ isContent: true}); if (listDate.length > 0) {
if(listDate.length>0){ list.push(...listDate);
list.push(...listDate) }
}
for (let i = 0; i < list.length; i++) { for (let i = 0; i < list.length; i++) {
list[i].id = list[i].id + '_' + Math.random().toString(36).substring(2, 10); list[i].id = list[i].id + '_' + Math.random().toString(36).substring(2, 10);
let item = list[i].children; let item = list[i].children;
......
...@@ -8,7 +8,7 @@ const changeSignature: AppRouteModule = { ...@@ -8,7 +8,7 @@ const changeSignature: AppRouteModule = {
component: LAYOUT, component: LAYOUT,
redirect: '/changeSignature/index', redirect: '/changeSignature/index',
meta: { meta: {
hideChildrenInMenu: true, hideChildrenInMenu: false,
icon: 'icon-park-outline:align-text-left-one', icon: 'icon-park-outline:align-text-left-one',
orderNo: 5, orderNo: 5,
auth: '/www/dist/index.html#/changeSignature/index', auth: '/www/dist/index.html#/changeSignature/index',
...@@ -25,11 +25,22 @@ const changeSignature: AppRouteModule = { ...@@ -25,11 +25,22 @@ const changeSignature: AppRouteModule = {
orderNo: 5, orderNo: 5,
}, },
}, },
{
path: 'statistic',
name: 'changeSignatureStatistic',
component: () => import('@/views/changeSignature/statistic/index.vue'),
meta: {
auth: '/www/dist/index.html#/changeSignature/index',
title: '签证管理统计',
orderNo: 5,
},
},
{ {
path: 'edit', path: 'edit',
name: 'addChangeSignature', name: 'addChangeSignature',
component: () => import('@/views/changeSignature/addChangeSignature.vue'), component: () => import('@/views/changeSignature/addChangeSignature.vue'),
meta: { meta: {
hideMenu: true,
auth: '/www/dist/index.html#/changeSignature/index', auth: '/www/dist/index.html#/changeSignature/index',
title: '新建变更管理', title: '新建变更管理',
orderNo: 8, orderNo: 8,
......
...@@ -275,9 +275,6 @@ export const Content: FormSchema[] = [ ...@@ -275,9 +275,6 @@ export const Content: FormSchema[] = [
labelWidth: '300px', labelWidth: '300px',
required: true, required: true,
component: 'InputNumber', component: 'InputNumber',
componentProps: {
addonAfter: '元',
},
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
...@@ -286,7 +283,7 @@ export const Content: FormSchema[] = [ ...@@ -286,7 +283,7 @@ export const Content: FormSchema[] = [
field: 'changeNumber', field: 'changeNumber',
label: '变更编号', label: '变更编号',
required: true, required: true,
component: 'input', component: 'Input',
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
{ {
...@@ -383,6 +380,9 @@ export const Content: FormSchema[] = [ ...@@ -383,6 +380,9 @@ export const Content: FormSchema[] = [
label: '预估签证金额:', label: '预估签证金额:',
required: true, required: true,
component: 'InputNumber', component: 'InputNumber',
componentProps: {
addonAfter: '元',
},
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
//预估签证金额占合同金额比例 //预估签证金额占合同金额比例
...@@ -394,7 +394,6 @@ export const Content: FormSchema[] = [ ...@@ -394,7 +394,6 @@ export const Content: FormSchema[] = [
component: 'InputNumber', component: 'InputNumber',
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
{ {
//meeting_minutes //meeting_minutes
label: '会议纪要', label: '会议纪要',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment