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
cf1156df
authored
2023-08-01 15:27:42 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:材料目录修改完成
1 parent
dd9c3579
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
11 deletions
src/api/clxx.js
src/views/workflow/components/clxx/clxxUnify.vue
src/views/workflow/components/dialog/clxxDetailDialog.vue
src/api/clxx.js
View file @
cf1156d
/*
* @Description: 材料信息
* @Autor: renchao
* @LastEditTime: 2023-0
7-28 14:31:00
* @LastEditTime: 2023-0
8-01 15:20:21
*/
import
request
from
'@/utils/request'
let
SERVER
=
window
.
config
?
window
.
config
:
JSON
.
parse
(
localStorage
.
getItem
(
'ApiUrl'
))
...
...
@@ -44,6 +44,18 @@ export function saveClml (data) {
data
})
}
/**
* @description: 修改收件材料目录
* @param {*} data
* @author: renchao
*/
export
function
updateClml
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/ywbl/clxx/updateClml'
,
method
:
'post'
,
data
})
}
/**
* @description: 材料目录批量删除
...
...
src/views/workflow/components/clxx/clxxUnify.vue
View file @
cf1156d
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-01
09:41:01
* @LastEditTime: 2023-08-01
15:19:13
-->
<
template
>
<div
class=
"clxx"
>
...
...
@@ -262,11 +262,12 @@
},
//查看明细
viewDetail
()
{
this
.
$store
.
dispatch
(
'user/reWorkFresh'
,
false
)
this
.
$popupDialog
(
"查看明细"
,
"workflow/components/dialog/clxxDetailDialog"
,
{
data
:
this
.
tableData
,
unitData
:
this
.
$parent
.
unitData
,
ableOperation
:
this
.
$parent
.
ableOperation
},
"60%"
)
},
"60%"
,
true
)
},
//设置tableData
setTableData
(
tableData
)
{
...
...
src/views/workflow/components/dialog/clxxDetailDialog.vue
View file @
cf1156d
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-01 1
0:01:19
* @LastEditTime: 2023-08-01 1
5:24:10
-->
<
template
>
<div
class=
"clmlmx-box"
>
...
...
@@ -10,14 +10,14 @@
</lb-table>
<div
class=
"text-center"
>
<el-button
@
click=
"$popupCacel"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleSubmit"
v-if=
"formData.ableOperation"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"handleSubmit"
:loading=
"loading"
v-if=
"formData.ableOperation"
>
保存
</el-button>
</div>
</div>
</
template
>
<
script
>
import
Vue
from
'vue'
import
store
from
'@/store/index.js'
import
{
InitClml
,
sav
eClml
,
deleteSjClml
,
moveClml
}
from
"@/api/clxx.js"
;
import
{
InitClml
,
updat
eClml
,
deleteSjClml
,
moveClml
}
from
"@/api/clxx.js"
;
export
default
{
props
:
{
formData
:
{
...
...
@@ -29,6 +29,7 @@
},
data
()
{
return
{
loading
:
false
,
column
:
[
{
width
:
"50"
,
...
...
@@ -177,7 +178,6 @@
watch
:
{
'formData.data'
:
{
handler
:
function
(
val
,
oldVal
)
{
console
.
log
(
val
,
'valvalval'
);
this
.
tableData
=
_
.
cloneDeep
(
val
)
},
immediate
:
true
,
...
...
@@ -186,10 +186,18 @@
},
methods
:
{
handleSubmit
()
{
// saveClml(this.tableData).then(res => {
// console.log(res, '11111111111111');
// })
// store.dispatch('user/reWorkFresh', true)
this
.
loading
=
true
updateClml
(
this
.
tableData
).
then
(
res
=>
{
this
.
loading
=
false
if
(
res
.
code
==
200
)
{
this
.
$message
({
message
:
'保存成功'
,
type
:
'success'
})
this
.
$popupCacel
()
store
.
dispatch
(
'user/reWorkFresh'
,
true
)
}
})
},
/**
* @description: 材料目录明细初始化
...
...
Please
register
or
sign in
to post a comment