Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
op-web-service
Commits
1472c5c9
Commit
1472c5c9
authored
Aug 10, 2021
by
lihui
Browse files
Options
Browse Files
Download
Plain Diff
feat:mearge
parents
3f670438
bdacb43f
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
82 additions
and
49 deletions
+82
-49
groupmeal.js
server/controllers/groupmeal.js
+1
-1
router.js
server/router.js
+1
-1
addProduc.vue
src/pages/Activity/releaseProduc/components/addProduc.vue
+18
-4
infoEditing.vue
src/pages/Activity/releaseProduc/components/infoEditing.vue
+14
-2
config.js
src/pages/Groupmeal/components/PageHeader/config.js
+4
-0
index.vue
src/pages/Groupmeal/newOrderManagement/index.vue
+24
-19
index.less
src/pages/Groupmeal/orderManagement/index.less
+0
-6
index.vue
src/pages/Groupmeal/orderManagement/index.vue
+19
-15
groupmeal.js
src/service/Groupmeal/groupmeal.js
+1
-1
No files found.
server/controllers/groupmeal.js
View file @
1472c5c9
...
...
@@ -140,7 +140,7 @@ exports.orderRefundReject = async ctx => {
// 获取订单管理列表
exports
.
newGetOrderList
=
async
ctx
=>
{
const
url
=
`
${
GROUPMEAL_URI
}
/order/
old
background/op_order_list`
;
const
url
=
`
${
GROUPMEAL_URI
}
/order/background/op_order_list`
;
const
opts
=
{
url
,
method
:
"GET"
...
...
server/router.js
View file @
1472c5c9
...
...
@@ -102,7 +102,7 @@ router.get(`${API_VERSION}/order/oldbackground/order_refund_reject`, groupmeal.o
router
.
post
(
`
${
API_VERSION
}
/order/oldbackground/order_refund`
,
groupmeal
.
orderRefund
);
// 新订单管理
router
.
get
(
`
${
API_VERSION
}
/order/
old
background/op_order_list`
,
groupmeal
.
newGetOrderList
);
router
.
get
(
`
${
API_VERSION
}
/order/background/op_order_list`
,
groupmeal
.
newGetOrderList
);
router
.
get
(
`
${
API_VERSION
}
/order/background/marketing_list`
,
groupmeal
.
newGetMarketingList
);
router
.
get
(
`
${
API_VERSION
}
/order/background/goods_list`
,
groupmeal
.
newGetGoodsList
);
router
.
get
(
`
${
API_VERSION
}
/order/background/sub_shop_list`
,
groupmeal
.
newGetSubShopList
);
...
...
src/pages/Activity/releaseProduc/components/addProduc.vue
View file @
1472c5c9
...
...
@@ -36,7 +36,7 @@
<el-table-column
prop=
"total_amount_sold"
label=
"已售数量"
>
</el-table-column>
<el-table-column
prop=
"inventory_rest"
label=
"剩余库存"
></el-table-column>
<el-table-column
label=
"操作"
>
<el-table-column
label=
"操作"
width=
"120"
>
<
template
#
default=
"scope"
>
<el-button
type=
"text"
...
...
@@ -65,15 +65,17 @@
>
<el-form-item
label=
"图片:"
>
<el-upload
:class=
"{hide:hideUpload}"
:data=
"{ type: 1 }"
:action=
"uploadUrl"
:on-preview=
"previewImage"
:on-success=
"handleDetailSuccess"
:on-change =
"handleDetailChange"
:before-remove=
"removeDetailFiles"
:file-list=
"picUrlList"
auto-upload
ref=
"picUpload"
:limit=
"
1
"
:limit=
"
limitCount
"
list-type=
"picture-card"
multiple
>
...
...
@@ -181,7 +183,7 @@
></el-option>
</el-select>
</div>
<span
class=
"dioFor"
>
已选:{{ multipleSelection.length }}
人
</span>
<span
class=
"dioFor"
>
已选:{{ multipleSelection.length }}
件
</span>
<el-table
:data=
"comLibTableData"
class=
"comLibTableData"
...
...
@@ -279,6 +281,8 @@ export default {
picUploadList
:
[],
// 上传详情图片列表
isShowPopver
:
false
,
// 是否展示图片框
uploadUrl
:
`
${
GOODS_URI
}
/ksy/ks3apiunencrypt/ks3api_upload`
,
// 金山云上传地址
hideUpload
:
false
,
limitCount
:
"1"
,
// 商品库添加
selCommodityPopup
:
false
,
// 商品库添加弹窗状态
...
...
@@ -330,6 +334,10 @@ export default {
this
.
isShowPopver
=
true
;
},
handleDetailChange
(){
this
.
hideUpload
=
this
.
picUploadList
.
length
>=
this
.
limitCount
;
},
// 图片上传成功时
handleDetailSuccess
(
res
)
{
this
.
picUploadList
.
push
(
res
.
result
.
image_id
);
...
...
@@ -342,6 +350,7 @@ export default {
this
.
picUploadList
.
splice
(
i
,
1
);
}
}
this
.
hideUpload
=
this
.
picUploadList
.
length
>=
this
.
limitCount
;
},
// 获取商家
...
...
@@ -406,7 +415,7 @@ export default {
this
.
comTableData
.
push
(
this
.
comLibTableData
[
j
]);
}
}
},
500
);
},
500
);
this
.
addCommodityPopup
=
false
;
}
else
{
ElMessage
.
error
(
res
.
reason
);
...
...
@@ -519,6 +528,7 @@ export default {
}
});
});
ElMessage
.
error
(
"商品添加重复,已过滤掉重复选项"
);
}
},
...
...
@@ -578,4 +588,8 @@ export default {
.price
/
deep
/
.el-input__inner
{
text-align
:
left
;
}
.hide
/
deep
/
.el-upload--picture-card
{
display
:
none
;
}
</
style
>
\ No newline at end of file
src/pages/Activity/releaseProduc/components/infoEditing.vue
View file @
1472c5c9
...
...
@@ -14,15 +14,17 @@
</el-form-item>
<el-form-item
label=
"图片:"
>
<el-upload
:class=
"
{ hide: hideUpload }"
:data="{ type: 1 }"
:action="uploadUrl"
:on-preview="previewImage"
:on-success="handleDetailSuccess"
:on-change="handleDetailChange"
:before-remove="removeDetailFiles"
:file-list="infoEditForm.picUrlList"
auto-upload
ref="picUpload"
:limit="
9
"
:limit="
limitCount
"
list-type="picture-card"
multiple
>
...
...
@@ -64,7 +66,9 @@ export default {
},
propData
:
{},
isShowPopver
:
false
,
// 是否展示图片框
uploadUrl
:
`
${
GOODS_URI
}
/ksy/ks3apiunencrypt/ks3api_upload`
// 金山云上传地址
uploadUrl
:
`
${
GOODS_URI
}
/ksy/ks3apiunencrypt/ks3api_upload`
,
// 金山云上传地址
hideUpload
:
false
,
limitCount
:
"9"
};
},
watch
:
{
...
...
@@ -98,6 +102,11 @@ export default {
this
.
isShowPopver
=
true
;
},
handleDetailChange
()
{
this
.
hideUpload
=
this
.
infoEditForm
.
picUploadList
.
length
>=
this
.
limitCount
;
},
// 图片上传成功时
handleDetailSuccess
(
res
)
{
this
.
infoEditForm
.
picUploadList
.
push
(
res
.
result
.
image_id
);
// 上传成功图片的id
...
...
@@ -149,4 +158,7 @@ export default {
width
:
64%
;
margin
:
0
auto
;
}
.hide
/
deep
/
.el-upload--picture-card
{
display
:
none
;
}
</
style
>
src/pages/Groupmeal/components/PageHeader/config.js
View file @
1472c5c9
const
headerConfig
=
[
{
name
:
"活动管理"
,
path
:
"/op/activity/manage"
},
{
name
:
"订单管理"
,
path
:
"/op/groupmeal/orderManagement"
...
...
src/pages/Groupmeal/newOrderManagement/index.vue
View file @
1472c5c9
...
...
@@ -324,8 +324,8 @@
<el-input-number
v-model=
"item.refundableQuantity"
@
change=
"handleChange"
:min=
"
0
"
:max=
"
item.goods_num - item.refund_count
"
:min=
"
1
"
:max=
"
1
"
></el-input-number>
</el-row>
<el-row>
...
...
@@ -438,7 +438,7 @@ export default {
totalNum
:
null
,
//总条数
// 退款
refundShow
:
false
,
// 退款状态
refundShow
:
false
,
// 退款状态
checkAll
:
false
,
// 全选
isIndeterminate
:
false
,
refundGoods
:
[
...
...
@@ -491,20 +491,20 @@ export default {
marketing_id
:
val
,
};
const
res
=
await
newGetGoodsList
(
params
);
// 商品名称
this
.
getSubShopListMet
(
val
)
//自提点
this
.
getSubShopListMet
(
val
)
;
//自提点
// const res = await getSubShopList(params);
this
.
tradeNameArr
=
res
.
result
;
// this.selLiftPoinArr = res.result;
// this.selLiftPoinArr = res.result;
},
// 获取自提点
async
getSubShopListMet
(
params
)
{
try
{
let
marketing_id
=
''
if
(
params
)
{
marketing_id
=
params
let
marketing_id
=
""
;
if
(
params
)
{
marketing_id
=
params
;
}
const
res
=
await
newGetSubShopList
({
'marketing_id'
:
marketing_id
});
const
res
=
await
newGetSubShopList
({
marketing_id
:
marketing_id
});
this
.
selLiftPoinArr
=
res
.
result
;
}
catch
(
error
)
{
this
.
$message
.
error
(
"发生未知错误,请稍后再试一下吧~~~"
);
...
...
@@ -608,11 +608,12 @@ export default {
// 获取订单列表
async
getOrderListMet
()
{
if
(
this
.
$route
.
query
.
marketing_type
==
"4"
)
{
this
.
orderQueryObj
.
marketing_id
=
this
.
$route
.
query
.
marketing_id
;
if
(
this
.
$route
.
query
.
marketing_type
==
"4"
)
{
this
.
orderQueryObj
.
marketing_id
=
this
.
$route
.
query
.
marketing_id
;
}
try
{
const
res
=
await
newGetOrderList
(
this
.
orderQueryObj
);
console
.
log
(
res
);
this
.
goodsNum
=
res
.
goods_num
;
// 商品共计
this
.
totalNum
=
res
.
count
;
// 商品总数
this
.
orderTableData
=
res
.
result
;
...
...
@@ -739,19 +740,23 @@ export default {
},
created
()
{
this
.
getMarketingListMet
();
// 活动名称
this
.
getSubShopListMet
();
// 自提点
this
.
getOrderListMet
();
// table列表
this
.
getSubShopListMet
();
// 自提点
this
.
getOrderListMet
();
// table列表
},
};
</
script
>
<
style
lang=
"less"
src=
"../orderManagement/index.less"
scope
></
style
>
<
style
lang=
"less"
src=
"../orderManagement/index.less"
scope
d
></
style
>
<
style
lang=
"less"
scoped
>
.check-wrap{
/deep/ .el-checkbox__label {
white-space: normal;
word-break: break-all;
.check-wrap {
/deep/ .el-checkbox__label {
white-space: normal;
word-break: break-all;
}
}
.refundCon /deep/ .el-row{
margin-bottom: 15px;
display: flex;
align-items: center;
}
</
style
>
src/pages/Groupmeal/orderManagement/index.less
View file @
1472c5c9
...
...
@@ -15,9 +15,3 @@
display: block;
text-align: center;
}
.refundCon /deep/ .el-row {
margin-bottom: 15px;
display: flex;
align-items: center;
}
\ No newline at end of file
src/pages/Groupmeal/orderManagement/index.vue
View file @
1472c5c9
...
...
@@ -513,20 +513,20 @@ export default {
marketing_id
:
val
,
};
const
res
=
await
getGoodsList
(
params
);
// 商品名称
this
.
getSubShopListMet
(
val
)
//自提点
this
.
getSubShopListMet
(
val
)
;
//自提点
// const res = await getSubShopList(params);
this
.
tradeNameArr
=
res
.
result
;
// this.selLiftPoinArr = res.result;
// this.selLiftPoinArr = res.result;
},
// 获取自提点
async
getSubShopListMet
(
params
)
{
try
{
let
marketing_id
=
''
if
(
params
)
{
marketing_id
=
params
let
marketing_id
=
""
;
if
(
params
)
{
marketing_id
=
params
;
}
const
res
=
await
getSubShopList
({
'marketing_id'
:
marketing_id
});
const
res
=
await
getSubShopList
({
marketing_id
:
marketing_id
});
this
.
selLiftPoinArr
=
res
.
result
;
}
catch
(
error
)
{
this
.
$message
.
error
(
"发生未知错误,请稍后再试一下吧~~~"
);
...
...
@@ -630,8 +630,8 @@ export default {
// 获取订单列表
async
getOrderListMet
()
{
if
(
this
.
$route
.
query
.
marketing_type
==
"4"
)
{
this
.
orderQueryObj
.
marketing_id
=
this
.
$route
.
query
.
marketing_id
;
if
(
this
.
$route
.
query
.
marketing_type
==
"4"
)
{
this
.
orderQueryObj
.
marketing_id
=
this
.
$route
.
query
.
marketing_id
;
}
try
{
const
res
=
await
getOrderList
(
this
.
orderQueryObj
);
...
...
@@ -761,19 +761,23 @@ export default {
},
created
()
{
this
.
getMarketingListMet
();
// 活动名称
this
.
getSubShopListMet
();
// 自提点
this
.
getOrderListMet
();
// table列表
this
.
getSubShopListMet
();
// 自提点
this
.
getOrderListMet
();
// table列表
},
};
</
script
>
<
style
lang=
"less"
src=
"./index.less"
scope
></
style
>
<
style
lang=
"less"
scoped
>
.check-wrap{
/deep/ .el-checkbox__label {
white-space: normal;
word-break: break-all;
.check-wrap {
/deep/ .el-checkbox__label {
white-space: normal;
word-break: break-all;
}
}
.refundCon /deep/ .el-row{
margin-bottom: 15px;
display: flex;
align-items: center;
}
</
style
>
src/service/Groupmeal/groupmeal.js
View file @
1472c5c9
...
...
@@ -119,7 +119,7 @@ export function getOrderExportURL(eventId, type) {
// 获取订单列表
export
async
function
newGetOrderList
(
params
)
{
const
res
=
await
axios
.
get
(
"/api/v1/order/
old
background/op_order_list"
,
{
const
res
=
await
axios
.
get
(
"/api/v1/order/background/op_order_list"
,
{
params
});
return
res
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment