From e85ba62ec8be5b608d7bb7e89fb30b0853045f0b Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Mon, 28 Apr 2025 18:02:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E4=B9=A6=E6=9D=90=E6=96=99=E7=94=9F?= =?UTF-8?q?=E6=88=90=20=E5=9B=BD=E7=BD=91=E6=A8=A1=E6=9D=BF=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=B0=83=E8=AF=95=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/common.js | 3 +- src/api/data-create/gw-template.js | 47 ++ src/api/sub-manage/sub-performance-manage.js | 8 + .../gw-template/components/addAndEditForm.vue | 784 +++++++++++++----- src/views/data-create/gw-template/index.vue | 114 ++- .../components/addAndEditForm.vue | 2 +- 6 files changed, 732 insertions(+), 226 deletions(-) create mode 100644 src/api/data-create/gw-template.js diff --git a/src/api/common.js b/src/api/common.js index 3e22d48..5eedbe9 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -16,10 +16,11 @@ export function getKeyPersonListAPI() { }) } // 关键人员下拉数据 (分包商管理人员) -export function getSubKeyPersonListAPI() { +export function getSubKeyPersonListAPI(data) { return request({ url: '/tbSubPeople/getTbSubPeopleAll', method: 'get', + params: data, }) } // 分包商下拉数据 diff --git a/src/api/data-create/gw-template.js b/src/api/data-create/gw-template.js new file mode 100644 index 0000000..945710e --- /dev/null +++ b/src/api/data-create/gw-template.js @@ -0,0 +1,47 @@ +import request from '@/utils/request' + +// 标书材料生成 ---- 国网模板 + +// 获取国网模板列表 +export function getGwTemplateListAPI(data) { + return request({ + url: '/stateGrid/getStateGridList', + method: 'get', + params: data, + }) +} +// 根据id获取国网模板详情 +export function getGwTemplateByIdAPI(data) { + return request({ + url: '/stateGrid/getStateGridTempById', + method: 'post', + data: data, + }) +} + +// 新增国网模板 +export function addGwTemplateAPI(data) { + return request({ + url: '/stateGrid/addStateGridTemp', + method: 'post', + data: data, + }) +} + +// 编辑国网模板 +export function editGwTemplateAPI(data) { + return request({ + url: '/stateGrid/updateStateGridTemp', + method: 'post', + data: data, + }) +} + +// 删除国网模板 +export function deleteGwTemplateAPI(data) { + return request({ + url: '/stateGrid/delStateGridTemp', + method: 'post', + data: data, + }) +} diff --git a/src/api/sub-manage/sub-performance-manage.js b/src/api/sub-manage/sub-performance-manage.js index 20ab2dd..e9b95b3 100644 --- a/src/api/sub-manage/sub-performance-manage.js +++ b/src/api/sub-manage/sub-performance-manage.js @@ -10,6 +10,14 @@ export function getSubPerformanceManageListAPI(data) { params: data, }) } +// 根据人员id查询分包业绩管理列表 +export function getSubPerformanceManageListByPersonIdAPI(data) { + return request({ + url: '/tbSubPerf/getTbSubPerfListByPersonId', + method: 'get', + params: data, + }) +} // 新增分包业绩管理 export function addSubPerformanceManageAPI(data) { diff --git a/src/views/data-create/gw-template/components/addAndEditForm.vue b/src/views/data-create/gw-template/components/addAndEditForm.vue index b3d8992..e8ac648 100644 --- a/src/views/data-create/gw-template/components/addAndEditForm.vue +++ b/src/views/data-create/gw-template/components/addAndEditForm.vue @@ -6,6 +6,7 @@ ref="addAndEditFormRef" label-width="0px" label-position="top" + :disabled="formType === 2" > @@ -18,7 +19,13 @@
公司业绩
- 添加 + 添加
@@ -37,7 +44,7 @@ - + - @@ -111,11 +138,16 @@ type="date" clearable style="width: 100%" + v-if="formType !== 2" placeholder="选择日期" value-format="yyyy-MM-dd" v-model="scope.row.exitDate" + :ref="`comKeyExitDate_${scope.$index}`" @change="onChangeExitDate(scope.$index, $event)" /> + + {{ scope.row.exitDate }} + @@ -123,7 +155,7 @@ {{ row.proPerf }} - +