Skip to content
项目
群组
代码片段
帮助
正在加载...
登录/注册
切换导航
广
广东建设用地-前端
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
广东建设用地
广东建设用地-前端
Commits
44de2c1d
提交
44de2c1d
authored
11月 27, 2023
作者:
gjx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加监理单位跟实施单位
上级
b919d6ec
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
681 行增加
和
37 行删除
+681
-37
index.html
index.html
+3
-2
api.ts
src/api/common/api.ts
+1
-0
unitMessageForm.vue
src/components/customComponent/unitMessageForm.vue
+8
-4
FillingInfor.vue
src/views/dkgl/gkpg/FillingInfor.vue
+134
-6
FillingInfor.vue
src/views/dkgl/gkxf/FillingInfor.vue
+134
-7
FillingInfor.vue
src/views/dkgl/gkxfpg/FillingInfor.vue
+133
-5
FillingInfor.vue
src/views/dkgl/repair/FillingInfor.vue
+135
-7
FillingInfor.vue
src/views/dkgl/xfpg/FillingInfor.vue
+133
-6
没有找到文件。
index.html
浏览文件 @
44de2c1d
...
...
@@ -9,7 +9,8 @@
content=
"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"
/>
<title><
%=
title
%
></title>
<!-- <title><%= title %></title> -->
<title>
广东省建设用地污染地块信息系统
</title>
<!-- 全局配置 -->
<script>
...
...
@@ -161,7 +162,7 @@
<div
class=
"app-loading-dots"
>
<span
class=
"dot dot-spin"
><i></i><i></i><i></i><i></i></span>
</div>
<div
class=
"app-loading-title"
>
<
%=
title
%
>
</div>
<div
class=
"app-loading-title"
>
广东省建设用地污染地块信息系统
</div>
</div>
</div>
</div>
...
...
src/api/common/api.ts
浏览文件 @
44de2c1d
...
...
@@ -90,6 +90,7 @@ export const updateJcdw = (params) => {
export
const
delJcdw
=
(
params
)
=>
{
return
defHttp
.
post
({
url
:
`/dklc/delJcdw`
,
params
});
}
// 初步调查调查报告基本信息
export
const
updateCbdc
=
(
params
)
=>
{
return
defHttp
.
post
({
url
:
`/dklc/updateCbdc`
,
params
});
...
...
src/components/customComponent/unitMessageForm.vue
浏览文件 @
44de2c1d
...
...
@@ -13,6 +13,10 @@
data
:
{
type
:
Object
,
},
title
:
{
type
:
String
,
default
:
'检测'
,
},
isRead
:
{
type
:
Boolean
,
default
:
false
,
...
...
@@ -124,7 +128,7 @@
},
},
{
label
:
'检测单位报告'
,
label
:
`
${
props
.
title
}
单位报告`
,
field
:
'bglj'
,
required
:
true
,
ifShow
:
()
=>
{
...
...
@@ -136,7 +140,7 @@
return
{
showUploadList
:
false
,
returnUrl
:
true
,
fileName
:
'检测单位报告'
,
fileName
:
`
${
props
.
title
}
单位报告`
,
disabled
:
props
.
isRead
,
};
},
...
...
@@ -271,7 +275,7 @@
},
});
updateSchema
({
label
:
'检测单位报告'
,
label
:
`
${
props
.
title
}
单位报告`
,
field
:
'bglj'
,
required
:
true
,
ifShow
:
()
=>
{
...
...
@@ -283,7 +287,7 @@
return
{
showUploadList
:
false
,
returnUrl
:
true
,
fileName
:
'检测单位报告'
,
fileName
:
`
${
props
.
title
}
单位报告`
,
disabled
:
val
,
};
},
...
...
src/views/dkgl/gkpg/FillingInfor.vue
浏览文件 @
44de2c1d
...
...
@@ -22,7 +22,6 @@
/>
<
template
#
extra
><a-button
type=
"primary"
@
click
.
prevent=
"saveReport($event)"
>
保存
</a-button></
template
>
</a-collapse-panel>
<a-collapse-panel
header=
"风险管控效果评估报告编制单位基本信息"
:forceRender=
"true"
...
...
@@ -50,6 +49,29 @@
<a-button
type=
"primary"
@
click
.
prevent=
"saveJcdw($event, index)"
style=
"margin-left: 10px"
>
保存
</a-button>
</
template
>
</a-collapse-panel>
<!-- 实施单位 -->
<a-collapse-panel
header=
"风险管控效果评估报告实施单位基本信息"
:forceRender=
"true"
v-for=
"(item, index) in ssdw"
:key=
"index + 9"
>
<unitMessageForm
:ref=
"(el) => childRefss(el, index)"
:data=
"item"
/>
<
template
#
extra
>
<a-button
type=
"primary"
@
click
.
prevent=
"addSs($event)"
>
添加
</a-button>
<a-button
type=
"primary"
class=
"ml-5"
v-if=
"index != 0"
@
click
.
prevent=
"deless($event, index)"
>
删除
</a-button>
<a-button
type=
"primary"
@
click
.
prevent=
"savess($event, index)"
style=
"margin-left: 10px"
>
保存
</a-button>
</
template
>
</a-collapse-panel>
<a-collapse-panel
header=
"风险管控效果评估样品分析监理单位基本信息"
:forceRender=
"true"
v-for=
"(item, index) in jldw"
:key=
"index + 12"
:dkxx=
"{ wrdkid: dsInfor.wrdkjbxxb.wrdkid, scjdbm: 'S6' }"
>
<unitMessageForm
:ref=
"(el) => childRefjl(el, index)"
:data=
"item"
:upload=
"index + 1"
title=
"监理"
/>
<
template
#
extra
>
<a-button
type=
"primary"
@
click
.
prevent=
"addjl($event)"
>
添加
</a-button>
<a-button
type=
"primary"
class=
"ml-5"
v-if=
"index != 0"
@
click
.
prevent=
"deljl($event, index)"
>
删除
</a-button>
<a-button
type=
"primary"
@
click
.
prevent=
"savejl($event, index)"
style=
"margin-left: 10px"
>
保存
</a-button>
</
template
>
</a-collapse-panel>
<a-collapse-panel
header=
"风险管控措施信息"
:forceRender=
"true"
key=
"140000"
>
<ControlInformation
ref=
"chilrenGkcs"
...
...
@@ -86,8 +108,12 @@
const
saveFlg
=
ref
(
true
);
const
param
=
ref
(
router
.
currentRoute
.
value
.
query
);
let
unitMessageFormList
=
ref
([{
id
:
null
}]);
const
ssdw
=
ref
([{
id
:
null
}]);
const
jldw
=
ref
([{
id
:
null
}]);
// 获取地块信息
const
dsInfor
=
ref
<
any
>
({
ssdw
:
[],
jldw
:
[],
jcdw
:
[],
bzdw
:
[],
cbdc
:
{},
...
...
@@ -105,14 +131,18 @@
saveFlg
.
value
=
true
;
unitMessageFormList
.
value
=
dsInfor
.
value
.
bzdw
;
detectionMessageFormList
.
value
=
dsInfor
.
value
.
jcdw
;
ssdw
.
value
=
dsInfor
.
value
.
ssdw
;
jldw
.
value
=
dsInfor
.
value
.
jldw
;
if
(
unitMessageFormList
.
value
.
length
==
0
)
unitMessageFormList
.
value
.
push
({
id
:
null
});
if
(
detectionMessageFormList
.
value
.
length
==
0
)
detectionMessageFormList
.
value
.
push
({
id
:
null
});
if
(
ssdw
.
value
.
length
==
0
)
ssdw
.
value
.
push
({
id
:
null
});
if
(
jldw
.
value
.
length
==
0
)
jldw
.
value
.
push
({
id
:
null
});
}
getdkInfor
();
const
activeKey
=
ref
([
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'140000'
,
'150000'
,
'160000'
]);
const
activeKey
=
ref
([
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'
8'
,
'9'
,
'10'
,
'11'
,
'12'
,
'13'
,
'
140000'
,
'150000'
,
'160000'
]);
// 初步调查报告
const
chilrenReport
=
ref
<
any
>
(
null
);
...
...
@@ -126,7 +156,7 @@
createMessage
.
warn
(
'请填写网址'
);
return
;
}
if
(
!
reg
.
test
(
res
.
gswz
)){
if
(
!
reg
.
test
(
res
.
gswz
))
{
createMessage
.
warn
(
'请输入正确的网址'
);
return
false
;
}
...
...
@@ -139,9 +169,9 @@
async
function
addGKcs
(
event
)
{
event
.
stopPropagation
();
const
res
=
await
chilrenGkcs
?.
value
.
getFormValueFxpg
();
if
(
res
.
sjxftfl
>
dsInfor
.
value
.
wrdkjbxxb
.
zdmj
)
{
createMessage
.
warn
(
'风险管控范围不能超过地块占地面积'
);
return
false
if
(
res
.
sjxftfl
>
dsInfor
.
value
.
wrdkjbxxb
.
zdmj
)
{
createMessage
.
warn
(
'风险管控范围不能超过地块占地面积'
);
return
false
;
}
await
saveXgpg
(
res
);
}
...
...
@@ -243,6 +273,104 @@
saveFlg
.
value
=
true
;
}
}
// 实施单位
const
childrenss
=
ref
<
any
>
([]);
const
childRefss
=
(
el
,
index
)
=>
{
if
(
el
)
childrenss
.
value
[
index
]
=
el
;
};
const
callChildMethodss
=
(
index
)
=>
{
childrenss
.
value
[
index
].
getFormValueBz
();
};
// 新增
function
addSs
(
event
)
{
event
.
stopPropagation
();
ssdw
.
value
.
unshift
({
id
:
null
});
nextTick
(()
=>
{
callChildMethodss
(
ssdw
.
value
.
length
-
1
);
});
}
// 删除
async
function
deless
(
event
,
index
)
{
event
.
stopPropagation
();
if
(
ssdw
.
value
[
index
].
id
)
await
delBzdw
({
id
:
ssdw
.
value
[
index
].
id
});
ssdw
.
value
.
splice
(
index
,
1
);
childrenss
.
value
.
splice
(
index
,
1
);
}
// 保存
async
function
savess
(
event
,
index
)
{
event
.
stopPropagation
();
try
{
if
(
saveFlg
.
value
)
{
saveFlg
.
value
=
false
;
const
res
=
await
childrenss
.
value
[
index
].
getFormValueBz
();
res
.
wthtje
=
String
(
res
.
wthtje
);
res
.
scjdbm
=
'S6'
;
res
.
pgtype
=
param
.
value
.
pgtype
;
res
.
jgtype
=
'ssdw'
;
res
.
wrdkid
=
param
.
value
.
wrdkid
;
const
id
=
await
updateBzdw
(
res
);
if
(
id
!=
'成功'
)
{
ssdw
.
value
[
index
]
=
res
;
ssdw
.
value
[
index
].
id
=
id
;
}
saveFlg
.
value
=
true
;
// getdkInfor();
}
else
{
createMessage
.
warn
(
'数据更新中请稍后点击'
);
}
}
catch
{
saveFlg
.
value
=
true
;
}
}
//监理单位
const
childrenjl
=
ref
<
any
>
([]);
const
childRefjl
=
(
el
,
index
)
=>
{
if
(
el
)
childrenjl
.
value
[
index
]
=
el
;
};
const
callChildMethodjl
=
(
index
)
=>
{
childrenss
.
value
[
index
].
getFormValueBz
();
};
// 新增
function
addjl
(
event
)
{
event
.
stopPropagation
();
jldw
.
value
.
unshift
({
id
:
null
});
nextTick
(()
=>
{
callChildMethodjl
(
jldw
.
value
.
length
-
1
);
});
}
// 删除
async
function
deljl
(
event
,
index
)
{
event
.
stopPropagation
();
if
(
jldw
.
value
[
index
].
id
)
await
delJcdw
({
id
:
jldw
.
value
[
index
].
id
});
jldw
.
value
.
splice
(
index
,
1
);
childrenjl
.
value
.
splice
(
index
,
1
);
}
// 保存
async
function
savejl
(
event
,
index
)
{
event
.
stopPropagation
();
try
{
if
(
saveFlg
.
value
)
{
saveFlg
.
value
=
false
;
const
res
=
await
childrenjl
.
value
[
index
].
getFormValueBz
();
res
.
wthtje
=
String
(
res
.
wthtje
);
res
.
scjdbm
=
'S6'
;
res
.
pgtype
=
param
.
value
.
pgtype
;
res
.
jgtype
=
'jldw'
;
res
.
wrdkid
=
param
.
value
.
wrdkid
;
const
id
=
await
updateJcdw
(
res
);
if
(
id
!=
'成功'
)
{
jldw
.
value
[
index
]
=
res
;
jldw
.
value
[
index
].
id
=
id
;
}
saveFlg
.
value
=
true
;
// getdkInfor();
}
else
{
createMessage
.
warn
(
'数据更新中请稍后点击'
);
}
}
catch
{
saveFlg
.
value
=
true
;
}
}
</
script
>
<
style
lang=
"less"
scoped
>
...
...
src/views/dkgl/gkxf/FillingInfor.vue
浏览文件 @
44de2c1d
...
...
@@ -26,7 +26,28 @@
<a-button
type=
"primary"
@
click
.
prevent=
"suBainFormAddEdit($event, index)"
style=
"margin-left: 10px"
>
保存
</a-button>
</
template
>
</a-collapse-panel>
<a-collapse-panel
header=
"管控及修复方案施单位基本信息"
:forceRender=
"true"
v-for=
"(item, index) in ssdw"
:key=
"index + 9"
>
<unitMessageForm
:ref=
"(el) => childRefss(el, index)"
:data=
"item"
/>
<
template
#
extra
>
<a-button
type=
"primary"
@
click
.
prevent=
"addSs($event)"
>
添加
</a-button>
<a-button
type=
"primary"
class=
"ml-5"
v-if=
"index != 0"
@
click
.
prevent=
"deless($event, index)"
>
删除
</a-button>
<a-button
type=
"primary"
@
click
.
prevent=
"savess($event, index)"
style=
"margin-left: 10px"
>
保存
</a-button>
</
template
>
</a-collapse-panel>
<a-collapse-panel
header=
"管控及修复方案监理单位基本信息"
:forceRender=
"true"
v-for=
"(item, index) in jldw"
:key=
"index + 12"
:dkxx=
"{ wrdkid: dsInfor.wrdkjbxxb.wrdkid, scjdbm: 'S5' }"
>
<unitMessageForm
:ref=
"(el) => childRefjl(el, index)"
:data=
"item"
:upload=
"index + 1"
title=
"监理"
/>
<
template
#
extra
>
<a-button
type=
"primary"
@
click
.
prevent=
"addjl($event)"
>
添加
</a-button>
<a-button
type=
"primary"
class=
"ml-5"
v-if=
"index != 0"
@
click
.
prevent=
"deljl($event, index)"
>
删除
</a-button>
<a-button
type=
"primary"
@
click
.
prevent=
"savejl($event, index)"
style=
"margin-left: 10px"
>
保存
</a-button>
</
template
>
</a-collapse-panel>
<a-collapse-panel
header=
"管控及修复措施信息"
:forceRender=
"true"
key=
"140000"
>
<ControlInformationgkxf
labelFirst=
"修复"
...
...
@@ -54,7 +75,7 @@
import
unitMessageForm
from
'/@/components/customComponent/unitMessageForm.vue'
;
import
Progress
from
'/@/components/customComponent/fillProgress.vue'
;
import
CdUpload
from
'/@/components/customComponent/CdUpload.vue'
;
import
{
plotDetails
,
updateBzdw
,
delBzdw
,
saveGkxf
}
from
'/@/api/common/api'
;
import
{
plotDetails
,
updateBzdw
,
delBzdw
,
saveGkxf
,
updateJcdw
,
delJcdw
}
from
'/@/api/common/api'
;
import
{
useRouter
}
from
'vue-router'
;
import
{
nextTick
}
from
'vue'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
...
...
@@ -64,8 +85,12 @@
const
{
createMessage
}
=
useMessage
();
const
params
=
ref
(
router
.
currentRoute
.
value
.
query
);
let
unitMessageFormList
=
ref
([{
id
:
null
}]);
const
ssdw
=
ref
([{
id
:
null
}]);
const
jldw
=
ref
([{
id
:
null
}]);
// 获取地块信息
const
dsInfor
=
ref
<
any
>
({
ssdw
:
[],
jldw
:
[],
jcdw
:
[],
bzdw
:
[],
cbdc
:
{},
...
...
@@ -82,12 +107,16 @@
});
saveFlg
.
value
=
true
;
unitMessageFormList
.
value
=
dsInfor
.
value
.
bzdw
;
ssdw
.
value
=
dsInfor
.
value
.
ssdw
||
[{
id
:
null
}];
jldw
.
value
=
dsInfor
.
value
.
jldw
||
[{
id
:
null
}];
if
(
unitMessageFormList
.
value
.
length
==
0
)
unitMessageFormList
.
value
.
push
({
id
:
null
});
if
(
ssdw
.
value
.
length
==
0
)
ssdw
.
value
.
push
({
id
:
null
});
if
(
jldw
.
value
.
length
==
0
)
jldw
.
value
.
push
({
id
:
null
});
}
getdkInfor
();
const
activeKey
=
ref
([
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'140000'
,
'150000'
,
'160000'
]);
const
activeKey
=
ref
([
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'
8'
,
'9'
,
'10'
,
'11'
,
'12'
,
'13'
,
'
140000'
,
'150000'
,
'160000'
]);
// 风险管控基本方案
const
chilrenReport
=
ref
<
any
>
(
null
);
...
...
@@ -101,7 +130,7 @@
createMessage
.
warn
(
'请填写网址'
);
return
;
}
if
(
!
reg
.
test
(
res
.
gswz
)){
if
(
!
reg
.
test
(
res
.
gswz
))
{
createMessage
.
warn
(
'请输入正确的网址'
);
return
false
;
}
...
...
@@ -114,9 +143,9 @@
event
.
stopPropagation
();
const
res
=
await
chilrenXfcs
?.
value
.
getFormValueFxpg
();
res
.
pgtype
=
params
.
value
.
pgtype
;
if
(
res
.
kzfxgktrmj
>
dsInfor
.
value
.
wrdkjbxxb
.
zdmj
)
{
createMessage
.
warn
(
'开展修复土壤面积不能超过地块占地面积'
);
return
false
if
(
res
.
kzfxgktrmj
>
dsInfor
.
value
.
wrdkjbxxb
.
zdmj
)
{
createMessage
.
warn
(
'开展修复土壤面积不能超过地块占地面积'
);
return
false
;
}
if
(
res
.
gkcs
==
2
)
{
if
(
res
.
checkboxInputValue
)
{
...
...
@@ -178,6 +207,104 @@
}
}
// 编制单位结束
// 实施单位
const
childrenss
=
ref
<
any
>
([]);
const
childRefss
=
(
el
,
index
)
=>
{
if
(
el
)
childrenss
.
value
[
index
]
=
el
;
};
const
callChildMethodss
=
(
index
)
=>
{
childrenss
.
value
[
index
].
getFormValueBz
();
};
// 新增
function
addSs
(
event
)
{
event
.
stopPropagation
();
ssdw
.
value
.
unshift
({
id
:
null
});
nextTick
(()
=>
{
callChildMethodss
(
ssdw
.
value
.
length
-
1
);
});
}
// 删除
async
function
deless
(
event
,
index
)
{
event
.
stopPropagation
();
if
(
ssdw
.
value
[
index
].
id
)
await
delBzdw
({
id
:
ssdw
.
value
[
index
].
id
});
ssdw
.
value
.
splice
(
index
,
1
);
childrenss
.
value
.
splice
(
index
,
1
);
}
// 保存
async
function
savess
(
event
,
index
)
{
event
.
stopPropagation
();
try
{
if
(
saveFlg
.
value
)
{
saveFlg
.
value
=
false
;
const
res
=
await
childrenss
.
value
[
index
].
getFormValueBz
();
res
.
wthtje
=
String
(
res
.
wthtje
);
res
.
scjdbm
=
'S10'
;
res
.
pgtype
=
params
.
value
.
pgtype
;
res
.
jgtype
=
'ssdw'
;
res
.
wrdkid
=
params
.
value
.
wrdkid
;
const
id
=
await
updateBzdw
(
res
);
if
(
id
!=
'成功'
)
{
ssdw
.
value
[
index
]
=
res
;
ssdw
.
value
[
index
].
id
=
id
;
}
saveFlg
.
value
=
true
;
// getdkInfor();
}
else
{
createMessage
.
warn
(
'数据更新中请稍后点击'
);
}
}
catch
{
saveFlg
.
value
=
true
;
}
}
//监理单位
const
childrenjl
=
ref
<
any
>
([]);
const
childRefjl
=
(
el
,
index
)
=>
{
if
(
el
)
childrenjl
.
value
[
index
]
=
el
;
};
const
callChildMethodjl
=
(
index
)
=>
{
childrenss
.
value
[
index
].
getFormValueBz
();
};
// 新增
function
addjl
(
event
)
{
event
.
stopPropagation
();
jldw
.
value
.
unshift
({
id
:
null
});
nextTick
(()
=>
{
callChildMethodjl
(
jldw
.
value
.
length
-
1
);
});
}
// 删除
async
function
deljl
(
event
,
index
)
{
event
.
stopPropagation
();
if
(
jldw
.
value
[
index
].
id
)
await
delJcdw
({
id
:
jldw
.
value
[
index
].
id
});
jldw
.
value
.
splice
(
index
,
1
);
childrenjl
.
value
.
splice
(
index
,
1
);
}
// 保存
async
function
savejl
(
event
,
index
)
{
event
.
stopPropagation
();
try
{
if
(
saveFlg
.
value
)
{
saveFlg
.
value
=
false
;
const
res
=
await
childrenjl
.
value
[
index
].
getFormValueBz
();
res
.
wthtje
=
String
(
res
.
wthtje
);
res
.
scjdbm
=
'S10'
;
res
.
pgtype
=
params
.
value
.
pgtype
;
res
.
jgtype
=
'jldw'
;
res
.
wrdkid
=
params
.
value
.
wrdkid
;
const
id
=
await
updateJcdw
(
res
);
if
(
id
!=
'成功'
)
{
jldw
.
value
[
index
]
=
res
;
jldw
.
value
[
index
].
id
=
id
;
}
saveFlg
.
value
=
true
;
// getdkInfor();
}
else
{
createMessage
.
warn
(
'数据更新中请稍后点击'
);
}
}
catch
{
saveFlg
.
value
=
true
;
}
}
</
script
>
<
style
lang=
"less"
scoped
>
...
...
src/views/dkgl/gkxfpg/FillingInfor.vue
浏览文件 @
44de2c1d
...
...
@@ -50,6 +50,28 @@
<a-button
type=
"primary"
@
click
.
prevent=
"saveJcdw($event, index)"
style=
"margin-left: 10px"
>
保存
</a-button>
</
template
>
</a-collapse-panel>
<a-collapse-panel
header=
"管控及修复效果评估案施单位基本信息"
:forceRender=
"true"
v-for=
"(item, index) in ssdw"
:key=
"index + 9"
>
<unitMessageForm
:ref=
"(el) => childRefss(el, index)"
:data=
"item"
/>
<
template
#
extra
>
<a-button
type=
"primary"
@
click
.
prevent=
"addSs($event)"
>
添加
</a-button>
<a-button
type=
"primary"
class=
"ml-5"
v-if=
"index != 0"
@
click
.
prevent=
"deless($event, index)"
>
删除
</a-button>
<a-button
type=
"primary"
@
click
.
prevent=
"savess($event, index)"
style=
"margin-left: 10px"
>
保存
</a-button>
</
template
>
</a-collapse-panel>
<a-collapse-panel
header=
"管控及修复效果评估监理单位基本信息"
:forceRender=
"true"
v-for=
"(item, index) in jldw"
:key=
"index + 12"
:dkxx=
"{ wrdkid: dsInfor.wrdkjbxxb.wrdkid, scjdbm: 'S5' }"
>
<unitMessageForm
:ref=
"(el) => childRefjl(el, index)"
:data=
"item"
:upload=
"index + 1"
title=
"监理"
/>
<
template
#
extra
>
<a-button
type=
"primary"
@
click
.
prevent=
"addjl($event)"
>
添加
</a-button>
<a-button
type=
"primary"
class=
"ml-5"
v-if=
"index != 0"
@
click
.
prevent=
"deljl($event, index)"
>
删除
</a-button>
<a-button
type=
"primary"
@
click
.
prevent=
"savejl($event, index)"
style=
"margin-left: 10px"
>
保存
</a-button>
</
template
>
</a-collapse-panel>
<a-collapse-panel
header=
"管控及修复措施信息"
:forceRender=
"true"
key=
"140000"
>
<ControlInformation
labelFirst=
"管控修复效果评估"
...
...
@@ -94,8 +116,12 @@
const
params
=
ref
(
router
.
currentRoute
.
value
.
query
);
let
unitMessageFormList
=
ref
([{
id
:
null
}]);
let
detectionMessageFormList
=
ref
([{
id
:
null
}]);
const
ssdw
=
ref
([{
id
:
null
}]);
const
jldw
=
ref
([{
id
:
null
}]);
// 获取地块信息
const
dsInfor
=
ref
<
any
>
({
ssdw
:
[],
jldw
:
[],
jcdw
:
[],
bzdw
:
[],
cbdc
:
{},
...
...
@@ -113,13 +139,17 @@
saveFlg
.
value
=
true
;
unitMessageFormList
.
value
=
dsInfor
.
value
.
bzdw
;
detectionMessageFormList
.
value
=
dsInfor
.
value
.
jcdw
;
ssdw
.
value
=
dsInfor
.
value
.
ssdw
||
[{
id
:
null
}];
jldw
.
value
=
dsInfor
.
value
.
jldw
||
[{
id
:
null
}];
if
(
unitMessageFormList
.
value
.
length
==
0
)
unitMessageFormList
.
value
.
push
({
id
:
null
});
if
(
detectionMessageFormList
.
value
.
length
==
0
)
detectionMessageFormList
.
value
.
push
({
id
:
null
});
if
(
ssdw
.
value
.
length
==
0
)
ssdw
.
value
.
push
({
id
:
null
});
if
(
jldw
.
value
.
length
==
0
)
jldw
.
value
.
push
({
id
:
null
});
}
getdkInfor
();
const
activeKey
=
ref
([
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'140000'
,
'150000'
,
'160000'
]);
const
activeKey
=
ref
([
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'
8'
,
'9'
,
'10'
,
'11'
,
'12'
,
'13'
,
'
140000'
,
'150000'
,
'160000'
]);
// 风险管控基本方案
const
chilrenReport
=
ref
<
any
>
(
null
);
...
...
@@ -132,7 +162,7 @@
createMessage
.
warn
(
'请填写网址'
);
return
;
}
if
(
!
reg
.
test
(
res
.
gswz
)){
if
(
!
reg
.
test
(
res
.
gswz
))
{
createMessage
.
warn
(
'请输入正确的网址'
);
return
false
;
}
...
...
@@ -144,9 +174,9 @@
async
function
addGKcs
(
event
)
{
event
.
stopPropagation
();
const
res
=
await
chilrenGkcs
?.
value
.
getFormValueFxpg
();
if
(
res
.
sjxffw
>
dsInfor
.
value
.
wrdkjbxxb
.
zdmj
)
{
createMessage
.
warn
(
'实际修复范围不能超过地块占地面积'
);
return
false
if
(
res
.
sjxffw
>
dsInfor
.
value
.
wrdkjbxxb
.
zdmj
)
{
createMessage
.
warn
(
'实际修复范围不能超过地块占地面积'
);
return
false
;
}
await
saveXgpg
(
res
);
}
...
...
@@ -250,6 +280,104 @@
saveFlg
.
value
=
true
;
}
}
// 实施单位
const
childrenss
=
ref
<
any
>
([]);
const
childRefss
=
(
el
,
index
)
=>
{
if
(
el
)
childrenss
.
value
[
index
]
=
el
;
};
const
callChildMethodss
=
(
index
)
=>
{
childrenss
.
value
[
index
].
getFormValueBz
();
};
// 新增
function
addSs
(
event
)
{
event
.
stopPropagation
();
ssdw
.
value
.
unshift
({
id
:
null
});
nextTick
(()
=>
{
callChildMethodss
(
ssdw
.
value
.
length
-
1
);
});
}
// 删除
async
function
deless
(
event
,
index
)
{
event
.
stopPropagation
();
if
(
ssdw
.
value
[
index
].
id
)
await
delBzdw
({
id
:
ssdw
.
value
[
index
].
id
});
ssdw
.
value
.
splice
(
index
,
1
);
childrenss
.
value
.
splice
(
index
,
1
);
}
// 保存
async
function
savess
(
event
,
index
)
{
event
.
stopPropagation
();
try
{
if
(
saveFlg
.
value
)
{
saveFlg
.
value
=
false
;
const
res
=
await
childrenss
.
value
[
index
].
getFormValueBz
();
res
.
wthtje
=
String
(
res
.
wthtje
);
res
.
scjdbm
=
'S6'
;
res
.
pgtype
=
params
.
value
.
pgtype
;
res
.
jgtype
=
'ssdw'
;
res
.
wrdkid
=
params
.
value
.
wrdkid
;
const
id
=
await
updateBzdw
(
res
);
if
(
id
!=
'成功'
)
{
ssdw
.
value
[
index
]
=
res
;
ssdw
.
value
[
index
].
id
=
id
;
}
saveFlg
.
value
=
true
;
// getdkInfor();
}
else
{
createMessage
.
warn
(
'数据更新中请稍后点击'
);
}
}
catch
{
saveFlg
.
value
=
true
;
}
}
//监理单位
const
childrenjl
=
ref
<
any
>
([]);
const
childRefjl
=
(
el
,
index
)
=>
{
if
(
el
)
childrenjl
.
value
[
index
]
=
el
;
};
const
callChildMethodjl
=
(
index
)
=>
{
childrenss
.
value
[
index
].
getFormValueBz
();
};
// 新增
function
addjl
(
event
)
{
event
.
stopPropagation
();
jldw
.
value
.
unshift
({
id
:
null
});
nextTick
(()
=>
{
callChildMethodjl
(
jldw
.
value
.
length
-
1
);
});
}
// 删除
async
function
deljl
(
event
,
index
)
{
event
.
stopPropagation
();
if
(
jldw
.
value
[
index
].
id
)
await
delJcdw
({
id
:
jldw
.
value
[
index
].
id
});
jldw
.
value
.
splice
(
index
,
1
);
childrenjl
.
value
.
splice
(
index
,
1
);
}
// 保存
async
function
savejl
(
event
,
index
)
{
event
.
stopPropagation
();
try
{
if
(
saveFlg
.
value
)
{
saveFlg
.
value
=
false
;
const
res
=
await
childrenjl
.
value
[
index
].
getFormValueBz
();
res
.
wthtje
=
String
(
res
.
wthtje
);
res
.
scjdbm
=
'S6'
;
res
.
pgtype
=
params
.
value
.
pgtype
;
res
.
jgtype
=
'jldw'
;
res
.
wrdkid
=
params
.
value
.
wrdkid
;
const
id
=
await
updateJcdw
(
res
);
if
(
id
!=
'成功'
)
{
jldw
.
value
[
index
]
=
res
;
jldw
.
value
[
index
].
id
=
id
;
}
saveFlg
.
value
=
true
;
// getdkInfor();
}
else
{
createMessage
.
warn
(
'数据更新中请稍后点击'
);
}
}
catch
{
saveFlg
.
value
=
true
;
}
}
</
script
>
<
style
lang=
"less"
scoped
>
...
...
src/views/dkgl/repair/FillingInfor.vue
浏览文件 @
44de2c1d
...
...
@@ -26,7 +26,28 @@
<a-button
type=
"primary"
@
click
.
prevent=
"suBainFormAddEdit($event, index)"
style=
"margin-left: 10px"
>
保存
</a-button>
</
template
>
</a-collapse-panel>
<a-collapse-panel
header=
"修复方案实施单位基本信息"
:forceRender=
"true"
v-for=
"(item, index) in ssdw"
:key=
"index + 9"
>
<unitMessageForm
:ref=
"(el) => childRefss(el, index)"
:data=
"item"
/>
<
template
#
extra
>
<a-button
type=
"primary"
@
click
.
prevent=
"addSs($event)"
>
添加
</a-button>
<a-button
type=
"primary"
class=
"ml-5"
v-if=
"index != 0"
@
click
.
prevent=
"deless($event, index)"
>
删除
</a-button>
<a-button
type=
"primary"
@
click
.
prevent=
"savess($event, index)"
style=
"margin-left: 10px"
>
保存
</a-button>
</
template
>
</a-collapse-panel>
<a-collapse-panel
header=
"修复方案监理单位基本信息"
:forceRender=
"true"
v-for=
"(item, index) in jldw"
:key=
"index + 12"
:dkxx=
"{ wrdkid: dsInfor.wrdkjbxxb.wrdkid, scjdbm: 'S5' }"
>
<unitMessageForm
:ref=
"(el) => childRefjl(el, index)"
:data=
"item"
:upload=
"index + 1"
title=
"监理"
/>
<
template
#
extra
>
<a-button
type=
"primary"
@
click
.
prevent=
"addjl($event)"
>
添加
</a-button>
<a-button
type=
"primary"
class=
"ml-5"
v-if=
"index != 0"
@
click
.
prevent=
"deljl($event, index)"
>
删除
</a-button>
<a-button
type=
"primary"
@
click
.
prevent=
"savejl($event, index)"
style=
"margin-left: 10px"
>
保存
</a-button>
</
template
>
</a-collapse-panel>
<a-collapse-panel
header=
"修复措施信息"
:forceRender=
"true"
key=
"140000"
>
<ControlInformation
labelFirst=
"修复"
...
...
@@ -55,7 +76,7 @@
import
CdUpload
from
'/@/components/customComponent/CdUpload.vue'
;
import
{
useMessage
}
from
'/@/hooks/web/useMessage'
;
import
{
plotDetails
,
saveGkxf
,
updateBzdw
,
delBzdw
}
from
'/@/api/common/api'
;
import
{
plotDetails
,
saveGkxf
,
updateBzdw
,
delBzdw
,
updateJcdw
,
delJcdw
}
from
'/@/api/common/api'
;
import
{
useRouter
}
from
'vue-router'
;
import
{
nextTick
}
from
'vue'
;
...
...
@@ -64,10 +85,14 @@
const
{
createMessage
}
=
useMessage
();
const
param
=
ref
(
router
.
currentRoute
.
value
.
query
);
let
unitMessageFormList
=
ref
([{
id
:
null
}]);
const
ssdw
=
ref
([{
id
:
null
}]);
const
jldw
=
ref
([{
id
:
null
}]);
// 获取地块信息
const
dsInfor
=
ref
<
any
>
({
jcdw
:
[],
bzdw
:
[],
ssdw
:
[],
jldw
:
[],
cbdc
:
{},
xxdc
:
{},
wrdkjbxxb
:
{},
...
...
@@ -82,12 +107,16 @@
});
saveFlg
.
value
=
true
;
unitMessageFormList
.
value
=
dsInfor
.
value
.
bzdw
;
ssdw
.
value
=
dsInfor
.
value
.
ssdw
||
[{
id
:
null
}];
jldw
.
value
=
dsInfor
.
value
.
jldw
||
[{
id
:
null
}];
if
(
unitMessageFormList
.
value
.
length
==
0
)
unitMessageFormList
.
value
.
push
({
id
:
null
});
if
(
ssdw
.
value
.
length
==
0
)
ssdw
.
value
.
push
({
id
:
null
});
if
(
jldw
.
value
.
length
==
0
)
jldw
.
value
.
push
({
id
:
null
});
}
getdkInfor
();
const
activeKey
=
ref
([
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'140000'
,
'150000'
,
'160000'
]);
const
activeKey
=
ref
([
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'
8'
,
'9'
,
'10'
,
'11'
,
'12'
,
'13'
,
'
140000'
,
'150000'
,
'160000'
]);
// 风险管控基本方案
const
chilrenReport
=
ref
<
any
>
(
null
);
...
...
@@ -101,7 +130,7 @@
createMessage
.
warn
(
'请填写网址'
);
return
;
}
if
(
!
reg
.
test
(
res
.
gswz
)){
if
(
!
reg
.
test
(
res
.
gswz
))
{
createMessage
.
warn
(
'请输入正确的网址'
);
return
false
;
}
...
...
@@ -113,9 +142,9 @@
async
function
saveXfcs
(
event
)
{
event
.
stopPropagation
();
const
res
=
await
chilrenXfcs
?.
value
.
getFormValueFxpg
();
if
(
res
.
kzfxgktrmj
>
dsInfor
.
value
.
wrdkjbxxb
.
zdmj
)
{
createMessage
.
warn
(
'开展修复土壤面积不能超过地块占地面积'
);
return
false
if
(
res
.
kzfxgktrmj
>
dsInfor
.
value
.
wrdkjbxxb
.
zdmj
)
{
createMessage
.
warn
(
'开展修复土壤面积不能超过地块占地面积'
);
return
false
;
}
await
saveGkxf
(
res
);
}
...
...
@@ -152,6 +181,7 @@
res
.
wthtje
=
String
(
res
.
wthtje
);
res
.
scjdbm
=
'S5'
;
res
.
pgtype
=
param
.
value
.
pgtype
;
res
.
jgtype
=
'bzdw'
;
// 新增的时候没有这个值
res
.
wrdkid
=
param
.
value
.
wrdkid
;
const
id
=
await
updateBzdw
(
res
);
...
...
@@ -169,6 +199,104 @@
}
}
// 编制单位结束
// 实施单位
const
childrenss
=
ref
<
any
>
([]);
const
childRefss
=
(
el
,
index
)
=>
{
if
(
el
)
childrenss
.
value
[
index
]
=
el
;
};
const
callChildMethodss
=
(
index
)
=>
{
childrenss
.
value
[
index
].
getFormValueBz
();
};
// 新增
function
addSs
(
event
)
{
event
.
stopPropagation
();
ssdw
.
value
.
unshift
({
id
:
null
});
nextTick
(()
=>
{
callChildMethodss
(
ssdw
.
value
.
length
-
1
);
});
}
// 删除
async
function
deless
(
event
,
index
)
{
event
.
stopPropagation
();
if
(
ssdw
.
value
[
index
].
id
)
await
delBzdw
({
id
:
ssdw
.
value
[
index
].
id
});
ssdw
.
value
.
splice
(
index
,
1
);
childrenss
.
value
.
splice
(
index
,
1
);
}
// 保存
async
function
savess
(
event
,
index
)
{
event
.
stopPropagation
();
try
{
if
(
saveFlg
.
value
)
{
saveFlg
.
value
=
false
;
const
res
=
await
childrenss
.
value
[
index
].
getFormValueBz
();
res
.
wthtje
=
String
(
res
.
wthtje
);
res
.
scjdbm
=
'S5'
;
res
.
pgtype
=
param
.
value
.
pgtype
;
res
.
jgtype
=
'ssdw'
;
res
.
wrdkid
=
param
.
value
.
wrdkid
;
const
id
=
await
updateBzdw
(
res
);
if
(
id
!=
'成功'
)
{
ssdw
.
value
[
index
]
=
res
;
ssdw
.
value
[
index
].
id
=
id
;
}
saveFlg
.
value
=
true
;
// getdkInfor();
}
else
{
createMessage
.
warn
(
'数据更新中请稍后点击'
);
}
}
catch
{
saveFlg
.
value
=
true
;
}
}
//监理单位
const
childrenjl
=
ref
<
any
>
([]);
const
childRefjl
=
(
el
,
index
)
=>
{
if
(
el
)
childrenjl
.
value
[
index
]
=
el
;
};
const
callChildMethodjl
=
(
index
)
=>
{
childrenss
.
value
[
index
].
getFormValueBz
();
};
// 新增
function
addjl
(
event
)
{
event
.
stopPropagation
();
jldw
.
value
.
unshift
({
id
:
null
});
nextTick
(()
=>
{
callChildMethodjl
(
jldw
.
value
.
length
-
1
);
});
}
// 删除
async
function
deljl
(
event
,
index
)
{
event
.
stopPropagation
();
if
(
jldw
.
value
[
index
].
id
)
await
delJcdw
({
id
:
jldw
.
value
[
index
].
id
});
jldw
.
value
.
splice
(
index
,
1
);
childrenjl
.
value
.
splice
(
index
,
1
);
}
// 保存
async
function
savejl
(
event
,
index
)
{
event
.
stopPropagation
();
try
{
if
(
saveFlg
.
value
)
{
saveFlg
.
value
=
false
;
const
res
=
await
childrenjl
.
value
[
index
].
getFormValueBz
();
res
.
wthtje
=
String
(
res
.
wthtje
);
res
.
scjdbm
=
'S5'
;
res
.
pgtype
=
param
.
value
.
pgtype
;
res
.
jgtype
=
'jldw'
;
res
.
wrdkid
=
param
.
value
.
wrdkid
;
const
id
=
await
updateJcdw
(
res
);
if
(
id
!=
'成功'
)
{
jldw
.
value
[
index
]
=
res
;
jldw
.
value
[
index
].
id
=
id
;
}
saveFlg
.
value
=
true
;
// getdkInfor();
}
else
{
createMessage
.
warn
(
'数据更新中请稍后点击'
);
}
}
catch
{
saveFlg
.
value
=
true
;
}
}
</
script
>
<
style
lang=
"less"
scoped
>
...
...
src/views/dkgl/xfpg/FillingInfor.vue
浏览文件 @
44de2c1d
...
...
@@ -44,6 +44,28 @@
<a-button
type=
"primary"
@
click
.
prevent=
"sujcpgunitListt($event, index)"
style=
"margin-left: 10px"
>
保存
</a-button>
</
template
>
</a-collapse-panel>
<a-collapse-panel
header=
"修复效果评估实施单位基本信息"
:forceRender=
"true"
v-for=
"(item, index) in ssdw"
:key=
"index + 9"
>
<unitMessageForm
:ref=
"(el) => childRefss(el, index)"
:data=
"item"
/>
<
template
#
extra
>
<a-button
type=
"primary"
@
click
.
prevent=
"addSs($event)"
>
添加
</a-button>
<a-button
type=
"primary"
class=
"ml-5"
v-if=
"index != 0"
@
click
.
prevent=
"deless($event, index)"
>
删除
</a-button>
<a-button
type=
"primary"
@
click
.
prevent=
"savess($event, index)"
style=
"margin-left: 10px"
>
保存
</a-button>
</
template
>
</a-collapse-panel>
<a-collapse-panel
header=
"修复效果评估监理单位基本信息"
:forceRender=
"true"
v-for=
"(item, index) in jldw"
:key=
"index + 12"
:dkxx=
"{ wrdkid: dsInfor.wrdkjbxxb.wrdkid, scjdbm: 'S5' }"
>
<unitMessageForm
:ref=
"(el) => childRefjl(el, index)"
:data=
"item"
:upload=
"index + 1"
title=
"监理"
/>
<
template
#
extra
>
<a-button
type=
"primary"
@
click
.
prevent=
"addjl($event)"
>
添加
</a-button>
<a-button
type=
"primary"
class=
"ml-5"
v-if=
"index != 0"
@
click
.
prevent=
"deljl($event, index)"
>
删除
</a-button>
<a-button
type=
"primary"
@
click
.
prevent=
"savejl($event, index)"
style=
"margin-left: 10px"
>
保存
</a-button>
</
template
>
</a-collapse-panel>
<a-collapse-panel
header=
"修复措施信息"
:forceRender=
"true"
key=
"140000"
>
<ControlInformation
labelFirst=
"修复效果评估"
...
...
@@ -81,8 +103,12 @@
const
param
=
ref
(
router
.
currentRoute
.
value
.
query
);
let
unitMessageFormList
=
ref
([{
id
:
null
}]);
let
jcpgunitList
=
ref
([{
id
:
null
}]);
const
ssdw
=
ref
([{
id
:
null
}]);
const
jldw
=
ref
([{
id
:
null
}]);
// 获取地块信息
const
dsInfor
=
ref
<
any
>
({
ssdw
:
[],
jldw
:
[],
jcdw
:
[],
bzdw
:
[],
cbdc
:
{},
...
...
@@ -100,14 +126,17 @@
saveFlg
.
value
=
true
;
unitMessageFormList
.
value
=
dsInfor
.
value
.
bzdw
;
jcpgunitList
.
value
=
dsInfor
.
value
.
jcdw
;
ssdw
.
value
=
dsInfor
.
value
.
ssdw
||
[{
id
:
null
}];
jldw
.
value
=
dsInfor
.
value
.
jldw
||
[{
id
:
null
}];
if
(
unitMessageFormList
.
value
.
length
==
0
)
unitMessageFormList
.
value
.
push
({
id
:
null
});
if
(
jcpgunitList
.
value
.
length
==
0
)
jcpgunitList
.
value
.
push
({
id
:
null
});
if
(
ssdw
.
value
.
length
==
0
)
ssdw
.
value
.
push
({
id
:
null
});
if
(
jldw
.
value
.
length
==
0
)
jldw
.
value
.
push
({
id
:
null
});
}
getdkInfor
();
const
activeKey
=
ref
([
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'140000'
,
'150000'
,
'160000'
]);
const
activeKey
=
ref
([
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'
8'
,
'9'
,
'10'
,
'11'
,
'12'
,
'13'
,
'
140000'
,
'150000'
,
'160000'
]);
// 风险管控基本方案
const
chilrenReport
=
ref
<
any
>
(
null
);
...
...
@@ -120,7 +149,7 @@
createMessage
.
warn
(
'请填写网址'
);
return
;
}
if
(
!
reg
.
test
(
res
.
gswz
)){
if
(
!
reg
.
test
(
res
.
gswz
))
{
createMessage
.
warn
(
'请输入正确的网址'
);
return
false
;
}
...
...
@@ -132,9 +161,9 @@
async
function
addGKcs
(
event
)
{
event
.
stopPropagation
();
const
res
=
await
chilrenGkcs
?.
value
.
getFormValueFxpg
();
if
(
res
.
sjxffw
>
dsInfor
.
value
.
wrdkjbxxb
.
zdmj
)
{
createMessage
.
warn
(
'开展修复土壤面积不能超过地块占地面积'
);
return
false
if
(
res
.
sjxffw
>
dsInfor
.
value
.
wrdkjbxxb
.
zdmj
)
{
createMessage
.
warn
(
'开展修复土壤面积不能超过地块占地面积'
);
return
false
;
}
await
saveXgpg
(
res
);
}
...
...
@@ -238,6 +267,104 @@
}
}
// 修复效果评估样品分析检测单位基本信息
// 实施单位
const
childrenss
=
ref
<
any
>
([]);
const
childRefss
=
(
el
,
index
)
=>
{
if
(
el
)
childrenss
.
value
[
index
]
=
el
;
};
const
callChildMethodss
=
(
index
)
=>
{
childrenss
.
value
[
index
].
getFormValueBz
();
};
// 新增
function
addSs
(
event
)
{
event
.
stopPropagation
();
ssdw
.
value
.
unshift
({
id
:
null
});
nextTick
(()
=>
{
callChildMethodss
(
ssdw
.
value
.
length
-
1
);
});
}
// 删除
async
function
deless
(
event
,
index
)
{
event
.
stopPropagation
();
if
(
ssdw
.
value
[
index
].
id
)
await
delBzdw
({
id
:
ssdw
.
value
[
index
].
id
});
ssdw
.
value
.
splice
(
index
,
1
);
childrenss
.
value
.
splice
(
index
,
1
);
}
// 保存
async
function
savess
(
event
,
index
)
{
event
.
stopPropagation
();
try
{
if
(
saveFlg
.
value
)
{
saveFlg
.
value
=
false
;
const
res
=
await
childrenss
.
value
[
index
].
getFormValueBz
();
res
.
wthtje
=
String
(
res
.
wthtje
);
res
.
scjdbm
=
'S6'
;
res
.
pgtype
=
param
.
value
.
pgtype
;
res
.
jgtype
=
'ssdw'
;
res
.
wrdkid
=
param
.
value
.
wrdkid
;
const
id
=
await
updateBzdw
(
res
);
if
(
id
!=
'成功'
)
{
ssdw
.
value
[
index
]
=
res
;
ssdw
.
value
[
index
].
id
=
id
;
}
saveFlg
.
value
=
true
;
// getdkInfor();
}
else
{
createMessage
.
warn
(
'数据更新中请稍后点击'
);
}
}
catch
{
saveFlg
.
value
=
true
;
}
}
//监理单位
const
childrenjl
=
ref
<
any
>
([]);
const
childRefjl
=
(
el
,
index
)
=>
{
if
(
el
)
childrenjl
.
value
[
index
]
=
el
;
};
const
callChildMethodjl
=
(
index
)
=>
{
childrenss
.
value
[
index
].
getFormValueBz
();
};
// 新增
function
addjl
(
event
)
{
event
.
stopPropagation
();
jldw
.
value
.
unshift
({
id
:
null
});
nextTick
(()
=>
{
callChildMethodjl
(
jldw
.
value
.
length
-
1
);
});
}
// 删除
async
function
deljl
(
event
,
index
)
{
event
.
stopPropagation
();
if
(
jldw
.
value
[
index
].
id
)
await
delJcdw
({
id
:
jldw
.
value
[
index
].
id
});
jldw
.
value
.
splice
(
index
,
1
);
childrenjl
.
value
.
splice
(
index
,
1
);
}
// 保存
async
function
savejl
(
event
,
index
)
{
event
.
stopPropagation
();
try
{
if
(
saveFlg
.
value
)
{
saveFlg
.
value
=
false
;
const
res
=
await
childrenjl
.
value
[
index
].
getFormValueBz
();
res
.
wthtje
=
String
(
res
.
wthtje
);
res
.
scjdbm
=
'S6'
;
res
.
pgtype
=
param
.
value
.
pgtype
;
res
.
jgtype
=
'jldw'
;
res
.
wrdkid
=
param
.
value
.
wrdkid
;
const
id
=
await
updateJcdw
(
res
);
if
(
id
!=
'成功'
)
{
jldw
.
value
[
index
]
=
res
;
jldw
.
value
[
index
].
id
=
id
;
}
saveFlg
.
value
=
true
;
// getdkInfor();
}
else
{
createMessage
.
warn
(
'数据更新中请稍后点击'
);
}
}
catch
{
saveFlg
.
value
=
true
;
}
}
</
script
>
<
style
lang=
"less"
scoped
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论