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
d461fb49
Commit
d461fb49
authored
Jan 05, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
基础功能调整
parent
9cd1bd16
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
144 additions
and
175 deletions
+144
-175
permission.js
src/store/modules/permission.js
+5
-5
edit.vue
src/views/ccgl/ckgl/ckd/top/edit.vue
+7
-12
edit.vue
src/views/ccgl/ckgl/dbckd/top/edit.vue
+7
-12
edit.vue
src/views/ccgl/ckgl/jhd/top/edit.vue
+7
-12
edit.vue
src/views/ccgl/rkgl/dbrkd/top/edit.vue
+6
-11
edit.vue
src/views/ccgl/rkgl/mpzy/top/edit.vue
+7
-12
edit.vue
src/views/ccgl/rkgl/rkdj/edit.vue
+74
-94
index.vue
src/views/ccgl/rkgl/rkdj/index.vue
+25
-6
edit.vue
src/views/ccgl/rkgl/sjrw/top/edit.vue
+6
-11
No files found.
src/store/modules/permission.js
View file @
d461fb49
...
...
@@ -149,11 +149,11 @@ const permission = {
newmenus
.
push
(
mi
)
}
})
res
.
data
=
[...
newCommonList
,
...
newErpList
,
...
newPowerRoutes
]
//
res.data = dynamicRouter([...newCommonList, ...newErpList, ...newPowerRoutes], asymenus) || [...
//
newCommonList, ...newErpList, ...newPowerRoutes
//
]
//
res.data=[...
//
newCommonList, ...newErpList, ...newPowerRoutes]
res
.
data
=
dynamicRouter
([...
newCommonList
,
...
newErpList
,
...
newPowerRoutes
],
asymenus
)
||
[...
newCommonList
,
...
newErpList
,
...
newPowerRoutes
]
/* 重置首页路由*/
// let hompePage = treeToList([...newCommonList,...newErpList,...newPowerRoutes]).filter(item=>item.mkid==localStorage.getItem('homeMkid'))
let
ttlist
=
treeToList
([...
newCommonList
,
...
newErpList
,
...
newPowerRoutes
])
...
...
src/views/ccgl/ckgl/ckd/top/edit.vue
View file @
d461fb49
...
...
@@ -20,18 +20,13 @@
</
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-row
:gutter=
"20"
:app=
"this"
class=
"editRow bottomInfo"
>
<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'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
</el-form>
<!-- editTab数据 -->
...
...
src/views/ccgl/ckgl/dbckd/top/edit.vue
View file @
d461fb49
...
...
@@ -14,18 +14,13 @@
:editTableTitle=
'editTableTitle'
v-if=
"editTableForEdit"
:computedRow=
'computedRow'
:editTableData=
"formDetail"
/>
</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-row
:gutter=
"20"
:app=
"this"
class=
"editRow bottomInfo"
>
<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'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
</el-form>
<!-- editTab数据 -->
...
...
src/views/ccgl/ckgl/jhd/top/edit.vue
View file @
d461fb49
...
...
@@ -23,18 +23,13 @@
</
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-row
:gutter=
"20"
:app=
"this"
class=
"editRow bottomInfo"
>
<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'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
</el-form>
<!-- editTab数据 -->
...
...
src/views/ccgl/rkgl/dbrkd/top/edit.vue
View file @
d461fb49
...
...
@@ -15,17 +15,12 @@
:editTableTitle=
'editTableTitle'
v-if=
"editTableForEdit"
:computedRow=
'computedRow'
:editTableData=
"formDetail"
/>
</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
:gutter=
"20"
:app=
"this"
class=
"editRow bottomInfo"
>
<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'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
</el-form>
...
...
src/views/ccgl/rkgl/mpzy/top/edit.vue
View file @
d461fb49
...
...
@@ -21,18 +21,13 @@
</
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-row
:gutter=
"20"
:app=
"this"
class=
"editRow bottomInfo"
>
<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'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
</el-form>
<!-- editTab数据 -->
...
...
src/views/ccgl/rkgl/rkdj/edit.vue
View file @
d461fb49
<
template
>
<RelDialog
bigTitle
detailTable=
'KCSW'
@
getFormDetail=
'getFormDetail'
width=
"70%"
:type=
'type'
:editApp=
'editApp'
<RelDialog
@
getForm=
'getForm'
bigTitle
detailTable=
'KCSW'
@
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"
>
<el-row
:gutter=
"20"
:app=
"this"
class=
"editRow"
>
...
...
@@ -15,17 +15,12 @@
ref=
"editTableForEdit"
:editTableTitle=
'editTableTitle'
v-if=
"editTableForEdit"
:computedRow=
'computedRow'
:editTableData=
"formDetail"
/>
</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
:gutter=
"20"
:app=
"this"
class=
"editRow bottomInfo"
>
<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'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
</el-form>
...
...
@@ -45,7 +40,17 @@
export
default
{
mixins
:
[
editMixin
,
editMixin_expand
],
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
form
.
whr
=
this
.
username
this
.
form
.
rkr
=
this
.
username
})
},
methods
:
{
getForm
(
row
){
row
.
transrkd
=
row
.
rktzDjid
||
row
.
dbrkDjid
},
/* 需要整体row时的回调 */
computedRow
(
row
)
{
// this.$refs.editTableForEdit.$forceUpdate()
...
...
@@ -92,10 +97,43 @@
},
data
()
{
return
{
editColItemList2
:[
{
"label"
:
"状态"
,
"prop"
:
"zt"
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"value"
:
""
,
readonly
:
true
,
"typeConfig"
:
{
"src"
:
"wms/rkgl/rktz/init/zt"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
label
:
'维护人'
,
prop
:
'whr'
,
type
:
'input'
,
span
:
8
,
readonly
:
true
,
},
{
label
:
'维护时间'
,
prop
:
'whsj'
,
span
:
8
,
type
:
'datetime'
,
readonly
:
true
,
value
:
new
Date
().
getTime
()
}
],
/* 常规edit数据 */
editColItemList
:
[{
label
:
'入库单号'
,
prop
:
'
lydji
d'
,
prop
:
'
transrk
d'
,
span
:
8
,
type
:
'input'
,
"required"
:
true
,
...
...
@@ -159,10 +197,9 @@
}
}
},
{
label
:
'保管员'
,
prop
:
'
rkr
'
,
prop
:
'
bgy
'
,
span
:
8
,
type
:
'input'
,
...
...
@@ -173,10 +210,6 @@
span
:
16
,
type
:
'input'
,
},
],
/* 从表编辑数据 */
editTableTitle
:
[{
...
...
@@ -186,47 +219,55 @@
align
:
"center"
},
{
title
:
"物料编
号
"
,
field
:
"
c
ode"
,
width
:
24
0
,
title
:
"物料编
码
"
,
field
:
"
wlxxC
ode"
,
width
:
18
0
,
type
:
'AuxInput'
,
typeConfig
:
{
"code"
:
"MATERIAL"
,
"label"
:
"wl
c
ode"
,
"label"
:
"wl
xxC
ode"
,
"transform"
:
{
"value"
:
"code"
,
"label"
:
"code"
},
give
(
data
)
{
this
.
form
.
wlid
=
data
.
id
this
.
form
.
wlmc
=
data
.
name
this
.
form
.
wlcode
=
data
.
code
this
.
form
.
wlxxName
=
data
.
name
this
.
form
.
w
;
xxCode
=
data
.
code
}
}
},
{
title
:
"物料名称"
,
field
:
"wl
mc
"
,
field
:
"wl
xxName
"
,
width
:
160
},
{
title
:
"规格"
,
field
:
"
g
g"
,
field
:
"
wlxxG
g"
,
width
:
140
},
{
title
:
"批号"
,
field
:
"wlph"
,
type
:
'inputText'
,
width
:
200
,
},
{
title
:
"制令号"
,
field
:
"zlh"
,
type
:
'inputText'
,
width
:
200
,
},
{
title
:
"应入库数量"
,
field
:
"yssl"
,
width
:
100
,
allowEdit
:
false
,
show
:
this
.
type
!=
'view'
},
{
title
:
"已入库数量"
,
field
:
"yrksl"
,
width
:
100
,
allowEdit
:
false
,
show
:
this
.
type
!=
'view'
},
...
...
@@ -236,78 +277,17 @@
field
:
"rksl"
,
allowEdit
:
true
,
type
:
'inputNumber'
,
width
:
200
,
blur
:
toFixed
(
null
),
change
:
row
=>
doRkdChange
(
row
,
'rksl'
)
},
{
title
:
"计量单位"
,
field
:
"jldw
n
ame"
,
field
:
"jldw
N
ame"
,
width
:
100
,
allowEdit
:
false
},
{
title
:
"含税价格"
,
field
:
"hsjg"
,
fieldType
:
'price'
,
type
:
"inputNumber"
,
blur
:
toFixed
(
null
),
change
:
row
=>
doRkdChange
(
row
,
'hsjg'
)
},
{
title
:
"含税金额"
,
field
:
"hsje"
,
fieldType
:
'money'
,
type
:
"inputNumber"
,
blur
:
toFixed
(
null
),
change
:
row
=>
doRkdChange
(
row
,
'hsje'
)
},
{
title
:
"增值税率%"
,
field
:
"zzsl"
,
fieldType
:
'zzsl'
,
type
:
"inputNumber"
,
blur
:
toFixed
(
null
),
change
:
row
=>
doRkdChange
(
row
,
'zzsl'
)
},
{
title
:
"入库价格"
,
field
:
"wsjg"
,
fieldType
:
"price"
,
type
:
"inputNumber"
,
blur
:
toFixed
(
null
),
change
:
row
=>
doRkdChange
(
row
,
'wsjg'
),
show
:
this
.
type
!=
'view'
},
{
title
:
"入库金额"
,
field
:
"wsje"
,
fieldType
:
"money"
,
type
:
"inputNumber"
,
blur
:
toFixed
(
null
),
change
:
row
=>
doRkdChange
(
row
,
'wsje'
),
show
:
this
.
type
!=
'view'
},
{
title
:
"入库价格"
,
field
:
"jyjg"
,
type
:
"inputNumber"
,
show
:
this
.
type
==
'view'
,
},
{
title
:
"入库金额"
,
field
:
"rkje"
,
type
:
"inputNumber"
,
show
:
this
.
type
==
'view'
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
type
:
'inputText'
,
width
:
200
,
show
:
JSON
.
parse
(
localStorage
.
getItem
(
'isPhgl'
))
},
{
show
:
JSON
.
parse
(
localStorage
.
getItem
(
'isKwgl'
)),
title
:
"库位"
,
field
:
"kwid"
,
...
...
src/views/ccgl/rkgl/rkdj/index.vue
View file @
d461fb49
<
template
>
<BasePage
addRename=
'选择入库单入库'
class=
"min_full"
:config=
"config"
>
<BasePage
:power=
'power'
addRename=
'选择入库单入库'
class=
"min_full"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
...
...
@@ -12,6 +12,21 @@
export
default
{
data
()
{
return
{
power
:
{
add
:
false
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
false
,
/* 手动控制编辑按钮权限 */
editButton
:
false
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
false
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
showSelection
:
false
,
saveSelected
:
false
},
config
:
{
queryDetail
:
true
,
/* 基本配置*/
...
...
@@ -19,12 +34,16 @@
tableTitle
:
[
{
title
:
"库存单号"
,
field
:
"djid"
,
width
:
140
},
{
title
:
"入库日期"
,
field
:
"ywrq"
,
fieldType
:
'ftDate'
},
{
title
:
"仓库"
,
field
:
"ck
mc
"
,
width
:
140
},
{
title
:
"事务类型"
,
field
:
"swlx
mc
"
,
width
:
100
},
{
title
:
"
入库
部门"
,
field
:
"bmName"
,
width
:
130
},
{
title
:
"入库人"
,
field
:
"
rk
r"
,
width
:
120
},
{
title
:
"仓库"
,
field
:
"ck
Name
"
,
width
:
140
},
{
title
:
"事务类型"
,
field
:
"swlx
Name
"
,
width
:
100
},
{
title
:
"部门"
,
field
:
"bmName"
,
width
:
130
},
{
title
:
"入库人"
,
field
:
"
js
r"
,
width
:
120
},
{
title
:
"保管员"
,
field
:
"bgy"
,
width
:
120
},
{
title
:
"入库单号"
,
field
:
"lydjid"
,
width
:
140
},
{
title
:
"入库单号"
,
field
:
"lydjid"
,
width
:
140
,
formatter
(
a
,
b
,
c
)
{
return
a
.
rktzDjid
||
a
.
dbrkDjid
}},
{
title
:
"上架单号"
,
field
:
"sjtzDjid"
,
width
:
140
},
{
title
:
"备注"
,
field
:
"bz"
,
width
:
220
},
{
title
:
"维护人"
,
field
:
"whr"
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
'ftDateTime'
}
...
...
src/views/ccgl/rkgl/sjrw/top/edit.vue
View file @
d461fb49
...
...
@@ -20,17 +20,12 @@
</
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
:gutter=
"20"
:app=
"this"
class=
"editRow bottomInfo"
>
<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'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
</el-form>
...
...
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