Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 d78b2bc0
authored
Jun 06, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
秒杀活动;商城订单详情
1 parent
469556b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
73 additions
and
10 deletions
src/views/orderManage/orderDetail.vue
src/views/seckillActivity/editActivity.vue
src/views/orderManage/orderDetail.vue
View file @
d78b2bc
...
@@ -83,15 +83,27 @@ export default {
...
@@ -83,15 +83,27 @@ export default {
name
:
'orderCode'
name
:
'orderCode'
},
},
{
{
label
:
'商户订单号'
,
name
:
''
},
{
label
:
'订单时间'
,
label
:
'订单时间'
,
name
:
'createdDateStr'
name
:
'createdDateStr'
},
},
{
{
label
:
'手机号'
,
label
:
'手机号
码
'
,
name
:
'customerPhone'
name
:
'customerPhone'
},
},
{
{
label
:
'客户信息'
,
label
:
'车架号'
,
name
:
''
},
{
label
:
'门店信息'
,
name
:
'merchantName'
},
{
label
:
'客户名称'
,
name
:
'customerName'
name
:
'customerName'
},
},
{
{
...
@@ -104,10 +116,6 @@ export default {
...
@@ -104,10 +116,6 @@ export default {
name
:
'orderSourceName'
name
:
'orderSourceName'
},
},
{
{
label
:
'门店信息'
,
name
:
'merchantName'
},
{
label
:
'订单状态'
,
label
:
'订单状态'
,
name
:
'orderStatusName'
name
:
'orderStatusName'
},
},
...
@@ -136,6 +144,10 @@ export default {
...
@@ -136,6 +144,10 @@ export default {
name
:
'createdDateStr'
name
:
'createdDateStr'
},
},
{
{
label
:
'申请描述'
,
name
:
'remark'
},
{
label
:
'快递公司'
,
label
:
'快递公司'
,
name
:
'deliveryCompany'
name
:
'deliveryCompany'
},
},
...
@@ -144,8 +156,8 @@ export default {
...
@@ -144,8 +156,8 @@ export default {
name
:
'deliveryNumber'
name
:
'deliveryNumber'
},
},
{
{
label
:
'
申请描述
'
,
label
:
'
售后凭证
'
,
name
:
'
remark
'
name
:
''
}
}
],
],
// 基本数据
// 基本数据
...
...
src/views/seckillActivity/editActivity.vue
View file @
d78b2bc
...
@@ -54,6 +54,18 @@
...
@@ -54,6 +54,18 @@
</table>
</table>
</div>
</div>
</div>
</div>
<
template
slot=
"isLimit"
slot-scope=
"scope"
>
<el-radio-group
v-model=
"editForm[scope.scope.name]"
@
change=
"handleIsLimit"
>
<el-radio
v-for=
"(item, index) in scope.scope.optionList"
:key=
"index"
:label=
"item[scope.scope.optionId]"
:disabled=
"isDisabled"
>
{{
item
[
scope
.
scope
.
optionLabel
]
}}
</el-radio>
</el-radio-group>
<span
class=
"m-l-20"
v-if=
"editForm[scope.scope.name] == 2"
id=
"limitNum"
>
每人限购
<el-form-item
prop=
"limitNum"
>
<el-input
v-model=
"editForm.limitNum"
placeholder=
"请输入限购次数"
:disabled=
"isDisabled"
></el-input>
</el-form-item>
件
</span>
</
template
>
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
<div
class=
"footer"
:style=
"{ left: footerLeft + 'px', width: footerWidth + 'px' }"
>
<div
class=
"footer"
:style=
"{ left: footerLeft + 'px', width: footerWidth + 'px' }"
>
...
@@ -113,7 +125,9 @@ export default {
...
@@ -113,7 +125,9 @@ export default {
activityTime
:
[],
activityTime
:
[],
activityPrice
:
''
,
activityPrice
:
''
,
goodsStock
:
''
,
goodsStock
:
''
,
goodsId
:
''
goodsId
:
''
,
isLimit
:
1
,
limitNum
:
''
},
},
//商品列表
//商品列表
tableParams
:
{
tableParams
:
{
...
@@ -162,7 +176,20 @@ export default {
...
@@ -162,7 +176,20 @@ export default {
trigger
:
'change'
trigger
:
'change'
}
}
],
],
goodsId
:
[{
required
:
true
,
message
:
'请选择商品'
,
trigger
:
[
'change'
,
'blur'
]
}]
goodsId
:
[{
required
:
true
,
message
:
'请选择商品'
,
trigger
:
[
'change'
,
'blur'
]
}],
isLimit
:
[{
required
:
true
,
message
:
'请选择是否限购'
,
trigger
:
'change'
}],
limitNum
:
[
{
required
:
false
,
message
:
'请输入限购次数'
,
trigger
:
'blur'
},
{
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
editForm
.
isLimit
==
2
&&
(
value
<
1
||
value
>
10
||
!
/^
\d
+$/
.
test
(
value
)))
{
return
callback
(
'请输入1-10的限购次数'
)
}
return
callback
()
},
trigger
:
'blur'
}
]
},
},
editFormData
:
[
editFormData
:
[
{
{
...
@@ -213,6 +240,25 @@ export default {
...
@@ -213,6 +240,25 @@ export default {
name
:
''
,
name
:
''
,
addHtml
:
'specificationsHtml'
,
addHtml
:
'specificationsHtml'
,
isHide
:
true
isHide
:
true
},
{
label
:
'是否限购'
,
name
:
'isLimit'
,
addHtml
:
'isLimit'
,
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionList
:
[
{
confId
:
1
,
confName
:
'否'
,
isDisabled
:
false
},
{
confId
:
2
,
confName
:
'是'
,
isDisabled
:
false
}
],
}
}
]
]
}
}
...
@@ -287,6 +333,11 @@ export default {
...
@@ -287,6 +333,11 @@ export default {
}
}
},
},
handleIsLimit
(
val
)
{
this
.
editForm
.
limitNum
=
''
this
.
editRule
.
limitNum
[
0
].
required
=
val
!=
1
},
handleRelateProChange
(
val
)
{
handleRelateProChange
(
val
)
{
this
.
editRule
.
goodsId
[
0
].
required
=
val
==
2
this
.
editRule
.
goodsId
[
0
].
required
=
val
==
2
var
idx
=
this
.
editFormData
.
findIndex
(
item
=>
item
.
name
==
'goodsId'
)
var
idx
=
this
.
editFormData
.
findIndex
(
item
=>
item
.
name
==
'goodsId'
)
...
...
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