From 1a3d2bcf1a52777ed805535c83dd641e337c8852 Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Sun, 23 Jun 2024 00:37:07 +0800
Subject: [PATCH] =?UTF-8?q?feat=20:=20=E9=A1=B9=E7=9B=AE=E5=AE=9E=E6=96=BD?=
=?UTF-8?q?-=E5=8F=B0=E8=B4=A6=E6=96=B0=E5=A2=9E=E8=A1=A8=E6=A0=BC?=
=?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/project-manage/index.js | 7 +
.../implementation/account.vue | 25 ++-
.../implementation/index.vue | 4 +-
.../implementation/updateTable.vue | 166 ++++++++++++++++++
4 files changed, 195 insertions(+), 7 deletions(-)
create mode 100644 src/views/project-management/implementation/updateTable.vue
diff --git a/src/api/project-manage/index.js b/src/api/project-manage/index.js
index 37ca9e1..ef1cd84 100644
--- a/src/api/project-manage/index.js
+++ b/src/api/project-manage/index.js
@@ -145,3 +145,10 @@ export const getPreProcess= () => {
method: "get"
});
};
+export const updateLedger = (data) => {
+ return request({
+ url: '/workflow/mosr/expense/ledger/replenishment',
+ method: "post",
+ data: data
+ });
+};
diff --git a/src/views/project-management/implementation/account.vue b/src/views/project-management/implementation/account.vue
index 42d202f..f6fa102 100644
--- a/src/views/project-management/implementation/account.vue
+++ b/src/views/project-management/implementation/account.vue
@@ -36,6 +36,10 @@ const schema = computed(() => {
]
})
const baseForm = ref()
+const tableIns = ref()
+const btns=ref([
+ {name: '表格更新', key: 'update', color: '#DED0B2', auth: ''}
+])
const searchConfig = reactive([
{
label: '时间',
@@ -146,17 +150,25 @@ const tableConfig = reactive({
currentRender: ({row}) => {
return {toThousands(row.afterTax)}
}
- }
+ },
],
api: '/workflow/mosr/expense/ledger',
params: {
projectId: route.query.id
},
- btns: [
- {name: '上传费用', key: 'add', color: '#DED0B2', auth: ''}
- ]
+ btns: btns.value
})
-const tableIns = ref()
+if(route.query.state!=4){
+ btns.value.push({name: '上传费用', key: 'add', color: '#DED0B2', auth: ''})
+}
+const handleUpdateTable=()=>{
+ router.push({
+ name: 'Implementation/update',
+ query: {
+ id: route.query.id
+ }
+ })
+}
const getBaseInfo = async () => {
try {
const {code, data} = await getBaseInfoApi(route.query.id)
@@ -171,6 +183,9 @@ const headBtnClick = (key) => {
case 'add':
handleUploadFee()
break;
+ case 'update':
+ handleUpdateTable()
+ break;
}
}
const handleUploadFee = () => {
diff --git a/src/views/project-management/implementation/index.vue b/src/views/project-management/implementation/index.vue
index ca6c397..170a57d 100644
--- a/src/views/project-management/implementation/index.vue
+++ b/src/views/project-management/implementation/index.vue
@@ -344,11 +344,11 @@ const handleEdit = (row) => {
})
}
const handleStandingBook = (row) => {
- localStorage.setItem('projectName', row.projectName)
router.push({
name: 'Implementation/account',
query: {
- id: row.projectId
+ id: row.projectId,
+ state:row.state
}
})
}
diff --git a/src/views/project-management/implementation/updateTable.vue b/src/views/project-management/implementation/updateTable.vue
new file mode 100644
index 0000000..f37bf60
--- /dev/null
+++ b/src/views/project-management/implementation/updateTable.vue
@@ -0,0 +1,166 @@
+
+
+
+
+
+
+ {{ tableForm.projectName }}
+
+
+
+
+ {{currentPerson.name}}
+
+ {{ currentPerson.name ? '更改' : '请选择研发人员' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+ 返回
+
+
+
+
+
+