liudan 1 year ago
parent 1ddaa615bb
commit f73a2d6b56
  1. 14
      pages/warehouse/buy.vue
  2. 20
      pages/warehouse/weituo.vue

@ -115,7 +115,8 @@
show:false, show:false,
tiqushow:false, tiqushow:false,
orderObj:{}, orderObj:{},
selectedIndex:-1 selectedIndex:-1,
tiquSelected:{}
}; };
}, },
onLoad(params) { onLoad(params) {
@ -214,6 +215,7 @@
}, },
changeStatusHandle(item){ changeStatusHandle(item){
this.tiqushow = true; this.tiqushow = true;
this.tiquSelected = item;
}, },
/** /**
* 订单tab点击 * 订单tab点击
@ -247,7 +249,15 @@
}) })
}, },
tiquconfirmHandle(){ tiquconfirmHandle(){
let params={
pay_voucher:this.tiquSelected.id,
id:item.id,
status:4
}
orderPay(params).then(res=>{
this.getList()
this.tiqushow = false;
})
}, },
cancelHandle(){ cancelHandle(){
this.show = false; this.show = false;

@ -34,7 +34,7 @@
委托价格 委托价格
</view> </view>
<view class="priceContent"> <view class="priceContent">
{{value}} {{orderDetails.order_amount}}
</view> </view>
<view class="slide"> <view class="slide">
<u-slider activeColor="#236030" v-model="value" min="30" max="80"></u-slider> <u-slider activeColor="#236030" v-model="value" min="30" max="80"></u-slider>
@ -103,27 +103,13 @@
}, },
getOrderDetails(){ getOrderDetails(){
orderDetail({id:this.id,custom: { auth: true }}).then(res=>{ orderDetail({id:this.id,custom: { auth: true }}).then(res=>{
this.value = res.data.order_amount
this.orderDetails = Object.assign({},this.orderDetails,res.data); this.orderDetails = Object.assign({},this.orderDetails,res.data);
this.orderInfo = res.data.order_goods this.orderInfo = res.data.order_goods
this.warehouse = res.data.warehouse this.warehouse = res.data.warehouse
}) })
}, },
getTime(time){
//
let timestamp = time
//
let date = new Date(parseInt(timestamp) * 1000);
let Year = date.getFullYear();
let Moth = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1);
let Day = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate());
let Hour = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours());
let Minute = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes());
let Sechond = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds());
let GMT = Year + '-' + Moth + '-' + Day + ' '+ Hour +':'+ Minute + ':' + Sechond;
return GMT
// console.log(GMT) // 2022-09-07 15:56:07
},
// //
async pay(pay_list) { async pay(pay_list) {
let that = this; let that = this;

Loading…
Cancel
Save