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
b63ff9cd
Commit
b63ff9cd
authored
Jun 20, 2024
by
mengzixuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
90fa6cbd
e15d45d7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
87 additions
and
54 deletions
+87
-54
projectlibraryModel.vue
src/components/projectlibraryModel/projectlibraryModel.vue
+6
-3
biddingManagementEdit.vue
src/views/biddingManagement/biddingManagementEdit.vue
+21
-19
biddingPlanEdit.vue
src/views/biddingPlan/biddingPlanEdit.vue
+29
-17
monthlyPlanEdit.vue
src/views/monthlyPlan/monthlyPlanEdit/monthlyPlanEdit.vue
+16
-14
tableData.tsx
src/views/monthlyPlan/monthlyPlanEdit/tableData.tsx
+15
-1
No files found.
src/components/projectlibraryModel/projectlibraryModel.vue
View file @
b63ff9cd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
:minHeight=
"30"
:minHeight=
"30"
okText=
"导入"
okText=
"导入"
@
ok=
"handleSubmit"
@
ok=
"handleSubmit"
@
visible-change
=
"handleVisibleChange"
@
cancel
=
"handleVisibleChange"
>
>
<BasicTable
@
register=
"registerTable"
>
<BasicTable
@
register=
"registerTable"
>
<template
#
bodyCell=
"
{ column, text, record, index }">
<template
#
bodyCell=
"
{ column, text, record, index }">
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
import
{
columns
,
searchFormSchema
}
from
'@/components/projectlibraryModel/data'
;
import
{
columns
,
searchFormSchema
}
from
'@/components/projectlibraryModel/data'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
const
[
registerTable
,
{
reload
,
getSelectRows
}]
=
useTable
({
const
[
registerTable
,
{
reload
,
getSelectRows
,
clearSelectedRowKeys
}]
=
useTable
({
api
:
getListByPage
,
api
:
getListByPage
,
title
:
'123'
,
title
:
'123'
,
columns
,
columns
,
...
@@ -60,13 +60,16 @@
...
@@ -60,13 +60,16 @@
const
emit
=
defineEmits
([
'close'
]);
const
emit
=
defineEmits
([
'close'
]);
function
handleVisibleChange
(
v
)
{}
function
handleVisibleChange
(
v
)
{
clearSelectedRowKeys
();
}
const
[
register
,
{
closeModal
}]
=
useModalInner
((
data
)
=>
{
const
[
register
,
{
closeModal
}]
=
useModalInner
((
data
)
=>
{
data
;
data
;
});
});
function
handleSubmit
()
{
function
handleSubmit
()
{
getSelectRowList
();
getSelectRowList
();
clearSelectedRowKeys
();
closeModal
();
closeModal
();
}
}
</
script
>
</
script
>
src/views/biddingManagement/biddingManagementEdit.vue
View file @
b63ff9cd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
headerSticky
headerSticky
>
>
<template
#
extra
>
<template
#
extra
>
<!--
<a-button
type=
"primary"
danger
>
删除
</a-button>
-->
<!--
<a-button
type=
"primary"
danger
>
删除
</a-button>
-->
<a-button
type=
"primary"
v-if=
"!disabled"
@
click=
"handleSubmit"
>
提交
</a-button>
<a-button
type=
"primary"
v-if=
"!disabled"
@
click=
"handleSubmit"
>
提交
</a-button>
<a-button
type=
"default"
@
click=
"router.back()"
>
返回
</a-button>
<a-button
type=
"default"
@
click=
"router.back()"
>
返回
</a-button>
</
template
>
</
template
>
...
@@ -72,11 +72,11 @@
...
@@ -72,11 +72,11 @@
formData
.
value
.
tenderYear
=
route
.
query
.
year
;
formData
.
value
.
tenderYear
=
route
.
query
.
year
;
formData
.
value
.
tenderPlanPro
=
[];
formData
.
value
.
tenderPlanPro
=
[];
isUpdate
.
value
=
false
;
isUpdate
.
value
=
false
;
console
.
log
(
formData
);
getTitle
.
value
=
'新增招标管理'
;
getTitle
.
value
=
'新增招标管理'
;
}
else
{
}
else
{
isUpdate
.
value
=
true
;
isUpdate
.
value
=
true
;
tenderId
.
value
=
id
;
tenderId
.
value
=
id
;
formData
.
value
.
tenderld
=
id
;
disabled
.
value
=
route
.
query
.
disabled
==
'0'
?
false
:
true
;
disabled
.
value
=
route
.
query
.
disabled
==
'0'
?
false
:
true
;
if
(
disabled
.
value
)
{
if
(
disabled
.
value
)
{
getTitle
.
value
=
'查看招标管理'
;
getTitle
.
value
=
'查看招标管理'
;
...
@@ -160,20 +160,23 @@
...
@@ -160,20 +160,23 @@
});
});
}
}
async
function
deleteItem
(
index
:
any
)
{
async
function
deleteItem
(
index
:
any
)
{
loadingRef
.
value
=
true
;
// loadingRef.value = true;
const
id
=
formData
.
value
.
tenderPlanPro
[
index
].
id
;
// const id = formData.value.tenderPlanPro[index].id;
if
(
id
)
{
// if (id) {
await
Itemdelete
({
// await Itemdelete({
id
,
// id,
});
// });
formData
.
value
.
tenderPlanPro
.
splice
(
index
,
1
);
// formData.value.tenderPlanPro.splice(index, 1);
tabsFormSchema
.
splice
(
index
,
1
);
// tabsFormSchema.splice(index, 1);
loadingRef
.
value
=
false
;
// loadingRef.value = false;
}
else
{
// } else {
formData
.
value
.
tenderPlanPro
.
splice
(
index
,
1
);
console
.
log
(
tabsFormSchema
);
tabsFormSchema
.
splice
(
index
,
1
);
console
.
log
(
index
);
loadingRef
.
value
=
false
;
formData
.
value
.
tenderPlanPro
.
splice
(
index
,
1
);
}
tabsFormSchema
.
splice
(
index
,
1
);
console
.
log
(
tabsFormSchema
);
// loadingRef.value = false;
// }
}
}
async
function
handleAdd
()
{
async
function
handleAdd
()
{
...
@@ -198,9 +201,8 @@
...
@@ -198,9 +201,8 @@
}
}
formData
.
value
.
proNumber
=
formData
.
value
.
tenderPlanPro
.
Length
;
formData
.
value
.
proNumber
=
formData
.
value
.
tenderPlanPro
.
Length
;
let
res
=
isUpdate
.
value
let
res
=
isUpdate
.
value
?
await
updateItem
(
unref
(
formData
))
:
await
addItem
(
unref
(
formData
));
?
await
updateItem
(
unref
(
formData
.
value
.
tenderPlanPro
))
:
await
addItem
(
unref
(
formData
));
loadingRef
.
value
=
false
;
loadingRef
.
value
=
false
;
console
.
log
(
res
);
console
.
log
(
res
);
createMessage
.
success
(
'提交成功!'
);
createMessage
.
success
(
'提交成功!'
);
...
...
src/views/biddingPlan/biddingPlanEdit.vue
View file @
b63ff9cd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
headerSticky
headerSticky
>
>
<template
#
extra
>
<template
#
extra
>
<!--
<a-button
type=
"primary"
danger
>
删除
</a-button>
-->
<!--
<a-button
type=
"primary"
danger
>
删除
</a-button>
-->
<a-button
type=
"primary"
v-if=
"!disabled"
@
click=
"handleSubmit"
>
提交
</a-button>
<a-button
type=
"primary"
v-if=
"!disabled"
@
click=
"handleSubmit"
>
提交
</a-button>
<a-button
type=
"default"
@
click=
"router.back()"
>
返回
</a-button>
<a-button
type=
"default"
@
click=
"router.back()"
>
返回
</a-button>
</
template
>
</
template
>
...
@@ -48,6 +48,7 @@
...
@@ -48,6 +48,7 @@
import
{
useModal
}
from
'@/components/Modal'
;
import
{
useModal
}
from
'@/components/Modal'
;
import
{
router
}
from
'@/router'
;
import
{
router
}
from
'@/router'
;
import
{
useRoute
}
from
'vue-router'
;
import
{
useRoute
}
from
'vue-router'
;
import
{
isArray
}
from
'lodash-es'
;
const
loadingRef
=
ref
(
false
);
const
loadingRef
=
ref
(
false
);
const
[
registerDrawer
,
{
openDrawer
}]
=
useDrawer
();
const
[
registerDrawer
,
{
openDrawer
}]
=
useDrawer
();
const
[
register
,
{
openModal
:
openModal
}]
=
useModal
();
const
[
register
,
{
openModal
:
openModal
}]
=
useModal
();
...
@@ -72,6 +73,7 @@
...
@@ -72,6 +73,7 @@
}
else
{
}
else
{
isUpdate
.
value
=
true
;
isUpdate
.
value
=
true
;
tenderId
.
value
=
id
;
tenderId
.
value
=
id
;
formData
.
value
.
tenderld
=
id
;
disabled
.
value
=
route
.
query
.
disabled
==
'0'
?
false
:
true
;
disabled
.
value
=
route
.
query
.
disabled
==
'0'
?
false
:
true
;
if
(
disabled
.
value
)
{
if
(
disabled
.
value
)
{
getTitle
.
value
=
'查看招标计划'
;
getTitle
.
value
=
'查看招标计划'
;
...
@@ -154,20 +156,25 @@
...
@@ -154,20 +156,25 @@
});
});
}
}
async
function
deleteItem
(
index
:
any
)
{
async
function
deleteItem
(
index
:
any
)
{
loadingRef
.
value
=
true
;
// loadingRef.value = true;
const
id
=
formData
.
value
.
tenderPlanPro
[
index
].
id
;
// const id = formData.value.tenderPlanPro[index].id;
if
(
id
)
{
// if (id) {
await
Itemdelete
({
// await Itemdelete({
id
,
// id,
});
// });
formData
.
value
.
tenderPlanPro
.
splice
(
index
,
1
);
// formData.value.tenderPlanPro.splice(index, 1);
tabsFormSchema
.
splice
(
index
,
1
);
// tabsFormSchema.splice(index, 1);
loadingRef
.
value
=
false
;
// loadingRef.value = false;
}
else
{
// } else {
formData
.
value
.
tenderPlanPro
.
splice
(
index
,
1
);
console
.
log
(
index
);
tabsFormSchema
.
splice
(
index
,
1
);
loadingRef
.
value
=
false
;
formData
.
value
.
tenderPlanPro
.
splice
(
index
,
1
);
}
tabsFormSchema
.
splice
(
index
,
1
);
console
.
log
(
tabsFormSchema
);
console
.
log
(
formData
.
value
.
tenderPlanPro
);
// loadingRef.value = false;
// }
}
}
async
function
handleAdd
()
{
async
function
handleAdd
()
{
...
@@ -187,8 +194,13 @@
...
@@ -187,8 +194,13 @@
const
{
validate
,
getFieldsValue
}
=
item
.
Form
[
1
];
const
{
validate
,
getFieldsValue
}
=
item
.
Form
[
1
];
await
validate
();
await
validate
();
let
res
=
getFieldsValue
();
let
res
=
getFieldsValue
();
res
.
biddingPeriod
=
res
.
biddingPeriod
.
join
(
','
);
res
.
biddingPeriod
=
isArray
(
res
.
biddingPeriod
)
res
.
plannedPeriod
=
res
.
plannedPeriod
.
join
(
','
);
?
res
.
biddingPeriod
.
join
(
','
)
:
res
.
biddingPeriod
;
res
.
plannedPeriod
=
isArray
(
res
.
plannedPeriod
)
?
res
.
plannedPeriod
.
join
(
','
)
:
res
.
plannedPeriod
;
// res.plannedPeriod = res.plannedPeriod.join(',');
formData
.
value
.
tenderPlanPro
[
i
]
=
deepMerge
(
formData
.
value
.
tenderPlanPro
[
i
],
res
);
formData
.
value
.
tenderPlanPro
[
i
]
=
deepMerge
(
formData
.
value
.
tenderPlanPro
[
i
],
res
);
console
.
log
(
formData
.
value
.
tenderPlanPro
);
console
.
log
(
formData
.
value
.
tenderPlanPro
);
}
}
...
...
src/views/monthlyPlan/monthlyPlanEdit/monthlyPlanEdit.vue
View file @
b63ff9cd
...
@@ -197,6 +197,7 @@
...
@@ -197,6 +197,7 @@
contrcatName
:
info
.
contrcatName
,
contrcatName
:
info
.
contrcatName
,
collectingUnit
:
info
.
collectingUnit
,
collectingUnit
:
info
.
collectingUnit
,
contractAmount
:
info
.
contractAmount
,
contractAmount
:
info
.
contractAmount
,
investmentAmount
:
info
.
investmentAmount
,
});
});
console
.
log
(
formData
.
value
.
engineerConList
);
console
.
log
(
formData
.
value
.
engineerConList
);
}
else
{
}
else
{
...
@@ -228,6 +229,7 @@
...
@@ -228,6 +229,7 @@
contrcatName
:
info
.
contrcatName
,
contrcatName
:
info
.
contrcatName
,
collectingUnit
:
info
.
collectingUnit
,
collectingUnit
:
info
.
collectingUnit
,
contractAmount
:
info
.
contractAmount
,
contractAmount
:
info
.
contractAmount
,
investmentAmount
:
info
.
investmentAmount
,
});
});
}
}
}
}
...
@@ -243,20 +245,20 @@
...
@@ -243,20 +245,20 @@
});
});
}
}
async
function
deleteItem
(
index
:
any
)
{
async
function
deleteItem
(
index
:
any
)
{
loadingRef
.
value
=
true
;
//
loadingRef.value = true;
const
id
=
formData
.
value
.
engineerConList
[
index
].
id
;
//
const id = formData.value.engineerConList[index].id;
if
(
id
)
{
//
if (id) {
await
Itemdelete
({
//
await Itemdelete({
id
,
//
id,
});
//
});
formData
.
value
.
engineerConList
.
splice
(
index
,
1
);
//
formData.value.engineerConList.splice(index, 1);
tabsFormSchema
.
splice
(
index
,
1
);
//
tabsFormSchema.splice(index, 1);
loadingRef
.
value
=
false
;
//
loadingRef.value = false;
}
else
{
//
} else {
formData
.
value
.
engineerConList
.
splice
(
index
,
1
);
formData
.
value
.
engineerConList
.
splice
(
index
,
1
);
tabsFormSchema
.
splice
(
index
,
1
);
tabsFormSchema
.
splice
(
index
,
1
);
loadingRef
.
value
=
false
;
loadingRef
.
value
=
false
;
}
//
}
}
}
async
function
getFormData
(
form
:
any
)
{
async
function
getFormData
(
form
:
any
)
{
const
{
validate
,
getFieldsValue
}
=
form
;
const
{
validate
,
getFieldsValue
}
=
form
;
...
...
src/views/monthlyPlan/monthlyPlanEdit/tableData.tsx
View file @
b63ff9cd
...
@@ -50,7 +50,7 @@ export const formSchema: FormSchema[] = [
...
@@ -50,7 +50,7 @@ export const formSchema: FormSchema[] = [
{
{
field
:
'fundGap'
,
field
:
'fundGap'
,
label
:
'资金缺口'
,
label
:
'资金缺口'
,
required
:
true
,
//
required: true,
component
:
'Input'
,
component
:
'Input'
,
componentProps
:
{
componentProps
:
{
...
@@ -68,6 +68,9 @@ export const formSchema: FormSchema[] = [
...
@@ -68,6 +68,9 @@ export const formSchema: FormSchema[] = [
maxlength
:
100
,
maxlength
:
100
,
showCount
:
true
,
showCount
:
true
,
},
},
dynamicRules
:
({
values
})
=>
{
return
values
.
fundGap
?
[{
required
:
true
,
message
:
'备注必填'
}]
:
[];
},
colProps
:
{
span
:
7
,
offset
:
1
},
colProps
:
{
span
:
7
,
offset
:
1
},
},
},
];
];
...
@@ -105,6 +108,17 @@ export const subFormSchema: FormSchema[] = [
...
@@ -105,6 +108,17 @@ export const subFormSchema: FormSchema[] = [
},
},
colProps
:
{
span
:
7
,
offset
:
1
},
colProps
:
{
span
:
7
,
offset
:
1
},
},
},
{
field
:
'investmentAmount'
,
label
:
'结算金额'
,
required
:
true
,
component
:
'Input'
,
componentProps
:
{
readonly
:
true
,
style
:
{
border
:
'none'
},
},
colProps
:
{
span
:
7
,
offset
:
1
},
},
{
{
field
:
'paymentLevel'
,
field
:
'paymentLevel'
,
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