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