|
@@ -19,7 +19,7 @@
|
|
|
:columns="nowColumns"
|
|
|
:dataSource="loadData"
|
|
|
:loading="loading"
|
|
|
- :scroll="{ y: 200 }"
|
|
|
+ :scroll="{ y: 600 }"
|
|
|
:pagination="false"
|
|
|
bordered>
|
|
|
</a-table>
|
|
@@ -71,7 +71,7 @@ export default {
|
|
|
nowColumns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: '8%', align: 'center' },
|
|
|
{ title: '查询码', dataIndex: 'queryCode', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: 'OE码', dataIndex: 'oeCode', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: 'OE码', dataIndex: 'oeCode', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '大厂码',
|
|
|
children: [
|
|
|
{
|
|
@@ -99,20 +99,16 @@ export default {
|
|
|
{ title: '产品三级分类', dataIndex: 'productEntity.productTypeName3', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '主材料', dataIndex: 'material', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '含盒报价', dataIndex: 'priceFreeBox', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
- { title: '无盒报价', dataIndex: 'priceWithBox', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
- { title: '备注', dataIndex: 'remark', width: '8%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
+ { title: '无盒报价', dataIndex: 'priceWithBox', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } }
|
|
|
],
|
|
|
loadData: [],
|
|
|
loading: false
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- // 表格标红
|
|
|
+ // 表格换行
|
|
|
getRowClassName (record, index) {
|
|
|
- if (record.flag) {
|
|
|
- return 'red-text'
|
|
|
- }
|
|
|
- return '' // 如果没有条件匹配,则返回空字符串不添加任何类名
|
|
|
+ return 'red-text' // 如果没有条件匹配,则返回空字符串不添加任何类名
|
|
|
},
|
|
|
getData () {
|
|
|
const _this = this
|
|
@@ -126,7 +122,6 @@ export default {
|
|
|
if (res.data && res.data.length > 0) {
|
|
|
res.data.map((item, index) => {
|
|
|
item.no = index + 1
|
|
|
- item.remark = item.flag ? '异常数据' : ''
|
|
|
})
|
|
|
}
|
|
|
_this.loadData = res.data || []
|
|
@@ -180,7 +175,7 @@ export default {
|
|
|
.chooseImport-modal{
|
|
|
.chooseImport-con{
|
|
|
/deep/.red-text{
|
|
|
- color: #f30;
|
|
|
+ white-space: pre-line;
|
|
|
}
|
|
|
.btn-con{
|
|
|
text-align: center;
|