Commit 532faeda by wuwx

商品管理页面优化

1 parent d8f0b1bd
...@@ -107,4 +107,15 @@ const getBusinessTypeByIdApi = params => { ...@@ -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 { ...@@ -379,7 +379,11 @@ export default {
this.orderCode = data.orderCode this.orderCode = data.orderCode
this.refund = '' this.refund = ''
// this.refundVisible = !this.refundVisible // this.refundVisible = !this.refundVisible
if(data.packageType == 2) {
this.ordeRefund(data.orderCode) this.ordeRefund(data.orderCode)
} else {
this.refundVisible = true
}
}, },
refundConfirmDialog() { refundConfirmDialog() {
if (this.refund == '') { if (this.refund == '') {
......
...@@ -197,6 +197,10 @@ ...@@ -197,6 +197,10 @@
</div> </div>
</el-radio-group> </el-radio-group>
</template> </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 slot="selectMerchant" slot-scope="scope" class="select-merchant">
<div> <div>
<el-radio-group v-model="editForm.takeAllMerchant" :disabled="isDisabled"> <el-radio-group v-model="editForm.takeAllMerchant" :disabled="isDisabled">
...@@ -511,7 +515,8 @@ export default { ...@@ -511,7 +515,8 @@ export default {
expressFee: '', expressFee: '',
// 带货是否选择全部商户(0:否,1:是) // 带货是否选择全部商户(0:否,1:是)
takeAllMerchant: '1', takeAllMerchant: '1',
supplyMerchantList: [] supplyMerchantList: [],
serviceDesc:''
}, },
isEdit: true, isEdit: true,
labelWidth: '144px', labelWidth: '144px',
...@@ -813,7 +818,12 @@ export default { ...@@ -813,7 +818,12 @@ export default {
width: '320px', width: '320px',
isHide: false, isHide: false,
isDisabled: false isDisabled: false
} },
{
label: '服务说明',
name: 'serviceDesc',
addHtml: 'serviceDescHtml'
},
] ]
}, },
{ {
...@@ -1345,7 +1355,8 @@ export default { ...@@ -1345,7 +1355,8 @@ export default {
relatedCouponId: '', relatedCouponId: '',
takeAllMerchant: res.takeAllMerchant || (res.supplyMerchantList.length ? '0' : '1'), takeAllMerchant: res.takeAllMerchant || (res.supplyMerchantList.length ? '0' : '1'),
descImgList: [], descImgList: [],
businessType: [] businessType: [],
serviceDesc: res.serviceDesc || ''
} }
this.editForm.businessType = this.editForm.businessTypeList.filter(item => item.isChoose == 1).map(item => item.businessType) this.editForm.businessType = this.editForm.businessTypeList.filter(item => item.isChoose == 1).map(item => item.businessType)
if (res.relatedCoupon) { if (res.relatedCoupon) {
...@@ -1565,6 +1576,8 @@ export default { ...@@ -1565,6 +1576,8 @@ export default {
deleteAttrList.forEach(item => { deleteAttrList.forEach(item => {
delete params[item] delete params[item]
}) })
// 服务说明
params.serviceDesc = this.editForm.serviceDesc
this.loading = true this.loading = true
this.$apis.proManage this.$apis.proManage
.insertOrUpdateProApi(params) .insertOrUpdateProApi(params)
......
...@@ -152,7 +152,7 @@ export default { ...@@ -152,7 +152,7 @@ export default {
return !row.goodsStatus return !row.goodsStatus
}, },
listeners: { listeners: {
// click: row => this.handleEdit(3, row) click: this.del
} }
}, },
{ {
...@@ -353,7 +353,10 @@ export default { ...@@ -353,7 +353,10 @@ export default {
handleTop(row) { handleTop(row) {
this.secondConfirm('置顶', '是否确认置顶该商品?', 'proManage', 'topProApi', { id: row.id }) this.secondConfirm('置顶', '是否确认置顶该商品?', 'proManage', 'topProApi', { id: row.id })
}, },
// 删除
del(row) {
this.secondConfirm('删除', '确定删除此活动?', 'proManage', 'deleteGoodsApi', { id: row.id })
},
handleShare(row) { handleShare(row) {
this.$apis.proManage.getProShareApi({ id: row.id }).then(res => { this.$apis.proManage.getProShareApi({ id: row.id }).then(res => {
this.shareForm = res this.shareForm = res
......
...@@ -224,7 +224,7 @@ export default { ...@@ -224,7 +224,7 @@ export default {
return !row.goodsStatus return !row.goodsStatus
}, },
listeners: { listeners: {
// click: row => this.handleEdit(3, row) click: this.del
} }
}, },
{ {
...@@ -435,6 +435,10 @@ export default { ...@@ -435,6 +435,10 @@ export default {
handleTakeGood(row) { handleTakeGood(row) {
this.secondConfirm('取消带货', '是否确认取消带货该商品?', 'proManage', 'deleteTakeProApi', { id: row.id }) this.secondConfirm('取消带货', '是否确认取消带货该商品?', 'proManage', 'deleteTakeProApi', { id: row.id })
}, },
// 删除
del(row) {
this.secondConfirm('删除', '确定删除此活动?', 'proManage', 'deleteGoodsApi', { id: row.id })
},
dwonVisibleChange() { dwonVisibleChange() {
this.$refs.downRef && this.$refs.downRef.clearValidate() this.$refs.downRef && this.$refs.downRef.clearValidate()
this.isDownVisible = !this.isDownVisible 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!