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
1082cea9
Commit
1082cea9
authored
Oct 22, 2024
by
ccc2wdd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
变更签证管理,暂存功能实现
parent
1ed821ba
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
569 additions
and
399 deletions
+569
-399
operations.ts
src/api/operations/operations.ts
+23
-30
ContractDdta.vue
src/components/ContractModel/ContractDdta.vue
+12
-12
changeSignature.ts
src/router/routes/modules/changeSignature.ts
+12
-1
addChangeSignature.vue
src/views/changeSignature/addChangeSignature.vue
+518
-351
changeSignatrue.data.ts
src/views/changeSignature/changeSignatrue.data.ts
+4
-5
No files found.
src/api/operations/operations.ts
View file @
1082cea9
import
{
import
{
ProjectParams
,
ProjectModel
}
from
'@/api/project/model/projectModel'
;
ProjectParams
,
ProjectModel
,
}
from
'@/api/project/model/projectModel'
;
import
{
defHttp
}
from
'@/utils/http/axios'
;
import
{
defHttp
}
from
'@/utils/http/axios'
;
enum
Api
{
enum
Api
{
//查询厉害
记录
//查询历史
记录
operationList
=
'/pro/operator/oper-list'
,
operationList
=
'/pro/operator/oper-list'
,
//添加变更记录
//添加变更记录
addItem
=
'/pro/operator/add-operator'
,
addItem
=
'/pro/operator/add-operator'
,
}
}
export
enum
operateType
{
export
enum
operateType
{
update
=
"修改"
,
update
=
'修改'
,
add
=
"新增"
,
add
=
'新增'
,
delete
=
"删除"
,
delete
=
'删除'
,
audit
=
"审核"
,
audit
=
'审核'
,
}
}
export
const
addItemData
=
{
export
const
addItemData
=
{
operateType
:
''
,
operateType
:
null
,
businessType
:
''
,
businessType
:
null
,
businessId
:
null
,
businessId
:
null
,
};
}
export
const
getOperationList
=
(
params
?:
ProjectParams
)
=>
export
const
getOperationList
=
(
params
?:
ProjectParams
)
=>
defHttp
.
get
<
ProjectModel
>
({
url
:
Api
.
operationList
,
params
})
defHttp
.
get
<
ProjectModel
>
({
url
:
Api
.
operationList
,
params
});
export
const
addItemApi
=
(
params
?:
any
)
=>
export
const
addItemApi
=
(
params
?:
any
)
=>
defHttp
.
post
<
ProjectModel
>
(
defHttp
.
post
<
ProjectModel
>
({
{
url
:
Api
.
addItem
,
url
:
Api
.
addItem
,
data
:
params
,
data
:
params
,
headers
:
{
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
,
'Content-Type'
:
'application/json;charset=UTF-8'
,
},
},
});
}
);
src/components/ContractModel/ContractDdta.vue
View file @
1082cea9
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
@
ok=
"handleSubmit"
@
ok=
"handleSubmit"
@
visible-change=
"handleVisibleChange"
@
visible-change=
"handleVisibleChange"
>
>
<BasicTable
@
register=
"registerTable"
>
</BasicTable
>
<BasicTable
@
register=
"registerTable"
/
>
</BasicModal>
</BasicModal>
</
template
>
</
template
>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
...
@@ -18,11 +18,12 @@
...
@@ -18,11 +18,12 @@
import
{
getGroupList
}
from
'@/api/contract/contract'
;
import
{
getGroupList
}
from
'@/api/contract/contract'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
getBasicColumns
}
from
'./data'
;
import
{
getBasicColumns
}
from
'./data'
;
import
{
onMounted
,
ref
,
inject
}
from
'vue'
;
import
{
onMounted
,
ref
,
inject
}
from
'vue'
;
const
isContent
=
ref
(
false
);
const
isContent
=
ref
(
false
);
const
tableList
=
ref
([]);
const
tableList
=
ref
([]);
onMounted
(
async
()
=>
{
onMounted
(
async
()
=>
{
showList
()
showList
()
;
});
});
const
[
registerTable
,
{
expandAll
,
getSelectRows
}]
=
useTable
({
const
[
registerTable
,
{
expandAll
,
getSelectRows
}]
=
useTable
({
title
:
'树形表格'
,
title
:
'树形表格'
,
...
@@ -68,8 +69,8 @@
...
@@ -68,8 +69,8 @@
const
emit
=
defineEmits
([
'close'
]);
const
emit
=
defineEmits
([
'close'
]);
function
handleVisibleChange
(
v
)
{}
function
handleVisibleChange
(
v
)
{}
const
[
register
,
{
closeModal
}]
=
useModalInner
((
data
)
=>
{
const
[
register
,
{
closeModal
}]
=
useModalInner
((
data
)
=>
{
console
.
log
(
data
,
"data数据查看"
)
console
.
log
(
data
,
'data数据查看'
);
if
(
data
.
isContent
)
{
if
(
data
.
isContent
)
{
isContent
.
value
=
data
.
isContent
;
isContent
.
value
=
data
.
isContent
;
// tableList.value=[]
// tableList.value=[]
// showList()
// showList()
...
@@ -80,13 +81,12 @@
...
@@ -80,13 +81,12 @@
getSelectRowList
();
getSelectRowList
();
closeModal
();
closeModal
();
}
}
async
function
showList
(){
async
function
showList
()
{
const
list
=
[];
const
list
=
[]
const
listDate
=
await
getGroupList
({
isContent
:
true
});
const
listDate
=
await
getGroupList
({
isContent
:
true
});
if
(
listDate
.
length
>
0
)
{
if
(
listDate
.
length
>
0
){
list
.
push
(...
listDate
);
list
.
push
(...
listDate
)
}
}
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
list
[
i
].
id
=
list
[
i
].
id
+
'_'
+
Math
.
random
().
toString
(
36
).
substring
(
2
,
10
);
list
[
i
].
id
=
list
[
i
].
id
+
'_'
+
Math
.
random
().
toString
(
36
).
substring
(
2
,
10
);
let
item
=
list
[
i
].
children
;
let
item
=
list
[
i
].
children
;
...
...
src/router/routes/modules/changeSignature.ts
View file @
1082cea9
...
@@ -8,7 +8,7 @@ const changeSignature: AppRouteModule = {
...
@@ -8,7 +8,7 @@ const changeSignature: AppRouteModule = {
component
:
LAYOUT
,
component
:
LAYOUT
,
redirect
:
'/changeSignature/index'
,
redirect
:
'/changeSignature/index'
,
meta
:
{
meta
:
{
hideChildrenInMenu
:
tru
e
,
hideChildrenInMenu
:
fals
e
,
icon
:
'icon-park-outline:align-text-left-one'
,
icon
:
'icon-park-outline:align-text-left-one'
,
orderNo
:
5
,
orderNo
:
5
,
auth
:
'/www/dist/index.html#/changeSignature/index'
,
auth
:
'/www/dist/index.html#/changeSignature/index'
,
...
@@ -25,11 +25,22 @@ const changeSignature: AppRouteModule = {
...
@@ -25,11 +25,22 @@ const changeSignature: AppRouteModule = {
orderNo
:
5
,
orderNo
:
5
,
},
},
},
},
{
path
:
'statistic'
,
name
:
'changeSignatureStatistic'
,
component
:
()
=>
import
(
'@/views/changeSignature/statistic/index.vue'
),
meta
:
{
auth
:
'/www/dist/index.html#/changeSignature/index'
,
title
:
'签证管理统计'
,
orderNo
:
5
,
},
},
{
{
path
:
'edit'
,
path
:
'edit'
,
name
:
'addChangeSignature'
,
name
:
'addChangeSignature'
,
component
:
()
=>
import
(
'@/views/changeSignature/addChangeSignature.vue'
),
component
:
()
=>
import
(
'@/views/changeSignature/addChangeSignature.vue'
),
meta
:
{
meta
:
{
hideMenu
:
true
,
auth
:
'/www/dist/index.html#/changeSignature/index'
,
auth
:
'/www/dist/index.html#/changeSignature/index'
,
title
:
'新建变更管理'
,
title
:
'新建变更管理'
,
orderNo
:
8
,
orderNo
:
8
,
...
...
src/views/changeSignature/addChangeSignature.vue
View file @
1082cea9
This diff is collapsed.
Click to expand it.
src/views/changeSignature/changeSignatrue.data.ts
View file @
1082cea9
...
@@ -275,9 +275,6 @@ export const Content: FormSchema[] = [
...
@@ -275,9 +275,6 @@ export const Content: FormSchema[] = [
labelWidth
:
'300px'
,
labelWidth
:
'300px'
,
required
:
true
,
required
:
true
,
component
:
'InputNumber'
,
component
:
'InputNumber'
,
componentProps
:
{
addonAfter
:
'元'
,
},
colProps
:
{
span
:
7
,
offset
:
1
},
colProps
:
{
span
:
7
,
offset
:
1
},
},
},
...
@@ -286,7 +283,7 @@ export const Content: FormSchema[] = [
...
@@ -286,7 +283,7 @@ export const Content: FormSchema[] = [
field
:
'changeNumber'
,
field
:
'changeNumber'
,
label
:
'变更编号'
,
label
:
'变更编号'
,
required
:
true
,
required
:
true
,
component
:
'
i
nput'
,
component
:
'
I
nput'
,
colProps
:
{
span
:
7
,
offset
:
1
},
colProps
:
{
span
:
7
,
offset
:
1
},
},
},
{
{
...
@@ -383,6 +380,9 @@ export const Content: FormSchema[] = [
...
@@ -383,6 +380,9 @@ export const Content: FormSchema[] = [
label
:
'预估签证金额:'
,
label
:
'预估签证金额:'
,
required
:
true
,
required
:
true
,
component
:
'InputNumber'
,
component
:
'InputNumber'
,
componentProps
:
{
addonAfter
:
'元'
,
},
colProps
:
{
span
:
7
,
offset
:
1
},
colProps
:
{
span
:
7
,
offset
:
1
},
},
},
//预估签证金额占合同金额比例
//预估签证金额占合同金额比例
...
@@ -394,7 +394,6 @@ export const Content: FormSchema[] = [
...
@@ -394,7 +394,6 @@ export const Content: FormSchema[] = [
component
:
'InputNumber'
,
component
:
'InputNumber'
,
colProps
:
{
span
:
7
,
offset
:
1
},
colProps
:
{
span
:
7
,
offset
:
1
},
},
},
{
{
//meeting_minutes
//meeting_minutes
label
:
'会议纪要'
,
label
:
'会议纪要'
,
...
...
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