This commit is contained in:
weipengfei 2023-12-25 18:45:21 +08:00
parent 413b6141a8
commit c64a39b452
3 changed files with 23 additions and 13 deletions

View File

@ -505,8 +505,8 @@ export function labelStatusApi (id, status) {
return request.post(`product/label/status/${id}`, { status }) return request.post(`product/label/status/${id}`, { status })
} }
/** 商品列表 -- 获取标签项 */ /** 商品列表 -- 获取标签项 */
export function getProductLabelApi () { export function getProductLabelApi (data) {
return request.get(`product/label/option`) return request.get(`product/label/option`, data)
} }
/** 商品列表 -- 编辑标签 */ /** 商品列表 -- 编辑标签 */
export function updatetProductLabel (id, data) { export function updatetProductLabel (id, data) {

View File

@ -85,7 +85,7 @@
/> />
</el-form-item> </el-form-item>
</el-col> </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-form-item label="商品标签:">
<el-select <el-select
v-model="formValidate.mer_labels" v-model="formValidate.mer_labels"
@ -95,9 +95,9 @@
> >
<el-option <el-option
v-for="item in labelList" v-for="item in labelList"
:key="item.id" :key="item.product_label_id"
:label="item.name" :label="item.label_name"
:value="item.id" :value="item.product_label_id"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -1251,7 +1251,7 @@ import {
productGetTempKeysApi, productGetTempKeysApi,
guaranteeListApi, guaranteeListApi,
productPreviewApi, productPreviewApi,
getProductLabelApi, labelListApi,
specsSelectedApi, specsSelectedApi,
productSpecsDetailApi productSpecsDetailApi
} from '@/api/product' } from '@/api/product'
@ -1714,9 +1714,10 @@ export default {
}, },
// //
getLabelLst () { getLabelLst () {
getProductLabelApi() labelListApi({
.then(res => { type: 1
this.labelList = res.data }).then(res => {
this.labelList = res.data.list
}) })
.catch(res => { .catch(res => {
this.$message.error(res.message) this.$message.error(res.message)

View File

@ -146,6 +146,11 @@
/> />
</template> </template>
</el-table-column> </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"> <el-table-column prop="stock" label="商品状态" min-width="90">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.us_status | productStatusFilter }}</span> <span>{{ scope.row.us_status | productStatusFilter }}</span>
@ -200,9 +205,10 @@
<el-radio-group <el-radio-group
v-model="addShopInfo.type" 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="three">三日达</el-radio>
<el-radio label="seven">七日达</el-radio> <el-radio label="seven">七日达</el-radio> -->
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -259,9 +265,10 @@ export default {
}, },
show: false, show: false,
addShopInfo: { addShopInfo: {
product_id: '',
img: '', img: '',
store_name: '', store_name: '',
type: '' type: 'five'
}, },
roterPre: roterPre, roterPre: roterPre,
BASE_URL: SettingMer.https, BASE_URL: SettingMer.https,
@ -366,6 +373,8 @@ export default {
}, },
// //
add(){ add(){
if(!this.addShopInfo.product_id) return Message.error('请选择商品');
if(!this.addShopInfo.type) return Message.error('请选择送达时间');
addCloudProduct(this.addShopInfo).then((res)=>{ addCloudProduct(this.addShopInfo).then((res)=>{
Message.success(res.message); Message.success(res.message);
this.getList(); this.getList();