From 4dccb704bbd9158e583b233da0de898682a1a947 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E7=BA=A2=E5=85=B5?= <374362909@qq.com> Date: Sat, 28 Feb 2026 11:25:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/finance/purchaseagent/form.vue | 64 ++++++++++++++----- src/views/finance/purchaseagent/index.vue | 22 ++++++- .../finance/purchasingrequisition/add.vue | 16 +++-- src/views/jsonflow/comment/timeline.vue | 6 +- 4 files changed, 81 insertions(+), 27 deletions(-) diff --git a/src/views/finance/purchaseagent/form.vue b/src/views/finance/purchaseagent/form.vue index 9b1208c..03242b5 100644 --- a/src/views/finance/purchaseagent/form.vue +++ b/src/views/finance/purchaseagent/form.vue @@ -1,28 +1,48 @@ - - - + + + + + + + + + 新增时自动创建系统用户,默认密码:Aa123456,角色:招标代理 + - @@ -48,6 +68,9 @@ const formRef = ref(); const dataForm = reactive({ id: '', agentName: '', + contactPerson: '', + contactPhone: '', + username: '', remark: '', }); const visible = ref(false); @@ -64,6 +87,9 @@ const openDialog = async (type: string, rowData?: any) => { visible.value = true; dataForm.id = ''; dataForm.agentName = ''; + dataForm.contactPerson = ''; + dataForm.contactPhone = ''; + dataForm.username = ''; dataForm.remark = ''; nextTick(() => { @@ -76,6 +102,9 @@ const openDialog = async (type: string, rowData?: any) => { Object.assign(dataForm, { id: res.data.id || '', agentName: res.data.agentName || '', + contactPerson: res.data.contactPerson || '', + contactPhone: res.data.contactPhone || '', + username: res.data.username || '', remark: res.data.remark || '', }); } @@ -124,5 +153,10 @@ defineExpose({ diff --git a/src/views/finance/purchaseagent/index.vue b/src/views/finance/purchaseagent/index.vue index ec6ba98..38223bc 100644 --- a/src/views/finance/purchaseagent/index.vue +++ b/src/views/finance/purchaseagent/index.vue @@ -75,7 +75,25 @@ 代理名称 - + + + + 联系人 + + + + + + 联系电话 + + + + + + 登录用户名 + + + 备注 @@ -206,7 +224,7 @@ import { BasicTableProps, useTable } from "/@/hooks/table"; import { getPage, delObj, getAgentSummary } from "/@/api/finance/purchaseagent"; import { deptTree } from '/@/api/admin/dept'; import { useMessage, useMessageBox } from "/@/hooks/message"; -import { List, Document, EditPen, Clock, Search } from '@element-plus/icons-vue' +import { List, Document, EditPen, Clock, Search, User, Phone, UserFilled } from '@element-plus/icons-vue' // 引入组件 const FormDialog = defineAsyncComponent(() => import('./form.vue')); diff --git a/src/views/finance/purchasingrequisition/add.vue b/src/views/finance/purchasingrequisition/add.vue index 417ac8b..2eb74ae 100644 --- a/src/views/finance/purchasingrequisition/add.vue +++ b/src/views/finance/purchasingrequisition/add.vue @@ -91,13 +91,13 @@ - + 委托采购中心采购: 在「部门自行采购」中选择「委托采购中心采购」作为采购途径时,申请阶段隐藏采购方式,由采购中心在审核环节选择; - 对服务类特殊品目且金额在 5 万 ~ 40 万区间时,采购中心会优先推荐「网上商城(服务网上商城)」方式。 + 对服务类特殊品目,采购中心会优先推荐「网上商城(服务网上商城)」方式。 @@ -979,8 +979,9 @@ watch( return; } - // 部门自行采购 & 采购途径为“委托采购中心采购”且为申请阶段:采购方式隐藏且不设置 - if (isDeptPurchase.value && isEntrustCenterChannel.value && !isFlowEmbed.value) { + // 部门自行采购 & 采购途径为”委托采购中心采购”且为新增申请阶段:采购方式隐藏且不设置 + // 注意:查看模式和编辑模式不清空已有的采购方式 + if (isDeptPurchase.value && isEntrustCenterChannel.value && !isFlowEmbed.value && !isViewMode.value && !isEditMode.value) { dataForm.purchaseType = ''; return; } @@ -1003,12 +1004,13 @@ watch( } } - // 部门自行采购 & 采购途径为“委托采购中心采购” & 采购中心审批节点:根据特殊服务类目自动设置网上商城 - if (isAutoSelectPurchaseType.value && isDeptPurchase.value && isEntrustCenterChannel.value && isFlowEmbed.value && isPurchaseCenter.value) { + // 部门自行采购 & 采购途径为”委托采购中心采购” & 采购中心审批节点:默认设置为网上商城 + if (isDeptPurchase.value && isEntrustCenterChannel.value && isFlowEmbed.value && isPurchaseCenter.value) { const onlineMallOption = purchaseTypeDeptList.value.find(item => item.value === DEPT_PURCHASE_TYPE.ONLINE_MALL); if (onlineMallOption && dataForm.purchaseType !== onlineMallOption.value) { dataForm.purchaseType = onlineMallOption.value; } + return; } // 学校统一采购审批阶段:自动设置网上商城采购方式 diff --git a/src/views/jsonflow/comment/timeline.vue b/src/views/jsonflow/comment/timeline.vue index 7ea61d6..360e091 100644 --- a/src/views/jsonflow/comment/timeline.vue +++ b/src/views/jsonflow/comment/timeline.vue @@ -10,7 +10,7 @@ @queryTable="getDataList"> - @@ -103,7 +103,7 @@ - @@ -116,7 +116,7 @@ :timestamp="item.endTime"> - {{ item.jobName }} {{ item.userName }} + {{ item.nodeName }} {{ item.userName }}