Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lxyl-vue
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
李苏
lxyl-vue
Commits
de8aaa87
Commit
de8aaa87
authored
Apr 11, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关闭取消关闭
parent
01dfba71
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
484 additions
and
388 deletions
+484
-388
index.vue
src/views/ccgl/ckgl/jhd/top/index.vue
+236
-189
index.vue
src/views/ccgl/rkgl/sjrw/top/index.vue
+247
-198
index.vue
src/views/ccgl/zlgl/jyd/top/index.vue
+1
-1
No files found.
src/views/ccgl/ckgl/jhd/top/index.vue
View file @
de8aaa87
...
@@ -5,6 +5,8 @@
...
@@ -5,6 +5,8 @@
</
template
>
</
template
>
<
template
#
toolbar=
"ctx"
>
<
template
#
toolbar=
"ctx"
>
<el-button
@
click=
"jhtj(ctx.basePage)"
size=
'mini'
type=
"primary"
>
拣货推荐
</el-button>
<el-button
@
click=
"jhtj(ctx.basePage)"
size=
'mini'
type=
"primary"
>
拣货推荐
</el-button>
<el-button
@
click=
"gb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
关闭
</el-button>
<el-button
@
click=
"qxgb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消关闭
</el-button>
<!--
<ImportButton
@
success=
"()=>
{
<!--
<ImportButton
@
success=
"()=>
{
ctx.basePage.refresh()
ctx.basePage.refresh()
}" :url="'wms/ckgl/jhtz/import'" /> -->
}" :url="'wms/ckgl/jhtz/import'" /> -->
...
@@ -37,8 +39,7 @@
...
@@ -37,8 +39,7 @@
queryDetail
:
true
,
queryDetail
:
true
,
/* 基本配置*/
/* 基本配置*/
url
:
'wms/ckgl/jhtz'
,
url
:
'wms/ckgl/jhtz'
,
tableTitle
:
[
tableTitle
:
[{
{
title
:
"状态"
,
title
:
"状态"
,
field
:
"zt"
,
field
:
"zt"
,
fieldType
:
"ftString"
,
fieldType
:
"ftString"
,
...
@@ -128,8 +129,8 @@
...
@@ -128,8 +129,8 @@
endProp
:
"end"
,
endProp
:
"end"
,
span
:
8
,
span
:
8
,
type
:
'RelDaterangeV2'
,
type
:
'RelDaterangeV2'
,
startValue
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
startValue
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
endValue
:
new
Date
().
getTime
(),
endValue
:
new
Date
().
getTime
(),
},
},
{
{
"label"
:
"仓库"
,
"label"
:
"仓库"
,
...
@@ -152,8 +153,8 @@
...
@@ -152,8 +153,8 @@
"type"
:
"RelSelect"
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"value"
:
""
,
"typeConfig"
:
{
"typeConfig"
:
{
linkParams
:[
'ckid'
],
linkParams
:
[
'ckid'
],
linkage
:
true
,
linkage
:
true
,
"src"
:
"wms/jcsj/kq/query"
,
"src"
:
"wms/jcsj/kq/query"
,
"match"
:
{
"match"
:
{
"value"
:
"id"
,
"value"
:
"id"
,
...
@@ -164,8 +165,8 @@
...
@@ -164,8 +165,8 @@
],[
],
{
[
{
label
:
'单据编号'
,
label
:
'单据编号'
,
prop
:
'djid'
,
prop
:
'djid'
,
span
:
8
,
span
:
8
,
...
@@ -189,8 +190,8 @@
...
@@ -189,8 +190,8 @@
}
}
},
},
],[
],
{
[
{
label
:
'事务类型'
,
label
:
'事务类型'
,
prop
:
'swlxid'
,
prop
:
'swlxid'
,
span
:
8
,
span
:
8
,
...
@@ -198,8 +199,7 @@
...
@@ -198,8 +199,7 @@
typeConfig
:
{
typeConfig
:
{
src
:
'lxyl/rkgl/jhtz/init/swlx'
src
:
'lxyl/rkgl/jhtz/init/swlx'
}
}
}
}]
]
],
],
/* 默认启停用 */
/* 默认启停用 */
...
@@ -208,7 +208,54 @@
...
@@ -208,7 +208,54 @@
},
},
methods
:
{
methods
:
{
jhtj
(
ctx
){
gb
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$prompt
(
'请输入原因'
,
''
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
}).
then
(({
value
})
=>
{
if
(
value
)
{
this
.
$post
(
'wms/ckgl/jhtz/close/jhtzmx'
,
{
id
:
ctx
.
singleItem
.
id
,
gbyy
:
value
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
}
else
{
this
.
$warning
(
'请输入关闭原因'
)
}
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
qxgb
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'wms/ckgl/jhtz/unclose/jhtzmx'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
jhtj
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
...
@@ -228,8 +275,8 @@
...
@@ -228,8 +275,8 @@
this
.
$warning
(
'请选中一条数据'
)
this
.
$warning
(
'请选中一条数据'
)
}
}
},
},
getRow
(
val
){
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
this
.
$emit
(
'getRow'
,
val
)
}
}
},
},
components
:
{
components
:
{
...
...
src/views/ccgl/rkgl/sjrw/top/index.vue
View file @
de8aaa87
<
template
>
<
template
>
<BasePage
:copy=
'false'
addRename=
'新增'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<BasePage
:copy=
'false'
addRename=
'新增'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<template
#
dialog=
"ctx"
>
...
@@ -7,7 +6,9 @@
...
@@ -7,7 +6,9 @@
<
template
#
toolbar=
"ctx"
>
<
template
#
toolbar=
"ctx"
>
<el-button
@
click=
"tjkw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
推荐库位
</el-button>
<el-button
@
click=
"tjkw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
推荐库位
</el-button>
<el-button
@
click=
"qktjkw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
清空推荐库位
</el-button>
<el-button
@
click=
"qktjkw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
清空推荐库位
</el-button>
<!--
<ImportButton
@
success=
"()=>
{
<el-button
@
click=
"gb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
关闭
</el-button>
<el-button
@
click=
"qxgb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消关闭
</el-button>
<!--
<ImportButton
@
success=
"()=>
{
ctx.basePage.refresh()
ctx.basePage.refresh()
}" :url="'/wms/rkgl/rktz/import'" /> -->
}" :url="'/wms/rkgl/rktz/import'" /> -->
</
template
>
</
template
>
...
@@ -169,7 +170,8 @@
...
@@ -169,7 +170,8 @@
],[
],
[
{
{
label
:
'上架人'
,
label
:
'上架人'
,
...
@@ -187,48 +189,95 @@
...
@@ -187,48 +189,95 @@
},
},
methods
:
{
methods
:
{
qktjkw
(
ctx
){
gb
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$prompt
(
'请输入原因'
,
''
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
}).
then
(({
value
})
=>
{
if
(
value
)
{
this
.
$post
(
'wms/rkgl/sjtz/close/sjtzmx'
,
{
id
:
ctx
.
singleItem
.
id
,
gbyy
:
value
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
}
else
{
this
.
$warning
(
'请输入关闭原因'
)
}
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
qxgb
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'wms/rkgl/sjtz/unclose/sjtzmx'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
qktjkw
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续该操作?'
,
'提示'
,
{
this
.
$confirm
(
'是否继续该操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(
res
=>
{
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/rkgl/sjtz/cleanKw '
,
{
this
.
$post
(
'lxyl/rkgl/sjtz/cleanKw '
,
{
id
:
ctx
.
singleItem
.
id
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
ctx
.
refresh
()
}
}
})
})
})
})
}
else
{
}
else
{
this
.
$warning
(
'请选中一条数据'
)
this
.
$warning
(
'请选中一条数据'
)
}
}
},
},
tjkw
(
ctx
){
tjkw
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续?'
,
'提示'
,
{
this
.
$confirm
(
'是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(
res
=>
{
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/rkgl/sjtz/calcKw'
,
{
this
.
$post
(
'lxyl/rkgl/sjtz/calcKw'
,
{
id
:
ctx
.
singleItem
.
id
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
this
.
$success
(
'操作成功'
)
this
.
$emit
(
'sxmx'
)
this
.
$emit
(
'sxmx'
)
}
}
})
})
})
})
}
else
{
}
else
{
this
.
$warning
(
'请选择一条数据'
)
this
.
$warning
(
'请选择一条数据'
)
}
}
},
},
getRow
(
val
){
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
this
.
$emit
(
'getRow'
,
val
)
}
}
},
},
components
:
{
components
:
{
...
...
src/views/ccgl/zlgl/jyd/top/index.vue
View file @
de8aaa87
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
field
:
"lydid"
,
field
:
"lydid"
,
width
:
200
,
width
:
200
,
formatter
(
a
,
b
,
c
)
{
formatter
(
a
,
b
,
c
)
{
return
a
.
kccjCode
||
a
.
ukcyhdCode
return
a
.
lydid
||
a
.
kccjCode
||
a
.
ukcyhdCode
}
}
},
},
{
{
...
...
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