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 358c8942
authored
Oct 18, 2021
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
按钮大小变化及配置变更
1 parent
ff80f907
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
141 additions
and
290 deletions
package.json
run.js
src/components/equity-dialog/index.vue
src/router/index.js
src/setup/render.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/index.vue
src/views/rightsCard/index.vue
src/views/sale/index.vue
vue.config.js
package.json
View file @
358c894
{
"name"
:
"
blog
"
,
"name"
:
"
equity
"
,
"version"
:
"0.1.0"
,
"private"
:
true
,
"scripts"
:
{
...
...
run.js
View file @
358c894
var
express
=
require
(
'express'
)
//
var history = require('connect-history-api-fallback')
var
history
=
require
(
'connect-history-api-fallback'
)
var
cors
=
require
(
'cors'
)
var
app
=
express
()
//
app.use(history())
app
.
use
(
history
())
app
.
use
(
cors
())
app
.
use
(
express
.
static
(
'./dist'
))
app
.
get
(
'/'
,
function
(
req
,
res
)
{
...
...
src/components/equity-dialog/index.vue
View file @
358c894
<
template
>
<div
class=
"equity-dialog"
>
<el-dialog
:title=
" type == 1?'汽车权益' : '商品权益'"
:visible
.
sync=
"show"
:show-close=
"false"
:close-on-press-escape=
"false"
:close-on-click-modal=
"false"
>
<el-form
:model=
"form"
:rules=
"rules"
ref=
"ruleForm"
>
<el-form-item
v-if=
"type==1"
label=
"服务提供方"
prop=
"supplier"
>
<el-select
v-model=
"form.supplier"
@
change=
"changeSupplier"
>
<el-option
v-for=
"item in supplierList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
<el-dialog
:title=
"type == 1 ? '汽车权益' : '商品权益'"
:visible
.
sync=
"show"
:show-close=
"false"
:close-on-press-escape=
"false"
:close-on-click-modal=
"false"
>
<el-form
:model=
"form"
:rules=
"rules"
ref=
"ruleForm"
label-position=
"left"
>
<el-form-item
v-if=
"type == 1"
label=
"服务提供方"
prop=
"supplier"
>
<el-select
v-model=
"form.supplier"
@
change=
"changeSupplier"
>
<el-option
v-for=
"item in supplierList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-form-item>
<template
v-if=
"type==2"
>
<el-form-item
label=
"产品提供方"
prop=
"supplier"
>
<template
v-if=
"type == 2"
>
<el-form-item
label=
"产品提供方"
prop=
"supplier"
>
<el-select
v-model=
"form.supplier"
>
<el-option
label=
"海威"
value=
"HW"
></el-option>
<el-option
label=
"海威"
value=
"HW"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"选择品牌"
prop=
"brandName"
>
<el-select
v-model=
"form.brandName"
@
change=
"changeBrandName"
filterable
>
<el-option
v-for=
"item in brandList"
:key=
"item.brandName"
:value=
"item.brandName"
:label=
"item.brandName"
></el-option>
<el-form-item
label=
"选择品牌"
prop=
"brandName"
>
<el-select
v-model=
"form.brandName"
@
change=
"changeBrandName"
filterable
>
<el-option
v-for=
"item in brandList"
:key=
"item.brandName"
:value=
"item.brandName"
:label=
"item.brandName"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"商品形态"
prop=
"appearance"
v-if=
"form.brandName"
>
<el-form-item
label=
"商品形态"
prop=
"appearance"
v-if=
"form.brandName"
>
<el-select
v-model=
"form.appearance"
>
<el-option
v-for=
"item in appearanceList"
:key=
"item.appearance"
:value=
"item.label"
:label=
"item.label"
></el-option>
<el-option
v-for=
"item in appearanceList"
:key=
"item.appearance"
:value=
"item.label"
:label=
"item.label"
></el-option>
</el-select>
</el-form-item>
</
template
>
<div
class=
"flex"
>
<el-form-item
label=
"权益名称"
prop=
"equityName"
>
<el-input
v-model=
"form.equityName"
:maxlength=
"type==1?8:6"
></el-input>
<el-form-item
label=
"权益名称"
prop=
"equityName"
>
<el-input
v-model=
"form.equityName"
:maxlength=
"type == 1 ? 8 : 6"
></el-input>
</el-form-item>
<el-form-item
label=
"描述"
prop=
"equityDesc"
>
<el-input
v-model=
"form.equityDesc"
:maxlength=
"type==1?8:6"
></el-input>
</div>
<div
class=
"flex"
>
<el-form-item
label=
"描述"
prop=
"equityDesc"
>
<el-input
v-model=
"form.equityDesc"
:maxlength=
"type == 1 ? 8 : 6"
></el-input>
</el-form-item>
</div>
<div>
<el-form-item
label=
"图标"
required
prop=
"equityIcon"
>
<el-upload
action=
"#"
class=
"avatar-uploader"
:show-file-list=
"false"
:before-upload=
"upLoadImg"
>
<img
v-if=
"form.equityIcon"
:src=
"form.equityIcon"
class=
"avatar"
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
<el-form-item
label=
"图标"
required
prop=
"equityIcon"
>
<el-upload
action=
"#"
class=
"avatar-uploader"
:show-file-list=
"false"
:before-upload=
"upLoadImg"
>
<img
v-if=
"form.equityIcon"
:src=
"form.equityIcon"
class=
"avatar"
/>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-form-item>
</div>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"close"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"submit(type)"
>
确 定
</el-button>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"close"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"submit(type)"
>
确 定
</el-button>
</div>
</el-dialog>
</div>
...
...
@@ -143,7 +61,7 @@ const validatorgoodsImage = (rule, value, callback) => {
}
export
default
{
name
:
'equity-dialog'
,
data
()
{
data
()
{
return
{
form
:
{
appearance
:
''
...
...
@@ -181,24 +99,12 @@ export default {
}
],
rules
:
{
supplier
:
[
{
required
:
true
,
message
:
'请选择提供方'
,
trigger
:
'change'
}
],
brandName
:
[
{
required
:
true
,
message
:
'请选择品牌'
,
trigger
:
'change'
}
],
appearance
:
[
{
required
:
true
,
message
:
'请选择商品形态'
,
trigger
:
'change'
}
],
equityName
:
[
{
required
:
true
,
message
:
'请输入权益名称'
,
trigger
:
'blur'
}
],
equityDesc
:
[
{
required
:
true
,
message
:
'请输入描述'
,
trigger
:
'blur'
}
],
equityIcon
:
[
{
validator
:
validatorgoodsImage
},
],
supplier
:
[{
required
:
true
,
message
:
'请选择提供方'
,
trigger
:
'change'
}],
brandName
:
[{
required
:
true
,
message
:
'请选择品牌'
,
trigger
:
'change'
}],
appearance
:
[{
required
:
true
,
message
:
'请选择商品形态'
,
trigger
:
'change'
}],
equityName
:
[{
required
:
true
,
message
:
'请输入权益名称'
,
trigger
:
'blur'
}],
equityDesc
:
[{
required
:
true
,
message
:
'请输入描述'
,
trigger
:
'blur'
}],
equityIcon
:
[{
validator
:
validatorgoodsImage
}]
}
}
},
...
...
@@ -211,32 +117,32 @@ export default {
isEdit
:
Boolean
,
data
:
{
type
:
Object
,
default
:
()
=>
{
}
default
:
()
=>
{}
}
},
mounted
()
{
mounted
()
{
this
.
$apis
.
goodsEquityManageApi
.
getGoodsBrandList
().
then
(({
data
})
=>
{
this
.
brandList
=
data
})
},
watch
:
{
'isEdit'
(
n
)
{
isEdit
(
n
)
{
if
(
n
)
{
this
.
form
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
$parent
.
editData
))
if
(
this
.
type
==
2
)
{
this
.
form
.
appearance
=
{
1
:
'卡券'
,
2
:
'直充'
}[
this
.
$parent
.
editData
.
appearance
]
}
}
}
,
}
},
methods
:
{
close
()
{
close
()
{
this
.
form
=
{}
this
.
$emit
(
'update:show'
,
false
)
this
.
$emit
(
'update:isEdit'
,
false
)
this
.
$refs
.
ruleForm
.
resetFields
()
},
upLoadImg
(
file
)
{
upLoadImg
(
file
)
{
let
fileName
=
file
.
name
if
(
file
.
name
.
lastIndexOf
(
'.'
)
===
-
1
)
{
this
.
$message
.
info
(
'路径不正确'
)
...
...
@@ -252,24 +158,26 @@ export default {
if
(
window
.
FileReader
)
{
let
reader
=
new
FileReader
()
reader
.
readAsDataURL
(
file
)
reader
.
onload
=
(
img
)
=>
{
reader
.
onload
=
img
=>
{
console
.
log
(
file
)
let
type
=
fileName
.
split
(
'.'
)[
1
]
let
imgUrl
=
img
.
target
.
result
.
split
(
','
)[
1
]
this
.
$apis
.
commonApi
.
upLoadImg
({
file
:
`
${
type
}
@
${
imgUrl
}
`
}).
then
(({
code
,
message
,
data
})
=>
{
if
(
code
==
0
)
{
console
.
log
(
data
);
this
.
$set
(
this
.
form
,
'equityIcon'
,
data
)
}
else
{
this
.
$message
.
error
(
message
)
}
})
this
.
$apis
.
commonApi
.
upLoadImg
({
file
:
`
${
type
}
@
${
imgUrl
}
`
})
.
then
(({
code
,
message
,
data
})
=>
{
if
(
code
==
0
)
{
console
.
log
(
data
)
this
.
$set
(
this
.
form
,
'equityIcon'
,
data
)
}
else
{
this
.
$message
.
error
(
message
)
}
})
}
}
},
changeSupplier
(
e
)
{
changeSupplier
(
e
)
{
console
.
log
(
e
)
this
.
supplierList
.
map
(
i
=>
{
if
(
i
.
value
==
e
)
{
...
...
@@ -277,22 +185,22 @@ export default {
}
})
},
getAppearanceList
(
brandName
)
{
this
.
$apis
.
goodsEquityManageApi
.
getAppearanceList
({
brandName
,
supplier
:
'HW'
}).
then
(({
data
})
=>
{
getAppearanceList
(
brandName
)
{
this
.
$apis
.
goodsEquityManageApi
.
getAppearanceList
({
brandName
,
supplier
:
'HW'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
data
.
map
(
i
=>
i
.
label
=
{
1
:
'卡券'
,
2
:
'直充'
}[
i
.
appearance
]
)
data
.
map
(
i
=>
(
i
.
label
=
{
1
:
'卡券'
,
2
:
'直充'
}[
i
.
appearance
])
)
this
.
appearanceList
=
data
this
.
form
.
appearance
=
''
})
},
changeBrandName
(
e
)
{
changeBrandName
(
e
)
{
this
.
getAppearanceList
(
e
)
},
submit
(
type
)
{
submit
(
type
)
{
console
.
log
(
this
.
form
)
let
{
form
,
isEdit
}
=
this
let
target
=
type
==
1
?
this
.
$apis
.
carEquityManageApi
:
this
.
$apis
.
goodsEquityManageApi
this
.
$refs
.
ruleForm
.
validate
(
(
valid
)
=>
{
this
.
$refs
.
ruleForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
type
==
2
)
{
this
.
form
.
goodsCategoryId
=
this
.
$parent
.
goodsCategoryId
...
...
@@ -316,7 +224,6 @@ export default {
}
}
}
</
script
>
<
style
scope
>
...
...
src/router/index.js
View file @
358c894
...
...
@@ -25,7 +25,7 @@ VueRouter.prototype.push = function push(location) {
// }
function
getRoutes
(
routesData
)
{
return
routesData
.
reduce
((
routes
,
route
)
=>
{
routes
.
push
({
...
route
,
component
:
()
=>
import
(
'@/views'
+
route
.
com
path
+
'.vue'
)
})
routes
.
push
({
...
route
,
component
:
()
=>
import
(
'@/views'
+
route
.
path
+
'.vue'
)
})
return
routes
},
[])
}
...
...
src/setup/render.js
View file @
358c894
...
...
@@ -15,7 +15,7 @@ const render = (base, routes) => {
const
router
=
new
VueRouter
({
base
,
routes
,
//
mode: 'history'
mode
:
'history'
})
const
vm
=
new
Vue
({
router
,
...
...
src/views/collection/index.vue
View file @
358c894
...
...
@@ -21,10 +21,10 @@
</el-select>
</div>
<div
class=
"buttonContainer"
>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"selectCollectionTable"
>
搜索
</el-button>
<el-button
type=
"primary"
size=
"small"
icon=
"el-icon-search"
@
click=
"selectCollectionTable"
>
搜索
</el-button>
</div>
<div
class=
"buttonContainer"
>
<el-button
type=
"primary"
@
click=
"dialogVisible = true"
>
批量生成权益卡号
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"dialogVisible = true"
>
批量生成权益卡号
</el-button>
</div>
</div>
<!--
<div
class=
"linecontainer"
>
...
...
@@ -72,19 +72,19 @@
<el-input
v-model=
"batchPopupListSearch.mobile"
placeholder=
"请输入账号"
></el-input>
</el-form-item>
<el-form-item
label=
""
>
<el-button
:id=
"batchdetailPopupTable.btnId"
type=
"primary"
icon=
"el-icon-search"
@
click=
"batchdetailSelect"
>
搜索
</el-button>
<el-button
:id=
"batchdetailPopupTable.btnId"
size=
"small"
type=
"primary"
icon=
"el-icon-search"
@
click=
"batchdetailSelect"
>
搜索
</el-button>
</el-form-item>
<span
class=
"itemButtonContainer"
>
<el-form-item
label=
""
>
<el-button
type=
"primary"
@
click=
"exportbatchdetail"
>
导出明细
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportbatchdetail"
>
导出明细
</el-button>
</el-form-item>
</span>
</el-form>
<GLTable
ref=
"batchdetailPopupTable"
:tableParams=
"batchdetailPopupTable"
:getListApi=
"listMemberCard"
:searchForm=
"batchPopupListSearch"
:beforeSearchFn=
"beforebatchPopupListSearch"
></GLTable>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"closebatchdetailPopupTable"
>
取 消
</el-button>
<el-button
size=
"small"
@
click=
"closebatchdetailPopupTable"
>
取 消
</el-button>
<!--
<el-button
@
click=
"batchdetailsVisible = false"
>
取 消
</el-button>
-->
<el-button
type=
"primary"
@
click=
"closebatchdetailPopupTable"
>
确 定
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"closebatchdetailPopupTable"
>
确 定
</el-button>
</span>
</el-dialog>
<!-- 批量生成权益卡弹窗 -->
...
...
@@ -107,8 +107,8 @@
</el-form-item>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"cancelGenerate"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"generateCards('ruleForm')"
>
确 定
</el-button>
<el-button
size=
"small"
@
click=
"cancelGenerate"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"generateCards('ruleForm')"
>
确 定
</el-button>
</span>
</el-dialog>
<!-- 批次管理分页表格 -->
...
...
@@ -140,10 +140,10 @@
<el-input
v-model=
"collectionListSearch.mobile"
placeholder=
"请输入账号"
size=
"small"
></el-input>
</div>
<div
class=
"buttonContainer"
>
<el-button
:id=
"collectionTableParams.btnId"
type=
"primary"
icon=
"el-icon-search"
@
click=
"collectionSelect"
>
搜索
</el-button>
<el-button
size=
"small"
:id=
"collectionTableParams.btnId"
type=
"primary"
icon=
"el-icon-search"
@
click=
"collectionSelect"
>
搜索
</el-button>
</div>
<div
class=
"buttonContainer"
@
click=
"exportCollection"
>
<el-button
type=
"primary"
>
导出
</el-button>
<el-button
type=
"primary"
size=
"small"
>
导出
</el-button>
</div>
</div>
</div>
...
...
src/views/eManagement/index.vue
View file @
358c894
...
...
@@ -20,14 +20,14 @@
</div>
<div
class=
"item"
>
订单状态:
<el-select
v-model=
"searchObj.orderStatus"
placeholder=
"请选择"
>
<el-select
v-model=
"searchObj.orderStatus"
size=
"small"
placeholder=
"请选择"
>
<el-option
v-for=
"item in statusList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
<div
class=
"item"
>
<el-button-group>
<el-button
type=
"primary"
@
click=
"search"
>
查询
</el-button>
<el-button
type=
"default"
@
click=
"reset"
>
重置
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"search"
>
查询
</el-button>
<el-button
type=
"default"
size=
"small"
@
click=
"reset"
>
重置
</el-button>
</el-button-group>
</div>
</div>
...
...
src/views/financial/index.vue
View file @
358c894
...
...
@@ -4,59 +4,26 @@
<div
class=
"top"
>
<div
class=
"item"
>
日期:
<el-date-picker
v-model=
"date"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
size=
"small"
value-format=
"yyyy-MM-dd"
>
</el-date-picker>
<el-date-picker
v-model=
"date"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
size=
"small"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</div>
<div
class=
"item"
>
品牌名称:
<div
class=
"input"
>
<el-select
v-model=
"searchObj.brandName"
filterable
size=
"small"
placeholder=
"请选择"
>
<el-option
v-for=
"item in brandList"
:key=
"item.brandId"
:label=
"item.brandName"
:value=
"item.brandName"
>
</el-option>
<el-select
v-model=
"searchObj.brandName"
filterable
size=
"small"
placeholder=
"请选择"
>
<el-option
v-for=
"item in brandList"
:key=
"item.brandId"
:label=
"item.brandName"
:value=
"item.brandName"
></el-option>
</el-select>
</div>
</div>
<div
class=
"item"
>
商品名称:
<div
class=
"input"
>
<el-input
v-model=
"searchObj.productName"
placeholder=
""
size=
"small"
></el-input>
<el-input
v-model=
"searchObj.productName"
placeholder=
""
size=
"small"
></el-input>
</div>
</div>
<div
class=
"item"
>
商品形态:
<el-select
v-model=
"searchObj.appereance"
placeholder=
"请选择"
>
<el-option
v-for=
"item in appereanceList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
<el-select
size=
"small"
v-model=
"searchObj.appereance"
placeholder=
"请选择"
>
<el-option
v-for=
"item in appereanceList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
<!--
<div
class=
"item"
>
...
...
@@ -77,64 +44,32 @@
<div
class=
"item"
>
门店名称:
<div
class=
"input"
>
<el-input
v-model=
"searchObj.merchantName"
placeholder=
""
size=
"small"
></el-input>
<el-input
v-model=
"searchObj.merchantName"
placeholder=
""
size=
"small"
></el-input>
</div>
</div>
<div
class=
"item"
>
订单状态:
<el-select
v-model=
"searchObj.orderStatus"
placeholder=
"请选择"
>
<el-option
v-for=
"item in statusList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
<el-select
size=
"small"
v-model=
"searchObj.orderStatus"
placeholder=
"请选择"
>
<el-option
v-for=
"item in statusList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
</div>
<div
class=
"bottom"
>
<el-button-group>
<el-button
type=
"primary"
@
click=
"search"
>
查询
</el-button>
<el-button
type=
"default"
@
click=
"reset"
>
重置
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"search"
>
查询
</el-button>
<el-button
type=
"default"
size=
"small"
@
click=
"reset"
>
重置
</el-button>
</el-button-group>
</div>
</div>
<div
class=
"table-box"
>
<div
class=
"table-btn"
>
账户余额:
{{
price
}}
元
<el-button
type=
"primary"
@
click=
"getHwAccount"
>
刷新余额
</el-button>
账户余额:
{{
price
}}
元
<el-button
size=
"small"
type=
"primary"
@
click=
"getHwAccount"
>
刷新余额
</el-button>
</div>
<d2-table
v-if=
"flag"
ref=
"table"
:searchForm=
"searchObj"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
>
<template
slot=
'custom'
>
<d2-table
v-if=
"flag"
ref=
"table"
:searchForm=
"searchObj"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
>
<template
slot=
"custom"
>
<div
class=
"table-custom"
>
<el-button
type=
"primary"
@
click=
"exportExcel"
>
导出
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
</
template
>
</d2-table>
...
...
@@ -147,7 +82,7 @@ import { orderMixin, searchMixin } from '@/mixins'
export
default
{
name
:
''
,
mixins
:
[
orderMixin
,
searchMixin
],
data
()
{
data
()
{
return
{
flag
:
true
,
price
:
0
,
...
...
@@ -155,7 +90,7 @@ export default {
listName
:
'list'
,
showSummary
:
true
,
getListApi
:
this
.
$apis
.
orderApi
.
getBalanceList
,
summaryMethod
({
columns
,
data
})
{
summaryMethod
({
columns
,
data
})
{
let
sums
=
[]
columns
.
forEach
((
column
,
index
)
=>
{
if
(
index
==
0
)
{
...
...
@@ -177,7 +112,7 @@ export default {
}
else
{
return
prev
}
},
0
)
;
},
0
)
sums
[
index
]
=
`
${
this
.
decimal
(
sums
[
index
],
2
).
toFixed
(
2
)}
元`
}
else
{
sums
[
index
]
=
''
...
...
@@ -194,25 +129,24 @@ export default {
{
label
:
'品牌名称'
,
prop
:
'brandName'
,
minWidth
:
'200'
,
minWidth
:
'200'
},
{
label
:
'商品形态'
,
prop
:
'appearanceDesc'
,
minWidth
:
'100'
,
minWidth
:
'100'
},
{
label
:
'商品名称'
,
minWidth
:
'200'
,
formatter
(
cell
)
{
formatter
(
cell
)
{
return
cell
.
appearance
==
2
?
`
${
cell
.
productName
}${
cell
.
denomination
}
`
:
cell
.
productName
}
},
{
label
:
'订单成本金额'
,
prop
:
'costPrices'
,
minWidth
:
'200'
,
minWidth
:
'200'
},
{
label
:
'订单支付金额'
,
...
...
@@ -222,19 +156,19 @@ export default {
{
label
:
'销售差额'
,
prop
:
'discount'
,
minWidth
:
'200'
,
minWidth
:
'200'
},
{
label
:
'下单渠道'
,
minWidth
:
'200'
,
formatter
(
cell
)
{
formatter
(
cell
)
{
return
`
${
cell
.
merchantName
||
''
}${
cell
.
merchantName
?
'-'
:
''
}${
cell
.
channelName
}
`
}
},
{
label
:
'订单状态'
,
minWidth
:
'200'
,
formatter
:
(
cell
)
=>
{
formatter
:
cell
=>
{
return
cell
.
appearance
==
1
?
this
.
statusEnum
[
cell
.
orderStatus
]
:
this
.
qb_statusEnum
[
cell
.
orderStatus
]
}
},
...
...
@@ -242,41 +176,41 @@ export default {
label
:
'下单时间'
,
prop
:
'orderDate'
,
minWidth
:
'200'
,
formatter
(
cell
)
{
formatter
(
cell
)
{
return
cell
.
orderDate
?
new
Date
(
cell
.
orderDate
).
format
(
'yyyy-MM-dd hh:mm:ss'
)
:
'- -'
}
}
,
}
]
}
}
},
mounted
()
{
mounted
()
{
this
.
getHwAccount
()
},
methods
:
{
getHwAccount
()
{
getHwAccount
()
{
this
.
$apis
.
orderApi
.
getHwAccount
().
then
(({
code
,
data
})
=>
{
if
(
code
==
0
)
{
this
.
price
=
data
}
})
},
exportExcel
()
{
exportExcel
()
{
this
.
$apis
.
orderApi
.
exportBalanceList
(
this
.
searchObj
).
then
(({
code
,
data
,
message
})
=>
{
if
(
code
==
0
)
{
let
a
=
document
.
createElement
(
'a'
)
a
.
setAttribute
(
'href'
,
data
)
a
.
setAttribute
(
'target'
,
'_blank'
)
a
.
setAttribute
(
"download"
,
'权益订单统计数据.xlsx'
)
a
.
setAttribute
(
'download'
,
'权益订单统计数据.xlsx'
)
a
.
click
()
}
else
{
this
.
$message
.
error
(
message
)
}
})
}
}
}
</
script
>
<
style
src=
"@a/css/tao.css"
></
style
>
<
style
src=
"@a/css/tao.css"
>
</
style
>
src/views/gas/index.vue
View file @
358c894
...
...
@@ -17,7 +17,7 @@
</div>
<div
class=
"item"
>
加油供应商:
<el-select
:value=
"'团油'"
>
<el-select
size=
"small"
:value=
"'团油'"
>
<el-option
label=
"团油"
value=
"团油"
...
...
@@ -50,6 +50,7 @@
<el-select
v-model=
"searchObj.orderStatus"
placeholder=
"请选择"
size=
"small"
>
<el-option
v-for=
"item in statusList"
...
...
@@ -66,10 +67,12 @@
<el-button
type=
"primary"
@
click=
"search"
size=
"small"
>
查询
</el-button>
<el-button
type=
"default"
@
click=
"reset"
size=
"small"
>
重置
</el-button>
</el-button-group>
</div>
...
...
src/views/goods/addGoods.vue
View file @
358c894
...
...
@@ -4,8 +4,8 @@
<div
class=
"box"
>
<!--
<back
/>
-->
<div
class=
"title"
>
商品类型
</div>
<el-radio-group
:value=
"1"
>
<el-radio-button
:label=
"1"
>
品牌商品
</el-radio-button>
<el-radio-group
size=
"small"
:value=
"1"
>
<el-radio-button
:label=
"1"
>
品牌商品
</el-radio-button>
<el-radio-button
:label=
"2"
disabled
>
门店服务
</el-radio-button>
</el-radio-group>
</div>
...
...
@@ -17,7 +17,7 @@
</el-select>
</el-form-item>
<el-form-item
label=
"商品形态"
required
>
<el-radio-group
v-model=
"ruleForm.appearance"
:disabled=
"isEdit"
@
change=
"changeAppearance"
>
<el-radio-group
size=
"small"
v-model=
"ruleForm.appearance"
:disabled=
"isEdit"
@
change=
"changeAppearance"
>
<el-radio-button
label=
"1"
>
卡券
</el-radio-button>
<el-radio-button
label=
"2"
>
直充
</el-radio-button>
</el-radio-group>
...
...
@@ -99,8 +99,8 @@
</el-form-item>
</
template
>
<el-form-item
size=
"large"
>
<el-button
type=
"primary"
@
click=
"onSubmit"
>
提交
</el-button>
<el-button
@
click=
"onSubmit('save')"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit"
size=
"small"
>
提交
</el-button>
<el-button
@
click=
"onSubmit('save')"
size=
"small"
>
保存
</el-button>
</el-form-item>
</div>
</el-form>
...
...
src/views/goods/index.vue
View file @
358c894
...
...
@@ -22,33 +22,33 @@
</div>
<div
class=
"item"
>
提供方:
<el-select
v-model=
"searchObj.supplier"
>
<el-select
size=
"small"
v-model=
"searchObj.supplier"
>
<el-option
v-for=
"item in supplierList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
<div
class=
"item"
>
商品状态:
<el-select
v-model=
"searchObj.status"
>
<el-select
size=
"small"
v-model=
"searchObj.status"
>
<el-option
v-for=
"item in statusList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
<div
class=
"item"
>
品牌名称:
<el-select
v-model=
"searchObj.brandName"
filterable
>
<el-select
size=
"small"
v-model=
"searchObj.brandName"
filterable
>
<el-option
v-for=
"item in goodsBrandList"
:key=
"item.id"
:label=
"item.brandName"
:value=
"item.brandName"
></el-option>
</el-select>
</div>
</div>
<div
class=
"bottom"
>
<el-button-group>
<el-button
type=
"primary"
@
click=
"search"
>
查询
</el-button>
<el-button
type=
"default"
@
click=
"reset"
>
重置
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"search"
>
查询
</el-button>
<el-button
size=
"small"
type=
"default"
@
click=
"reset"
>
重置
</el-button>
</el-button-group>
</div>
</div>
<div
class=
"table-box"
>
<div
class=
"table-btn"
>
<el-button
type=
"primary"
@
click=
"jump"
>
新增商品
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"jump"
>
新增商品
</el-button>
</div>
<d2-table
v-if=
"flag"
ref=
"table"
:searchForm=
"searchObj"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
...
...
@@ -58,10 +58,10 @@
<template
slot=
"custom"
>
<div
class=
"table-custom"
>
<el-button-group>
<el-button
type=
"primary"
@
click=
"toggleAll"
>
全选
</el-button>
<el-button
type=
"primary"
@
click=
"batchOperation(1)"
>
上架
</el-button>
<el-button
type=
"primary"
@
click=
"batchOperation(2)"
>
下架
</el-button>
<el-button
type=
"primary"
@
click=
"batchOperation(-1)"
>
删除
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"toggleAll"
>
全选
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"batchOperation(1)"
>
上架
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"batchOperation(2)"
>
下架
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"batchOperation(-1)"
>
删除
</el-button>
</el-button-group>
</div>
</
template
>
...
...
src/views/list/index.vue
View file @
358c894
...
...
@@ -3,7 +3,7 @@
<div
class=
"box"
>
<div
class=
"equity-title"
>
汽车权益
</div>
<div
class=
"add-box"
>
<el-button
type=
"primary"
@
click=
"addEquity(1)"
>
添加
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"addEquity(1)"
>
添加
</el-button>
</div>
<div
class=
"table-box"
>
<d2-table
ref=
"carTable"
:tableParams=
"carTableParams"
:tableData=
"carTableData"
:hasPage=
"false"
:hasNum=
"false"
>
...
...
@@ -32,7 +32,7 @@
<el-button
class=
"addTag"
size=
"small"
@
click=
"showAddInput"
v-else
>
添加分类
</el-button>
</div>
<div
class=
"add-box"
>
<el-button
type=
"primary"
@
click=
"addEquity(2)"
>
添加
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"addEquity(2)"
>
添加
</el-button>
</div>
<div
class=
"table-box"
>
<d2-table
ref=
"carTable"
:tableParams=
"goodsTableParams"
:tableData=
"goodsTableData"
:hasPage=
"false"
:hasNum=
"false"
>
...
...
src/views/order/index.vue
View file @
358c894
...
...
@@ -95,10 +95,12 @@
<el-button
type=
"primary"
@
click=
"search"
size=
"small"
>
查询
</el-button>
<el-button
type=
"default"
@
click=
"reset"
size=
"small"
>
重置
</el-button>
</el-button-group>
</div>
...
...
@@ -223,7 +225,7 @@ export default {
mounted
()
{
},
methods
:
{
}
}
</
script
>
...
...
src/views/rightsCard/index.vue
View file @
358c894
This diff is collapsed.
Click to expand it.
src/views/sale/index.vue
View file @
358c894
...
...
@@ -87,10 +87,12 @@
<el-button
type=
"primary"
@
click=
"search"
size=
"small"
>
查询
</el-button>
<el-button
type=
"default"
@
click=
"reset"
size=
"small"
>
重置
</el-button>
</el-button-group>
</div>
...
...
@@ -130,6 +132,7 @@
<el-button
type=
"text"
@
click=
"jump(scope.scope,'sale')"
size=
"small"
>
查看详情
</el-button>
</span>
</d2-table>
...
...
vue.config.js
View file @
358c894
const
path
=
require
(
'path'
)
const
packageName
=
require
(
'./package.json'
).
name
const
node_env
=
process
.
env
.
NODE_ENV
===
'production'
const
publicPath
=
node_env
?
`/child/
${
packageName
}
/`
:
'/'
// const baseUrl = process.env.VUE_APP_BASE_URL;
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
module
.
exports
=
{
outputDir
:
`dist`
,
publicPath
,
assetsDir
:
'static'
,
//
publicPath
:'/newsso-equity/',
//
np
:'/newsso-equity/',
configureWebpack
:
{
resolve
:
{
alias
:
{
...
...
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