|
|
|
@ -211,6 +211,7 @@ import {
|
|
|
|
|
setNodeHeight, |
|
|
|
|
handleClearTableQuery, |
|
|
|
|
handleInputQuery, |
|
|
|
|
handleTranslationDataSeclect, |
|
|
|
|
} from '@/utils/util'; |
|
|
|
|
import { showInventoryPackgeCode } from '@/api/distribution/distributionStockList'; |
|
|
|
|
import { showOrderPackgeCode } from '@/api/distribution/distributionStockArticle'; |
|
|
|
@ -374,7 +375,7 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
prop: 'conditionsType', |
|
|
|
|
prop: 'conditionsName', |
|
|
|
|
label: '包件类型', |
|
|
|
|
type: 3, |
|
|
|
|
values: '', |
|
|
|
@ -388,6 +389,10 @@ export default {
|
|
|
|
|
label: '库存品', |
|
|
|
|
value: '2', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '零担', |
|
|
|
|
value: '3', |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
fixed: false, |
|
|
|
|
sortable: false, |
|
|
|
@ -746,10 +751,15 @@ export default {
|
|
|
|
|
const { code, data } = res.data; |
|
|
|
|
if (code !== 200) return; |
|
|
|
|
console.log(res, '获取到的页面初始值'); |
|
|
|
|
for (let index = 0; index < data.records.length; index++) { |
|
|
|
|
const element = data.records[index]; |
|
|
|
|
element.conditionsType = element.conditions === 1 ? '定制品' : '库存品'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
handleTranslationDataSeclect(data.records, this.columnList); |
|
|
|
|
|
|
|
|
|
console.log('data.records :>> ', data.records); |
|
|
|
|
|
|
|
|
|
// for (let index = 0; index < data.records.length; index++) { |
|
|
|
|
// const element = data.records[index]; |
|
|
|
|
// element.conditionsType = element.conditions === 1 ? '定制品' : '库存品'; |
|
|
|
|
// } |
|
|
|
|
this.page.total = data.total; |
|
|
|
|
this.data = data.records; |
|
|
|
|
this.loading = false; |
|
|
|
|