|
|
|
@ -39,11 +39,11 @@ |
|
|
|
<!-- 操作按钮 --> |
|
|
|
<view class="fixed-bottom" v-if="$isRight(order) && type != 0"> |
|
|
|
<view v-if="type == 1" class="lf-row-flex-end"> |
|
|
|
<button class="btn btn2" :class="{'lf-btn-disabled': buttom_click}" style="background-color: #FF0000;" @click="orderStateChange('待发起')">撤销订单</button> |
|
|
|
<button class="btn btn2" :class="{'lf-btn-disabled': button_click}" style="background-color: #FF0000;" @click="orderStateChange('待发起')">撤销订单</button> |
|
|
|
</view> |
|
|
|
<view v-if="type == 2" class="lf-row-flex-end"> |
|
|
|
<button class="btn btn1" @click="$url('/pages/offer/index?type=1&code='+ order.q_sn)">编辑</button> |
|
|
|
<button class="btn btn2" :class="{'lf-btn-disabled': buttom_click}" @click="orderStateChange('待审核')">发起报价</button> |
|
|
|
<button class="btn btn2" :class="{'lf-btn-disabled': button_click}" @click="orderStateChange('待审核')">发起报价</button> |
|
|
|
</view> |
|
|
|
<view v-if="type == 3 || type == 4" class="lf-row-between"> |
|
|
|
<button class="btn btn1" @click="$url('/pages/offer/index?type=2&code='+ order.q_sn)">复用报价单</button> |
|
|
|
@ -97,7 +97,7 @@ |
|
|
|
contents: [], |
|
|
|
q_sn: '', // 订单号 |
|
|
|
show_count: 0, |
|
|
|
buttom_click: false |
|
|
|
button_click: false |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
@ -166,17 +166,17 @@ |
|
|
|
}, |
|
|
|
// 改变订单状态 |
|
|
|
orderStateChange(state){ |
|
|
|
if(this.buttom_click) return; |
|
|
|
this.buttom_click = true; |
|
|
|
if(this.button_click) return; |
|
|
|
this.button_click = true; |
|
|
|
this.$http(this.API.API_SUPPLIER_QUOTATIONUPDATE, { |
|
|
|
q_sn: this.q_sn, |
|
|
|
state: state |
|
|
|
}).then(res => { |
|
|
|
console.log("revokeOrder", res); |
|
|
|
this.$msg('操作成功'); |
|
|
|
this.buttom_click = false; |
|
|
|
this.button_click = false; |
|
|
|
this.getDetail(); // 更新当前页面数据 |
|
|
|
}).catch(err => this.buttom_click = false) |
|
|
|
}).catch(err => this.button_click = false) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|