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
9b2a2440
Commit
9b2a2440
authored
Jul 02, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
7/2调整
parent
90fc1ce0
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
300 additions
and
31 deletions
+300
-31
cb.vue
src/views/ccgl/kngl/bz/top/cb.vue
+1
-0
mx.vue
src/views/ccgl/zlgl/kccjd/mx.vue
+1
-1
addAll.vue
src/views/ccgl/zlgl/kccjd/top/addAll.vue
+18
-6
edit.vue
src/views/ccgl/zlgl/kccjd/top/edit.vue
+6
-7
index.vue
src/views/ccgl/zlgl/kccjd/top/index.vue
+12
-16
wlxx.vue
src/views/ccgl/zlgl/kccjd/top/wlxx.vue
+1
-1
xj.vue
src/views/ccgl/zlgl/kccjd/top/xj.vue
+179
-0
xzgw.vue
src/views/ccgl/zlgl/kccjd/top/xzgw.vue
+82
-0
No files found.
src/views/ccgl/kngl/bz/top/cb.vue
View file @
9b2a2440
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
label
:
'packCode'
label
:
'packCode'
},
},
give
:
(
row
)
=>
{
give
:
(
row
)
=>
{
console
.
log
(
row
,
'M24062100050001M24062100050001'
)
this
.
form
.
wlid
=
row
.
wlid
this
.
form
.
wlid
=
row
.
wlid
this
.
form
.
wlxxCode
=
row
.
wlxxCode
this
.
form
.
wlxxCode
=
row
.
wlxxCode
this
.
form
.
zlh
=
row
.
zlh
this
.
form
.
zlh
=
row
.
zlh
...
...
src/views/ccgl/zlgl/kccjd/mx.vue
View file @
9b2a2440
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
},
},
config
:
{
config
:
{
/* 基本配置*/
/* 基本配置*/
url
:
'lxyl/zlgl/kccj'
,
url
:
'lxyl/zlgl/kccj
/query/detail
'
,
queryUrl
:
'lxyl/zlgl/kccj/query/detail'
,
queryUrl
:
'lxyl/zlgl/kccj/query/detail'
,
tableTitle
:
[{
tableTitle
:
[{
title
:
"物料编码"
,
title
:
"物料编码"
,
...
...
src/views/ccgl/zlgl/kccjd/top/addAll.vue
View file @
9b2a2440
<
template
>
</
template
>
<
script
>
</
script
>
<
template
>
<
template
>
<DefaultDialog
:app=
'app'
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;height: 70vh;"
>
<div
slot=
"form"
style=
"display: flex;height: 70vh;"
>
<div
class=
"full"
>
<div
class=
"full"
>
<el-tabs
class=
"full"
v-model=
"activeName"
>
<el-tabs
class=
"full"
v-model=
"activeName"
>
<el-tab-pane
class=
"full"
label=
"汇总"
name=
"first"
>
<el-tab-pane
class=
"full"
label=
"汇总"
name=
"first"
>
<Wlxx
@
getRow=
'getRow'
/>
<Wlxx
ref=
"hz"
@
getRow=
'getRow'
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
class=
"full"
label=
"明细"
name=
"second"
>
<el-tab-pane
class=
"full"
label=
"明细"
name=
"second"
>
<Add
ref=
"add"
/>
<Add
ref=
"add"
/>
...
@@ -54,12 +50,28 @@
...
@@ -54,12 +50,28 @@
},
},
methods
:
{
methods
:
{
save
()
{
save
()
{
/* hz信息*/
let
hzInfo
=
this
.
$refs
.
hz
.
$refs
.
basePage
.
singleItem
console
.
log
(
hzInfo
,
'hzInfo'
)
let
list
=
this
.
$refs
.
add
.
$refs
.
basePage
.
tabData
||
[]
let
list
=
this
.
$refs
.
add
.
$refs
.
basePage
.
tabData
||
[]
if
(
list
.
length
!=
0
)
{
if
(
list
.
length
!=
0
)
{
let
ckList
=
list
.
map
(
item
=>
item
.
ckid
)
let
ckList
=
list
.
map
(
item
=>
item
.
ckid
)
list
.
forEach
(
item
=>
{
item
.
sl
=
item
.
kcsl
item
.
lydjid
=
item
.
id
||
item
.
lydjid
delete
item
.
id
}
)
ckList
=
[...
new
Set
(
ckList
)]
ckList
=
[...
new
Set
(
ckList
)]
if
(
ckList
.
length
==
1
)
{
if
(
ckList
.
length
==
1
)
{
this
.
$post
(
'lxyl/zlgl/kccj/doGenerate'
,
list
).
then
(
res
=>
{
this
.
$post
(
'lxyl/zlgl/kccj/save'
,
{
ckid
:
hzInfo
.
ckid
,
wlid
:
hzInfo
.
wlid
,
wlph
:
hzInfo
.
wlph
,
datas
:[...
list
]
}).
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
this
.
$success
(
'操作成功'
)
this
.
app
.
showDialog
=
false
this
.
app
.
showDialog
=
false
...
...
src/views/ccgl/zlgl/kccjd/top/edit.vue
View file @
9b2a2440
...
@@ -74,14 +74,13 @@
...
@@ -74,14 +74,13 @@
})
})
},
},
/* 选择库存回调 */
/* 选择库存回调 */
savekc
(
list
)
{
// savekc(list) {
list
.
forEach
(
item
=>
{
// list.forEach(item => {
// 转换并且push
// delete item.id
delete
item
.
id
// this.formDetail.push(_.cloneDeep(item))
this
.
formDetail
.
push
(
_
.
cloneDeep
(
item
))
})
//
})
}
//
}
},
},
mounted
()
{
mounted
()
{
this
.
form
.
llrName
=
this
.
username
this
.
form
.
llrName
=
this
.
username
...
...
src/views/ccgl/zlgl/kccjd/top/index.vue
View file @
9b2a2440
...
@@ -2,12 +2,13 @@
...
@@ -2,12 +2,13 @@
<BasePage
:power=
'power'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<BasePage
:power=
'power'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Add
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog"
/>
<Add
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='新增'"
/>
<Xj
ref=
"xj"
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='下架'"
/>
</
template
>
</
template
>
<
template
#
toolbar=
"ctx"
>
<
template
#
toolbar=
"ctx"
>
<el-button
v-if=
"ctx.basePage.powerObj['01']"
@
click=
"showAdd(ctx.basePage)"
size=
'mini'
type=
"primary"
>
新增
</el-button>
<el-button
v-if=
"ctx.basePage.powerObj['01']"
@
click=
"showAdd(ctx.basePage)"
size=
'mini'
type=
"primary"
>
新增
</el-button>
<el-button
v-if=
"ctx.basePage.powerObj['21']"
@
click=
"cxjyrw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
创建检验单
</el-button>
<el-button
v-if=
"ctx.basePage.powerObj['21']"
@
click=
"cxjyrw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
创建检验单
</el-button>
<el-button
v-if=
"ctx.basePage.powerObj['22']"
@
click=
"cjxjrw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
创建下架任务
</el-button>
<el-button
v-if=
"ctx.basePage.powerObj['22']"
@
click=
"cjxjrw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
下架
</el-button>
</
template
>
</
template
>
...
@@ -17,6 +18,7 @@
...
@@ -17,6 +18,7 @@
<
script
>
<
script
>
// import Edit from './edit.vue'
// import Edit from './edit.vue'
import
Add
from
'./addAll.vue'
import
Add
from
'./addAll.vue'
import
Xj
from
'./xj.vue'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -131,20 +133,14 @@
...
@@ -131,20 +133,14 @@
},
},
cjxjrw
(
ctx
)
{
cjxjrw
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
ctx
.
DialogTitle
=
'下架'
confirmButtonText
:
'确定'
,
ctx
.
DialogWidth
=
'70vw'
cancelButtonText
:
'取消'
,
ctx
.
showDialog
=
true
type
:
'warning'
this
.
$nextTick
(()
=>
{
}).
then
(
res
=>
{
this
.
$refs
.
xj
.
$refs
.
basePage
.
queryParams
.
mid
=
ctx
.
singleItem
.
id
this
.
$post
(
'lxyl/zlgl/kccj/genXjrw'
,
{
this
.
$refs
.
xj
.
$refs
.
basePage
.
refresh
()
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
})
}
else
{
}
else
{
this
.
$warning
(
'请选中一条数据'
)
this
.
$warning
(
'请选中一条数据'
)
}
}
...
@@ -152,7 +148,7 @@
...
@@ -152,7 +148,7 @@
}
}
},
},
components
:
{
components
:
{
Add
Add
,
Xj
// Edit
// Edit
}
}
...
...
src/views/ccgl/zlgl/kccjd/top/wlxx.vue
View file @
9b2a2440
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
showExcel:false,
showExcel:false,
showPrint:false,
showPrint:false,
showField:true
showField:true
}" :setFirstCurrent='false' :power='power' @getRow='getRow' class="min_full" style="height: 100%;"
}" :setFirstCurrent='false'
ref="basePage"
:power='power' @getRow='getRow' class="min_full" style="height: 100%;"
:config="config">
:config="config">
<template
#
dialog=
"ctx"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
...
...
src/views/ccgl/zlgl/kccjd/top/xj.vue
0 → 100644
View file @
9b2a2440
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;height: 70vh;"
>
<Xzgw
@
saveGw=
'saveGw'
v-if=
"showDialog"
:app=
'this'
/>
<BasePage
:toolButtonConfig=
"
{
showExcel:false,
showPrint:false,
showField:true
}" :autoQuery='false' ref="basePage" :showPagination='false' :toolButton='false' :power='power' class="min_full" style="height: 100%;"
:config="config" />
</div>
<div
slot=
"reFooter"
class=
"refooter"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"app.showDialog=false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"save()"
>
下 架
</el-button>
</span>
</div>
</DefaultDialog>
</
template
>
<
script
>
import
wlsx
from
'common/src/mixin/wlphsx.js'
import
wlphsx
from
'common/src/mixin/wlphsx.js'
import
Xzgw
from
'./xzgw.vue'
export
default
{
mixins
:
[
wlsx
,
wlphsx
],
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
},
components
:{
Xzgw
},
data
()
{
return
{
showDialog
:
false
,
DialogTitle
:
'选择工位'
,
DialogWidth
:
'30vw'
,
power
:
{
add
:
false
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
true
,
/* 手动控制编辑按钮权限 */
editButton
:
false
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
false
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
showSelection
:
true
,
saveSelected
:
true
},
config
:
{
/* Dialog*/
// queryDetail: true,
/* 基本配置*/
url
:
'lxyl/zlgl/kccj/queryForXj'
,
queryUrl
:
'lxyl/zlgl/kccj/queryForXj'
,
tableTitle
:
[
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
140
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
140
},
{
title
:
"制令号"
,
field
:
"zlh"
,
width
:
180
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
180
},
{
title
:
"唯一码"
,
field
:
"packCode"
,
width
:
140
},
{
title
:
"数量"
,
field
:
"sl"
,
width
:
140
},
{
title
:
"容器"
,
field
:
"rqCode"
,
width
:
140
},
{
title
:
"重检日期"
,
field
:
"cjrq"
,
width
:
140
,
fieldType
:
'ftDateTime'
},
{
title
:
"生产日期"
,
field
:
"scrq"
,
width
:
140
,
fieldType
:
'ftDateTime'
},
{
title
:
"失效日期"
,
field
:
"sxrq"
,
width
:
140
,
fieldType
:
'ftDateTime'
},
{
title
:
"合格标志"
,
field
:
"hgbz"
,
"transform"
:
{
"url"
:
"lxyl/zlgl/ukcjyd/init/zjqdStatusEnum"
,
"label"
:
"name"
,
"value"
:
"id"
},
width
:
140
},
],
queryParams
:
[
],
/* 默认启停用 */
}
}
},
methods
:
{
saveGw
(
form
){
let
list
=
this
.
$refs
.
basePage
.
$refs
.
TablePager
.
selectedList
if
(
list
.
length
==
0
){
this
.
$warning
(
'请至少选择一条数据'
)
}
else
{
this
.
$post
(
'lxyl/zlgl/kccj/lkxj '
,{
id
:
this
.
$refs
.
basePage
.
queryParams
.
mid
,
gwid
:
form
.
gwid
,
datas
:
list
.
map
(
item
=>
item
.
id
)
}).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'操作成功'
)
this
.
app
.
showDialog
=
false
this
.
app
.
$refs
.
TablePager
.
refresh
()
}
})
}
},
save
()
{
let
list
=
this
.
$refs
.
basePage
.
$refs
.
TablePager
.
selectedList
if
(
list
.
length
==
0
){
this
.
$warning
(
'请至少选择一条数据'
)
}
else
{
this
.
showDialog
=
true
}
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/ccgl/zlgl/kccjd/top/xzgw.vue
0 → 100644
View file @
9b2a2440
<
template
>
<DefaultDialog
v-loading=
'isLoading'
:element-loading-text=
"text"
:app=
'app'
>
<div
slot=
"form"
style=
""
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
:app=
"this"
class=
"editRow"
>
<EditColItem
:required=
"item.required||false"
:readonly=
"item.readonly?true:false "
v-for=
"(item,index) in editColItemList "
:value=
"item.value"
:span=
"item.span"
:label=
"item.label"
v-if=
"(item.show==false)?false:true"
:prop=
'item.prop'
:key=
"item.prop"
:type=
"item.type"
:typeConfig=
'item.typeConfig'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
</el-form>
</div>
<div
slot=
"reFooter"
class=
"refooter"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"app.showDialog=false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"save()"
>
确 定
</el-button>
</span>
</div>
</DefaultDialog>
</
template
>
<
script
>
import
{
editMixin
,
editMixin_expand
}
from
'common'
export
default
{
mixins
:
[
editMixin
,
editMixin_expand
],
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
/* 初始化数据 */
},
data
()
{
return
{
isLoading
:
false
,
text
:
'加载中'
,
readonly
:
false
,
editColItemList
:
[{
label
:
'工位'
,
prop
:
'gwid'
,
span
:
24
,
required
:
true
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'lxyl/common/queryXlk'
,
transform
:
{
value
:
'id'
,
label
:
'name'
}
}
},
]
}
},
methods
:
{
save
()
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
$emit
(
'saveGw'
,
this
.
form
)
this
.
app
.
showDialog
=
false
}
})
}
}
}
</
script
>
<
style
scoped
>
</
style
>
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