记账凭证

This commit is contained in:
CRM8000 2024-11-22 10:37:23 +08:00
parent 032d7e12eb
commit 20dadb8de1

View File

@ -1040,6 +1040,31 @@ PCL.define("PSI.SLN0002.Voucher.MainForm", {
me._onQuery();
},
/**
* @private
*/
_onMainGridSelect() {
const me = this;
me.resetSummaryInput();
const item = me.getMainGrid().getSelectionModel().getSelection();
if (item == null || item.length != 1) {
return;
}
const voucher = item[0];
me.editSummaryRef.setValue(voucher.get("ref"));
me.editSummaryDT.setValue(voucher.get("voucherDT"));
let billNumber = voucher.get("billNumber");
if (!billNumber) {
billNumber = 0;
}
me.editSummaryBillNumber.setValue(billNumber);
me.editSummaryOrgName.setValue(voucher.get("orgName"));
},
refreshMainGrid(id) {
const me = this;
@ -1050,7 +1075,7 @@ PCL.define("PSI.SLN0002.Voucher.MainForm", {
me._lastId = id;
},
/**
* 打印预览
* @private