|
@@ -27,7 +27,7 @@
|
|
|
<!-- 不可导入数据 -->
|
|
|
<p class="red">不可导入数据{{ unLoadData.length }}条</p>
|
|
|
<a-table
|
|
|
- class="unTable"
|
|
|
+ class="sTable"
|
|
|
ref="unTable"
|
|
|
size="small"
|
|
|
:rowKey="(record) => record.errorDesc"
|
|
@@ -94,53 +94,25 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
nowColumns () {
|
|
|
- let arr = []
|
|
|
- if (this.paramsData && this.paramsData.grabFlag == '0') {
|
|
|
- arr = [
|
|
|
- { title: '序号', dataIndex: 'no', width: 70, align: 'center' },
|
|
|
- { title: '产品编码', dataIndex: 'productCode', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品名称', dataIndex: 'productName', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '数量', dataIndex: 'qtyText', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '价格', dataIndex: 'priceText', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '退货原因', dataIndex: 'remark', width: 100, align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
- ]
|
|
|
- } else if (this.paramsData && this.paramsData.grabFlag == '1') {
|
|
|
- arr = [
|
|
|
- { title: '序号', dataIndex: 'no', width: 70, align: 'center' },
|
|
|
- { title: '销售单号', dataIndex: 'salesBillNo', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品编码', dataIndex: 'productCode', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品名称', dataIndex: 'productName', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '数量', dataIndex: 'qtyText', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '价格', dataIndex: 'priceText', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '退货原因', dataIndex: 'remark', width: 100, align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
- ]
|
|
|
- }
|
|
|
+ const arr = [
|
|
|
+ { title: '序号', dataIndex: 'no', width: 70, align: 'center' },
|
|
|
+ { title: '产品编码', dataIndex: 'productCode', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '产品名称', dataIndex: 'productName', width: 150, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '数量', dataIndex: 'qtyText', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '价格', dataIndex: 'priceText', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '退货原因', dataIndex: 'returnReason', width: 150, align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
+ ]
|
|
|
return arr
|
|
|
},
|
|
|
nowUnColumns () {
|
|
|
- let arr = []
|
|
|
- if (this.paramsData && this.paramsData.grabFlag == '0') {
|
|
|
- arr = [
|
|
|
- { title: '序号', dataIndex: 'no', width: 70, align: 'center' },
|
|
|
- { title: '产品编码', dataIndex: 'productCode', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品名称', dataIndex: 'productName', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '数量', dataIndex: 'qtyText', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '价格', dataIndex: 'priceText', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '退货原因', dataIndex: 'remark', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '备注', dataIndex: 'errorDesc', width: 100, align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
- ]
|
|
|
- } else if (this.paramsData && this.paramsData.grabFlag == '1') {
|
|
|
- arr = [
|
|
|
- { title: '序号', dataIndex: 'no', width: 70, align: 'center' },
|
|
|
- { title: '销售单号', dataIndex: 'salesBillNo', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品编码', dataIndex: 'productCode', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品名称', dataIndex: 'productName', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '数量', dataIndex: 'qtyText', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '价格', dataIndex: 'priceText', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '退货原因', dataIndex: 'remark', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '备注', dataIndex: 'errorDesc', width: 100, align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
- ]
|
|
|
- }
|
|
|
+ const arr = [
|
|
|
+ { title: '序号', dataIndex: 'no', width: 70, align: 'center' },
|
|
|
+ { title: '产品编码', dataIndex: 'productCode', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '数量', dataIndex: 'qtyText', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '价格', dataIndex: 'priceText', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '退货原因', dataIndex: 'returnReason', width: 150, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '备注', dataIndex: 'errorDesc', width: 100, align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
+ ]
|
|
|
return arr
|
|
|
}
|
|
|
},
|