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
8fb72fbb
Commit
8fb72fbb
authored
Sep 10, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changeExcelParams自定义调整excel的参数
parent
e0ae09ba
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
403 additions
and
311 deletions
+403
-311
index.vue
src/views/ccgl/ckgl/bfckd/index.vue
+1
-1
index.vue
src/views/ccgl/ckgl/bfckd/top/index.vue
+22
-2
index.vue
src/views/ccgl/ckgl/ckd/index.vue
+1
-1
index.vue
src/views/ccgl/ckgl/ckd/top/index.vue
+22
-1
index.vue
src/views/ccgl/ckgl/dbckd/index.vue
+1
-1
index.vue
src/views/ccgl/ckgl/dbckd/top/index.vue
+22
-1
index.vue
src/views/ccgl/kcpd/pdd/index.vue
+1
-1
index.vue
src/views/ccgl/kcpd/pdd/top/index.vue
+22
-1
index.vue
src/views/ccgl/kngl/bzzy/index.vue
+1
-1
index.vue
src/views/ccgl/kngl/bzzy/top/index.vue
+23
-2
index.vue
src/views/ccgl/rkgl/dbrkd/index.vue
+2
-2
index.vue
src/views/ccgl/rkgl/dbrkd/top/index.vue
+22
-1
index.vue
src/views/ccgl/rkgl/rkd/index.vue
+2
-2
index.vue
src/views/ccgl/rkgl/rkd/top/index.vue
+261
-294
No files found.
src/views/ccgl/ckgl/bfckd/index.vue
View file @
8fb72fbb
...
...
@@ -3,7 +3,7 @@
<div
class=
" higher flex-column"
>
<!-- 分层-->
<div
class=
"top"
>
<Top
@
getRow=
'topGetRow'
ref=
"top"
></Top>
<Top
:app=
'this'
@
getRow=
'topGetRow'
ref=
"top"
></Top>
</div>
<div
class=
"bottom flex"
>
<div
class=
"full"
>
...
...
src/views/ccgl/ckgl/bfckd/top/index.vue
View file @
8fb72fbb
<
template
>
<BasePage
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<BasePage
:changeExcelParams=
'changeExcelParams'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
...
...
@@ -191,7 +191,27 @@
},
methods
:
{
/**
* @description: 调整excel传递的参数
* @param {Object} params
* @return {*}
* @author: lisu
*/
changeExcelParams
(
params
)
{
let
fields
=
JSON
.
parse
(
params
.
fields
)
let
expandTitle
=
this
.
$attrs
.
app
.
$refs
.
mx
.
$refs
.
basePage
.
tableTitle
let
newExpandTitle
=
[]
expandTitle
.
forEach
((
item
,
index
)
=>
{
let
newObj
=
{
caption
:
item
.
label
,
name
:
item
.
prop
,
width
:
item
.
width
}
newExpandTitle
[
index
]
=
newObj
})
fields
=
[...
fields
,
...
newExpandTitle
]
params
.
fields
=
JSON
.
stringify
(
fields
)
},
qr
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
...
...
src/views/ccgl/ckgl/ckd/index.vue
View file @
8fb72fbb
...
...
@@ -3,7 +3,7 @@
<div
class=
" higher flex-column"
>
<!-- 分层-->
<div
class=
"top"
>
<Top
@
getRow=
'topGetRow'
ref=
"top"
></Top>
<Top
:app=
'this'
@
getRow=
'topGetRow'
ref=
"top"
></Top>
</div>
<div
class=
"bottom flex"
>
<div
class=
"full"
>
...
...
src/views/ccgl/ckgl/ckd/top/index.vue
View file @
8fb72fbb
<
template
>
<BasePage
ref=
"basePage"
@
beforeEdit=
'beforeEdit'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<BasePage
:changeExcelParams=
'changeExcelParams'
ref=
"basePage"
@
beforeEdit=
'beforeEdit'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Tbwl
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='同步领料单'"
/>
...
...
@@ -201,6 +201,27 @@
},
methods
:
{
/**
* @description: 调整excel传递的参数
* @param {Object} params
* @return {*}
* @author: lisu
*/
changeExcelParams
(
params
)
{
let
fields
=
JSON
.
parse
(
params
.
fields
)
let
expandTitle
=
this
.
$attrs
.
app
.
$refs
.
mx
.
$refs
.
basePage
.
tableTitle
let
newExpandTitle
=
[]
expandTitle
.
forEach
((
item
,
index
)
=>
{
let
newObj
=
{
caption
:
item
.
label
,
name
:
item
.
prop
,
width
:
item
.
width
}
newExpandTitle
[
index
]
=
newObj
})
fields
=
[...
fields
,
...
newExpandTitle
]
params
.
fields
=
JSON
.
stringify
(
fields
)
},
beforeEdit
(
val
)
{
let
{
row
,
...
...
src/views/ccgl/ckgl/dbckd/index.vue
View file @
8fb72fbb
...
...
@@ -3,7 +3,7 @@
<div
class=
" higher flex-column"
>
<!-- 分层-->
<div
class=
"top"
>
<Top
@
getRow=
'topGetRow'
ref=
"top"
></Top>
<Top
:app=
'this'
@
getRow=
'topGetRow'
ref=
"top"
></Top>
</div>
<div
class=
"bottom flex"
>
<div
class=
"full"
>
...
...
src/views/ccgl/ckgl/dbckd/top/index.vue
View file @
8fb72fbb
<
template
>
<BasePage
ref=
"basePage"
@
beforeEdit=
'beforeEdit'
:power=
'power'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<BasePage
:changeExcelParams=
'changeExcelParams'
ref=
"basePage"
@
beforeEdit=
'beforeEdit'
:power=
'power'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Akck
:type=
"'add'"
v-if=
"ctx.basePage.showAdd&&showName=='akck'"
:app=
'ctx.basePage'
:buttonApp=
'ctx.basePage'
/>
...
...
@@ -190,6 +190,27 @@
},
methods
:
{
/**
* @description: 调整excel传递的参数
* @param {Object} params
* @return {*}
* @author: lisu
*/
changeExcelParams
(
params
)
{
let
fields
=
JSON
.
parse
(
params
.
fields
)
let
expandTitle
=
this
.
$attrs
.
app
.
$refs
.
ckdmx
.
$refs
.
basePage
.
tableTitle
let
newExpandTitle
=
[]
expandTitle
.
forEach
((
item
,
index
)
=>
{
let
newObj
=
{
caption
:
item
.
label
,
name
:
item
.
prop
,
width
:
item
.
width
}
newExpandTitle
[
index
]
=
newObj
})
fields
=
[...
fields
,
...
newExpandTitle
]
params
.
fields
=
JSON
.
stringify
(
fields
)
},
beforeEdit
(
val
)
{
let
{
row
,
...
...
src/views/ccgl/kcpd/pdd/index.vue
View file @
8fb72fbb
...
...
@@ -3,7 +3,7 @@
<div
class=
" higher flex-column"
>
<!-- 分层-->
<div
class=
"top"
>
<Top
@
getRow=
'topGetRow'
ref=
"top"
></Top>
<Top
:app=
'this'
@
getRow=
'topGetRow'
ref=
"top"
></Top>
</div>
<div
class=
"bottom flex"
>
<div
class=
"full"
>
...
...
src/views/ccgl/kcpd/pdd/top/index.vue
View file @
8fb72fbb
<
template
>
<BasePage
class=
"min_full"
@
getRow=
'getRow'
ref=
"basePage"
style=
"height: 100%;"
:config=
"config"
>
<BasePage
:changeExcelParams=
'changeExcelParams'
class=
"min_full"
@
getRow=
'getRow'
ref=
"basePage"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Xzgw
@
saveGw=
'saveGw'
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='选择工位'"
/>
...
...
@@ -141,6 +141,27 @@
},
methods
:
{
/**
* @description: 调整excel传递的参数
* @param {Object} params
* @return {*}
* @author: lisu
*/
changeExcelParams
(
params
)
{
let
fields
=
JSON
.
parse
(
params
.
fields
)
let
expandTitle
=
this
.
$attrs
.
app
.
$refs
.
mx
.
$refs
.
basePage
.
tableTitle
let
newExpandTitle
=
[]
expandTitle
.
forEach
((
item
,
index
)
=>
{
let
newObj
=
{
caption
:
item
.
label
,
name
:
item
.
prop
,
width
:
item
.
width
}
newExpandTitle
[
index
]
=
newObj
})
fields
=
[...
fields
,
...
newExpandTitle
]
params
.
fields
=
JSON
.
stringify
(
fields
)
},
saveGw
(
form
)
{
let
ctx
=
this
.
$refs
.
basePage
this
.
$post
(
'lxyl/kcgl/kcpd/lkxj'
,
{
...
...
src/views/ccgl/kngl/bzzy/index.vue
View file @
8fb72fbb
...
...
@@ -3,7 +3,7 @@
<div
class=
" higher flex-column"
>
<!-- 分层-->
<div
class=
"top"
>
<Top
@
getRow=
'topGetRow'
ref=
"top"
></Top>
<Top
:app=
'this'
@
getRow=
'topGetRow'
ref=
"top"
></Top>
</div>
<div
class=
"bottom flex"
>
<div
class=
"full"
>
...
...
src/views/ccgl/kngl/bzzy/top/index.vue
View file @
8fb72fbb
<
template
>
<BasePage
:toolButtonConfig=
"
{
showExcel:
fals
e,
<BasePage
:changeExcelParams=
'changeExcelParams'
:toolButtonConfig=
"
{
showExcel:
tru
e,
showPrint:false,
showField:true
}" addRename='装包' :power='power' @getRow='getRow' class="min_full" style="height: 100%;" :config="config">
...
...
@@ -159,6 +159,27 @@
},
methods
:
{
/**
* @description: 调整excel传递的参数
* @param {Object} params
* @return {*}
* @author: lisu
*/
changeExcelParams
(
params
)
{
let
fields
=
JSON
.
parse
(
params
.
fields
)
let
expandTitle
=
this
.
$attrs
.
app
.
$refs
.
mx
.
$refs
.
basePage
.
tableTitle
let
newExpandTitle
=
[]
expandTitle
.
forEach
((
item
,
index
)
=>
{
let
newObj
=
{
caption
:
item
.
label
,
name
:
item
.
prop
,
width
:
item
.
width
}
newExpandTitle
[
index
]
=
newObj
})
fields
=
[...
fields
,
...
newExpandTitle
]
params
.
fields
=
JSON
.
stringify
(
fields
)
},
qxwc
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$post
(
'lxyl/rkgl/bzzy/cancelComplete'
,
{
...
...
src/views/ccgl/rkgl/dbrkd/index.vue
View file @
8fb72fbb
...
...
@@ -3,7 +3,7 @@
<div
class=
" higher flex-column"
>
<!-- 分层-->
<div
class=
"top"
>
<Top
@
getRow=
'topGetRow'
ref=
"top"
></Top>
<Top
:app=
'this'
@
getRow=
'topGetRow'
ref=
"top"
></Top>
</div>
<div
class=
"bottom flex"
>
<div
class=
"full"
>
...
...
src/views/ccgl/rkgl/dbrkd/top/index.vue
View file @
8fb72fbb
<
template
>
<BasePage
@
getRow=
'getRow'
:power=
'power'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<BasePage
:changeExcelParams=
'changeExcelParams'
@
getRow=
'getRow'
:power=
'power'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
...
...
@@ -202,6 +202,27 @@
},
methods
:
{
/**
* @description: 调整excel传递的参数
* @param {Object} params
* @return {*}
* @author: lisu
*/
changeExcelParams
(
params
)
{
let
fields
=
JSON
.
parse
(
params
.
fields
)
let
expandTitle
=
this
.
$attrs
.
app
.
$refs
.
rkdmx
.
$refs
.
basePage
.
tableTitle
let
newExpandTitle
=
[]
expandTitle
.
forEach
((
item
,
index
)
=>
{
let
newObj
=
{
caption
:
item
.
label
,
name
:
item
.
prop
,
width
:
item
.
width
}
newExpandTitle
[
index
]
=
newObj
})
fields
=
[...
fields
,
...
newExpandTitle
]
params
.
fields
=
JSON
.
stringify
(
fields
)
},
/* 示例*/
getRow
(
val
){
this
.
$emit
(
'getRow'
,
val
)
...
...
src/views/ccgl/rkgl/rkd/index.vue
View file @
8fb72fbb
...
...
@@ -3,7 +3,7 @@
<div
class=
" higher flex-column"
>
<!-- 分层-->
<div
class=
"top"
>
<Top
@
getRow=
'topGetRow'
ref=
"top"
></Top>
<Top
:app=
'this'
@
getRow=
'topGetRow'
ref=
"top"
></Top>
</div>
<div
class=
"bottom flex"
>
<div
class=
"full"
>
...
...
src/views/ccgl/rkgl/rkd/top/index.vue
View file @
8fb72fbb
<
template
>
<BasePage
@
getRow=
"getRow"
class=
"min_full"
style=
"height: 100%"
:config=
"config"
>
<BasePage
:changeExcelParams=
'changeExcelParams'
@
getRow=
"getRow"
class=
"min_full"
style=
"height: 100%"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Shd
v-if=
"
<Shd
v-if=
"
ctx.basePage.showDialog && ctx.basePage.DialogTitle == '同步送货单'
"
:app=
"ctx.basePage"
/>
<Dbrktb
v-if=
"
"
:app=
"ctx.basePage"
/>
<Dbrktb
v-if=
"
ctx.basePage.showDialog &&
ctx.basePage.DialogTitle == '同步生产入库单'
"
:app=
"ctx.basePage"
/>
<Tbcgd
v-if=
"
"
:app=
"ctx.basePage"
/>
<Tbcgd
v-if=
"
ctx.basePage.showDialog && ctx.basePage.DialogTitle == '同步采购单'
"
:app=
"ctx.basePage"
/>
<Tbxsth
v-if=
"
"
:app=
"ctx.basePage"
/>
<Tbxsth
v-if=
"
ctx.basePage.showDialog && ctx.basePage.DialogTitle == '同步销售退货'
"
:app=
"ctx.basePage"
/>
"
:app=
"ctx.basePage"
/>
</
template
>
<
template
#
toolbar=
"ctx"
>
<ImportButton
v-if=
"ctx.basePage.powerObj['01']"
@
success=
"
<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['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
>
" :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['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>
</
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
{
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
:
[
{
tableTitle
:
[{
title
:
"状态"
,
field
:
"zt"
,
fieldType
:
"ftString"
,
...
...
@@ -187,8 +135,7 @@ export default {
}
],
queryParams
:
[
[
{
[{
label
:
"日期"
,
startProp
:
"start"
,
endProp
:
"end"
,
...
...
@@ -229,8 +176,7 @@ export default {
}
],
[
{
[{
label
:
"物料信息"
,
prop
:
"wlxxInfo"
,
span
:
8
,
...
...
@@ -261,6 +207,27 @@ export default {
};
},
methods
:
{
/**
* @description: 调整excel传递的参数
* @param {Object} params
* @return {*}
* @author: lisu
*/
changeExcelParams
(
params
)
{
let
fields
=
JSON
.
parse
(
params
.
fields
)
let
expandTitle
=
this
.
$attrs
.
app
.
$refs
.
mx
.
$refs
.
basePage
.
tableTitle
let
newExpandTitle
=
[]
expandTitle
.
forEach
((
item
,
index
)
=>
{
let
newObj
=
{
caption
:
item
.
label
,
name
:
item
.
prop
,
width
:
item
.
width
}
newExpandTitle
[
index
]
=
newObj
})
fields
=
[...
fields
,
...
newExpandTitle
]
params
.
fields
=
JSON
.
stringify
(
fields
)
},
tbxsth
(
ctx
)
{
ctx
.
DialogWidth
=
"35vw"
;
ctx
.
DialogTitle
=
"同步销售退货"
;
...
...
@@ -332,7 +299,7 @@ export default {
Tbcgd
,
Tbxsth
,
},
};
};
</
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