mirror of
https://gitee.com/crm8000/PSI
synced 2024-11-23 08:50:16 +00:00
记账凭证
This commit is contained in:
parent
032d7e12eb
commit
20dadb8de1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user