更新
This commit is contained in:
parent
413b6141a8
commit
c64a39b452
@ -505,8 +505,8 @@ export function labelStatusApi (id, status) {
|
||||
return request.post(`product/label/status/${id}`, { status })
|
||||
}
|
||||
/** 商品列表 -- 获取标签项 */
|
||||
export function getProductLabelApi () {
|
||||
return request.get(`product/label/option`)
|
||||
export function getProductLabelApi (data) {
|
||||
return request.get(`product/label/option`, data)
|
||||
}
|
||||
/** 商品列表 -- 编辑标签 */
|
||||
export function updatetProductLabel (id, data) {
|
||||
|
@ -85,7 +85,7 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col v-if="labelList.length" :span="24">
|
||||
<el-col v-if="labelList.length&&$store.state.user.merchantType.type_code=='TypeSupplyChain'" :span="24">
|
||||
<el-form-item label="商品标签:">
|
||||
<el-select
|
||||
v-model="formValidate.mer_labels"
|
||||
@ -95,9 +95,9 @@
|
||||
>
|
||||
<el-option
|
||||
v-for="item in labelList"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
:key="item.product_label_id"
|
||||
:label="item.label_name"
|
||||
:value="item.product_label_id"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@ -1251,7 +1251,7 @@ import {
|
||||
productGetTempKeysApi,
|
||||
guaranteeListApi,
|
||||
productPreviewApi,
|
||||
getProductLabelApi,
|
||||
labelListApi,
|
||||
specsSelectedApi,
|
||||
productSpecsDetailApi
|
||||
} from '@/api/product'
|
||||
@ -1714,9 +1714,10 @@ export default {
|
||||
},
|
||||
// 获取标签项
|
||||
getLabelLst () {
|
||||
getProductLabelApi()
|
||||
.then(res => {
|
||||
this.labelList = res.data
|
||||
labelListApi({
|
||||
type: 1
|
||||
}).then(res => {
|
||||
this.labelList = res.data.list
|
||||
})
|
||||
.catch(res => {
|
||||
this.$message.error(res.message)
|
||||
|
@ -146,6 +146,11 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="mer_labels_name" label="送达时间">
|
||||
<template slot-scope="scope">
|
||||
<span style="color: #ff0018;">{{scope.row.mer_labels_name}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="stock" label="商品状态" min-width="90">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.us_status | productStatusFilter }}</span>
|
||||
@ -200,9 +205,10 @@
|
||||
<el-radio-group
|
||||
v-model="addShopInfo.type"
|
||||
>
|
||||
<el-radio label="two" class="radio">次日达</el-radio>
|
||||
<el-radio label="five">五日达</el-radio>
|
||||
<!-- <el-radio label="two" class="radio">次日达</el-radio>
|
||||
<el-radio label="three">三日达</el-radio>
|
||||
<el-radio label="seven">七日达</el-radio>
|
||||
<el-radio label="seven">七日达</el-radio> -->
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@ -259,9 +265,10 @@ export default {
|
||||
},
|
||||
show: false,
|
||||
addShopInfo: {
|
||||
product_id: '',
|
||||
img: '',
|
||||
store_name: '',
|
||||
type: ''
|
||||
type: 'five'
|
||||
},
|
||||
roterPre: roterPre,
|
||||
BASE_URL: SettingMer.https,
|
||||
@ -366,6 +373,8 @@ export default {
|
||||
},
|
||||
// 添加商品
|
||||
add(){
|
||||
if(!this.addShopInfo.product_id) return Message.error('请选择商品');
|
||||
if(!this.addShopInfo.type) return Message.error('请选择送达时间');
|
||||
addCloudProduct(this.addShopInfo).then((res)=>{
|
||||
Message.success(res.message);
|
||||
this.getList();
|
||||
|
Loading…
x
Reference in New Issue
Block a user