Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
紫光云
web-project
Commits
74184384
Commit
74184384
authored
Jun 18, 2024
by
牛虎林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复部分bug
parent
04d573d5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
16 deletions
+25
-16
settlementManage.ts
src/api/project/settlementManage.ts
+8
-1
addChangeSignature.vue
src/views/changeSignature/addChangeSignature.vue
+1
-1
data.tsx
src/views/settlementManagement/data.tsx
+8
-0
settlementManageEdit.vue
src/views/settlementManagement/settlementManageEdit.vue
+8
-14
No files found.
src/api/project/settlementManage.ts
View file @
74184384
...
@@ -18,11 +18,13 @@ enum Api {
...
@@ -18,11 +18,13 @@ enum Api {
audit
=
'/pro/settlement/byId-examine'
,
audit
=
'/pro/settlement/byId-examine'
,
//删除列表接口
//删除列表接口
deleteList
=
'/pro/settlement/del'
,
deleteList
=
'/pro/settlement/del'
,
//查询部门列表
getDepartmentList
=
'/pro/sys/sysDept'
,
}
}
export
const
getSettlementManageList
=
(
params
?:
ProjectParams
)
=>
export
const
getSettlementManageList
=
(
params
?:
ProjectParams
)
=>
defHttp
.
post
<
ProjectParams
>
({
url
:
Api
.
GetList
,
data
:
params
});
defHttp
.
post
<
ProjectParams
>
({
url
:
Api
.
GetList
,
data
:
params
});
export
const
addItem
=
(
params
?:
any
)
=>
export
const
addItem
s
=
(
params
?:
any
)
=>
defHttp
.
post
<
ProjectModel
>
({
defHttp
.
post
<
ProjectModel
>
({
url
:
Api
.
Add
,
url
:
Api
.
Add
,
data
:
params
,
data
:
params
,
...
@@ -75,3 +77,8 @@ export const deleteList = (params?: any) =>
...
@@ -75,3 +77,8 @@ export const deleteList = (params?: any) =>
url
:
Api
.
deleteList
,
url
:
Api
.
deleteList
,
params
,
params
,
});
});
export
const
getDepartmentList
=
()
=>
defHttp
.
post
<
ProjectModel
>
({
url
:
Api
.
getDepartmentList
,
});
src/views/changeSignature/addChangeSignature.vue
View file @
74184384
...
@@ -310,7 +310,7 @@ async function handleNew(info: any) {
...
@@ -310,7 +310,7 @@ async function handleNew(info: any) {
}
}
data
.
management
=
management
;
data
.
management
=
management
;
//新增接口
//新增接口
if
(
isUpdate
.
value
){
if
(
routerId
.
value
){
const
res
=
updateItem
(
data
)
const
res
=
updateItem
(
data
)
createMessage
.
success
(
'提交成功!'
);
createMessage
.
success
(
'提交成功!'
);
router
.
go
(
-
1
)
router
.
go
(
-
1
)
...
...
src/views/settlementManagement/data.tsx
View file @
74184384
...
@@ -4,6 +4,8 @@ import { Switch } from 'ant-design-vue';
...
@@ -4,6 +4,8 @@ import { Switch } from 'ant-design-vue';
import
{
setRoleStatus
}
from
'@/api/demo/system'
;
import
{
setRoleStatus
}
from
'@/api/demo/system'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
type
CheckedType
=
boolean
|
string
|
number
;
type
CheckedType
=
boolean
|
string
|
number
;
import
{
getDepartmentList
}
from
'@/api/project/settlementManage'
;
export
const
columns
:
BasicColumn
[]
=
[
export
const
columns
:
BasicColumn
[]
=
[
{
{
title
:
'填报周期'
,
title
:
'填报周期'
,
...
@@ -87,6 +89,7 @@ export const searchFormSchema: FormSchema[] = [
...
@@ -87,6 +89,7 @@ export const searchFormSchema: FormSchema[] = [
label
:
''
,
label
:
''
,
component
:
'Select'
,
component
:
'Select'
,
componentProps
:
{
componentProps
:
{
// options: getDepartment(),
options
:
[
options
:
[
{
label
:
'公司名称1'
,
value
:
'1'
},
{
label
:
'公司名称1'
,
value
:
'1'
},
{
label
:
'公司名称2'
,
value
:
'0'
},
{
label
:
'公司名称2'
,
value
:
'0'
},
...
@@ -390,3 +393,8 @@ export const formSchema: FormSchema[] = [
...
@@ -390,3 +393,8 @@ export const formSchema: FormSchema[] = [
colProps
:
{
span
:
7
,
offset
:
1
},
colProps
:
{
span
:
7
,
offset
:
1
},
},
},
];
];
async
function
getDepartment
(){
const
data
=
await
getDepartmentList
()
console
.
log
(
"数据仓库"
)
return
data
;
}
src/views/settlementManagement/settlementManageEdit.vue
View file @
74184384
<
template
>
<
template
>
<PageWrapper
:title=
"getTitle"
:contentBackground=
"false"
headerSticky
>
<PageWrapper
:title=
"getTitle"
:contentBackground=
"false"
headerSticky
>
<template
#
extra
>
<template
#
extra
>
<a-button
type=
"primary"
danger
v-if=
"isUpdate"
>
删除
</a-button>
<a-button
type=
"primary"
@
click=
"handleSubmit"
v-if=
"isUpdate"
>
提交
</a-button>
<a-button
type=
"primary"
@
click=
"handleSubmit"
v-if=
"isUpdate"
>
提交
</a-button>
<a-button
type=
"default"
@
click=
"router.back()"
>
返回
</a-button>
<a-button
type=
"default"
@
click=
"router.back()"
>
返回
</a-button>
<a-button
type=
"success"
@
click=
"examine"
v-if=
"statusResult=='0'"
>
审核
</a-button
>
<!--
<a-button
type=
"success"
@
click=
"examine"
v-if=
"isUpdate==false && statusResult !='0'"
>
审核
</a-button>
--
>
</
template
>
</
template
>
<PageCard
v-for=
"(item, index) in tabsFormSchema"
:key=
"index"
:title=
"item.name"
>
<PageCard
v-for=
"(item, index) in tabsFormSchema"
:key=
"index"
:title=
"item.name"
>
<
template
#
right
>
<
template
#
right
>
<a-button
<a-button
v-if=
"isUpdate==true"
type=
"text"
type=
"text"
preIcon=
"ant-design:delete-outlined"
preIcon=
"ant-design:delete-outlined"
danger
danger
...
@@ -41,7 +41,7 @@ import { formSchema } from './data';
...
@@ -41,7 +41,7 @@ import { formSchema } from './data';
import
{
deepMerge
}
from
'@/utils'
;
import
{
deepMerge
}
from
'@/utils'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
useDrawer
}
from
'@/components/Drawer'
;
import
{
useDrawer
}
from
'@/components/Drawer'
;
import
{
addItem
,
getItem
,
updateItem
,
deleteOne
,
auditItem
}
from
"@/api/project/settlementManage"
import
{
addItem
s
,
getItem
,
updateItem
,
deleteOne
,
auditItem
}
from
"@/api/project/settlementManage"
import
{
EditModel
}
from
'@/api/project/model/settlementManageModel'
;
import
{
EditModel
}
from
'@/api/project/model/settlementManageModel'
;
import
{
nextTick
}
from
'vue'
;
import
{
nextTick
}
from
'vue'
;
const
[
registerDrawer
,
{
openDrawer
}]
=
useDrawer
();
const
[
registerDrawer
,
{
openDrawer
}]
=
useDrawer
();
...
@@ -192,7 +192,6 @@ async function handleSuccess(params: any) {
...
@@ -192,7 +192,6 @@ async function handleSuccess(params: any) {
}
}
async
function
handleSubmit
()
{
async
function
handleSubmit
()
{
loading
.
value
=
true
;
loading
.
value
=
true
;
try
{
for
(
let
i
=
0
;
i
<
tabsFormSchema
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
tabsFormSchema
.
length
;
i
++
)
{
let
item
=
tabsFormSchema
[
i
];
let
item
=
tabsFormSchema
[
i
];
const
{
validate
,
getFieldsValue
}
=
item
.
Form
[
1
];
const
{
validate
,
getFieldsValue
}
=
item
.
Form
[
1
];
...
@@ -205,24 +204,19 @@ async function handleSubmit() {
...
@@ -205,24 +204,19 @@ async function handleSubmit() {
let
res
;
let
res
;
if
(
isUpdate
.
value
){
if
(
isUpdate
.
value
){
console
.
log
(
formData
.
value
,
"数据查看"
)
console
.
log
(
formData
.
value
,
"数据查看"
)
res
=
await
updateItem
(
unref
(
formData
))
}
if
(
routeId
.
value
)
{
res
=
await
updateItem
(
unref
(
formData
))
}
}
else
{
else
{
res
=
await
addItem
(
unref
(
formData
));
res
=
await
addItems
(
unref
(
formData
));
}
}
loading
.
value
=
false
;
// loading.value = false;
// loading.value = false;
console
.
log
(
res
);
console
.
log
(
res
);
createMessage
.
success
(
'提交成功!'
);
createMessage
.
success
(
'提交成功!'
);
//返回上一页
//返回上一页
router
.
go
(
-
1
)
router
.
go
(
-
1
)
}
catch
(
e
)
{
// 验证失败或出错,切换到对应标签页
console
.
log
(
e
);
}
finally
{
loading
.
value
=
false
;
}
}
}
//审核
//审核
async
function
examine
(){
async
function
examine
(){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment