Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-services
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 208d9014
authored
Dec 06, 2021
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
售中转化
1 parent
73ecb5dc
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
309 additions
and
181 deletions
public/index.html
src/api/modules/rules.js
src/components/down-menu/index.vue
src/components/search-select/index.vue
src/components/service-echart/pie.vue
src/views/inSale/couponsOrder.vue
src/views/inSale/myFashionableOrder.vue
src/views/inSale/open.vue
src/views/inSale/upgradeOrder.vue
public/index.html
View file @
208d901
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<meta
name=
"referrer"
content=
"never"
>
<meta
name=
"referrer"
content=
"never"
>
<meta
name=
"referrer"
content=
"no-referrer"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<!-- 使用CDN的CSS文件 -->
<!-- 使用CDN的CSS文件 -->
<
% for (var i in htmlWebpackPlugin.options.cdn
&&
htmlWebpackPlugin.options.cdn.css) { %>
<
% for (var i in htmlWebpackPlugin.options.cdn
&&
htmlWebpackPlugin.options.cdn.css) { %>
...
...
src/api/modules/rules.js
View file @
208d901
...
@@ -116,6 +116,16 @@ const introConpute = params => {
...
@@ -116,6 +116,16 @@ const introConpute = params => {
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
// 获取商户列表
const
getMerchantList
=
params
=>
{
params
.
method
=
`entmicro.api.common.findMerchantTreeByMerchantNo.list`
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
}
export
{
export
{
getRulesData
,
getRulesData
,
...
@@ -139,5 +149,6 @@ export {
...
@@ -139,5 +149,6 @@ export {
orderTotalNumOfJT
,
orderTotalNumOfJT
,
myAccountTotalNumOfJT
,
myAccountTotalNumOfJT
,
get4SList
,
get4SList
,
introConpute
introConpute
,
getMerchantList
}
}
\ No newline at end of file
\ No newline at end of file
src/components/down-menu/index.vue
View file @
208d901
...
@@ -58,6 +58,9 @@ export default {
...
@@ -58,6 +58,9 @@ export default {
border-radius
:
0px
4px
4px
0px
;
border-radius
:
0px
4px
4px
0px
;
//
border
:
1px
solid
#e8e8ea
;
//
border
:
1px
solid
#e8e8ea
;
}
}
//
.right_widget
/
deep
/
.el-select
.el-input
{
//
border
:
none
;
//
}
.el-icon-caret-bottom
{
.el-icon-caret-bottom
{
color
:
#999
;
color
:
#999
;
}
}
...
@@ -65,6 +68,9 @@ export default {
...
@@ -65,6 +68,9 @@ export default {
overflow
:
hidden
;
overflow
:
hidden
;
white-space
:
nowrap
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
border-top-right-radius
:
0
;
border-bottom-right-radius
:
0
;
border-right
:
none
;
}
}
}
}
</
style
>
</
style
>
src/components/search-select/index.vue
0 → 100644
View file @
208d901
<
template
>
<div
v-if=
"show"
class=
"select-seach-con"
>
<div
class=
"find_line"
>
<div
class=
"cell_wrapper flex_sc"
>
<div
v-if=
"accountLevel == 2"
class=
"cell_label h13_title"
>
4S店
</div>
<div
v-if=
"accountLevel == 1 && !isAdmin"
class=
"cell_label h13_title"
>
市级经销商
</div>
<div
v-if=
"accountLevel == 1 && isAdmin"
class=
"cell_label h13_title"
>
省级经销商
</div>
<el-select
v-if=
"accountLevel == 2"
clearable
size=
"mini"
v-model=
"storeId"
placeholder=
"请选择"
@
change=
"selectStoreId"
>
<el-option
v-for=
"item in storeList"
:key=
"item.id"
:label=
"item.label"
:value=
"item.id"
></el-option>
</el-select>
<el-select
v-if=
"accountLevel == 1"
clearable
size=
"mini"
v-model=
"nextAccountId"
placeholder=
"请选择"
@
change=
"selectCurAccount"
>
<el-option
v-for=
"item in storeList"
:key=
"item.id"
:label=
"item.label"
:value=
"item.id"
></el-option>
</el-select>
</div>
<div
v-if=
"nextAccountId"
class=
"cell_wrapper flex_sc"
>
<div
v-if=
"accountLevel == 1 && !isAdmin"
class=
"cell_label h13_title"
>
4S店
</div>
<div
v-if=
"accountLevel == 1 && isAdmin"
class=
"cell_label h13_title"
>
市级经销商
</div>
<el-select
v-if=
"!isAdmin"
clearable
size=
"mini"
v-model=
"storeId"
placeholder=
"请选择"
@
change=
"selectStoreId"
>
<el-option
v-for=
"item in newStroeList"
:key=
"item.id"
:label=
"item.label"
:value=
"item.id"
></el-option>
</el-select>
<el-select
v-if=
"isAdmin"
clearable
size=
"mini"
v-model=
"nextAccountId1"
placeholder=
"请选择"
@
change=
"selectLastAccount"
>
<el-option
v-for=
"item in newStroeList"
:key=
"item.id"
:label=
"item.label"
:value=
"item.id"
></el-option>
</el-select>
</div>
<div
v-if=
"nextAccountId1"
class=
"cell_wrapper flex_sc"
>
<div
class=
"cell_label h13_title"
>
4S店
</div>
<el-select
clearable
size=
"mini"
v-model=
"storeId"
placeholder=
"请选择"
@
change=
"selectStoreId"
>
<el-option
v-for=
"item in lastStoreList"
:key=
"item.id"
:label=
"item.label"
:value=
"item.id"
></el-option>
</el-select>
</div>
</div>
</div>
</
template
>
<
script
>
import
{
getMerchantList
}
from
'../../api/modules/rules'
export
default
{
name
:
''
,
props
:
{
show
:
Boolean
},
data
()
{
return
{
accountLevel
:
1
,
isAdmin
:
false
,
storeId
:
''
,
nextAccountId
:
''
,
nextAccountId1
:
''
,
newStroeList
:
[],
lastStoreList
:
[],
merchantList
:
[],
storeList
:
[]
}
},
created
()
{
const
{
session
}
=
this
.
$globalState
this
.
accountLevel
=
session
.
accountLevel
this
.
isAdmin
=
session
.
admin
if
(
session
.
accountLevel
<
3
)
{
this
.
getMerchantListData
()
}
},
methods
:
{
getMerchantListData
()
{
getMerchantList
({}).
then
(
res
=>
{
this
.
merchantList
=
res
||
[]
})
},
selectCurMechant
(
e
)
{
this
.
$emit
(
'getId'
,
e
)
this
.
nextAccountId
=
''
this
.
storeId
=
''
this
.
nextAccountId1
=
''
if
(
!
e
)
{
this
.
showThreeLine
=
false
return
}
let
arr
=
this
.
merchantList
let
newArr
=
[]
arr
.
forEach
(
item
=>
{
if
(
item
.
id
==
Number
(
e
))
{
newArr
=
item
.
children
||
[]
}
})
this
.
storeList
=
newArr
// 测试时使用
if
(
this
.
isAdmin
)
{
this
.
storeList
=
arr
}
this
.
showThreeLine
=
true
},
selectCurAccount
(
e
)
{
this
.
storeId
=
''
this
.
nextAccountId1
=
''
this
.
$emit
(
'getId'
,
e
)
if
(
!
e
)
{
return
}
let
newArr
=
[]
this
.
storeList
.
forEach
(
item
=>
{
if
(
item
.
id
==
e
)
{
newArr
=
item
.
children
||
[]
}
})
this
.
newStroeList
=
newArr
},
selectLastAccount
(
e
)
{
this
.
$emit
(
'getId'
,
e
)
this
.
storeId
=
''
if
(
!
e
)
{
return
}
let
newArr
=
[]
this
.
newStroeList
.
forEach
(
item
=>
{
if
(
item
.
id
==
e
)
{
newArr
=
item
.
children
||
[]
}
})
this
.
lastStoreList
=
newArr
},
selectStoreId
(
e
)
{
this
.
$emit
(
'getId'
,
e
)
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.select-seach-con
{
.find_line
{
padding
:
9px
15px
;
display
:
flex
;
align-items
:
center
;
.cell_wrapper
{
width
:
25%
;
box-sizing
:
border-box
;
padding-right
:
30px
;
.cell_label
{
text-align
:
right
;
padding-right
:
15px
;
white-space
:
nowrap
;
}
.cell_btn
{
width
:
78px
;
}
.cell_btn_max
{
width
:
156px
;
}
}
}
}
</
style
>
src/components/service-echart/pie.vue
View file @
208d901
...
@@ -122,6 +122,7 @@ export default {
...
@@ -122,6 +122,7 @@ export default {
let
inSale
=
num1
*
12
*
onSalePermeability
*
onSaleUnitPrice
let
inSale
=
num1
*
12
*
onSalePermeability
*
onSaleUnitPrice
let
afterSale
=
num1
*
12
*
3
*
afterSalePermeability
*
afterSaleUnitPrice
let
afterSale
=
num1
*
12
*
3
*
afterSalePermeability
*
afterSaleUnitPrice
let
totalValue
=
beforeSale
+
inSale
+
afterSale
let
totalValue
=
beforeSale
+
inSale
+
afterSale
console
.
log
(
totalValue
);
let
singleStoreValue
=
totalValue
/
num2
let
singleStoreValue
=
totalValue
/
num2
let
totalProduct
=
this
.
priceFormat
(
totalValue
)
let
totalProduct
=
this
.
priceFormat
(
totalValue
)
let
singleProduct
=
this
.
priceFormat
(
singleStoreValue
)
let
singleProduct
=
this
.
priceFormat
(
singleStoreValue
)
...
@@ -133,30 +134,37 @@ export default {
...
@@ -133,30 +134,37 @@ export default {
onSalePermeabilityString
:
this
.
computeValue
.
onSalePermeabilityString
,
onSalePermeabilityString
:
this
.
computeValue
.
onSalePermeabilityString
,
afterSalePermeabilityString
:
this
.
computeValue
.
afterSalePermeabilityString
afterSalePermeabilityString
:
this
.
computeValue
.
afterSalePermeabilityString
}
}
// this.getParams(options)
this
.
getOptions
(
options
)
this
.
getOptions
(
options
)
return
{
totalProduct
,
singleProduct
}
return
{
totalProduct
,
singleProduct
}
},
},
// 价格格式化
// 价格格式化
priceFormat
(
num
,
point
=
2
)
{
priceFormat
(
num
,
point
=
2
)
{
// return util.priceFormat(num)
num
=
util
.
decimal
(
num
,
2
)
// 将数字转换为字符串,然后通过split方法用.分隔,取到第0个
let
numStr
=
num
.
toString
().
split
(
'.'
)[
0
]
let
numStr
=
num
.
toString
().
split
(
'.'
)[
0
]
if
(
numStr
.
length
<
5
)
{
if
(
numStr
.
length
<
6
)
{
// 判断数字有多长,如果小于6,,表示10万以内的数字,让其直接显示
return
util
.
decimal
(
num
,
2
)
return
num
}
else
if
(
numStr
>=
6
)
{
}
else
if
(
numStr
.
length
>=
5
)
{
let
decimal
=
numStr
.
substring
(
numStr
.
length
-
4
,
numStr
.
length
-
4
+
point
)
// 如果数字大于6位,小于8位,让其数字后面加单位万
let
decimal
=
numStr
.
substring
(
numStr
.
length
-
3
,
numStr
.
length
-
3
+
point
)
// 由千位,百位组成的一个数字
return
parseFloat
(
parseInt
(
num
/
10000
)
+
'.'
+
decimal
)
+
'万'
return
parseFloat
(
parseInt
(
num
/
10000
)
+
'.'
+
decimal
)
+
'万'
}
}
else
if
(
numStr
.
length
>
6
)
{
return
num
// 如果数字大于8位,让其数字后面加单位亿
// return util.priceFormat(num)
let
decimal
=
numStr
.
substring
(
numStr
.
length
-
6
,
numStr
.
length
-
6
+
point
)
// num = util.decimal(num,2)
return
parseFloat
(
parseInt
(
num
/
100000000
)
+
'.'
+
decimal
)
+
'亿'
// 将数字转换为字符串,然后通过split方法用.分隔,取到第0个
}
// let numStr = num.toString().split('.')[0]
// if (numStr.length < 5) {
// // 判断数字有多长,如果小于6,,表示10万以内的数字,让其直接显示
// return num
// } else if (numStr.length >= 5) {
// // 如果数字大于6位,小于8位,让其数字后面加单位万
// let decimal = numStr.substring(numStr.length - 3, numStr.length - 3 + point)
// // 由千位,百位组成的一个数字
// return parseFloat(parseInt(num / 10000) + '.' + decimal) + '万'
// }
// else if (numStr.length > 6) {
// // 如果数字大于8位,让其数字后面加单位亿
// let decimal = numStr.substring(numStr.length - 6, numStr.length - 6 + point)
// return parseFloat(parseInt(num / 100000000) + '.' + decimal) + '亿'
// }
}
}
}
}
}
}
...
...
src/views/inSale/couponsOrder.vue
View file @
208d901
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
</div>
</div>
<div
class=
"cell_wrapper flex_sc"
>
<div
class=
"cell_wrapper flex_sc"
>
<div
class=
"cell_label h13_title"
>
手 机 号
</div>
<div
class=
"cell_label h13_title"
>
手 机 号
</div>
<el-input
style=
"width:73%"
clearable
size=
"mini"
placeholder=
"请输入"
suffix-icon=
"el-icon-search"
v-model=
"phoneNum"
></el-input>
<el-input
style=
"width:
73%"
clearable
size=
"mini"
placeholder=
"请输入"
suffix-icon=
"el-icon-search"
v-model=
"phoneNum"
></el-input>
</div>
</div>
<div
class=
"cell_wrapper flex_sc"
style=
"width: 30%"
>
<div
class=
"cell_wrapper flex_sc"
style=
"width: 30%"
>
<div
class=
"cell_label h13_title"
>
核销时间
</div>
<div
class=
"cell_label h13_title"
>
核销时间
</div>
...
@@ -348,10 +348,15 @@ export default {
...
@@ -348,10 +348,15 @@ export default {
padding-right
:
15px
;
padding-right
:
15px
;
white-space
:
nowrap
;
white-space
:
nowrap
;
}
}
.cell_btn
{
.cell_btn
{
width
:
78px
;
width
:
78px
;
}
}
}
}
.cell_wrapper
/
deep
/
.el-select
.el-input--mini
.el-input__inner
{
//
border-left
:
none
;
border-top-left-radius
:
0
;
border-bottom-left-radius
:
0
;
}
}
}
}
}
.table_wrap
{
.table_wrap
{
...
...
src/views/inSale/myFashionableOrder.vue
View file @
208d901
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</div>
</div>
<div
class=
"tip_btn flex_scb"
>
<div
class=
"tip_btn flex_scb"
>
<el-button
size=
"mini"
:type=
"curDivisionType == 2 ? 'primary' : ''"
@
click=
"changDivisionType(2)"
>
线上分账
</el-button>
<el-button
size=
"mini"
:type=
"curDivisionType == 2 ? 'primary' : ''"
@
click=
"changDivisionType(2)"
>
线上分账
</el-button>
<el-button
size=
"mini"
:type=
"curDivisionType == 1 ? 'primary' : ''"
@
click=
"changDivisionType(1)"
>
线下
分
账
</el-button>
<el-button
size=
"mini"
:type=
"curDivisionType == 1 ? 'primary' : ''"
@
click=
"changDivisionType(1)"
>
线下
对
账
</el-button>
</div>
</div>
</div>
</div>
<div
class=
"tip_wrap_line"
></div>
<div
class=
"tip_wrap_line"
></div>
...
@@ -28,8 +28,8 @@
...
@@ -28,8 +28,8 @@
<el-option
v-for=
"item in disivionOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
<el-option
v-for=
"item in disivionOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-select>
</div>
</div>
<div
v-if=
"accountLevel
!= 4
"
class=
"cell_wrapper flex_sc"
>
<div
v-if=
"accountLevel
== 3
"
class=
"cell_wrapper flex_sc"
>
<div
class=
"cell_label h13_title"
>
导流4S店名称
</div>
<div
class=
"cell_label h13_title"
>
4S店
</div>
<el-select
clearable
size=
"mini"
v-model=
"storeId"
placeholder=
"请选择"
>
<el-select
clearable
size=
"mini"
v-model=
"storeId"
placeholder=
"请选择"
>
<el-option
v-for=
"item in list"
:key=
"item.id"
:label=
"item.merchantName"
:value=
"item.id"
></el-option>
<el-option
v-for=
"item in list"
:key=
"item.id"
:label=
"item.merchantName"
:value=
"item.id"
></el-option>
</el-select>
</el-select>
...
@@ -54,61 +54,27 @@
...
@@ -54,61 +54,27 @@
<div
class=
"cell_label h13_title"
>
商品名称
</div>
<div
class=
"cell_label h13_title"
>
商品名称
</div>
<el-input
size=
"mini"
clearable
placeholder=
"请输入"
suffix-icon=
"el-icon-search"
v-model=
"goodsName"
></el-input>
<el-input
size=
"mini"
clearable
placeholder=
"请输入"
suffix-icon=
"el-icon-search"
v-model=
"goodsName"
></el-input>
</div>
</div>
<div
class=
"cell_wrapper flex_sc"
style=
"width: 15%"
>
<div
v-if=
"accountLevel
< 3
"
class=
"cell_wrapper flex_sc"
>
<el-button
class=
"cell_btn"
size=
"mini"
@
click=
"clearFind"
>
重置
</el-button>
<div
v-if=
"accountLevel == 2"
class=
"cell_label h13_title"
>
市级经销商
</div>
<el-button
class=
"cell_btn"
size=
"mini"
type=
"primary"
@
click=
"handlerParams"
>
查询
</el-button>
<div
v-if=
"accountLevel == 1 && !isAdmin"
class=
"cell_label h13_title"
>
省级经销商
</div>
</div>
<div
v-if=
"accountLevel == 1 && isAdmin"
class=
"cell_label h13_title"
>
工厂
</div>
</div>
<el-select
clearable
size=
"mini"
filterable
v-model=
"curMerchantNo"
placeholder=
"请选择"
@
change=
"selectCurMechant"
>
</div>
<el-option
v-for=
"item in list"
:key=
"item.id"
:label=
"item.merchantName"
:value=
"item.merchantNo"
></el-option>
<!--
<div
class=
"find_wrap"
>
<div
class=
"find_line"
>
<div
class=
"cell_item"
>
<my-drop-menu
:options=
"timeOptions"
:leftName=
"timeChangeName"
@
getValue=
"timeChange"
>
<div
slot=
"right_con"
>
<el-date-picker
class=
"myfindWidth"
size=
"mini"
clearable
v-model=
"timeBetwean"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
</div>
</my-drop-menu>
</div>
<div
v-if=
"accountLevel == 4&&curDivisionType==2"
class=
"cell_item"
>
<div
class=
"cell_label h13_title"
>
分账状态
</div>
<el-select
style=
"width: 166px"
class=
"myfindWidth"
clearable
size=
"mini"
v-model=
"divisionTypeStatus"
placeholder=
"请选择"
>
<el-option
v-for=
"item in disivionOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
<div
v-if=
"accountLevel != 4"
class=
"cell_item"
>
<div
class=
"cell_label h13_title"
>
4S店
</div>
<el-select
style=
"width: 166px"
class=
"myfindWidth"
clearable
size=
"mini"
v-model=
"storeId"
placeholder=
"请选择"
>
<el-option
v-for=
"item in list"
:key=
"item.id"
:label=
"item.merchantName"
:value=
"item.id"
></el-option>
</el-select>
</div>
<div
class=
"cell_item"
>
<my-drop-menu
:leftName=
"orderNumName"
:options=
"numOptions"
@
getValue=
"changeNOFind"
>
<div
slot=
"right_con"
>
<el-input
style=
"width: 166px"
class=
"myfindWidth"
clearable
size=
"mini"
placeholder=
"请输入"
v-model=
"orderNum"
></el-input>
</div>
</my-drop-menu>
</div>
</div>
<div
style=
"height: 18px"
></div>
<div
class=
"find_line flex_scb"
>
<el-input
v-if=
"accountLevel == 4"
style=
"width: 286px"
size=
"mini"
clearable
v-model=
"goodsName"
placeholder=
"请输入查询的商品名称"
></el-input>
<div
v-if=
"accountLevel != 4"
class=
"cell_item"
>
<div
class=
"cell_label h13_title"
>
分账状态
</div>
<el-select
style=
"width: 166px"
class=
"myfindWidth"
clearable
size=
"mini"
v-model=
"divisionTypeStatus"
placeholder=
"请选择"
>
<el-option
v-for=
"item in disivionOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-select>
</div>
</div>
<div
class=
"cell_
btn_item
"
>
<div
class=
"cell_
wrapper flex_sc"
style=
"width: 15%
"
>
<el-button
class=
"cell_btn"
size=
"mini"
@
click=
"clearFind"
>
重置
</el-button>
<el-button
class=
"cell_btn"
size=
"mini"
@
click=
"clearFind"
>
重置
</el-button>
<el-button
class=
"cell_btn"
size=
"mini"
type=
"primary"
@
click=
"handlerParams"
>
查询
</el-button>
<el-button
class=
"cell_btn"
size=
"mini"
type=
"primary"
@
click=
"handlerParams"
>
查询
</el-button>
</div>
</div>
</div>
</div>
</div>
-->
<selectSearch
ref=
"myNewSelect"
:show=
"curMerchantNo?true:false"
@
getId=
"getCurStoreId"
></selectSearch>
</div>
<div
class=
"tipper flex_scb"
>
<div
class=
"tipper flex_scb"
>
<div
class=
"tip_text"
>
<div
class=
"tip_text"
>
<span>
共
</span>
<span>
共
</span>
<sapn
style=
"color: #5850ff"
>
{{
mytotalNumData
.
orderCount
}}
</sapn>
<sapn
style=
"color: #5850ff"
>
{{
mytotalNumData
.
orderCount
}}
</sapn>
<span>
笔订单,累计
{{
curDivisionType
==
1
?
'线下
分
账'
:
'线上分账'
}}
金额
</span>
<span>
笔订单,累计
{{
curDivisionType
==
1
?
'线下
对
账'
:
'线上分账'
}}
金额
</span>
<span
style=
"color: #5850ff"
>
{{
curDivisionType
==
1
?
mytotalNumData
.
offlineDivisionMoneyCount
:
mytotalNumData
.
onlineDivisionMoneyCount
}}
</span>
<span
style=
"color: #5850ff"
>
{{
curDivisionType
==
1
?
mytotalNumData
.
offlineDivisionMoneyCount
:
mytotalNumData
.
onlineDivisionMoneyCount
}}
</span>
<template
v-if=
"curDivisionType == 1"
>
<template
v-if=
"curDivisionType == 1"
>
<span>
元
</span>
<span>
元
</span>
...
@@ -147,11 +113,13 @@ import { mydivision, exportMydivision, myAccountTotalNumOfJT } from '../../api/m
...
@@ -147,11 +113,13 @@ import { mydivision, exportMydivision, myAccountTotalNumOfJT } from '../../api/m
import
{
converterApi
}
from
'../../api/modules/converter'
import
{
converterApi
}
from
'../../api/modules/converter'
import
utils
from
'../../util/util'
import
utils
from
'../../util/util'
const
divistionStatus
=
[
'待分账'
,
'分账中'
,
'分账成功'
,
'分账失败'
]
const
divistionStatus
=
[
'待分账'
,
'分账中'
,
'分账成功'
,
'分账失败'
]
import
selectSearch
from
'../../components/search-select/index.vue'
export
default
{
export
default
{
name
:
''
,
name
:
''
,
//
components: {
components
:
{
// 'my-drop-menu': myDropMenu
// 'my-drop-menu': myDropMenu
// },
selectSearch
},
props
:
{
props
:
{
list
:
Array
list
:
Array
},
},
...
@@ -357,18 +325,27 @@ export default {
...
@@ -357,18 +325,27 @@ export default {
accountLevel
:
1
,
accountLevel
:
1
,
mytotalNumData
:
{
mytotalNumData
:
{
subOrderCount
:
0
subOrderCount
:
0
}
},
curMerchantNo
:
''
,
isAdmin
:
false
}
}
},
},
created
()
{
created
()
{
this
.
tableParams
=
this
.
tableParams2
this
.
tableParams
=
this
.
tableParams2
const
{
session
}
=
this
.
$globalState
const
{
session
}
=
this
.
$globalState
this
.
accountLevel
=
session
.
accountLevel
this
.
accountLevel
=
session
.
accountLevel
this
.
isAdmin
=
session
.
admin
},
},
mounted
()
{
mounted
()
{
this
.
toGetMyDivision
()
this
.
toGetMyDivision
()
},
},
methods
:
{
methods
:
{
getCurStoreId
(
e
){
this
.
storeId
=
e
},
selectCurMechant
(
e
){
this
.
$refs
.
myNewSelect
.
selectCurMechant
(
e
)
},
changeNOFind
(
e
)
{
changeNOFind
(
e
)
{
this
.
orderNumType
=
e
this
.
orderNumType
=
e
this
.
orderNumName
=
e
==
1
?
'主订单编号'
:
'交易参考号'
this
.
orderNumName
=
e
==
1
?
'主订单编号'
:
'交易参考号'
...
@@ -382,6 +359,7 @@ export default {
...
@@ -382,6 +359,7 @@ export default {
this
.
goodsName
=
''
this
.
goodsName
=
''
this
.
storeId
=
''
this
.
storeId
=
''
this
.
$refs
.
table
.
page
.
pageNum
=
1
this
.
$refs
.
table
.
page
.
pageNum
=
1
this
.
curMerchantNo
=
''
this
.
toGetMyDivision
()
this
.
toGetMyDivision
()
},
},
handlerParams
()
{
handlerParams
()
{
...
...
src/views/inSale/open.vue
View file @
208d901
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<span
class=
"h8_title"
>
¥
{{
productValueInfo
.
divisionMoney
||
'---'
}}
</span>
<span
class=
"h8_title"
>
¥
{{
productValueInfo
.
divisionMoney
||
'---'
}}
</span>
</div>
</div>
<template
v-if=
"accountLevel == 4"
>
<template
v-if=
"accountLevel == 4"
>
<span
class=
"text_tip h12_title"
>
低于基准线
</span>
<span
class=
"text_tip h12_title"
>
{{
showMoneyLineTitle
}}
</span>
<span
class=
"text_tip_price h13_title"
>
昨日产值:
{{
productValueInfo
.
yesterdayDivisionMoney
?
'¥'
:
''
}}{{
productValueInfo
.
yesterdayDivisionMoney
||
'---'
}}
</span>
<span
class=
"text_tip_price h13_title"
>
昨日产值:
{{
productValueInfo
.
yesterdayDivisionMoney
?
'¥'
:
''
}}{{
productValueInfo
.
yesterdayDivisionMoney
||
'---'
}}
</span>
<span
class=
"text_tip_price1 h13_title"
>
今日产值:
{{
productValueInfo
.
todayDivisionMoney
?
'¥'
:
''
}}{{
productValueInfo
.
todayDivisionMoney
||
'---'
}}
</span>
<span
class=
"text_tip_price1 h13_title"
>
今日产值:
{{
productValueInfo
.
todayDivisionMoney
?
'¥'
:
''
}}{{
productValueInfo
.
todayDivisionMoney
||
'---'
}}
</span>
<span
class=
"text_tip_price2 h13_title"
>
行业均值(单店):
{{
productValueInfo
.
totalDivisionMoney
?
'¥'
:
''
}}{{
productValueInfo
.
totalDivisionMoney
||
'---'
}}
</span>
<span
class=
"text_tip_price2 h13_title"
>
行业均值(单店):
{{
productValueInfo
.
totalDivisionMoney
?
'¥'
:
''
}}{{
productValueInfo
.
totalDivisionMoney
||
'---'
}}
</span>
...
@@ -94,9 +94,9 @@
...
@@ -94,9 +94,9 @@
</
template
>
</
template
>
<div
class=
"box_bg_wrap mini_margin"
>
<div
class=
"box_bg_wrap mini_margin"
>
<div
class=
"tab_wrap"
>
<div
class=
"tab_wrap"
>
<div
class=
"tab_line flex_sc"
:style=
"accountLevel
==4?'width:48%':
'width:32%'"
>
<div
class=
"tab_line flex_sc"
:style=
"accountLevel
== 4 ? 'width:48%' :
'width:32%'"
>
<
template
v-for=
"(item, index) in tabList"
>
<
template
v-for=
"(item, index) in tabList"
>
<div
:key=
"index"
class=
"tab_element_wrap"
:style=
"accountLevel
==4?'width:33.33%':
'width:50%'"
@
click=
"changeTab(index)"
>
<div
:key=
"index"
class=
"tab_element_wrap"
:style=
"accountLevel
== 4 ? 'width:33.33%' :
'width:50%'"
@
click=
"changeTab(index)"
>
<div
class=
"tab_item h13_title flex_cc"
:class=
"curTabIndex == index ? 'tab_item_active' : ''"
>
{{
item
}}
</div>
<div
class=
"tab_item h13_title flex_cc"
:class=
"curTabIndex == index ? 'tab_item_active' : ''"
>
{{
item
}}
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -167,6 +167,7 @@ export default {
...
@@ -167,6 +167,7 @@ export default {
hxdateBetween
:
''
,
hxdateBetween
:
''
,
phoneNum
:
''
,
phoneNum
:
''
,
productValueInfo
:
{},
productValueInfo
:
{},
showMoneyLineTitle
:
''
,
//图表时间
//图表时间
chartStartDate
:
''
,
chartStartDate
:
''
,
chartEndDate
:
''
,
chartEndDate
:
''
,
...
@@ -180,15 +181,6 @@ export default {
...
@@ -180,15 +181,6 @@ export default {
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2021-07-01'
).
getTime
()
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2021-07-01'
).
getTime
()
}
}
}
}
// pickerOptionsStart: {
// disabledDate: time => {
// let date = JSON.parse(localStorage.getItem('openInfo'))
// if (date) {
// return time.getTime() > Date().now() - 8.64e6 || time.getTime() > date
// }
// return time.getTime() > Date().now() - 8.64e6
// }
// }
}
}
},
},
created
()
{
created
()
{
...
@@ -304,6 +296,8 @@ export default {
...
@@ -304,6 +296,8 @@ export default {
}
}
converterApi
(
para
).
then
(
res
=>
{
converterApi
(
para
).
then
(
res
=>
{
this
.
productValueInfo
=
res
this
.
productValueInfo
=
res
// 判断累计产值跟行业平均产值
this
.
showMoneyLineTitle
=
res
.
divisionMoney
>
res
.
totalDivisionMoney
?
'高于基准线'
:
'低于基准线'
this
.
orderAll
()
this
.
orderAll
()
})
})
},
},
...
@@ -331,10 +325,19 @@ export default {
...
@@ -331,10 +325,19 @@ export default {
})
})
},
},
toGet4SStore
()
{
toGet4SStore
()
{
const
{
session
}
=
this
.
$globalState
let
level
=
this
.
accountLevel
let
para
=
{
let
para
=
{
currentPage
:
1
,
currentPage
:
1
,
pageSize
:
100
,
pageSize
:
200000
'merchantAccountLevelList[0]'
:
4
}
let
temp
=
level
+
1
if
(
session
.
admin
)
{
temp
=
1
}
para
=
{
...
para
,
'merchantAccountLevelList[0]'
:
temp
}
}
get4SList
(
para
).
then
(
res
=>
{
get4SList
(
para
).
then
(
res
=>
{
this
.
storeList
=
res
.
list
||
[]
this
.
storeList
=
res
.
list
||
[]
...
...
src/views/inSale/upgradeOrder.vue
View file @
208d901
...
@@ -18,22 +18,26 @@
...
@@ -18,22 +18,26 @@
<el-option
v-for=
"item in disivionOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
<el-option
v-for=
"item in disivionOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-select>
</div>
</div>
<div
v-if=
"accountLevel
!= 4
"
class=
"cell_wrapper flex_sc"
>
<div
v-if=
"accountLevel
== 3
"
class=
"cell_wrapper flex_sc"
>
<div
class=
"cell_label h13_title"
>
导流4S店名称
</div>
<div
class=
"cell_label h13_title"
>
4S店
</div>
<el-select
clearable
size=
"mini"
v-model=
"storeId"
placeholder=
"请选择"
>
<el-select
clearable
size=
"mini"
v-model=
"storeId"
placeholder=
"请选择"
>
<el-option
v-for=
"item in list"
:key=
"item.id"
:label=
"item.merchantName"
:value=
"item.
id
"
></el-option>
<el-option
v-for=
"item in list"
:key=
"item.id"
:label=
"item.merchantName"
:value=
"item.
merchantNo
"
></el-option>
</el-select>
</el-select>
</div>
</div>
<div
v-if=
"accountLevel
< 3
"
class=
"cell_wrapper flex_sc"
>
<div
class=
"cell_label h13_title"
>
主订单编号
</div>
<el-input
size=
"mini"
clearable
placeholder=
"请输入"
suffix-icon=
"el-icon-search"
v-model=
"orderNum"
></el-input>
</div>
<div
class=
"cell_wrapper flex_sc"
style=
"width: 15%"
>
<div
class=
"cell_wrapper flex_sc"
style=
"width: 15%"
>
<el-button
class=
"cell_btn_max"
size=
"mini"
@
click=
"toExport"
>
导出数据
</el-button>
<el-button
class=
"cell_btn_max"
size=
"mini"
@
click=
"toExport"
>
导出数据
</el-button>
</div>
</div>
</div>
</div>
<div
class=
"find_line"
>
<div
class=
"find_line"
>
<div
class=
"cell_wrapper flex_sc"
style=
"width: 30%"
>
<div
v-if=
"accountLevel > 2"
class=
"cell_wrapper flex_sc"
style=
"width: 30%"
>
<div
class=
"cell_label h13_title"
>
主订单编号
</div>
<div
class=
"cell_label h13_title"
>
主订单编号
</div>
<el-input
size=
"mini"
clearable
placeholder=
"请输入"
suffix-icon=
"el-icon-search"
v-model=
"orderNum"
></el-input>
<el-input
size=
"mini"
clearable
placeholder=
"请输入"
suffix-icon=
"el-icon-search"
v-model=
"orderNum"
></el-input>
</div>
</div>
<div
class=
"cell_wrapper flex_sc"
>
<div
class=
"cell_wrapper flex_sc"
:style=
"accountLevel
< 3
?
'
width:
30
%'
:
''"
>
<div
class=
"cell_label h13_title"
>
交易参考号
</div>
<div
class=
"cell_label h13_title"
>
交易参考号
</div>
<el-input
size=
"mini"
clearable
placeholder=
"请输入"
suffix-icon=
"el-icon-search"
v-model=
"tradeNum"
></el-input>
<el-input
size=
"mini"
clearable
placeholder=
"请输入"
suffix-icon=
"el-icon-search"
v-model=
"tradeNum"
></el-input>
</div>
</div>
...
@@ -47,64 +51,21 @@
...
@@ -47,64 +51,21 @@
<el-option
v-for=
"item in disivionOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
<el-option
v-for=
"item in disivionOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-select>
</div>
</div>
<div
class=
"cell_wrapper flex_sc"
style=
"width: 15%"
>
<div
v-if=
"accountLevel
< 3
"
class=
"cell_wrapper flex_sc"
>
<el-button
class=
"cell_btn"
size=
"mini"
@
click=
"clearFind"
>
重置
</el-button>
<div
v-if=
"accountLevel == 2"
class=
"cell_label h13_title"
>
市级经销商
</div>
<el-button
class=
"cell_btn"
size=
"mini"
type=
"primary"
@
click=
"handleParam"
>
查询
</el-button>
<div
v-if=
"accountLevel == 1 && !isAdmin"
class=
"cell_label h13_title"
>
省级经销商
</div>
</div>
<div
v-if=
"accountLevel == 1 && isAdmin"
class=
"cell_label h13_title"
>
工厂
</div>
</div>
<el-select
clearable
size=
"mini"
filterable
v-model=
"curMerchantNo"
placeholder=
"请选择"
@
change=
"selectCurMechant"
>
</div>
<el-option
v-for=
"item in list"
:key=
"item.id"
:label=
"item.merchantName"
:value=
"item.merchantNo"
></el-option>
<!--
<div
class=
"find_wrap"
>
<div
class=
"find_line"
>
<div
class=
"cell_item"
>
<my-drop-menu
:options=
"payOptionsList"
:leftName=
"payChangeName"
@
getValue=
"changePayFind"
>
<div
v-if=
"payTypeChange == 1"
slot=
"right_con"
>
<el-date-picker
class=
"myfindWidth"
size=
"mini"
v-model=
"dateBetween"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
</div>
<div
v-if=
"payTypeChange == 2"
slot=
"right_con"
>
<el-select
class=
"myfindWidth"
size=
"mini"
clearable
v-model=
"payType"
placeholder=
"请选择"
>
<el-option
v-for=
"item in payTypesList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-select>
</div>
</div>
</my-drop-menu>
<div
class=
"cell_wrapper flex_sc"
style=
"width: 15%"
>
</div>
<div
v-if=
"accountLevel == 4"
class=
"cell_item"
>
<div
class=
"cell_label h13_title"
>
分账状态
</div>
<el-select
style=
"width: 166px"
class=
"myfindWidth"
clearable
size=
"mini"
v-model=
"divisionType"
placeholder=
"请选择"
>
<el-option
v-for=
"item in disivionOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
<div
v-if=
"accountLevel != 4"
class=
"cell_item"
>
<div
class=
"cell_label h13_title"
>
4S店
</div>
<el-select
style=
"width: 166px"
class=
"myfindWidth"
clearable
size=
"mini"
v-model=
"storeId"
placeholder=
"请选择"
>
<el-option
v-for=
"item in list"
:key=
"item.id"
:label=
"item.merchantName"
:value=
"item.id"
></el-option>
</el-select>
</div>
<div
class=
"cell_item"
>
<my-drop-menu
:leftName=
"orderNumName"
:options=
"numOptions"
@
getValue=
"changeNOFind"
>
<div
slot=
"right_con"
>
<el-input
style=
"width: 166px"
class=
"myfindWidth"
clearable
size=
"mini"
placeholder=
"请输入"
v-model=
"orderNum"
></el-input>
</div>
</my-drop-menu>
</div>
<div
class=
"cell_btn_item"
style=
"width: 180px"
>
<el-button
class=
"cell_btn_max"
size=
"mini"
@
click=
"toExport"
>
导出数据
</el-button>
</div>
</div>
<div
style=
"height: 18px"
></div>
<div
class=
"find_line flex_scb"
>
<el-input
v-if=
"accountLevel == 4"
style=
"width: 286px"
size=
"mini"
clearable
v-model=
"goodsName"
placeholder=
"请输入查询的商品名称"
></el-input>
<div
v-if=
"accountLevel != 4"
class=
"cell_item"
>
<div
class=
"cell_label h13_title"
>
分账类型
</div>
<el-select
style=
"width: 166px"
class=
"myfindWidth"
clearable
size=
"mini"
v-model=
"divisionType"
placeholder=
"请选择"
>
<el-option
v-for=
"item in disivionOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
<div
class=
"cell_btn_item"
>
<el-button
class=
"cell_btn"
size=
"mini"
@
click=
"clearFind"
>
重置
</el-button>
<el-button
class=
"cell_btn"
size=
"mini"
@
click=
"clearFind"
>
重置
</el-button>
<el-button
class=
"cell_btn"
size=
"mini"
type=
"primary"
@
click=
"handleParam"
>
查询
</el-button>
<el-button
class=
"cell_btn"
size=
"mini"
type=
"primary"
@
click=
"handleParam"
>
查询
</el-button>
</div>
</div>
</div>
</div>
</div>
-->
<selectSearch
ref=
"mySelectCon"
:show=
"curMerchantNo ? true : false"
@
getId=
"getCurStoreId"
></selectSearch>
</div>
<div
class=
"tipper flex_scb"
>
<div
class=
"tipper flex_scb"
>
<div
class=
"tip_text"
>
<div
class=
"tip_text"
>
<span>
共
</span>
<span>
共
</span>
...
@@ -188,7 +149,9 @@
...
@@ -188,7 +149,9 @@
<div
class=
"info_text flex_img"
>
<div
class=
"info_text flex_img"
>
<span>
收款凭证:
</span>
<span>
收款凭证:
</span>
<span
v-if=
"!orderDetail.payOrder.payVoucher"
class=
"h19_title"
>
--
</span>
<span
v-if=
"!orderDetail.payOrder.payVoucher"
class=
"h19_title"
>
--
</span>
<el-image
v-else
style=
"width: 100px; height: 100px"
:src=
"orderDetail.payOrder.payVoucher"
:preview-src-list=
"[orderDetail.payOrder.payVoucher]"
></el-image>
<
template
v-else
>
<el-image
style=
"width: 100px; height: 100px"
@
error
.
once=
"reloadImg(detailImage)"
:src=
"detailImage"
:preview-src-list=
"detailImageList"
></el-image>
</
template
>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -313,6 +276,7 @@
...
@@ -313,6 +276,7 @@
<
script
>
<
script
>
// import myDropMenu from '../../components/down-menu/index.vue'
// import myDropMenu from '../../components/down-menu/index.vue'
// import selectInput from '../../components/down-menu/select-input.vue'
// import selectInput from '../../components/down-menu/select-input.vue'
import
selectSearch
from
'../../components/search-select/index.vue'
import
{
findupGradeOrder
,
exportUpgrade
,
checkDetail
,
orderTotalNumOfJT
}
from
'../../api/modules/rules'
import
{
findupGradeOrder
,
exportUpgrade
,
checkDetail
,
orderTotalNumOfJT
}
from
'../../api/modules/rules'
import
{
converterApi
}
from
'../../api/modules/converter'
import
{
converterApi
}
from
'../../api/modules/converter'
import
utils
from
'../../util/util'
import
utils
from
'../../util/util'
...
@@ -323,6 +287,7 @@ export default {
...
@@ -323,6 +287,7 @@ export default {
components
:
{
components
:
{
// 'my-drop-menu': myDropMenu
// 'my-drop-menu': myDropMenu
// selectInput
// selectInput
selectSearch
},
},
props
:
{
props
:
{
list
:
Array
list
:
Array
...
@@ -330,16 +295,6 @@ export default {
...
@@ -330,16 +295,6 @@ export default {
data
()
{
data
()
{
return
{
return
{
orderStatusList
,
orderStatusList
,
payOptionsList
:
[
{
value
:
1
,
label
:
'支付时间'
},
{
value
:
2
,
label
:
'支付方式'
}
],
payChangeName
:
'支付时间'
,
payChangeName
:
'支付时间'
,
payTypesList
:
[
payTypesList
:
[
{
{
...
@@ -366,20 +321,9 @@ export default {
...
@@ -366,20 +321,9 @@ export default {
},
},
{
{
value
:
2
,
value
:
2
,
label
:
'线上对账'
label
:
'线上分账'
}
],
numOptions
:
[
{
value
:
1
,
label
:
'主订单编号'
},
{
value
:
2
,
label
:
'交易参考号'
}
}
],
],
orderNumName
:
'主订单编号'
,
layout
:
'sizes, prev, pager, next, jumper, ->, total'
,
layout
:
'sizes, prev, pager, next, jumper, ->, total'
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
tableData
:
[],
tableData
:
[],
...
@@ -532,7 +476,7 @@ export default {
...
@@ -532,7 +476,7 @@ export default {
value
:
'paySuccessDate'
,
value
:
'paySuccessDate'
,
label
:
'支付时间'
,
label
:
'支付时间'
,
level
:
2
,
level
:
2
,
width
:
'1
5
0'
,
width
:
'1
6
0'
,
disabled
:
false
disabled
:
false
},
},
{
{
...
@@ -592,12 +536,18 @@ export default {
...
@@ -592,12 +536,18 @@ export default {
totalPrice
:
0
,
totalPrice
:
0
,
totalShopGrossProfit
:
0
totalShopGrossProfit
:
0
},
},
accountLevel
:
1
accountLevel
:
1
,
isAdmin
:
false
,
curMerchantNo
:
''
,
detailImage
:
''
,
detailImageList
:
[]
}
}
},
},
created
()
{
created
()
{
const
{
session
}
=
this
.
$globalState
const
{
session
}
=
this
.
$globalState
this
.
accountLevel
=
session
.
accountLevel
this
.
accountLevel
=
session
.
accountLevel
this
.
merchantId
=
session
.
merchantId
this
.
isAdmin
=
session
.
admin
let
temp
=
JSON
.
parse
(
localStorage
.
getItem
(
`menuList
${
session
.
merchantId
}
`
))
let
temp
=
JSON
.
parse
(
localStorage
.
getItem
(
`menuList
${
session
.
merchantId
}
`
))
if
(
temp
)
{
if
(
temp
)
{
this
.
tableCoulumList
=
temp
this
.
tableCoulumList
=
temp
...
@@ -620,6 +570,29 @@ export default {
...
@@ -620,6 +570,29 @@ export default {
this
.
toGetCouponsList
(
params
)
this
.
toGetCouponsList
(
params
)
},
},
methods
:
{
methods
:
{
reloadImg
(
item
)
{
let
index
=
0
if
(
/^err/
.
test
(
this
.
detailImageList
[
index
]))
{
this
.
$set
(
this
.
detailImageList
,
index
,
this
.
detailImageList
[
index
].
slice
(
3
))
}
else
{
if
(
!
this
.
errobj
[
item
])
{
this
.
errobj
[
item
]
=
1
}
else
{
if
(
this
.
errobj
[
item
]
>
2
)
{
return
}
else
{
this
.
errobj
[
item
]
+=
1
}
}
this
.
$set
(
this
.
detailImageList
,
index
,
'err'
+
item
)
}
},
getCurStoreId
(
e
)
{
this
.
storeId
=
e
},
selectCurMechant
(
e
)
{
this
.
$refs
.
mySelectCon
.
selectCurMechant
(
e
)
},
changTableCoulum
(
e
)
{
changTableCoulum
(
e
)
{
const
{
session
}
=
this
.
$globalState
const
{
session
}
=
this
.
$globalState
localStorage
.
setItem
(
`menuList
${
session
.
merchantId
}
`
,
JSON
.
stringify
(
e
))
localStorage
.
setItem
(
`menuList
${
session
.
merchantId
}
`
,
JSON
.
stringify
(
e
))
...
@@ -641,6 +614,7 @@ export default {
...
@@ -641,6 +614,7 @@ export default {
this
.
goodsName
=
''
this
.
goodsName
=
''
this
.
storeId
=
''
this
.
storeId
=
''
this
.
currentPage
=
1
this
.
currentPage
=
1
this
.
curMerchantNo
=
''
this
.
toGetCouponsList
(
params
)
this
.
toGetCouponsList
(
params
)
},
},
handleParam
()
{
handleParam
()
{
...
@@ -684,23 +658,12 @@ export default {
...
@@ -684,23 +658,12 @@ export default {
}
}
if
(
this
.
storeId
)
{
if
(
this
.
storeId
)
{
params
[
'merchantIdList[0]'
]
=
this
.
storeId
params
[
'merchantIdList[0]'
]
=
this
.
storeId
}
else
{
}
else
{
delete
params
[
'merchantIdList[0]'
]
delete
params
[
'merchantIdList[0]'
]
}
}
this
.
currentPage
=
1
this
.
currentPage
=
1
this
.
toGetCouponsList
(
params
)
this
.
toGetCouponsList
(
params
)
},
},
changeNOFind
(
e
)
{
this
.
orderNumType
=
e
this
.
orderNumName
=
e
==
1
?
'主订单编号'
:
'交易参考号'
this
.
orderNum
=
''
},
changePayFind
(
e
)
{
this
.
payTypeChange
=
e
this
.
payChangeName
=
e
==
1
?
'支付时间'
:
'支付方式'
this
.
dateBetween
=
''
this
.
payType
=
''
},
toGetCouponsList
(
params
=
{})
{
toGetCouponsList
(
params
=
{})
{
let
method
=
findupGradeOrder
()
let
method
=
findupGradeOrder
()
let
para
=
{
let
para
=
{
...
@@ -713,7 +676,7 @@ export default {
...
@@ -713,7 +676,7 @@ export default {
this
.
tableData
=
res
.
list
.
map
((
item
,
index
)
=>
{
this
.
tableData
=
res
.
list
.
map
((
item
,
index
)
=>
{
let
ruleType
=
item
.
shopProfitType
==
1
?
'毛利'
:
'收入'
let
ruleType
=
item
.
shopProfitType
==
1
?
'毛利'
:
'收入'
item
.
rule
=
`
${
ruleType
}${
item
.
shopProfitPer
}
%`
item
.
rule
=
`
${
ruleType
}${
item
.
shopProfitPer
}
%`
item
.
divisionTypeName
=
item
.
divisionType
==
1
?
'线下
分
账'
:
'线上分账'
item
.
divisionTypeName
=
item
.
divisionType
==
1
?
'线下
对
账'
:
'线上分账'
item
.
paySuccessDate
=
utils
.
dateFormat
(
item
.
paySuccessDate
,
'YYYY-MM-DD HH:mm:ss'
)
item
.
paySuccessDate
=
utils
.
dateFormat
(
item
.
paySuccessDate
,
'YYYY-MM-DD HH:mm:ss'
)
item
.
payTypeName
=
item
.
payType
==
1
?
'微信支付'
:
item
.
payType
==
2
?
'线下收款'
:
'POS机'
item
.
payTypeName
=
item
.
payType
==
1
?
'微信支付'
:
item
.
payType
==
2
?
'线下收款'
:
'POS机'
return
item
return
item
...
@@ -808,6 +771,9 @@ export default {
...
@@ -808,6 +771,9 @@ export default {
item
.
createdDate
=
item
.
createdDate
?
utils
.
dateFormat
(
item
.
createdDate
,
'YYYY-MM-DD HH:mm'
)
:
'--'
item
.
createdDate
=
item
.
createdDate
?
utils
.
dateFormat
(
item
.
createdDate
,
'YYYY-MM-DD HH:mm'
)
:
'--'
return
item
return
item
})
})
this
.
detailImage
=
res
.
payOrder
.
payVoucher
this
.
detailImageList
=
[]
this
.
detailImageList
.
push
(
this
.
detailImage
)
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
})
})
}
}
...
@@ -838,7 +804,6 @@ export default {
...
@@ -838,7 +804,6 @@ export default {
}
}
}
}
}
}
}
}
.tipper
{
.tipper
{
width
:
100%
;
width
:
100%
;
...
...
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