|
@@ -6,17 +6,17 @@
|
|
<view class="goodsManageList">
|
|
<view class="goodsManageList">
|
|
<view class="item" v-for="(item, index) in list" :key="index" @click="detail(item)">
|
|
<view class="item" v-for="(item, index) in list" :key="index" @click="detail(item)">
|
|
<view class="top">
|
|
<view class="top">
|
|
- <view class="title omit">{{ item.goodsName }}</view>
|
|
|
|
|
|
+ <view class="title omit">八角茴香(未磨) (可食用)八角茴香(未磨) (可食用)八角茴香(未磨) (可食用)</view>
|
|
<view class="icon"></view>
|
|
<view class="icon"></view>
|
|
<view class="clear"></view>
|
|
<view class="clear"></view>
|
|
</view>
|
|
</view>
|
|
<view class="con">
|
|
<view class="con">
|
|
<view class="flex fs">
|
|
<view class="flex fs">
|
|
<view class="f left" style="flex: 0.5">
|
|
<view class="f left" style="flex: 0.5">
|
|
- <view class="tag">商品量:{{ item.goodsQuantity }}</view>
|
|
|
|
|
|
+ <view class="tag">净重:50吨</view>
|
|
</view>
|
|
</view>
|
|
<view class="f left">
|
|
<view class="f left">
|
|
- <view class="tag">{{ item.createTime }}</view>
|
|
|
|
|
|
+ <view class="tag">2023-08-03 22:37:02</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -42,26 +42,27 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- tab: [//isRelease:是否发布[0=待发布,1=已发布] isOrders:是否被接单[0=待接单,1=已被接单]
|
|
|
|
- { name: '全部', isRelease: '' ,isOrders: ''},
|
|
|
|
- { name: '待发布', isRelease: 0 ,isOrders: 0},
|
|
|
|
- { name: '发布中', isRelease: 1 ,isOrders: 0},
|
|
|
|
- { name: '已接单', isRelease: 1 ,isOrders: 1},
|
|
|
|
- //{ name: '已确认', isRelease: 1 ,isOrders: 1},
|
|
|
|
- //{ name: '已完成', isRelease: 1 ,isOrders: 1}
|
|
|
|
|
|
+ tab: [
|
|
|
|
+ { name: '全部', goodsStatus: '' },
|
|
|
|
+ { name: '未报价', goodsStatus: 1 },
|
|
|
|
+ { name: '已报价', goodsStatus: 0 },
|
|
|
|
+ // { name: '已接单', goodsStatus: 0 },
|
|
|
|
+ // { name: '已确认', goodsStatus: 0 },
|
|
|
|
+ // { name: '已完成', goodsStatus: 0 }
|
|
],
|
|
],
|
|
- list: [],
|
|
|
|
- param: { pageNo: 1, pageSize: 10 },
|
|
|
|
|
|
+ list: [{}, {}, {}, {}, {}],
|
|
|
|
+ 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() {
|
|
this.http.request({
|
|
this.http.request({
|
|
- url: '/level-two-server/app/TbGoodsDemand/getAppList',
|
|
|
|
|
|
+ url: '/level-one-server/app/TbGoodsTransit/getTransitList',
|
|
data: this.param,
|
|
data: this.param,
|
|
loading: 'false',
|
|
loading: 'false',
|
|
success: res => {
|
|
success: res => {
|
|
@@ -70,10 +71,38 @@ 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.isRelease = e.isRelease;
|
|
|
|
- this.param.isOrders = e.isOrders;
|
|
|
|
|
|
+ this.param.goodsStatus = e.goodsStatus;
|
|
this.refresh();
|
|
this.refresh();
|
|
},
|
|
},
|
|
detail(item) {
|
|
detail(item) {
|