|
@@ -1,63 +1,68 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
<view class="cmain">
|
|
|
- <view class="box order_detail" style="margin-top: 0px">
|
|
|
- <view class="item">
|
|
|
- <text class="label">收购状态</text>
|
|
|
- <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 && item.isConfirm == 0">
|
|
|
- <text class="icon" style="color: #13ce66"></text>
|
|
|
- <text>已接单</text>
|
|
|
- </text>
|
|
|
- <text class="desc" v-if="item.isConfirm == 1">
|
|
|
- <text class="icon" style="color: #13ce66"></text>
|
|
|
- <text>已确认</text>
|
|
|
- </text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
<view class="box order_detail">
|
|
|
<view class="item">
|
|
|
<text class="label">收购商品</text>
|
|
|
<text class="desc omit">{{ item.goodsName }}</text>
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
+ <text class="label">商品编号</text>
|
|
|
+ <text class="desc">{{ item.goodsNo }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <text class="label">计价单位</text>
|
|
|
+ <text class="desc">{{ item.goodsUnit }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
<text class="label">数量</text>
|
|
|
<text class="desc">{{ item.goodsQuantity }}</text>
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
- <text class="label">发布时间</text>
|
|
|
- <text class="desc">{{ item.goodsDemandTime }}</text>
|
|
|
+ <text class="label">到货日期</text>
|
|
|
+ <text class="desc">{{ item.arrivalTime }}</text>
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
- <text class="label">接单组名</text>
|
|
|
- <text class="desc">{{ item.groupName }}</text>
|
|
|
+ <text class="label">创建时间</text>
|
|
|
+ <text class="desc">{{ item.goodsDemandTime }}</text>
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
- <text class="label">接单组长</text>
|
|
|
+ <text class="label">状态</text>
|
|
|
+ <text class="desc" v-if="item.isRelease == 0">未发布</text>
|
|
|
+ <text class="desc" v-if="item.isRelease == 1 && item.isOrders == 0">未接单</text>
|
|
|
+ <text class="desc" v-if="item.isOrders == 1 && item.isConfirm == 0">已接单</text>
|
|
|
+ <text class="desc" v-if="item.isConfirm == 1">已确认</text>
|
|
|
+ </view>
|
|
|
+ <view class="item" v-if="item.createName">
|
|
|
+ <text class="label">接单人</text>
|
|
|
<text class="desc">{{ item.createName }}</text>
|
|
|
</view>
|
|
|
+ <view class="item" v-if="item.quotation">
|
|
|
+ <text class="label">出价金额</text>
|
|
|
+ <text class="desc" style="color: #f44336; font-weight: bold">¥ {{ item.quotation }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item" v-if="item.createTime">
|
|
|
+ <text class="label">接单时间</text>
|
|
|
+ <text class="desc">{{ item.createTime }}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <u-divider text="收货地址"></u-divider>
|
|
|
+ <view class="box order_detail">
|
|
|
<view class="item">
|
|
|
- <text class="label">组长备注</text>
|
|
|
- <text class="desc">{{ item.remark }}</text>
|
|
|
+ <text class="label">收件人</text>
|
|
|
+ <text class="desc omit">{{ item.name }}</text>
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
- <text class="label">出价金额</text>
|
|
|
- <text class="desc">{{ item.quotation }}</text>
|
|
|
+ <text class="label">联系电话</text>
|
|
|
+ <text class="desc">{{ item.phone }}</text>
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
- <text class="label">报价时间</text>
|
|
|
- <text class="desc">{{ item.createTime }}</text>
|
|
|
+ <text class="label">收件地址</text>
|
|
|
+ <text class="desc">{{ item.addressName }}</text>
|
|
|
</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()" style="background-color: #f44336" v-if="item.isRelease == 1 && item.isOrders == 1 && item.isConfirm == 0">拒绝接单</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -87,7 +92,8 @@ export default {
|
|
|
success: res => {
|
|
|
uni.showToast({ title: '操作成功' });
|
|
|
// 收购商已确认
|
|
|
- this.item.isConfirm = 1
|
|
|
+ this.item.isConfirm = 1;
|
|
|
+ uni.$emit('purchaser_buy_list');
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -96,7 +102,6 @@ export default {
|
|
|
url: '/level-two-server/app/TbGoodsDemand/refuse?id=' + e.id,
|
|
|
success: res => {
|
|
|
uni.showToast({ title: '操作成功' });
|
|
|
-
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -108,7 +113,7 @@ export default {
|
|
|
page {
|
|
|
background-color: $pg;
|
|
|
}
|
|
|
-.btn{
|
|
|
+.btn {
|
|
|
margin-top: 20px;
|
|
|
width: 70%;
|
|
|
}
|