|
|
@ -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', {
|
|
|
|
this.StoreOpRange = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
model: 'MsOP',
|
|
|
|
model: 'MsOP',
|
|
|
|
proxy: {
|
|
|
|
proxy: {
|
|
|
@ -1104,7 +1125,8 @@ Ext.extend(Shipping.MsChInvoiceAppEdit, Ext.Panel, {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
scope: this
|
|
|
|
scope: this
|
|
|
|
}]
|
|
|
|
}]
|
|
|
|
}, {
|
|
|
|
}
|
|
|
|
|
|
|
|
, {
|
|
|
|
xtype: 'container',
|
|
|
|
xtype: 'container',
|
|
|
|
layout: 'hbox',
|
|
|
|
layout: 'hbox',
|
|
|
|
//flex: 1,
|
|
|
|
//flex: 1,
|
|
|
@ -1118,7 +1140,9 @@ Ext.extend(Shipping.MsChInvoiceAppEdit, Ext.Panel, {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
scope: this
|
|
|
|
scope: this
|
|
|
|
}]
|
|
|
|
}]
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
|
|
|
|
,this.comboxRedReason
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//////
|
|
|
|
//////
|
|
|
@ -5576,6 +5600,8 @@ Ext.extend(Shipping.MsChInvoiceAppEdit, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
|
|
var billno = this.formEdit.getForm().findField('BILLNO').getValue();
|
|
|
|
var billno = this.formEdit.getForm().findField('BILLNO').getValue();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var redReason = this.formEdit.getForm().findField('redReason').getValue();
|
|
|
|
|
|
|
|
|
|
|
|
if (billno == '*' || billno == '') {
|
|
|
|
if (billno == '*' || billno == '') {
|
|
|
|
Ext.Msg.show({
|
|
|
|
Ext.Msg.show({
|
|
|
|
title: '提示',
|
|
|
|
title: '提示',
|
|
|
@ -5593,7 +5619,8 @@ Ext.extend(Shipping.MsChInvoiceAppEdit, Ext.Panel, {
|
|
|
|
url: '/Account/Chfee_invoice_HangXin/NNSetRed',
|
|
|
|
url: '/Account/Chfee_invoice_HangXin/NNSetRed',
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
|
bill: billno,
|
|
|
|
bill: billno,
|
|
|
|
redirecturl: GetHangXinRedirectUrl()
|
|
|
|
redirecturl: GetHangXinRedirectUrl(),
|
|
|
|
|
|
|
|
redReason: redReason
|
|
|
|
},
|
|
|
|
},
|
|
|
|
callback: function (options, success, response) {
|
|
|
|
callback: function (options, success, response) {
|
|
|
|
if (success) {
|
|
|
|
if (success) {
|
|
|
@ -5672,7 +5699,7 @@ Ext.extend(Shipping.MsChInvoiceAppEdit, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
|
|
Ext.Ajax.request({
|
|
|
|
Ext.Ajax.request({
|
|
|
|
waitMsg: '正在读取开票信息...',
|
|
|
|
waitMsg: '正在读取开票信息...',
|
|
|
|
url: '/Account/Chfee_invoice_HangXin/NNReadInv',
|
|
|
|
url: '/Account/Chfee_invoice_HangXin/NNReadInv_P2',
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
|
BILLNO: billno,
|
|
|
|
BILLNO: billno,
|
|
|
|
redirecturl: GetHangXinRedirectUrl()
|
|
|
|
redirecturl: GetHangXinRedirectUrl()
|
|
|
|