From 9d7dc83573dc9e22554c1b626323e9e6ad4028ac Mon Sep 17 00:00:00 2001 From: zhouhaibin Date: Tue, 25 Jun 2024 09:53:55 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../countStatistics/countStatistics.data.ts | 33 +----- .../countStatistics/modifycountStatistics.vue | 100 +++++++++++++----- 2 files changed, 76 insertions(+), 57 deletions(-) diff --git a/src/views/informationSub/countStatistics/countStatistics.data.ts b/src/views/informationSub/countStatistics/countStatistics.data.ts index d0156e0..b73ec8b 100644 --- a/src/views/informationSub/countStatistics/countStatistics.data.ts +++ b/src/views/informationSub/countStatistics/countStatistics.data.ts @@ -1,37 +1,8 @@ import { FormSchema } from '@/components/Form'; import { BasicColumn } from '@/components/Table'; -import { useDictStore } from '@/store/modules/dict'; -import { getDutyWorkplaceList, getadminDivisionList } from './countStatistics.api'; -import { get } from 'sortablejs'; -let dutyWorkplaceOption=[] -let adminDivisionOption=[] -async function getDutyWorkplaceOptions() { - let list = await getDutyWorkplaceList(); - let uniqueList = [...new Set(list)]; - let res= uniqueList.map(item => { - return { - label: item, - value: item - } -}) -console.log("wwres",res) -return res -} -async function getadminDivisionOptions() { - let list = await getadminDivisionList(); - let uniqueList = [...new Set(list)]; - let res= uniqueList.map(item => { - return { - label: item, - value: item - } - }) - console.log("wres",res) - return res -} export const countStatisticsColumns: BasicColumn[] = [ { @@ -82,7 +53,7 @@ export const countStatisticsFormSchema: FormSchema[] = [ required: true, component: 'Select', componentProps: { - options:await getDutyWorkplaceOptions() + options:[] }, colProps: { span:12}, }, @@ -92,7 +63,7 @@ export const countStatisticsFormSchema: FormSchema[] = [ required: true, component: 'Select', componentProps: { - options:await getadminDivisionOptions() + options:[] }, colProps: { span:12 }, }, diff --git a/src/views/informationSub/countStatistics/modifycountStatistics.vue b/src/views/informationSub/countStatistics/modifycountStatistics.vue index a23f1c0..b1fbb28 100644 --- a/src/views/informationSub/countStatistics/modifycountStatistics.vue +++ b/src/views/informationSub/countStatistics/modifycountStatistics.vue @@ -19,12 +19,30 @@ modifyPeriodicallabCount, getperiodicallabById, addPeriodicallabCount, + getDutyWorkplaceList, + getadminDivisionList, } from './countStatistics.api'; + import { useModalInner, BasicModal } from '@/components/Modal'; const [registerModal, { closeModal }] = useModalInner(init); let id = ref(''); let emit = defineEmits(['exit']); async function init(dataTo) { + let dutyWorkplaceOption = await getDutyWorkplaceOptions(); + let adminDivisionOption = await getadminDivisionOptions(); + + updateSchema({ + field: 'dutyWorkplace', + componentProps: { + options: dutyWorkplaceOption, + }, + }); + updateSchema({ + field: 'adminDivision', + componentProps: { + options: adminDivisionOption, + }, + }); id.value = dataTo.id; if (dataTo.id) { let res = await getperiodicallabById({ id: dataTo.id }); @@ -33,30 +51,31 @@ } } onMounted(async () => {}); - const [registerchangeFieldForm, { getFieldsValue, validate, setFieldsValue }] = useForm({ - //注册表单列 - schemas: countStatisticsFormSchema, - //自定义查询按钮的文本和图标 - // submitButtonOptions: { text: '提交', preIcon: '' }, - //自定义重置按钮的文本和图标 - resetButtonOptions: { text: '取消' }, - // showActionButtonGroup: false, - //回车提交 - // autoSubmitOnEnter: true, - // //不显示重置按钮 - // showResetButton: false, - //自定义提交按钮文本和图标 - submitButtonOptions: { text: '提交' }, - //查询列占比 24代表一行 取值范围 0-24 - actionColOptions: { span: 14 }, - //提交按钮的自定义事件 - // submitFunc: customSubmitFunc, - //重置按钮的自定义时间 - resetFunc: customResetFunc, - labelCol: { style: { width: '120px' } }, - wrapperCol: { style: { width: 'auto' } }, - // disabled:true - }); + const [registerchangeFieldForm, { getFieldsValue, validate, setFieldsValue, updateSchema }] = + useForm({ + //注册表单列 + schemas: countStatisticsFormSchema, + //自定义查询按钮的文本和图标 + // submitButtonOptions: { text: '提交', preIcon: '' }, + //自定义重置按钮的文本和图标 + resetButtonOptions: { text: '取消' }, + // showActionButtonGroup: false, + //回车提交 + // autoSubmitOnEnter: true, + // //不显示重置按钮 + // showResetButton: false, + //自定义提交按钮文本和图标 + submitButtonOptions: { text: '提交' }, + //查询列占比 24代表一行 取值范围 0-24 + actionColOptions: { span: 14 }, + //提交按钮的自定义事件 + // submitFunc: customSubmitFunc, + //重置按钮的自定义时间 + resetFunc: customResetFunc, + labelCol: { style: { width: '120px' } }, + wrapperCol: { style: { width: 'auto' } }, + // disabled:true + }); async function handleSubmit() { if (await validate()) { if (id.value) { @@ -68,12 +87,41 @@ } emit('exit'); - closeModal() + closeModal(); } } async function customResetFunc() { emit('exit'); - closeModal() + closeModal(); + } + async function getDutyWorkplaceOptions() { + let dutyWorkplaceOption = await getDutyWorkplaceList(); + + let uniqueList = [...new Set(dutyWorkplaceOption)]; + + let res = uniqueList.map((item) => { + return { + label: item, + value: item, + }; + }); + console.log('wwres', res); + + return res; + } + async function getadminDivisionOptions() { + let adminDivisionOption = await getadminDivisionList(); + + let uniqueList = [...new Set(adminDivisionOption)]; + + let res = uniqueList.map((item) => { + return { + label: item, + value: item, + }; + }); + console.log('wres', res); + return res; } From ec57b0db46127efc9d2aa3436b6eae3946ff31ab Mon Sep 17 00:00:00 2001 From: zhouhaibin Date: Thu, 27 Jun 2024 11:16:20 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=81=94=E5=90=88?= =?UTF-8?q?=E6=8A=80=E6=9C=AF=E5=AE=A1=E6=9F=A5=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/ApprovalPageModel.vue | 3 +- .../component/ProjectinfoComponent.vue | 10 +- .../uploadURTfileApproval.vue | 156 ++++++++++++++++++ src/views/myWork/inComplete/inComplete.api.ts | 3 + .../projectInfo/projectInfo.data.ts | 8 +- .../projectPlan/ProjectinfoComponent.vue | 135 +++++++++++++++ src/views/projectLib/projectPlan/index.vue | 29 +++- .../projectLib/projectPlan/projectPlan.api.ts | 6 +- .../projectPlan/projectPlan.data.ts | 60 ++++++- .../projectLib/projectPlan/uploadURTfile.vue | 107 ++++++++++++ 10 files changed, 503 insertions(+), 14 deletions(-) create mode 100644 src/views/ProcessApprovalSubPage/uploadURTfileApproval.vue create mode 100644 src/views/projectLib/projectPlan/ProjectinfoComponent.vue create mode 100644 src/views/projectLib/projectPlan/uploadURTfile.vue diff --git a/src/views/ProcessApprovalSubPage/component/ApprovalPageModel.vue b/src/views/ProcessApprovalSubPage/component/ApprovalPageModel.vue index 60b93fc..d3bd11a 100644 --- a/src/views/ProcessApprovalSubPage/component/ApprovalPageModel.vue +++ b/src/views/ProcessApprovalSubPage/component/ApprovalPageModel.vue @@ -6,7 +6,7 @@ - + + diff --git a/src/views/myWork/inComplete/inComplete.api.ts b/src/views/myWork/inComplete/inComplete.api.ts index 7a51a5f..e1cf1b1 100644 --- a/src/views/myWork/inComplete/inComplete.api.ts +++ b/src/views/myWork/inComplete/inComplete.api.ts @@ -12,6 +12,7 @@ export enum Api { queryProcessInfo = '/workflow/getprocessInfo', getProcessInstanceIdByProid = "/workflow/getProcessInstanceIdByProid", getWorkcountNumber="/workflow/getWorkcountNumber", + approveURTFile="/huzhouUploadfileinfo/approveURTFile" } /** @@ -29,6 +30,8 @@ export const approveUploadFile = (params) => defHttp.post({ url: Api.approveUplo export const modifyProjectInfo = (params) => defHttp.post({ url: Api.modifyProjectInfo, params }) export const approvePlanFile = (params) => defHttp.post({ url: Api.approvePlanFile, headers: { "Content-Type": "multipart/form-data" }, params }) +export const approveURTFile = (params) => defHttp.post({ url: Api.approveURTFile, headers: { "Content-Type": "multipart/form-data" }, params }) + export const openApprovePage = (record,router) => { if (record.stage == 1) { router.push({ // push方法 diff --git a/src/views/projectLib/projectInfo/projectInfo.data.ts b/src/views/projectLib/projectInfo/projectInfo.data.ts index 1ba5658..622ce9d 100644 --- a/src/views/projectLib/projectInfo/projectInfo.data.ts +++ b/src/views/projectLib/projectInfo/projectInfo.data.ts @@ -3,11 +3,7 @@ import { BasicColumn } from '@/components/Table'; import { useDictStore } from '@/store/modules/dict'; import { useUserStore } from '@/store/modules/user'; const userStore = useUserStore(); -import { ref } from 'vue' const dictStore = useDictStore(); - -const reformTasksDicts: Array = dictStore.selectDictArray("reformTasks") -const roomDicts: Array = dictStore.selectDictArray("superLeader") import { getWorkPlaceTypeDict, getContactorDict, getUserDictByRoles } from '../initiatesProjects/initiatesProjects.api' @@ -890,6 +886,10 @@ export const resourcetableColumns: BasicColumn[] = [ title: '上传时间', dataIndex: 'createDate', }, + { + title: '处理人', + dataIndex: 'createUser', + }, { title: '文件状态', dataIndex: 'status', diff --git a/src/views/projectLib/projectPlan/ProjectinfoComponent.vue b/src/views/projectLib/projectPlan/ProjectinfoComponent.vue new file mode 100644 index 0000000..695c328 --- /dev/null +++ b/src/views/projectLib/projectPlan/ProjectinfoComponent.vue @@ -0,0 +1,135 @@ + + + + + \ No newline at end of file diff --git a/src/views/projectLib/projectPlan/index.vue b/src/views/projectLib/projectPlan/index.vue index 851740b..d73699a 100644 --- a/src/views/projectLib/projectPlan/index.vue +++ b/src/views/projectLib/projectPlan/index.vue @@ -7,7 +7,9 @@ @@ -18,6 +20,11 @@ :showCancelBtn="false"> + + + @@ -34,10 +41,15 @@ import viewPlanDetail from "@/views/projectLib/projectPlan/viewPlanDetail.vue"; import { isShowByRoles } from '@/views/projectLib/projectInfo/projectInfo.api'; import { columns } from '@/views/projectLib/projectInfo/projectInfo.data'; -import { searchFormSchema } from '@/views/projectLib/projectPlan/projectPlan.data'; -import { projectPlanPageList } from '@/views/projectLib/projectPlan/projectPlan.api'; +import { searchFormSchema ,unitedTechnicalRevieColumns} from '@/views/projectLib/projectPlan/projectPlan.data'; +import { projectPlanPageList,getUnitedTechnicalReviewList } from '@/views/projectLib/projectPlan/projectPlan.api'; import { useUserStore } from '@/store/modules/user'; import { useRouter } from 'vue-router'; // 导入 useRouter +import ProjectinfoComponent from './ProjectinfoComponent.vue' +import uploadURTfile from "@/views/projectLib/projectPlan/uploadURTfile.vue" +const [registerProjectinfo, { openModal: openModalProjectinfo,closeModal: closeModalProjectinfo}] = useModal();//选择项目页面 +const [registerUnitedTechnicalReview, { openModal:openUnitedTechnicalReviewmode,closeModal:closeUnitedTechnicalReviewmode}] = useModal();//新增修改周月报页面 + const router = useRouter(); let projectId = ref(); let type = ref(); @@ -123,6 +135,17 @@ function openModfiyInfoPage() { router.push({ path: '/projectLib/planinfoHistory/index' }) } +function openUnitedTechnicalReview() { + openModalProjectinfo(true,{title:"联合技术审查",api:getUnitedTechnicalReviewList,columns:unitedTechnicalRevieColumns}) +} + +function openModalProjectr(value) { + openUnitedTechnicalReviewmode(true,{projectid:value.id}) +} +function closeModel() { + closeUnitedTechnicalReviewmode() + closeModalProjectinfo() +}