Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-dj-oss-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 c6dcb92e
authored
Jul 26, 2021
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/glsx-web/glsx-dj-oss-equity
into master
2 parents
303a7e16
f060d73b
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
202 additions
and
87 deletions
src/api/request.js
src/api/sign.js
src/assets/css/tao.css
src/assets/css/tao.css.map
src/assets/css/tao.scss
src/base.js
src/components/equity-dialog/index.vue
src/mixins/orderMixin.js
src/mixins/searchMixin.js
src/views/tao/financialManagement/index.vue
src/views/tao/gasManagement/index.vue
src/views/tao/goods/addGoods/index.vue
src/views/tao/goods/index/index.vue
src/views/tao/order/detail/index.vue
src/views/tao/order/index/index.vue
src/views/tao/sale/detail/index.vue
src/views/tao/sale/index/index.vue
src/api/request.js
View file @
c6dcb92
...
@@ -7,7 +7,7 @@ import {
...
@@ -7,7 +7,7 @@ import {
const
request
=
(
params
=
{},
url
,
method
=
RequestMethods
.
POST
,
noSignAttr
=
[])
=>
{
const
request
=
(
params
=
{},
url
,
method
=
RequestMethods
.
POST
,
noSignAttr
=
[])
=>
{
params
.
method
=
url
.
trimStart
().
trimEnd
()
params
.
method
=
url
.
trimStart
().
trimEnd
()
// this.$get_session_common_config().axios.sys.appKey
// this.$get_session_common_config().axios.sys.appKey
params
.
appKey
=
'48e5e13229b82c1b4e6e8c96151f0637'
params
.
appKey
=
window
.
$config
.
axios
.
appKey
// params.timestamp = new Date().getTime()
// params.timestamp = new Date().getTime()
params
.
v
=
'1.0.0'
params
.
v
=
'1.0.0'
params
.
format
=
'json'
params
.
format
=
'json'
...
...
src/api/sign.js
View file @
c6dcb92
import
sha1
from
'sha1'
import
sha1
from
'sha1'
import
qs
from
'qs'
import
qs
from
'qs'
const
secret
=
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
const
sign
=
(
params
,
noSignAttr
=
[])
=>
{
const
sign
=
(
params
,
noSignAttr
=
[])
=>
{
const
secret
=
window
.
$config
.
axios
.
secret
delete
params
.
sign
delete
params
.
sign
var
objStr
=
qs
.
stringify
(
params
,
{
arrayFormat
:
'indices'
,
encode
:
false
,
allowDots
:
true
})
var
objStr
=
qs
.
stringify
(
params
,
{
arrayFormat
:
'indices'
,
encode
:
false
,
allowDots
:
true
})
var
objVal
=
objStr
.
split
(
'&'
)
var
objVal
=
objStr
.
split
(
'&'
)
...
...
src/assets/css/tao.css
View file @
c6dcb92
...
@@ -120,7 +120,6 @@ img {
...
@@ -120,7 +120,6 @@ img {
border-radius
:
6px
;
border-radius
:
6px
;
cursor
:
pointer
;
cursor
:
pointer
;
position
:
relative
;
position
:
relative
;
overflow
:
hidden
;
width
:
148px
;
width
:
148px
;
height
:
148px
;
height
:
148px
;
}
}
...
@@ -180,6 +179,10 @@ img {
...
@@ -180,6 +179,10 @@ img {
width
:
100px
;
width
:
100px
;
}
}
.layout
.box
.grid
.grid-item
.item
.value
{
width
:
calc
(
100%
-
100px
);
}
.layout
.box
.grid
.grid-btn
{
.layout
.box
.grid
.grid-btn
{
margin-top
:
40px
;
margin-top
:
40px
;
}
}
...
...
src/assets/css/tao.css.map
View file @
c6dcb92
{
{
"version": 3,
"version": 3,
"mappings": "AAAA,AAAA,CAAC,CAAC;EACA,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC;CACX;;AAED,AAAA,GAAG,CAAC;EACF,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,IAAI;CACb;;AAED,AAAA,OAAO,CAAC;EACN,cAAc,EAAE,IAAI;EACpB,MAAM,EAAE,IAAI;CA
gIb;;AAlID,AAGE,OAHK,CAGL,WAAW,CAAC;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CA6CL,IAAI,CAm
FF,KAAK,CAAC;EACJ,OAAO,EAAE,IAAI;CACd",
"sources": [
"sources": [
"tao.scss"
"tao.scss"
],
],
...
...
src/assets/css/tao.scss
View file @
c6dcb92
...
@@ -84,7 +84,6 @@ img {
...
@@ -84,7 +84,6 @@ img {
border-radius
:
6px
;
border-radius
:
6px
;
cursor
:
pointer
;
cursor
:
pointer
;
position
:
relative
;
position
:
relative
;
overflow
:
hidden
;
width
:
148px
;
width
:
148px
;
height
:
148px
;
height
:
148px
;
&
-file
{
&
-file
{
...
@@ -128,6 +127,9 @@ img {
...
@@ -128,6 +127,9 @@ img {
.label
{
.label
{
width
:
100px
;
width
:
100px
;
}
}
.value
{
width
:
calc
(
100%
-
100px
);
}
}
}
}
}
.grid-btn
{
.grid-btn
{
...
...
src/base.js
View file @
c6dcb92
...
@@ -36,6 +36,11 @@ import '@/components'
...
@@ -36,6 +36,11 @@ import '@/components'
import
'./utils/util.js'
import
'./utils/util.js'
Vue
.
use
(
GlsxVueComponents
)
Vue
.
use
(
GlsxVueComponents
)
var
mixin
=
{
var
mixin
=
{
data
()
{
return
{
eventBus
:
new
Vue
()
}
},
mounted
()
{
mounted
()
{
const
_this
=
this
const
_this
=
this
const
theme
=
new
this
.
$Theme
()
const
theme
=
new
this
.
$Theme
()
...
@@ -46,12 +51,16 @@ var mixin = {
...
@@ -46,12 +51,16 @@ var mixin = {
},
},
height
()
{
height
()
{
return
document
.
height
||
document
.
body
.
offsetHeight
// document.documentElement.clientHeight || document.body.clientHeight //
return
document
.
height
||
document
.
body
.
offsetHeight
// document.documentElement.clientHeight || document.body.clientHeight //
},
translate
(
params
)
{
_this
.
eventBus
.
$emit
(
'params'
,
params
)
}
}
}
}
})
})
connection
.
promise
.
then
(
parent
=>
{
connection
.
promise
.
then
(
parent
=>
{
// const cfg = _this.$get_session_config()
// const cfg = _this.$get_session_config()
// if (cfg) return
_this
.
$$parent
=
parent
// if (cfg) return
parent
.
getResources
().
then
(
config
=>
{
parent
.
getResources
().
then
(
config
=>
{
_this
.
$set_session_config
(
config
)
_this
.
$set_session_config
(
config
)
_this
.
init
()
_this
.
init
()
...
@@ -62,11 +71,28 @@ var mixin = {
...
@@ -62,11 +71,28 @@ var mixin = {
init
()
{
init
()
{
this
.
$children
[
0
].
flag
=
true
this
.
$children
[
0
].
flag
=
true
this
.
$children
[
0
].
init
&&
this
.
$children
[
0
].
init
()
this
.
$children
[
0
].
init
&&
this
.
$children
[
0
].
init
()
},
/**
* 页面跳转方法 用法 :
* this.$root.to(['MOCK系统A', '一键导航', '导航数据', 'MOCK数据B', 'localhost'],'1123')
* 或:
* this.$parent.to(['MOCK系统A', '一键导航', '导航数据', 'MOCK数据B', 'localhost'],'1123')
*
* @param {*} path 如: ['一级菜单名称','二级菜单名称','三级菜单名称','四级菜单名称','五级菜单名称']
* @param {*} params 传给下一个页面的参数
*/
to
(
path
,
params
)
{
if
(
this
.
$$parent
)
{
this
.
$$parent
.
to
(
path
,
params
)
}
else
{
this
.
$$connection
.
promise
.
then
(
parent
=>
{
parent
.
to
(
path
,
params
)
})
}
}
}
},
},
}
}
const
URL
=
'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config'
const
URL
=
'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config'
const
getConfig
=
(
url
=
URL
+
'/oss_dj_equity_config'
)
=>
{
const
getConfig
=
(
url
=
URL
+
'/oss_dj_equity_config'
)
=>
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
...
@@ -74,6 +100,7 @@ const getConfig = (url = URL + '/oss_dj_equity_config') => {
...
@@ -74,6 +100,7 @@ const getConfig = (url = URL + '/oss_dj_equity_config') => {
xhr
.
onreadystatechange
=
()
=>
{
xhr
.
onreadystatechange
=
()
=>
{
if
(
xhr
.
readyState
===
4
&&
xhr
.
status
===
200
)
{
if
(
xhr
.
readyState
===
4
&&
xhr
.
status
===
200
)
{
let
config
=
JSON
.
parse
(
xhr
.
responseText
)
let
config
=
JSON
.
parse
(
xhr
.
responseText
)
window
.
$config
=
config
resolve
({
resolve
({
'vue'
:
Vue
,
'vue'
:
Vue
,
'config'
:
config
'config'
:
config
...
@@ -95,5 +122,5 @@ const render = App => {
...
@@ -95,5 +122,5 @@ const render = App => {
}
}
export
default
{
export
default
{
render
,
render
,
getConfig
getConfig
,
}
}
\ No newline at end of file
\ No newline at end of file
src/components/equity-dialog/index.vue
View file @
c6dcb92
...
@@ -55,7 +55,8 @@
...
@@ -55,7 +55,8 @@
v-for=
"item in brandList"
v-for=
"item in brandList"
:key=
"item.brandId"
:key=
"item.brandId"
:value=
"item.brandId"
:value=
"item.brandId"
>
{{
item
.
brandName
}}
</el-option>
:label=
"item.brandName"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
...
@@ -68,7 +69,7 @@
...
@@ -68,7 +69,7 @@
v-for=
"item in appearanceList"
v-for=
"item in appearanceList"
:key=
"item.value"
:key=
"item.value"
:value=
"item.label"
:value=
"item.label"
>
{{
item
.
label
}}
</el-option>
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
...
@@ -144,10 +145,11 @@ export default {
...
@@ -144,10 +145,11 @@ export default {
name
:
'equity-dialog'
,
name
:
'equity-dialog'
,
data
()
{
data
()
{
return
{
return
{
form
:
{},
form
:
{
appearance
:
''
},
brandList
:
[],
brandList
:
[],
appearanceList
:
[],
appearanceList
:
[],
appearance
:
''
,
supplierList
:
[
supplierList
:
[
{
{
label
:
'广联-加油'
,
label
:
'广联-加油'
,
...
@@ -226,12 +228,6 @@ export default {
...
@@ -226,12 +228,6 @@ export default {
}
}
}
}
},
},
'form.brandId'
(
n
)
{
goodsEquityManageApi
.
getAppearanceList
({
brandId
:
n
}).
then
(({
data
})
=>
{
data
.
map
(
i
=>
i
.
label
=
{
1
:
'卡券'
,
2
:
'直充'
}[
i
.
appearance
])
this
.
appearanceList
=
data
})
},
},
},
methods
:
{
methods
:
{
close
()
{
close
()
{
...
@@ -279,9 +275,17 @@ export default {
...
@@ -279,9 +275,17 @@ export default {
}
}
})
})
},
},
getAppearanceList
(
brandId
)
{
goodsEquityManageApi
.
getAppearanceList
({
brandId
}).
then
(({
data
})
=>
{
data
.
map
(
i
=>
i
.
label
=
{
1
:
'卡券'
,
2
:
'直充'
}[
i
.
appearance
])
this
.
appearanceList
=
data
this
.
form
.
appearance
=
''
})
},
changeBrandName
(
e
)
{
changeBrandName
(
e
)
{
console
.
log
(
e
)
this
.
form
.
brandId
=
e
this
.
form
.
brandId
=
e
this
.
getAppearanceList
(
e
)
this
.
brandList
.
map
(
i
=>
{
this
.
brandList
.
map
(
i
=>
{
if
(
i
.
brandId
==
e
)
{
if
(
i
.
brandId
==
e
)
{
this
.
form
.
brandName
=
i
.
brandName
this
.
form
.
brandName
=
i
.
brandName
...
...
src/mixins/orderMixin.js
View file @
c6dcb92
...
@@ -4,12 +4,17 @@ export default {
...
@@ -4,12 +4,17 @@ export default {
statusEnum
:
{
statusEnum
:
{
0
:
'未支付'
,
0
:
'未支付'
,
1
:
'已支付'
,
1
:
'已支付'
,
2
:
'
已发
货'
,
2
:
'
待收
货'
,
3
:
'已完成'
,
3
:
'已完成'
,
4
:
'售后中'
,
4
:
'售后中'
,
5
:
'退款失败'
,
5
:
'退款失败'
,
6
:
'已退款'
,
6
:
'已退款'
,
},
},
qb_statusEnum
:
{
3
:
'充值成功'
,
6
:
'充值失败'
,
2
:
'充值中'
},
channlList
:
[{
channlList
:
[{
label
:
'海威'
,
label
:
'海威'
,
value
:
'HW'
value
:
'HW'
...
@@ -29,6 +34,7 @@ export default {
...
@@ -29,6 +34,7 @@ export default {
value
:
[
4
]
value
:
[
4
]
}
}
],
],
appereanceList
:
[{
appereanceList
:
[{
label
:
'卡券'
,
label
:
'卡券'
,
value
:
1
value
:
1
...
@@ -56,8 +62,16 @@ export default {
...
@@ -56,8 +62,16 @@ export default {
this
.
search
()
this
.
search
()
})
})
},
},
jump
({
orderCode
})
{
jump
(
params
,
name
)
{
window
.
location
.
href
=
`./detail.html?orderCode=
${
orderCode
}
`
let
parent
=
name
==
'order'
?
'订单管理'
:
'售后管理'
// window.location.href = `./detail.html?orderCode=${orderCode}`
let
target
=
[
'嘀加权益卡管理平台'
,
'运营平台'
,
'权益'
,
parent
,
'*详情'
]
if
(
window
.
$config
.
axios
.
environment
)
{
let
arr
=
name
==
'order'
?
[
'订单管理'
,
'*权益订单详情'
]
:
[
'售后管理'
,
'售后详情'
]
target
=
[
'权益卡管理平台'
,
'运营平台'
,
'SCRM权益平台'
,
...
arr
]
}
console
.
log
(
target
,
{
orderCode
:
params
.
orderCode
})
this
.
$root
.
to
(
target
,
{
orderCode
:
params
.
orderCode
})
}
}
},
},
}
}
\ No newline at end of file
\ No newline at end of file
src/mixins/searchMixin.js
View file @
c6dcb92
import
{
goodsEquityManage
Api
}
from
'@api/api'
import
{
order
Api
}
from
'@api/api'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -19,7 +19,7 @@ export default {
...
@@ -19,7 +19,7 @@ export default {
},
},
methods
:
{
methods
:
{
getGoodsBrandList
()
{
getGoodsBrandList
()
{
goodsEquityManageApi
.
getGoods
BrandList
().
then
(({
data
})
=>
{
orderApi
.
getAll
BrandList
().
then
(({
data
})
=>
{
this
.
brandList
=
data
this
.
brandList
=
data
})
})
},
},
...
...
src/views/tao/financialManagement/index.vue
View file @
c6dcb92
...
@@ -205,8 +205,10 @@ export default {
...
@@ -205,8 +205,10 @@ export default {
},
},
{
{
label
:
'商品名称'
,
label
:
'商品名称'
,
prop
:
'productName'
,
minWidth
:
'200'
,
minWidth
:
'200'
,
formatter
(
cell
)
{
return
cell
.
appearance
==
2
?
`
${
cell
.
productName
}${
cell
.
denomination
}
`
:
cell
.
productName
}
},
},
{
{
label
:
'订单成本金额'
,
label
:
'订单成本金额'
,
...
@@ -234,7 +236,7 @@ export default {
...
@@ -234,7 +236,7 @@ export default {
label
:
'订单状态'
,
label
:
'订单状态'
,
minWidth
:
'200'
,
minWidth
:
'200'
,
formatter
(
cell
)
{
formatter
(
cell
)
{
return
window
.
vm
.
$children
[
0
].
statusEnum
[
cell
.
orderStatus
]
return
cell
.
appearance
==
1
?
window
.
vm
.
$children
[
0
].
statusEnum
[
cell
.
orderStatus
]
:
window
.
vm
.
$children
[
0
].
qb_
statusEnum
[
cell
.
orderStatus
]
}
}
},
},
{
{
...
...
src/views/tao/gasManagement/index.vue
View file @
c6dcb92
...
@@ -134,9 +134,7 @@ export default {
...
@@ -134,9 +134,7 @@ export default {
{
{
label
:
'油号'
,
label
:
'油号'
,
minWidth
:
'200'
,
minWidth
:
'200'
,
formatter
:
(
cell
)
=>
{
prop
:
'oilName'
return
`
${
cell
.
oilNo
}
#`
}
},
},
{
{
label
:
'加油升数(L)'
,
label
:
'加油升数(L)'
,
...
...
src/views/tao/goods/addGoods/index.vue
View file @
c6dcb92
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
:key=
"resetTime"
:key=
"resetTime"
>
>
<div
class=
"box"
>
<div
class=
"box"
>
<
back
/
>
<
!--
<back
/>
--
>
<div
class=
"title"
>
商品类型
</div>
<div
class=
"title"
>
商品类型
</div>
<el-radio-group
:value=
"1"
>
<el-radio-group
:value=
"1"
>
<el-radio-button
:label=
"1"
>
品牌商品
</el-radio-button>
<el-radio-button
:label=
"1"
>
品牌商品
</el-radio-button>
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
<el-radio-group
<el-radio-group
v-model=
"ruleForm.appearance"
v-model=
"ruleForm.appearance"
:disabled=
"isEdit"
: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>
...
@@ -94,19 +95,26 @@
...
@@ -94,19 +95,26 @@
prop=
"goodsImage"
prop=
"goodsImage"
>
>
<el-upload
<el-upload
action=
""
class=
"avatar-uploader"
class=
"avatar-uploader"
:show-file-list=
"false"
:show-file-list=
"false"
:before-upload=
"upLoadImg"
:before-upload=
"upLoadImg"
>
>
<img
<template
v-if=
"ruleForm.goodsImage"
>
v-if=
"ruleForm.goodsImage"
<img
:src=
"ruleForm.goodsImage"
:src=
"ruleForm.goodsImage"
class=
"avatar"
class=
"avatar"
>
>
<i
class=
"el-icon-delete-solid uploader-del-icon"
@
click
.
stop=
"delImg"
></i>
</
template
>
<i
<i
v-else
v-else
class=
"el-icon-plus avatar-uploader-icon"
class=
"el-icon-plus avatar-uploader-icon"
></i>
></i>
</el-upload>
</el-upload>
</el-form-item>
</el-form-item>
</div>
</div>
...
@@ -117,7 +125,10 @@
...
@@ -117,7 +125,10 @@
label=
"直充面额"
label=
"直充面额"
prop=
"denomination"
prop=
"denomination"
>
>
<el-input
v-model=
"ruleForm.denomination"
></el-input>
<el-input
v-model=
"ruleForm.denomination"
maxlength=
"10"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
label=
"销售价"
label=
"销售价"
...
@@ -334,14 +345,18 @@ export default {
...
@@ -334,14 +345,18 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
let
{
id
,
edit
}
=
this
.
getParams
()
this
.
$root
.
eventBus
.
$on
(
'params'
,
({
id
,
edit
})
=>
{
if
(
id
)
{
console
.
log
({
id
,
edit
})
this
.
getEquityGoodsById
(
id
)
if
(
id
)
{
this
.
isEdit
=
!
edit
this
.
getEquityGoodsById
(
id
)
}
else
{
this
.
isEdit
=
!
edit
this
.
getListWithPageOutGoods
()
}
else
{
this
.
isNewGoods
=
true
this
.
getListWithPageOutGoods
()
}
this
.
isNewGoods
=
true
}
})
// let { id, edit } = this.getParams()
},
},
methods
:
{
methods
:
{
...
@@ -350,12 +365,14 @@ export default {
...
@@ -350,12 +365,14 @@ export default {
if
(
code
==
0
)
{
if
(
code
==
0
)
{
Object
.
keys
(
data
).
map
(
key
=>
{
Object
.
keys
(
data
).
map
(
key
=>
{
if
(
data
[
key
]
==
null
)
delete
data
[
key
]
if
(
data
[
key
]
==
null
)
delete
data
[
key
]
let
ketList
=
'
denomination|
salesPrice|costPrice|lineationPrice|'
let
ketList
=
'salesPrice|costPrice|lineationPrice|'
if
(
ketList
.
indexOf
(
`
${
key
}
|`
)
!=
-
1
)
{
if
(
ketList
.
indexOf
(
`
${
key
}
|`
)
!=
-
1
)
{
data
[
key
]
=
Number
(
data
[
key
])
data
[
key
]
=
data
[
key
]
?
Number
(
data
[
key
])
:
0
}
}
})
})
data
.
stock
=
data
.
stock
==
-
1
?
'无限制'
:
data
.
stock
data
.
stock
=
data
.
stock
==
-
1
?
'无限制'
:
data
.
stock
data
.
buysNotes
=
data
.
buysNotes
?
decodeURIComponent
(
data
.
buysNotes
)
:
''
data
.
useNotes
=
data
.
useNotes
?
decodeURIComponent
(
data
.
useNotes
)
:
''
this
.
ruleForm
=
data
this
.
ruleForm
=
data
}
else
{
}
else
{
this
.
$message
.
error
(
message
)
this
.
$message
.
error
(
message
)
...
@@ -425,8 +442,18 @@ export default {
...
@@ -425,8 +442,18 @@ export default {
}
}
}
}
},
},
delImg
()
{
this
.
ruleForm
.
goodsImage
=
''
},
changeAppearance
()
{
this
.
$refs
.
ruleForm
.
resetFields
()
},
onSubmit
(
flag
)
{
onSubmit
(
flag
)
{
this
.
ruleForm
.
insertOperationType
=
flag
==
'save'
?
0
:
1
if
(
flag
==
'save'
)
{
this
.
createGoods
()
return
}
this
.
$refs
.
ruleForm
.
validate
((
valid
)
=>
{
this
.
$refs
.
ruleForm
.
validate
((
valid
)
=>
{
if
(
!
valid
)
{
if
(
!
valid
)
{
console
.
log
(
'error submit!!'
)
console
.
log
(
'error submit!!'
)
...
@@ -439,11 +466,7 @@ export default {
...
@@ -439,11 +466,7 @@ export default {
this
.
brandNameList
.
map
(
e
=>
{
this
.
brandNameList
.
map
(
e
=>
{
if
(
e
.
brandId
==
this
.
ruleForm
.
brandId
)
this
.
ruleForm
.
brandName
=
e
.
brandName
if
(
e
.
brandId
==
this
.
ruleForm
.
brandId
)
this
.
ruleForm
.
brandName
=
e
.
brandName
})
})
console
.
log
(
this
.
ruleForm
)
if
(
flag
)
{
this
.
createGoods
()
return
}
let
{
supplier
,
brandId
,
productId
,
appearance
}
=
this
.
ruleForm
let
{
supplier
,
brandId
,
productId
,
appearance
}
=
this
.
ruleForm
orderApi
.
sameGoodsCheck
({
orderApi
.
sameGoodsCheck
({
supplier
,
supplier
,
...
@@ -490,9 +513,16 @@ export default {
...
@@ -490,9 +513,16 @@ export default {
})
})
},
},
createGoods
(
name
=
'createGoods'
)
{
createGoods
(
name
=
'createGoods'
)
{
orderApi
[
name
](
this
.
ruleForm
).
then
(({
code
,
message
})
=>
{
let
obj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
ruleForm
))
obj
.
buysNotes
=
encodeURIComponent
(
obj
.
buysNotes
)
if
(
obj
.
useNotes
)
obj
.
useNotes
=
encodeURIComponent
(
obj
.
useNotes
)
if
(
obj
.
appearance
==
1
)
delete
obj
.
denomination
orderApi
[
name
](
obj
).
then
(({
code
,
message
})
=>
{
if
(
code
==
0
)
{
if
(
code
==
0
)
{
window
.
location
.
href
=
'./index.html'
this
.
$message
({
message
:
'操作成功!'
,
type
:
'success'
})
}
else
{
}
else
{
this
.
$message
.
error
(
message
)
this
.
$message
.
error
(
message
)
}
}
...
@@ -503,4 +533,14 @@ export default {
...
@@ -503,4 +533,14 @@ export default {
</
script
>
</
script
>
<
style
src=
"@a/css/tao.css"
></
style
>
<
style
src=
"@a/css/tao.css"
></
style
>
<
style
scoped
>
<
style
scoped
>
.uploader-del-icon
{
position
:
absolute
;
width
:
28px
;
height
:
28px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
top
:
0px
;
right
:
-28px
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/tao/goods/index/index.vue
View file @
c6dcb92
...
@@ -183,7 +183,7 @@ export default {
...
@@ -183,7 +183,7 @@ export default {
label
:
'商品SKU'
,
label
:
'商品SKU'
,
minWidth
:
'200'
,
minWidth
:
'200'
,
formatter
:
(
cell
)
=>
{
formatter
:
(
cell
)
=>
{
return
cell
.
appearance
==
1
?
`
${
cell
.
brandName
}${
cell
.
productName
}
`
:
`<div>
${
cell
.
brandName
}${
cell
.
productName
}
</div><div>
${
cell
.
denomination
}
元
</div>`
return
cell
.
appearance
==
1
?
`
${
cell
.
brandName
||
''
}${
cell
.
productName
||
''
}
`
:
`<div>
${
cell
.
brandName
||
''
}${
cell
.
productName
||
''
}
</div><div>
${
cell
.
denomination
||
''
}
</div>`
}
}
},
},
{
{
...
@@ -240,10 +240,17 @@ export default {
...
@@ -240,10 +240,17 @@ export default {
})
})
},
},
jump
({
id
,
status
})
{
jump
({
id
,
status
})
{
let
url
=
'./addGoods.html'
let
params
=
{}
if
(
id
)
url
=
`
${
url
}
?id=
${
id
}
`
if
(
id
)
params
.
id
=
id
if
(
status
==
0
)
url
=
`
${
url
}
&edit=true`
if
(
status
==
0
)
params
.
edit
=
true
window
.
location
.
href
=
url
let
target
=
[
'嘀加权益卡管理平台'
,
'运营平台'
,
'权益'
,
'商品管理'
,
'*商品'
]
if
(
window
.
$config
.
axios
.
environment
)
{
target
=
[
'权益卡管理平台'
,
'运营平台'
,
'SCRM权益平台'
,
'商品管理'
,
'*商品详情'
]
}
console
.
log
(
target
)
// window.location.href = url
// let target =
this
.
$root
.
to
(
target
,
params
)
},
},
copy
({
id
})
{
copy
({
id
})
{
orderApi
.
getEquityGoodsById
({
id
}).
then
(({
code
,
data
,
message
})
=>
{
orderApi
.
getEquityGoodsById
({
id
}).
then
(({
code
,
data
,
message
})
=>
{
...
...
src/views/tao/order/detail/index.vue
View file @
c6dcb92
<
template
>
<
template
>
<div
class=
"layout"
>
<div
class=
"layout"
>
<div
class=
"box"
>
<div
class=
"box"
>
<
back
/
>
<
!--
<back
/>
--
>
<div
class=
"grid"
>
<div
class=
"grid"
>
<div
class=
"grid-item"
>
订单编号
:
{{
detailInfo
.
orderCode
}}
</div>
<div
class=
"grid-item"
>
订单编号
:
{{
detailInfo
.
orderCode
}}
</div>
<div
class=
"grid-item"
>
下单时间
:
{{
detailInfo
.
time
}}
</div>
<div
class=
"grid-item"
>
下单时间
:
{{
detailInfo
.
time
}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"box"
>
<div
class=
"box"
>
...
@@ -32,15 +32,18 @@
...
@@ -32,15 +32,18 @@
</div>
</div>
</template>
</template>
<
template
v-if=
"item.btn"
>
<
template
v-if=
"item.btn"
>
<
template
v-if=
"detailInfo.openRefund == 0
"
>
<
div
class=
"grid-btn
"
>
<div
class=
"grid-btn"
>
售后:
售后:
<template
v-if=
"detailInfo.openRefund == 0"
>
<el-button
<el-button
type=
"primary"
type=
"primary"
@
click=
"openRefund"
@
click=
"openRefund"
>
开启
</el-button>
>
开启
</el-button>
</div>
</
template
>
</
template
>
<
template
v-else
>
<span>
已开启
</span>
</
template
>
</div>
</template>
</template>
</div>
</div>
...
@@ -140,13 +143,14 @@ export default {
...
@@ -140,13 +143,14 @@ export default {
label
:
'商品信息'
,
label
:
'商品信息'
,
minWidth
:
'300'
,
minWidth
:
'300'
,
formatter
:
(
cell
)
=>
{
formatter
:
(
cell
)
=>
{
let
str
=
cell
.
appearance
==
2
?
`<div>
${
cell
.
productName
}${
cell
.
denomination
}
</div>`
:
`<div>
${
cell
.
productName
}
</div>`
return
`<div class="goods">
return
`<div class="goods">
<div class="goods-img">
<div class="goods-img">
<img src="
${
cell
.
goodsImage
}
" >
<img src="
${
cell
.
goodsImage
}
" >
</div>
</div>
<div class="goods-info">
<div class="goods-info">
<div>
${
cell
.
brandName
}
</div>
<div>
${
cell
.
brandName
}
</div>
<div>
${
cell
.
productName
}
</div>
${
str
}
</div>
</div>
</div>`
</div>`
}
}
...
@@ -177,19 +181,24 @@ export default {
...
@@ -177,19 +181,24 @@ export default {
label
:
'订单状态'
,
label
:
'订单状态'
,
minWidth
:
'200'
,
minWidth
:
'200'
,
formatter
:
(
cell
)
=>
{
formatter
:
(
cell
)
=>
{
return
window
.
vm
.
$children
[
0
].
statusEnum
[
cell
.
orderStatus
]
return
cell
.
appearance
==
1
?
window
.
vm
.
$children
[
0
].
statusEnum
[
cell
.
orderStatus
]
:
window
.
vm
.
$children
[
0
].
qb_
statusEnum
[
cell
.
orderStatus
]
}
}
},
},
]
]
}
},
params
:
{}
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getDetail
()
this
.
$root
.
eventBus
.
$on
(
'params'
,
params
=>
{
console
.
log
(
params
,
'------'
)
this
.
params
=
params
this
.
getDetail
(
params
)
})
},
},
methods
:
{
methods
:
{
getDetail
()
{
getDetail
(
params
)
{
orderApi
.
getOrderDetail
(
this
.
getParams
()
).
then
(({
code
,
data
})
=>
{
orderApi
.
getOrderDetail
(
params
).
then
(({
code
,
data
})
=>
{
if
(
code
==
0
)
{
if
(
code
==
0
)
{
data
.
payStatus
=
'已付款'
data
.
payStatus
=
'已付款'
data
.
payType
=
'微信支付'
data
.
payType
=
'微信支付'
...
@@ -202,7 +211,7 @@ export default {
...
@@ -202,7 +211,7 @@ export default {
})
})
},
},
openRefund
()
{
openRefund
()
{
orderApi
.
openRefund
(
this
.
getParams
()
).
then
(({
code
,
message
})
=>
{
orderApi
.
openRefund
(
this
.
params
).
then
(({
code
,
message
})
=>
{
if
(
code
==
0
)
{
if
(
code
==
0
)
{
this
.
$message
({
this
.
$message
({
showClose
:
true
,
showClose
:
true
,
...
@@ -240,8 +249,11 @@ export default {
...
@@ -240,8 +249,11 @@ export default {
display
:
flex
;
display
:
flex
;
}
}
.goods-img
{
.goods-img
{
width
:
100px
;
width
:
100px
!important
;
height
:
100px
;
height
:
100px
!important
;
margin-right
:
10px
;
margin-right
:
10px
;
}
}
.goods-info
{
width
:
calc
(
100%
-
110px
);
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/tao/order/index/index.vue
View file @
c6dcb92
...
@@ -141,7 +141,7 @@
...
@@ -141,7 +141,7 @@
>
>
<el-button
<el-button
type=
"text"
type=
"text"
@
click=
"jump(scope.scope)"
@
click=
"jump(scope.scope
,'order'
)"
>
查看详情
</el-button>
>
查看详情
</el-button>
</span>
</span>
</d2-table>
</d2-table>
...
@@ -169,7 +169,8 @@ export default {
...
@@ -169,7 +169,8 @@ export default {
minWidth
:
'300'
,
minWidth
:
'300'
,
align
:
'left'
,
align
:
'left'
,
formatter
(
cell
)
{
formatter
(
cell
)
{
return
`订单编号:
${
cell
.
orderCode
}
\n
${
cell
.
brandName
}
\n
${
cell
.
productName
}
`
let
str
=
cell
.
appearance
==
2
?
`<div>
${
cell
.
productName
}${
cell
.
denomination
}
</div>`
:
`<div>
${
cell
.
productName
}
</div>`
return
`<div>订单编号:
${
cell
.
orderCode
}
</div><div>
${
cell
.
brandName
}
</div>
${
str
}
`
}
}
},
},
{
{
...
@@ -195,7 +196,7 @@ export default {
...
@@ -195,7 +196,7 @@ export default {
label
:
'订单状态'
,
label
:
'订单状态'
,
minWidth
:
'200'
,
minWidth
:
'200'
,
formatter
(
cell
)
{
formatter
(
cell
)
{
return
window
.
vm
.
$children
[
0
].
statusEnum
[
cell
.
orderStatus
]
return
cell
.
appearance
==
1
?
window
.
vm
.
$children
[
0
].
statusEnum
[
cell
.
orderStatus
]
:
window
.
vm
.
$children
[
0
].
qb_
statusEnum
[
cell
.
orderStatus
]
}
}
},
},
{
{
...
...
src/views/tao/sale/detail/index.vue
View file @
c6dcb92
<
template
>
<
template
>
<div
class=
"layout"
>
<div
class=
"layout"
>
<div
class=
"box"
>
<div
class=
"box"
>
<
back
/
>
<
!--
<back
/>
--
>
<div
class=
"grid"
>
<div
class=
"grid"
>
<template
v-for=
"(item,index) in detailInfoObj"
>
<template
v-for=
"(item,index) in detailInfoObj"
>
<div
<div
...
@@ -146,11 +146,15 @@ export default {
...
@@ -146,11 +146,15 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getDetail
()
this
.
$root
.
eventBus
.
$on
(
'params'
,
params
=>
{
console
.
log
(
params
)
this
.
getDetail
(
params
)
})
},
},
methods
:
{
methods
:
{
getDetail
()
{
getDetail
(
params
)
{
orderApi
.
getRefundDetail
(
this
.
getParams
()
).
then
(({
code
,
data
})
=>
{
orderApi
.
getRefundDetail
(
params
).
then
(({
code
,
data
})
=>
{
if
(
code
==
0
)
{
if
(
code
==
0
)
{
console
.
log
(
data
)
console
.
log
(
data
)
this
.
detailInfo
=
data
this
.
detailInfo
=
data
...
@@ -166,6 +170,7 @@ export default {
...
@@ -166,6 +170,7 @@ export default {
<
style
scoped
>
<
style
scoped
>
.flex
.info
{
.flex
.info
{
margin-left
:
10px
;
margin-left
:
10px
;
width
:
calc
(
100%
-
110px
);
}
}
.img-describe
{
.img-describe
{
width
:
100px
;
width
:
100px
;
...
...
src/views/tao/sale/index/index.vue
View file @
c6dcb92
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
></el-input>
></el-input>
</div>
</div>
</div>
</div>
<div
class=
"item"
>
<
!--
<
div
class=
"item"
>
渠道:
渠道:
<el-select
<el-select
v-model=
"searchObj.channl"
v-model=
"searchObj.channl"
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
>
>
</el-option>
</el-option>
</el-select>
</el-select>
</div>
</div>
-->
<div
class=
"item"
>
<div
class=
"item"
>
门店名称:
门店名称:
<div
class=
"input"
>
<div
class=
"input"
>
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
>
>
<el-button
<el-button
type=
"text"
type=
"text"
@
click=
"jump(scope.scope)"
@
click=
"jump(scope.scope
,'sale'
)"
>
查看详情
</el-button>
>
查看详情
</el-button>
</span>
</span>
</d2-table>
</d2-table>
...
@@ -182,7 +182,7 @@ export default {
...
@@ -182,7 +182,7 @@ export default {
minWidth
:
'300'
,
minWidth
:
'300'
,
formatter
:
(
cell
)
=>
{
formatter
:
(
cell
)
=>
{
return
`<div class="refund-box">
return
`<div class="refund-box">
<div class="refund-title">订单
渠道:
${
cell
.
channel
Name
}
</div>
<div class="refund-title">订单
门店:
${
cell
.
merchant
Name
}
</div>
<div>
${
cell
.
orderPrices
}
元</div>
<div>
${
cell
.
orderPrices
}
元</div>
<div>
${
cell
.
goodsQuality
}
张</div>
<div>
${
cell
.
goodsQuality
}
张</div>
</div>`
</div>`
...
...
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