|
@@ -237,7 +237,6 @@ export default {
|
|
|
// 格式化数据
|
|
|
let f = 0
|
|
|
let hasLt = false
|
|
|
- let stockType
|
|
|
this.dataSource.map((item, i) => {
|
|
|
if (item.id.indexOf('promo-') >= 0) { f = f - 1 }
|
|
|
item.no = i + 1 + f
|
|
@@ -258,12 +257,11 @@ export default {
|
|
|
const productType3 = (item.productEntity && item.productEntity.productTypeName3) || (item.dealerProductEntity && item.dealerProductEntity.productTypeName3)
|
|
|
if (productBrand && productBrand.indexOf('箭冠') >= 0 && productBrand && productType3.indexOf('轮胎') >= 0) {
|
|
|
hasLt = true
|
|
|
- stockType = item.dispatchBill && item.dispatchBill.stockType
|
|
|
}
|
|
|
})
|
|
|
this.showEmpty = this.dataSource.length <= 0
|
|
|
this.tableHeight = (this.showEmpty ? 300 : this.maxHeight) + 'px'
|
|
|
- this.$emit('upStockType', hasLt, stockType)
|
|
|
+ this.$emit('upStockType', hasLt)
|
|
|
this.spinning = false
|
|
|
this.disabled = false
|
|
|
},
|