Browse Source

采购订单退单提示优化 收货时间默认填充

master
Enzo 5 years ago
parent
commit
0f4a28684f
  1. 29
      canteen/pages/purchase/detail.vue
  2. 4
      canteen/pages/purchase/launch.vue

29
canteen/pages/purchase/detail.vue

@ -35,6 +35,10 @@
<view>联系电话</view> <view>联系电话</view>
<view class="lf-font-bold">{{order.deliver_phone}}</view> <view class="lf-font-bold">{{order.deliver_phone}}</view>
</view> </view>
<view class="lf-row-between list">
<view>收货时间</view>
<view class="lf-font-bold">{{order.deadline}}</view>
</view>
</block> </block>
<view class="list" v-if="order.voucher.length"> <view class="list" v-if="order.voucher.length">
<view>证明材料-供应端</view> <view>证明材料-供应端</view>
@ -288,13 +292,26 @@
}, },
// //
orderStateChange(state){ orderStateChange(state){
this.$http(this.API.API_CANTEEN_PURCHASEUPDATE, {
p_sn: this.p_sn,
state: state
}).then(res => {
console.log("orderStateChange", res);
this.$msg('操作成功').then(()=> this.getData());
uni.showModal({
title: '温馨提示',
content: '确定继续退单吗?',
confirmColor: '#FF0000',
cancelColor: '#11D189',
success: result => {
if(result.confirm){
this.$http(this.API.API_CANTEEN_PURCHASEUPDATE, {
p_sn: this.p_sn,
state: state
}).then(res => {
console.log("orderStateChange", res);
this.$msg('操作成功').then(()=> this.getData());
})
}
}
}) })
} }
} }
} }

4
canteen/pages/purchase/launch.vue

@ -25,8 +25,8 @@
<view class="lf-row-between lf-p-30 lf-p-l-32 lf-p-r-32 lf-font-28"> <view class="lf-row-between lf-p-30 lf-p-l-32 lf-p-r-32 lf-font-28">
<view class="lf-color-black">收货时间</view> <view class="lf-color-black">收货时间</view>
<picker mode="date" :value="date" @change="pickerChange"> <picker mode="date" :value="date" @change="pickerChange">
<view class="lf-color-555 lf-text-right" style="width: 400rpx;" v-if="first_time">{{ '请选择收货时间...' }}</view>
<view class="lf-color-555 lf-text-right" style="width: 400rpx;" v-else>{{ date }}</view>
<!-- <view class="lf-color-555 lf-text-right" style="width: 400rpx;">{{ '请选择收货时间...' }}</view> -->
<view class="lf-color-555 lf-text-right" style="width: 400rpx;">{{ date }}</view>
</picker> </picker>
</view> </view>
<self-line></self-line> <self-line></self-line>

Loading…
Cancel
Save