|
@ -1,23 +1,6 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="serviceAdd-wrap"> |
|
|
<div class="serviceAdd-wrap"> |
|
|
<div class="ml12 mr12 overFlow-wrap"> |
|
|
<div class="ml12 mr12 overFlow-wrap"> |
|
|
<!-- <PromptText text="如何添加服务?" :type="2" class="add-info"> |
|
|
|
|
|
<template #next_desc> |
|
|
|
|
|
<div class="alert-more flex gap12" :class="alertShow ? '' : 'alert-more-hide'" @click="handleAlert"> |
|
|
|
|
|
<div v-if="alertShow">收起</div> |
|
|
|
|
|
<div v-else>展开</div> |
|
|
|
|
|
<img src="@/assets/site/show_and_hide.png" alt=""> |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
|
|
|
<template #desc> |
|
|
|
|
|
<div class="alert-more-info mt12" v-show="alertShow"> |
|
|
|
|
|
<div class="flex mb10 gap10">1.点击左侧导航进入设置页,开启所需服务(<img src="@/assets/site/open_success_menu.svg" |
|
|
|
|
|
alt="">图标表示已开启)。</div> |
|
|
|
|
|
<div class="flex mb10 gap10">2.可开启多个服务。</div> |
|
|
|
|
|
<div class="flex gap10">3.全部开启后,点击底部 [返回服务列表] 。</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
|
|
|
</PromptText> --> |
|
|
|
|
|
<div class="flex-common service_info"> |
|
|
<div class="flex-common service_info"> |
|
|
<div class="service_info_wrap common_scss"> |
|
|
<div class="service_info_wrap common_scss"> |
|
|
<div class="title flex gap6"> |
|
|
<div class="title flex gap6"> |
|
@ -55,8 +38,7 @@ |
|
|
<div class="flex"> |
|
|
<div class="flex"> |
|
|
<label>进货价格:</label> |
|
|
<label>进货价格:</label> |
|
|
<p> |
|
|
<p> |
|
|
{{ serviceAddInfo.supply_info && serviceAddInfo.supply_info.price_desc |
|
|
{{ serviceAddInfo.supply_info && serviceAddInfo.supply_info.price_desc }} {{ serviceAddInfo.supply_info && serviceAddInfo.supply_info.price_warning }} |
|
|
}}{{ serviceAddInfo.supply_info && serviceAddInfo.supply_info.price_warning }} |
|
|
|
|
|
</p> |
|
|
</p> |
|
|
</div> |
|
|
</div> |
|
|
<div class="flex" |
|
|
<div class="flex" |
|
@ -254,7 +236,7 @@ |
|
|
@click="handleDelBindClick(row, key)">删除</span> |
|
|
@click="handleDelBindClick(row, key)">删除</span> |
|
|
<span class="bind-btn" |
|
|
<span class="bind-btn" |
|
|
:class="row.is_default === '1' ? 'bind-default-active' : 'bind-default'" |
|
|
:class="row.is_default === '1' ? 'bind-default-active' : 'bind-default'" |
|
|
@click="handleDefaultConfirm(row.id)">默认商品</span> |
|
|
@click="handleDefaultConfirm(row)">默认商品</span> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -349,7 +331,6 @@ export default { |
|
|
pricePerThousand: 0, |
|
|
pricePerThousand: 0, |
|
|
isValid: false |
|
|
isValid: false |
|
|
}, |
|
|
}, |
|
|
// siteInfo: null, |
|
|
|
|
|
form1: { |
|
|
form1: { |
|
|
unit_num: '' |
|
|
unit_num: '' |
|
|
}, |
|
|
}, |
|
@ -367,9 +348,9 @@ export default { |
|
|
// menuItem() { |
|
|
// menuItem() { |
|
|
// return this.$store.state.currentMenuItem; |
|
|
// return this.$store.state.currentMenuItem; |
|
|
// } |
|
|
// } |
|
|
formatted() { |
|
|
// formatted() { |
|
|
return this.formatProfitResult(this.calculation); |
|
|
// return this.formatProfitResult(this.calculation); |
|
|
} |
|
|
// } |
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
|
'$store.state.currentMenuItem': { |
|
|
'$store.state.currentMenuItem': { |
|
@ -421,8 +402,6 @@ export default { |
|
|
this.$router.go(-1); |
|
|
this.$router.go(-1); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
// store.commit('SET_PAGETITLE', '站点信息'); |
|
|
|
|
|
// this.getAddServiceList(); |
|
|
|
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
findFirstIncomplete(currentItem, secondMenu) { |
|
|
findFirstIncomplete(currentItem, secondMenu) { |
|
@ -560,22 +539,6 @@ export default { |
|
|
handleAlert() { |
|
|
handleAlert() { |
|
|
this.alertShow = !this.alertShow |
|
|
this.alertShow = !this.alertShow |
|
|
}, |
|
|
}, |
|
|
// //获得左侧菜单导航 |
|
|
|
|
|
// getAddServiceList() { |
|
|
|
|
|
// const that = this |
|
|
|
|
|
// that.$http('POST', '/agentnew/ajax_get_service_add_list', { |
|
|
|
|
|
// uid: that.uid, |
|
|
|
|
|
// prodid: that.prodid, |
|
|
|
|
|
// }).then(response => { |
|
|
|
|
|
// that.$nextTick(() => { |
|
|
|
|
|
// that.siteInfo = response.data |
|
|
|
|
|
// // store.commit('SET_SECOND_MENU', response.data); |
|
|
|
|
|
// // that.setMenuList() |
|
|
|
|
|
// }) |
|
|
|
|
|
// }).catch(error => { |
|
|
|
|
|
// console.error(error, 'error') |
|
|
|
|
|
// }) |
|
|
|
|
|
// }, |
|
|
|
|
|
//获得要添加的服务信息 |
|
|
//获得要添加的服务信息 |
|
|
getServiceAddInfo() { |
|
|
getServiceAddInfo() { |
|
|
this.serviceAddInfo = {} |
|
|
this.serviceAddInfo = {} |
|
@ -953,18 +916,19 @@ export default { |
|
|
console.error(error, 'error') |
|
|
console.error(error, 'error') |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
handleDefaultConfirm(id) { |
|
|
handleDefaultConfirm(row) { |
|
|
|
|
|
if(row.is_default == 1) return false |
|
|
const that = this |
|
|
const that = this |
|
|
this.$http('POST', '/agentnew/ajax_default_bind_setting', { |
|
|
this.$http('POST', '/agentnew/ajax_default_bind_setting', { |
|
|
uid: that.uid, |
|
|
uid: that.uid, |
|
|
type: that.type, |
|
|
type: that.type, |
|
|
id: id, |
|
|
id: row.id, |
|
|
}).then(response => { |
|
|
}).then(response => { |
|
|
if (response.status) { |
|
|
if (response.status) { |
|
|
that.$message.success('设置成功'); |
|
|
that.$message.success('设置成功'); |
|
|
that.bindList.forEach((item) => { |
|
|
that.bindList.forEach((item) => { |
|
|
item.is_default = '0' |
|
|
item.is_default = '0' |
|
|
if (item.id === id) item.is_default = '1' |
|
|
if (item.id === row.id) item.is_default = '1' |
|
|
}); |
|
|
}); |
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
|