产值计划
This commit is contained in:
@ -22,19 +22,11 @@
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['out:constructionValue:add']">新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['out:constructionValue:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['out:constructionValue:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['out:constructionValue:export']">导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
</template>
|
||||
@ -75,7 +67,7 @@
|
||||
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
||||
</el-card>
|
||||
<!-- 添加或修改施工产值对话框 -->
|
||||
<el-dialog :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body>
|
||||
<el-dialog draggable :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body>
|
||||
<el-form ref="constructionValueFormRef" :model="form" :rules="rules" label-width="120px">
|
||||
<el-form-item label="方阵" prop="matrixId" v-if="!form.id">
|
||||
<el-cascader
|
||||
|
@ -63,11 +63,10 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
||||
</el-card>
|
||||
<!-- 添加或修改月度产值计划对话框 -->
|
||||
<el-dialog :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body>
|
||||
<el-dialog draggable :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body>
|
||||
<el-form ref="monthPlanFormRef" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="所属项目" prop="projectId">
|
||||
<el-select v-model="form.projectId" placeholder="请选择所属项目">
|
||||
|
@ -4,9 +4,6 @@
|
||||
<div v-show="showSearch" class="mb-[10px]">
|
||||
<el-card shadow="hover">
|
||||
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
||||
<el-form-item label="计划产值" prop="planValue">
|
||||
<el-input v-model="queryParams.planValue" placeholder="请输入计划产值" clearable @keyup.enter="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="计划月份" prop="planMonth">
|
||||
<el-date-picker v-model="queryParams.planMonth" type="month" value-format="YYYY-MM" placeholder="请选择计划月份" />
|
||||
</el-form-item>
|
||||
@ -30,19 +27,11 @@
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['out:monthPlan:add']">新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['out:monthPlan:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['out:monthPlan:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['out:monthPlan:export']">导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
</template>
|
||||
@ -75,7 +64,7 @@
|
||||
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
||||
</el-card>
|
||||
<!-- 添加或修改月度产值计划对话框 -->
|
||||
<el-dialog :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body>
|
||||
<el-dialog draggable :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body>
|
||||
<el-form ref="monthPlanFormRef" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="计划产值" prop="planValue">
|
||||
<el-input v-model="form.planValue" placeholder="请输入计划产值" />
|
||||
@ -256,18 +245,6 @@ const handleAudit = async (row?: MonthPlanVO) => {
|
||||
type: 'update'
|
||||
});
|
||||
};
|
||||
|
||||
/** 导出按钮操作 */
|
||||
const handleExport = () => {
|
||||
proxy?.download(
|
||||
'out/monthPlan/export',
|
||||
{
|
||||
...queryParams.value
|
||||
},
|
||||
`monthPlan_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
getList();
|
||||
});
|
||||
@ -285,4 +262,7 @@ const listeningProject = watch(
|
||||
onUnmounted(() => {
|
||||
listeningProject();
|
||||
});
|
||||
defineExpose({
|
||||
getList
|
||||
});
|
||||
</script>
|
||||
|
30
src/views/out/monthPlan/indexAll.vue
Normal file
30
src/views/out/monthPlan/indexAll.vue
Normal file
@ -0,0 +1,30 @@
|
||||
<template>
|
||||
<div class="p-2">
|
||||
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
|
||||
<el-tab-pane label="月度产值计划" name="first">
|
||||
<monthPlan ref="monthPlanChild"></monthPlan>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="已通过月度计划" name="second">
|
||||
<monthPlanAudit ref="monthPlanAuditChild"></monthPlanAudit>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="MonthPlan" lang="ts">
|
||||
import { ref, watch, computed } from 'vue';
|
||||
import monthPlan from './index.vue'; //子组件
|
||||
import monthPlanAudit from '../monthPlanAudit/index.vue'; //子组件
|
||||
// 引用子组件
|
||||
const activeName = ref('first');
|
||||
const monthPlanChild = ref<InstanceType<typeof monthPlan> | null>(null);
|
||||
const monthPlanAuditChild = ref<InstanceType<typeof monthPlanAudit> | null>(null);
|
||||
const handleClick = () => {
|
||||
// 调用子组件方法
|
||||
if (activeName.value == 'first') {
|
||||
monthPlanChild.value.getList(); //子组件方法
|
||||
} else if (activeName.value == 'second') {
|
||||
monthPlanAuditChild.value.getList(); //子组件方法
|
||||
}
|
||||
};
|
||||
</script>
|
@ -26,9 +26,6 @@
|
||||
<el-card shadow="never">
|
||||
<template #header>
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['out:monthPlanAudit:export']">导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
</template>
|
||||
@ -218,16 +215,6 @@ const handleDelete = async (row?: MonthPlanAuditVO) => {
|
||||
await getList();
|
||||
};
|
||||
|
||||
/** 导出按钮操作 */
|
||||
const handleExport = () => {
|
||||
proxy?.download(
|
||||
'out/monthPlanAudit/export',
|
||||
{
|
||||
...queryParams.value
|
||||
},
|
||||
`monthPlanAudit_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
getList();
|
||||
@ -246,4 +233,7 @@ const listeningProject = watch(
|
||||
onUnmounted(() => {
|
||||
listeningProject();
|
||||
});
|
||||
defineExpose({
|
||||
getList
|
||||
});
|
||||
</script>
|
||||
|
@ -9,7 +9,8 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="产值类型" prop="valueType">
|
||||
<el-select v-model="queryParams.valueType" placeholder="请选择产值类型">
|
||||
<el-option v-for="item in out_value_type" :key="item.value" :label="item.label" :value="item.value" />
|
||||
<el-option label="设计" value="1" />
|
||||
<el-option label="采购" value="2" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
@ -23,9 +24,6 @@
|
||||
<el-card shadow="never">
|
||||
<template #header>
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['out:valueAllocation:export']">导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
</template>
|
||||
@ -57,14 +55,13 @@ const valueAllocationList = ref([]);
|
||||
const loading = ref(true);
|
||||
const showSearch = ref(true);
|
||||
const total = ref(0);
|
||||
const { out_value_type } = toRefs<any>(proxy?.useDict('out_value_type'));
|
||||
|
||||
var { out_value_type } = toRefs<any>(proxy?.useDict('out_value_type'));
|
||||
const queryFormRef = ref<ElFormInstance>();
|
||||
const data = reactive({
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
valueType: undefined,
|
||||
valueType: '1',
|
||||
projectId: currentProject.value.id,
|
||||
month: undefined
|
||||
}
|
||||
|
@ -23,9 +23,6 @@
|
||||
<el-card shadow="never">
|
||||
<template #header>
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['out:valueAllocation:export']">导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
</template>
|
||||
|
@ -18,9 +18,6 @@
|
||||
<el-card shadow="never">
|
||||
<template #header>
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['out:valueAllocation:export']">导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
</template>
|
||||
|
@ -19,9 +19,6 @@
|
||||
<el-card shadow="never">
|
||||
<template #header>
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['out:valueAllocation:export']">导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
</template>
|
||||
|
@ -27,19 +27,11 @@
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['out:settlementValueOwner:add']">新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['out:settlementValueOwner:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['out:settlementValueOwner:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['out:settlementValueOwner:export']">导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
</template>
|
||||
@ -88,7 +80,7 @@
|
||||
<el-dialog :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body>
|
||||
<el-form ref="settlementValueOwnerFormRef" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="结算产值" prop="settlementValue">
|
||||
<el-input v-model="form.settlementValue" placeholder="请输入结算产值" />
|
||||
<el-input v-model="form.settlementValue" type="number" placeholder="请输入结算产值" />
|
||||
</el-form-item>
|
||||
<el-form-item label="产值类型" prop="valueType">
|
||||
<el-select v-model="form.valueType" placeholder="请选择产值类型">
|
||||
@ -261,16 +253,6 @@ const handleDelete = async (row?: SettlementValueOwnerVO) => {
|
||||
await getList();
|
||||
};
|
||||
|
||||
/** 导出按钮操作 */
|
||||
const handleExport = () => {
|
||||
proxy?.download(
|
||||
'out/settlementValueOwner/export',
|
||||
{
|
||||
...queryParams.value
|
||||
},
|
||||
`settlementValueOwner_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
getList();
|
||||
@ -289,4 +271,7 @@ const listeningProject = watch(
|
||||
onUnmounted(() => {
|
||||
listeningProject();
|
||||
});
|
||||
defineExpose({
|
||||
getList
|
||||
});
|
||||
</script>
|
||||
|
@ -28,17 +28,6 @@
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['out:settlementValueSubcontract:add']">新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="Edit"
|
||||
:disabled="single"
|
||||
@click="handleUpdate()"
|
||||
v-hasPermi="['out:settlementValueSubcontract:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
@ -50,11 +39,6 @@
|
||||
>删除</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['out:settlementValueSubcontract:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
</template>
|
||||
@ -102,11 +86,10 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
||||
</el-card>
|
||||
<!-- 添加或修改结算产值登记(对乙)对话框 -->
|
||||
<el-dialog :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body>
|
||||
<el-dialog draggable :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body>
|
||||
<el-form ref="settlementValueSubcontractFormRef" :model="form" :rules="rules" label-width="100px">
|
||||
<el-form-item label="单据编码" prop="documentCode">
|
||||
<el-input v-model="form.documentCode" placeholder="请输入单据编码" />
|
||||
@ -132,7 +115,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="结算产值" prop="settlementValue">
|
||||
<el-input v-model="form.settlementValue" placeholder="请输入结算产值" />
|
||||
<el-input v-model="form.settlementValue" type="number" placeholder="请输入结算产值" />
|
||||
</el-form-item>
|
||||
<el-form-item label="说明" prop="remark">
|
||||
<el-input v-model="form.remark" placeholder="请输入说明" />
|
||||
@ -143,9 +126,6 @@
|
||||
<el-form-item label="合同名称" prop="contractName">
|
||||
<el-input v-model="form.contractName" placeholder="请输入合同名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="合同地址" prop="contractUrl">
|
||||
<el-input v-model="form.contractUrl" placeholder="请输入合同地址" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
@ -335,17 +315,6 @@ const handleDelete = async (row?: SettlementValueSubcontractVO) => {
|
||||
await getList();
|
||||
};
|
||||
|
||||
/** 导出按钮操作 */
|
||||
const handleExport = () => {
|
||||
proxy?.download(
|
||||
'out/settlementValueSubcontract/export',
|
||||
{
|
||||
...queryParams.value
|
||||
},
|
||||
`settlementValueSubcontract_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
getList();
|
||||
});
|
||||
@ -363,4 +332,7 @@ const listeningProject = watch(
|
||||
onUnmounted(() => {
|
||||
listeningProject();
|
||||
});
|
||||
defineExpose({
|
||||
getList
|
||||
});
|
||||
</script>
|
||||
|
30
src/views/out/settlementValueSubcontract/indexAll.vue
Normal file
30
src/views/out/settlementValueSubcontract/indexAll.vue
Normal file
@ -0,0 +1,30 @@
|
||||
<template>
|
||||
<div class="p-2">
|
||||
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
|
||||
<el-tab-pane label="对甲-结算登记" name="second">
|
||||
<settlementValueOwner ref="settlementValueOwnerChild"></settlementValueOwner>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="对乙-结算登记" name="first">
|
||||
<settlementValueSubcontract ref="settlementValueSubcontractChild"></settlementValueSubcontract>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="MonthPlan" lang="ts">
|
||||
import { ref, watch, computed } from 'vue';
|
||||
import settlementValueSubcontract from './index.vue'; //子组件
|
||||
import settlementValueOwner from '../settlementValueOwner/index.vue'; //子组件
|
||||
// 引用子组件
|
||||
const activeName = ref('second');
|
||||
const settlementValueSubcontractChild = ref<InstanceType<typeof settlementValueSubcontract> | null>(null);
|
||||
const settlementValueOwnerChild = ref<InstanceType<typeof settlementValueOwner> | null>(null);
|
||||
const handleClick = () => {
|
||||
// 调用子组件方法
|
||||
if (activeName.value == 'first') {
|
||||
settlementValueSubcontractChild.value.getList(); //子组件方法
|
||||
} else if (activeName.value == 'second') {
|
||||
settlementValueOwnerChild.value.getList(); //子组件方法
|
||||
}
|
||||
};
|
||||
</script>
|
@ -6,19 +6,11 @@
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['out:valueAllocation:add']">新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['out:valueAllocation:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['out:valueAllocation:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['out:valueAllocation:export']">导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
</template>
|
||||
@ -48,7 +40,7 @@
|
||||
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
||||
</el-card>
|
||||
<!-- 添加或修改项目总产值分配对话框 -->
|
||||
<el-dialog :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body>
|
||||
<el-dialog draggable :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body>
|
||||
<el-form ref="valueAllocationFormRef" :model="form" :rules="rules" label-width="120px">
|
||||
<el-form-item label="对甲总产值" prop="ownerTotalValue">
|
||||
<el-input v-model="form.ownerTotalValue" placeholder="请输入对甲总产值" />
|
||||
|
Reference in New Issue
Block a user