|
@@ -163,13 +163,16 @@
|
|
|
key:'rowIndex',
|
|
|
width:60,
|
|
|
align:"center",
|
|
|
- customRender: (value, row, index) => {
|
|
|
- const obj = {
|
|
|
- children: parseInt(index)+1,
|
|
|
- attrs: {},
|
|
|
- };
|
|
|
- obj.attrs.rowSpan = this.myArray[index];
|
|
|
- return obj
|
|
|
+ // customRender: (value, row, index) => {
|
|
|
+ // const obj = {
|
|
|
+ // children: parseInt(index)+1,
|
|
|
+ // attrs: {},
|
|
|
+ // };
|
|
|
+ // obj.attrs.rowSpan = this.myArray[index];
|
|
|
+ // return obj
|
|
|
+ // }
|
|
|
+ customRender:function (t,r,index) {
|
|
|
+ return parseInt(index)+1;
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -206,40 +209,40 @@
|
|
|
title:'入库人',
|
|
|
align:"center",
|
|
|
dataIndex: 'operator',
|
|
|
- customRender: (value, row, index) => {
|
|
|
- const obj = {
|
|
|
- children: value,
|
|
|
- attrs: {},
|
|
|
- };
|
|
|
- obj.attrs.rowSpan = this.myArray[index];
|
|
|
- return obj
|
|
|
- }
|
|
|
+ // customRender: (value, row, index) => {
|
|
|
+ // const obj = {
|
|
|
+ // children: value,
|
|
|
+ // attrs: {},
|
|
|
+ // };
|
|
|
+ // obj.attrs.rowSpan = this.myArray[index];
|
|
|
+ // return obj
|
|
|
+ // }
|
|
|
},
|
|
|
{
|
|
|
title:'入库部门',
|
|
|
align:"center",
|
|
|
dataIndex: 'operatorDept',
|
|
|
- customRender: (value, row, index) => {
|
|
|
- const obj = {
|
|
|
- children: value,
|
|
|
- attrs: {},
|
|
|
- };
|
|
|
- obj.attrs.rowSpan = this.myArray[index];
|
|
|
- return obj
|
|
|
- }
|
|
|
+ // customRender: (value, row, index) => {
|
|
|
+ // const obj = {
|
|
|
+ // children: value,
|
|
|
+ // attrs: {},
|
|
|
+ // };
|
|
|
+ // obj.attrs.rowSpan = this.myArray[index];
|
|
|
+ // return obj
|
|
|
+ // }
|
|
|
},
|
|
|
{
|
|
|
title:'入库日期',
|
|
|
align:"center",
|
|
|
dataIndex: 'operateDate',
|
|
|
- customRender: (value, row, index) => {
|
|
|
- const obj = {
|
|
|
- children: !value?"":(value.length>10?value.substr(0,10):value),
|
|
|
- attrs: {},
|
|
|
- };
|
|
|
- obj.attrs.rowSpan = this.myArray[index];
|
|
|
- return obj
|
|
|
- }
|
|
|
+ // customRender: (value, row, index) => {
|
|
|
+ // const obj = {
|
|
|
+ // children: !value?"":(value.length>10?value.substr(0,10):value),
|
|
|
+ // attrs: {},
|
|
|
+ // };
|
|
|
+ // obj.attrs.rowSpan = this.myArray[index];
|
|
|
+ // return obj
|
|
|
+ // }
|
|
|
},
|
|
|
{
|
|
|
title: '操作',
|