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
4fe3893f
Commit
4fe3893f
authored
Apr 10, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增功能
parent
6c67667c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
292 additions
and
1 deletion
+292
-1
index.js
src/router/index.js
+13
-0
index.vue
src/views/ccgl/jcsj/ckgl/index.vue
+3
-1
dialog.vue
src/views/ccgl/kngl/sapdb/dialog.vue
+45
-0
edit.vue
src/views/ccgl/kngl/sapdb/edit.vue
+125
-0
index.vue
src/views/ccgl/kngl/sapdb/index.vue
+106
-0
No files found.
src/router/index.js
View file @
4fe3893f
...
@@ -819,6 +819,19 @@ export const powerRoutes = [
...
@@ -819,6 +819,19 @@ export const powerRoutes = [
name
:
'bz'
,
name
:
'bz'
,
path
:
"bz"
,
path
:
"bz"
,
},
},
{
component
:
'ccgl/kngl/sapdb/index'
,
hidden
:
false
,
meta
:
{
"title"
:
"SAP调拨"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
920070505
,
},
name
:
'sapdb'
,
path
:
"sapdb"
,
},
/* 包装作业*/
/* 包装作业*/
{
{
component
:
'ccgl/kngl/bzzy/index'
,
component
:
'ccgl/kngl/bzzy/index'
,
...
...
src/views/ccgl/jcsj/ckgl/index.vue
View file @
4fe3893f
...
@@ -4,7 +4,9 @@
...
@@ -4,7 +4,9 @@
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
</
template
>
<
template
#
toolbar=
"ctx"
>
<
template
#
toolbar=
"ctx"
>
<ImportButton
@
success=
"()=>
{
ctx.basePage.refresh()
}" :url="'lxyl/common/import'" />
</
template
>
</
template
>
</BasePage>
</BasePage>
...
...
src/views/ccgl/kngl/sapdb/dialog.vue
0 → 100644
View file @
4fe3893f
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;height: 70vh;"
>
DialogTitle:'新增',
showDialog:false,
</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
{
}
},
methods
:
{
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/ccgl/kngl/sapdb/edit.vue
0 → 100644
View file @
4fe3893f
<
template
>
<RelDialog
width=
"50%"
: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"
>
<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>
</el-form>
</RelDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
data
()
{
return
{
editColItemList
:
[
{
label
:
'过账单号'
,
prop
:
'djid'
,
span
:
12
,
type
:
'input'
,
},
{
label
:
'特殊库存标识'
,
prop
:
'sobkz'
,
span
:
12
,
type
:
'input'
,
},
{
label
:
'物料'
,
prop
:
'wlid'
,
span
:
12
,
required
:
true
,
type
:
'AuxInput'
,
typeConfig
:
{
isRequest
:
false
,
code
:
'MATERIAL'
,
label
:
'wlxxName'
,
transform
:
{
value
:
'id'
,
label
:
'name'
}
}
},
{
label
:
'工厂'
,
prop
:
'hzid'
,
span
:
12
,
required
:
true
,
type
:
'AuxInput'
,
typeConfig
:
{
isRequest
:
true
,
code
:
'HZID'
,
label
:
'hzName'
,
transform
:
{
value
:
'id'
,
label
:
'name'
}
}
},
/* 物料工厂*/
{
label
:
'数量'
,
prop
:
'erfmg'
,
span
:
12
,
type
:
'input'
,
},
{
label
:
'发出地点'
,
prop
:
'lgort'
,
span
:
12
,
type
:
'input'
,
},
{
label
:
'发出批次'
,
prop
:
'charg'
,
span
:
12
,
type
:
'input'
,
},
{
label
:
'发出销售订单'
,
prop
:
'matKdauf'
,
span
:
12
,
type
:
'input'
,
},
{
label
:
'发出销售行项目'
,
prop
:
'matKdpos'
,
span
:
12
,
type
:
'input'
,
},
{
label
:
'接收存储地点'
,
prop
:
'umlgo'
,
span
:
12
,
type
:
'input'
,
},
{
label
:
'接收批次'
,
prop
:
'umcha'
,
span
:
12
,
type
:
'input'
,
},
{
label
:
'接收销售订单'
,
prop
:
'kdauf'
,
span
:
12
,
type
:
'input'
,
},
{
label
:
'接收销售行项目'
,
prop
:
'kdpos'
,
span
:
12
,
type
:
'input'
,
}
]
}
}
}
</
script
>
src/views/ccgl/kngl/sapdb/index.vue
0 → 100644
View file @
4fe3893f
<
template
>
<BasePage
:power=
'power'
class=
"min_full"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<el-button
@
click=
"gz(ctx.basePage)"
size=
'mini'
type=
"primary"
>
过账
</el-button>
</
template
>
</BasePage>
</template>
<
script
>
import
Edit
from
'./edit.vue'
export
default
{
data
(){
return
{
power
:
{
add
:
true
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
false
,
/* 手动控制编辑按钮权限 */
editButton
:
false
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
false
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
showSelection
:
false
,
saveSelected
:
false
},
config
:{
/* 基本配置*/
url
:
'lxyl/kcgl/sapdb'
,
tableTitle
:
[
{
label
:
"过账单号"
,
prop
:
"djid"
,
fieldType
:
"ftString"
,
width
:
144
},
{
label
:
"特殊库存标识"
,
prop
:
"sobkz"
,
fieldType
:
"ftString"
,
width
:
12
},
/* */
{
label
:
"物料"
,
prop
:
"wlxxName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"工厂"
,
prop
:
"hzName"
,
fieldType
:
"ftString"
,
width
:
192
},
/* */
{
label
:
"数量"
,
prop
:
"erfmg"
,
fieldType
:
"float"
},
{
label
:
"发出地点"
,
prop
:
"lgort"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"发出批次"
,
prop
:
"charg"
,
fieldType
:
"ftString"
,
width
:
210
},
{
label
:
"发出销售订单"
,
prop
:
"matKdauf"
,
fieldType
:
"ftString"
,
width
:
60
},
{
label
:
"发出销售行项目"
,
prop
:
"matKdpos"
,
fieldType
:
"int"
},
{
label
:
"接收存储地点"
,
prop
:
"umlgo"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"接收批次"
,
prop
:
"umcha"
,
fieldType
:
"ftString"
,
width
:
210
},
{
label
:
"接收销售订单"
,
prop
:
"kdauf"
,
fieldType
:
"ftString"
,
width
:
60
},
{
label
:
"接收销售行项目"
,
prop
:
"kdpos"
,
fieldType
:
"int"
},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"创建人"
,
prop
:
"cjr"
,
fieldType
:
"ftString"
},
{
label
:
"创建时间"
,
prop
:
"cjsj"
,
fieldType
:
"ftDateTime"
},
],
queryParams
:[[
{
label
:
'单据号'
,
prop
:
'djid'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
]],
}
}
},
methods
:
{
/* 示例*/
gz
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/kcgl/sapdb/sync/dbGz'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
}
},
components
:{
Edit
}
}
</
script
>
<
style
>
</
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