|
@@ -4,11 +4,15 @@
|
|
|
<view class="box order_detail" style="margin-top: 0px">
|
|
|
<view class="item">
|
|
|
<text class="label">收购状态</text>
|
|
|
- <text class="desc" v-if="item.isOrders == 0">
|
|
|
+ <text class="desc" v-if="item.isRelease == 0">
|
|
|
+ <text class="icon"></text>
|
|
|
+ <text>未发布</text>
|
|
|
+ </text>
|
|
|
+ <text class="desc" v-if="item.isRelease == 1 && item.isOrders == 0">
|
|
|
<text class="icon"></text>
|
|
|
<text>未接单</text>
|
|
|
</text>
|
|
|
- <text class="desc" v-if="item.isOrders == 1">
|
|
|
+ <text class="desc" v-if="item.isOrders == 1 && item.isConfirm == 0">
|
|
|
<text class="icon" style="color: #13ce66"></text>
|
|
|
<text>已接单</text>
|
|
|
</text>
|
|
@@ -52,8 +56,8 @@
|
|
|
<text class="desc">{{ item.createTime }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <button class="btn" @click.stop="confirm()" v-if="item.isConfirm != 1">同意接单并支付</button>
|
|
|
- <button class="btn" style="background-color: #F44336;" v-if="item.isConfirm != 1">拒绝接单</button>
|
|
|
+ <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>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -86,6 +90,15 @@ export default {
|
|
|
this.item.isConfirm = 1
|
|
|
}
|
|
|
});
|
|
|
+ },
|
|
|
+ refuse() {
|
|
|
+ this.http.request({
|
|
|
+ url: '/level-two-server/app/TbGoodsDemand/refuse?id=' + e.id,
|
|
|
+ success: res => {
|
|
|
+ uni.showToast({ title: '操作成功' });
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
};
|