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
46850459
Commit
46850459
authored
Jul 06, 2024
by
周毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
3c8e9a50
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
607 additions
and
556 deletions
+607
-556
index.vue
src/views/ccgl/cxfx/sfmxcx/index.vue
+8
-6
index.vue
src/views/ccgl/jcsj/xsjhd/index.vue
+27
-42
index.vue
src/views/ccgl/rkgl/rkd/top/index.vue
+400
-333
index.vue
src/views/ccgl/rkgl/spk/top/wmsRkd/index.vue
+172
-175
No files found.
src/views/ccgl/cxfx/sfmxcx/index.vue
View file @
46850459
...
...
@@ -40,12 +40,14 @@
field
:
"djid"
,
width
:
130
,
formatter
:
function
(
row
,
index
,
value
)
{
if
(
row
.
xh
==
0
)
{
return
"期初"
}
else
if
(
row
.
xh
==
2
)
{
return
"期末"
}
else
{
return
value
if
(
row
){
if
(
row
.
xh
==
0
)
{
return
"期初"
}
else
if
(
row
.
xh
==
2
)
{
return
"期末"
}
else
{
return
value
}
}
}
},
...
...
src/views/ccgl/jcsj/xsjhd/index.vue
View file @
46850459
...
...
@@ -44,37 +44,43 @@
config
:
{
/* 基本配置*/
url
:
'lxyl/ckgl/usofh'
,
tableTitle
:
[{
title
:
"工厂编码"
,
field
:
"hzCode"
,
fieldType
:
"upper"
,
width
:
140
tableTitle
:
[
{
title
:
"状态"
,
field
:
"zt"
,
"transform"
:
{
"url"
:
"lxyl/ckgl/usofh/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
},
width
:
60
},
{
title
:
"工厂"
,
field
:
"hzName"
,
width
:
140
title
:
"已过账"
,
field
:
"gzzt"
,
width
:
60
,
fieldType
:
"checkbox"
},
{
title
:
"仓库编码"
,
field
:
"ckCode"
,
fieldType
:
"upper"
,
width
:
140
title
:
"工厂"
,
field
:
"hzName"
,
width
:
100
},
{
title
:
"仓库"
,
field
:
"ckName"
,
width
:
1
4
0
width
:
1
2
0
},
{
title
:
"销售交货单"
,
field
:
"vbeln"
,
width
:
1
4
0
width
:
1
2
0
},
{
title
:
"行项目"
,
field
:
"posnr"
,
width
:
140
fieldType
:
"int"
,
width
:
60
},
{
title
:
"物料编码"
,
...
...
@@ -89,12 +95,12 @@
{
title
:
"交货数量"
,
field
:
"lfimg"
,
width
:
140
fieldType
:
"float"
},
{
title
:
"实发数量"
,
field
:
"sfsl"
,
width
:
140
fieldType
:
"float"
},
{
title
:
"已开入(出)库单"
,
...
...
@@ -109,25 +115,17 @@
}
},
{
title
:
"状态"
,
field
:
"zt"
,
"transform"
:
{
"url"
:
"lxyl/ckgl/usofh/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
},
width
:
100
},
{
title
:
"销售订单号"
,
field
:
"kdauf"
,
width
:
1
4
0
width
:
1
2
0
},
{
title
:
"销售行项目"
,
field
:
"kdpos"
,
width
:
140
fieldType
:
"int"
,
width
:
60
},
{
title
:
"特殊库存"
,
...
...
@@ -159,19 +157,6 @@
"value"
:
"id"
},
},
{
title
:
"过账状态"
,
field
:
"gzzt"
,
width
:
140
,
formatter
(
a
,
b
,
v
)
{
let
map
=
{
Y
:
'是'
,
N
:
'否'
}
return
map
[
v
]
}
},
{
title
:
"关闭人"
,
field
:
"gbrName"
,
...
...
src/views/ccgl/rkgl/rkd/top/index.vue
View file @
46850459
<
template
>
<BasePage
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<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"
>
<BasePage
@
getRow=
"getRow"
class=
"min_full"
style=
"height: 100%"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<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"
>
<ImportButton
v-if=
"ctx.basePage.powerObj['01']"
@
success=
"
() =>
{
ctx.basePage.refresh();
}
"
:url="'/lxyl/rkgl/rktz/import'"
/>
<el-button
v-if=
"ctx.basePage.powerObj['21']"
style=
"margin-left: 10px"
@
click=
"qr(ctx.basePage)"
size=
"mini"
type=
"primary"
>
确认
</el-button
>
<el-button
v-if=
"ctx.basePage.powerObj['21']"
@
click=
"qxqr(ctx.basePage)"
size=
"mini"
type=
"primary"
>
取消确认
</el-button
>
<el-button
v-if=
"ctx.basePage.powerObj['22']"
@
click=
"sapgz(ctx.basePage)"
size=
"mini"
type=
"primary"
>
SAP过账
</el-button
>
<el-button
v-if=
"ctx.basePage.powerObj['23']"
@
click=
"tbshd(ctx.basePage)"
size=
"mini"
type=
"primary"
>
同步送货单
</el-button
>
<el-button
v-if=
"ctx.basePage.powerObj['24']"
@
click=
"dbrktb(ctx.basePage)"
size=
"mini"
type=
"primary"
>
同步生产入库单
</el-button
>
<el-button
v-if=
"ctx.basePage.powerObj['25']"
@
click=
"tbcgd(ctx.basePage)"
size=
"mini"
type=
"primary"
>
同步采购单
</el-button
>
<el-button
v-if=
"ctx.basePage.powerObj['26']"
@
click=
"tbxsth(ctx.basePage)"
size=
"mini"
type=
"primary"
>
同步销售退货
</el-button
>
<ImportButton
v-if=
"ctx.basePage.powerObj['01']"
@
success=
"()=>
{
ctx.basePage.refresh()
}" :url="'/lxyl/rkgl/rktz/import'" />
<el-button
v-if=
"ctx.basePage.powerObj['21']"
style=
"margin-left: 10px;"
@
click=
"qr(ctx.basePage)"
size=
'mini'
type=
"primary"
>
确认
</el-button>
<el-button
v-if=
"ctx.basePage.powerObj['21']"
@
click=
"qxqr(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消确认
</el-button>
<el-button
v-if=
"ctx.basePage.powerObj['22']"
@
click=
"sapgz(ctx.basePage)"
size=
'mini'
type=
"primary"
>
SAP过账
</el-button>
<el-button
v-if=
"ctx.basePage.powerObj['23']"
@
click=
"tbshd(ctx.basePage)"
size=
'mini'
type=
"primary"
>
同步送货单
</el-button>
<el-button
v-if=
"ctx.basePage.powerObj['24']"
@
click=
"dbrktb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
同步生产入库单
</el-button>
<el-button
v-if=
"ctx.basePage.powerObj['25']"
@
click=
"tbcgd(ctx.basePage)"
size=
'mini'
type=
"primary"
>
同步采购单
</el-button>
<el-button
v-if=
"ctx.basePage.powerObj['26']"
@
click=
"tbxsth(ctx.basePage)"
size=
'mini'
type=
"primary"
>
同步销售退货
</el-button>
<!--
<el-button
@
click=
"qktjkw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
清空推荐库位
</el-button>
-->
</
template
>
</BasePage>
<!--
<el-button
@
click=
"qktjkw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
清空推荐库位
</el-button>
-->
</
template
>
</BasePage>
</template>
<
script
>
import
Edit
from
'./edit.vue'
import
Shd
from
'./shd.vue'
import
Dbrktb
from
'./dbrktb.vue'
import
Tbcgd
from
'./tbcgd.vue'
import
Tbxsth
from
'./tbxsth.vue'
export
default
{
data
()
{
return
{
config
:
{
queryDetail
:
true
,
/* 基本配置*/
url
:
'lxyl/rkgl/rktz'
,
tableTitle
:
[{
title
:
"状态"
,
field
:
"zt"
,
fieldType
:
"ftString"
,
align
:
'center'
,
width
:
80
,
"transform"
:
{
"url"
:
"lxyl/rkgl/rktz/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"入库单号"
,
field
:
"djid"
,
width
:
140
},
{
title
:
"业务日期"
,
field
:
"ywrq"
,
fieldType
:
'ftDate'
},
// {
// title: "入库人",
// field: "rkr",
// width: 140
// },
import
Edit
from
"./edit.vue"
;
import
Shd
from
"./shd.vue"
;
import
Dbrktb
from
"./dbrktb.vue"
;
import
Tbcgd
from
"./tbcgd.vue"
;
import
Tbxsth
from
"./tbxsth.vue"
;
export
default
{
data
()
{
return
{
config
:
{
queryDetail
:
true
,
/* 基本配置*/
url
:
"lxyl/rkgl/rktz"
,
tableTitle
:
[
{
title
:
"状态"
,
field
:
"zt"
,
fieldType
:
"ftString"
,
align
:
"center"
,
width
:
80
,
transform
:
{
url
:
"lxyl/rkgl/rktz/init/zt"
,
label
:
"name"
,
value
:
"id"
,
},
},
{
title
:
"入库单号"
,
field
:
"djid"
,
width
:
140
,
},
{
title
:
"业务日期"
,
field
:
"ywrq"
,
fieldType
:
"ftDate"
,
},
// {
// title: "入库人",
// field: "rkr",
// width: 140
// },
{
title
:
"货主"
,
field
:
"hzName"
,
width
:
140
,
},
{
title
:
"事务类型"
,
field
:
"swlxName"
,
width
:
100
,
},
{
title
:
"入库人"
,
field
:
"rkrName"
,
width
:
100
,
},
{
title
:
"仓库"
,
field
:
"ckid"
,
width
:
140
,
hidden
:
true
,
},
{
title
:
"仓库编码"
,
field
:
"ckCode"
,
width
:
140
,
},
{
title
:
"仓库"
,
field
:
"ckName"
,
width
:
140
,
},
// {
// title: "码盘状态",
// field: "mpzt",
// width: 100,
// "transform": {
// "url": "wms/rkgl/rktz/init/mpzt",
// "label": "name",
// "value": "id"
// }
// },
// {
// title: "包装状态",
// field: "bzzt",
// width: 100,
// "transform": {
// "url": "wms/rkgl/rktz/init/bzzt",
// "label": "name",
// "value": "id"
// }
// },
// {
// title: "过账状态",
// field: "gzzt",
// width: 100,
// "transform": {
// "url": "lxyl/common/init/gzzt",
// "label": "name",
// "value": "id"
// }
// },
{
title
:
"部门"
,
field
:
"bmName"
,
width
:
140
,
},
{
title
:
"单据来源"
,
field
:
"djly"
,
width
:
140
,
transform
:
{
url
:
"lxyl/rkgl/rktz/init/djly"
,
label
:
"name"
,
value
:
"id"
,
},
},
// {
// title: "来源单据号",
// field: "lydjDjid",
// width: 140
// },
{
title
:
"备注"
,
field
:
"bz"
,
width
:
240
,
},
{
title
:
"维护人"
,
field
:
"whr"
,
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
"ftDateTime"
,
},
],
queryParams
:
[
[
{
title
:
"货主"
,
field
:
"hzName"
,
width
:
140
label
:
"日期"
,
startProp
:
"start"
,
endProp
:
"end"
,
span
:
8
,
type
:
"RelDaterangeV2"
,
startValue
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
endValue
:
new
Date
().
getTime
(),
},
{
title
:
"事务类型"
,
field
:
"swlxName"
,
width
:
100
},
{
title
:
"入库人"
,
field
:
"rkrName"
,
width
:
100
label
:
"仓库"
,
prop
:
"ckid"
,
span
:
8
,
type
:
"RelSelect"
,
value
:
""
,
typeConfig
:
{
src
:
"lxyl/common/ck/queryCkid"
,
match
:
{
value
:
"id"
,
label
:
"name"
,
},
},
},
{
title
:
"仓库"
,
field
:
"ckid"
,
width
:
140
,
hidden
:
true
},
{
title
:
"仓库编码"
,
field
:
"ckCode"
,
width
:
140
label
:
"单据编号"
,
prop
:
"djid"
,
span
:
8
,
type
:
"input"
,
value
:
""
,
},
{
title
:
"仓库"
,
field
:
"ckName"
,
width
:
140
},
// {
// title: "码盘状态",
// field: "mpzt",
// width: 100,
// "transform": {
// "url": "wms/rkgl/rktz/init/mpzt",
// "label": "name",
// "value": "id"
// }
// },
// {
// title: "包装状态",
// field: "bzzt",
// width: 100,
// "transform": {
// "url": "wms/rkgl/rktz/init/bzzt",
// "label": "name",
// "value": "id"
// }
// },
// {
// title: "过账状态",
// field: "gzzt",
// width: 100,
// "transform": {
// "url": "lxyl/common/init/gzzt",
// "label": "name",
// "value": "id"
// }
// },
{
title
:
"部门"
,
field
:
"bmName"
,
width
:
140
},
],
[
{
title
:
"单据来源"
,
field
:
"djly"
,
width
:
140
,
"transform"
:
{
"url"
:
"lxyl/rkgl/rktz/init/djly"
,
"label"
:
"name"
,
"value"
:
"id"
}
label
:
"状态"
,
prop
:
"zt"
,
span
:
8
,
type
:
"RelSelect"
,
typeConfig
:
{
src
:
"lxyl/rkgl/rktz/init/zt"
,
},
},
// {
// title: "来源单据号",
// field: "lydjDjid",
// width: 140
// },
{
title
:
"备注"
,
field
:
"bz"
,
width
:
240
},
{
title
:
"维护人"
,
field
:
"whr"
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
'ftDateTime'
}
],
queryParams
:
[
[{
label
:
'日期'
,
startProp
:
"start"
,
endProp
:
"end"
,
span
:
8
,
type
:
'RelDaterangeV2'
,
startValue
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
endValue
:
new
Date
().
getTime
(),
},
{
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"lxyl/common/ck/queryCkid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
label
:
'单据编号'
,
prop
:
'djid'
,
span
:
8
,
type
:
'input'
,
value
:
''
},
],[
{
label
:
'状态'
,
prop
:
'zt'
,
span
:
8
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'lxyl/rkgl/rktz/init/zt'
}
},
{
label
:
'事务类型'
,
prop
:
'swlxid'
,
span
:
8
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'lxyl/rkgl/rktz/init/swlx'
}
{
label
:
"事务类型"
,
prop
:
"swlxid"
,
span
:
8
,
type
:
"RelSelect"
,
typeConfig
:
{
src
:
"lxyl/rkgl/rktz/init/swlx"
,
},
{
label
:
'来源单号'
,
prop
:
'lydh'
,
span
:
8
,
type
:
'input'
,
value
:
''
}
]
],
/* 默认启停用 */
}
}
},
methods
:
{
tbxsth
(
ctx
){
ctx
.
DialogWidth
=
'35vw'
ctx
.
DialogTitle
=
'同步销售退货'
ctx
.
showDialog
=
true
},
tbcgd
(
ctx
){
ctx
.
DialogWidth
=
'35vw'
ctx
.
DialogTitle
=
'同步采购单'
ctx
.
showDialog
=
true
},
tbshd
(
ctx
){
ctx
.
DialogWidth
=
'35vw'
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
(
'是否继续该操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/rkgl/sjtz/cleanKw '
,{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
sapgz
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
this
.
$confirm
(
'是否继续该操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/rkgl/rktz/sap/gz'
,{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
getRow
(
val
){
this
.
$emit
(
'getRow'
,
val
)
},
qr
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
this
.
$confirm
(
'是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/rkgl/rktz/confirm'
,{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据进行操作'
)
}
},
{
label
:
"来源单号"
,
prop
:
"lydjDjid"
,
span
:
8
,
type
:
"input"
,
value
:
""
,
},
],
],
/* 默认启停用 */
},
qxqr
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
this
.
$confirm
(
'是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/rkgl/rktz/unconfirm'
,{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据进行操作'
)
}
};
},
methods
:
{
tbxsth
(
ctx
)
{
ctx
.
DialogWidth
=
"35vw"
;
ctx
.
DialogTitle
=
"同步销售退货"
;
ctx
.
showDialog
=
true
;
},
tbcgd
(
ctx
)
{
ctx
.
DialogWidth
=
"35vw"
;
ctx
.
DialogTitle
=
"同步采购单"
;
ctx
.
showDialog
=
true
;
},
tbshd
(
ctx
)
{
ctx
.
DialogWidth
=
"35vw"
;
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
(
"是否继续该操作?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
}).
then
((
res
)
=>
{
this
.
$post
(
"lxyl/rkgl/sjtz/cleanKw "
,
{
id
:
ctx
.
singleItem
.
id
,
}).
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
$success
(
"操作成功"
);
ctx
.
refresh
();
}
});
});
}
else
{
this
.
$warning
(
"请选中一条数据"
);
}
},
components
:
{
Edit
,
Shd
,
Dbrktb
,
Tbcgd
,
Tbxsth
}
}
},
sapgz
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
"是否继续该操作?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
}).
then
((
res
)
=>
{
this
.
$post
(
"lxyl/rkgl/rktz/sap/gz"
,
{
id
:
ctx
.
singleItem
.
id
,
}).
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
$success
(
"操作成功"
);
ctx
.
refresh
();
}
});
});
}
else
{
this
.
$warning
(
"请选中一条数据"
);
}
},
getRow
(
val
)
{
this
.
$emit
(
"getRow"
,
val
);
},
qr
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
"是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
}).
then
((
res
)
=>
{
this
.
$post
(
"lxyl/rkgl/rktz/confirm"
,
{
id
:
ctx
.
singleItem
.
id
,
}).
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
$success
(
"操作成功"
);
ctx
.
refresh
();
}
});
});
}
else
{
this
.
$warning
(
"请选中一条数据进行操作"
);
}
},
qxqr
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
"是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
}).
then
((
res
)
=>
{
this
.
$post
(
"lxyl/rkgl/rktz/unconfirm"
,
{
id
:
ctx
.
singleItem
.
id
,
}).
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
$success
(
"操作成功"
);
ctx
.
refresh
();
}
});
});
}
else
{
this
.
$warning
(
"请选中一条数据进行操作"
);
}
},
},
components
:
{
Edit
,
Shd
,
Dbrktb
,
Tbcgd
,
Tbxsth
,
},
};
</
script
>
<
style
>
...
...
src/views/ccgl/rkgl/spk/top/wmsRkd/index.vue
View file @
46850459
<
template
>
<BasePage
:toolButtonConfig=
"
{
showExcel:false,
showPrint:false,
showField:true
}" ref="basePage" :power='power' class="min_full" :config="config">
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!--
<el-button
@
click=
"demo(ctx.basePage)"
size=
'mini'
type=
"primary"
>
示例按钮
</el-button>
-->
</
template
>
</BasePage>
<BasePage
:toolButtonConfig=
"
{
showExcel: false,
showPrint: false,
showField: true,
}"
ref="basePage"
:power="power"
class="min_full"
:config="config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!--
<el-button
@
click=
"demo(ctx.basePage)"
size=
'mini'
type=
"primary"
>
示例按钮
</el-button>
-->
</
template
>
</BasePage>
</template>
<
script
>
export
default
{
data
()
{
return
{
power
:
{
add
:
false
,
copy
:
false
,
delButton
:
false
,
editButton
:
false
,
operateButtons
:
false
,
workFlow
:
false
,
/* 表格 */
showSelection
:
false
,
saveSelected
:
false
},
config
:
{
/* 基本配置*/
url
:
'lxyl/rkgl/sjrw/pkrk/query/rktz'
,
queryUrl
:
'lxyl/rkgl/sjrw/pkrk/query/rktz'
,
tableTitle
:
[
// {
// title: "状态",
// field: "bzzt",
// fieldType: "ftString",
// align: 'center',
// width: 80,
// "transform": {
// "url": "wms/rkgl/rktz/init/bzzt",
// "label": "name",
// "value": "id"
// }
// },
{
title
:
"入库单号"
,
field
:
"djid"
,
width
:
140
},
{
title
:
"入库日期"
,
field
:
"ywrq"
,
fieldType
:
'ftDate'
},
// {
// title: "入库人",
// field: "rkr",
// width: 140
// },
{
title
:
"事务类型"
,
field
:
"swlxName"
,
width
:
100
},
{
title
:
"仓库"
,
field
:
"ckid"
,
width
:
140
,
hidden
:
true
},
{
title
:
"仓库"
,
field
:
"ckName"
,
width
:
140
},
{
title
:
"来源单号"
,
field
:
"lydjDjid"
,
width
:
140
},
{
title
:
"备注"
,
field
:
"bz"
,
width
:
240
},
{
title
:
"维护人"
,
field
:
"whr"
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
'ftDateTime'
}
],
queryParams
:
[
[
{
label
:
'开始日期'
,
prop
:
'start'
,
span
:
6
,
type
:
'date'
,
value
:
''
},
{
label
:
'开始日期'
,
prop
:
'end'
,
span
:
6
,
type
:
'date'
,
value
:
''
},
{
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"jcsj/common/ck/queryCkid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
label
:
'单据编号'
,
prop
:
'djid'
,
span
:
6
,
type
:
'input'
,
value
:
''
}
],[
{
label
:
'状态'
,
prop
:
'zt'
,
span
:
6
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'wms/rkgl/rktz/init/zt'
}
},
{
label
:
'事务类型'
,
prop
:
'swlxid'
,
span
:
6
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'wms/rkgl/rktz/init/swlx'
}
}
]
],
/* 默认启停用 */
showqt
:
false
,
}
}
},
methods
:
{
/* 示例*/
// demo(basePage){
// }
},
components
:
{
}
}
export
default
{
data
()
{
return
{
power
:
{
add
:
false
,
copy
:
false
,
delButton
:
false
,
editButton
:
false
,
operateButtons
:
false
,
workFlow
:
false
,
/* 表格 */
showSelection
:
false
,
saveSelected
:
false
,
},
config
:
{
/* 基本配置*/
url
:
"lxyl/rkgl/sjrw/pkrk/query/rktz"
,
queryUrl
:
"lxyl/rkgl/sjrw/pkrk/query/rktz"
,
tableTitle
:
[
// {
// title: "状态",
// field: "bzzt",
// fieldType: "ftString",
// align: 'center',
// width: 80,
// "transform": {
// "url": "wms/rkgl/rktz/init/bzzt",
// "label": "name",
// "value": "id"
// }
// },
{
title
:
"入库单号"
,
field
:
"djid"
,
width
:
140
,
},
{
title
:
"入库日期"
,
field
:
"ywrq"
,
fieldType
:
"ftDate"
,
},
// {
// title: "入库人",
// field: "rkr",
// width: 140
// },
{
title
:
"事务类型"
,
field
:
"swlxName"
,
width
:
100
,
},
{
title
:
"仓库"
,
field
:
"ckid"
,
width
:
140
,
hidden
:
true
,
},
{
title
:
"仓库"
,
field
:
"ckName"
,
width
:
140
,
},
{
title
:
"来源单号"
,
field
:
"lydjDjid"
,
width
:
140
,
},
{
title
:
"备注"
,
field
:
"bz"
,
width
:
240
,
},
{
title
:
"维护人"
,
field
:
"whr"
,
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
"ftDateTime"
,
},
],
queryParams
:
[
[
{
label
:
"开始日期"
,
prop
:
"start"
,
span
:
6
,
type
:
"date"
,
value
:
""
,
},
{
label
:
"开始日期"
,
prop
:
"end"
,
span
:
6
,
type
:
"date"
,
value
:
""
,
},
{
label
:
"仓库"
,
prop
:
"ckid"
,
span
:
6
,
type
:
"RelSelect"
,
value
:
""
,
typeConfig
:
{
src
:
"jcsj/common/ck/queryCkid"
,
match
:
{
value
:
"id"
,
label
:
"name"
,
},
},
},
{
label
:
"单据编号"
,
prop
:
"djidInfo"
,
span
:
6
,
type
:
"input"
,
value
:
""
,
},
],
[
{
label
:
"状态"
,
prop
:
"zt"
,
span
:
6
,
type
:
"RelSelect"
,
typeConfig
:
{
src
:
"wms/rkgl/rktz/init/zt"
,
},
},
{
label
:
"事务类型"
,
prop
:
"swlxid"
,
span
:
6
,
type
:
"RelSelect"
,
typeConfig
:
{
src
:
"wms/rkgl/rktz/init/swlx"
,
},
},
],
],
/* 默认启停用 */
showqt
:
false
,
},
};
},
methods
:
{
/* 示例*/
// demo(basePage){
// }
},
components
:
{},
};
</
script
>
<
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