...
|
...
|
@@ -13,7 +13,6 @@ |
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import _ from 'lodash';
|
|
|
import moment from 'moment';
|
|
|
import service from 'trade-service';
|
|
|
|
...
|
...
|
@@ -33,10 +32,17 @@ |
|
|
}, {
|
|
|
title: '商品图片',
|
|
|
align: 'center',
|
|
|
render() {
|
|
|
return `<div>
|
|
|
<img v-prod-img.sku="row.sku">
|
|
|
</div>`;
|
|
|
render: (h, params) => {
|
|
|
const row = params.row;
|
|
|
const directives = [
|
|
|
{ name: 'prod-img', value: row.sku, modifiers: { sku: true } }
|
|
|
];
|
|
|
|
|
|
return (
|
|
|
<div>
|
|
|
<img {...{ directives }}></img>
|
|
|
</div>
|
|
|
);
|
|
|
}
|
|
|
}, {
|
|
|
title: '商品名称',
|
...
|
...
|
@@ -45,20 +51,26 @@ |
|
|
}, {
|
|
|
title: '规格',
|
|
|
align: 'center',
|
|
|
render(row) {
|
|
|
return `${row.colorName || ''}/${row.size}`;
|
|
|
render(h, params) {
|
|
|
const row = params.row;
|
|
|
|
|
|
return (
|
|
|
<span>{row.colorName || ''}/{row.size}</span>
|
|
|
);
|
|
|
}
|
|
|
}, {
|
|
|
title: '调拨单号/已发数',
|
|
|
align: 'center',
|
|
|
render(row) {
|
|
|
let $html = '';
|
|
|
|
|
|
_.each(row.boList, i => {
|
|
|
$html += `<p>${i.proRequisitionFormId}/${i.num}</p>`;
|
|
|
});
|
|
|
render(h, params) {
|
|
|
const row = params.row;
|
|
|
|
|
|
return $html;
|
|
|
return (
|
|
|
<div>
|
|
|
{row.boList.map(item => {
|
|
|
return <p>{item.proRequisitionFormId}/{item.num}</p>;
|
|
|
})}
|
|
|
</div>
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
],
|
...
|
...
|
|