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
106be7af
Commit
106be7af
authored
Aug 29, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整为清单
parent
14937597
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
215 additions
and
147 deletions
+215
-147
ckdmx.vue
src/views/ccgl/ckgl/dbckd/ckdmx.vue
+1
-2
ckqd.vue
src/views/ccgl/ckgl/dbckd/ckqd.vue
+20
-4
index.vue
src/views/ccgl/ckgl/dbckd/index.vue
+6
-4
mxakck.vue
src/views/ccgl/ckgl/dbckd/mxakck.vue
+188
-137
No files found.
src/views/ccgl/ckgl/dbckd/ckdmx.vue
View file @
106be7af
...
...
@@ -6,8 +6,7 @@
<mxakck
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog"
/>
</
template
>
<
template
#
toolbar=
"ctx"
>
<el-button
@
click=
"xzmx(ctx.basePage)"
size=
'mini'
type=
"primary"
>
新增
</el-button>
<!--
<el-button
@
click=
"xzmx(ctx.basePage)"
size=
'mini'
type=
"primary"
>
新增
</el-button>
-->
</
template
>
</BasePage>
...
...
src/views/ccgl/ckgl/dbckd/ckqd.vue
View file @
106be7af
<
template
>
<BasePage
@
getRow=
'getRow'
ref=
"basePage"
:power=
'power'
:toolButton=
'false'
class=
"min_full"
<BasePage
:changeDelParams=
'changeDelParams'
@
getRow=
'getRow'
ref=
"basePage"
:power=
'power'
:toolButton=
'false'
class=
"min_full"
style=
"height: 100%;"
:autoQuery=
'false'
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<mxakck
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog"
/>
</
template
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<el-button
@
click=
"xzmx(ctx.basePage)"
size=
'mini'
type=
"primary"
>
新增
</el-button>
</
template
>
...
...
@@ -13,6 +15,7 @@
</template>
<
script
>
import
mxakck
from
'./mxakck.vue'
import
wlsx
from
'common/src/mixin/wlsx.js'
import
wlphsx
from
'common/src/mixin/wlphsx.js'
export
default
{
...
...
@@ -27,11 +30,11 @@
add
:
false
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
fals
e
,
delButton
:
tru
e
,
/* 手动控制编辑按钮权限 */
editButton
:
false
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
fals
e
,
operateButtons
:
tru
e
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
...
...
@@ -121,6 +124,19 @@
},
methods
:
{
xzmx
(
ctx
){
if
(
ctx
.
queryParams
.
mid
){
ctx
.
DialogWidth
=
'60vw'
ctx
.
DialogTitle
=
'新增明细数据'
ctx
.
showDialog
=
true
}
else
{
this
.
$warning
(
'请选择一条调拨出库单'
)
}
},
changeDelParams
(
params
){
params
.
id
=
params
.
master
.
id
delete
params
.
master
},
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
},
...
...
@@ -134,7 +150,7 @@
},
components
:
{
mxakck
}
}
...
...
src/views/ccgl/ckgl/dbckd/index.vue
View file @
106be7af
...
...
@@ -8,12 +8,13 @@
<div
class=
"bottom flex"
>
<div
class=
"full"
>
<el-tabs
class=
"full"
v-model=
"activeName"
>
<el-tab-pane
class=
"full"
label=
"出库清单"
name=
"second"
>
<ckqd
ref=
"ckqd"
class=
"full"
/>
</el-tab-pane>
<el-tab-pane
class=
"full"
label=
"出库明细"
name=
"first"
>
<ckdmx
@
getRow=
'ckdmxGetRow'
ref=
"ckdmx"
class=
"full"
/>
</el-tab-pane>
<el-tab-pane
class=
"full"
label=
"出库清单"
name=
"second"
>
<ckqd
ref=
"ckqd"
class=
"full"
/>
</el-tab-pane>
</el-tabs>
</div>
...
...
@@ -34,7 +35,7 @@
},
data
(){
return
{
activeName
:
'
first
'
activeName
:
'
second
'
}
},
methods
:
{
...
...
@@ -46,6 +47,7 @@
setFirstCurrent
:
true
})
this
.
$refs
.
ckqd
.
$refs
.
basePage
.
queryParams
.
mid
=
mid
this
.
$refs
.
ckqd
.
$refs
.
basePage
.
dbckd
=
row
this
.
$refs
.
ckqd
.
$refs
.
basePage
.
$refs
[
'TablePager'
].
pageQuery
()
},
ckdmxGetRow
(
row
){
...
...
src/views/ccgl/ckgl/dbckd/mxakck.vue
View file @
106be7af
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
class=
"editTab"
>
<Kc
@
save=
'kcSave'
v-if=
"showDialog"
:app=
'this'
/>
<editTableForEdit
:AuxButton=
'false'
code=
'WMSWLXX'
:indexApp=
'app'
type=
'edit'
ref=
"editTableForEdit"
:editTableTitle=
'editTableTitle'
:editTableData=
"formDetail"
>
<template
#
toolbar=
"ctx"
>
<el-button
@
click=
"xzkc()"
size=
'mini'
type=
"primary"
>
选择库存
</el-button>
<!--
<AuxButton
:queryParams=
"
{
ckid:form.ckid
}" rename='选择库存' code='WLKC' @save="savekc" /> -->
</
template
>
</editTableForEdit>
<div
slot=
"form"
style=
"display: flex;height: 70vh;"
>
<BasePage
:handleSourceData=
'handleSourceData'
:autoQuery=
'false'
fePage
:changeQueryParams=
'changeQueryParams'
:toolButtonConfig=
"
{
showExcel:false,
showPrint:false,
showField:true
}" ref="basePage" :power='power' class="min_full" style="height: 100%;" :config="config"> ref="basePage"
:power='power' class="min_full" :config="config">
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
slot=
"tabCustom2"
>
<el-table-column
label=
"调拨数量"
width=
"120"
header-align=
"center"
fixed=
"right"
>
<template
slot-scope=
"scope"
>
<el-input
type=
'number'
v-model=
"scope.row['yfsl']"
></el-input>
</
template
>
</el-table-column>
</template>
</BasePage>
</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>
<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>
</div>
</DefaultDialog>
</template>
<
script
>
import
{
toFixed
,
}
from
'common/src/utils/blur.js'
import
Kc
from
'./top/kc.vue'
export
default
{
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
basePage
.
queryParams
.
ckid
=
this
.
app
.
dbckd
.
ckid
this
.
$refs
.
basePage
.
refresh
()
})
},
data
()
{
return
{
showDialog
:
false
,
DialogWidth
:
'70vw'
,
DialogName
:
''
,
DialogTitle
:
'选择库存'
,
formDetail
:[],
editTableTitle
:
[{
title
:
"序号"
,
field
:
"xh"
,
width
:
50
,
align
:
"center"
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
240
,
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
160
},
{
title
:
"规格"
,
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"计量单位"
,
field
:
"jldwName"
,
width
:
100
,
allowEdit
:
false
},
{
title
:
"调拨数量"
,
field
:
"yfsl"
,
allowEdit
:
true
,
type
:
'inputNumber'
,
width
:
200
,
blur
:
toFixed
(
null
),
},
{
title
:
"制令号"
,
field
:
"zlh"
,
type
:
'inputText'
,
width
:
180
,
allowEdit
:
false
},
/* 不可编辑*/
// {
// title: "出库数量",
// field: "cksl",
// width: 200,
// },
{
title
:
"物料批号"
,
field
:
"wlph"
,
type
:
'inputText'
,
allowEdit
:
false
,
width
:
180
,
power
:
{
add
:
false
,
copy
:
false
,
delButton
:
false
,
editButton
:
false
,
operateButtons
:
false
,
workFlow
:
false
,
/* 表格 */
showSelection
:
true
,
saveSelected
:
true
},
{
title
:
"库位"
,
field
:
"kwCode"
,
width
:
240
,
config
:
{
/* 基本配置*/
url
:
'lxyl/ckgl/cktz/query/kc'
,
queryUrl
:
'lxyl/ckgl/cktz/query/kc'
,
tableTitle
:
[{
title
:
"仓库编码"
,
field
:
"ckCode"
,
width
:
120
,
},
{
title
:
"容器"
,
field
:
"rqCode"
,
width
:
160
,
},
{
title
:
"唯一码"
,
field
:
"packCode"
,
width
:
160
,
},
{
title
:
"仓库"
,
field
:
"ckName"
,
width
:
120
,
},
{
title
:
"库位"
,
field
:
"kwCode"
,
width
:
100
,
},
{
title
:
"容器"
,
field
:
"rqCode"
,
width
:
160
,
},
]
},
{
title
:
"唯一码"
,
field
:
"packCode"
,
width
:
180
,
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
140
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
160
},
{
title
:
"规格"
,
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"计量单位"
,
field
:
"jldwName"
,
width
:
140
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
140
,
},
{
title
:
"库位名称"
,
field
:
"wlxxName"
,
width
:
120
,
},
{
title
:
"制令号"
,
field
:
"zlh"
,
width
:
180
,
},
{
title
:
"库存数量"
,
field
:
"kcsl"
,
width
:
120
,
fieldType
:
'float'
},
{
title
:
"工厂"
,
field
:
"hzName"
,
width
:
180
,
},
],
queryParams
:
[
[{
label
:
'物料信息'
,
prop
:
'wlxxInfos'
,
span
:
12
,
type
:
'input'
,
value
:
''
},
{
label
:
"容器"
,
prop
:
'rqInfos'
,
span
:
12
,
type
:
'input'
,
value
:
''
}
],
[{
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
12
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"lxyl/jcsj/uck/ck/queryCjckid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
}]
],
/* 默认启停用 */
showqt
:
false
,
}
}
},
methods
:
{
save
(){
if
(
this
.
formDetail
.
length
!=
0
){
let
mid
=
this
.
app
.
queryParams
.
mid
this
.
formDetail
.
forEach
(
item
=>
item
.
mid
=
mid
)
this
.
$post
(
'lxyl/ckgl/cktzqd/add'
,
this
.
formDetail
).
then
(
res
=>
{
if
(
res
.
success
){
handleSourceData
(
list
){
list
.
forEach
(
item
=>
item
.
yfsl
=
item
.
kcsl
)
},
changeQueryParams
(
queryParams
)
{
let
str
=
queryParams
.
rqInfos
let
trimmedStr
=
str
.
replace
(
/
\s
/g
,
''
);
// 使用正则表达式去除空格
trimmedStr
=
trimmedStr
.
replace
(
/,/
s
,
','
)
let
arr
=
trimmedStr
.
split
(
","
);
queryParams
.
rqInfos
=
arr
/* */
let
str2
=
queryParams
.
wlxxInfos
let
trimmedStr2
=
str2
.
replace
(
/
\s
/g
,
''
);
// 使用正则表达式去除空格
trimmedStr2
=
trimmedStr2
.
replace
(
/,/
s
,
','
)
let
arr2
=
trimmedStr2
.
split
(
","
);
queryParams
.
wlxxInfos
=
arr2
},
save
()
{
let
list
=
this
.
$refs
.
basePage
.
$refs
.
TablePager
.
selectedList
||
[]
if
(
list
.
length
==
0
)
{
this
.
$warning
(
'请至少勾选一条数据'
)
}
else
{
let
mid
=
this
.
app
.
queryParams
.
mid
list
.
forEach
(
item
=>
item
.
mid
=
mid
)
this
.
$post
(
'lxyl/ckgl/cktzqd/add'
,
list
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
app
.
refresh
()
this
.
app
.
showDialog
=
false
this
.
app
.
showDialog
=
false
}
})
}
else
{
this
.
$warning
(
'请至少选择一条数据'
)
}
},
kcSave
(
obj
){
let
{
list
}
=
obj
// this.form.ckid=list[0].ckid
// this.form.hzid=list[0].hzid
// this.form.hzName=list[0].hzName
// this.form.ywrq=row.ywrq
let
length
=
this
.
formDetail
.
length
this
.
formDetail
.
splice
(
0
,
length
)
list
.
forEach
(
item
=>
{
item
.
yfsl
=
item
.
kcsl
item
.
lydjid
=
item
.
id
delete
item
.
id
this
.
formDetail
.
push
(
_
.
cloneDeep
(
item
))
})
},
xzkc
(){
this
.
showDialog
=
true
},
},
components
:{
Kc
}
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
url("~common/src/assets/styles/editDetail.scss")
;
<
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