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
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
685 additions
and
572 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
<!--领用管理-->
<!--批次管理-->
<
template
>
<div
class=
"equity-wrap ta
p tabCtn"
style=
"margin: 20px 0 20px 0
"
>
<div
class=
"equity-wrap ta
bCtn
"
>
<div
class=
"tapItem"
>
<el-tabs
v-model=
"activeName"
type=
"card"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"批次管理"
name=
"first"
class=
"contain"
style=
"margin: 0"
id=
"batch"
>
<el-tab-pane
label=
"批次管理"
name=
"first"
class=
"contain"
id=
"batch"
>
<GLButton
fn=
"批量生成权益卡"
type=
"primary"
size=
"small"
@
click=
"dialogVisible = true"
>
批量生成权益卡
</GLButton>
<el-form
:inline=
"true"
label-width=
"auto"
label-position=
"right"
style=
"margin-top: 20px"
class=
"collectonForm"
>
<el-row
style=
"align-items: center"
class=
"select"
>
<el-form-item
label=
"添加时间"
>
<el-date-picker
v-model=
"batchDate"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
size=
"small"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"批次"
>
<el-input
v-model=
"selectBatchId"
placeholder=
"请输入批次号"
size=
"small"
maxlength=
"19"
class=
"formItem"
></el-input>
</el-form-item>
<el-form-item
label=
"门店"
>
<el-select
v-model=
"batchListSearch.merchantName"
size=
"small"
clearable
filterable
remote
reserve-keyword
placeholder=
"请输入关联门店"
:remote-method=
"remoteMethod"
:loading=
"loading"
class=
"formItem"
>
<el-option
v-for=
"(item, index) in options"
:key=
"index"
:label=
"item.merchantName"
:value=
"item.merchantName"
></el-option>
</el-select>
</el-form-item>
<el-form-item
size=
"small"
style=
"float: right; margin-right: 0px !important"
>
<el-button
plain
size=
"small"
@
click=
"selectCollectionTable('reset')"
class=
"selectBtn"
>
重置
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"selectCollectionTable('select')"
class=
"selectBtn"
>
搜索
</el-button>
</el-form-item>
</el-row>
</el-form>
<div
style=
"height:16px"
></div>
<GLCombiForm
:rowNumber=
"1"
ref=
"managerRef"
:formObj=
"batchListSearch"
:formData=
"managerForm"
@
handleOk=
"selectCollectionTable('select')"
@
handleRest=
"selectCollectionTable('reset')"
>
<div
slot=
"merchant"
>
<el-select
v-model=
"batchListSearch.merchantName"
size=
"small"
clearable
filterable
remote
reserve-keyword
placeholder=
"请输入关联门店"
:remote-method=
"remoteMethod"
:loading=
"loading"
class=
"formItem"
>
<el-option
v-for=
"(item, index) in options"
:key=
"index"
:label=
"item.merchantName"
:value=
"item.merchantName"
></el-option>
</el-select>
</div>
</GLCombiForm>
<GLTable
ref=
"batchDetailTable"
:searchForm=
"batchListSearch"
:tableParams=
"batchTableParams"
:getListApi=
"getlistMemberBatch"
:beforeSearchFn=
"changeBatchDataFormat"
:pageConf=
"batchPageConf"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<!-- 批次管理详情弹窗按钮 -->
<el-button
type=
"text"
@
click=
"batchdetails(scope.scope)"
>
详情
</el-button>
</span>
</GLTable>
<!-- 批次界面弹窗 -->
<el-dialog
title=
"权益卡信息"
:visible
.
sync=
"batchdetailsVisible"
width=
"1200px"
:before-close=
"detailClose"
class=
"batchDetailBox"
>
<!--
<div
class=
"baseinformation"
><span
class=
"dialogtitleText"
>
权益卡信息
</span></div>
-->
<el-form
:inline=
"true"
:model=
"cardsInformationForm"
class=
"demo-form-inline detailFont"
label-width=
"90px"
style=
"margin-left: 52px"
>
<el-row
style=
"margin-top: 32px"
>
<GLDialog
mode=
'big'
bigTitle=
"权益卡信息"
:visible
.
sync=
"batchdetailsVisible"
:before-close=
"detailClose"
>
<el-form
:inline=
"true"
:model=
"cardsInformationForm"
class=
"demo-form-inline detailFont"
label-width=
"90px"
>
<el-row>
<el-form-item
label=
"门店:"
class=
"detailItem"
>
{{
cardsInformationForm
.
merchantName
}}
</el-form-item>
...
...
@@ -48,7 +33,6 @@
<el-form-item
label=
"生成日期:"
class=
"detailItem"
>
{{
date_format
(
cardsInformationForm
.
createdDate
,
'detail'
)
}}
</el-form-item>
<el-form-item
label=
"批次:"
style=
"margin-left: 120px"
>
{{
cardsInformationForm
.
batchNo
}}
</el-form-item>
...
...
@@ -80,13 +64,12 @@
<GLTable
ref=
"batchdetailPopupTable"
@
hook:mounted=
"setTabelHeight"
:tableParams=
"batchdetailPopupTable"
:getListApi=
"listMemberCard"
:searchForm=
"batchPopupListSearch"
:beforeSearchFn=
"beforebatchPopupListSearch"
:pageConf=
"datailPageConf"
></GLTable>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"closebatchdetailPopupTable"
>
取 消
</el-button>
<!--
<el-button
@
click=
"batchdetailsVisible = false"
>
取 消
</el-button>
-->
<el-button
type=
"primary"
size=
"small"
@
click=
"closebatchdetailPopupTable"
>
确 定
</el-button>
<el-button
@
click=
"closebatchdetailPopupTable"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"closebatchdetailPopupTable"
>
确 定
</el-button>
</span>
</
el-d
ialog>
</
GLD
ialog>
<!-- 批量生成权益卡弹窗 -->
<
el-dialog
title=
"批量生成权益卡"
:visible
.
sync=
"dialogVisible"
width=
"712px"
:before-close=
"handleClose"
class=
"batchDialog
"
>
<
GLDialog
mode=
'mid'
title=
"批量生成权益卡"
:visible
.
sync=
"dialogVisible"
:before-close=
"handleClose
"
>
<el-form
:inline=
"true"
:model=
"generateRightCardsForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"90px"
class=
"addCardsForm"
>
<div
class=
"form"
>
<el-row>
...
...
@@ -112,45 +95,29 @@
</div>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"cancelGenerate"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"generateCards('ruleForm')"
>
确 定
</el-button>
<el-button
@
click=
"cancelGenerate"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"generateCards('ruleForm')"
>
确 定
</el-button>
</span>
</
el-d
ialog>
</
GLD
ialog>
</el-tab-pane>
<!--领用记录 -->
<el-tab-pane
label=
"领用记录"
name=
"second"
class=
"contain"
style=
"margin: 0"
id=
"collection"
>
<el-form
:inline=
"true"
label-width=
"70px"
label-position=
"right"
class=
"collectonForm"
>
<el-row
style=
"align-items: center"
>
<el-form-item
label=
"生成日期"
>
<el-date-picker
v-model=
"colletionDate"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
size=
"small"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"门店"
>
<el-select
size=
"small"
v-model=
"collectionListSearch.merchantName"
clearable
filterable
remote
reserve-keyword
placeholder=
"请输入关联门店"
:remote-method=
"remoteMethod"
:loading=
"loading"
class=
"formItem"
>
<el-option
v-for=
"(item, index) in options"
:key=
"index"
:label=
"item.merchantName"
:value=
"item.merchantName"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"设备SN"
style=
"margin-left: 30px"
>
<el-input
v-model=
"collectionListSearch.sn"
placeholder=
"请输入设备SN"
size=
"small"
class=
"formItem"
></el-input>
</el-form-item>
</el-row>
<el-row>
<el-form-item
size=
"small"
label=
"账号"
>
<el-input
v-model=
"collectionListSearch.mobile"
placeholder=
"请输入账号"
size=
"small"
class=
"formItem"
></el-input>
</el-form-item>
<el-form-item
size=
"small"
style=
"float: right; margin-right: 0px !important"
>
<el-button
class=
"selectBtn"
size=
"small"
@
click=
"collectionSelect('reset')"
>
重置
</el-button>
<el-button
class=
"selectBtn"
size=
"small"
type=
"primary"
@
click=
"collectionSelect('select')"
style=
""
>
搜索
</el-button>
<el-button
class=
"selectBtn"
type=
"primary"
size=
"small"
@
click=
"exportCollection"
>
导出
</el-button>
</el-form-item>
</el-row>
</el-form>
<el-tab-pane
label=
"领用记录"
name=
"second"
class=
"contain"
id=
"collection"
>
<GLCombiForm
ref=
"collectonRef"
:formObj=
"collectionListSearch"
:formData=
"collectForm"
@
handleOk=
"collectionSelect('select')"
@
handleRest=
"collectionSelect('reset')"
>
<div
slot=
"collectMerchant"
>
<el-select
size=
"small"
v-model=
"collectionListSearch.merchantName"
clearable
filterable
remote
reserve-keyword
placeholder=
"请输入关联门店"
:remote-method=
"remoteMethod"
:loading=
"loading"
class=
"formItem"
>
<el-option
v-for=
"(item, index) in options"
:key=
"index"
:label=
"item.merchantName"
:value=
"item.merchantName"
></el-option>
</el-select>
</div>
</GLCombiForm>
<div
class=
"pannel tableTopButton"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportCollection"
>
导出
</el-button>
</div>
<GLTable
ref=
"collectionTable"
:searchForm=
"collectionListSearch"
:tableParams=
"collectionTableParams"
:getListApi=
"listRequisitionMemberCard"
:beforeSearchFn=
"changeCollectionDataFormat"
:pageConf=
"pageConf"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
</el-tab-pane>
</el-tabs>
</div>
</div>
</
template
>
<
script
>
function
date_format
(
date
,
e
)
{
date
=
new
Date
(
date
)
...
...
@@ -194,7 +161,6 @@ export default {
baseDate
:
{
equityList
:
[]
},
// 批次弹窗列表搜索项
batchPopupListSearch
:
{
batchId
:
''
,
...
...
@@ -205,11 +171,33 @@ export default {
// 批次列表搜索项
selectBatchId
:
''
||
null
,
batchListSearch
:
{
selectBatchId
:
''
,
batchDate
:
''
,
batchNo
:
''
,
merchantName
:
''
,
startTime
:
''
,
endTime
:
''
},
managerForm
:
[
{
label
:
'添加时间'
,
name
:
'batchDate'
,
type
:
'datePicker'
,
valueFormat
:
'yyyy-MM-dd'
},
{
label
:
'批次'
,
name
:
'selectBatchId'
,
type
:
'input'
,
maxlength
:
19
},
{
label
:
'门店'
,
name
:
'merchantName'
,
type
:
'select'
,
addHtml
:
'merchant'
}
],
dialogVisible
:
false
,
activeName
:
'first'
,
//批次管理table
...
...
@@ -220,22 +208,23 @@ export default {
tableColumns
:
[
{
label
:
'批次'
,
prop
:
'batchNo'
prop
:
'batchNo'
,
width
:
'150'
},
{
label
:
'门店'
,
prop
:
'merchantName'
},
{
label
:
'生成数量'
,
prop
:
'num'
// width: 110,
prop
:
'num'
,
width
:
'120'
// tagLabel: true
},
{
label
:
'激活数量'
,
prop
:
'recipientCount'
,
width
:
'150'
,
// minWidth: '200'
formatter
:
cellValue
=>
{
if
(
cellValue
.
recipientCount
)
{
...
...
@@ -246,13 +235,12 @@ export default {
}
},
{
width
:
'
95
'
,
width
:
'
180
'
,
label
:
'生成时间'
,
prop
:
'createdDate'
,
formatter
:
cellValue
=>
{
return
this
.
date_format
(
cellValue
.
createdDate
)
}
// formatter: (cellValue) => {
// return {
// 0: '进行中',
...
...
@@ -280,7 +268,6 @@ export default {
{
label
:
'卡号'
,
prop
:
'cardNo'
// minWidth: '200'
},
{
label
:
'激活码'
,
...
...
@@ -320,8 +307,33 @@ export default {
sn
:
''
,
startTime
:
''
,
endTime
:
''
,
mobile
:
''
mobile
:
''
,
colletionDate
:
''
},
collectForm
:
[
{
label
:
'生成日期'
,
name
:
'colletionDate'
,
type
:
'datePicker'
,
valueFormat
:
'yyyy-MM-dd'
},
{
label
:
'门店'
,
name
:
'merchantName'
,
type
:
'select'
,
addHtml
:
'collectMerchant'
},
{
label
:
'设备SN'
,
name
:
'sn'
,
type
:
'input'
},
{
label
:
'账号'
,
name
:
'mobile'
,
type
:
'input'
}
],
// 领用记录表格
collectionTableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
...
...
@@ -330,11 +342,12 @@ export default {
{
label
:
'卡号'
,
prop
:
'cardNo'
,
minWidth
:
'20
0'
width
:
'16
0'
},
{
label
:
'激活码'
,
prop
:
'activationCode'
prop
:
'activationCode'
,
width
:
'160'
},
{
label
:
'设备SN'
,
...
...
@@ -343,7 +356,7 @@ export default {
{
label
:
'账号'
,
prop
:
'mobile'
,
minWidth
:
'
20
0'
,
minWidth
:
'
16
0'
,
formatter
:
cellValue
=>
{
if
(
cellValue
.
mobile
==
0
)
{
return
''
...
...
@@ -367,19 +380,17 @@ export default {
}
},
{
width
:
'95'
,
label
:
'生成时间'
,
prop
:
'createdDate'
,
minWidth
:
'20
0'
,
width
:
'18
0'
,
formatter
:
cellValue
=>
{
return
this
.
date_format
(
cellValue
.
createdDate
)
}
},
{
width
:
'
95
'
,
width
:
'
180
'
,
label
:
'有效时间'
,
prop
:
'validitDate'
,
minWidth
:
'200'
,
formatter
:
cellValue
=>
{
return
this
.
date_format
(
cellValue
.
validitDate
)
}
...
...
@@ -458,8 +469,8 @@ export default {
// 批次界面搜索
selectCollectionTable
(
e
)
{
if
(
e
==
'reset'
)
{
this
.
batchDate
=
''
this
.
selectBatchId
=
''
this
.
batch
ListSearch
.
batch
Date
=
''
this
.
batchListSearch
.
selectBatchId
=
''
this
.
batchListSearch
.
merchantName
=
''
this
.
$apis
.
equityApi
.
getEquityCardBatchList
(
this
.
batchListSearch
).
then
(
res
=>
{
this
.
$refs
.
batchDetailTable
.
refreshTable
()
...
...
@@ -597,7 +608,6 @@ export default {
// mobile: this.collectionListSearch.mobile,
// defineId: this.collectionListSearch.merchantId
// }
// const url =
// this.$get_session_common_config().axios.baseURL + '/memberInfo/exportMemberCard'
// exportExcel({ url, data })
...
...
@@ -636,10 +646,10 @@ export default {
// 改变批次日期数据格式
changeBatchDataFormat
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
batchListSearch
.
endTime
=
this
.
batch
Date
?
this
.
batchDate
[
1
]
+
' 23:59:59'
:
''
this
.
batchListSearch
.
startTime
=
this
.
batch
Date
?
this
.
batchDate
[
0
]
+
' 00:00:01'
:
''
if
(
this
.
selectBatchId
)
{
this
.
batchListSearch
.
batchNo
=
+
this
.
selectBatchId
this
.
batchListSearch
.
endTime
=
this
.
batch
ListSearch
.
batchDate
?
this
.
batchListSearch
.
batchDate
[
1
]
+
' 23:59:59'
:
''
this
.
batchListSearch
.
startTime
=
this
.
batch
ListSearch
.
batchDate
?
this
.
batchListSearch
.
batchDate
[
0
]
+
' 00:00:01'
:
''
if
(
this
.
batchListSearch
.
selectBatchId
)
{
this
.
batchListSearch
.
batchNo
=
+
this
.
batchListSearch
.
selectBatchId
}
else
{
this
.
batchListSearch
.
batchNo
=
null
}
...
...
@@ -651,8 +661,8 @@ export default {
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
this
.
collectionListSearch
.
sn
.
length
>
2
||
this
.
collectionListSearch
.
sn
.
length
<
1
)
{
if
(
this
.
collectionListSearch
.
mobile
.
length
>
2
||
this
.
collectionListSearch
.
mobile
.
length
<
1
)
{
this
.
collectionListSearch
.
endTime
=
this
.
colle
tionDate
?
this
.
colletionDate
[
1
]
+
' 23:59:59'
:
''
||
undefined
this
.
collectionListSearch
.
startTime
=
this
.
colle
tionDate
?
this
.
colletionDate
[
0
]
+
' 00:00:01'
:
''
||
undefined
this
.
collectionListSearch
.
endTime
=
this
.
colle
ctionListSearch
.
colletionDate
?
this
.
collectionListSearch
.
colletionDate
[
1
]
+
' 23:59:59'
:
''
||
undefined
this
.
collectionListSearch
.
startTime
=
this
.
colle
ctionListSearch
.
colletionDate
?
this
.
collectionListSearch
.
colletionDate
[
0
]
+
' 00:00:01'
:
''
||
undefined
resolve
()
}
else
{
Message
({
...
...
@@ -859,7 +869,6 @@ display: flex;
align-items: center;
flex-wrap: nowrap;
} */
.collectonForm
.el-form-item__label
,
.el-form-item__content
{
/* line-height: 32px; */
...
...
@@ -1000,4 +1009,4 @@ flex-wrap: nowrap;
margin
:
0px
;
}
</
style
>
<
style
src=
"@a/css/tao.css"
></
style
>
<
style
src=
"@a/css/tao.css"
></
style
>
\ No newline at end of file
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
<!-- -->
<
template
>
<div
style=
"margin-top: 30px"
class=
"card-manage"
>
<div
class=
"card-manage"
>
<div
class=
"button"
>
<el-button
type=
"primary"
@
click=
"addCard('true')"
size=
"small"
style=
"width: 128px"
>
<i
class=
"el-icon-plus"
></i>
<span
style=
"margin-left: 8px"
>
新建权益卡
</span>
</el-button>
</div>
<div
class=
"tableBox"
style=
"margin-top: 20px;"
>
<div
class=
"topline"
>
<!--
<div
class=
"selectStore"
>
搜索门店
</div>
<el-select
size=
"small"
v-model=
"searchForm.merchantName"
filterable
remote
reserve-keyword
placeholder=
"请输入门店名称"
:remote-method=
"remoteMethod"
:loading=
"loading"
clearable
style=
"margin-left: 10px"
>
<el-option
v-for=
"(item, index) in options"
:key=
"index"
:label=
"item.merchantName"
:value=
"item.merchantName"
></el-option>
</el-select>
-->
<el-form
:inline=
"true"
style=
"width: 100%; margin-left: 10px;"
:model=
"searchForm"
label-width=
"108px"
label-position=
"right"
>
<el-row
style=
"display: flex; align-items: center"
>
<el-form-item
size=
"small"
label=
"搜索门店"
>
<el-select
size=
"small"
v-model=
"searchForm.merchantName"
remote
reserve-keyword
filterable
placeholder=
"请输入门店名称"
:remote-method=
"remoteMethod"
:loading=
"loading"
clearable
>
<el-option
v-for=
"(item, index) in options"
:key=
"index"
:label=
"item.merchantName"
:value=
"item.merchantName"
></el-option>
</el-select>
</el-form-item>
<el-form-item
size=
"small"
label=
"权益卡名称"
>
<el-input
size=
"small"
v-model=
"searchForm.cardClassName"
placeholder=
"请输入权益卡名称"
></el-input>
</el-form-item>
<el-form-item
size=
"small"
class=
"fr-mr0"
>
<el-button
plain
size=
"small"
class=
"selectBtn"
@
click=
"selectStore('reset')"
>
重置
</el-button>
<el-button
type=
"primary"
size=
"small"
style=
"margin-left: 20px"
class=
"selectBtn"
@
click=
"selectStore('select')"
>
搜索
</el-button>
</el-form-item>
</el-row>
</el-form>
<!--
<div
class=
"operationBtn"
>
<el-button
plain
size=
"small"
class=
"selectBtn"
@
click=
"selectStore('reset')"
>
重置
</el-button>
<el-button
type=
"primary"
size=
"small"
style=
"margin-left: 20px"
class=
"selectBtn"
@
click=
"selectStore('select')"
>
搜索
</el-button>
</div>
-->
</div>
<div
class=
"tableBox"
style=
"margin-top: 16px"
>
<div
class=
"topline"
></div>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"selectStore('select')"
@
handleRest=
"selectStore('reset')"
></GLCombiForm>
<div
class=
"tableCtn"
>
<GLTable
ref=
"recordTable"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"recipientCount"
slot-scope=
"scope"
>
<p
class=
"cursor-pointer"
style=
"color:#5850ff"
@
click=
"handleDetail(scope.scope)"
>
{{
scope
.
scope
.
recipientCount
}}
</p>
<p
class=
"cursor-pointer"
style=
"color:
#5850ff"
@
click=
"handleDetail(scope.scope)"
>
{{
scope
.
scope
.
recipientCount
}}
</p>
</div>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<
GLButton
fn =
'权益卡管理编辑'
type=
"text"
@
click=
"edit(scope.scope)"
class=
"tableBtn"
size=
"small"
>
编辑
</GLButton>
<
!--
<GLButton
fn=
"权益卡管理编辑"
type=
"text"
@
click=
"edit(scope.scope)"
class=
"tableBtn"
size=
"small"
>
编辑
</GLButton>
<el-button
type=
"text"
:disabled=
"scope.scope.tryAble == 0 ? true : false"
@
click=
"extension(scope.scope)"
class=
"tableBtn"
size=
"small"
>
推广
</el-button>
<el-button
type=
"text"
@
click=
"copy(scope.scope)"
class=
"tableBtn"
size=
"small"
>
复制
</el-button>
<el-button
type=
"text"
@
click=
"copy(scope.scope)"
class=
"tableBtn"
size=
"small"
>
复制
</el-button>
-->
<GLTableButton
:buttonList=
"recordButtonList"
:buttonItem=
"scope"
:buttonNum=
"3"
></GLTableButton>
</span>
</GLTable>
</div>
</div>
<!-- 推广弹窗 -->
<el-dialog
title=
"试用推广"
:visible
.
sync=
"isVisible"
:before-close=
"handleClose"
:close-on-click-modal=
"false"
width=
"547px"
class=
"addCardsDialog"
>
<!--
<div
class=
"baseinformation"
><span
class=
"titleText"
>
试用推广
</span></div>
-->
<GLDialog
mode=
"mid"
title=
"试用推广"
:visible
.
sync=
"isVisible"
:before-close=
"handleClose"
:close-on-click-modal=
"false"
>
<el-form
:model=
"editForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"68px"
>
<div
class=
"form"
>
<div
class=
"main-qrcode"
>
...
...
@@ -65,13 +40,12 @@
</div>
</el-form>
<div
slot=
"footer"
>
<el-button
size=
"small"
@
click=
"handleClose"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleConfirm"
size=
"small"
>
确定
</el-button>
<el-button
@
click=
"handleClose"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
</div>
</
el-d
ialog>
</
GLD
ialog>
<!-- 新建权益卡弹窗 -->
<el-dialog
title=
"基本信息"
v-if=
"dialogVisible"
:visible
.
sync=
"dialogVisible"
width=
"958px"
:before-close=
"closeDialog"
class=
"addCardsDialog"
>
<!--
<div
class=
"baseinformation"
><span
class=
"titleText"
>
基本信息
</span></div>
-->
<GLDialog
mode=
"big"
bigTitle=
"基本信息"
v-if=
"dialogVisible"
:visible
.
sync=
"dialogVisible"
:before-close=
"closeDialog"
>
<el-form
class=
"dialogForm"
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"auto"
label-position=
"left"
>
<!-- 基础表单 -->
<div
class=
"form"
>
...
...
@@ -94,9 +68,9 @@
<el-radio-group
v-model=
"ruleForm.effectiveType"
>
<el-radio
label=
"1"
@
change=
"e => controlSwitch(e, 'disable')"
>
永久有效
</el-radio>
<el-radio
label=
"2"
@
change=
"e => controlSwitch(e, 'input')"
>
<span
style=
"margin-right:
10px"
>
领取时起
</span>
<span
style=
"margin-right:
10px"
>
领取时起
</span>
<el-input-number
v-model=
"effectiveNum"
controls-position=
"right"
:min=
"1"
:max=
"999"
id=
"month"
:disabled=
"ruleForm.effectiveType !== '2'"
size=
"mini"
change=
""
></el-input-number>
<span
style=
"margin-left:10px"
>
天内有效
</span>
<span
style=
"margin-left: 10px"
>
天内有效
</span>
</el-radio>
</el-radio-group>
</el-form-item>
...
...
@@ -123,22 +97,15 @@
<span
class=
"codeTxt2"
>
设置后将生成试用链接和二维码可用于推广
</span>
</el-form-item>
</div>
<!--
<div
class=
"buttonCtn"
>
<el-form-item>
<el-button
:disabled=
"submitBtn"
type=
"primary"
@
click=
"submitForm('ruleForm')"
size=
"small"
>
提交
</el-button>
<el-button
size=
"small"
@
click=
"resetForm('ruleForm')"
>
取消
</el-button>
</el-form-item>
</div>
-->
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"resetForm('ruleForm')"
>
取消
</el-button>
<el-button
:disabled=
"submitBtn"
type=
"primary"
@
click=
"submitForm('ruleForm')"
size=
"small"
>
提交
</el-button>
<el-button
@
click=
"resetForm('ruleForm')"
>
取消
</el-button>
<el-button
:disabled=
"submitBtn"
type=
"primary"
@
click=
"submitForm('ruleForm')"
>
提交
</el-button>
</span>
</
el-d
ialog>
</
GLD
ialog>
<detail-dialog
ref=
"detailDetailRef"
></detail-dialog>
</div>
</
template
>
<
script
>
const
cloneText
=
message
=>
{
let
input
=
document
.
createElement
(
'input'
)
...
...
@@ -209,12 +176,54 @@ export default {
url
:
''
,
qrCode
:
''
},
recordButtonList
:
[
{
type
:
'GLButton'
,
name
:
row
=>
{
return
'编辑'
},
attrs
:
{
type
:
'text'
,
fn
:
'权益卡管理编辑'
},
listeners
:
{
click
:
row
=>
this
.
edit
(
row
.
scope
)
}
},
{
type
:
'el-button'
,
name
:
row
=>
{
return
'推广'
},
attrs
:
{
type
:
'text'
,
disabled
:
(
row
,
condition
)
=>
{
return
false
}
},
listeners
:
{
click
:
row
=>
this
.
extension
(
row
.
scope
)
}
},
{
type
:
'el-button'
,
name
:
row
=>
{
return
'复制'
},
attrs
:
{
type
:
'text'
},
listeners
:
{
click
:
row
=>
this
.
copy
(
row
.
scope
)
}
}
],
product
:
[
{
id
:
'firstImg'
,
imgSrc
:
require
(
'./images/card0.png'
),
src
:
'./images/card0.png'
}
,
}
],
rules
:
{
cardClassName
:
[
...
...
@@ -234,8 +243,22 @@ export default {
// getListApi: none,
searchForm
:
{
merchantName
:
''
,
cardClassName
:
''
cardClassName
:
''
},
searchFormData
:
[
{
label
:
'搜索门店'
,
name
:
'merchantName'
,
type
:
'input'
,
isClear
:
true
},
{
label
:
'权益卡名称'
,
name
:
'cardClassName'
,
type
:
'input'
,
isClear
:
true
}
],
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
...
...
@@ -272,6 +295,7 @@ export default {
{
label
:
'售价'
,
prop
:
'price'
,
align
:
'right'
,
formatter
:
cellValue
=>
{
if
(
cellValue
.
price
==
null
)
{
return
'39.9'
+
'元'
...
...
@@ -297,7 +321,7 @@ export default {
{
label
:
'创建时间'
,
prop
:
'createDate'
,
// minWidth: '200'
width
:
'180'
,
formatter
:
cellValue
=>
{
return
this
.
date_format
(
cellValue
.
createDate
)
}
...
...
@@ -330,8 +354,8 @@ export default {
}
},
methods
:
{
handleDetail
(
row
){
this
.
$refs
.
detailDetailRef
.
show
(
row
)
;
handleDetail
(
row
)
{
this
.
$refs
.
detailDetailRef
.
show
(
row
)
// this.getcardRecordList()
},
setTableFinishFun
()
{
...
...
@@ -382,7 +406,6 @@ export default {
// a.href = url;
// // window.open(url) // 将图片的src赋值给a节点的href
// a.dispatchEvent(event)
// },
// downloadImg(){
// html2canvas(document.getElementById("qrCode")).then(canvas => {
...
...
@@ -454,7 +477,6 @@ export default {
}
else
{
;(
this
.
value
=
false
),
(
this
.
tryNum
=
30
)
}
// 禁用门店框
this
.
disableSelect
=
true
},
...
...
@@ -471,7 +493,7 @@ export default {
if
(
row
.
tryAble
==
1
)
{
;(
this
.
value
=
true
),
(
this
.
tryNum
=
row
.
tryNum
)
}
else
{
;(
this
.
value
=
false
),
(
this
.
tryNum
=
30
)
;(
this
.
value
=
false
),
(
this
.
tryNum
=
30
)
}
},
addCard
(
cd
)
{
...
...
@@ -604,18 +626,13 @@ export default {
</
script
>
<
style
src=
"@a/css/tao.css/"
></
style
>
<
style
lang=
"scss"
>
*
{
padding
:
0
;
margin
:
0
;
border
:
0
;
}
.card-manage
.el-table__empty-text
{
.card-manage
.el-table__empty-text
{
display
:
inline-block
;
width
:
64px
;
height
:
41px
;
}
.tableCtn
{
margin-top
:
20
px
;
margin-top
:
16
px
;
margin-right
:
20px
;
}
.baseinformation
{
...
...
@@ -632,7 +649,6 @@ export default {
margin-left
:
20px
;
line-height
:
28px
;
}
.explain
{
color
:
#d3d3d3
;
}
...
...
@@ -724,7 +740,6 @@ export default {
color
:
#4c4c4c
;
line-height
:
20px
;
}
.form
{
padding
:
32px
20px
32px
48px
;
}
...
...
@@ -756,10 +771,9 @@ export default {
border-top
:
1px
solid
#e6e6e6
;
}
.addCardsDialog
.el-radio
{
color
:
#606266
;
font-weight
:
500
;
cursor
:
pointer
;
margin-right
:
20px
;
color
:
#606266
;
font-weight
:
500
;
cursor
:
pointer
;
margin-right
:
20px
;
}
</
style
>
\ No newline at end of file
</
style
>
\ No newline at end of file
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