Browse Source

合同支付,复制粘贴名称

MaiXinRong 5 years ago
parent
commit
27b151aee7
1 changed files with 7 additions and 1 deletions
  1. 7 1
      app/public/js/stage_pay.js

+ 7 - 1
app/public/js/stage_pay.js

@@ -735,7 +735,10 @@ $(document).ready(() => {
                 }
 
                 const sortData = info.sheet.zh_data;
-                const data = {type: col.field === 'tp' ? 'stage' : 'info', updateData: []};
+                const data = {
+                    type: (col.field === 'tp' || col.field === 'name') ? 'stage' : 'info',
+                    updateData: []
+                };
 
                 for (let iRow = 0; iRow < info.cellRange.rowCount; iRow++) {
                     const curRow = info.cellRange.row + iRow;
@@ -751,6 +754,9 @@ $(document).ready(() => {
                                 SpreadJsObj.reLoadSheetData(paySpread.getActiveSheet());
                                 return;
                             }
+                        } else if (col.field === 'name') {
+                            updateData.pid = node.pid;
+                            updateData.name = validText;
                         } else {
                             updateData.id = node.pid;
                             if (validText) {