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
e93d2169
Commit
e93d2169
authored
Mar 14, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步销售退货单,同步销售交货单
parent
5c9e070e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
226 additions
and
6 deletions
+226
-6
index.vue
src/views/ccgl/ckgl/ckd/top/index.vue
+15
-5
tbxsjh.vue
src/views/ccgl/ckgl/ckd/top/tbxsjh.vue
+100
-0
index.vue
src/views/ccgl/rkgl/rkd/top/index.vue
+11
-1
tbxsth.vue
src/views/ccgl/rkgl/rkd/top/tbxsth.vue
+100
-0
No files found.
src/views/ccgl/ckgl/ckd/top/index.vue
View file @
e93d2169
...
...
@@ -7,6 +7,7 @@
<Wxfl
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='外协发料同步'"
/>
<Cbzx
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='成本中心领料同步'"
/>
<Wwcl
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='委外超领同步'"
/>
<Tbxsjh
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='同步销售交货'"
/>
</
template
>
<
template
#
toolbar=
"ctx"
>
<el-button
@
click=
"akck(ctx.basePage)"
size=
'mini'
type=
"primary"
>
按库存开
</el-button>
...
...
@@ -17,10 +18,12 @@
ctx.basePage.refresh()
}" :url="'/lxyl/ckgl/cktz/import'" /> -->
<!--
<el-button
@
click=
"tbwl(ctx.basePage)"
size=
'mini'
type=
"primary"
style=
"margin-left: 10px;"
>
同步领料单
</el-button>
-->
<el-button
@
click=
"tbwl(ctx.basePage)"
size=
'mini'
type=
"primary"
style=
"margin-left: 10px;"
>
生产领料同步
</el-button>
<el-button
@
click=
"wxfl(ctx.basePage)"
size=
'mini'
type=
"primary"
style=
"margin-left: 10px;"
>
外协发料同步
</el-button>
<el-button
@
click=
"cbzx(ctx.basePage)"
size=
'mini'
type=
"primary"
style=
"margin-left: 10px;"
>
成本中心领料同步
</el-button>
<el-button
@
click=
"wwcl(ctx.basePage)"
size=
'mini'
type=
"primary"
style=
"margin-left: 10px;"
>
委外超领同步
</el-button>
<el-button
@
click=
"tbwl(ctx.basePage)"
size=
'mini'
type=
"primary"
>
生产领料同步
</el-button>
<el-button
@
click=
"wxfl(ctx.basePage)"
size=
'mini'
type=
"primary"
>
外协发料同步
</el-button>
<el-button
@
click=
"cbzx(ctx.basePage)"
size=
'mini'
type=
"primary"
>
成本中心领料同步
</el-button>
<el-button
@
click=
"wwcl(ctx.basePage)"
size=
'mini'
type=
"primary"
>
委外超领同步
</el-button>
<!-- 同步销售订单-->
<el-button
@
click=
"tbxsjh(ctx.basePage)"
size=
'mini'
type=
"primary"
>
同步销售交货
</el-button>
</
template
>
...
...
@@ -35,6 +38,7 @@
import
Wxfl
from
'./wxfl.vue'
import
Cbzx
from
'./cbzx.vue'
import
Wwcl
from
'./wwcl.vue'
import
Tbxsjh
from
'./tbxsjh.vue'
export
default
{
data
()
{
return
{
...
...
@@ -255,6 +259,11 @@
ctx
.
DialogTitle
=
'成本中心领料同步'
ctx
.
showDialog
=
true
},
tbxsjh
(
ctx
){
ctx
.
DialogWidth
=
'30vw'
ctx
.
DialogTitle
=
'同步销售交货'
ctx
.
showDialog
=
true
},
wwcl
(
ctx
)
{
ctx
.
DialogWidth
=
'30vw'
ctx
.
DialogTitle
=
'委外超领同步'
...
...
@@ -270,7 +279,8 @@
Akck
,
Wxfl
,
Cbzx
,
Wwcl
Wwcl
,
Tbxsjh
}
}
...
...
src/views/ccgl/ckgl/ckd/top/tbxsjh.vue
0 → 100644
View file @
e93d2169
<
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
:
'ddh'
,
span
:
24
,
type
:
'input'
,
value
:
''
,
}
]
}
},
methods
:
{
save
(){
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
){
this
.
isLoading
=
true
this
.
$post
(
'lxyl/rkgl/rktz/sync/xsthd'
,
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 @
e93d2169
...
...
@@ -5,6 +5,7 @@
<Shd
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='同步送货单'"
:app=
'ctx.basePage'
/>
<Dbrktb
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='调拨入库同步'"
:app=
'ctx.basePage'
/>
<Tbcgd
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='同步采购单'"
:app=
'ctx.basePage'
/>
<Tbxsth
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='同步销售退货'"
:app=
'ctx.basePage'
/>
</
template
>
<
template
#
toolbar=
"ctx"
>
...
...
@@ -17,6 +18,8 @@
<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=
"tbcgd(ctx.basePage)"
size=
'mini'
type=
"primary"
>
同步采购单
</el-button>
<el-button
@
click=
"tbxsth(ctx.basePage)"
size=
'mini'
type=
"primary"
>
同步销售退货
</el-button>
<!--
<el-button
@
click=
"qktjkw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
清空推荐库位
</el-button>
-->
</
template
>
...
...
@@ -28,6 +31,7 @@
import
Shd
from
'./shd.vue'
import
Dbrktb
from
'./dbrktb.vue'
import
Tbcgd
from
'./tbcgd.vue'
import
Tbxsth
from
'./tbxsth.vue'
export
default
{
data
()
{
return
{
...
...
@@ -222,6 +226,11 @@
},
methods
:
{
tbxsth
(
ctx
){
ctx
.
DialogWidth
=
'35vw'
ctx
.
DialogTitle
=
'同步销售退货'
ctx
.
showDialog
=
true
},
tbcgd
(
ctx
){
ctx
.
DialogWidth
=
'35vw'
ctx
.
DialogTitle
=
'同步采购单'
...
...
@@ -328,7 +337,8 @@
Edit
,
Shd
,
Dbrktb
,
Tbcgd
Tbcgd
,
Tbxsth
}
}
...
...
src/views/ccgl/rkgl/rkd/top/tbxsth.vue
0 → 100644
View file @
e93d2169
<
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
:
'ddh'
,
span
:
24
,
type
:
'input'
,
value
:
''
,
}
]
}
},
methods
:
{
save
()
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
isLoading
=
true
this
.
$post
(
'lxyl/rkgl/rktz/sync/xsthd'
,
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
>
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