DS7_JingHan
hanxuntao 2 years ago
parent 51c1272ba7
commit b4c033108b

@ -2754,7 +2754,7 @@ Ext.extend(Shipping.MsChInvoiceAppEdit, Ext.Panel, {
_this.formAMT.getForm().reset();
_this.formEdit.getForm().setValues(data);
_this.formAMT.getForm().setValues(data);
_this.setInvTile(data.INVOICELINE);
_this.setInvTile(data.INVOICELINEREF);
if (this.opStatus == 'copyadd')
this.CopyNewData();
var companyid = data.SALECORPID;
@ -5843,13 +5843,15 @@ Ext.extend(Shipping.MsChInvoiceAppEdit, Ext.Panel, {
setInvTile: function (invline) {
var INVTITLE = Ext.getCmp('INVTITLE');
if (invline.indexOf('专用') != -1) {
INVTITLE.setText('增值税专用发票', false);
} else if (invline.indexOf('电') != -1) {
INVTITLE.setText('增值税电子普通发票', false);
} else {
INVTITLE.setText('增值税普通发票', false);
}
INVTITLE.setText(invline, false);
//if (invline.indexOf('专用') != -1) {
// INVTITLE.setText('增值税专用发票', false);
//} else if (invline.indexOf('电') != -1) {
// INVTITLE.setText('增值税电子普通发票', false);
//} else {
// INVTITLE.setText('增值税普通发票', false);
//}
},
// #region 根据权限和状态判断是否允许修改

@ -5159,8 +5159,15 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
}]
}, '-', {
text: Zi.LAN.GuanBi, //"关闭",
handler: function (button, event) {
window.close();
handler: function (button, event) {
var btnESave = Ext.getCmp('btnESave');
if (btnESave.isDisabled()) {
window.close();
} else {
this.Save('1');
}
},
scope: this
}, {

Loading…
Cancel
Save