Commit 532faeda by wuwx

商品管理页面优化

1 parent d8f0b1bd
......@@ -107,4 +107,15 @@ const getBusinessTypeByIdApi = params => {
})
}
export default { getBusinessTypeByIdApi, getListApi, getProShareApi, topProApi, updateStatusProApi, deleteTakeProApi, getProInfoApi, insertOrUpdateProApi, updateTakeProApi, getGoodsCommentListApi }
const deleteGoodsApi = params => {
params.method = 'scrm.api.shopmall.goods.deleteGoods'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { getBusinessTypeByIdApi, getListApi, getProShareApi, topProApi, updateStatusProApi, deleteTakeProApi, getProInfoApi, insertOrUpdateProApi, updateTakeProApi, getGoodsCommentListApi, deleteGoodsApi }
......@@ -379,7 +379,11 @@ export default {
this.orderCode = data.orderCode
this.refund = ''
// this.refundVisible = !this.refundVisible
this.ordeRefund(data.orderCode)
if(data.packageType == 2) {
this.ordeRefund(data.orderCode)
} else {
this.refundVisible = true
}
},
refundConfirmDialog() {
if (this.refund == '') {
......
......@@ -197,6 +197,10 @@
</div>
</el-radio-group>
</template>
<template slot="serviceDescHtml">
<el-input type="textarea" v-model="editForm.serviceDesc" style="width: 320px" placeholder="请输入商品描述"
:autosize="{ minRows: 2, maxRows: 4 }" maxlength="30" :disabled="isDisabled" />
</template>
<div slot="selectMerchant" slot-scope="scope" class="select-merchant">
<div>
<el-radio-group v-model="editForm.takeAllMerchant" :disabled="isDisabled">
......@@ -511,7 +515,8 @@ export default {
expressFee: '',
// 带货是否选择全部商户(0:否,1:是)
takeAllMerchant: '1',
supplyMerchantList: []
supplyMerchantList: [],
serviceDesc:''
},
isEdit: true,
labelWidth: '144px',
......@@ -813,7 +818,12 @@ export default {
width: '320px',
isHide: false,
isDisabled: false
}
},
{
label: '服务说明',
name: 'serviceDesc',
addHtml: 'serviceDescHtml'
},
]
},
{
......@@ -1345,7 +1355,8 @@ export default {
relatedCouponId: '',
takeAllMerchant: res.takeAllMerchant || (res.supplyMerchantList.length ? '0' : '1'),
descImgList: [],
businessType: []
businessType: [],
serviceDesc: res.serviceDesc || ''
}
this.editForm.businessType = this.editForm.businessTypeList.filter(item => item.isChoose == 1).map(item => item.businessType)
if (res.relatedCoupon) {
......@@ -1565,6 +1576,8 @@ export default {
deleteAttrList.forEach(item => {
delete params[item]
})
// 服务说明
params.serviceDesc = this.editForm.serviceDesc
this.loading = true
this.$apis.proManage
.insertOrUpdateProApi(params)
......
......@@ -152,7 +152,7 @@ export default {
return !row.goodsStatus
},
listeners: {
// click: row => this.handleEdit(3, row)
click: this.del
}
},
{
......@@ -353,7 +353,10 @@ export default {
handleTop(row) {
this.secondConfirm('置顶', '是否确认置顶该商品?', 'proManage', 'topProApi', { id: row.id })
},
// 删除
del(row) {
this.secondConfirm('删除', '确定删除此活动?', 'proManage', 'deleteGoodsApi', { id: row.id })
},
handleShare(row) {
this.$apis.proManage.getProShareApi({ id: row.id }).then(res => {
this.shareForm = res
......
......@@ -224,7 +224,7 @@ export default {
return !row.goodsStatus
},
listeners: {
// click: row => this.handleEdit(3, row)
click: this.del
}
},
{
......@@ -435,6 +435,10 @@ export default {
handleTakeGood(row) {
this.secondConfirm('取消带货', '是否确认取消带货该商品?', 'proManage', 'deleteTakeProApi', { id: row.id })
},
// 删除
del(row) {
this.secondConfirm('删除', '确定删除此活动?', 'proManage', 'deleteGoodsApi', { id: row.id })
},
dwonVisibleChange() {
this.$refs.downRef && this.$refs.downRef.clearValidate()
this.isDownVisible = !this.isDownVisible
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!