Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
f96d4091
authored
2023-08-01 09:44:37 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:材料明细
1 parent
b8917a94
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
15 deletions
src/views/workflow/components/clxx/clxxUnify.vue
src/views/workflow/components/dialog/clxxDetailDialog.vue
src/views/workflow/components/clxx/clxxUnify.vue
View file @
f96d409
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-0
7-31 13:59:45
* @LastEditTime: 2023-0
8-01 09:41:01
-->
<
template
>
<div
class=
"clxx"
>
...
...
@@ -68,6 +68,16 @@
created
()
{
this
.
clmlInitList
(
1
)
},
computed
:
{
...
mapGetters
([
'workFresh'
])
},
watch
:
{
workFresh
:
{
handler
(
newVal
,
oldVal
)
{
if
(
newVal
)
this
.
clmlInitList
(
1
)
}
}
},
mounted
()
{
this
.
ableOperation
=
this
.
$parent
.
ableOperation
},
...
...
@@ -254,7 +264,8 @@
viewDetail
()
{
this
.
$popupDialog
(
"查看明细"
,
"workflow/components/dialog/clxxDetailDialog"
,
{
data
:
this
.
tableData
,
unitData
:
this
.
$parent
.
unitData
unitData
:
this
.
$parent
.
unitData
,
ableOperation
:
this
.
$parent
.
ableOperation
},
"60%"
)
},
//设置tableData
...
...
src/views/workflow/components/dialog/clxxDetailDialog.vue
View file @
f96d409
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-0
7-31 14:27:07
* @LastEditTime: 2023-0
8-01 09:43:19
-->
<
template
>
<div
class=
"clmlmx-box"
>
...
...
@@ -10,6 +10,7 @@
</lb-table>
<div
class=
"text-center"
>
<el-button
@
click=
"$popupCacel"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleSubmit"
v-if=
"formData.ableOperation"
>
确定
</el-button>
</div>
</div>
</
template
>
...
...
@@ -58,16 +59,28 @@
{
prop
:
"sjmc"
,
label
:
"材料名称"
,
render
:
(
h
,
scope
)
=>
{
return
(
<
el
-
input
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
}}
><
/el-input
>
)
}
},
{
prop
:
"sjlx"
,
label
:
"材料类型"
,
width
:
"
8
0"
,
width
:
"
11
0"
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
span
>
{
this
.
dicStatus
(
scope
.
row
.
sjlx
,
"A40"
)}
<
/span
>
<
/div
>
<
el
-
select
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onChange
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
}}
>
{
store
.
getters
.
dictData
[
'A40'
].
map
(
option
=>
{
return
(
<
el
-
option
label
=
{
option
.
dname
}
value
=
{
option
.
dcode
}
><
/el-option
>
)
})
}
<
/el-select
>
)
}
},
...
...
@@ -127,7 +140,7 @@
},
{
label
:
"操作"
,
width
:
"
8
0"
,
width
:
"
10
0"
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
...
...
@@ -149,10 +162,13 @@
>
下移
<
/el-button
>
<
/div
>
);
},
},
<
i
v
-
show
=
{
scope
.
row
.
isrequired
!=
'1'
&&
formData
.
ableOperation
}
onClick
=
{()
=>
{
this
.
handleDelete
(
scope
.
$index
,
scope
.
row
);
}}
class
=
"el-icon-delete pointer"
style
=
"color:#409EFF;margin-left:5px;position: relative;top: 1px;"
><
/i
>
<
/div
>
)
}
}
],
key
:
0
,
tableData
:
[]
...
...
@@ -168,6 +184,12 @@
}
},
methods
:
{
handleSubmit
()
{
// saveClml(this.tableData).then(res => {
// console.log(res, '11111111111111');
// })
// store.dispatch('user/reWorkFresh', true)
},
/**
* @description: 材料目录明细初始化
* @author: renchao
...
...
@@ -187,7 +209,6 @@
}
else
{
this
.
tableData
=
[]
}
console
.
log
(
this
.
tableData
,
'this.tableData'
);
}
else
{
this
.
$message
.
error
(
res
.
message
)
}
...
...
@@ -248,7 +269,6 @@
}
})
},
// 材料目录删除
/**
* @description: 材料目录删除
* @param {*} index
...
...
@@ -268,7 +288,7 @@
if
(
res
==
200
)
{
that
.
$message
({
message
:
"删除成功"
,
type
:
"success"
,
type
:
"success"
})
}
}
...
...
Please
register
or
sign in
to post a comment