联力P2版发票开出,增加对诺诺全电票的支持

dev
ddlucky 8 months ago
parent fc926ac36e
commit c483b0db85

@ -346,6 +346,27 @@ Ext.extend(Shipping.MsChInvoiceAppEdit, Ext.Panel, {
});
this.storeRedReason = Ext.create('DsExt.ux.RefEnumStore', {});
this.storeRedReason.load({ params: { enumTypeId: 80008 } });
this.comboxRedReason = Ext.create('DsExt.ux.RefTableCombox', {
fieldLabel: "冲红理由", //业务类型
FLEX: 0.8,
store: this.storeRedReason,
name: 'redReason',
valueField: 'EnumValueId',
displayField: 'EnumValueName',
enableKeyEvents: true,
listeners: {
//scope: this,
//'select': function (combo, records, eOpts) {
// if (records.length > 0) {
// _this.setInvTile(records[0].data.EnumValueName);
// }
//}
}
});
this.StoreOpRange = Ext.create('DsExt.ux.RefTableStore', {
model: 'MsOP',
proxy: {
@ -1104,7 +1125,8 @@ Ext.extend(Shipping.MsChInvoiceAppEdit, Ext.Panel, {
},
scope: this
}]
}, {
}
, {
xtype: 'container',
layout: 'hbox',
//flex: 1,
@ -1118,7 +1140,9 @@ Ext.extend(Shipping.MsChInvoiceAppEdit, Ext.Panel, {
},
scope: this
}]
}]
}
,this.comboxRedReason
]
},
//////
@ -5576,6 +5600,8 @@ Ext.extend(Shipping.MsChInvoiceAppEdit, Ext.Panel, {
var billno = this.formEdit.getForm().findField('BILLNO').getValue();
var redReason = this.formEdit.getForm().findField('redReason').getValue();
if (billno == '*' || billno == '') {
Ext.Msg.show({
title: '提示',
@ -5593,7 +5619,8 @@ Ext.extend(Shipping.MsChInvoiceAppEdit, Ext.Panel, {
url: '/Account/Chfee_invoice_HangXin/NNSetRed',
params: {
bill: billno,
redirecturl: GetHangXinRedirectUrl()
redirecturl: GetHangXinRedirectUrl(),
redReason: redReason
},
callback: function (options, success, response) {
if (success) {
@ -5672,7 +5699,7 @@ Ext.extend(Shipping.MsChInvoiceAppEdit, Ext.Panel, {
Ext.Ajax.request({
waitMsg: '正在读取开票信息...',
url: '/Account/Chfee_invoice_HangXin/NNReadInv',
url: '/Account/Chfee_invoice_HangXin/NNReadInv_P2',
params: {
BILLNO: billno,
redirecturl: GetHangXinRedirectUrl()

Loading…
Cancel
Save