Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
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 f82ad59e
authored
Nov 16, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
dayjs
1 parent
77598813
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
50 additions
and
26 deletions
src/views/classifyList/index.vue
src/views/orderManage/index.vue
src/views/orderShare/index.vue
src/views/productGroup/index.vue
src/views/productStore/index.vue
src/views/takeGood/index.vue
src/views/zoneList/index.vue
src/views/classifyList/index.vue
View file @
f82ad59
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
*
as
dayjs
from
'dayjs'
export
default
{
export
default
{
name
:
'classifyList'
,
name
:
'classifyList'
,
data
()
{
data
()
{
...
@@ -67,8 +68,9 @@ export default {
...
@@ -67,8 +68,9 @@ export default {
{
{
label
:
'创建日期'
,
label
:
'创建日期'
,
prop
:
'createdDate'
,
prop
:
'createdDate'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
new
Date
(
cellValue
.
createdDate
).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-
'
)
return
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss
'
)
}
}
}
}
]
]
...
...
src/views/orderManage/index.vue
View file @
f82ad59
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
*
as
dayjs
from
'dayjs'
export
default
{
export
default
{
name
:
'orderManage'
,
name
:
'orderManage'
,
data
()
{
data
()
{
...
@@ -68,7 +69,7 @@ export default {
...
@@ -68,7 +69,7 @@ export default {
label
:
'创建日期'
,
label
:
'创建日期'
,
prop
:
'createdDate'
,
prop
:
'createdDate'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
new
Date
(
cellValue
.
createdDate
).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-
'
)
return
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss
'
)
}
}
}
}
]
]
...
...
src/views/orderShare/index.vue
View file @
f82ad59
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
*
as
dayjs
from
'dayjs'
export
default
{
export
default
{
name
:
'orderShare'
,
name
:
'orderShare'
,
data
()
{
data
()
{
...
@@ -78,8 +79,9 @@ export default {
...
@@ -78,8 +79,9 @@ export default {
{
{
label
:
'创建日期'
,
label
:
'创建日期'
,
prop
:
'createdDate'
,
prop
:
'createdDate'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
new
Date
(
cellValue
.
createdDate
).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-
'
)
return
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss
'
)
}
}
},
},
{
{
...
@@ -125,7 +127,7 @@ export default {
...
@@ -125,7 +127,7 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
getOptionsList
(
'searchFormData'
,
)
this
.
getOptionsList
(
'searchFormData'
)
},
},
methods
:
{
methods
:
{
...
...
src/views/productGroup/index.vue
View file @
f82ad59
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"proGroupRef"
class=
"table-img"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"proGroupRef"
class=
"table-img"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<div
slot=
"goodsImage"
class=
"table-image"
slot-scope=
"scope"
>
<div
slot=
"goodsImage"
class=
"table-image"
slot-scope=
"scope"
>
<img
class=
"img-60"
:src=
"scope.scope.goodsImage"
/>
<img
class=
"img-60"
:src=
"scope.scope.goodsImage"
/>
</div>
</div>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handleUpOrDown(scope.scope)"
>
{{
scope
.
scope
.
goodsStatus
?
'下架'
:
'上架'
}}
</el-button>
<el-button
type=
"text"
@
click=
"handleUpOrDown(scope.scope)"
>
{{
scope
.
scope
.
goodsStatus
?
'下架'
:
'上架'
}}
</el-button>
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
*
as
dayjs
from
'dayjs'
import
shareDialog
from
'./components/shareDialog'
import
shareDialog
from
'./components/shareDialog'
export
default
{
export
default
{
name
:
'productGroup'
,
name
:
'productGroup'
,
...
@@ -115,14 +116,14 @@ export default {
...
@@ -115,14 +116,14 @@ export default {
label
:
'浏览量(次)'
,
label
:
'浏览量(次)'
,
name
:
'goodsStatistics'
,
name
:
'goodsStatistics'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
goodsStatistics
?
(
cellValue
.
goodsStatistics
.
viewAmount
||
'0'
)
:
'0'
return
cellValue
.
goodsStatistics
?
cellValue
.
goodsStatistics
.
viewAmount
||
'0'
:
'0'
}
}
},
},
{
{
label
:
'销量'
,
label
:
'销量'
,
name
:
'goodsStatistics'
,
name
:
'goodsStatistics'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
goodsStatistics
?
(
cellValue
.
goodsStatistics
.
saleAmount
||
'0'
)
:
'0'
return
cellValue
.
goodsStatistics
?
cellValue
.
goodsStatistics
.
saleAmount
||
'0'
:
'0'
}
}
},
},
{
{
...
@@ -142,8 +143,9 @@ export default {
...
@@ -142,8 +143,9 @@ export default {
{
{
label
:
'创建日期'
,
label
:
'创建日期'
,
prop
:
'createdDate'
,
prop
:
'createdDate'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
new
Date
(
cellValue
.
createdDate
).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-
'
)
return
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss
'
)
}
}
},
},
{
{
...
@@ -157,13 +159,16 @@ export default {
...
@@ -157,13 +159,16 @@ export default {
},
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
baseData
:
{
baseData
:
{
goodsStatusList
:
[{
goodsStatusList
:
[
{
confId
:
'0'
,
confId
:
'0'
,
confName
:
'已下架'
confName
:
'已下架'
},
{
},
{
confId
:
'1'
,
confId
:
'1'
,
confName
:
'已上架'
confName
:
'已上架'
}]
}
]
}
}
}
}
},
},
...
...
src/views/productStore/index.vue
View file @
f82ad59
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"proGroupRef"
class=
"table-img"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"proGroupRef"
class=
"table-img"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<template
slot=
"goodsImage"
slot-scope=
"scope"
>
<template
slot=
"goodsImage"
slot-scope=
"scope"
>
<img
class=
"img-60"
:src=
"scope.scope.goodsImage"
/>
<img
class=
"img-60"
:src=
"scope.scope.goodsImage"
/>
</
template
>
</
template
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
v-if=
"!scope.scope.goodsStatus"
type=
"text"
@
click=
"handleEdit(2, scope.scope)"
>
编辑
</el-button>
<el-button
v-if=
"!scope.scope.goodsStatus"
type=
"text"
@
click=
"handleEdit(2, scope.scope)"
>
编辑
</el-button>
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
</template>
</template>
<
script
>
<
script
>
import
*
as
dayjs
from
'dayjs'
import
shareDialog
from
'../productGroup/components/shareDialog'
import
shareDialog
from
'../productGroup/components/shareDialog'
export
default
{
export
default
{
name
:
'productGroup'
,
name
:
'productGroup'
,
...
@@ -118,14 +119,14 @@ export default {
...
@@ -118,14 +119,14 @@ export default {
label
:
'浏览量(次)'
,
label
:
'浏览量(次)'
,
name
:
'goodsStatistics'
,
name
:
'goodsStatistics'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
goodsStatistics
?
(
cellValue
.
goodsStatistics
.
viewAmount
||
'0'
)
:
'0'
return
cellValue
.
goodsStatistics
?
cellValue
.
goodsStatistics
.
viewAmount
||
'0'
:
'0'
}
}
},
},
{
{
label
:
'销量'
,
label
:
'销量'
,
name
:
'goodsStatistics'
,
name
:
'goodsStatistics'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
goodsStatistics
?
(
cellValue
.
goodsStatistics
.
saleAmount
||
'0'
)
:
'0'
return
cellValue
.
goodsStatistics
?
cellValue
.
goodsStatistics
.
saleAmount
||
'0'
:
'0'
}
}
},
},
{
{
...
@@ -145,8 +146,9 @@ export default {
...
@@ -145,8 +146,9 @@ export default {
{
{
label
:
'创建日期'
,
label
:
'创建日期'
,
prop
:
'createdDate'
,
prop
:
'createdDate'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
new
Date
(
cellValue
.
createdDate
).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-
'
)
return
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss
'
)
}
}
},
},
{
{
...
@@ -167,20 +169,26 @@ export default {
...
@@ -167,20 +169,26 @@ export default {
},
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
baseData
:
{
baseData
:
{
goodsStatusList
:
[{
goodsStatusList
:
[
{
confId
:
'0'
,
confId
:
'0'
,
confName
:
'已下架'
confName
:
'已下架'
},
{
},
{
confId
:
'1'
,
confId
:
'1'
,
confName
:
'已上架'
confName
:
'已上架'
}],
}
goodsSourceList
:
[{
],
goodsSourceList
:
[
{
confId
:
'1'
,
confId
:
'1'
,
confName
:
'门店'
confName
:
'门店'
},
{
},
{
confId
:
'2'
,
confId
:
'2'
,
confName
:
'带货'
confName
:
'带货'
}]
}
]
}
}
}
}
},
},
...
@@ -239,9 +247,9 @@ export default {
...
@@ -239,9 +247,9 @@ export default {
},
},
// 下架通知
// 下架通知
handleDwonNotice
(
row
)
{
handleDwonNotice
(
row
)
{
this
.
$alert
(
'你带货的'
+
row
.
goodsName
+
'商品现已下架,下架原因:'
+
row
.
offReason
,
'商品下架通知'
,
{
this
.
$alert
(
'你带货的'
+
row
.
goodsName
+
'商品现已下架,下架原因:'
+
row
.
offReason
,
'商品下架通知'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
callback
:
action
=>
{
}
callback
:
action
=>
{}
})
})
},
},
handleUpOrDown
(
row
)
{
handleUpOrDown
(
row
)
{
...
...
src/views/takeGood/index.vue
View file @
f82ad59
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
*
as
dayjs
from
'dayjs'
export
default
{
export
default
{
name
:
'takeGood'
,
name
:
'takeGood'
,
data
()
{
data
()
{
...
@@ -69,6 +70,7 @@ export default {
...
@@ -69,6 +70,7 @@ export default {
{
{
label
:
'商品名称'
,
label
:
'商品名称'
,
prop
:
'goodsName'
,
prop
:
'goodsName'
,
line
:
2
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
goods
.
goodsName
return
cellValue
.
goods
.
goodsName
}
}
...
@@ -82,14 +84,15 @@ export default {
...
@@ -82,14 +84,15 @@ export default {
label
:
'供货价'
,
label
:
'供货价'
,
prop
:
'supplyPrice'
,
prop
:
'supplyPrice'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
(
cellValue
.
supplyPrice
/
100
).
toFixed
(
2
)
return
(
cellValue
.
goods
.
supplyPrice
/
100
).
toFixed
(
2
)
}
}
},
},
{
{
label
:
'创建日期'
,
label
:
'创建日期'
,
prop
:
'createdDate'
,
prop
:
'createdDate'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
new
Date
(
cellValue
.
goods
.
createdDate
).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-
'
)
return
dayjs
(
cellValue
.
goods
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss
'
)
}
}
}
}
]
]
...
@@ -120,6 +123,7 @@ export default {
...
@@ -120,6 +123,7 @@ export default {
setTableFinishFun
(
table
)
{
setTableFinishFun
(
table
)
{
this
.
tableParams
.
checkSelectVal
=
[]
this
.
tableParams
.
checkSelectVal
=
[]
table
&&
table
.
forEach
(
item
=>
{
table
.
forEach
(
item
=>
{
if
(
item
.
taked
)
{
if
(
item
.
taked
)
{
this
.
tableParams
.
checkSelectVal
.
push
(
item
.
goodsId
)
this
.
tableParams
.
checkSelectVal
.
push
(
item
.
goodsId
)
...
...
src/views/zoneList/index.vue
View file @
f82ad59
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
*
as
dayjs
from
'dayjs'
export
default
{
export
default
{
name
:
'zoneList'
,
name
:
'zoneList'
,
data
()
{
data
()
{
...
@@ -69,8 +70,9 @@ export default {
...
@@ -69,8 +70,9 @@ export default {
{
{
label
:
'创建日期'
,
label
:
'创建日期'
,
prop
:
'createdDate'
,
prop
:
'createdDate'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
new
Date
(
cellValue
.
createdDate
).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-
'
)
return
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss
'
)
}
}
},
},
{
{
...
...
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