Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-equity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit da4f8cdc
authored
Jul 05, 2021
by
liwk
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
0c628211
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
666 additions
and
28 deletions
src/assets/css/tao.css
src/assets/css/tao.css.map
src/assets/css/tao.scss
src/components/d2-table/index.vue
src/components/index.js
src/components/table-tooltip/index.vue
src/views/tao/eManagement/index.vue
src/views/tao/financialManagement/index.vue
src/views/tao/gasManagement/index.vue
src/views/tao/goods/index/index.vue
src/views/tao/order/index/index.vue
src/views/tao/sale/index/index.vue
vue.config.js
src/assets/css/tao.css
View file @
da4f8cd
...
@@ -27,6 +27,8 @@
...
@@ -27,6 +27,8 @@
align-items
:
center
;
align-items
:
center
;
gap
:
10px
;
gap
:
10px
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
-ms-flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
}
}
.search-box
.top
.item
{
.search-box
.top
.item
{
...
@@ -47,4 +49,9 @@
...
@@ -47,4 +49,9 @@
.search-box
.bottom
{
.search-box
.bottom
{
width
:
100%
;
width
:
100%
;
}
}
.table-box
.table-btn
,
.table-box
.table-custom
{
margin
:
20px
0
;
}
/*# sourceMappingURL=tao.css.map */
/*# sourceMappingURL=tao.css.map */
\ No newline at end of file
\ No newline at end of file
src/assets/css/tao.css.map
0 → 100644
View file @
da4f8cd
{
"version": 3,
"mappings": "AAAA,AAAA,CAAC,CAAC;EACA,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC;CACX;;AAED,AAAA,WAAW,CAAC;EACV,OAAO,EAAE,IAAI;EACb,WAAW,EAAE,MAAM;EACnB,cAAc,EAAE,MAAM;EACtB,cAAc,EAAE,IAAI;EACpB,aAAa,EAAE,cAAc;CAoB9B;;AAzBD,AAME,WANS,CAMT,IAAI,CAAC;EACH,OAAO,EAAE,IAAI;EACb,WAAW,EAAE,MAAM;EACnB,GAAG,EAAE,IAAI;EACT,aAAa,EAAE,IAAI;EACnB,SAAS,EAAE,IAAI;CAMhB;;AAjBH,AAYI,WAZO,CAMT,IAAI,CAMF,KAAK,CAAC;EACJ,OAAO,EAAE,IAAI;EACb,WAAW,EAAE,MAAM;EACnB,SAAS,EAAE,IAAI;CAChB;;AAhBL,AAkBE,WAlBS,CAkBT,OAAO,CAAC;EACN,YAAY,EAAE,IAAI;CACnB;;AApBH,AAqBE,WArBS,CAqBT,IAAI;AArBN,WAAW,CAsBT,OAAO,CAAC;EACN,KAAK,EAAE,IAAI;CACZ;;AAGH,AACE,UADQ,CACR,UAAU;AADZ,UAAU,CAER,aAAa,CAAC;EACZ,MAAM,EAAE,MAAM;CACf",
"sources": [
"tao.scss"
],
"names": [],
"file": "tao.css"
}
\ No newline at end of file
\ No newline at end of file
src/assets/css/tao.scss
View file @
da4f8cd
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
align-items
:
center
;
align-items
:
center
;
gap
:
10px
;
gap
:
10px
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
flex-wrap
:
wrap
;
.item
{
.item
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -28,3 +29,10 @@
...
@@ -28,3 +29,10 @@
width
:
100%
;
width
:
100%
;
}
}
}
}
.table-box
{
.table-btn
,
.table-custom
{
margin
:
20px
0
;
}
}
\ No newline at end of file
\ No newline at end of file
src/components/d2-table/index.vue
View file @
da4f8cd
...
@@ -28,8 +28,8 @@
...
@@ -28,8 +28,8 @@
type=
'index'
type=
'index'
:index=
"index=>index+(page.currentPage - 1) * page.pageSize + 1"
:index=
"index=>index+(page.currentPage - 1) * page.pageSize + 1"
></el-table-column>
></el-table-column>
<template
v-for=
"(item, index) in tableParams.tableColumns"
>
<el-table-column
<el-table-column
v-for=
"(item, index) in tableParams.tableColumns"
:key=
"index"
:key=
"index"
:label=
"item.label"
:label=
"item.label"
:prop=
"item.prop"
:prop=
"item.prop"
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
:min-width=
"item.minWidth"
:min-width=
"item.minWidth"
:align=
"item.align||'center'"
:align=
"item.align||'center'"
:sortable=
"item.sortable"
:sortable=
"item.sortable"
:render-header=
"item.renderHeader"
>
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<slot
<slot
...
@@ -73,6 +74,8 @@
...
@@ -73,6 +74,8 @@
</
template
>
</
template
>
</template>
</template>
</el-table-column>
</el-table-column>
</template>
<el-table-column
<el-table-column
v-if=
"tableParams.tableOption"
v-if=
"tableParams.tableOption"
label=
"操作"
label=
"操作"
...
@@ -88,6 +91,10 @@
...
@@ -88,6 +91,10 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<
template
v-if=
"$slots.custom"
>
<slot
name=
"custom"
></slot>
</
template
>
<el-pagination
<el-pagination
v-if=
"hasPage"
v-if=
"hasPage"
background
background
...
@@ -106,7 +113,8 @@
...
@@ -106,7 +113,8 @@
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'd2-table'
,
name
:
'd2-table'
,
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
loading
:
false
,
data
:
[],
data
:
[],
...
@@ -124,7 +132,6 @@ export default {
...
@@ -124,7 +132,6 @@ export default {
mutiSelectArr
:
{}
mutiSelectArr
:
{}
}
}
},
},
props
:
{
props
:
{
// 搜索条件
// 搜索条件
searchForm
:
{
searchForm
:
{
...
@@ -212,40 +219,38 @@ export default {
...
@@ -212,40 +219,38 @@ export default {
}
}
}
}
},
},
mounted
()
{
mounted
()
{
const
btn
=
document
.
getElementById
(
this
.
tableParams
.
btnId
)
const
btn
=
document
.
getElementById
(
this
.
tableParams
.
btnId
)
btn
&&
btn
.
addEventListener
(
'click'
,
this
.
refreshEmit
)
btn
&&
btn
.
addEventListener
(
'click'
,
this
.
refreshEmit
)
this
.
getListApi
&&
this
.
refreshTable
()
this
.
getListApi
&&
this
.
refreshTable
()
},
},
methods
:
{
methods
:
{
// 排序
// 排序
sortChange
({
column
,
prop
,
order
})
{
sortChange
({
column
,
prop
,
order
})
{
this
.
sortColum
=
order
?
prop
:
''
this
.
sortColum
=
order
?
prop
:
''
this
.
sort
=
order
this
.
sort
=
order
this
.
refreshTable
()
this
.
refreshTable
()
},
},
// 多选
// 多选
handleSelect
(
val
)
{
handleSelect
(
val
)
{
this
.
mutiSelectArr
[
this
.
tableParams
.
mutiSelectName
]
=
val
this
.
mutiSelectArr
[
this
.
tableParams
.
mutiSelectName
]
=
val
},
},
// 清空多选
// 清空多选
clearMutiSelect
()
{
clearMutiSelect
()
{
this
.
mutiSelectArr
[
this
.
tableParams
.
mutiSelectName
]
=
[]
this
.
mutiSelectArr
[
this
.
tableParams
.
mutiSelectName
]
=
[]
this
.
$refs
[
this
.
tableParams
.
mutiSelectName
+
'MutiTable'
].
clearSelection
()
this
.
$refs
[
this
.
tableParams
.
mutiSelectName
+
'MutiTable'
].
clearSelection
()
},
},
// 发布事件,以期查询条件改变后,页面图表需要刷新
// 发布事件,以期查询条件改变后,页面图表需要刷新
refreshEmit
()
{
refreshEmit
()
{
this
.
$emit
(
'searchChange'
)
this
.
$emit
(
'searchChange'
)
this
.
refreshTable
(
true
,
true
)
this
.
refreshTable
(
true
,
true
)
},
},
refreshTable
(
clearMuti
=
true
,
resetCurrentPage
=
false
)
{
refreshTable
(
clearMuti
=
true
,
resetCurrentPage
=
false
)
{
this
.
beforeSearchFn
().
then
(
res
=>
{
this
.
beforeSearchFn
().
then
(
res
=>
{
// console.log(res)
// console.log(res)
// 清空多选
// 清空多选
...
@@ -270,17 +275,17 @@ export default {
...
@@ -270,17 +275,17 @@ export default {
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
})
})
}).
catch
(()
=>
{})
}).
catch
(()
=>
{
})
},
},
// 每页条数
// 每页条数
handleSizeChange
(
value
)
{
handleSizeChange
(
value
)
{
this
.
page
.
pageSize
=
value
this
.
page
.
pageSize
=
value
this
.
getListApi
?
this
.
refreshTable
(
false
)
:
this
.
$emit
(
'refreshTable'
,
this
.
page
)
this
.
getListApi
?
this
.
refreshTable
(
false
)
:
this
.
$emit
(
'refreshTable'
,
this
.
page
)
},
},
// 页码
// 页码
handleCurrentChange
(
value
)
{
handleCurrentChange
(
value
)
{
this
.
page
.
currentPage
=
value
this
.
page
.
currentPage
=
value
this
.
getListApi
?
this
.
refreshTable
(
false
)
:
this
.
$emit
(
'refreshTable'
,
this
.
page
)
this
.
getListApi
?
this
.
refreshTable
(
false
)
:
this
.
$emit
(
'refreshTable'
,
this
.
page
)
}
}
...
@@ -298,4 +303,8 @@ export default {
...
@@ -298,4 +303,8 @@ export default {
.d2-table
p
{
.d2-table
p
{
margin
:
10px
0
;
margin
:
10px
0
;
}
}
.test
{
width
:
50px
;
height
:
100%
;
}
</
style
>
</
style
>
src/components/index.js
View file @
da4f8cd
import
Vue
from
'vue'
import
Vue
from
'vue'
// 注意 有些组件使用异步加载会有影响
// 注意 有些组件使用异步加载会有影响
Vue
.
component
(
'd2-table'
,
()
=>
import
(
'./d2-table/index.vue'
))
Vue
.
component
(
'table-tooltip'
,
()
=>
import
(
'./table-tooltip/index.vue'
))
Vue
.
component
(
'd2-table'
,
()
=>
import
(
'./d2-table/index.vue'
))
\ No newline at end of file
\ No newline at end of file
src/components/table-tooltip/index.vue
0 → 100644
View file @
da4f8cd
<
template
>
<div
class=
"table-tooltip"
>
<el-popover
placement=
"top"
width=
"200"
trigger=
"hover"
:content=
"content"
>
<el-button
slot=
"reference"
icon=
"el-icon-warning"
circle
></el-button>
</el-popover>
</div>
</
template
>
<
script
>
export
default
{
name
:
'table-tooltip'
,
props
:
{
content
:
{
type
:
String
,
default
:
''
}
},
}
</
script
>
<
style
>
.el-button
{
border
:
none
!important
;
}
.el-button.is-circle
{
padding
:
0
!important
;
}
.el-button
:focus
,
.el-button
:hover
{
background-color
:
transparent
;
}
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/tao/eManagement/index.vue
View file @
da4f8cd
...
@@ -168,6 +168,6 @@ export default {
...
@@ -168,6 +168,6 @@ export default {
}
}
</
script
>
</
script
>
<
style
src=
"
../../../assets
/css/tao.css"
></
style
>
<
style
src=
"
@a
/css/tao.css"
></
style
>
<
style
>
<
style
>
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/tao/financialManagement/index.vue
View file @
da4f8cd
<
template
>
<
template
>
<div>
<div>
加油
财务管理
</div>
</div>
</
template
>
</
template
>
...
@@ -18,5 +18,5 @@ export default {
...
@@ -18,5 +18,5 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
>
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/tao/gasManagement/index.vue
View file @
da4f8cd
...
@@ -175,6 +175,6 @@ export default {
...
@@ -175,6 +175,6 @@ export default {
}
}
</
script
>
</
script
>
<
style
src=
"
../../../assets
/css/tao.css"
></
style
>
<
style
src=
"
@a
/css/tao.css"
></
style
>
<
style
>
<
style
>
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/tao/goods/index/index.vue
View file @
da4f8cd
<
template
>
<
template
>
<div>
<div
class=
"layout"
>
商品列表
<div
class=
"search-box"
>
<div
class=
"top"
>
<div
class=
"item"
>
加油日期:
<el-date-picker
v-model=
"searchObj.date"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
size=
"small"
value-format=
"yyyy-MM-dd"
>
</el-date-picker>
</div>
<div
class=
"item"
>
加油供应商:
<el-select>
<el-option
label=
"团油"
value=
"0"
>
</el-option>
</el-select>
</div>
<div
class=
"item"
>
供应商订单号:
<div
class=
"input"
>
<el-input
v-model=
"searchObj.no"
placeholder=
""
size=
"small"
></el-input>
</div>
</div>
<div
class=
"item"
>
加油用户:
<div
class=
"input"
>
<el-input
v-model=
"searchObj.user"
placeholder=
""
size=
"small"
></el-input>
</div>
</div>
<div
class=
"item"
>
订单状态:
<el-select
v-model=
"searchObj.status"
placeholder=
"请选择"
>
<el-option
v-for=
"item in statusList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</div>
</div>
<div
class=
"bottom"
>
<el-button-group>
<el-button
type=
"primary"
>
查询
</el-button>
<el-button
type=
"default"
>
重置
</el-button>
</el-button-group>
</div>
</div>
<div
class=
"table-box"
>
<div
class=
"table-btn"
>
<el-button
type=
"primary"
>
新增商品
</el-button>
</div>
<d2-table
:searchForm=
"searchObj"
:tableParams=
"tableParams"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<el-button
type=
"text"
@
click=
"startcollectiondetails(scope.scope)"
>
查看详情
</el-button>
</span>
<template
slot=
'custom'
>
<div
class=
"table-custom"
>
<el-button-group>
<el-button
type=
"primary"
>
上架
</el-button>
<el-button
type=
"primary"
>
下架
</el-button>
<el-button
type=
"primary"
>
删除
</el-button>
</el-button-group>
</div>
</
template
>
</d2-table>
</div>
</div>
</div>
</template>
</template>
...
@@ -9,6 +105,75 @@ export default {
...
@@ -9,6 +105,75 @@ export default {
name
:
''
,
name
:
''
,
data
()
{
data
()
{
return
{
return
{
searchObj
:
{
status
:
1
},
statusList
:
[{
label
:
'已结算'
,
value
:
1
},
{
label
:
'待结算'
,
value
:
2
},
{
label
:
'已失效'
,
value
:
3
}],
tableParams
:
{
listName
:
'list'
,
mutiSelectName
:
'goodsIndex'
,
mutiSelectUniqueKey
:
'id'
,
tableOption
:
true
,
tableColumns
:
[
{
label
:
'提供方'
,
prop
:
'cardNo'
,
minWidth
:
'200'
},
{
label
:
'商品SKU'
,
prop
:
'activationCode'
,
minWidth
:
'200'
,
},
{
label
:
'销售价(元)'
,
prop
:
'sn'
,
minWidth
:
'200'
,
},
{
prop
:
'mobile'
,
minWidth
:
'200'
,
renderHeader
:
(
h
)
=>
{
return
h
(
'div'
,
{
class
:
'table-header'
},
[
h
(
'span'
,
'销量'
),
h
(
'table-tooltip'
,
{
props
:
{
content
:
'该商品的历史总销量,订单发生退款、换货历史销量均不变'
}
})
]
)
}
},
{
label
:
'库存'
,
prop
:
'memberName'
,
minWidth
:
'200'
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
memberCardDefine
.
memberName
}
},
{
label
:
'商品状态'
,
prop
:
'updatedDate'
,
minWidth
:
'200'
,
formatter
:
(
cellValue
)
=>
{
return
this
.
date_format
(
cellValue
.
updatedDate
)
}
},
]
}
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -18,5 +183,11 @@ export default {
...
@@ -18,5 +183,11 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
src=
"@a/css/tao.css"
></
style
>
<
style
>
.table-header
{
display
:
flex
!important
;
align-items
:
center
;
justify-content
:
center
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/tao/order/index/index.vue
View file @
da4f8cd
<
template
>
<
template
>
<div>
<div
class=
"layout"
>
加油
<div
class=
"search-box"
>
<div
class=
"top"
>
<div
class=
"item"
>
订单编号:
<div
class=
"input"
>
<el-input
v-model=
"searchObj.no"
placeholder=
""
size=
"small"
></el-input>
</div>
</div>
<div
class=
"item"
>
品牌名称:
<div
class=
"input"
>
<el-input
v-model=
"searchObj.no"
placeholder=
""
size=
"small"
></el-input>
</div>
</div>
<div
class=
"item"
>
商品名称:
<div
class=
"input"
>
<el-input
v-model=
"searchObj.no"
placeholder=
""
size=
"small"
></el-input>
</div>
</div>
<div
class=
"item"
>
渠道:
<el-select
v-model=
"searchObj.status"
placeholder=
"请选择"
>
<el-option
v-for=
"item in statusList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</div>
<div
class=
"item"
>
门店名称:
<div
class=
"input"
>
<el-input
v-model=
"searchObj.user"
placeholder=
""
size=
"small"
></el-input>
</div>
</div>
<div
class=
"item"
>
用户信息:
<div
class=
"input"
>
<el-input
v-model=
"searchObj.user"
placeholder=
""
size=
"small"
></el-input>
</div>
</div>
<div
class=
"item"
>
下单时间:
<el-date-picker
v-model=
"searchObj.date"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
size=
"small"
value-format=
"yyyy-MM-dd"
>
</el-date-picker>
</div>
</div>
<div
class=
"bottom"
>
<el-button-group>
<el-button
type=
"primary"
>
查询
</el-button>
<el-button
type=
"default"
>
重置
</el-button>
</el-button-group>
</div>
</div>
<div
class=
"table-box"
>
<el-tabs
v-model=
"tabIndex"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"全部"
name=
"1"
></el-tab-pane>
<el-tab-pane
label=
"待收货"
name=
"2"
></el-tab-pane>
<el-tab-pane
label=
"已完成"
name=
"3"
></el-tab-pane>
<el-tab-pane
label=
"退款丨售后"
name=
"4"
></el-tab-pane>
</el-tabs>
<d2-table
:searchForm=
"searchObj"
:tableParams=
"tableParams"
:getListApi=
"listRequisitionMemberCard"
:hasNum=
"false"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<el-button
type=
"text"
@
click=
"startcollectiondetails(scope.scope)"
>
查看详情
</el-button>
</span>
</d2-table>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -9,6 +136,70 @@ export default {
...
@@ -9,6 +136,70 @@ export default {
name
:
''
,
name
:
''
,
data
()
{
data
()
{
return
{
return
{
searchObj
:
{
status
:
1
},
tabIndex
:
'1'
,
statusList
:
[{
label
:
'广汇'
,
value
:
1
},
{
label
:
'默认渠道'
,
value
:
2
}],
tableParams
:
{
listName
:
'list'
,
tableOption
:
true
,
tableColumns
:
[
{
label
:
'商品信息'
,
prop
:
'cardNo'
,
minWidth
:
'200'
},
{
label
:
'订单渠道'
,
prop
:
'activationCode'
,
minWidth
:
'200'
,
},
{
label
:
'价格/数量'
,
prop
:
'sn'
,
minWidth
:
'200'
,
},
{
label
:
'实收金额'
,
prop
:
'mobile'
,
minWidth
:
'200'
// tagLabel: true
},
{
label
:
'订单状态'
,
prop
:
'memberName'
,
minWidth
:
'200'
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
memberCardDefine
.
memberName
}
},
{
label
:
'下单时间'
,
prop
:
'validitDate'
,
minWidth
:
'200'
,
formatter
:
(
cellValue
)
=>
{
}
},
{
label
:
'用户信息'
,
prop
:
'updatedDate'
,
minWidth
:
'200'
,
formatter
:
(
cellValue
)
=>
{
return
this
.
date_format
(
cellValue
.
updatedDate
)
}
},
]
}
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -18,5 +209,9 @@ export default {
...
@@ -18,5 +209,9 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
src=
"@a/css/tao.css"
></
style
>
<
style
>
.el-tabs__nav-wrap
:after
{
display
:
none
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/tao/sale/index/index.vue
View file @
da4f8cd
<
template
>
<
template
>
<div>
<div
class=
"layout"
>
加油
<div
class=
"search-box"
>
<div
class=
"top"
>
<div
class=
"item"
>
售后编号:
<div
class=
"input"
>
<el-input
v-model=
"searchObj.no"
placeholder=
""
size=
"small"
></el-input>
</div>
</div>
<div
class=
"item"
>
订单编号:
<div
class=
"input"
>
<el-input
v-model=
"searchObj.no"
placeholder=
""
size=
"small"
></el-input>
</div>
</div>
<div
class=
"item"
>
商品名称:
<div
class=
"input"
>
<el-input
v-model=
"searchObj.no"
placeholder=
""
size=
"small"
></el-input>
</div>
</div>
<div
class=
"item"
>
售后时间:
<el-date-picker
v-model=
"searchObj.date"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
size=
"small"
value-format=
"yyyy-MM-dd"
>
</el-date-picker>
</div>
<div
class=
"item"
>
用户信息:
<div
class=
"input"
>
<el-input
v-model=
"searchObj.user"
placeholder=
""
size=
"small"
></el-input>
</div>
</div>
<div
class=
"item"
>
渠道:
<el-select
v-model=
"searchObj.status"
placeholder=
"请选择"
>
<el-option
v-for=
"item in statusList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</div>
<div
class=
"item"
>
门店名称:
<div
class=
"input"
>
<el-input
v-model=
"searchObj.user"
placeholder=
""
size=
"small"
></el-input>
</div>
</div>
</div>
<div
class=
"bottom"
>
<el-button-group>
<el-button
type=
"primary"
>
查询
</el-button>
<el-button
type=
"default"
>
重置
</el-button>
</el-button-group>
</div>
</div>
<div
class=
"table-box"
>
<el-tabs
v-model=
"tabIndex"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"全部"
name=
"1"
></el-tab-pane>
<el-tab-pane
label=
"售后中"
name=
"2"
></el-tab-pane>
<el-tab-pane
label=
"售后完成"
name=
"3"
></el-tab-pane>
</el-tabs>
<d2-table
:searchForm=
"searchObj"
:tableParams=
"tableParams"
:getListApi=
"listRequisitionMemberCard"
:hasNum=
"false"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<el-button
type=
"text"
@
click=
"startcollectiondetails(scope.scope)"
>
查看详情
</el-button>
</span>
</d2-table>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -9,6 +133,70 @@ export default {
...
@@ -9,6 +133,70 @@ export default {
name
:
''
,
name
:
''
,
data
()
{
data
()
{
return
{
return
{
searchObj
:
{
status
:
1
},
tabIndex
:
'1'
,
statusList
:
[{
label
:
'广汇'
,
value
:
1
},
{
label
:
'默认渠道'
,
value
:
2
}],
tableParams
:
{
listName
:
'list'
,
tableOption
:
true
,
tableColumns
:
[
{
label
:
'售后描述'
,
prop
:
'cardNo'
,
minWidth
:
'200'
},
{
label
:
'商品信息'
,
prop
:
'activationCode'
,
minWidth
:
'200'
,
},
{
label
:
'价格/数量'
,
prop
:
'sn'
,
minWidth
:
'200'
,
},
{
label
:
'实收金额'
,
prop
:
'mobile'
,
minWidth
:
'200'
// tagLabel: true
},
{
label
:
'售后状态'
,
prop
:
'memberName'
,
minWidth
:
'200'
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
memberCardDefine
.
memberName
}
},
{
label
:
'下单时间'
,
prop
:
'validitDate'
,
minWidth
:
'200'
,
formatter
:
(
cellValue
)
=>
{
}
},
{
label
:
'用户信息'
,
prop
:
'updatedDate'
,
minWidth
:
'200'
,
formatter
:
(
cellValue
)
=>
{
return
this
.
date_format
(
cellValue
.
updatedDate
)
}
},
]
}
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -18,5 +206,9 @@ export default {
...
@@ -18,5 +206,9 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
src=
"@a/css/tao.css"
></
style
>
<
style
>
.el-tabs__nav-wrap
:after
{
display
:
none
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
vue.config.js
View file @
da4f8cd
...
@@ -12,6 +12,7 @@ glob.sync('./src/views/**/app.js').forEach(path => {
...
@@ -12,6 +12,7 @@ glob.sync('./src/views/**/app.js').forEach(path => {
chunks
:
[
'chunk-vendors'
,
'chunk-common'
,
chunk
]
chunks
:
[
'chunk-vendors'
,
'chunk-common'
,
chunk
]
}
}
})
})
const
path
=
require
(
'path'
)
module
.
exports
=
{
module
.
exports
=
{
pages
,
pages
,
chainWebpack
:
config
=>
{
chainWebpack
:
config
=>
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment