From 32b58d7c79c2debcd30fc2438f43a2859b71ee84 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com>
Date: Wed, 31 Dec 2025 17:21:39 +0800
Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E9=81=93=E6=B0=94=E9=87=87=E8=B4=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../common/contractFactListModal.vue | 123 ++++
.../common/correlationApproList.vue | 150 +++++
.../common/correlationContractFactList.vue | 152 +++++
.../ContractFact/components/config.ts | 2 +-
.../ContractFact/components/createForm.vue | 57 +-
.../ContractPurPng/components/config.ts | 57 +-
.../ContractPurPng/components/createForm.vue | 576 ++++++++++++++++++
src/views/contract/ContractPurPng/index.vue | 9 +-
src/views/secondDev/customFormConfig.ts | 5 +-
9 files changed, 1021 insertions(+), 110 deletions(-)
create mode 100644 src/components/common/contractFactListModal.vue
create mode 100644 src/components/common/correlationApproList.vue
create mode 100644 src/components/common/correlationContractFactList.vue
create mode 100644 src/views/contract/ContractPurPng/components/createForm.vue
diff --git a/src/components/common/contractFactListModal.vue b/src/components/common/contractFactListModal.vue
new file mode 100644
index 0000000..b3d9fdc
--- /dev/null
+++ b/src/components/common/contractFactListModal.vue
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/components/common/correlationApproList.vue b/src/components/common/correlationApproList.vue
new file mode 100644
index 0000000..df5cadf
--- /dev/null
+++ b/src/components/common/correlationApproList.vue
@@ -0,0 +1,150 @@
+
+
+
+ 关联签报
+
+
+
+
+
+
+ 查看
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/src/components/common/correlationContractFactList.vue b/src/components/common/correlationContractFactList.vue
new file mode 100644
index 0000000..1741965
--- /dev/null
+++ b/src/components/common/correlationContractFactList.vue
@@ -0,0 +1,152 @@
+
+
+
+ 关联合同
+
+
+
+
+
+
+ 查看
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/src/views/contract/ContractFact/components/config.ts b/src/views/contract/ContractFact/components/config.ts
index 2345fad..253add3 100644
--- a/src/views/contract/ContractFact/components/config.ts
+++ b/src/views/contract/ContractFact/components/config.ts
@@ -8,7 +8,7 @@ export const formConfig = {
export const searchFormSchema: FormSchema[] = [
{
field: 'kName',
- label: '合同号',
+ label: '合同号/名称',
component: 'Input',
},
{
diff --git a/src/views/contract/ContractFact/components/createForm.vue b/src/views/contract/ContractFact/components/createForm.vue
index 5f273c0..32c60c1 100644
--- a/src/views/contract/ContractFact/components/createForm.vue
+++ b/src/views/contract/ContractFact/components/createForm.vue
@@ -214,22 +214,7 @@
-
- 关联签报
-
-
-
-
-
-
- 查看
- 删除
-
-
-
-
+
@@ -261,11 +246,11 @@
import deptListModal from '/@/components/common/deptListModal.vue';
import approListModal from '/@/components/common/approListModal.vue';
import contractFactUserModal from '/@/components/common/contractFactUserModal.vue';
+ import correlationApproList from '/@/components/common/correlationApproList.vue';
import { amountToChinese } from '/@/utils/amountToChinese';
- import { parseDownloadUrl} from '/@/api/system/file';
- import { downloadByUrl } from '/@/utils/file/download';
+ import { Modal } from 'ant-design-vue';
- import { Modal } from 'ant-design-vue';
+
import { useUserStore } from '/@/store/modules/user';
const userStore = useUserStore();
const userInfo = userStore.getUserInfo;
@@ -445,11 +430,6 @@
}
}
- const handleDownload = (info) => {
- const url = parseDownloadUrl(info.response ? info.response.data.fileUrl : info.fileUrl);
- const fileName = info.response ? info.response.data.fileOrg : info.fileOrg;
- downloadByUrl({ url, fileName: fileName});
- };
const periodTypeCodeChange = (val) => {
if (val === 'Y') {
rules.dateTo = [{ required: true, message: "该项为必填项", trigger: 'change' }]
@@ -486,6 +466,9 @@
}
return endValue.valueOf() <= startValue.valueOf();
}
+ const getApproList = (val) => {
+ dataListAppro.value = val
+ }
const onSearch = (val)=> {
openModalDept(true,{isUpdate: false})
}
@@ -550,31 +533,7 @@
}
}
- // 签报
- if (type == 'appro') {
- if (btn == 'delete') {
- Modal.confirm({
- title: '提示信息',
- content: '是否取消关联?',
- okText: '确认',
- cancelText: '取消',
- onOk() {
- dataListAppro.value.splice(index, 1);
- },
- onCancel() {}
- });
-
- }
- if (btn == 'view') {
- router.push({
- path: '/approve/Appro/form',
- query: {
- id: record.id || record.approId,
- disabled: true
- }
- })
- }
- }
+
}
function unique(arr, u_key) {
diff --git a/src/views/contract/ContractPurPng/components/config.ts b/src/views/contract/ContractPurPng/components/config.ts
index b1dd32b..9a63199 100644
--- a/src/views/contract/ContractPurPng/components/config.ts
+++ b/src/views/contract/ContractPurPng/components/config.ts
@@ -6,19 +6,10 @@ export const formConfig = {
};
export const searchFormSchema: FormSchema[] = [
- {
- field: 'id',
- label: 'id',
- component: 'Input',
- },
+
{
field: 'kNo',
- label: '合同号',
- component: 'Input',
- },
- {
- field: 'kName',
- label: '合同名称',
+ label: '合同号/合同名称',
component: 'Input',
},
{
@@ -26,53 +17,9 @@ export const searchFormSchema: FormSchema[] = [
label: '供应商',
component: 'Input',
},
- {
- field: 'dateFrom',
- label: '有效期开始',
- component: 'Input',
- },
- {
- field: 'dateTo',
- label: '有效期结束',
- component: 'Input',
- },
- {
- field: 'approCode',
- label: '状态',
- component: 'Input',
- },
- {
- field: 'cpTableName',
- label: '上载点',
- component: 'Input',
- },
- {
- field: 'onlineSign',
- label: '是否托运',
- component: 'Input',
- },
- {
- field: 'comId',
- label: '合同主体',
- component: 'Input',
- },
- {
- field: 'note',
- label: '备注',
- component: 'Input',
- },
];
export const columns: BasicColumn[] = [
- {
- dataIndex: 'id',
- title: 'id',
- componentType: 'input',
- align: 'left',
-
- sorter: true,
- },
-
{
dataIndex: 'kNo',
title: '合同号',
diff --git a/src/views/contract/ContractPurPng/components/createForm.vue b/src/views/contract/ContractPurPng/components/createForm.vue
new file mode 100644
index 0000000..fa77d1a
--- /dev/null
+++ b/src/views/contract/ContractPurPng/components/createForm.vue
@@ -0,0 +1,576 @@
+
+
+
+
+
+
+
+
+ 关联合同
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+ 上载点
+ 新增
+ 删除
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
新增行
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/contract/ContractPurPng/index.vue b/src/views/contract/ContractPurPng/index.vue
index 4f6b3a7..2a077a8 100644
--- a/src/views/contract/ContractPurPng/index.vue
+++ b/src/views/contract/ContractPurPng/index.vue
@@ -122,7 +122,7 @@
},
schemas: customSearchFormSchema,
fieldMapToTime: [],
- showResetButton: false,
+ showResetButton: true,
},
beforeFetch: (params) => {
return { ...params, FormId: formIdComputedRef.value, PK: 'id' };
@@ -396,6 +396,13 @@
:deep(.ant-table-selection-col) {
width: 50px;
}
+ :deep(.ant-col-8:nth-child(1) .ant-form-item-label) {
+ width: 118px !important;
+ }
+ :deep(.ant-col-8:nth-child(1)) {
+ max-width: 330px !important;
+ width: 330px !important;
+ }
.show{
display: flex;
}
diff --git a/src/views/secondDev/customFormConfig.ts b/src/views/secondDev/customFormConfig.ts
index 1891da0..5ce843a 100644
--- a/src/views/secondDev/customFormConfig.ts
+++ b/src/views/secondDev/customFormConfig.ts
@@ -1,6 +1,3 @@
export const customFormConfig = {
- codeList: ['addCustomer','addSupplier', 'addCustomerScore', 'addSupplierScore', 'addAppro', 'contractFactApprove'],
- router: [
- {code: 'addCustomer', src: ''}
- ]
+ codeList: ['addCustomer','addSupplier', 'addCustomerScore', 'addSupplierScore', 'addAppro', 'contractFactApprove', 'addContractPurPng'],
};
\ No newline at end of file