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
3e165811
Commit
3e165811
authored
Jan 08, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
202418调整
parent
d947af05
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
174 additions
and
181 deletions
+174
-181
cx.vue
src/views/ccgl/kngl/kwtzd/top/cx.vue
+2
-10
edit.vue
src/views/ccgl/kngl/kwtzd/top/edit.vue
+159
-147
index.vue
src/views/ccgl/kngl/kwtzd/top/index.vue
+11
-22
vue.config.js
vue.config.js
+2
-2
No files found.
src/views/ccgl/kngl/kwtzd/top/cx.vue
View file @
3e165811
...
...
@@ -93,16 +93,8 @@
field
:
"wlph"
,
width
:
140
},
{
title
:
"包装数量"
,
field
:
"packmxSl"
,
width
:
140
},
{
title
:
"装托数量"
,
field
:
"ztsl"
,
width
:
140
},
{
title
:
"制令号"
,
field
:
"zlh"
,
...
...
src/views/ccgl/kngl/kwtzd/top/edit.vue
View file @
3e165811
<
template
>
<RelDialog
bigTitle
detailTable=
'ZLHBGMX'
@
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"
>
<RelDialog
bigTitle
detailTable=
'ZLHBGMX'
@
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"
:prop=
'item.prop'
:key=
"item.prop"
:type=
"item.type"
:typeConfig=
'item.typeConfig'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
<div
class=
"editTab"
>
<editTableForEdit
:indexApp=
'app'
:AuxButton=
'false'
ref=
"editTableForEdit"
:editTableTitle=
'editTableTitle'
v-if=
"editTableForEdit"
:computedRow=
'computedRow'
:editTableData=
"formDetail"
>
<template
v-if=
"type!='view'"
#
toolbar=
"ctx"
>
<el-button
@
click=
"add"
size=
'mini'
type=
"primary"
>
新增
</el-button>
</
template
>
</editTableForEdit>
</div>
</el-form>
<!-- editTab数据 -->
</RelDialog>
<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"
:prop=
'item.prop'
:key=
"item.prop"
:type=
"item.type"
:typeConfig=
'item.typeConfig'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
<div
class=
"editTab"
>
<editTableForEdit
:indexApp=
'app'
:AuxButton=
'false'
ref=
"editTableForEdit"
:editTableTitle=
'editTableTitle'
v-if=
"editTableForEdit"
:computedRow=
'computedRow'
:editTableData=
"formDetail"
>
<template
v-if=
"type!='view'"
#
toolbar=
"ctx"
>
<el-button
@
click=
"add"
size=
'mini'
type=
"primary"
>
选择调整明细
</el-button>
</
template
>
</editTableForEdit>
</div>
</el-form>
<!-- editTab数据 -->
</RelDialog>
</template>
<
script
>
import
{
toFixed
,
doRkdChange
}
from
'common/src/utils/blur.js'
import
{
editMixin
,
editMixin_expand
}
from
'common'
import
Cx
from
'./cx.vue'
export
default
{
mixins
:
[
editMixin
,
editMixin_expand
],
methods
:
{
add
(){
this
.
showDialog
=
true
import
{
toFixed
,
doRkdChange
}
from
'common/src/utils/blur.js'
import
{
editMixin
,
editMixin_expand
}
from
'common'
import
Cx
from
'./cx.vue'
export
default
{
mixins
:
[
editMixin
,
editMixin_expand
],
methods
:
{
add
()
{
/* */
if
(
this
.
form
.
ckid
){
this
.
showDialog
=
true
}
else
{
this
.
$warning
(
'请选择仓库后再进行操作'
)
}
},
/* 需要整体row时的回调 */
computedRow
(
row
)
{
// this.$refs.editTableForEdit.$forceUpdate()
},
/* 选择list时的回调 */
save
(
list
){
this
.
showDialog
=
false
/* 需要整体row时的回调 */
computedRow
(
row
)
{
// this.$refs.editTableForEdit.$forceUpdate()
},
/* 选择list时的回调 */
save
(
list
)
{
this
.
showDialog
=
false
this
.
formDetail
.
splice
(
0
,
this
.
formDetail
.
length
);
/* 添加熬子表*/
list
.
forEach
(
item
=>
{
item
.
lydjid
=
item
.
id
item
.
bzsl
=
item
.
packmxSl
||
0
list
.
forEach
(
item
=>
{
item
.
lydjid
=
item
.
id
item
.
bzsl
=
item
.
packmxSl
||
0
delete
item
.
id
this
.
formDetail
.
push
(
_
.
cloneDeep
(
item
))
})
}
},
components
:{
},
components
:
{
Cx
},
mounted
()
{
},
data
()
{
return
{
DialogTitle
:
'新增'
,
DialogWidth
:
'60vw'
,
showDialog
:
false
,
/* 常规edit数据 */
editColItemList
:
[{
label
:
'变更单号'
,
prop
:
'djid'
,
span
:
8
,
type
:
'input'
,
},
{
label
:
'变更日期'
,
prop
:
'ywrq'
,
span
:
8
,
type
:
'date'
,
value
:
new
Date
().
getTime
(),
"required"
:
true
,
},
{
"label"
:
"SAP变更类型"
,
"prop"
:
"bglx"
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"required"
:
true
,
"typeConfig"
:
{
"src"
:
"lxyl/kcgl/zlhbg/init/sapbglx"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
label
:
'备注'
,
prop
:
'bz'
,
span
:
24
,
type
:
'input'
,
},
],
/* 从表编辑数据 */
editTableTitle
:
[{
title
:
"序号"
,
field
:
"xh"
,
width
:
50
,
align
:
"center"
},
data
()
{
return
{
DialogTitle
:
'新增'
,
DialogWidth
:
'60vw'
,
showDialog
:
false
,
/* 常规edit数据 */
editColItemList
:
[{
label
:
'业务日期'
,
prop
:
'ywrq'
,
span
:
8
,
type
:
'date'
,
value
:
new
Date
().
getTime
(),
"required"
:
true
,
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
160
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"jcsj/common/ck/queryCkid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
160
},
{
title
:
"规格"
,
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
200
,
label
:
'负责人'
,
prop
:
'fzrid'
,
span
:
8
,
type
:
'AuxInput'
,
typeConfig
:
{
code
:
'USER'
,
label
:
'usersName'
,
transform
:
{
value
:
'id'
,
label
:
'username'
}
},
"required"
:
true
,
},
{
title
:
"唯一码"
,
field
:
"packid"
,
width
:
200
,
label
:
'备注'
,
prop
:
'bz'
,
span
:
24
,
type
:
'input'
,
},
],
/* 从表编辑数据 */
editTableTitle
:
[{
title
:
"序号"
,
field
:
"xh"
,
width
:
50
,
align
:
"center"
},
{
title
:
"容器
"
,
field
:
"rq
Code"
,
width
:
200
,
title
:
"物料编码
"
,
field
:
"wlxx
Code"
,
width
:
160
},
{
title
:
"货主
"
,
field
:
"hz
Name"
,
width
:
200
,
title
:
"物料名称
"
,
field
:
"wlxx
Name"
,
width
:
160
},
{
title
:
"制令号
"
,
field
:
"zlh
"
,
width
:
200
,
title
:
"规格
"
,
field
:
"wlxxGg
"
,
width
:
140
},
{
title
:
"变更后制令
号"
,
field
:
"bghzl
h"
,
width
:
200
,
title
:
"物料批
号"
,
field
:
"wlp
h"
,
width
:
200
,
},
{
title
:
"包装数量
"
,
field
:
"bzsl
"
,
width
:
200
,
title
:
"唯一码
"
,
field
:
"packid
"
,
width
:
200
,
},
{
title
:
"装托数量"
,
field
:
"ztsl"
,
width
:
200
,
title
:
"容器"
,
field
:
"rqCode"
,
width
:
200
,
},
{
title
:
"货主"
,
field
:
"hzName"
,
width
:
200
,
},
{
title
:
"制令号"
,
field
:
"zlh"
,
width
:
200
,
},
{
title
:
"变更后制令号"
,
field
:
"bghzlh"
,
width
:
200
,
},
{
title
:
"包装数量"
,
field
:
"bzsl"
,
width
:
200
,
},
{
title
:
"装托数量"
,
field
:
"ztsl"
,
width
:
200
,
}
]
}
}
}
]
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
url("~common/src/assets/styles/editDetail.scss")
;
@import
url("~common/src/assets/styles/editDetail.scss")
;
</
style
>
src/views/ccgl/kngl/kwtzd/top/index.vue
View file @
3e165811
...
...
@@ -20,29 +20,24 @@
/* 基本配置*/
url
:
'wms/kcgl/kwtz'
,
tableTitle
:
[{
title
:
"
变更单
号"
,
title
:
"
单据
号"
,
field
:
"djid"
,
width
:
140
},
{
title
:
"
变更
日期"
,
title
:
"
业务
日期"
,
field
:
"ywrq"
,
fieldType
:
'ftDate'
},
{
title
:
"
SAP变更类型
"
,
field
:
"
bglx
"
,
title
:
"
仓库
"
,
field
:
"
ckName
"
,
width
:
140
},
{
title
:
"状态"
,
field
:
"zt"
,
width
:
100
,
"transform"
:
{
"url"
:
"wms/kcgl/kwtz/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
}
title
:
"负责人"
,
field
:
"fzrName"
,
width
:
140
},
{
title
:
"备注"
,
...
...
@@ -60,7 +55,8 @@
}
],
queryParams
:
[
[{
[
{
label
:
'日期'
,
startProp
:
"start"
,
endProp
:
"end"
,
...
...
@@ -72,7 +68,7 @@
{
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
6
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
...
...
@@ -83,17 +79,10 @@
}
}
},
{
label
:
'变更单号'
,
prop
:
'djid'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
{
label
:
'负责人'
,
prop
:
'fzr'
,
span
:
4
,
span
:
8
,
type
:
'input'
,
value
:
''
}
...
...
vue.config.js
View file @
3e165811
...
...
@@ -39,8 +39,8 @@ module.exports = {
[
process
.
env
.
VUE_APP_BASE_API
]:
{
// target: `http://192.168.30.254:18080/dmg`,
// target: `http://192.168.30.254:28084/erp`,
// target: `http://192.168.30.111
:9080/lxyl`,
target
:
`http://localhost:9080/lxyl`
,
target
:
`http://192.168.30.104
:9080/lxyl`
,
//
target: `http://localhost:9080/lxyl`,
// target:'http://192.168.30.105:9081/erp',
changeOrigin
:
true
,
pathRewrite
:
{
...
...
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