|
@@ -44,19 +44,20 @@ export default {
|
|
|
return {
|
|
|
tab: [
|
|
|
{ name: '全部', goodsStatus: '' },
|
|
|
- { name: '待发布', goodsStatus: 1 },
|
|
|
- { name: '发布中', goodsStatus: 0 },
|
|
|
- { name: '已接单', goodsStatus: 0 },
|
|
|
- { name: '已确认', goodsStatus: 0 },
|
|
|
- { name: '已完成', goodsStatus: 0 }
|
|
|
+ { name: '未报价', goodsStatus: 1 },
|
|
|
+ { name: '已报价', goodsStatus: 0 },
|
|
|
+ // { name: '已接单', goodsStatus: 0 },
|
|
|
+ // { name: '已确认', goodsStatus: 0 },
|
|
|
+ // { name: '已完成', goodsStatus: 0 }
|
|
|
],
|
|
|
list: [{}, {}, {}, {}, {}],
|
|
|
- param: { pageNo: 1, pageSize: 10 },
|
|
|
+ param: { pageNo: 1, pageSize: 10, isOrders: 0 },
|
|
|
loadMore: true
|
|
|
};
|
|
|
},
|
|
|
onLoad(e) {
|
|
|
//this.getData();
|
|
|
+ this.goodsDemandList()
|
|
|
},
|
|
|
methods: {
|
|
|
getData() {
|
|
@@ -70,6 +71,35 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ //当前已被报价的需求列表
|
|
|
+ goodsDemandList() {
|
|
|
+ this.http.request({
|
|
|
+ url: '/level-two-server/app/TbGoodsDemand/goodsDemandList',
|
|
|
+ data: this.param,
|
|
|
+ loading: 'false',
|
|
|
+ success: res => {
|
|
|
+ this.loadMore = parseInt(res.data.pageCount) > this.param.pageNo;
|
|
|
+ // this.list.push(...res.data.data);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //处理已被报价的需求
|
|
|
+ disposeOrders() {
|
|
|
+ let params = {
|
|
|
+ disposeStatus: 1,
|
|
|
+ goodsDemandId: 1,
|
|
|
+ demandQuotationId: 1
|
|
|
+ }
|
|
|
+ this.http.request({
|
|
|
+ url: '/level-two-server/app/TbGoodsDemand/disposeOrders',
|
|
|
+ data: params,
|
|
|
+ loading: 'false',
|
|
|
+ success: res => {
|
|
|
+ this.loadMore = parseInt(res.data.pageCount) > this.param.pageNo;
|
|
|
+ // this.list.push(...res.data.data);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
//点击tab切换
|
|
|
click(e) {
|
|
|
this.param.goodsStatus = e.goodsStatus;
|