From 5184bc2ddcf6f949306777109410c01635b39094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Wed, 7 Jan 2026 17:38:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E9=81=93=E6=B0=94=E9=94=80=E5=94=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 26 +-- src/api/contract/ContractSales/index.ts | 32 +++- .../src/components/SimpleFormItem.vue | 7 + .../common/correlationApproList.vue | 2 +- .../common/correlationContractFactList.vue | 3 +- src/design/index.less | 35 ++++ src/design/theme.less | 43 ++++- .../default/header/components/notify/data.ts | 12 +- src/router/routes/basic.ts | 4 +- .../ContractPurPng/components/createForm.vue | 66 ++++--- .../ContractSales/components/config.ts | 6 +- .../ContractSales/components/createForm.vue | 168 +++++++++++------- src/views/contract/ContractSales/index.vue | 2 +- .../task/components/ApprovalProcess.vue | 4 +- 14 files changed, 281 insertions(+), 129 deletions(-) diff --git a/src/App.vue b/src/App.vue index 59cb3ae..eb9cacc 100644 --- a/src/App.vue +++ b/src/App.vue @@ -88,29 +88,5 @@ background-color: #fff; } - .formViewStyle { - - .ant-input-number-disabled, input.ant-input-disabled,.ant-picker.ant-picker-disabled { - border: none !important; - background-color: transparent !important; - padding-left: 0 !important; - color: rgb(0 0 0 / 85%) !important; - ::placeholder { - opacity: 0; - } - } - input.ant-input-disabled:placeholder-shown{ - opacity: 0 !important; - } - .ant-picker-input > input[disabled], .ant-radio-disabled + span { - color: rgb(0 0 0 / 85%) !important; - } - - .ant-picker.ant-picker-disabled .ant-picker-input .ant-picker-suffix { - display: none !important; - } - .ant-input-search > .ant-input-group > .ant-input-group-addon-disabled:last-child { - display: none !important; - } - } + diff --git a/src/api/contract/ContractSales/index.ts b/src/api/contract/ContractSales/index.ts index 8d39f87..5f18bf5 100644 --- a/src/api/contract/ContractSales/index.ts +++ b/src/api/contract/ContractSales/index.ts @@ -7,12 +7,40 @@ enum Api { List = '/contract/contractSales/list', Info = '/contract/contractSales/info', LngContract = '/contract/contractSales', - + PointTransList = '/magic-api/contract/queryLngContractSalesPngPointTransList', + PointPurList = '/magic-api/contract/queryLngContractSalesPngPointPurList' } - +/** + * @description: //管输(自主托运)列表 + */ +export async function getTransList(ksppId: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.PointTransList, + params: { ksppId }, + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: //上载信息列表 + */ +export async function getPurList(ksppId: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.PointPurList, + params: { ksppId }, + }, + { + errorMessageMode: mode, + }, + ); +} /** * @description: 查询LngContract分页列表 */ diff --git a/src/components/SimpleForm/src/components/SimpleFormItem.vue b/src/components/SimpleForm/src/components/SimpleFormItem.vue index 9e16f5c..52a91ab 100644 --- a/src/components/SimpleForm/src/components/SimpleFormItem.vue +++ b/src/components/SimpleForm/src/components/SimpleFormItem.vue @@ -501,4 +501,11 @@ .ant-input-disabled { color: rgb(0 0 0 / 85%) !important; } + .ant-input[disabled] { + border: none !important; + background-color: transparent !important; + } + .page-bg-wrap .ant-form-item-label > label { + color: rgba(0, 0, 0, 0.65) !important; + } diff --git a/src/components/common/correlationApproList.vue b/src/components/common/correlationApproList.vue index df5cadf..9cd17af 100644 --- a/src/components/common/correlationApproList.vue +++ b/src/components/common/correlationApproList.vue @@ -108,7 +108,7 @@ } if (btn == 'view') { router.push({ - path: '/approve/Appro/form', + path: '/approve/Appro/viewForm', query: { id: record.id || record.approId, disabled: true diff --git a/src/components/common/correlationContractFactList.vue b/src/components/common/correlationContractFactList.vue index 81f8a78..aa571c6 100644 --- a/src/components/common/correlationContractFactList.vue +++ b/src/components/common/correlationContractFactList.vue @@ -63,6 +63,7 @@ } const handleSuccess = (val) =>{ val.forEach(v => { + v.kFactId = v.id v.id = null }) if (!dataList.value.length) { @@ -109,7 +110,7 @@ } if (btn == 'view') { router.push({ - path: '/contract/ContractFact/form', + path: '/contract/ContractFact/viewForm', query: { id: record.id || record.approId, disabled: true diff --git a/src/design/index.less b/src/design/index.less index e345bdd..960a9d1 100644 --- a/src/design/index.less +++ b/src/design/index.less @@ -42,3 +42,38 @@ svg, span { outline: none !important; } + +.formViewStyle { + margin-left: 1px ; + margin-right: 1px ; + padding: 3px; + .ant-input-number-disabled, input.ant-input-disabled,.ant-picker.ant-picker-disabled { + border: none !important; + background-color: transparent !important; + padding-left: 0 !important; + color: rgb(0 0 0 / 85%) !important; + ::placeholder { + opacity: 0; + } + } + input.ant-input-disabled:placeholder-shown{ + opacity: 0 !important; + } + .ant-picker-input > input[disabled], .ant-radio-disabled + span { + color: rgb(0 0 0 / 85%) !important; + } + + .ant-picker.ant-picker-disabled .ant-picker-input .ant-picker-suffix { + display: none !important; + } + .ant-input-search > .ant-input-group > .ant-input-group-addon-disabled:last-child { + display: none !important; + } + .ant-input[disabled] { + border: none !important; + background-color: transparent !important; + } + .ant-form-item-label > label { + color: rgba(0, 0, 0, 0.65) !important; + } +} \ No newline at end of file diff --git a/src/design/theme.less b/src/design/theme.less index c31ce80..6bd7d45 100644 --- a/src/design/theme.less +++ b/src/design/theme.less @@ -90,6 +90,45 @@ html[data-theme='light'] { .page-bg-wrap { background-color: #fff; - padding: 12px 12px 0 12px; - margin: 12px 12px 0 12px; + // padding: 12px 12px 0 12px; + margin: 6px 12px 0 12px; + } +.ant-card-head { + padding: 0 12px !important; +} +.ant-card-head { + min-height: 32px !important; +} + + +.ant-card-body { + padding: 12px !important; +} + +.formViewStyle { + .ant-card { + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.1) !important; + // box-shadow: 0 4px 4px 4px #0000001a !important; /* 扩散半径为4px,模糊半径为12px */ + // box-shadow: -8px 2px 4px #0000001a; + // box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); + margin-bottom: 15px; + border-radius: 5px; + } + + .ant-card-head-title::before { + content: ''; + display: inline-block; + width: 2px; + height: 1em; + background-color: #5e95ff; /* 竖线的颜色 */ + margin-right: 8px; /* 与标题内容的间距 */ + vertical-align: middle; + } + .ant-card-head-title { + padding: 10px 0 !important; + display: flex !important; + align-items: center !important; + + } +} \ No newline at end of file diff --git a/src/layouts/default/header/components/notify/data.ts b/src/layouts/default/header/components/notify/data.ts index 63ffc4e..2319a55 100644 --- a/src/layouts/default/header/components/notify/data.ts +++ b/src/layouts/default/header/components/notify/data.ts @@ -44,12 +44,12 @@ export const tabListData: TabItem[] = [ list: [], unreadNum: 0, }, - { - key: '3', - name: t('日程'), - list: [], - unreadNum: 0, - }, + // { + // key: '3', + // name: t('日程'), + // list: [], + // unreadNum: 0, + // }, { key: '4', name: t('工作流'), diff --git a/src/router/routes/basic.ts b/src/router/routes/basic.ts index 12af665..fb80364 100644 --- a/src/router/routes/basic.ts +++ b/src/router/routes/basic.ts @@ -255,7 +255,7 @@ export const PAGE_CUSTOM_ROUTE: AppRouteRecordRaw[] = [{ component: LAYOUT, children: [ { - path: '/approve/Appro/form', + path: '/approve/Appro/viewForm', name: 'ApproForm', component: () => import('/@/views/approve/Appro/components/createForm.vue'), meta: { @@ -263,7 +263,7 @@ export const PAGE_CUSTOM_ROUTE: AppRouteRecordRaw[] = [{ } }, { - path: '/contract/ContractFact/form', + path: '/contract/ContractFact/viewForm', name: 'ContractFactForm', component: () => import('/@/views/contract/ContractFact/components/createForm.vue'), meta: { diff --git a/src/views/contract/ContractPurPng/components/createForm.vue b/src/views/contract/ContractPurPng/components/createForm.vue index 213381f..c3963e2 100644 --- a/src/views/contract/ContractPurPng/components/createForm.vue +++ b/src/views/contract/ContractPurPng/components/createForm.vue @@ -15,9 +15,9 @@ - - - + + + {{ item.name }} @@ -70,7 +70,7 @@ - + {{ item.name }} @@ -79,7 +79,7 @@ - + {{ item.name }} @@ -88,7 +88,7 @@ - + {{ item.name }} @@ -113,12 +113,18 @@
- + + - + + {{ item.name }} @@ -132,7 +138,10 @@ - + +
@@ -169,42 +178,42 @@