|
@@ -352,262 +352,118 @@
|
|
|
|
|
|
} else if(scope.column.property == 'taxPrice') {
|
|
} else if(scope.column.property == 'taxPrice') {
|
|
console.log('复制内容:', rows)
|
|
console.log('复制内容:', rows)
|
|
- let newLine = []
|
|
|
|
- const {TabColumns} = this;
|
|
|
|
- const {TableColumns} = TabColumns.find(
|
|
|
|
- ({item: {key}}) => key === prop
|
|
|
|
- );
|
|
|
|
|
|
+ // let newLine = []
|
|
|
|
+ // const {TabColumns} = this;
|
|
|
|
+ // const {TableColumns} = TabColumns.find(
|
|
|
|
+ // ({item: {key}}) => key === prop
|
|
|
|
+ // );
|
|
if(this.params[prop].length <= 1) {
|
|
if(this.params[prop].length <= 1) {
|
|
- for (let i = 0; i<rows.length; i++) {
|
|
|
|
- let line = {...this.$init.params(TableColumns)}
|
|
|
|
- line.taxPrice = rows[i]
|
|
|
|
- newLine.push(line)
|
|
|
|
- }
|
|
|
|
- // 删除指定下标
|
|
|
|
- this.params[prop].splice(index,this.params[prop].length - index,...newLine)
|
|
|
|
- this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
|
|
|
|
- // this.$refs.table.doLayout()
|
|
|
|
|
|
+ this.params[prop][index].taxPrice = rows[0]
|
|
|
|
+ // for (let i = 0; i<rows.length; i++) {
|
|
|
|
+ // let line = {...this.$init.params(TableColumns)}
|
|
|
|
+ // line.taxPrice = rows[i]
|
|
|
|
+ // newLine.push(line)
|
|
|
|
+ // }
|
|
|
|
+ // // 删除指定下标
|
|
|
|
+ // this.params[prop].splice(index,this.params[prop].length - index,...newLine)
|
|
|
|
+ // this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
} else {
|
|
} else {
|
|
for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
|
|
for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
|
|
this.params[prop][i].taxPrice = rows[j]
|
|
this.params[prop][i].taxPrice = rows[j]
|
|
}
|
|
}
|
|
// this.$refs.table.doLayout()
|
|
// this.$refs.table.doLayout()
|
|
- console.log(this.params[prop])
|
|
|
|
|
|
+ // console.log(this.params[prop])
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
}
|
|
}
|
|
} else if(scope.column.property == 'supplierName') {
|
|
} else if(scope.column.property == 'supplierName') {
|
|
- console.log('复制内容:', rows)
|
|
|
|
- let newLine = []
|
|
|
|
- const {TabColumns} = this;
|
|
|
|
- const {TableColumns} = TabColumns.find(
|
|
|
|
- ({item: {key}}) => key === prop
|
|
|
|
- );
|
|
|
|
if(this.params[prop].length <= 1) {
|
|
if(this.params[prop].length <= 1) {
|
|
- for (let i = 0; i<rows.length; i++) {
|
|
|
|
- let line = {...this.$init.params(TableColumns)}
|
|
|
|
- line.supplierName = rows[i]
|
|
|
|
- newLine.push(line)
|
|
|
|
- }
|
|
|
|
- // 删除指定下标
|
|
|
|
- this.params[prop].splice(index,this.params[prop].length - index,...newLine)
|
|
|
|
- this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
|
|
|
|
- // this.$refs.table.doLayout()
|
|
|
|
|
|
+ this.params[prop][index].supplierName = rows[0]
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
} else {
|
|
} else {
|
|
for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
|
|
for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
|
|
this.params[prop][i].supplierName = rows[j]
|
|
this.params[prop][i].supplierName = rows[j]
|
|
}
|
|
}
|
|
- // this.$refs.table.doLayout()
|
|
|
|
- console.log(this.params[prop])
|
|
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
}
|
|
}
|
|
} else if(scope.column.property == 'bidPrice') {
|
|
} else if(scope.column.property == 'bidPrice') {
|
|
- console.log('复制内容:', rows)
|
|
|
|
- let newLine = []
|
|
|
|
- const {TabColumns} = this;
|
|
|
|
- const {TableColumns} = TabColumns.find(
|
|
|
|
- ({item: {key}}) => key === prop
|
|
|
|
- );
|
|
|
|
if(this.params[prop].length <= 1) {
|
|
if(this.params[prop].length <= 1) {
|
|
- for (let i = 0; i<rows.length; i++) {
|
|
|
|
- let line = {...this.$init.params(TableColumns)}
|
|
|
|
- line.bidPrice = rows[i]
|
|
|
|
- newLine.push(line)
|
|
|
|
- }
|
|
|
|
- // 删除指定下标
|
|
|
|
- this.params[prop].splice(index,this.params[prop].length - index,...newLine)
|
|
|
|
- this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
|
|
|
|
- // this.$refs.table.doLayout()
|
|
|
|
|
|
+ this.params[prop][index].bidPrice = rows[0]
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
} else {
|
|
} else {
|
|
for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
|
|
for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
|
|
this.params[prop][i].bidPrice = rows[j]
|
|
this.params[prop][i].bidPrice = rows[j]
|
|
}
|
|
}
|
|
- // this.$refs.table.doLayout()
|
|
|
|
- console.log(this.params[prop])
|
|
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
}
|
|
}
|
|
} else if(scope.column.property == 'unitPrice') {
|
|
} else if(scope.column.property == 'unitPrice') {
|
|
- console.log('复制内容:', rows)
|
|
|
|
- let newLine = []
|
|
|
|
- const {TabColumns} = this;
|
|
|
|
- const {TableColumns} = TabColumns.find(
|
|
|
|
- ({item: {key}}) => key === prop
|
|
|
|
- );
|
|
|
|
if(this.params[prop].length <= 1) {
|
|
if(this.params[prop].length <= 1) {
|
|
- for (let i = 0; i<rows.length; i++) {
|
|
|
|
- let line = {...this.$init.params(TableColumns)}
|
|
|
|
- line.unitPrice = rows[i]
|
|
|
|
- newLine.push(line)
|
|
|
|
- }
|
|
|
|
- // 删除指定下标
|
|
|
|
- this.params[prop].splice(index,this.params[prop].length - index,...newLine)
|
|
|
|
- this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
|
|
|
|
- // this.$refs.table.doLayout()
|
|
|
|
|
|
+ this.params[prop][index].unitPrice = rows[0]
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
} else {
|
|
} else {
|
|
for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
|
|
for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
|
|
this.params[prop][i].unitPrice = rows[j]
|
|
this.params[prop][i].unitPrice = rows[j]
|
|
}
|
|
}
|
|
- // this.$refs.table.doLayout()
|
|
|
|
- console.log(this.params[prop])
|
|
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
}
|
|
}
|
|
} else if(scope.column.property == 'supplierName1') {
|
|
} else if(scope.column.property == 'supplierName1') {
|
|
- console.log('复制内容:', rows)
|
|
|
|
- let newLine = []
|
|
|
|
- const {TabColumns} = this;
|
|
|
|
- const {TableColumns} = TabColumns.find(
|
|
|
|
- ({item: {key}}) => key === prop
|
|
|
|
- );
|
|
|
|
if(this.params[prop].length <= 1) {
|
|
if(this.params[prop].length <= 1) {
|
|
- for (let i = 0; i<rows.length; i++) {
|
|
|
|
- let line = {...this.$init.params(TableColumns)}
|
|
|
|
- line.supplierName1 = rows[i]
|
|
|
|
- newLine.push(line)
|
|
|
|
- }
|
|
|
|
- // 删除指定下标
|
|
|
|
- this.params[prop].splice(index,this.params[prop].length - index,...newLine)
|
|
|
|
- this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
|
|
|
|
- // this.$refs.table.doLayout()
|
|
|
|
|
|
+ this.params[prop][index].supplierName1 = rows[0]
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
} else {
|
|
} else {
|
|
for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
|
|
for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
|
|
this.params[prop][i].supplierName1 = rows[j]
|
|
this.params[prop][i].supplierName1 = rows[j]
|
|
}
|
|
}
|
|
- // this.$refs.table.doLayout()
|
|
|
|
- console.log(this.params[prop])
|
|
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
}
|
|
}
|
|
} else if(scope.column.property == 'bidPrice1') {
|
|
} else if(scope.column.property == 'bidPrice1') {
|
|
- console.log('复制内容:', rows)
|
|
|
|
- let newLine = []
|
|
|
|
- const {TabColumns} = this;
|
|
|
|
- const {TableColumns} = TabColumns.find(
|
|
|
|
- ({item: {key}}) => key === prop
|
|
|
|
- );
|
|
|
|
if(this.params[prop].length <= 1) {
|
|
if(this.params[prop].length <= 1) {
|
|
- for (let i = 0; i<rows.length; i++) {
|
|
|
|
- let line = {...this.$init.params(TableColumns)}
|
|
|
|
- line.bidPrice1 = rows[i]
|
|
|
|
- newLine.push(line)
|
|
|
|
- }
|
|
|
|
- // 删除指定下标
|
|
|
|
- this.params[prop].splice(index,this.params[prop].length - index,...newLine)
|
|
|
|
- this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
|
|
|
|
- // this.$refs.table.doLayout()
|
|
|
|
|
|
+ this.params[prop][index].bidPrice1 = rows[0]
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
} else {
|
|
} else {
|
|
for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
|
|
for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
|
|
this.params[prop][i].bidPrice1 = rows[j]
|
|
this.params[prop][i].bidPrice1 = rows[j]
|
|
}
|
|
}
|
|
- // this.$refs.table.doLayout()
|
|
|
|
- console.log(this.params[prop])
|
|
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
}
|
|
}
|
|
} else if(scope.column.property == 'unitPrice1') {
|
|
} else if(scope.column.property == 'unitPrice1') {
|
|
- console.log('复制内容:', rows)
|
|
|
|
- let newLine = []
|
|
|
|
- const {TabColumns} = this;
|
|
|
|
- const {TableColumns} = TabColumns.find(
|
|
|
|
- ({item: {key}}) => key === prop
|
|
|
|
- );
|
|
|
|
if(this.params[prop].length <= 1) {
|
|
if(this.params[prop].length <= 1) {
|
|
- for (let i = 0; i<rows.length; i++) {
|
|
|
|
- let line = {...this.$init.params(TableColumns)}
|
|
|
|
- line.unitPrice1 = rows[i]
|
|
|
|
- newLine.push(line)
|
|
|
|
- }
|
|
|
|
- // 删除指定下标
|
|
|
|
- this.params[prop].splice(index,this.params[prop].length - index,...newLine)
|
|
|
|
- this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
|
|
|
|
- // this.$refs.table.doLayout()
|
|
|
|
|
|
+ this.params[prop][index].unitPrice1 = rows[0]
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
} else {
|
|
} else {
|
|
for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
|
|
for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
|
|
this.params[prop][i].unitPrice1 = rows[j]
|
|
this.params[prop][i].unitPrice1 = rows[j]
|
|
}
|
|
}
|
|
- // this.$refs.table.doLayout()
|
|
|
|
- console.log(this.params[prop])
|
|
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
}
|
|
}
|
|
} else if(scope.column.property == 'supplierName2') {
|
|
} else if(scope.column.property == 'supplierName2') {
|
|
- console.log('复制内容:', rows)
|
|
|
|
- let newLine = []
|
|
|
|
- const {TabColumns} = this;
|
|
|
|
- const {TableColumns} = TabColumns.find(
|
|
|
|
- ({item: {key}}) => key === prop
|
|
|
|
- );
|
|
|
|
if(this.params[prop].length <= 1) {
|
|
if(this.params[prop].length <= 1) {
|
|
- for (let i = 0; i<rows.length; i++) {
|
|
|
|
- let line = {...this.$init.params(TableColumns)}
|
|
|
|
- line.supplierName2 = rows[i]
|
|
|
|
- newLine.push(line)
|
|
|
|
- }
|
|
|
|
- // 删除指定下标
|
|
|
|
- this.params[prop].splice(index,this.params[prop].length - index,...newLine)
|
|
|
|
- this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
|
|
|
|
- // this.$refs.table.doLayout()
|
|
|
|
|
|
+ this.params[prop][index].supplierName2 = rows[0]
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
} else {
|
|
} else {
|
|
for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
|
|
for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
|
|
this.params[prop][i].supplierName2 = rows[j]
|
|
this.params[prop][i].supplierName2 = rows[j]
|
|
}
|
|
}
|
|
- // this.$refs.table.doLayout()
|
|
|
|
- console.log(this.params[prop])
|
|
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
}
|
|
}
|
|
} else if(scope.column.property == 'bidPrice2') {
|
|
} else if(scope.column.property == 'bidPrice2') {
|
|
- console.log('复制内容:', rows)
|
|
|
|
- let newLine = []
|
|
|
|
- const {TabColumns} = this;
|
|
|
|
- const {TableColumns} = TabColumns.find(
|
|
|
|
- ({item: {key}}) => key === prop
|
|
|
|
- );
|
|
|
|
if(this.params[prop].length <= 1) {
|
|
if(this.params[prop].length <= 1) {
|
|
- for (let i = 0; i<rows.length; i++) {
|
|
|
|
- let line = {...this.$init.params(TableColumns)}
|
|
|
|
- line.bidPrice2 = rows[i]
|
|
|
|
- newLine.push(line)
|
|
|
|
- }
|
|
|
|
- // 删除指定下标
|
|
|
|
- this.params[prop].splice(index,this.params[prop].length - index,...newLine)
|
|
|
|
- this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
|
|
|
|
- // this.$refs.table.doLayout()
|
|
|
|
|
|
+ this.params[prop][index].bidPrice2 = rows[0]
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
} else {
|
|
} else {
|
|
for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
|
|
for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
|
|
this.params[prop][i].bidPrice2 = rows[j]
|
|
this.params[prop][i].bidPrice2 = rows[j]
|
|
}
|
|
}
|
|
- // this.$refs.table.doLayout()
|
|
|
|
- console.log(this.params[prop])
|
|
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
}
|
|
}
|
|
} else if(scope.column.property == 'unitPrice2') {
|
|
} else if(scope.column.property == 'unitPrice2') {
|
|
- console.log('复制内容:', rows)
|
|
|
|
- let newLine = []
|
|
|
|
- const {TabColumns} = this;
|
|
|
|
- const {TableColumns} = TabColumns.find(
|
|
|
|
- ({item: {key}}) => key === prop
|
|
|
|
- );
|
|
|
|
if(this.params[prop].length <= 1) {
|
|
if(this.params[prop].length <= 1) {
|
|
- for (let i = 0; i<rows.length; i++) {
|
|
|
|
- let line = {...this.$init.params(TableColumns)}
|
|
|
|
- line.unitPrice2 = rows[i]
|
|
|
|
- newLine.push(line)
|
|
|
|
- }
|
|
|
|
- // 删除指定下标
|
|
|
|
- this.params[prop].splice(index,this.params[prop].length - index,...newLine)
|
|
|
|
- this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
|
|
|
|
- // this.$refs.table.doLayout()
|
|
|
|
|
|
+ this.params[prop][index].unitPrice2 = rows[0]
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
} else {
|
|
} else {
|
|
for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
|
|
for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
|
|
this.params[prop][i].unitPrice2 = rows[j]
|
|
this.params[prop][i].unitPrice2 = rows[j]
|
|
}
|
|
}
|
|
- // this.$refs.table.doLayout()
|
|
|
|
- console.log(this.params[prop])
|
|
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
}
|
|
}
|
|
}
|
|
}
|