|
@@ -62,7 +62,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<button class="btn" @click.stop="confirm()" v-if="item.isRelease == 1 && item.isOrders == 1 && item.isConfirm == 0">同意接单并支付</button>
|
|
|
- <button class="btn" @click.stop="refuse()" style="background-color: #f44336" v-if="item.isRelease == 1 && item.isOrders == 1 && item.isConfirm == 0">拒绝接单</button>
|
|
|
+ <button class="btn" @click.stop="refuse(item.goodsDemandId)" style="background-color: #f44336" v-if="item.isRelease == 1 && item.isOrders == 1 && item.isConfirm == 0">拒绝接单</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -97,9 +97,10 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- refuse() {
|
|
|
+ refuse(goodsDemandId) {
|
|
|
this.http.request({
|
|
|
- url: '/level-two-server/app/TbGoodsDemand/refuse?id=' + e.id,
|
|
|
+ url: '/level-two-server/app/TbGoodsDemand/refuse',
|
|
|
+ data: {id: goodsDemandId},
|
|
|
success: res => {
|
|
|
uni.showToast({ title: '操作成功' });
|
|
|
}
|