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
c950dd27
Commit
c950dd27
authored
Mar 08, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
各种领料单同步+路由导入组件
parent
c6cd34f7
Changes
15
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
1054 additions
and
241 deletions
+1054
-241
index.js
src/router/index.js
+57
-0
cbzx.vue
src/views/ccgl/ckgl/ckd/top/cbzx.vue
+100
-0
index.vue
src/views/ccgl/ckgl/ckd/top/index.vue
+234
-201
tbwl.vue
src/views/ccgl/ckgl/ckd/top/tbwl.vue
+8
-8
wwcl.vue
src/views/ccgl/ckgl/ckd/top/wwcl.vue
+100
-0
wxfl.vue
src/views/ccgl/ckgl/ckd/top/wxfl.vue
+100
-0
index.vue
src/views/ccgl/jcsj/hjwh/index.vue
+0
-1
dbrktb.vue
src/views/ccgl/rkgl/rkd/top/dbrktb.vue
+100
-0
index.vue
src/views/ccgl/rkgl/rkd/top/index.vue
+11
-2
cbzxtltb.vue
src/views/ccgl/thgl/ckth/top/cbzxtltb.vue
+9
-9
index.vue
src/views/ccgl/thgl/ckth/top/index.vue
+30
-15
sclltldb.vue
src/views/ccgl/thgl/ckth/top/sclltldb.vue
+100
-0
wxtltb.vue
src/views/ccgl/thgl/ckth/top/wxtltb.vue
+100
-0
cgthtb.vue
src/views/ccgl/thgl/rkth/top/cgthtb.vue
+100
-0
index.vue
src/views/ccgl/thgl/rkth/top/index.vue
+5
-5
No files found.
src/router/index.js
View file @
c950dd27
...
...
@@ -300,6 +300,63 @@ export const powerRoutes = [
path
:
"ckdzb"
,
},
/* 备料管理*/
/* 客户/供应商等*/
{
erpComponent
:
true
,
component
:
'jcsj/kh/khfl/index'
,
hidden
:
false
,
meta
:
{
"title"
:
"客户分类"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
'920011800'
,
},
name
:
'khfl'
,
path
:
"khfl"
,
},
{
erpComponent
:
true
,
component
:
'jcsj/kh/khxx/index'
,
hidden
:
false
,
meta
:
{
"title"
:
"客户信息"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
'920011900'
,
},
name
:
'khxx'
,
path
:
"khxx"
,
},
{
erpComponent
:
true
,
component
:
'jcsj/gys/khfl/index'
,
hidden
:
false
,
meta
:
{
"title"
:
"供应商分类"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
'920012000'
,
},
name
:
'gysfl'
,
path
:
"gysfl"
,
},
{
erpComponent
:
true
,
component
:
'jcsj/gys/gys/index'
,
hidden
:
false
,
meta
:
{
"title"
:
"供应商信息"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
'920012100'
,
},
name
:
'gysxx'
,
path
:
"gysxx"
,
}
...
...
src/views/ccgl/ckgl/ckd/top/cbzx.vue
0 → 100644
View file @
c950dd27
<
template
>
<DefaultDialog
v-loading=
'isLoading'
:element-loading-text=
"text"
:app=
'app'
>
<div
slot=
"form"
style=
""
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<el-row
v-if=
"loading"
: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"
v-if=
"(item.show==false)?false:true"
:prop=
'item.prop'
:key=
"item.prop"
:type=
"item.type"
:typeConfig=
'item.typeConfig'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
</el-form>
</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
>
import
{
editMixin
,
editMixin_expand
}
from
'common'
export
default
{
mixins
:
[
editMixin
,
editMixin_expand
],
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
/* 初始化数据 */
this
.
$post
(
'common/datetime'
,{}).
then
(
res
=>
{
let
nowTime
=
res
.
data
.
data
||
new
Date
().
getTime
()
/* 初始赋值*/
this
.
nowTime
=
nowTime
// this.editColItemList[0].value=nowTime-24*60*60*1000
this
.
editColItemList
[
0
].
value
=
nowTime
this
.
loading
=
true
})
},
data
()
{
return
{
isLoading
:
false
,
text
:
'正在请求中...'
,
readonly
:
false
,
loading
:
false
,
editColItemList
:[
{
label
:
'时间'
,
prop
:
'time'
,
span
:
24
,
type
:
'datetime'
,
value
:
''
,
"required"
:
true
,
},
{
label
:
'业务单号'
,
prop
:
'ywdh'
,
span
:
24
,
type
:
'input'
,
value
:
''
,
}
]
}
},
methods
:
{
save
(){
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
){
this
.
isLoading
=
true
this
.
$post
(
'lxyl/ckgl/cktz/sync/lxll'
,
this
.
form
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
isLoading
=
false
this
.
$success
(
'操作成功'
)
this
.
app
.
showDialog
=
false
this
.
app
.
$refs
.
TablePager
.
refresh
()
}
}).
finally
(
res
=>
{
this
.
isLoading
=
false
})
}
})
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/ccgl/ckgl/ckd/top/index.vue
View file @
c950dd27
This diff is collapsed.
Click to expand it.
src/views/ccgl/ckgl/ckd/top/tbwl.vue
View file @
c950dd27
...
...
@@ -53,14 +53,6 @@ this.$post('common/datetime',{}).then(res=>{
readonly
:
false
,
loading
:
false
,
editColItemList
:[
// {
// label: '开始时间',
// prop: 'start',
// span: 24,
// type: 'datetime',
// value: '',
// "required": true,
// },
{
label
:
'时间'
,
prop
:
'time'
,
...
...
@@ -68,7 +60,15 @@ this.$post('common/datetime',{}).then(res=>{
type
:
'datetime'
,
value
:
''
,
"required"
:
true
,
},
{
label
:
'业务单号'
,
prop
:
'ywdh'
,
span
:
24
,
type
:
'input'
,
value
:
''
,
}
]
}
...
...
src/views/ccgl/ckgl/ckd/top/wwcl.vue
0 → 100644
View file @
c950dd27
<
template
>
<DefaultDialog
v-loading=
'isLoading'
:element-loading-text=
"text"
:app=
'app'
>
<div
slot=
"form"
style=
""
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<el-row
v-if=
"loading"
: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"
v-if=
"(item.show==false)?false:true"
:prop=
'item.prop'
:key=
"item.prop"
:type=
"item.type"
:typeConfig=
'item.typeConfig'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
</el-form>
</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
>
import
{
editMixin
,
editMixin_expand
}
from
'common'
export
default
{
mixins
:
[
editMixin
,
editMixin_expand
],
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
/* 初始化数据 */
this
.
$post
(
'common/datetime'
,{}).
then
(
res
=>
{
let
nowTime
=
res
.
data
.
data
||
new
Date
().
getTime
()
/* 初始赋值*/
this
.
nowTime
=
nowTime
// this.editColItemList[0].value=nowTime-24*60*60*1000
this
.
editColItemList
[
0
].
value
=
nowTime
this
.
loading
=
true
})
},
data
()
{
return
{
isLoading
:
false
,
text
:
'正在请求中...'
,
readonly
:
false
,
loading
:
false
,
editColItemList
:[
{
label
:
'时间'
,
prop
:
'time'
,
span
:
24
,
type
:
'datetime'
,
value
:
''
,
"required"
:
true
,
},
{
label
:
'业务单号'
,
prop
:
'ywdh'
,
span
:
24
,
type
:
'input'
,
value
:
''
,
}
]
}
},
methods
:
{
save
(){
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
){
this
.
isLoading
=
true
this
.
$post
(
'lxyl/ckgl/cktz/sync/wwcl'
,
this
.
form
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
isLoading
=
false
this
.
$success
(
'操作成功'
)
this
.
app
.
showDialog
=
false
this
.
app
.
$refs
.
TablePager
.
refresh
()
}
}).
finally
(
res
=>
{
this
.
isLoading
=
false
})
}
})
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/ccgl/ckgl/ckd/top/wxfl.vue
0 → 100644
View file @
c950dd27
<
template
>
<DefaultDialog
v-loading=
'isLoading'
:element-loading-text=
"text"
:app=
'app'
>
<div
slot=
"form"
style=
""
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<el-row
v-if=
"loading"
: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"
v-if=
"(item.show==false)?false:true"
:prop=
'item.prop'
:key=
"item.prop"
:type=
"item.type"
:typeConfig=
'item.typeConfig'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
</el-form>
</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
>
import
{
editMixin
,
editMixin_expand
}
from
'common'
export
default
{
mixins
:
[
editMixin
,
editMixin_expand
],
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
/* 初始化数据 */
this
.
$post
(
'common/datetime'
,{}).
then
(
res
=>
{
let
nowTime
=
res
.
data
.
data
||
new
Date
().
getTime
()
/* 初始赋值*/
this
.
nowTime
=
nowTime
// this.editColItemList[0].value=nowTime-24*60*60*1000
this
.
editColItemList
[
0
].
value
=
nowTime
this
.
loading
=
true
})
},
data
()
{
return
{
isLoading
:
false
,
text
:
'正在请求中...'
,
readonly
:
false
,
loading
:
false
,
editColItemList
:[
{
label
:
'时间'
,
prop
:
'time'
,
span
:
24
,
type
:
'datetime'
,
value
:
''
,
"required"
:
true
,
},
{
label
:
'业务单号'
,
prop
:
'ywdh'
,
span
:
24
,
type
:
'input'
,
value
:
''
,
}
]
}
},
methods
:
{
save
(){
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
){
this
.
isLoading
=
true
this
.
$post
(
'lxyl/ckgl/cktz/sync/wxyl'
,
this
.
form
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
isLoading
=
false
this
.
$success
(
'操作成功'
)
this
.
app
.
showDialog
=
false
this
.
app
.
$refs
.
TablePager
.
refresh
()
}
}).
finally
(
res
=>
{
this
.
isLoading
=
false
})
}
})
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/ccgl/jcsj/hjwh/index.vue
View file @
c950dd27
...
...
@@ -137,7 +137,6 @@
// },
// treeUrl:''
}
}
...
...
src/views/ccgl/rkgl/rkd/top/dbrktb.vue
0 → 100644
View file @
c950dd27
<
template
>
<DefaultDialog
v-loading=
'isLoading'
:element-loading-text=
"text"
:app=
'app'
>
<div
slot=
"form"
style=
""
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<el-row
v-if=
"loading"
: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"
v-if=
"(item.show==false)?false:true"
:prop=
'item.prop'
:key=
"item.prop"
:type=
"item.type"
:typeConfig=
'item.typeConfig'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
</el-form>
</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
>
import
{
editMixin
,
editMixin_expand
}
from
'common'
export
default
{
mixins
:
[
editMixin
,
editMixin_expand
],
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
/* 初始化数据 */
this
.
$post
(
'common/datetime'
,{}).
then
(
res
=>
{
let
nowTime
=
res
.
data
.
data
||
new
Date
().
getTime
()
/* 初始赋值*/
this
.
nowTime
=
nowTime
// this.editColItemList[0].value=nowTime-24*60*60*1000
this
.
editColItemList
[
0
].
value
=
nowTime
this
.
loading
=
true
})
},
data
()
{
return
{
isLoading
:
false
,
text
:
'正在请求中...'
,
readonly
:
false
,
loading
:
false
,
editColItemList
:[
{
label
:
'时间'
,
prop
:
'time'
,
span
:
24
,
type
:
'datetime'
,
value
:
''
,
"required"
:
true
,
},
{
label
:
'业务单号'
,
prop
:
'ywdh'
,
span
:
24
,
type
:
'input'
,
value
:
''
,
}
]
}
},
methods
:
{
save
(){
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
){
this
.
isLoading
=
true
this
.
$post
(
'lxyl/rkgl/rktz/sync/dbrk'
,
this
.
form
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
isLoading
=
false
this
.
$success
(
'操作成功'
)
this
.
app
.
showDialog
=
false
this
.
app
.
$refs
.
TablePager
.
refresh
()
}
}).
finally
(
res
=>
{
this
.
isLoading
=
false
})
}
})
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/ccgl/rkgl/rkd/top/index.vue
View file @
c950dd27
...
...
@@ -2,7 +2,8 @@
<BasePage
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Shd
v-if=
"ctx.basePage.showDialog"
:app=
'ctx.basePage'
/>
<Shd
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='同步送货单'"
:app=
'ctx.basePage'
/>
<Dbrktb
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='调拨入库同步'"
:app=
'ctx.basePage'
/>
</
template
>
<
template
#
toolbar=
"ctx"
>
...
...
@@ -13,6 +14,7 @@
<el-button
@
click=
"qxqr(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消确认
</el-button>
<el-button
@
click=
"sapgz(ctx.basePage)"
size=
'mini'
type=
"primary"
>
SAP过账
</el-button>
<el-button
@
click=
"tbshd(ctx.basePage)"
size=
'mini'
type=
"primary"
>
同步送货单
</el-button>
<el-button
@
click=
"dbrktb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
调拨入库同步
</el-button>
<!--
<el-button
@
click=
"qktjkw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
清空推荐库位
</el-button>
-->
</
template
>
...
...
@@ -22,6 +24,7 @@
<
script
>
import
Edit
from
'./edit.vue'
import
Shd
from
'./shd.vue'
import
Dbrktb
from
'./dbrktb.vue'
export
default
{
data
()
{
return
{
...
...
@@ -221,6 +224,11 @@
ctx
.
DialogTitle
=
'同步送货单'
ctx
.
showDialog
=
true
},
dbrktb
(
ctx
){
ctx
.
DialogWidth
=
'35vw'
ctx
.
DialogTitle
=
'调拨入库同步'
ctx
.
showDialog
=
true
},
qktjkw
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
this
.
$confirm
(
'是否继续该操作?'
,
'提示'
,
{
...
...
@@ -310,7 +318,8 @@
},
components
:
{
Edit
,
Shd
Shd
,
Dbrktb
}
}
...
...
src/views/ccgl/thgl/
rkth/top/tblld
.vue
→
src/views/ccgl/thgl/
ckth/top/cbzxtltb
.vue
View file @
c950dd27
...
...
@@ -53,14 +53,7 @@ this.$post('common/datetime',{}).then(res=>{
readonly
:
false
,
loading
:
false
,
editColItemList
:[
// {
// label: '开始时间',
// prop: 'start',
// span: 24,
// type: 'datetime',
// value: '',
// "required": true,
// },
{
label
:
'时间'
,
prop
:
'time'
,
...
...
@@ -68,6 +61,13 @@ this.$post('common/datetime',{}).then(res=>{
type
:
'datetime'
,
value
:
''
,
"required"
:
true
,
},
{
label
:
'业务单号'
,
prop
:
'ywdh'
,
span
:
24
,
type
:
'input'
,
value
:
''
,
}
]
...
...
@@ -78,7 +78,7 @@ this.$post('common/datetime',{}).then(res=>{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
){
this
.
isLoading
=
true
this
.
$post
(
'lxyl/
thgl/rkthtz/sync/cgth
'
,
this
.
form
).
then
(
res
=>
{
this
.
$post
(
'lxyl/
rkgl/ckthtz/sync/lltl
'
,
this
.
form
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
isLoading
=
false
this
.
$success
(
'操作成功'
)
...
...
src/views/ccgl/thgl/ckth/top/index.vue
View file @
c950dd27
...
...
@@ -2,18 +2,17 @@
<BasePage
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Shd
v-if=
"ctx.basePage.showDialog"
:app=
'ctx.basePage'
/>
<Sclltldb
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='生产领料退料同步'"
:app=
'ctx.basePage'
/>
<Wxtltb
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='外协退料同步'"
:app=
'ctx.basePage'
/>
<Cbzxtltb
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='成本中心退料同步'"
:app=
'ctx.basePage'
/>
</
template
>
<
template
#
toolbar=
"ctx"
>
<!--
<ImportButton
@
success=
"()=>
{
ctx.basePage.refresh()
}" :url="'/lxyl/rkgl/ckthtz/import'" />
<el-button
style=
"margin-left: 10px;"
@
click=
"qr(ctx.basePage)"
size=
'mini'
type=
"primary"
>
确认
</el-button>
<el-button
@
click=
"qxqr(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消确认
</el-button>
<el-button
@
click=
"sapgz(ctx.basePage)"
size=
'mini'
type=
"primary"
>
SAP过账
</el-button>
<el-button
@
click=
"tbshd(ctx.basePage)"
size=
'mini'
type=
"primary"
>
同步送货单
</el-button>
-->
<!--
<el-button
@
click=
"qktjkw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
清空推荐库位
</el-button>
-->
<el-button
@
click=
"sclltldb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
生产领料退料同步
</el-button>
<el-button
@
click=
"wxtltb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
外协退料同步
</el-button>
<el-button
@
click=
"cbzxtltb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
成本中心退料同步
</el-button>
</
template
>
</BasePage>
...
...
@@ -22,6 +21,9 @@
<
script
>
import
Edit
from
'./edit.vue'
import
Shd
from
'./shd.vue'
import
Sclltldb
from
'./sclltldb.vue'
import
Wxtltb
from
'./wxtltb.vue'
import
Cbzxtltb
from
'./cbzxtltb.vue'
export
default
{
data
()
{
return
{
...
...
@@ -216,11 +218,21 @@
},
methods
:
{
// tbshd(ctx){
// ctx.DialogWidth='35vw'
// ctx.DialogTitle='同步送货单'
// ctx.showDialog=true
// },
sclltldb
(
ctx
){
ctx
.
DialogWidth
=
'35vw'
ctx
.
DialogTitle
=
'生产领料退料同步'
ctx
.
showDialog
=
true
},
wxtltb
(
ctx
){
ctx
.
DialogWidth
=
'35vw'
ctx
.
DialogTitle
=
'外协退料同步'
ctx
.
showDialog
=
true
},
cbzxtltb
(
ctx
){
ctx
.
DialogWidth
=
'35vw'
ctx
.
DialogTitle
=
'成本中心退料同步'
ctx
.
showDialog
=
true
},
getRow
(
val
){
this
.
$emit
(
'getRow'
,
val
)
...
...
@@ -229,7 +241,10 @@
},
components
:
{
Edit
,
Shd
Shd
,
Sclltldb
,
Wxtltb
,
Cbzxtltb
}
}
...
...
src/views/ccgl/thgl/ckth/top/sclltldb.vue
0 → 100644
View file @
c950dd27
<
template
>
<DefaultDialog
v-loading=
'isLoading'
:element-loading-text=
"text"
:app=
'app'
>
<div
slot=
"form"
style=
""
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<el-row
v-if=
"loading"
: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"
v-if=
"(item.show==false)?false:true"
:prop=
'item.prop'
:key=
"item.prop"
:type=
"item.type"
:typeConfig=
'item.typeConfig'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
</el-form>
</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
>
import
{
editMixin
,
editMixin_expand
}
from
'common'
export
default
{
mixins
:
[
editMixin
,
editMixin_expand
],
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
/* 初始化数据 */
this
.
$post
(
'common/datetime'
,{}).
then
(
res
=>
{
let
nowTime
=
res
.
data
.
data
||
new
Date
().
getTime
()
/* 初始赋值*/
this
.
nowTime
=
nowTime
// this.editColItemList[0].value=nowTime-24*60*60*1000
this
.
editColItemList
[
0
].
value
=
nowTime
this
.
loading
=
true
})
},
data
()
{
return
{
isLoading
:
false
,
text
:
'正在请求中...'
,
readonly
:
false
,
loading
:
false
,
editColItemList
:[
{
label
:
'时间'
,
prop
:
'time'
,
span
:
24
,
type
:
'datetime'
,
value
:
''
,
"required"
:
true
,
},
{
label
:
'业务单号'
,
prop
:
'ywdh'
,
span
:
24
,
type
:
'input'
,
value
:
''
,
}
]
}
},
methods
:
{
save
(){
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
){
this
.
isLoading
=
true
this
.
$post
(
'lxyl/rkgl/ckthtz/sync/tld'
,
this
.
form
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
isLoading
=
false
this
.
$success
(
'操作成功'
)
this
.
app
.
showDialog
=
false
this
.
app
.
$refs
.
TablePager
.
refresh
()
}
}).
finally
(
res
=>
{
this
.
isLoading
=
false
})
}
})
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/ccgl/thgl/ckth/top/wxtltb.vue
0 → 100644
View file @
c950dd27
<
template
>
<DefaultDialog
v-loading=
'isLoading'
:element-loading-text=
"text"
:app=
'app'
>
<div
slot=
"form"
style=
""
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<el-row
v-if=
"loading"
: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"
v-if=
"(item.show==false)?false:true"
:prop=
'item.prop'
:key=
"item.prop"
:type=
"item.type"
:typeConfig=
'item.typeConfig'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
</el-form>
</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
>
import
{
editMixin
,
editMixin_expand
}
from
'common'
export
default
{
mixins
:
[
editMixin
,
editMixin_expand
],
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
/* 初始化数据 */
this
.
$post
(
'common/datetime'
,{}).
then
(
res
=>
{
let
nowTime
=
res
.
data
.
data
||
new
Date
().
getTime
()
/* 初始赋值*/
this
.
nowTime
=
nowTime
// this.editColItemList[0].value=nowTime-24*60*60*1000
this
.
editColItemList
[
0
].
value
=
nowTime
this
.
loading
=
true
})
},
data
()
{
return
{
isLoading
:
false
,
text
:
'正在请求中...'
,
readonly
:
false
,
loading
:
false
,
editColItemList
:[
{
label
:
'时间'
,
prop
:
'time'
,
span
:
24
,
type
:
'datetime'
,
value
:
''
,
"required"
:
true
,
},
{
label
:
'业务单号'
,
prop
:
'ywdh'
,
span
:
24
,
type
:
'input'
,
value
:
''
,
}
]
}
},
methods
:
{
save
(){
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
){
this
.
isLoading
=
true
this
.
$post
(
'lxyl/rkgl/ckthtz/sync/wxtl'
,
this
.
form
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
isLoading
=
false
this
.
$success
(
'操作成功'
)
this
.
app
.
showDialog
=
false
this
.
app
.
$refs
.
TablePager
.
refresh
()
}
}).
finally
(
res
=>
{
this
.
isLoading
=
false
})
}
})
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/ccgl/thgl/rkth/top/cgthtb.vue
0 → 100644
View file @
c950dd27
<
template
>
<DefaultDialog
v-loading=
'isLoading'
:element-loading-text=
"text"
:app=
'app'
>
<div
slot=
"form"
style=
""
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<el-row
v-if=
"loading"
: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"
v-if=
"(item.show==false)?false:true"
:prop=
'item.prop'
:key=
"item.prop"
:type=
"item.type"
:typeConfig=
'item.typeConfig'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
</el-form>
</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
>
import
{
editMixin
,
editMixin_expand
}
from
'common'
export
default
{
mixins
:
[
editMixin
,
editMixin_expand
],
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
/* 初始化数据 */
this
.
$post
(
'common/datetime'
,{}).
then
(
res
=>
{
let
nowTime
=
res
.
data
.
data
||
new
Date
().
getTime
()
/* 初始赋值*/
this
.
nowTime
=
nowTime
// this.editColItemList[0].value=nowTime-24*60*60*1000
this
.
editColItemList
[
0
].
value
=
nowTime
this
.
loading
=
true
})
},
data
()
{
return
{
isLoading
:
false
,
text
:
'正在请求中...'
,
readonly
:
false
,
loading
:
false
,
editColItemList
:[
{
label
:
'时间'
,
prop
:
'time'
,
span
:
24
,
type
:
'datetime'
,
value
:
''
,
"required"
:
true
,
},
{
label
:
'业务单号'
,
prop
:
'ywdh'
,
span
:
24
,
type
:
'input'
,
value
:
''
,
}
]
}
},
methods
:
{
save
(){
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
){
this
.
isLoading
=
true
this
.
$post
(
'lxyl/rkgl/rkthtz/sync/cgth'
,
this
.
form
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
isLoading
=
false
this
.
$success
(
'操作成功'
)
this
.
app
.
showDialog
=
false
this
.
app
.
$refs
.
TablePager
.
refresh
()
}
}).
finally
(
res
=>
{
this
.
isLoading
=
false
})
}
})
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/ccgl/thgl/rkth/top/index.vue
View file @
c950dd27
...
...
@@ -3,12 +3,12 @@
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Akck
:type=
"'add'"
v-if=
"ctx.basePage.showAdd"
:app=
'ctx.basePage'
:buttonApp=
'ctx.basePage'
/>
<
Tblld
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog"
/>
<
Cgthtb
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog"
/>
</
template
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<el-button
@
click=
"akck(ctx.basePage)"
size=
'mini'
type=
"primary"
>
按库存开
</el-button>
<el-button
@
click=
"cgth
(ctx.basePage)"
size=
'mini'
type=
"primary"
>
同步采购退货单
</el-button>
<el-button
@
click=
"cgth
tb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
采购退货单同步
</el-button>
<!--
<el-button
@
click=
"qxqr(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消确认
</el-button>
-->
</
template
>
...
...
@@ -18,7 +18,7 @@
<
script
>
import
Edit
from
'./edit.vue'
import
Akck
from
'./akck.vue'
import
Tblld
from
'./tblld
.vue'
import
Cgthtb
from
'./cgthtb
.vue'
export
default
{
data
()
{
return
{
...
...
@@ -169,7 +169,7 @@
},
methods
:
{
cgth
(
ctx
){
cgth
tb
(
ctx
){
ctx
.
DialogWidth
=
'30vw'
ctx
.
DialogTitle
=
'同步采购退货单'
ctx
.
showDialog
=
true
...
...
@@ -203,7 +203,7 @@
components
:
{
Edit
,
Akck
,
Tblld
Cgthtb
}
}
...
...
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