更新功能
This commit is contained in:
parent
577c7c9d54
commit
871030f037
|
@ -25,3 +25,11 @@ export function behalfAdminNumber(data) {
|
||||||
return request.get("behalf_admin/number", data);
|
return request.get("behalf_admin/number", data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生成二维码
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export function behalfAdminCode(data) {
|
||||||
|
return request.get("behalf_admin/code", data);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<block v-for="(item,index) in list" :key="index">
|
<block v-for="(item,index) in list" :key="index">
|
||||||
<view class="item_list flex">
|
<view class="item_list flex" @click="navToGoodsDetails(item)">
|
||||||
<view>
|
<view>
|
||||||
<image class="goods_image" :src="item.image" mode="aspectFit"></image>
|
<image class="goods_image" :src="item.image" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
<text>订货价:</text>
|
<text>订货价:</text>
|
||||||
<text>{{' '+item.price}}</text>
|
<text>{{' '+item.price}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="add_goods" @click="getGoodsDetails(item)">加入购物单</view>
|
<!-- <view class="add_goods" @click="getGoodsDetails(item)">加入购物单</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
|
@ -242,6 +242,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* 跳转到产品详情
|
||||||
|
*/
|
||||||
|
navToGoodsDetails(item){
|
||||||
|
console.log(item);
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `pages/goods_details/index?id=${item.product_id}&referer=`
|
||||||
|
})
|
||||||
|
},
|
||||||
/*
|
/*
|
||||||
* 加入购物车
|
* 加入购物车
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -91,57 +91,58 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<priceComponent :product_id="product_id" :bar_code="code" @updateCode = "updateCode" v-if="showCommodity"></priceComponent>
|
|
||||||
|
|
||||||
<!-- <view class="popup_group">
|
<!-- <view class="popup_group">
|
||||||
<view class="radio">
|
<view class="radio">
|
||||||
<view class="radio_label ">规格选择</view>
|
<view class="radio_label ">规格选择</view>
|
||||||
<radio-group class="select_group flex_start" @change="specificationsRadioChange($event)">
|
<radio-group class="select_group flex_start" @change="specificationsRadioChange($event)">
|
||||||
<label class="radio_select" v-for="(val, i) in specificationsRadioList" :key="val.value">
|
<label class="radio_select" v-for="(val, i) in specificationsRadioList" :key="val.value">
|
||||||
<view>
|
<view>
|
||||||
<radio :value="val.value" :checked="val.value == setFormData.spec_type" />
|
<radio :value="val.value" :checked="val.value == setFormData.spec_type" />
|
||||||
</view>
|
</view>
|
||||||
<view>{{ val.name }}</view>
|
<view>{{ val.name }}</view>
|
||||||
</label>
|
</label>
|
||||||
</radio-group>
|
</radio-group>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="popup_group_item" @click="selectSpecification" v-if="setFormData.spec_type == 1">
|
<view class="popup_group_item" @click="selectSpecification" v-if="setFormData.spec_type == 1">
|
||||||
<view class="popup_group_item_label">选择规格</view>
|
<view class="popup_group_item_label">选择规格</view>
|
||||||
<view class="popup_group_item_value">
|
<view class="popup_group_item_value">
|
||||||
<view class="popup_group_item_message">
|
<view class="popup_group_item_message">
|
||||||
<span v-if="setFormData.specifica"
|
<span v-if="setFormData.specifica"
|
||||||
class="popup_group_item_message_value">{{ setFormData.specifica }}</span>
|
class="popup_group_item_message_value">{{ setFormData.specifica }}</span>
|
||||||
<span v-else>去选择</span>
|
<span v-else>去选择</span>
|
||||||
</view>
|
</view>
|
||||||
<view><span class="iconfont"></span></view>
|
<view><span class="iconfont"></span></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="popup_group_item" @click="setSpecifica" v-if="setFormData.spec_type == 0">
|
<view class="popup_group_item" @click="setSpecifica" v-if="setFormData.spec_type == 0">
|
||||||
<view class="popup_group_item_label">价格设置</view>
|
<view class="popup_group_item_label">价格设置</view>
|
||||||
<view class="popup_group_item_value">
|
<view class="popup_group_item_value">
|
||||||
<view class="popup_group_item_message">
|
<view class="popup_group_item_message">
|
||||||
<span v-if="setFormData.setSpecificaValue"
|
<span v-if="setFormData.setSpecificaValue"
|
||||||
class="popup_group_item_message_value">{{setFormData.setSpecificaValue}}</span>
|
class="popup_group_item_message_value">{{setFormData.setSpecificaValue}}</span>
|
||||||
<span v-else>去设置</span>
|
<span v-else>去设置</span>
|
||||||
</view>
|
</view>
|
||||||
<view><span class="iconfont"></span></view>
|
<view><span class="iconfont"></span></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="popup_group_item" @click="setSpecifica"
|
<view class="popup_group_item" @click="setSpecifica"
|
||||||
v-if="setFormData.spec_type == 1 && setFormData.specifica">
|
v-if="setFormData.spec_type == 1 && setFormData.specifica">
|
||||||
<view class="popup_group_item_label">价格设置</view>
|
<view class="popup_group_item_label">价格设置</view>
|
||||||
<view class="popup_group_item_value">
|
<view class="popup_group_item_value">
|
||||||
<view class="popup_group_item_message">
|
<view class="popup_group_item_message">
|
||||||
<span v-if="setFormData.setSpecificaValue2"
|
<span v-if="setFormData.setSpecificaValue2"
|
||||||
class="popup_group_item_message_value">{{setFormData.setSpecificaValue2}}</span>
|
class="popup_group_item_message_value">{{setFormData.setSpecificaValue2}}</span>
|
||||||
<span v-else>去设置</span>
|
<span v-else>去设置</span>
|
||||||
</view>
|
</view>
|
||||||
<view><span class="iconfont"></span></view>
|
<view><span class="iconfont"></span></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|
||||||
|
<priceComponent :product_id="product_id" :bar_code="code" @updateCode = "updateCode" v-if="showCommodity"></priceComponent>
|
||||||
|
|
||||||
<view class="popup_group">
|
<view class="popup_group">
|
||||||
|
|
||||||
|
@ -606,7 +607,7 @@
|
||||||
this
|
this
|
||||||
.setFormData.slider_image
|
.setFormData.slider_image
|
||||||
];
|
];
|
||||||
this.setFormData.cate_name = editGoodsDetils.storeCategory.cate_name; // 平台分类回显
|
this.setFormData.cate_name = editGoodsDetils?.storeCategory?.cate_name; // 平台分类回显
|
||||||
this.setFormData.mer_cate_name = editGoodsDetils.merCateId ? editGoodsDetils.merCateId.map(
|
this.setFormData.mer_cate_name = editGoodsDetils.merCateId ? editGoodsDetils.merCateId.map(
|
||||||
item => item
|
item => item
|
||||||
.category && item.category.cate_name).join(',') : '';
|
.category && item.category.cate_name).join(',') : '';
|
||||||
|
|
|
@ -264,7 +264,7 @@
|
||||||
<!-- <view v-if="!item.receipt && item.status != -1" class='bnt cancelBnt'
|
<!-- <view v-if="!item.receipt && item.status != -1" class='bnt cancelBnt'
|
||||||
@click.stop='applyInvoice(item.order_id)'>申请开票</view> -->
|
@click.stop='applyInvoice(item.order_id)'>申请开票</view> -->
|
||||||
<block v-if="item.order_status==2">
|
<block v-if="item.order_status==2">
|
||||||
<view class='bnt b-color' @click='goOrderDetails(item.order_id)'>去发货</view>
|
<view class='bnt b-color' @click='consignment(item.order_id)'>去发货</view>
|
||||||
</block>
|
</block>
|
||||||
<block v-if="item.status == 0 || item.status == 9 || item.status == -1">
|
<block v-if="item.status == 0 || item.status == 9 || item.status == -1">
|
||||||
<view class='bnt b-color' @click='goOrderDetails(item.order_id)'>查看详情</view>
|
<view class='bnt b-color' @click='goOrderDetails(item.order_id)'>查看详情</view>
|
||||||
|
@ -362,6 +362,15 @@
|
||||||
<view class="cle" @click="close">取消</view>
|
<view class="cle" @click="close">取消</view>
|
||||||
</view>
|
</view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
|
<u-popup :show="popUpShow" mode="center" :closeOnClickOverlay="true" round="12" @close="popUpShow = false">
|
||||||
|
<view style="text-align: center;margin-top: 30rpx;">
|
||||||
|
请把二维码展示给取货人员
|
||||||
|
</view>
|
||||||
|
<view style="padding: 28.07rpx;">
|
||||||
|
<image :src="payCodeUrl" style="width:400rpx;height: 400rpx;"></image>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</u-popup>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -389,7 +398,8 @@
|
||||||
} from '@/api/order.js';
|
} from '@/api/order.js';
|
||||||
import{
|
import{
|
||||||
behalfAdminOrderList,
|
behalfAdminOrderList,
|
||||||
behalfAdminNumber
|
behalfAdminNumber,
|
||||||
|
behalfAdminCode
|
||||||
} from "@/api/behalfAdmin.js"
|
} from "@/api/behalfAdmin.js"
|
||||||
import {
|
import {
|
||||||
getUserInfo
|
getUserInfo
|
||||||
|
@ -411,6 +421,7 @@
|
||||||
import {
|
import {
|
||||||
HTTP_REQUEST_URL
|
HTTP_REQUEST_URL
|
||||||
} from '@/config/app';
|
} from '@/config/app';
|
||||||
|
import { Toast } from '../../libs/uniApi';
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
payment,
|
payment,
|
||||||
|
@ -424,6 +435,8 @@
|
||||||
loading: false, //是否加载中
|
loading: false, //是否加载中
|
||||||
loadend: false, //是否加载完毕
|
loadend: false, //是否加载完毕
|
||||||
loadTitle: '加载更多', //提示语
|
loadTitle: '加载更多', //提示语
|
||||||
|
popUpShow: false, //二维码弹窗
|
||||||
|
payCodeUrl: '', //二维码地址
|
||||||
orderList: [], //订单数组
|
orderList: [], //订单数组
|
||||||
presellProList: [], //定金预售订单
|
presellProList: [], //定金预售订单
|
||||||
presellOrderCount: 0,
|
presellOrderCount: 0,
|
||||||
|
@ -693,6 +706,19 @@
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* 去发货
|
||||||
|
*/
|
||||||
|
consignment: function(order_id) {
|
||||||
|
this.popUpShow = true;
|
||||||
|
behalfAdminCode({
|
||||||
|
order_id
|
||||||
|
}).then((res)=>{
|
||||||
|
this.payCodeUrl = res.data.qrcode;
|
||||||
|
}).catch((e)=>{
|
||||||
|
Toast(e)
|
||||||
|
})
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 提示
|
* 提示
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue