YingHang
ddlucky 9 months ago
commit ac88785837

@ -64,8 +64,36 @@ Ext.extend(Shipping.ChInvoiceapplicationAudit, Ext.Panel, {
sortable: true, sortable: true,
dataIndex: 'BILLSTATUSREF', dataIndex: 'BILLSTATUSREF',
header: Zi.LAN.status, header: Zi.LAN.status,
width: 80 width: 80,
}, { renderer: function (value, meta, record) {
if (value == '审核通过') {
meta.tdCls = 'feestatus_pass';
value = Zi.LAN.SHENHETONGGUO;
} else if (value == '录入状态') {
value = Zi.LAN.LURUZHUAGNTAI;
} else if (value == '已提交') {
meta.tdCls = 'feestatus_refer';
value = Zi.LAN.TIJIAOSHENHE;
} else if (value == '部分开出') {
meta.tdCls = 'feestatus_refer';
value = Zi.LAN.BUFENKAICHU;
} else if (value == '已开出') {
meta.tdCls = 'feestatus_settle';
value = Zi.LAN.YIKAICHU;
} else if (value == '驳回') {
meta.tdCls = 'feestatus_nopass';
value = Zi.LAN.BUHUITIJIAO;
} else if (value == '未提交') {
value = Zi.LAN.WEITIJIAO;
}
return value;
}
}
, {
sortable: true, sortable: true,
dataIndex: 'CUSTOMERNAME', dataIndex: 'CUSTOMERNAME',
header: Zi.LAN.CUSTOMERNAME, header: Zi.LAN.CUSTOMERNAME,
@ -609,7 +637,16 @@ Ext.extend(Shipping.ChInvoiceapplicationAudit, Ext.Panel, {
sortable: true, sortable: true,
dataIndex: 'FEETYPEREF', dataIndex: 'FEETYPEREF',
header: Zi.LAN.FEETYPEREF, header: Zi.LAN.FEETYPEREF,
width: 40 width: 40,
renderer: function (value, meta, record) {
if (value == '收') {
value = Zi.LAN.DR;
} else if (value == '付') {
value = Zi.LAN.CR;
}
return value;
}
}, { }, {
sortable: true, sortable: true,
dataIndex: 'AMOUNT', dataIndex: 'AMOUNT',
@ -855,7 +892,16 @@ Ext.extend(Shipping.ChInvoiceapplicationAudit, Ext.Panel, {
sortable: true, sortable: true,
dataIndex: 'FEETYPEREF', dataIndex: 'FEETYPEREF',
header: Zi.LAN.FEETYPEREF, header: Zi.LAN.FEETYPEREF,
width: 40 width: 40,
renderer: function (value, meta, record) {
if (value == '收') {
value = Zi.LAN.DR;
} else if (value == '付') {
value = Zi.LAN.CR;
}
return value;
}
}, { }, {
sortable: true, sortable: true,
dataIndex: 'CURRENCY', dataIndex: 'CURRENCY',
@ -1605,7 +1651,7 @@ Ext.extend(Shipping.ChInvoiceapplicationAudit, Ext.Panel, {
}); });
return; return;
} else { } else {
Ext.Msg.show({ title: Zi.LAN.Prompt, msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK }); //Ext.Msg.show({ title: Zi.LAN.Prompt, msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
_this.storeList.reload(); _this.storeList.reload();
} }

@ -409,6 +409,10 @@ Ext.extend(Shipping.MsChInvoiceapplicationBLEdit, Ext.Panel, {
} }
}); });
var BLTYPEDFIELDNAME = 'EnumValueName';
if (strLANGUAGES == "en-us") {
BLTYPEDFIELDNAME = 'EnumValueName_2';
}
this.storeInvCategory = Ext.create('DsExt.ux.RefEnumStore', {}); this.storeInvCategory = Ext.create('DsExt.ux.RefEnumStore', {});
this.storeInvCategory.load({ params: { enumTypeId: 97008} }); this.storeInvCategory.load({ params: { enumTypeId: 97008} });
@ -420,7 +424,7 @@ Ext.extend(Shipping.MsChInvoiceapplicationBLEdit, Ext.Panel, {
forceSelection: true, forceSelection: true,
name: 'INVOICECATEGORY', name: 'INVOICECATEGORY',
valueField: 'EnumValueId', valueField: 'EnumValueId',
displayField: 'EnumValueName' displayField: BLTYPEDFIELDNAME
}); });
this.storeCompany = Ext.create('DsExt.ux.RefTableStore', { this.storeCompany = Ext.create('DsExt.ux.RefTableStore', {
@ -2163,6 +2167,7 @@ Ext.extend(Shipping.MsChInvoiceapplicationBLEdit, Ext.Panel, {
store: this.storeFEERANGE, store: this.storeFEERANGE,
forceSelection: true, forceSelection: true,
name: 'FEERANGE', name: 'FEERANGE',
displayField: BLTYPEDFIELDNAME,
enableKeyEvents: true, enableKeyEvents: true,
listeners: { listeners: {
keyup: function (field, e) { keyup: function (field, e) {

@ -331,8 +331,8 @@ Ext.extend(Shipping.MsChInvoiceapplicationIndex, Ext.Panel, {
bbar: [Ext.create('Ext.PagingToolbar', { bbar: [Ext.create('Ext.PagingToolbar', {
store: this.storeList, store: this.storeList,
displayInfo: true, displayInfo: true,
displayMsg: '当前显示 {0} - {1}条记录 /共 {2}条记录', displayMsg: Zi.LAN.FenYe,
emptyMsg: "没有数据" emptyMsg: Zi.LAN.Nodata
}), this.Pagenum] }), this.Pagenum]
}); });
@ -355,12 +355,26 @@ Ext.extend(Shipping.MsChInvoiceapplicationIndex, Ext.Panel, {
//#region formSearch枚举参照相关 //#region formSearch枚举参照相关
this.storeBillStatus = Ext.create('DsExt.ux.RefEnumStore', {}); var BLTYPEDFIELDNAME = 'EnumValueName';
this.storeBillStatus.load({ params: { enumTypeId: 97010} }); if (strLANGUAGES == "en-us") {
BLTYPEDFIELDNAME = 'EnumValueName_2';
}
//this.storeBillStatus = Ext.create('DsExt.ux.RefEnumStore', {});
//this.storeBillStatus.load({ params: { enumTypeId: 97010 } });
this.storeBillStatus = Ext.create('DsExt.ux.RefTableStore', {
model: 'DsExtEnumModel',
proxy: { url: '/CommMng/PubSys/GetEnumValueList' }
});
this.storeBillStatus.load({ params: { enumTypeId: 97010 } });
this.comboxBillStatus = Ext.create('DsExt.ux.RefEnumCombox', { this.comboxBillStatus = Ext.create('DsExt.ux.RefTableCombox', {
fieldLabel: Zi.LAN.status, fieldLabel: Zi.LAN.status,
forceSelection: false, forceSelection: false,
valueField: 'EnumValueName',
displayField: BLTYPEDFIELDNAME,
store: this.storeBillStatus, store: this.storeBillStatus,
name: 'BillStatus' name: 'BillStatus'
}); });

@ -15,7 +15,7 @@ Zi.LAN.BUFENKAICHU = "部分开出";
Zi.LAN.YIKAICHU = "已开出"; Zi.LAN.YIKAICHU = "已开出";
Zi.LAN.BUHUITIJIAO = "驳回提交"; Zi.LAN.BUHUITIJIAO = "驳回提交";
Zi.LAN.PAYCOMPANYREF = "所属分部"; Zi.LAN.PAYCOMPANYREF = "所属分部";
Zi.LAN.CUSTOMERNAME = "开票单位"; Zi.LAN.INVCUSTOMERNAME = "开票单位";
Zi.LAN.INVOICECUSTNAME = "发票抬头"; Zi.LAN.INVOICECUSTNAME = "发票抬头";
Zi.LAN.Currency = "币别"; Zi.LAN.Currency = "币别";
Zi.LAN.APPLYAMOUNT = "申请金额"; Zi.LAN.APPLYAMOUNT = "申请金额";

@ -3295,6 +3295,9 @@ Ext.extend(Shipping.MsChPayapplicationBLEdit, Ext.Panel, {
} }
var SALECORPID = this.formEdit.getForm().findField('SALECORPID').getValue(); var SALECORPID = this.formEdit.getForm().findField('SALECORPID').getValue();
if ((SALECORPID == '') || (SALECORPID == null)) { if ((SALECORPID == '') || (SALECORPID == null)) {
var selectedRecords2 = this.gridAddList.selModel.getSelection();
var rec = selectedRecords2[i];
SALECORP = rec.data.SALECORP;
var recs = DsStoreQueryBy(this.storeSaleCompany, 'NAME', SALECORP); var recs = DsStoreQueryBy(this.storeSaleCompany, 'NAME', SALECORP);
if (recs.getCount() > 0) { if (recs.getCount() > 0) {
var data = recs.getAt(0).data; var data = recs.getAt(0).data;

@ -243,6 +243,10 @@ Ext.extend(Shipping.MsChPayAppSettlementEdit, Ext.Panel, {
valueField: 'GID', valueField: 'GID',
displayField: 'BANKACCOUNT' displayField: 'BANKACCOUNT'
}); });
var BLTYPEDFIELDNAME = 'EnumValueName';
if (strLANGUAGES == "en-us") {
BLTYPEDFIELDNAME = 'EnumValueName_2';
}
this.storeSTLCATEGROY = Ext.create('DsExt.ux.RefEnumStore', {}); this.storeSTLCATEGROY = Ext.create('DsExt.ux.RefEnumStore', {});
@ -253,7 +257,7 @@ Ext.extend(Shipping.MsChPayAppSettlementEdit, Ext.Panel, {
name: 'STLCATEGROY', name: 'STLCATEGROY',
store: this.storeSTLCATEGROY, store: this.storeSTLCATEGROY,
valueField: 'EnumValueName', valueField: 'EnumValueName',
displayField: 'EnumValueName', displayField: BLTYPEDFIELDNAME,
forceSelection: true forceSelection: true
}); });

@ -340,3 +340,5 @@ Zi.LAN.UNLOCKUSERREF = "撤销锁定人";
Zi.LAN.CONTRACTNO = "合同号"; Zi.LAN.CONTRACTNO = "合同号";
Zi.LAN.INSPECTIONNO = "报检单号"; Zi.LAN.INSPECTIONNO = "报检单号";
Zi.LAN.SALEDEPT = "所属部门"; Zi.LAN.SALEDEPT = "所属部门";
Zi.LAN.DR = "收";
Zi.LAN.CR = "付";

@ -344,3 +344,5 @@ Zi.LAN.UNLOCKUSERREF = "撤销锁定人";
Zi.LAN.CONTRACTNO = "合同号"; Zi.LAN.CONTRACTNO = "合同号";
Zi.LAN.INSPECTIONNO = "报检单号"; Zi.LAN.INSPECTIONNO = "报检单号";
Zi.LAN.SALEDEPT = "所属部门"; Zi.LAN.SALEDEPT = "所属部门";
Zi.LAN.DR = "收";
Zi.LAN.CR = "付";

@ -6442,6 +6442,7 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
this.StoreSalesRepCode.add({ "ID": "CN099", "NAME": "CN099 | HELEN ZHANG" }); this.StoreSalesRepCode.add({ "ID": "CN099", "NAME": "CN099 | HELEN ZHANG" });
this.StoreSalesRepCode.add({ "ID": "CN100", "NAME": "CN100 | LEOREN" }); this.StoreSalesRepCode.add({ "ID": "CN100", "NAME": "CN100 | LEOREN" });
this.StoreSalesRepCode.add({ "ID": "CN302", "NAME": "CN302 | MELL" }); this.StoreSalesRepCode.add({ "ID": "CN302", "NAME": "CN302 | MELL" });
this.StoreSalesRepCode.add({ "ID": "CN234", "NAME": "CN234 | JACKIE FENG" });
this.comboxSalesRepCode = Ext.create('DsExt.ux.RefTableCombox', { this.comboxSalesRepCode = Ext.create('DsExt.ux.RefTableCombox', {
store: this.StoreSalesRepCode, store: this.StoreSalesRepCode,

Loading…
Cancel
Save