记账凭证

This commit is contained in:
CRM8000 2024-11-14 16:39:09 +08:00
parent a7255c55cb
commit b5dfb99e31

View File

@ -127,7 +127,7 @@ PCL.define("PSI.SLN0002.Voucher.EditForm", {
columns: 4,
tableAttrs: PSI.Const.TABLE_LAYOUT_SMALL,
},
height: 40,
height: 70,
bodyPadding: 10,
items: [{
xtype: "hidden",
@ -187,6 +187,7 @@ PCL.define("PSI.SLN0002.Voucher.EditForm", {
autoLoad: false,
data: []
}),
colspan: 2,
}, {
id: me.buildId(me, "editRef"),
fieldLabel: "凭证号",
@ -194,8 +195,20 @@ PCL.define("PSI.SLN0002.Voucher.EditForm", {
labelAlign: "right",
labelSeparator: "",
xtype: "displayfield",
width: 170,
width: 215,
value: me.toFieldNoteText("保存后自动生成")
}, {
id: me.buildId(me, "editVoucherDT"),
fieldLabel: "凭证日期",
labelWidth: 65,
labelAlign: "right",
labelSeparator: "",
allowBlank: false,
blankText: "没有输入凭证日期",
beforeLabelTextTpl: PSI.Const.REQUIRED,
xtype: "datefield",
format: "Y-m-d",
value: new Date(),
},]
}],
listeners: {
@ -221,6 +234,7 @@ PCL.define("PSI.SLN0002.Voucher.EditForm", {
me.editRef = PCL.getCmp(me.buildId(me, "editRef"));
me.editOrg = PCL.getCmp(me.buildId(me, "editOrg"));
me.editWord = PCL.getCmp(me.buildId(me, "editWord"));
me.editVoucherDT = PCL.getCmp(me.buildId(me, "editVoucherDT"));
me.panelFmtCols = PCL.getCmp(me.buildId(me, "panelFmtCols"));
@ -228,6 +242,7 @@ PCL.define("PSI.SLN0002.Voucher.EditForm", {
me.__editorList = [
];
me.editOrg.setReadOnly(true);
me._keyMap = PCL.create("PCL.util.KeyMap", PCL.getBody(), {
key: "S",