|  | @@ -861,15 +861,17 @@ $(document).ready(function() {
 | 
												
													
														
															|  |                          posSelects.push(node);
 |  |                          posSelects.push(node);
 | 
												
													
														
															|  |                      }
 |  |                      }
 | 
												
													
														
															|  |                  }
 |  |                  }
 | 
												
													
														
															|  | -                postData('/tender/' + getTenderId() + '/pos/update', {updateType: 'update', updateData: datas}, function (result) {
 |  | 
 | 
												
													
														
															|  | -                    pos.updateDatas(result.pos);
 |  | 
 | 
												
													
														
															|  | -                    posOperationObj.loadCurPosData();
 |  | 
 | 
												
													
														
															|  | -                    const loadResult = ledgerTree.loadPostData(result.ledger);
 |  | 
 | 
												
													
														
															|  | -                    treeOperationObj.refreshTree(ledgerSpread.getActiveSheet(), loadResult);
 |  | 
 | 
												
													
														
															|  | -                    treeOperationObj.refreshOperationValid(ledgerSpread.getActiveSheet());
 |  | 
 | 
												
													
														
															|  | -                }, function () {
 |  | 
 | 
												
													
														
															|  | -                    posOperationObj.loadCurPosData();
 |  | 
 | 
												
													
														
															|  | -                });
 |  | 
 | 
												
													
														
															|  | 
 |  | +                if (datas.length > 0) {
 | 
												
													
														
															|  | 
 |  | +                    postData('/tender/' + getTenderId() + '/pos/update', {updateType: 'update', updateData: datas}, function (result) {
 | 
												
													
														
															|  | 
 |  | +                        pos.updateDatas(result.pos);
 | 
												
													
														
															|  | 
 |  | +                        posOperationObj.loadCurPosData();
 | 
												
													
														
															|  | 
 |  | +                        const loadResult = ledgerTree.loadPostData(result.ledger);
 | 
												
													
														
															|  | 
 |  | +                        treeOperationObj.refreshTree(ledgerSpread.getActiveSheet(), loadResult);
 | 
												
													
														
															|  | 
 |  | +                        treeOperationObj.refreshOperationValid(ledgerSpread.getActiveSheet());
 | 
												
													
														
															|  | 
 |  | +                    }, function () {
 | 
												
													
														
															|  | 
 |  | +                        posOperationObj.loadCurPosData();
 | 
												
													
														
															|  | 
 |  | +                    });
 | 
												
													
														
															|  | 
 |  | +                }
 | 
												
													
														
															|  |              }
 |  |              }
 | 
												
													
														
															|  |          },
 |  |          },
 | 
												
													
														
															|  |          /**
 |  |          /**
 | 
												
											
												
													
														
															|  | @@ -885,15 +887,19 @@ $(document).ready(function() {
 | 
												
													
														
															|  |              const row = selection[0].row, count = selection[0].rowCount;
 |  |              const row = selection[0].row, count = selection[0].rowCount;
 | 
												
													
														
															|  |              const sortData = sheet.zh_data;
 |  |              const sortData = sheet.zh_data;
 | 
												
													
														
															|  |              for (let iRow = 0; iRow < count; iRow++) {
 |  |              for (let iRow = 0; iRow < count; iRow++) {
 | 
												
													
														
															|  | -                data.updateData.push(sortData[iRow + row].id);
 |  | 
 | 
												
													
														
															|  | 
 |  | +                if (sortData[iRow + row]) {
 | 
												
													
														
															|  | 
 |  | +                    data.updateData.push(sortData[iRow + row].id);
 | 
												
													
														
															|  | 
 |  | +                }
 | 
												
													
														
															|  | 
 |  | +            }
 | 
												
													
														
															|  | 
 |  | +            if (data.updateData.length > 0) {
 | 
												
													
														
															|  | 
 |  | +                postData('/tender/' + getTenderId() + '/pos/update', data, function (result) {
 | 
												
													
														
															|  | 
 |  | +                    pos.removeDatas(result.pos);
 | 
												
													
														
															|  | 
 |  | +                    sheet.deleteRows(row, count);
 | 
												
													
														
															|  | 
 |  | +                    const loadResult = ledgerTree.loadPostData(result.ledger);
 | 
												
													
														
															|  | 
 |  | +                    treeOperationObj.refreshTree(ledgerSpread.getActiveSheet(), loadResult);
 | 
												
													
														
															|  | 
 |  | +                    treeOperationObj.refreshOperationValid(ledgerSpread.getActiveSheet());
 | 
												
													
														
															|  | 
 |  | +                });
 | 
												
													
														
															|  |              }
 |  |              }
 | 
												
													
														
															|  | -            postData('/tender/' + getTenderId() + '/pos/update', data, function (result) {
 |  | 
 | 
												
													
														
															|  | -                pos.removeDatas(result.pos);
 |  | 
 | 
												
													
														
															|  | -                sheet.deleteRows(row, count);
 |  | 
 | 
												
													
														
															|  | -                const loadResult = ledgerTree.loadPostData(result.ledger);
 |  | 
 | 
												
													
														
															|  | -                treeOperationObj.refreshTree(ledgerSpread.getActiveSheet(), loadResult);
 |  | 
 | 
												
													
														
															|  | -                treeOperationObj.refreshOperationValid(ledgerSpread.getActiveSheet());
 |  | 
 | 
												
													
														
															|  | -            });
 |  | 
 | 
												
													
														
															|  |          },
 |  |          },
 | 
												
													
														
															|  |          /**
 |  |          /**
 | 
												
													
														
															|  |           * 粘贴单元格响应事件
 |  |           * 粘贴单元格响应事件
 |