更新委托销售功能

This commit is contained in:
weipengfei 2023-10-26 18:42:19 +08:00
parent f1dabd1461
commit 7ad8780361
10 changed files with 286 additions and 212 deletions

View File

@ -213,10 +213,10 @@
type: 2,
title: "送货"
},
{
type: 3,
title: "无需物流"
}
// {
// type: 3,
// title: ""
// }
],
splitList: [
{

View File

@ -54,7 +54,7 @@
</view>
<view class="bottom" @click="navTo('/subpkg/orderDetail/orderDetail')">
<view class="item">
<view>履约保证金额()</view>
<view>履约金额()</view>
<view class="num" v-show="eyeType">{{
userInfo.deposit || 0.0
}}</view>

View File

@ -169,7 +169,7 @@
一键改价
</view>
<view class="bnt" @click="modify(item, 1)">订单备注</view>
<view class="bnt bnt_color" v-if="where.status == 2 && item.order_type == 0&&item.activity_type==98"
<view class="bnt bnt_color" v-if="where.status == 2 && item.order_type == 0&&(item.activity_type==98||item.activity_type==99)"
@click="toPostage(item)">去发货
</view>
<view class="bnt bnt_color" v-if="where.status == 2 && item.order_type == 0&& item.order_type !=1 &&item.activity_type==0"

View File

@ -44,7 +44,7 @@
<view class="center-twoa">
委托方:
</view>
<view class="center-twob">
<view v-if="objinfo.mer_info" class="center-twob">
{{objinfo.mer_info.mer_name}}
</view>
</view>
@ -52,7 +52,7 @@
<view class="center-twoa">
被委托方:
</view>
<view class="center-twob">
<view v-if="objinfo.entrust_mer_info" class="center-twob">
{{objinfo.entrust_mer_info.mer_name}}
</view>
</view>
@ -61,22 +61,22 @@
委托周期:
</view>
<view class="center-twob">
{{objinfo.entrust_day}}
{{objinfo.entrust_day}}
</view>
</view>
<view class="center-two">
<view class="center-twoa">
结算周期:
</view>
<view class="center-twob">
{{objinfo.mer_info.settle_cycle}}
<view v-if="objinfo.mer_info" class="center-twob">
{{objinfo.mer_info.settle_cycle}}
</view>
</view>
<view class="center-two">
<view class="center-twoa">
结算利息:
</view>
<view class="center-twob">
<view v-if="objinfo.mer_info" class="center-twob">
{{objinfo.mer_info.interest_rate}}%
</view>
</view>

View File

@ -10,29 +10,44 @@
<view class="content-one">
<view class="content-one-img">
<image src="@/static/images/bg2.png" mode="aspectFit"></image>
<image :src="item.mer_info&&item.mer_info.mer_avatar" mode="aspectFit"></image>
</view>
<view class="content-one-txt">
<view class="content-text">
<view class="flex" style="justify-content: space-between;">
<view class="one-txt-a">
{{item.title}}
</view>
<view class="one-txt-b">
委托周期:{{item.entrust_day}}
</view>
</view>
</view>
<block>
<view class="content-two_one" v-if="item.mer_status==0">
<view class="content-two-edita" @click="order">
<view class="content-two-edita" style="font-weight: bold;">
待处理
</view>
<view class="contentgn">
<!-- <view class="contentgn_a" @click="soldEdit(item)">
处理
</view>
<span></span>-->
<view class="content-two_oneq" v-if="item.mer_status==1">
<view class="content-two-editb" @click="accepted" style="font-weight: bold;">
已接受
</view>
</view>
<view class="content-two_one" v-if="item.mer_status==2">
<view class="content-two-editc" @click="declined" style="font-weight: bold;">
已拒绝
</view>
</view>
<view class="content-two_one" v-if="item.type==4" style="font-weight: bold;">
<view class="content-two-editd" @click="soldEdit">
已完成
</view>
</view>
</block>
</view>
<view class="text-bottom">
<view class="one-txt-b">
委托周期:{{item.entrust_day}}
</view>
<block>
<view class="content-two_one" v-if="item.mer_status==0">
<view class="contentgn">
<view class="contentgn_a" style="margin-left: 10rpx;" @click="Edit(item)">
编辑
</view>
@ -47,9 +62,6 @@
</view>
</view>
<view class="content-two_oneq" v-if="item.mer_status==1">
<view class="content-two-editb" @click="accepted">
已接受
</view>
<view class="contentgn">
<view class="contentgn_a" @click="closingorder(item)" v-if="item.entrust_finish==3">
结束委托
@ -61,9 +73,6 @@
</view>
</view>
<view class="content-two_one" v-if="item.mer_status==2">
<view class="content-two-editc" @click="declined">
已拒绝
</view>
<view class="contentgn">
<!--<view class="contentgn_a" @click="deleteOrder(item)">
删除
@ -75,9 +84,6 @@
</view>
</view>
<view class="content-two_one" v-if="item.type==4">
<view class="content-two-editd" @click="soldEdit">
已完成
</view>
<view class="contentgn">
<view class="contentgn_a" @click="deleteOrder(item)">
删除
@ -88,6 +94,10 @@
</view>
</view>
</view>
</block>
</view>
</view>
</view>
</view>
<view class="adddelegation" @click="addDelegation">
<view class="adddelegation-one">
@ -101,6 +111,7 @@
<emptyPage title="暂无订单~"></emptyPage>
</view>
<u-loadmore :status="status" v-if="orderList.length >= where.limit" />
<view style="height: 200rpx;"></view>
<uni-popup ref="bindmobile" type="center" @click="close">
<view class="" style="position: relative;">
<view class="entrust">
@ -176,7 +187,7 @@
<view class="cancellation" @click="refused">
拒绝
</view>
<view class="determine" @click="agree(obj)">
<view class="determine" @click="agree(obj, 1)">
接受
</view>
</view>
@ -406,9 +417,9 @@
// this.$refs.bindmobile2.open()
this.$refs.bindmobile3.open()
},
agree(item) {
agree(item, status=2) {
finishentrust(item.community_id, {
status: 2,
status: status,
refusal: this.refuseds
}).then(res => {
@ -485,7 +496,6 @@
.content {
height: 100vh;
position: relative;
}
.content_top {
@ -503,7 +513,7 @@
opacity: 1;
display: flex;
position: fixed;
position: absolute;
// position: absolute;
bottom: 84rpx;
left: 50%;
margin-left: -347rpx;
@ -551,6 +561,7 @@
.content-one {
width: 100%;
display: flex;
padding-bottom: 23rpx;
@ -599,11 +610,30 @@
}
.content-text{
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
.text-bottom{
display: flex;
justify-content: space-between;
}
.one-txt-a{
flex: 1;
font-size: 30rpx;
display: -webkit-box;
-webkit-line-clamp: 2; /* 限制为三行 */
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
.content-two_oneq {
position: absolute;
right: 20rpx;
flex-shrink: 0;
text-align: right;
.content-two-edita {
@ -642,7 +672,7 @@
display: flex;
justify-content: space-between;
margin-top: 47rpx;
// margin-top: 47rpx;
.contentgn_a {
font-size: 32rpx;
@ -676,7 +706,7 @@
.content-two_one {
flex-shrink: 0;
text-align: right;
@ -716,7 +746,7 @@
display: flex;
justify-content: space-between;
margin-top: 47rpx;
// margin-top: 47rpx;
.contentgn_a {
font-size: 32rpx;

View File

@ -7,57 +7,72 @@
</view>
<view class="content-content" v-for="(item,i) in orderList" :key="i" @click="nav(item)">
<view class="content-one">
<view class="content-one-img">
<image src="@/static/images/bg2.png" mode="aspectFit"></image>
<image :src="item.mer_info&&item.mer_info.mer_avatar" mode="aspectFit"></image>
</view>
<view class="content-one-txt">
<view class="content-text">
<view class="flex" style="justify-content: space-between;">
<view class="one-txt-a">
{{item.title}}
</view>
<view class="one-txt-b">
委托周期:{{item.entrust_day}}
</view>
<view class="one-txt-b" v-if="item.mer_status==1" style="color: red;margin-top: 3rpx;">
{{item.entrust_finish==0?'未申请结束委托':""||item.entrust_finish==1?'委托已结束':""||item.entrust_finish==2?'商家拒绝结束委托':""||item.entrust_finish==3?'结束委托申请中':""}}
</view>
</view>
</view>
<block>
<view class="content-two_one" v-if="item.mer_status==0">
<view class="content-two-edita" @click="order">
<view class="content-two-edita" style="font-weight: bold;">
待处理
</view>
</view>
<view class="content-two_oneq" v-if="item.mer_status==1">
<view class="content-two-editb" @click="accepted" style="font-weight: bold;">
已接受
</view>
</view>
<view class="content-two_one" v-if="item.mer_status==2">
<view class="content-two-editc" @click="declined" style="font-weight: bold;">
已拒绝
</view>
</view>
<view class="content-two_one" v-if="item.type==4" style="font-weight: bold;">
<view class="content-two-editd" @click="soldEdit">
已完成
</view>
</view>
</block>
</view>
<view class="text-bottom">
<view class="one-txt-b">
委托周期:{{item.entrust_day}}
</view>
<block>
<view class="content-two_one" v-if="item.mer_status==0">
<view class="contentgn">
<view class="contentgn_a" @click="soldEdit(item)">
处理
</view>
<span></span>
<!-- <view class="contentgn_a" style="margin-left: 10rpx;" @click="Edit(item)">
编辑
</view>
<span></span> -->
<!-- <view class="contentgn_a" style="margin-left: 10rpx;" @click="deleteOrder(item)">
删除
</view>
<span></span> -->
<view class="contentgn_b" @click="detail(item)">
详情
</view>
</view>
</view>
<view class="content-two_oneq" v-if="item.mer_status==1">
<view class="content-two-editb" @click="accepted">
已接受
</view>
<view class="contentgn">
<view class="contentgn_a" style="margin-left: 10rpx;"
v-if="item.entrust_order_id>0&&item.mer_status==1" @click="closingorder(item)">
申请结束委托
<block v-if="item.entrust_order_id>0&&item.mer_status==1">
<view class="contentgn_a" v-if="item.entrust_finish==0" style="margin-left: 10rpx;" @click="closingorder(item)">
申请结束
</view>
<span v-if="item.entrust_order_id>0&&item.mer_status==1"></span>
<view class="contentgn_a" v-else-if="item.entrust_finish==1" style="margin-left: 10rpx; color: #20A162;">
已结束
</view>
<view class="contentgn_a" v-else-if="item.entrust_finish==2" @click="closingorder(item)" style="margin-left: 10rpx;">
被拒绝
</view>
<view class="contentgn_a" v-else-if="item.entrust_finish==3" style="margin-left: 10rpx; color: #FE9A10;">
申请中
</view>
<span></span>
</block>
<view class="contentgn_a" v-if="item.entrust_order_id==0" style="margin-left: 10rpx;"
@click="order(item)">
去下单
@ -70,21 +85,13 @@
</view>
</view>
<view class="content-two_one" v-if="item.mer_status==2">
<view class="content-two-editc" @click="declined">
已拒绝
</view>
<view class="contentgn">
<!--
-->
<view class="contentgn_b" @click="detail(item)">
详情
</view>
</view>
</view>
<view class="content-two_one" v-if="item.type==4">
<view class="content-two-editd" @click="soldEdit">
已完成
</view>
<view class="contentgn">
<view class="contentgn_b" @click="detail(item)">
@ -92,14 +99,16 @@
</view>
</view>
</view>
</block>
</view>
</view>
</view>
</view>
<view v-if="orderList.length == 0">
<emptyPage title="暂无订单~"></emptyPage>
</view>
<u-loadmore :status="status" v-if="orderList.length >= where.limit" />
<u-loadmore :status="status" v-if="orderList.length >= where.limit" />
<u-loadmore :status="status" v-else />
<uni-popup ref="bindmobile" type="center" @click="close">
<view class="" style="position: relative;">
<view class="entrust">
@ -228,7 +237,8 @@
import {
entrustlist,
finishchain,
checkchain
checkchain,
addEntrustCart
} from '@/api/sale.js'
export default {
components: {
@ -365,8 +375,22 @@
},
//
order(item) {
// uni.navigateTo({
// url: '/pages/commissionedSales/delegation_details/index?id=' + item.community_id + '&type=1'
// })
addEntrustCart({
community_id: item.community_id
}).then(res => {
if (res.status == 200) {
this.$util.Tips({
title: res.message,
icon: 'success'
})
uni.navigateTo({
url: '/pages/commissionedSales/delegation_details/index?id=' + item.community_id + '&type=1'
url: '/pages/users/order_confirm/index?cartId=' + res.data.cart_id.toString()
})
}
})
},
//
@ -471,8 +495,8 @@
.content-one {
width: 100%;
display: flex;
padding-bottom: 23rpx;
.content-one-img {
@ -480,6 +504,7 @@
height: 148rpx;
margin-right: 28rpx;
border: 1px solid;
flex-shrink: 0;
image {
width: 100%;
@ -488,7 +513,7 @@
}
.content-one-txt {
flex: 1;
.txt-b-a {
font-size: 32rpx;
@ -519,12 +544,31 @@
}
.content-text{
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
.text-bottom{
display: flex;
justify-content: space-between;
}
.one-txt-a{
flex: 1;
font-size: 30rpx;
display: -webkit-box;
-webkit-line-clamp: 2; /* 限制为三行 */
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
.content-two_oneq {
position: absolute;
right: 20rpx;
text-align: right;
flex-shrink: 0;
.content-two-edita {
@ -562,7 +606,7 @@
display: flex;
justify-content: space-between;
margin-top: 47rpx;
// margin-top: 47rpx;
.contentgn_a {
font-size: 32rpx;
@ -596,7 +640,7 @@
.content-two_one {
flex-shrink: 0;
text-align: right;
@ -636,7 +680,7 @@
display: flex;
justify-content: space-between;
margin-top: 47rpx;
// margin-top: 47rpx;
.contentgn_a {
font-size: 32rpx;

View File

@ -3,13 +3,13 @@
<view class="info">
<view class="bg"></view>
<view class="card">
<view class="title">店铺保证金信息</view>
<view class="title">店铺金信息</view>
<view class="item">
<text>已缴纳保证</text>
<text>已缴纳</text>
<text>{{merchant_Data.paid_margin}}</text>
</view>
<view class="item">
<text>剩余缴纳保证</text>
<text>剩余缴纳</text>
<text>{{merchant_Data.unpaid_margin}}</text>
</view>
<view class="item">
@ -106,7 +106,7 @@
});
},
//
//
decimal() {
merchant({
id: this.mer_id
@ -114,17 +114,17 @@
this.merchant_Data = res.data
});
},
//
//
paydecimal() {
if (this.merchant_Data.is_margin != 1) {
this.$util.Tips({
title: '暂时无需缴纳保证金'
title: '暂时无需缴纳金'
});
} else {
let that = this
uni.showModal({
title: '提示',
content: '商户' + this.merchant_Data.mer_name + '是否同意缴纳保证金',
content: '商户' + this.merchant_Data.mer_name + '是否同意缴纳金',
success: (res) => {
if (res.confirm) {

View File

@ -78,7 +78,7 @@
<view class="examine" @click="paydecimal">
<image class="icon_img" src="@/static/images/index20.png" mode="aspectFill">
</image>
<text class="text">保证缴纳金</text>
<text class="text">押金缴纳</text>
</view>
<view class="examine" @click="navigator(`/pages/commissionedSales/index/index?mer_id=${mer_id}`)">
@ -186,7 +186,7 @@
<view class="examine" @click="paydecimal">
<image class="icon_img" src="@/static/images/index20.png" mode="aspectFill">
</image>
<text class="text">保证缴纳金</text>
<text class="text">押金缴纳</text>
</view>
<view class="examine" @click="navigator(`/pages/users/trading_hall/index?mer_id=${mer_id}`)">
@ -361,7 +361,7 @@
<view class="examine" @click="paydecimal">
<image class="icon_img" src="@/static/images/index20.png" mode="aspectFill">
</image>
<text class="text">保证缴纳金</text>
<text class="text">押金缴纳</text>
</view>
</view>
@ -817,7 +817,7 @@
},
//
//
paydecimal() {
if (this.userInfoData.mer_info.mer_settlement_agree_status == 0) {

View File

@ -25,7 +25,7 @@
<view class="txt-b-a">
{{item.total_price}}
</view>
<view class="txt-b-b"
<view v-if="item.resale_type!=1" class="txt-b-b"
style="font-size: 28rpx;font-family: SF Pro Display-Regular, SF Pro Display;font-weight: 400;color: #999999;">
结算价:{{item.discount_price}}
</view>

View File

@ -39,14 +39,14 @@
<view class="record flex">
<view class="circle"></view>
<view class="cont-box">
<view class="title">签署里海云履约保证金协议</view>
<view class="title">签署里海云履约金协议</view>
<view class="text-box">
<view class="have-filled" v-if="false">
<text>1.完成签署履约保证金协议2023-05-08 13:15完成</text>
<text>1.完成签署履约金协议2023-05-08 13:15完成</text>
</view>
<view class="get-through" v-else>
<text class="through-title">1签署里海云履约保证金协议</text>
<text>请详细阅读里海云履约保证金协议并充分理解内容后进行电子签名</text>
<text class="through-title">1签署里海云履约金协议</text>
<text>请详细阅读里海云履约金协议并充分理解内容后进行电子签名</text>
<view class="flex_a_c" style="margin-top: auto;">
<view class="through-btn">签署协议</view>
<view class="tiaoguo">跳过</view>
@ -58,16 +58,16 @@
<view class="record flex">
<view class="circle"></view>
<view class="cont-box">
<view class="title">缴纳履约保证</view>
<view class="title">缴纳履约</view>
<view class="text-box">
<view class="have-filled" v-if="!true">
<text>1.完成履约保证金缴纳 2023-05-08 13:15完成</text>
<text>1.完成履约金缴纳 2023-05-08 13:15完成</text>
</view>
<view class="get-through" v-else>
<text class="through-title">1缴纳履约保证</text>
<text>线上缴纳履约保证金完成保证金审核后签约完成</text>
<text class="through-title">1缴纳履约</text>
<text>线上缴纳履约押金完成押金审核后签约完成</text>
<view class="flex_a_c" style="margin-top: auto;">
<view class="through-btn">缴纳履约保证</view>
<view class="through-btn">缴纳履约</view>
<view class="tiaoguo">跳过</view>
</view>
</view>