Sfoglia il codice sorgente

价格申报单复制粘贴优化

黄梓星 1 anno fa
parent
commit
209c1e70d9

+ 24 - 168
src/views/purchase/apply/add/index.vue

@@ -352,262 +352,118 @@
 
           } else if(scope.column.property == 'taxPrice') {
             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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].taxPrice = rows[j]
               }
               // this.$refs.table.doLayout()
-              console.log(this.params[prop])
+              // console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].supplierName = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].bidPrice = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].unitPrice = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].supplierName1 = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].bidPrice1 = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].unitPrice1 = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].supplierName2 = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].bidPrice2 = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].unitPrice2 = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 

+ 24 - 168
src/views/purchase/apply/copy/index.vue

@@ -398,262 +398,118 @@
 
           } else if(scope.column.property == 'taxPrice') {
             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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].taxPrice = rows[j]
               }
               // this.$refs.table.doLayout()
-              console.log(this.params[prop])
+              // console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].supplierName = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].bidPrice = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].unitPrice = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].supplierName1 = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].bidPrice1 = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].unitPrice1 = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].supplierName2 = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].bidPrice2 = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].unitPrice2 = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 

+ 24 - 168
src/views/purchase/apply/edit/index.vue

@@ -414,262 +414,118 @@
 
           } else if(scope.column.property == 'taxPrice') {
             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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].taxPrice = rows[j]
               }
               // this.$refs.table.doLayout()
-              console.log(this.params[prop])
+              // console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].supplierName = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].bidPrice = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].unitPrice = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].supplierName1 = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].bidPrice1 = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].unitPrice1 = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].supplierName2 = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].bidPrice2 = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           } 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) {
-              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();
             } else {
               for(let i = index , j = 0; i < this.params[prop].length; i++, j++) {
                 this.params[prop][i].unitPrice2 = rows[j]
               }
-              // this.$refs.table.doLayout()
-              console.log(this.params[prop])
               this.$modal.closeLoading();
             }
           }