|
@@ -44,19 +44,20 @@ export default {
|
|
return {
|
|
return {
|
|
tab: [
|
|
tab: [
|
|
{ name: '全部', goodsStatus: '' },
|
|
{ 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: [{}, {}, {}, {}, {}],
|
|
list: [{}, {}, {}, {}, {}],
|
|
- param: { pageNo: 1, pageSize: 10 },
|
|
|
|
|
|
+ param: { pageNo: 1, pageSize: 10, isOrders: 0 },
|
|
loadMore: true
|
|
loadMore: true
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onLoad(e) {
|
|
onLoad(e) {
|
|
//this.getData();
|
|
//this.getData();
|
|
|
|
+ this.goodsDemandList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getData() {
|
|
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切换
|
|
//点击tab切换
|
|
click(e) {
|
|
click(e) {
|
|
this.param.goodsStatus = e.goodsStatus;
|
|
this.param.goodsStatus = e.goodsStatus;
|