Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
sso-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 022ccfd6
authored
Jul 26, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
style:UI规范
2 parents
0be0d418
8d2bf198
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
497 additions
and
407 deletions
src/assets/css/public.scss
src/components/equity-dialog/index.vue
src/plugins/element.js
src/setup/qiankun.js
src/views/collection/index.vue
src/views/eManagement/index.vue
src/views/financial/index.vue
src/views/gas/index.vue
src/views/goods/addGoods.vue
src/views/goods/index.vue
src/views/list/index.vue
src/views/order/detail.vue
src/views/order/index.vue
src/views/rightsCard/cardDetail.vue
src/views/rightsCard/index.vue
vue.config.js
src/assets/css/public.scss
View file @
022ccfd
.equity-wrap
.contain
{
background
:
#FFFFFF
;
// margin: 0 0 20px 0;
padding
:
20
px
;
padding
:
20px
15
px
;
// box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.10);
}
.equity-wrap
.contain
.el-table__empty-text
{
...
...
src/components/equity-dialog/index.vue
View file @
022ccfd
<
template
>
<div
class=
"equity-dialog"
>
<
el-dialog
:title=
"type == 1 ? '添加汽车权益' : '添加商品权益'"
v-if=
"show"
:visible
.
sync=
"show"
:show-close=
"true"
:close-on-press-escape=
"false"
:close-on-click-modal=
"false"
width=
"712px"
class=
"equityDialog"
:before-close=
"closeListPoup"
>
<
GLDialog
mode=
"mid"
:title=
"type == 1 ? '添加汽车权益' : '添加商品权益'"
v-if=
"show"
:visible
.
sync=
"show"
:show-close=
"true"
:close-on-press-escape=
"false"
:close-on-click-modal=
"false"
:before-close=
"closeListPoup"
>
<div
class=
"form"
>
<el-form
class=
"equityForm"
:model=
"form"
:rules=
"rules"
ref=
"ruleForm"
label-position=
"right"
label-width=
"auto"
>
<el-form-item
v-if=
"type == 1"
label=
"服务提供方"
prop=
"supplier"
>
...
...
@@ -46,11 +46,11 @@
</div>
</el-form>
</div>
<div
slot=
"footer"
class=
"dialog-footer
buttonBtn
"
>
<el-button
size=
"small"
@
click=
"close"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"submit(type)"
>
确 定
</el-button>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"close"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"submit(type)"
>
确 定
</el-button>
</div>
</
el-d
ialog>
</
GLD
ialog>
</div>
</template>
...
...
src/plugins/element.js
View file @
022ccfd
import
Vue
from
'vue'
import
'@/components'
import
{
Message
,
Button
,
ButtonGroup
,
Form
,
FormItem
,
Input
,
Radio
,
RadioGroup
,
Checkbox
,
CheckboxGroup
,
Switch
,
Select
,
Option
,
TimePicker
,
Col
,
DatePicker
,
Tree
,
Card
,
Table
,
TableColumn
,
Pagination
,
Loading
,
Dialog
,
MessageBox
,
Upload
,
Tooltip
,
Tabs
,
TabPane
,
Container
,
Progress
,
Timeline
,
TimelineItem
,
Dropdown
,
DropdownMenu
,
Rate
,
Image
,
Drawer
,
Popover
,
Row
}
from
'element-ui'
Vue
.
use
(
Button
)
Vue
.
use
(
ButtonGroup
)
...
...
src/setup/qiankun.js
View file @
022ccfd
...
...
@@ -6,6 +6,7 @@ import { GLButton,GLTable, GLCombiForm, GLTableButton,GLDialog } from 'glsx-comp
import
{
getRoutes
}
from
'@/router'
import
render
from
'./render'
import
'glsx-components/dist/glsx-components.css'
let
routes
=
[]
let
router
=
null
let
instance
=
null
...
...
@@ -64,6 +65,7 @@ function juedeDomain(url){
const
GL_PRODUCT
=
url
.
indexOf
(
'scrm.glsx.com'
)
>-
1
const
GH_PRODUCT
=
url
.
indexOf
(
'scrm.cgacar'
)
>-
1
const
DEV
=
url
.
indexOf
(
'scrm.dev.glsx'
)
>-
1
const
BETA
=
url
.
indexOf
(
'scrm.beta.glsx'
)
>-
1
if
(
TEST
){
val
.
environment
=
'test'
}
else
if
(
GL_PRODUCT
){
...
...
@@ -77,6 +79,9 @@ function juedeDomain(url){
}
else
if
(
DEV
){
val
.
environment
=
'dev'
val
.
envVersion
=
'develop'
}
else
if
(
BETA
){
val
.
environment
=
'beta'
val
.
channel
=
1
}
Vue
.
prototype
.
$custom_env
=
val
let
baseURL
=
url
.
match
(
/
(\S
*
)\/
rop/
)[
1
];
...
...
src/views/collection/index.vue
View file @
022ccfd
This diff is collapsed.
Click to expand it.
src/views/eManagement/index.vue
View file @
022ccfd
<
template
>
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap contain"
>
<el-form
:inline=
"true"
style=
"width: 100%"
:model=
"searchForm"
label-width=
"70px"
label-position=
"right"
>
<el-row
style=
"display: flex; align-items: center"
>
<el-form-item
size=
"small"
label=
"加油日期"
>
<el-date-picker
size=
"small"
v-model=
"searchForm.daterange"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions ||
{}">
</el-date-picker>
</el-form-item>
<el-form-item
label=
"订单号"
>
<el-input
v-model=
"searchForm.orderId"
placeholder=
"请输入"
size=
"small"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"用户信息"
>
<el-input
v-model=
"searchForm.phone"
placeholder=
"请输入"
size=
"small"
clearable
></el-input>
</el-form-item>
</el-row>
<el-row>
<el-form-item
size=
"small"
label=
"订单状态"
>
<el-select
size=
"small"
v-model=
"searchForm.orderStatus"
placeholder=
"请选择"
>
<el-option
v-for=
"item in statusList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item
size=
"small"
class=
"fr-mr0"
>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-row>
</el-form>
<GLTable
v-if=
"flag"
ref=
"table"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
></GLTable>
<div
class=
"find_wrap"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLTable
ref=
"table"
:noDataImg=
"url"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
></GLTable>
</div>
</div>
</
template
>
<
script
>
// type='text/ecmascript-6'
function
date_format
(
date
)
{
var
date2
=
new
Date
(
date
)
var
YY
=
date2
.
getFullYear
()
+
'-'
...
...
@@ -42,41 +18,69 @@ function date_format(date) {
var
ss
=
date2
.
getSeconds
()
<
10
?
'0'
+
date2
.
getSeconds
()
:
date2
.
getSeconds
()
return
YY
+
MM
+
DD
+
' '
+
hh
+
mm
+
ss
}
import
url
from
"@/assets/empty.png"
// import { searchMixin } from '@/mixins'
import
url
from
'@/assets/empty.png'
export
default
{
name
:
''
,
// mixins: [searchMixin],
data
()
{
return
{
url
:
url
,
size
:
'small'
,
url
:
url
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
}
},
searchForm
:
{
orderId
:
''
orderId
:
''
,
orderStatus
:
''
,
daterange
:
''
,
phone
:
''
},
searchFormTable
:
{},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
date_format
,
flag
:
true
,
statusList
:
[
searchFormData
:
[
{
label
:
'下单时间'
,
name
:
'daterange'
,
type
:
'datePicker'
,
isClear
:
true
},
{
label
:
'已结算'
,
value
:
'0'
label
:
'订单号'
,
name
:
'orderId'
,
type
:
'input'
,
isClear
:
true
},
{
label
:
'待结算'
,
value
:
'1'
label
:
'用户信息'
,
name
:
'phone'
,
type
:
'input'
,
isClear
:
true
},
{
label
:
'已失效'
,
value
:
'2'
label
:
'订单状态'
,
name
:
'orderStatus'
,
type
:
'select'
,
optionId
:
'confId'
,
optionLabel
:
'confName'
,
isClear
:
true
,
noFilter
:
true
,
optionList
:
[
{
confId
:
0
,
confName
:
'已结算'
},
{
confId
:
1
,
confName
:
'待结算'
},
{
confId
:
2
,
confName
:
'已失效'
}
]
}
],
searchFormTable
:
{},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
date_format
,
tableParams
:
{
listName
:
'list'
,
getListApi
:
this
.
$apis
.
orderApi
.
getEDJOrderList
,
...
...
@@ -127,13 +131,7 @@ export default {
}
}
},
// watch: {
// date(n) {
// let [callDateStart, callDateEnd] = n
// this.searchObj.callDateStart = callDateStart || ''
// this.searchObj.callDateEnd = callDateEnd || ''
// }
// },
mounted
()
{},
methods
:
{
beforeSearchFn
()
{
...
...
@@ -149,18 +147,21 @@ export default {
resolve
()
})
},
setTableFinishFun
()
{
//接收到的数据为空
if
(
!
this
.
$refs
.
table
.
data
.
length
)
{
this
.
$refs
.
table
.
setTableHeightFun
()
}
},
//
setTableFinishFun() {
//
//接收到的数据为空
//
if (!this.$refs.table.data.length) {
//
this.$refs.table.setTableHeightFun()
//
}
//
},
handleReset
()
{
this
.
flag
=
false
this
.
searchForm
=
{}
this
.
$nextTick
(()
=>
{
this
.
flag
=
true
})
this
.
searchForm
=
{
orderId
:
''
,
orderStatus
:
''
,
daterange
:
''
,
phone
:
''
}
this
.
handleSearch
()
},
handleSearch
()
{
this
.
$refs
.
table
.
refreshTable
()
...
...
@@ -169,21 +170,4 @@ export default {
}
</
script
>
<
style
lang=
"scss"
scoped
>
.el-form-item
{
margin-bottom
:
15px
;
}
.el-range-editor.is-active
,
.el-range-editor.is-active
:hover
{
border-color
:
#5850ff
;
width
:
215px
;
}
.el-range-editor--small.el-input__inner
{
width
:
215px
;
}
/
deep
/
.contain
.el-input--small
.el-input__inner
{
width
:
215px
;
}
.equity-wrap
.contain
{
margin-top
:
20px
;
}
</
style
>
src/views/financial/index.vue
View file @
022ccfd
...
...
@@ -8,56 +8,16 @@
<div
class=
"balanceWrap"
>
<span>
账户余额
</span>
<div>
<span>
{{
price
}}
</span>
<span>
{{
price
}}
</span>
<span
class=
"yuan"
>
元
</span>
</div>
</div>
<el-button
class=
"refreshBtn"
v-if=
"loading"
:loading=
"loading"
></el-button>
<el-button
class=
"special-btn"
@
click=
"getHwAccount(1)"
v-else
>
刷新余额
</el-button>
<!--
<div
class=
"statusBtnWrap"
>
<div>
刷新状态
</div>
<el-button
icon=
"el-icon-refresh"
class=
"refreshBtn"
></el-button>
</div>
-->
</div>
<el-form
:inline=
"true"
style=
"width: 100%"
:model=
"searchForm"
label-width=
"70px"
label-position=
"right"
>
<el-row
style=
"display: flex; align-items: center"
>
<el-form-item
size=
"small"
label=
"品牌名称"
>
<el-select
size=
"small"
v-model=
"searchForm.brandName"
placeholder=
"请选择"
>
<el-option
v-for=
"item in brandList"
:key=
"item.brandId"
:label=
"item.brandName"
:value=
"item.brandName"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"商品名称"
>
<el-input
v-model=
"searchForm.productName"
placeholder=
"请输入"
size=
"small"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"门店名称"
>
<el-input
v-model=
"searchForm.merchantName"
placeholder=
"请输入"
size=
"small"
clearable
></el-input>
</el-form-item>
</el-row>
<el-row>
<el-form-item
size=
"small"
label=
"商品形态"
>
<el-select
size=
"small"
v-model=
"searchForm.appereance"
placeholder=
"请选择"
>
<el-option
v-for=
"item in appereanceList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item
size=
"small"
label=
"订单状态"
>
<el-select
size=
"small"
v-model=
"searchForm.orderStatus"
placeholder=
"请选择"
>
<el-option
v-for=
"item in statusList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item
size=
"small"
label=
"下单时间"
>
<el-date-picker
size=
"small"
v-model=
"searchForm.daterange"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions ||
{}">
</el-date-picker>
</el-form-item>
<el-form-item
size=
"small"
class=
"fr-mr0"
>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<GLButton
fn=
"财务管理导出"
:size=
"size"
type=
"primary"
@
click=
"exportExcel"
>
导出
</GLButton>
</el-form-item>
</el-row>
</el-form>
<GLTable
v-if=
"flag"
ref=
"table"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLCombiForm
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLTable
v-if=
"flag"
ref=
"table"
:noDataImg=
"url"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<template
slot=
"custom"
>
<div
class=
"table-custom exportBtn"
></div>
</
template
>
...
...
@@ -65,16 +25,15 @@
</div>
</div>
</template>
<
script
type=
'text/ecmascript-6'
>
import
url
from
"@/assets/empty.png"
<
script
type=
"text/ecmascript-6"
>
import
url
from
'@/assets/empty.png'
import
{
orderMixin
,
searchMixin
}
from
'@/mixins'
export
default
{
name
:
''
,
mixins
:
[
orderMixin
,
searchMixin
],
data
()
{
return
{
url
:
url
,
url
:
url
,
loading
:
false
,
size
:
'small'
,
pickerOptions
:
{
...
...
@@ -85,7 +44,93 @@ export default {
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
flag
:
true
,
price
:
0
,
searchForm
:
{},
searchForm
:
{
brandName
:
''
,
productName
:
''
,
merchantName
:
''
,
appereance
:
''
,
orderStatus
:
''
,
daterange
:
''
},
searchFormData
:
[
{
label
:
'品牌名称'
,
name
:
'brandName'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'brandName'
,
optionLabel
:
'brandName'
,
isClear
:
true
},
{
label
:
'商品名称'
,
name
:
'productName'
,
type
:
'input'
,
isClear
:
true
},
{
label
:
'门店名称'
,
name
:
'merchantName'
,
type
:
'input'
,
isClear
:
true
},
{
label
:
'商品形态'
,
name
:
'appereance'
,
type
:
'select'
,
optionList
:
[
{
label
:
'卡券'
,
value
:
1
},
{
label
:
'直充'
,
value
:
2
}
],
optionId
:
'value'
,
optionLabel
:
'label'
,
isClear
:
true
},
{
label
:
'订单状态'
,
name
:
'orderStatus'
,
type
:
'select'
,
optionList
:
[
{
label
:
'待收货'
,
value
:
[
1
,
2
]
},
{
label
:
'已完成'
,
value
:
[
3
]
},
{
label
:
'已退款'
,
value
:
[
6
]
},
{
label
:
'售后中'
,
value
:
[
4
]
}
],
optionId
:
'value'
,
optionLabel
:
'label'
,
isClear
:
true
},
{
label
:
'下单时间'
,
name
:
'daterange'
,
type
:
'datePicker'
,
valueFormat
:
'yyyy-MM-dd'
,
isClear
:
true
,
customPickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
}
}
}
],
searchFormTable
:
{},
tableParams
:
{
listName
:
'list'
,
...
...
@@ -98,7 +143,6 @@ export default {
sums
[
index
]
=
'合计'
return
}
const
values
=
data
.
map
(
item
=>
{
if
(
column
.
property
==
'costPrices'
||
column
.
property
==
'orderPrices'
||
column
.
property
==
'discount'
)
{
return
Number
(
item
[
column
.
property
])
...
...
@@ -124,44 +168,54 @@ export default {
tableColumns
:
[
{
label
:
'订单编号'
,
prop
:
'orderCode'
prop
:
'orderCode'
,
width
:
'220'
},
{
label
:
'品牌名称'
,
width
:
150
,
prop
:
'brandName'
},
{
label
:
'商品形态'
,
width
:
'100'
,
prop
:
'appearanceDesc'
},
{
label
:
'商品名称'
,
width
:
200
,
formatter
(
cell
)
{
return
cell
.
appearance
==
2
?
`
${
cell
.
productName
}${
cell
.
denomination
}
`
:
cell
.
productName
}
},
{
label
:
'订单成本金额'
,
prop
:
'costPrices'
prop
:
'costPrices'
,
width
:
150
,
align
:
'right'
},
{
label
:
'订单支付金额'
,
prop
:
'orderPrices'
prop
:
'orderPrices'
,
width
:
150
,
align
:
'right'
},
{
label
:
'销售差额'
,
prop
:
'discount'
prop
:
'discount'
,
width
:
150
,
align
:
'right'
},
{
label
:
'下单渠道'
,
width
:
'250'
,
formatter
(
cell
)
{
return
`
${
cell
.
merchantName
||
''
}${
cell
.
merchantName
?
'-'
:
''
}${
cell
.
channelName
}
`
}
},
{
label
:
'订单状态'
,
width
:
120
,
formatter
:
cell
=>
{
return
cell
.
appearance
==
1
?
this
.
statusEnum
[
cell
.
orderStatus
]
:
this
.
qb_statusEnum
[
cell
.
orderStatus
]
}
...
...
@@ -169,7 +223,7 @@ export default {
{
label
:
'下单时间'
,
prop
:
'orderDate'
,
width
:
95
,
width
:
180
,
formatter
(
cell
)
{
return
cell
.
orderDate
?
new
Date
(
cell
.
orderDate
).
format
(
'yyyy-MM-dd hh:mm:ss'
)
:
'- -'
}
...
...
@@ -178,6 +232,12 @@ export default {
}
}
},
created
()
{
this
.
$apis
.
orderApi
.
getAllBrandList
({}).
then
(({
data
})
=>
{
const
item
=
this
.
searchFormData
.
find
(
item
=>
item
.
name
===
'brandName'
)
item
.
optionList
=
data
})
},
mounted
()
{
this
.
getHwAccount
()
},
...
...
@@ -254,23 +314,21 @@ export default {
// </style>
// <style src="@a/css/tao.css"></style>
</
script
>
<
style
lang=
"scss"
scoped
>
.el-form-item
{
margin-bottom
:
15px
;
}
.el-range-editor.is-active
,
.el-range-editor.is-active
:hover
{
border-color
:
#5850ff
;
width
:
215px
;
}
.el-range-editor--small.el-input__inner
{
width
:
215px
;
}
/
deep
/
.contain
.el-input--small
.el-input__inner
{
width
:
215px
;
}
//
.el-form-item
{
//
margin-bottom
:
15px
;
//
}
//
.el-range-editor.is-active
,
//
.el-range-editor.is-active
:hover
{
//
border-color
:
#5850ff
;
//
width
:
215px
;
//
}
//
.el-range-editor--small.el-input__inner
{
//
width
:
215px
;
//
}
/
/
/
deep
/
.contain
.el-input--small
.el-input__inner
{
//
width
:
215px
;
//
}
.equity-wrap
.contain
{
.topContent
{
display
:
flex
;
...
...
@@ -282,7 +340,6 @@ export default {
width
:
52px
;
height
:
52px
;
}
.balanceWrap
{
margin-left
:
10px
;
>
span
{
...
...
@@ -295,14 +352,12 @@ export default {
>
div
{
height
:
30px
;
font-size
:
22px
;
font-weight
:
500
;
color
:
#333333
;
line-height
:
30px
;
.yuan
{
height
:
20px
;
font-size
:
14px
;
font-weight
:
500
;
color
:
#333333
;
line-height
:
20px
;
...
...
@@ -329,7 +384,6 @@ export default {
//
>
div
{
//
height
:
20px
;
//
font-size
:
14px
;
//
font-weight
:
400
;
//
color
:
#000000
;
//
line-height
:
20px
;
...
...
@@ -337,4 +391,4 @@ export default {
//
}
}
}
</
style
>
</
style
>
\ No newline at end of file
src/views/gas/index.vue
View file @
022ccfd
<
template
>
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap contain"
>
<el-form
:inline=
"true"
style=
"width: 100%"
:model=
"searchForm"
label-width=
"90px"
label-position=
"right"
>
<el-row
style=
"display: flex; align-items: center"
>
<el-form-item
size=
"small"
label=
"加油日期"
>
<el-date-picker
size=
"small"
v-model=
"searchForm.daterange"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions ||
{}">
</el-date-picker>
</el-form-item>
<el-form-item
size=
"small"
label=
"加油供应商"
>
<el-select
size=
"small"
:value=
"'团油'"
placeholder=
"请选择"
>
<!--
<el-option
v-for=
"item in appereanceList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
-->
<el-option
label=
"团油"
value=
"团油"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"加油订单号"
>
<el-input
v-model=
"searchForm.orderId"
placeholder=
"请输入"
size=
"small"
></el-input>
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"加油用户"
>
<el-input
v-model=
"searchForm.phone"
placeholder=
"请输入"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
label=
"订单状态"
>
<el-select
v-model=
"searchForm.orderStatus"
placeholder=
"请选择"
size=
"small"
>
<el-option
v-for=
"item in statusList"
:key=
"item.id"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item
size=
"small"
class=
"fr-mr0"
>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
</el-form-item>
</el-row>
</el-form>
<GLTable
v-if=
"flag"
ref=
"table"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
></GLTable>
<GLCombiForm
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLTable
v-if=
"flag"
ref=
"table"
:noDataImg=
"url"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
></GLTable>
</div>
</div>
</
template
>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
"text/ecmascript-6"
>
function
getExplorer
()
{
var
ua
=
navigator
.
userAgent
.
toLocaleLowerCase
()
var
browserType
=
null
...
...
@@ -62,7 +31,6 @@ function getExplorer() {
}
return
browserType
}
function
exportFn
(
url
)
{
let
browserType
=
getExplorer
()
if
(
browserType
==
'QQ'
)
{
...
...
@@ -92,7 +60,77 @@ export default {
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
flag
:
true
,
searchForm
:
{},
searchForm
:
{
orderId
:
''
,
phone
:
''
,
daterange
:
''
,
orderStatus
:
''
},
searchFormData
:
[
{
label
:
'加油日期'
,
name
:
'daterange'
,
type
:
'datePicker'
,
valueFormat
:
'yyyy-MM-dd'
,
isClear
:
true
,
customPickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
}
}
},
{
label
:
'加油供应商'
,
name
:
'massOil'
,
type
:
'select'
,
optionList
:
[
{
label
:
'团油'
}
],
optionId
:
'label'
,
optionLabel
:
'label'
,
isClear
:
true
},
{
label
:
'订单号'
,
name
:
'orderId'
,
type
:
'input'
,
isClear
:
true
},
{
label
:
'用户信息'
,
name
:
'phone'
,
type
:
'input'
,
isClear
:
true
},
{
label
:
'订单状态'
,
name
:
'orderStatus'
,
type
:
'select'
,
optionList
:
[
{
label
:
'已支付'
,
value
:
1
},
{
label
:
'退款申请中'
,
value
:
4
},
{
label
:
'已退款'
,
value
:
5
},
{
label
:
'退款失败'
,
value
:
6
}
],
optionId
:
'value'
,
optionLabel
:
'label'
,
isClear
:
true
}
],
searchFormTable
:
{},
statusList
:
[
{
...
...
@@ -123,11 +161,10 @@ export default {
{
label
:
'加油时间'
,
prop
:
'orderTime'
,
width
:
'95'
width
:
180
,
},
{
label
:
'供应商'
,
formatter
:
cell
=>
{
return
'团油'
}
...
...
@@ -139,28 +176,30 @@ export default {
},
{
label
:
'油号'
,
prop
:
'oilName'
},
{
label
:
'加油升数(L)'
,
prop
:
'litre'
,
width
:
'1
0
0'
width
:
'1
5
0'
},
{
label
:
'实付金额'
,
prop
:
'amountPay'
,
width
:
'100'
width
:
'100'
,
align
:
'right'
},
{
label
:
'订单总额'
,
prop
:
'amountGun'
,
width
:
'100'
width
:
'100'
,
align
:
'right'
},
{
label
:
'优惠金额'
,
prop
:
'amountDiscounts'
,
width
:
'100'
width
:
'100'
,
align
:
'right'
},
{
label
:
'订单状态'
,
...
...
@@ -175,7 +214,7 @@ export default {
{
label
:
'供应商订单号'
,
prop
:
'orderId'
,
width
:
'2
2
0'
width
:
'2
3
0'
}
]
}
...
...
@@ -232,23 +271,22 @@ export default {
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.el-form-item
{
margin-bottom
:
15px
;
}
.el-range-editor.is-active
,
.el-range-editor.is-active
:hover
{
border-color
:
#5850ff
;
width
:
215px
;
}
.el-range-editor--small.el-input__inner
{
width
:
215px
;
}
/
deep
/
.contain
.el-input--small
.el-input__inner
{
width
:
215px
;
}
//
.el-form-item
{
//
margin-bottom
:
15px
;
//
}
//
.el-range-editor.is-active
,
//
.el-range-editor.is-active
:hover
{
//
border-color
:
#5850ff
;
//
width
:
215px
;
//
}
//
.el-range-editor--small.el-input__inner
{
//
width
:
215px
;
//
}
/
/
/
deep
/
.contain
.el-input--small
.el-input__inner
{
//
width
:
215px
;
//
}
.equity-wrap
.contain
{
margin-top
:
20px
;
}
</
style
>
</
style
>
\ No newline at end of file
src/views/goods/addGoods.vue
View file @
022ccfd
...
...
@@ -102,19 +102,12 @@
</div>
</el-form>
</div>
<div
class=
"footer-panel"
:style=
"{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<!-- <el-button type="primary" @click="onSubmit('save')" size="small">创建</el-button> -->
<el-button
class=
"custtom"
@
click=
"onSubmit('save')"
type=
"primary"
size=
"small"
>
保存
</el-button>
<div
class=
"footer-panel"
>
<el-button
plain
class=
"btn-three"
@
click=
"$router.go(-1)"
>
取消
</el-button>
<div
class=
"wrap_driver"
>
<el-button
type=
"primary"
@
click=
"onSubmit"
size=
"small
"
>
提交
</el-button>
<el-button
plain
type=
"primary"
@
click=
"onSubmit
"
>
提交
</el-button>
</div>
<el-button
@
click=
"
$router.go(-1)"
size=
"small"
>
取消
</el-button>
<el-button
@
click=
"
onSubmit('save')"
type=
"primary"
>
保存
</el-button>
</div>
</div>
</template>
...
...
@@ -240,18 +233,18 @@ export default {
ruleForm
:
{
supplier
:
'HW'
,
appearance
:
1
,
costPrice
:
''
,
lineationPrice
:
''
,
noMemberPrice
:
''
,
salesPrice
:
''
,
brandName
:
''
,
productName
:
''
,
productId
:
''
,
goodsImage
:
''
,
denomination
:
0
,
warrantyPeriod
:
0
,
buysNotes
:
''
,
useNotes
:
''
costPrice
:
''
,
lineationPrice
:
''
,
noMemberPrice
:
''
,
salesPrice
:
''
,
brandName
:
''
,
productName
:
''
,
productId
:
''
,
goodsImage
:
''
,
denomination
:
0
,
warrantyPeriod
:
0
,
buysNotes
:
''
,
useNotes
:
''
},
stock
:
''
,
brandNameList
:
[],
...
...
@@ -432,8 +425,7 @@ export default {
this
.
$confirm
(
_res
.
message
,
'提示'
,
{
confirmButtonText
:
'保存'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
center
:
true
type
:
'warning'
}).
then
(()
=>
{
this
.
createGoods
()
})
...
...
@@ -441,8 +433,7 @@ export default {
this
.
$confirm
(
_res
.
message
,
'提示'
,
{
confirmButtonText
:
'提交'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
center
:
true
type
:
'warning'
}).
then
(()
=>
{
this
.
createGoods
()
})
...
...
@@ -486,22 +477,10 @@ export default {
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
position
:
fixed
;
width
:
100%
;
bottom
:
0px
;
height
:
64px
;
background
:
#ffffff
;
z-index
:
999
;
box-shadow
:
0px
-1px
1px
0px
rgba
(
88
,
80
,
255
,
0.1
);
.custtom
{
background
:
#ffffff
;
color
:
#5850ff
;
}
margin
:
16px
0
;
.wrap_driver
{
margin
:
0
20px
;
.el-button
+
.el-button
{
margin-right
:
40px
;
}
}
}
.uploader-del-icon
{
...
...
src/views/goods/index.vue
View file @
022ccfd
...
...
@@ -3,40 +3,6 @@
<GLButton
fn=
"新增商品"
size=
"small"
class=
"addGood"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"jump"
>
新增商品
</GLButton>
<div
class=
"find_wrap"
>
<GLCombiForm
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<!--
<el-form
:inline=
"true"
style=
"width: 100%"
:model=
"searchForm"
label-width=
"85px"
label-position=
"right"
>
<el-row
style=
"display: flex; align-items: center; margin-bottom: 2px"
>
<el-form-item
size=
"small"
label=
"品牌名称"
>
<el-select
clearable
size=
"small"
v-model=
"searchForm.brandName"
filterable
placeholder=
"请选择"
>
<el-option
v-for=
"item in goodsBrandList"
:key=
"item.id"
:label=
"item.brandName"
:value=
"item.brandName"
></el-option>
</el-select>
</el-form-item>
<el-form-item
size=
"small"
label=
"商品名称"
>
<el-input
v-model=
"searchForm.productName"
placeholder=
"请输入"
size=
"small"
clearable
></el-input>
</el-form-item>
<el-form-item
size=
"small"
label=
"提供方"
style=
"margin-left: -10px"
>
<el-select
clearable
size=
"small"
v-model=
"searchForm.supplier"
>
<el-option
v-for=
"item in supplierList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-form-item>
</el-row>
<el-row>
<el-form-item
size=
"small"
label=
"商品编码"
>
<el-input
v-model=
"searchForm.productId"
placeholder=
"请输入"
size=
"small"
clearable
></el-input>
</el-form-item>
<el-form-item
size=
"small"
label=
"商品状态"
>
<el-select
clearable
size=
"small"
v-model=
"searchForm.status"
>
<el-option
v-for=
"item in statusList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item
size=
"small"
label=
"商品ID"
style=
"margin-left: -10px"
>
<el-input
v-model=
"searchForm.id"
placeholder=
"请输入"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
size=
"small"
class=
"fr-mr0"
>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-row>
</el-form>
-->
<div
class=
"pannel tableTopButton"
>
<el-button
size=
"small"
@
click=
"toggleAll"
>
全选
</el-button>
<GLButton
fn=
"上架商品"
size=
"small"
type=
"primary"
@
click=
"batchOperation(1)"
>
上架
</GLButton>
...
...
@@ -44,7 +10,7 @@
<GLButton
fn=
"删除商品"
size=
"small"
type=
"primary"
@
click=
"batchOperation(-1)"
>
删除
</GLButton>
</div>
<div
class=
"table_wrap"
>
<GLTable
ref=
"table"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
>
<GLTable
ref=
"table"
:
pageConf=
"pageConf"
:
noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
>
<div
slot=
"table-btns"
slot-scope=
"scope"
>
<GLButton
fn=
"编辑商品"
type=
"text"
@
click=
"jump(scope.scope)"
>
编辑
</GLButton>
<GLButton
fn=
"复制商品"
type=
"text"
@
click=
"copy(scope.scope)"
>
复制
</GLButton>
...
...
@@ -52,24 +18,16 @@
</div>
</GLTable>
</div>
<!--
<GLTable
v-if=
"flag"
ref=
"table"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:pageConf=
"pageConf"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<GLButton
fn=
"编辑商品"
type=
"text"
@
click=
"jump(scope.scope)"
>
编辑
</GLButton>
<GLButton
fn=
"复制商品"
type=
"text"
@
click=
"copy(scope.scope)"
>
复制
</GLButton>
<el-button
type=
"text"
:disabled=
"!scope.scope.groupStatus || scope.scope.status != 1"
@
click=
"toCreateLine(scope.scope)"
>
生成商品短链
</el-button>
</span>
</GLTable>
-->
</div>
<!-- 推广弹窗 -->
<el-dialog
title=
"商品短链"
:visible
.
sync=
"isVisible"
:before-close=
"handleClose"
:close-on-click-modal=
"false"
width=
"576px"
class=
"addCardsDialog"
>
<GLDialog
mode=
"mid"
title=
"商品短链"
:visible
.
sync=
"isVisible"
:before-close=
"handleClose"
:close-on-click-modal=
"false"
>
<div
class=
"con-wrap flex_cc"
>
<div
class=
"link flex_cc"
>
{{
shortLink
}}
</div>
</div>
<div
slot=
"footer"
class=
"flex_cc"
>
<el-button
size=
"mini"
@
click=
"handleClose"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"copyLink"
size=
"mini"
>
复制
</el-button>
<div
slot=
"footer"
>
<el-button
@
click=
"handleClose"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"copyLink"
>
复制
</el-button>
</div>
</
el-d
ialog>
</
GLD
ialog>
</div>
</
template
>
...
...
@@ -190,8 +148,8 @@ export default {
getListApi
:
this
.
$apis
.
orderApi
.
getGoodsList
,
tableParams
:
{
listName
:
'list'
,
//
mutiSelectName: 'goodsIndex',
//
mutiSelectUniqueKey: 'id',
mutiSelectName
:
'goodsIndex'
,
mutiSelectUniqueKey
:
'id'
,
tableOption
:
false
,
tableColumns
:
[
{
...
...
@@ -210,7 +168,6 @@ export default {
{
label
:
'会员价(元)'
,
width
:
150
,
align
:
'right'
,
prop
:
'salesPrice'
},
{
...
...
@@ -218,7 +175,7 @@ export default {
sortable
:
true
,
label
:
'销量'
,
width
:
1
5
0
width
:
1
1
0
// renderHeader: h => {
// return h('div', { class: 'table-header' }, [
// h('span', '销量'),
...
...
@@ -230,7 +187,7 @@ export default {
},
{
label
:
'库存'
,
width
:
20
0
,
width
:
15
0
,
sortable
:
true
,
formatter
:
cell
=>
{
return
cell
.
stock
==
-
1
?
'无限制'
:
cell
.
stock
...
...
@@ -296,7 +253,7 @@ export default {
let
para
=
{
path
:
row
.
appearance
==
2
?
CHARGE_PATH
:
MINI_PATH
,
query
,
appId
:
ENV
.
channel
==
2
?
'wxfe82b8d65d07808f'
:
'wxe10067a63c1856ac'
,
appId
:
ENV
.
environment
==
'beta'
?
'wx9f91c1ec493eb425'
:
ENV
.
channel
==
2
?
'wxfe82b8d65d07808f'
:
'wxe10067a63c1856ac'
,
envVersion
:
ENV
.
envVersion
}
this
.
$apis
.
orderApi
.
createShortLink
(
para
).
then
(
res
=>
{
...
...
@@ -319,7 +276,6 @@ export default {
// if (window.$config.axios.environment) {
// target = ['权益卡管理平台', '运营平台', 'SCRM权益平台', '商品管理', '*商品详情']
// }
console
.
log
(
copy
,
'copy'
)
let
query
=
{}
if
(
id
)
query
.
id
=
id
if
(
status
==
0
)
{
...
...
@@ -330,7 +286,6 @@ export default {
query
.
edit
=
true
query
.
$title
=
encodeURI
(
'编辑商品'
)
}
console
.
log
(
query
.
edit
,
'edit'
)
this
.
$router
.
push
({
path
:
'/goods/addGoods'
,
query
})
},
copy
({
id
})
{
...
...
@@ -377,6 +332,9 @@ export default {
handleSearch
()
{
this
.
flag
=
false
this
.
$refs
.
table
.
refreshTable
()
this
.
$nextTick
(()
=>
{
this
.
flag
=
true
})
},
// ['待上架', '上架', '下架'] //
batchOperation
(
status
)
{
...
...
@@ -407,7 +365,7 @@ export default {
this
.
$confirm
(
content
[
status
],
'提示'
,
{
confirmButtonText
:
'是'
,
cancelButtonText
:
'否'
,
type
:
'warning'
,
type
:
'warning'
})
.
then
(()
=>
{
let
target
=
'deleteGoods'
...
...
@@ -454,11 +412,4 @@ export default {
align-items
:
center
;
justify-content
:
center
;
}
/
deep
/
.contain
.el-input--small
.el-input__inner
{
width
:
215px
;
}
.row-btns
{
margin-top
:
5px
;
margin-bottom
:
10px
;
}
</
style
>
\ No newline at end of file
src/views/list/index.vue
View file @
022ccfd
...
...
@@ -22,7 +22,7 @@
</GLTable>
</div>
</div>
<div
class=
"tableTitle"
>
商品权益
</div>
<div
class=
"tableTitle
noneOperation
"
>
商品权益
</div>
<div
class=
"equity-wrap secondBox"
>
<div
class=
"equity-wrap contain"
>
<div
class=
"tagsCtn"
>
...
...
@@ -41,7 +41,7 @@
<span
style=
"margin-left: 8px; margin-top: 18px"
>
添加分类
</span>
</el-button>
</div>
<GLButton
fn
=
'添加门店权益'
type=
"primary"
size=
"small"
@
click=
"addEquity(2)"
style=
"margin-top: 20
px"
>
<GLButton
fn
=
"添加门店权益"
type=
"primary"
size=
"small"
@
click=
"addEquity(2)"
style=
"margin-top: 16
px"
>
<i
class=
"el-icon-plus"
></i>
<span
style=
"margin-left: 8px"
>
添加门店权益
</span>
</GLButton>
...
...
@@ -55,10 +55,11 @@
<img
class=
"equity-icon"
:src=
"scope.scope.equityIcon"
/>
</div>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<GLButton
fn=
"商品权益编辑"
type=
"text"
@
click=
"editEquity(scope.scope, 2)"
>
编辑
</GLButton>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope"
:buttonNum=
"3"
></GLTableButton>
<!-- <GLButton fn="商品权益编辑" type="text" @click="editEquity(scope.scope, 2)">编辑</GLButton>
<GLButton fn="商品权益上/下架" type="text" @click="updateShelves(scope.scope, 'goods')">{{ scope.scope.status == 0 ? '上架' : '下架' }}</GLButton>
<el-button type="text" @click="setTop(scope.scope.id, 'goods')">置顶</el-button>
<el-button
type=
"text"
@
click=
"deletEquity(scope.scope.id)"
:disabled=
"scope.scope.status == 0 ? false : true"
>
删除
</el-button>
<el-button type="text" @click="deletEquity(scope.scope.id)" :disabled="scope.scope.status == 0 ? false : true">删除</el-button>
-->
</span>
</GLTable>
</div>
...
...
@@ -83,7 +84,62 @@ export default {
showDialog
:
false
,
isEdit
:
false
,
dialogType
:
1
,
editData
:
{}
editData
:
{},
buttonList
:
[
{
type
:
'GLButton'
,
name
:
row
=>
{
return
'编辑'
},
attrs
:
{
type
:
'text'
,
fn
:
'商品权益编辑'
},
listeners
:
{
click
:
row
=>
this
.
editEquity
(
row
.
scope
,
2
)
}
},
{
type
:
'GLButton'
,
name
:
row
=>
{
return
row
.
scope
.
status
==
0
?
'上架'
:
'下架'
},
attrs
:
{
type
:
'text'
,
fn
:
'商品权益上/下架'
},
listeners
:
{
click
:
row
=>
this
.
updateShelves
(
row
.
scope
,
'goods'
)
}
},
{
type
:
'el-button'
,
name
:
row
=>
{
return
'置顶'
},
attrs
:
{
type
:
'text'
},
listeners
:
{
click
:
row
=>
this
.
setTop
(
row
.
scope
.
id
,
'goods'
)
}
},
{
type
:
'el-button'
,
name
:
row
=>
{
return
'删除'
},
attrs
:
{
type
:
'text'
,
disabled
:
row
=>
{
return
row
.
scope
.
status
==
0
?
false
:
true
},
},
listeners
:
{
click
:
row
=>
this
.
deletEquity
(
row
.
scope
.
id
)
}
}
]
}
},
mounted
()
{
...
...
@@ -165,10 +221,7 @@ export default {
}
if
(
status
==
0
)
{
this
.
$confirm
(
'是否下架权益'
,
'提示'
,
{
confirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
center
:
true
}).
then
(()
=>
{
callBack
()
})
...
...
@@ -256,16 +309,17 @@ export default {
width
:
40px
;
}
.noneOperation
{
margin-top
:
20
px
;
margin-top
:
16
px
;
}
.fixedHeight
{
height
:
45px
;
}
.secondBox
{
margin-top
:
20
px
;
margin-top
:
16
px
;
}
.tableTitle
{
margin
:
20px
40px
;
/* margin: 20px 40px; */
margin-bottom
:
16px
;
}
.el-table__fixed-right-patch
{
position
:
absolute
;
...
...
src/views/order/detail.vue
View file @
022ccfd
...
...
@@ -2,7 +2,7 @@
<div
class=
"layout"
>
<div
class=
"box topBox"
>
<!--
<back
/>
-->
<
el-button
type=
"primary"
class=
"backBtn"
size=
"small"
@
click=
"$router.push('/order/index')"
>
返回
</el-button
>
<
!--
<el-button
type=
"primary"
class=
"backBtn"
size=
"small"
@
click=
"$router.push('/order/index')"
>
返回
</el-button>
--
>
<div
class=
"grid"
>
<div
class=
"grid-item"
>
订单编号:
{{
detailInfo
.
orderCode
}}
</div>
<div
class=
"grid-item"
>
下单时间:
{{
detailInfo
.
time
}}
</div>
...
...
@@ -266,8 +266,6 @@ export default {
}
.layout
{
background-color
:
#fff
;
margin
:
0
20px
0
40px
;
width
:
auto
;
.topBox
{
padding-top
:
32px
!important
;
}
...
...
src/views/order/index.vue
View file @
022ccfd
<
template
>
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap contain"
>
<el-form
:inline=
"true"
style=
"width: 100%"
:model=
"searchForm"
label-width=
"70px"
label-position=
"right"
>
<el-row
style=
"display: flex; align-items: center"
>
<el-form-item
size=
"small"
label=
"订单编号"
>
<el-input
size=
"small"
v-model=
"searchForm.orderCode"
placeholder=
"请输入"
></el-input>
</el-form-item>
<el-form-item
size=
"small"
label=
"品牌名称"
>
<el-select
size=
"small"
v-model=
"searchForm.brandName"
filterable
placeholder=
"请选择"
>
<el-option
v-for=
"item in brandList"
:key=
"item.brandId"
:label=
"item.brandName"
:value=
"item.brandName"
></el-option>
</el-select>
</el-form-item>
<el-form-item
size=
"small"
label=
"商品名称"
>
<el-input
v-model=
"searchForm.productName"
placeholder=
"请输入"
size=
"small"
></el-input>
</el-form-item>
</el-row>
<el-row>
<el-form-item
size=
"small"
label=
"门店名称"
>
<el-input
v-model=
"searchForm.merchantName"
placeholder=
"请输入"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
size=
"small"
label=
"用户信息"
>
<el-input
v-model=
"searchForm.userInfo"
placeholder=
"请输入"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
size=
"small"
label=
"下单时间"
>
<el-date-picker
size=
"small"
v-model=
"searchForm.daterange"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions ||
{}">
</el-date-picker>
</el-form-item>
<el-form-item
size=
"small"
class=
"fr-mr0"
>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
</el-form-item>
</el-row>
</el-form>
<GLCombiForm
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"tableTopButton"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
</div>
<div
class=
"choseRow"
>
<div
class=
"choseItem"
:class=
"
{ active: currentIndex == index }" v-for="(item, index) in choseList" :key="index" @click="tabClick(index)">
{{
item
}}
</div>
</div>
<!-- :noDataImg="url" -->
<GLTable
v-if=
"flag"
:noDataImg=
"url"
ref=
"table"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<span
slot=
"goodsMsg"
slot-scope=
"scope"
>
<div>
{{
scope
.
scope
.
brandName
}}
</div>
...
...
@@ -63,8 +35,7 @@
</div>
</div>
</
template
>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
"text/ecmascript-6"
>
import
url
from
'@/assets/empty.png'
import
{
orderMixin
,
searchMixin
}
from
'@/mixins'
export
default
{
...
...
@@ -84,7 +55,61 @@ export default {
tabIndex
:
''
,
flag
:
true
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
searchForm
:
{},
searchForm
:
{
orderCode
:
''
,
brandName
:
''
,
productName
:
''
,
merchantName
:
''
,
userInfo
:
''
,
daterange
:
''
},
searchFormData
:
[
{
label
:
'订单编号'
,
name
:
'orderCode'
,
type
:
'input'
,
isClear
:
true
},
{
label
:
'品牌名称'
,
name
:
'brandName'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'brandName'
,
optionLabel
:
'brandName'
,
isClear
:
true
},
{
label
:
'商品名称'
,
name
:
'productName'
,
type
:
'input'
,
isClear
:
true
},
{
label
:
'门店名称'
,
name
:
'merchantName'
,
type
:
'input'
,
isClear
:
true
},
{
label
:
'用户信息'
,
name
:
'userInfo'
,
type
:
'input'
,
isClear
:
true
},
{
label
:
'下单时间'
,
name
:
'daterange'
,
type
:
'datePicker'
,
valueFormat
:
'yyyy-MM-dd'
,
isClear
:
true
,
customPickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
}
}
}
],
searchFormTable
:
{},
tableParams
:
{
listName
:
'list'
,
...
...
@@ -93,14 +118,13 @@ export default {
tableColumns
:
[
{
label
:
'商品信息'
,
width
:
'100'
,
align
:
'left'
,
width
:
'200'
,
addHtml
:
'goodsMsg'
},
{
label
:
'充值账号'
,
prop
:
'rechargeNumber'
,
width
:
'200'
,
width
:
'200'
},
{
label
:
'订单门店'
,
...
...
@@ -113,7 +137,7 @@ export default {
{
label
:
'价格/数量'
,
addHtml
:
'priceAmount'
,
width
:
'1
0
0'
width
:
'1
5
0'
// formatter(cell) {
// return `${cell.salePrices}元
// ${cell.goodsQuality}张`
...
...
@@ -121,12 +145,13 @@ export default {
},
{
label
:
'实收金额'
,
prop
:
'orderPrices'
// width: '100'
prop
:
'orderPrices'
,
width
:
'110'
,
align
:
'right'
},
{
label
:
'订单状态'
,
// width: '10
0',
width
:
'11
0'
,
formatter
:
cell
=>
{
return
cell
.
appearance
==
1
?
this
.
statusEnum
[
cell
.
orderStatus
]
:
this
.
qb_statusEnum
[
cell
.
orderStatus
]
}
...
...
@@ -134,7 +159,7 @@ export default {
{
label
:
'下单时间'
,
prop
:
'validitDate'
,
width
:
'1
0
0'
,
width
:
'1
8
0'
,
// sortable: true,
formatter
(
cell
)
{
return
cell
.
orderDate
?
new
Date
(
cell
.
orderDate
).
format
(
'yyyy-MM-dd hh:mm:ss'
)
:
'- -'
...
...
@@ -149,20 +174,26 @@ export default {
// ${cell.mobile || ''}`
// }
},
{
{
label
:
'订单编号'
,
width
:
'280'
,
addHtml
:
'orderNum'
},
{
label
:
'海威订单号'
,
minWidth
:
'
10
0'
,
minWidth
:
'
22
0'
,
prop
:
'thirdOrderCode'
}
]
}
}
},
created
()
{
this
.
$apis
.
orderApi
.
getAllBrandList
({}).
then
(({
data
})
=>
{
const
item
=
this
.
searchFormData
.
find
(
item
=>
item
.
name
===
'brandName'
)
item
.
optionList
=
data
})
},
mounted
()
{},
methods
:
{
handleExport
()
{
...
...
@@ -279,11 +310,8 @@ export default {
}
// <style src="@a/css/tao.css"></style>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.equity-wrap
.contain
{
margin-top
:
20px
;
.choseRow
{
display
:
flex
;
height
:
34px
;
...
...
@@ -294,7 +322,6 @@ export default {
line-height
:
34px
;
text-align
:
center
;
font-size
:
14px
;
font-weight
:
400
;
color
:
#333333
;
}
...
...
@@ -304,23 +331,22 @@ export default {
}
}
}
.el-form-item
{
margin-bottom
:
15px
;
}
.el-range-editor.is-active
,
.el-range-editor.is-active
:hover
{
border-color
:
#5850ff
;
width
:
215px
;
}
.el-range-editor--small.el-input__inner
{
width
:
215px
;
}
/
deep
/
.contain
.el-input--small
.el-input__inner
{
width
:
215px
;
}
//
.el-form-item
{
//
margin-bottom
:
15px
;
//
}
//
.el-range-editor.is-active
,
//
.el-range-editor.is-active
:hover
{
//
border-color
:
#5850ff
;
//
width
:
215px
;
//
}
//
.el-range-editor--small.el-input__inner
{
//
width
:
215px
;
//
}
/
/
/
deep
/
.contain
.el-input--small
.el-input__inner
{
//
width
:
215px
;
//
}
//
.el-tabs__nav-wrap
:after
{
//
display
:
none
;
//
}
//
.container
{
//
width
:
1160px
;
...
...
src/views/rightsCard/cardDetail.vue
View file @
022ccfd
<
template
>
<div>
<!-- 领卡用户明细 -->
<
el-dialog
:close-on-click-modal=
"false"
title=
"领卡用户明细"
:visible
.
sync=
"isVisible"
width=
"1080px"
class=
"user-detail-dialog
"
@
close=
"handleReset()"
>
<
GLDialog
mode=
'big'
:close-on-click-modal=
"false"
bigTitle=
"领卡用户明细"
:visible
.
sync=
"isVisible
"
@
close=
"handleReset()"
>
<div
class=
"contain equity-wrap"
style=
"margin: 20px 0px 20px 0px !important"
>
<glsx-combi-form
ref=
"showSearch"
labelWidth=
"120px"
defaultWidth=
"215px"
:formObj=
"batchListSearch"
:formData=
"userDetailForm"
>
<span
slot=
"footer"
class=
"footer-btns"
>
...
...
@@ -20,7 +20,7 @@
</GLTable>
</div>
</div>
</
el-d
ialog>
</
GLD
ialog>
</div>
</
template
>
...
...
src/views/rightsCard/index.vue
View file @
022ccfd
This diff is collapsed.
Click to expand it.
vue.config.js
View file @
022ccfd
...
...
@@ -11,7 +11,7 @@ const cdn = {
js
:
[
`
${
CDN_DOMAIN
}
ajax/libs/vue/2.6.11/vue.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vue-router/3.2.0/vue-router.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/index.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vuex/3.6.2/vuex.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/echarts/5.1.2/echarts.min.js`
]
}
module
.
exports
=
{
outputDir
:
`
dist
`
,
outputDir
:
`
../dist/
${
packageName
}
`
,
publicPath
,
assetsDir
:
'static'
,
// np:'/newsso-equity/',
...
...
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