|
@@ -2200,6 +2200,20 @@ $(document).ready(function() {
|
|
|
posSheet.getCell(0, i + 2 - 1, spreadNS.SheetArea.colHeader).text('清单' + i);
|
|
|
}
|
|
|
}
|
|
|
+ if (info.cellRange.col === 0 && info.cellRange.colCount === 1) {
|
|
|
+ const dealBills = self.dealSpread.getActiveSheet().zh_data;
|
|
|
+ if (dealBills && dealBills.length > 0) {
|
|
|
+ for (let iRow = 0; iRow < info.cellRange.rowCount; iRow++) {
|
|
|
+ const curRow = iRow + info.cellRange.row;
|
|
|
+ const bills = _.find(dealBills, {code: info.sheet.getText(curRow, 0)});
|
|
|
+ if (bills) {
|
|
|
+ info.sheet.getCell(curRow, 1).value(bills.name);
|
|
|
+ info.sheet.getCell(curRow, 2).value(bills.unit);
|
|
|
+ info.sheet.getCell(curRow, 3).value(bills.unit_price);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
});
|
|
|
this.qdSpread.bind(spreadNS.Events.EditEnded, function (e, info) {
|
|
|
if (info.col === 0) {
|