|
@@ -2150,6 +2150,18 @@ $(document).ready(function() {
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
+ this.qdSpread.bind(spreadNS.Events.EditEnded, function (e, info) {
|
|
|
+ if (info.col === 0) {
|
|
|
+ const dealBills = self.dealSpread.getActiveSheet().zh_data;
|
|
|
+ if (dealBills && dealBills.length > 0) {
|
|
|
+ const bills = _.find(dealBills, {code: info.editingText});
|
|
|
+ if (bills) {
|
|
|
+ info.sheet.getCell(info.row, 1).value(bills.name);
|
|
|
+ info.sheet.getCell(info.row, 2).value(bills.unit);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
this.obj.bind('shown.bs.modal', function () {
|
|
|
self.qdSpread.refresh();
|