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
22870d8d
Commit
22870d8d
authored
Jan 08, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
b6e40a2d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
218 additions
and
117 deletions
+218
-117
cx.vue
src/views/ccgl/kngl/zlhbg/top/cx.vue
+145
-0
edit.vue
src/views/ccgl/kngl/zlhbg/top/edit.vue
+50
-109
mx.vue
src/views/ccgl/rkgl/mpzy/mx.vue
+5
-0
edit.vue
src/views/ccgl/rkgl/mpzy/top/edit.vue
+16
-7
mp.vue
src/views/ccgl/rkgl/mpzy/top/mp.vue
+2
-1
No files found.
src/views/ccgl/kngl/zlhbg/top/cx.vue
0 → 100644
View file @
22870d8d
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;height: 70vh;"
>
<!-- basePage-->
<BasePage
ref=
"basePage"
:power=
'power'
:toolButton=
'false'
class=
"min_full"
style=
"height: 100%;"
:autoQuery=
'false'
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
</
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>
</span>
</div>
</DefaultDialog>
</template>
<
script
>
export
default
{
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
},
data
()
{
return
{
power
:
{
add
:
false
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
false
,
/* 手动控制编辑按钮权限 */
editButton
:
false
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
false
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
showSelection
:
true
,
saveSelected
:
true
},
config
:
{
/* 基本配置*/
url
:
'lxyl/kcgl/zlhbg/queryZkPackOrRq'
,
queryUrl
:
'lxyl/kcgl/zlhbg/queryZkPackOrRq'
,
tableTitle
:
[{
title
:
"唯一码"
,
field
:
"packCode"
,
width
:
140
},
{
title
:
"容器"
,
field
:
"rqCode"
,
width
:
140
},
{
title
:
"货主"
,
field
:
"hzName"
,
width
:
140
},
/* 分割*/
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
140
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
140
},
{
title
:
"物料规格"
,
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
140
},
{
title
:
"制令号"
,
field
:
"zlh"
,
width
:
140
}
],
queryParams
:
[[
{
label
:
'制令号'
,
prop
:
'zlh'
,
span
:
6
,
type
:
'input'
,
value
:
''
}
]]
}
}
},
methods
:
{
save
(){
/* 判定是否勾选*/
let
list
=
this
.
$refs
.
basePage
.
$refs
.
TablePager
.
selectedList
if
(
list
.
length
!=
0
){
this
.
$prompt
(
'请输入变更后的制令号'
,
''
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
}).
then
(({
value
})
=>
{
if
(
value
){
list
.
forEach
(
item
=>
{
item
.
bghzlh
=
value
})
/* 触发save事件 */
this
.
$emit
(
'save'
,
list
)
}
else
{
this
.
$warning
(
'请输入变更后制令号'
)
}
})
}
else
{
this
.
$warning
(
'请至少勾选一条数据'
)
}
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
src/views/ccgl/kngl/zlhbg/top/edit.vue
View file @
22870d8d
...
...
@@ -2,6 +2,8 @@
<RelDialog
bigTitle
detailTable=
'RKTZMX'
@
getFormDetail=
'getFormDetail'
width=
"70%"
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<!-- 查询弹框-->
<Cx
@
save=
"save"
:app=
"this"
v-if=
'this.showDialog'
/>
<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"
...
...
@@ -11,29 +13,15 @@
</el-row>
<div
class=
"editTab"
>
<editTableForEdit
:indexApp=
'app'
code=
'WMSWLXX'
:type=
'type'
@
save=
'sav
e'
ref=
"editTableForEdit"
<editTableForEdit
:indexApp=
'app'
:AuxButton=
'fals
e'
ref=
"editTableForEdit"
:editTableTitle=
'editTableTitle'
v-if=
"editTableForEdit"
:computedRow=
'computedRow'
:editTableData=
"formDetail"
>
<template
v-if=
"type!='view'"
#
toolbar=
"ctx"
>
<!--
<AuxButton
:queryParams=
"
{
ckid:form.ckid
}" rename='按码盘单开' code='MPD' @save="save" /> -->
<el-button
@
click=
"add"
size=
'mini'
type=
"primary"
>
新增
</el-button>
</
template
>
</editTableForEdit>
</div>
<!-- <el-row class="bottomInfo" :gutter="20">
<el-col class="center" :span="12">
创建人:{{
form.cjr||localUser
}}
</el-col>
<el-col class="center" :span="12">
创建时间:{{
$moment(form.cjsj).format('YYYY-MM-DD HH:mm:ss')||$moment().format('YYYY-MM-DD HH:mm:ss')
}}
</el-col>
</el-row> -->
</el-form>
<!-- editTab数据 -->
...
...
@@ -48,36 +36,37 @@
editMixin
,
editMixin_expand
}
from
'common'
import
Cx
from
'./cx.vue'
export
default
{
mixins
:
[
editMixin
,
editMixin_expand
],
methods
:
{
add
(){
this
.
showDialog
=
true
},
/* 需要整体row时的回调 */
computedRow
(
row
)
{
// this.$refs.editTableForEdit.$forceUpdate()
},
/* 选择list时的回调 */
save
(
list
)
{
list
.
forEach
(
item
=>
{
// 转换并且push
item
.
wlid
=
item
.
id
item
.
wlmc
=
item
.
name
item
.
wlcode
=
item
.
code
item
.
xqsl
=
0
item
.
xqrq
=
new
Date
().
getTime
()
delete
item
.
id
this
.
formDetail
.
push
(
_
.
cloneDeep
(
item
))
save
(
list
){
this
.
showDialog
=
false
})
}
}
},
components
:{
Cx
},
mounted
()
{
},
data
()
{
return
{
DialogTitle
:
'新增'
,
DialogWidth
:
'60vw'
,
showDialog
:
false
,
/* 常规edit数据 */
editColItemList
:
[{
label
:
'变更单号'
,
...
...
@@ -126,104 +115,56 @@
width
:
50
,
align
:
"center"
},
{
title
:
"物料编码"
,
field
:
"code"
,
width
:
180
,
type
:
'AuxInput'
,
typeConfig
:
{
"code"
:
"MATERIAL"
,
"label"
:
"wlcode"
,
"transform"
:
{
"value"
:
"code"
,
"label"
:
"code"
},
give
(
data
)
{
this
.
form
.
wlid
=
data
.
id
this
.
form
.
wlmc
=
data
.
name
this
.
form
.
wlcode
=
data
.
code
}
}
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
160
},
{
title
:
"物料名称"
,
field
:
"wl
mc
"
,
field
:
"wl
xxName
"
,
width
:
160
},
{
title
:
"规格"
,
field
:
"
g
g"
,
field
:
"
wlxxG
g"
,
width
:
140
},
// {
// title: "计量单位",
// field: "jldwname",
// width: 100,
// allowEdit: false
// },
/* 不可编辑*/
{
title
:
"物料批号"
,
field
:
"wlph"
,
type
:
'inputText'
,
width
:
200
,
// show: JSON.parse(localStorage.getItem('isPhgl'))
},
{
title
:
"唯一码"
,
field
:
"packid"
,
width
:
200
,
},
{
title
:
"容器"
,
field
:
"rqCode"
,
width
:
200
,
},
{
title
:
"货主"
,
field
:
"hzName"
,
width
:
200
,
},
{
title
:
"制令号"
,
field
:
"zlh"
,
type
:
'inputText'
,
width
:
180
,
allowEdit
:
true
width
:
200
,
},
{
title
:
"数量"
,
field
:
"yssl"
,
allowEdit
:
true
,
type
:
'inputNumber'
,
blur
:
toFixed
(
null
),
title
:
"变更后制令号"
,
field
:
"bghzlh"
,
width
:
200
,
},
{
title
:
"已入库数量"
,
field
:
"rksl"
,
},
// {
// title: "库位",
// field: "kwid",
// width: 240,
// type: 'AuxInput',
// typeConfig: {
// isRequest: false,
// "code": "KWWH",
// "label": "kwName",
// queryParams: (row) => {
// return {
// ckid: this.form.ckid
// }
// },
// "transform": {
// "value": "id",
// "label": "name"
// }
// },
// show: JSON.parse(localStorage.getItem('isKwgl')),
// },
{
title
:
"备注"
,
field
:
"bz"
,
width
:
200
,
type
:
'inputText'
,
allowEdit
:
true
}
{
title
:
"数量"
,
field
:
"sl"
,
width
:
200
,
}
...
...
src/views/ccgl/rkgl/mpzy/mx.vue
View file @
22870d8d
...
...
@@ -69,6 +69,11 @@
field
:
"mpsl"
,
width
:
140
},
{
title
:
"容器"
,
field
:
"rqCode"
,
width
:
140
},
{
title
:
"制令号"
,
field
:
"zlh"
,
...
...
src/views/ccgl/rkgl/mpzy/top/edit.vue
View file @
22870d8d
...
...
@@ -22,6 +22,7 @@
</editTableForEdit>
</div>
<el-row
:gutter=
"20"
:app=
"this"
class=
"editRow bottomInfo"
>
<!-- 判定readonlu是否是函数-->
<EditColItem
:required=
"item.required||false"
:readonly=
"item.readonly?true:false "
v-for=
"(item,index) in editColItemList2 "
:value=
"item.value"
:span=
"item.span"
:label=
"item.label"
:prop=
'item.prop'
:key=
"item.prop"
:type=
"item.type"
:typeConfig=
'item.typeConfig'
...
...
@@ -138,6 +139,16 @@
}
},
watch
:{
formDetail
(
val
){
console
.
log
(
val
)
if
(
val
&&
val
.
length
==
0
){
this
.
editColItemList
[
0
].
readonly
=
false
}
else
{
this
.
editColItemList
[
0
].
readonly
=
true
}
}
},
data
()
{
return
{
form
:{
...
...
@@ -151,13 +162,6 @@
editColItemList
:
[
/* 入库单 辅助输入 关联入库单*/
{
// readonly:()=>{
// if(this.formDetail.length==0){
// return false
// }else{
// return true
// }
// },
label
:
'入库单'
,
"required"
:
true
,
prop
:
'lydjid'
,
...
...
@@ -319,6 +323,11 @@
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"容器"
,
field
:
"rqCode"
,
width
:
140
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
...
...
src/views/ccgl/rkgl/mpzy/top/mp.vue
View file @
22870d8d
...
...
@@ -28,7 +28,7 @@
label:'packCode',
value:'packid'
}" :queryParams='{
id:
form.lydjid
id:
app.form["lydjid"]
}' code='WMSBZGLMXMPZY' :form='form' />
</div>
</el-col>
...
...
@@ -78,6 +78,7 @@
async
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
form
.
lydjid
=
this
.
app
.
form
.
lydjid
console
.
log
(
this
.
form
)
})
},
data
()
{
...
...
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