|
@@ -149,39 +149,54 @@
|
|
|
// 查询列表
|
|
|
getRow() {
|
|
|
this.status = "loading"
|
|
|
+ this.list = []
|
|
|
reservePriceFind({code:this.curType}).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
- this.list = res.data
|
|
|
- if(this.list && this.list.length) {
|
|
|
+ let data = res.data
|
|
|
+ if(data && data.length) {
|
|
|
// 纸质
|
|
|
if(this.curType == 'PAPER'){
|
|
|
- this.list[0].icon = '/static/price/icon_aper_yellow.png'
|
|
|
- this.list[1].icon = '/static/price/icon_aper_flower.png'
|
|
|
- this.list[2].icon = '/static/price/icon_book.png'
|
|
|
- this.list[3].icon = '/static/price/icon_magazine.png'
|
|
|
- this.list[4].icon = '/static/price/icon_aper_miscellaneous.png'
|
|
|
- this.list[5].icon = '/static/price/icon_newspaper.png'
|
|
|
+ data[0].icon = '/static/price/icon_aper_yellow.png'
|
|
|
+ data[1].icon = '/static/price/icon_aper_flower.png'
|
|
|
+ data[2].icon = '/static/price/icon_book.png'
|
|
|
+ data[3].icon = '/static/price/icon_magazine.png'
|
|
|
+ data[4].icon = '/static/price/icon_aper_miscellaneous.png'
|
|
|
+ data[5].icon = '/static/price/icon_newspaper.png'
|
|
|
}
|
|
|
// 衣物
|
|
|
if(this.curType == 'CLOTHES'){
|
|
|
- this.list[0].icon = '/static/price/icon_clothes.png'
|
|
|
+ data[0].icon = '/static/price/icon_clothes.png'
|
|
|
}
|
|
|
// 金属
|
|
|
if(this.curType == 'METAL'){
|
|
|
- this.list[0].icon = '/static/price/icon_iron_thin.png'
|
|
|
- this.list[1].icon = '/static/price/icon_iron_thick.png'
|
|
|
- this.list[2].icon = '/static/price/icon_steel.png'
|
|
|
+ data[0].icon = '/static/price/icon_iron_thin.png'
|
|
|
+ data[1].icon = '/static/price/icon_iron_thick.png'
|
|
|
+ data[2].icon = '/static/price/icon_steel.png'
|
|
|
}
|
|
|
// 塑料类
|
|
|
if(this.curType == 'PLASTIC'){
|
|
|
- this.list[0].icon = '/static/price/icon_frame_white.png'
|
|
|
- this.list[1].icon = '/static/price/icon_frame_black.png'
|
|
|
- this.list[2].icon = '/static/price/icon_acrylic.png'
|
|
|
- this.list[3].icon = '/static/price/icon_bottle.png'
|
|
|
+ data[0].icon = '/static/price/icon_frame_white.png'
|
|
|
+ data[1].icon = '/static/price/icon_frame_black.png'
|
|
|
+ data[2].icon = '/static/price/icon_acrylic.png'
|
|
|
+ data[3].icon = '/static/price/icon_bottle.png'
|
|
|
}
|
|
|
- }else{
|
|
|
- this.noDataText = '暂无数据'
|
|
|
+ if(this.current==0) {
|
|
|
+ data.map(item=>{
|
|
|
+ if(item.customerPrice){
|
|
|
+ this.list.push(item)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if(this.current==1) {
|
|
|
+ data.map(item=>{
|
|
|
+ if(item.factoryPrice){
|
|
|
+ this.list.push(item)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
+ this.noDataText = '暂无数据'
|
|
|
|
|
|
} else {
|
|
|
this.list = []
|