先货后款,入库,下单.收货,同意

This commit is contained in:
THK3121 2023-07-10 10:11:29 +08:00
parent 42b860b90e
commit 24415dc4ad
6 changed files with 2568 additions and 2546 deletions

View File

@ -220,6 +220,8 @@
<view class='conter' v-if="orderInfo.pay_type==4 || orderInfo.pay_type==5">支付宝支付</view>
<view class='conter'
v-if="orderInfo.pay_type==1 || orderInfo.pay_type==2 || orderInfo.pay_type==3">微信支付</view>
<view class='conter'
v-if="orderInfo.pay_type==8 ">先货后款</view>
</view>
<view class='item acea-row row-between' v-if="orderInfo.mark">
<view>买家留言</view>

View File

@ -131,9 +131,14 @@
<view>商品总额</view>
<view class='conter'>{{orderInfo.total_price}}</view>
</view>
<view class='item acea-row row-between' v-if="credit_buy == 1">
<view class='item acea-row row-between' v-if="orderInfo.orderList[0].merchant.settle_cycle">
<view>支付方式</view>
<view class='conter'>先货后款</view>
<view class='conter' v-if="orderInfo.pay_type==0">余额支付</view>
<view class='conter' v-if="orderInfo.pay_type==4 || orderInfo.pay_type==5">支付宝支付</view>
<view class='conter'
v-if="orderInfo.pay_type==1 || orderInfo.pay_type==2 || orderInfo.pay_type==3">微信支付</view>
<view class='conter'
v-if="orderInfo.pay_type==8 ">先货后款</view>
</view>
</view>
@ -161,14 +166,14 @@
</view>
<view class='item acea-row row-between'>
<view>实付款</view>
<view class='conter' style="color: black;" v-if="credit_buy == 1">先货后款 : {{orderInfo.pay_price}}</view>
<view class='conter' style="color: black;">{{orderInfo.pay_price}}</view>
<view class="conters" style="color: black;" v-if="credit_buy == 1">
结算周期到期后付款 {{orderInfo.pay_price}}
<view class='conter' style="color: black;" v-if="orderInfo.orderList[0].merchant.settle_cycle">先货后款 : {{orderInfo.pay_price}}</view>
<view class='conter' style="color: black;" v-else>{{orderInfo.pay_price}}</view>
<view class="conters" style="color: black;" v-if="orderInfo.orderList[0].merchant.settle_cycle">
结算周期到期后付款 {{orderInfo.interest.total_amount}}
<image src="@/static/images/wenhao.png" mode="" @click="Settlement"></image>
</view>
<view class="conters" v-if="credit_buy == 1">
结算周期:30 日利率:0.05%
<view class="conters" v-if="orderInfo.orderList[0].merchant.settle_cycle">
结算周期:{{orderInfo.orderList[0].merchant.settle_cycle}} 日利率:{{orderInfo.orderList[0].merchant.interest_rate}}%
</view>
</view>
@ -283,7 +288,7 @@
}
},
computed: configMap({hide_mer_status:0,alipay_open:0,yue_pay_status:0},
mapGetters(['isLogin','uid','viewColor','keyColor'])),
mapGetters(['isLogin','uid','viewColor','keyColor',])),
onLoad: function(options) {
this.credit_buy=options.credit_buy
if(options.product_type)this.product_type=options.product_type
@ -446,6 +451,7 @@
let _type = 0;
uni.hideLoading();
that.$set(that, 'orderInfo', res.data);
console.log(that.orderInfo.orderList[0].merchant.settle_cycle);
}).catch(err => {
// console.log(err)
uni.hideLoading();

View File

@ -52,6 +52,11 @@
<image mode='widthFix' class="image" src="../static/images/product_specification.png"></image>
<text class="text">规格模板</text>
</navigator>
<navigator class="item" :url="`/pages/users/online_warehousing/index?mer_id=${mer_id}&product_id=${data.product_id}&unique=${data.unique}`"
hover-class='none'>
<image mode='widthFix' class="image" src="@/static/images/daoru.png"></image>
<text class="text">商品导入</text>
</navigator>
</view>
</swiper-item>
</block>
@ -230,7 +235,20 @@
this.on_line = action
console.log(this.on_line);
this.checkboxList1 = rowId
if(!this.checkboxList1[0].sku && action == 0){
navigateTo(1, '/pages/users/online_warehousing/index', {
mer_id: this.mer_id,
product_id: this.data.product_id,
unique: this.data.unique,
});
}else{
this.data.product_id = this.checkboxList1[0].product_id
this.data.unique = this.checkboxList1[0].unique
this.show = true
console.log(this.data);
}
},
close() {
@ -245,6 +263,11 @@
this.$util.Tips({
title: res.message
})
}).catch(err=>{
this.show=false
this.$util.Tips({
title: err.message
})
})
}
if (this.on_line == 0) {

View File

@ -68,8 +68,7 @@
</view>
<view class="progress_step">
<text class="name">尾款</text>
<text
class="price">{{ (goods.productPresellAttr.final_price * goods.cart_num).toFixed(2) }}</text>
<text class="price">{{ (goods.productPresellAttr.final_price * goods.cart_num).toFixed(2) }}</text>
</view>
<view class="progress_pay">
{{ goods.productPresell.final_start_time | filterDay}}开始支付尾款
@ -119,8 +118,7 @@
<view class="boxs">
<view class='item acea-row row-between-wrapper'>
<view>配送方式</view>
<view
v-if="item.delivery_way.length == 2 && (item.order.allow_delivery && item.order.allow_take)"
<view v-if="item.delivery_way.length == 2 && (item.order.allow_delivery && item.order.allow_take)"
class='discount' @tap="openShowBox(item,index)">
{{item.order.isTake==0 ? deliveryName :'到店核销'}}
<text class='iconfont icon-jiantou'></text>
@ -179,9 +177,8 @@
</view>
<view class='item acea-row row-between-wrapper' v-if="textareaStatus">
<view style="width: 100px;">备注信息</view>
<input v-if="coupon.status===false" placeholder-class='placeholder'
@input='bindHideKeyboard' value="" name="mark" placeholder='选填备注信息'
v-model="msgObj[item.mer_id]"></input>
<input v-if="coupon.status===false" placeholder-class='placeholder' @input='bindHideKeyboard' value=""
name="mark" placeholder='选填备注信息' v-model="msgObj[item.mer_id]"></input>
</view>
<view class="total">
{{item.order.total_num}} 小计
@ -191,7 +188,7 @@
<view class="total" v-if="item.credit_buy == 1">
实付
<view class="price" ><text></text>0.00</view>
<view class="price"><text></text>0.00</view>
</view>
</view>
</view>
@ -203,40 +200,36 @@
<view v-if="item.key == 'mobile'" class='item acea-row row-between-wrapper'>
<view><text class="item-require" v-if="item.require">*</text>{{item.title}}</view>
<view class='discount'>
<input type="text" v-model="item.value" placeholder="请填写手机号"
placeholder-class='placeholder' />
<input type="text" v-model="item.value" placeholder="请填写手机号" placeholder-class='placeholder' />
</view>
</view>
<view v-if="item.key == 'email'" class='item acea-row row-between-wrapper'>
<view><text class="item-require" v-if="item.require">*</text>{{item.title}}</view>
<view class='discount'>
<input type="text" v-model="item.value" placeholder="请填写邮箱"
placeholder-class='placeholder' />
<input type="text" v-model="item.value" placeholder="请填写邮箱" placeholder-class='placeholder' />
</view>
</view>
<view v-if="item.key == 'idCard'" class='item acea-row row-between-wrapper'>
<view><text class="item-require" v-if="item.require">*</text>{{item.title}}</view>
<view class='discount'>
<input type="text" v-model="item.value" placeholder="请填写身份证号"
placeholder-class='placeholder' />
<input type="text" v-model="item.value" placeholder="请填写身份证号" placeholder-class='placeholder' />
</view>
</view>
<view v-if="item.key == 'text' || item.key == 'number'"
class='item acea-row row-between-wrapper'>
<view v-if="item.key == 'text' || item.key == 'number'" class='item acea-row row-between-wrapper'>
<view><text class="item-require" v-if="item.require">*</text>{{item.title}}</view>
<view class='discount'>
<input v-if="item.key == 'text'" type="text" v-model="item.value"
:placeholder="'请填写'+item.title" placeholder-class='placeholder' />
<input v-if="item.key == 'number'" type="number" v-model="item.value"
:placeholder="'请填写'+item.title" placeholder-class='placeholder' />
<input v-if="item.key == 'text'" type="text" v-model="item.value" :placeholder="'请填写'+item.title"
placeholder-class='placeholder' />
<input v-if="item.key == 'number'" type="number" v-model="item.value" :placeholder="'请填写'+item.title"
placeholder-class='placeholder' />
</view>
</view>
<view v-if="item.key == 'date'" class='item acea-row row-between-wrapper'>
<view><text class="item-require" v-if="item.require">*</text>{{item.title}}</view>
<view class='discount'>
<picker mode="date" :value="item.value" start="1970-01-01" @change="bindDateChange">
<input type="text" @click="getTime(index)" disabled v-model="item.value"
placeholder="请选择日期" placeholder-class='placeholder' />
<input type="text" @click="getTime(index)" disabled v-model="item.value" placeholder="请选择日期"
placeholder-class='placeholder' />
</picker>
</view>
</view>
@ -244,16 +237,16 @@
<view><text class="item-require" v-if="item.require">*</text>{{item.title}}</view>
<view class='discount'>
<picker mode="time" :value="item.value" start="1970-01-01" @change="bindDateChange">
<input type="text" @click="getTime(index)" disabled v-model="item.value"
placeholder="请选择时间" placeholder-class='placeholder' />
<input type="text" @click="getTime(index)" disabled v-model="item.value" placeholder="请选择时间"
placeholder-class='placeholder' />
</picker>
</view>
</view>
<view v-if="item.key == 'image'" class='item'>
<view><text class="item-require" v-if="item.require">*</text>{{item.title}}</view>
<view class="upload">
<view class='pictrue' v-for="(itemn,indexn) in item.value" :key="indexn"
:data-index="indexn" @click="getPhotoClickIdx">
<view class='pictrue' v-for="(itemn,indexn) in item.value" :key="indexn" :data-index="indexn"
@click="getPhotoClickIdx">
<image :src="itemn"></image>
<text class="iconfont icon-guanbi4" @click.stop="DelPic(item,indexn)"></text>
</view>
@ -282,15 +275,13 @@
<view class='item acea-row row-between-wrapper'>
<view><text class="item-require">*</text>收货人姓名</view>
<view class='discount'>
<input type="text" v-model="post.real_name" placeholder="请填写收货人姓名"
placeholder-class='placeholder' />
<input type="text" v-model="post.real_name" placeholder="请填写收货人姓名" placeholder-class='placeholder' />
</view>
</view>
<view class='item acea-row row-between-wrapper'>
<view><text class="item-require">*</text>收货人电话</view>
<view class='discount'>
<input type="number" v-model="post.phone" placeholder="请填写收货人电话"
placeholder-class='placeholder' />
<input type="number" v-model="post.phone" placeholder="请填写收货人电话" placeholder-class='placeholder' />
</view>
</view>
</form>
@ -347,8 +338,7 @@
<view>店铺优惠金额</view>
<view class='money'>-{{coupon_price}}</view>
</view>
<view class='item acea-row row-between-wrapper'
v-if="open_integral && userInfo.integral>0 && order_type == 0">
<view class='item acea-row row-between-wrapper' v-if="open_integral && userInfo.integral>0 && order_type == 0">
<view>积分抵扣</view>
<view class='money'>
<text v-if="!use_integral">当前积分<text class="pColor">{{userInfo.integral}}</text></text>
@ -384,7 +374,7 @@
<view class="footer_count">
<view>
合计:
<text class='pColor' v-if="cartArr[4].payStatus == 1" >0.00</text>
<text class='pColor' v-if="cartArr[4].payStatus == 1">0.00</text>
<text class='pColor' v-else>{{totalPrice }}</text>
</view>
<view style="font-size: 14px;color: #F84221;" v-if="cartArr[4].payStatus == 1">
@ -401,8 +391,8 @@
</view>
<block v-if="coupon.status">
<couponListWindow :coupon='coupon' :couponTitle="plantCoupon ? '平台优惠券' : '优惠券'"
@ChangCouponsClone="ChangCouponsClone" @getCoupon="getCoupon" :openType='openType'
@ChangCoupons="ChangCoupons" :coupon_amount='coupon_amount' :coupon_number='coupon_number'>
@ChangCouponsClone="ChangCouponsClone" @getCoupon="getCoupon" :openType='openType' @ChangCoupons="ChangCoupons"
:coupon_amount='coupon_amount' :coupon_number='coupon_number'>
</couponListWindow>
</block>
<addressWindow ref="addressWindow" @changeTextareaStatus="changeTextareaStatus" :address='address'
@ -410,8 +400,8 @@
<addInvoicing ref="addInvoicing" @changeInvoiceClose="changeInvoiceClose" :invoice='invoice'></addInvoicing>
<authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"></authorize>
<block v-if="isShowBox">
<checkDelivery :deliveryName="deliveryName" :isShowBox="isShowBox" :activeObj="activeObj"
:radioList="radioList" @close="boxClose" @confirmBtn="getData">
<checkDelivery :deliveryName="deliveryName" :isShowBox="isShowBox" :activeObj="activeObj" :radioList="radioList"
@close="boxClose" @confirmBtn="getData">
</checkDelivery>
</block>
<!--优惠明细弹窗-->
@ -533,7 +523,7 @@
value: 'offline',
title: '线下支付',
payStatus: 2,
},{
}, {
"name": "先货后款",
"icon": "tan-a-lujing17324",
value: 'creditBuy',
@ -653,9 +643,9 @@
order_key: '',
is_take: '',
domain: HTTP_REQUEST_URL,
product_type:'',
interest_rate:'',//
settle_cycle:'',//
product_type: '',
interest_rate: '', //
settle_cycle: '', //
};
},
computed: {
@ -673,7 +663,7 @@
onReady() {},
mounted: function() {},
onLoad: function(options) {
this.product_type=options.product_type
this.product_type = options.product_type
this.seckillId = options.seckillId
// #ifdef H5
this.from = this.$wechat.isWeixin() ? 'weixin' : 'h5'
@ -1077,12 +1067,12 @@
that.allow_address = res.data.allow_address
that.deliveryName = res.data.order_model == 0 ? '快递配送' : '虚拟发货'
that.order_key = res.data.key
that.interest_rate = res.data.order[0].interest_rate
that.settle_cycle = res.data.order[0].settle_cycle
that.cartArr[4].title =
`结算周期:${res.data.order[0].settle_cycle}天 日利率:${res.data.order[0].interest_rate}%`
console.log(that.settle_cycle);
if(res.data.order[0].credit_buy == 1){
if (res.data.order[0].credit_buy == 1) {
this.cartArr[4].payStatus = 1
}else{
} else {
this.cartArr[4].payStatus = 0
}
@ -1122,7 +1112,7 @@
phone: res.data.phone
}
console.log(that.addressId);
this.$nextTick(()=>{
this.$nextTick(() => {
this.getConfirm(that.addressId);
})
})
@ -1211,7 +1201,8 @@
callback_key = res.data.result.pay_key,
jsConfig = res.data.result.config,
goPages = '/pages/order_pay_status/index?order_id=' + orderId + '&msg=' + res.message,
goPagesOrder='/pages/order_details/stay?order_id=' + orderId+'&credit_buy=1&product_type='+that.product_type ;
goPagesOrder = '/pages/order_details/stay?order_id=' + orderId + '&credit_buy=1&product_type=' + that
.product_type;
that.orderPay = true;
uni.hideLoading();
switch (status) {

View File

@ -144,8 +144,8 @@
<view class='totalPrice' v-else>{{item.orderNum || 0}}件商品总金额
<text class='money p-color'>{{item.pay_price}}</text>
</view>
<view class="totalPrice" >
{{item.total_num || 0}}件商品结算周期到期后付款{{item.pay_price}}
<view class="totalPrice" v-if="product_type == 98">
{{item.total_num || 0}}件商品结算周期到期后付款{{item.interest.total_amount}}
</view>
<view class='bottom acea-row row-right row-middle'>
<view class='bnt b-color' @click.stop='goPay(item.pay_price,item.group_order_id)'>
@ -673,9 +673,9 @@
}).then(res => {
console.log(res);
that.isReady = true;
let list = res.data.list || [];
let list = res.data.return || [];
let loadend = list.length < that.limit;
// console.log(that.orderList)
console.log(that.orderList)
that.orderList = that.page == 1 ? list : that.$util.SplitArray(list, that
.orderList);
that.$set(that, 'orderList', that.orderList);

BIN
static/images/daoru.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB