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