|
|
|
|
Ext.namespace('Shipping');
|
|
|
|
|
|
|
|
|
|
Shipping.MsFeeHistoryView= function (config) {
|
|
|
|
|
Ext.applyIf(this, config);
|
|
|
|
|
this.initUIComponents();
|
|
|
|
|
window.Shipping.MsFeeHistoryView.superclass.constructor.call(this);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ext.extend(Shipping.MsFeeHistoryView, Ext.Panel, {
|
|
|
|
|
ParentWin: null,
|
|
|
|
|
OpStatus: 'add',
|
|
|
|
|
StoreList: null,
|
|
|
|
|
editRecord: null,
|
|
|
|
|
region: 'north',
|
|
|
|
|
bsno: '',
|
|
|
|
|
feetype: 0,
|
|
|
|
|
oplb: '',
|
|
|
|
|
AccDate: null,
|
|
|
|
|
IsAccDate: '',
|
|
|
|
|
|
|
|
|
|
initUIComponents: function () {
|
|
|
|
|
//枚举参照相关
|
|
|
|
|
//编辑form
|
|
|
|
|
|
|
|
|
|
Ext.define('MsChDui', {
|
|
|
|
|
extend: 'Ext.data.Model',
|
|
|
|
|
idProperty: 'DUINO',
|
|
|
|
|
fields: [
|
|
|
|
|
{ name: 'DUINO', type: 'string' },
|
|
|
|
|
{ name: 'CUSTNAME', type: 'string' },
|
|
|
|
|
{ name: 'DUIDATE', type: 'string' },
|
|
|
|
|
{ name: 'OP', type: 'string' },
|
|
|
|
|
{ name: 'DUINAME', type: 'string' },
|
|
|
|
|
{ name: 'DM_ID', type: 'string' },
|
|
|
|
|
{ name: 'DC', type: 'string' },
|
|
|
|
|
{ name: 'ISNOSTL', type: 'string' },
|
|
|
|
|
{ name: 'ISNOTAX', type: 'string' },
|
|
|
|
|
{ name: 'BILLSTATUS', type: 'string' },
|
|
|
|
|
{ name: 'BILLSTATUSREF', type: 'string' },
|
|
|
|
|
{ name: 'RMBDR', type: 'number' },
|
|
|
|
|
{ name: 'RMBCR', type: 'number' },
|
|
|
|
|
{ name: 'BALRMBDR', type: 'number' },
|
|
|
|
|
{ name: 'BALRMBCR', type: 'number' },
|
|
|
|
|
{ name: 'USDDR', type: 'number' },
|
|
|
|
|
{ name: 'USDCR', type: 'number' },
|
|
|
|
|
{ name: 'BALUSDDR', type: 'number' },
|
|
|
|
|
{ name: 'BALUSDCR', type: 'number' },
|
|
|
|
|
{ name: 'OTDR', type: 'number' },
|
|
|
|
|
{ name: 'OTCR', type: 'number' },
|
|
|
|
|
{ name: 'BALOTDR', type: 'number' },
|
|
|
|
|
{ name: 'BALOTCR', type: 'number' },
|
|
|
|
|
{ name: 'TTLDR', type: 'number' },
|
|
|
|
|
{ name: 'TTLCR', type: 'number' },
|
|
|
|
|
{ name: 'BALTTLDR', type: 'number' },
|
|
|
|
|
{ name: 'BALTTLCR', type: 'number' },
|
|
|
|
|
{ name: 'REMARKS', type: 'string' },
|
|
|
|
|
{ name: 'ISINVOICE', type: 'string' }
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Ext.define('Chfee_do_detail', {
|
|
|
|
|
extend: 'Ext.data.Model',
|
|
|
|
|
idProperty: 'FEEDOID',
|
|
|
|
|
fields: [
|
|
|
|
|
{ name: 'FEEDOID', type: 'string' },
|
|
|
|
|
{ name: 'FEEID', type: 'string' },
|
|
|
|
|
{ name: 'BILLNO', type: 'string' },
|
|
|
|
|
{ name: 'BILLDATE', type: 'string' },
|
|
|
|
|
{ name: 'BILLUSER', type: 'string' },
|
|
|
|
|
{ name: 'CREATEUSER', type: 'string' },
|
|
|
|
|
{ name: 'BSNO', type: 'string' },
|
|
|
|
|
{ name: 'FEENAME', type: 'string' },
|
|
|
|
|
{ name: 'CUSTOMERNAME', type: 'string' },
|
|
|
|
|
{ name: 'FEETYPEREF', type: 'string' },
|
|
|
|
|
{ name: 'SETTLETYPEREF', type: 'string' },
|
|
|
|
|
{ name: 'CURRENCY', type: 'string' },
|
|
|
|
|
{ name: 'ORIGCURRENCY', type: 'string' },
|
|
|
|
|
{ name: 'INVNO', type: 'string' },
|
|
|
|
|
{ name: 'AMOUNT', type: 'number' },
|
|
|
|
|
{ name: 'DOAMOUNT', type: 'number' },
|
|
|
|
|
{ name: 'ORIGAMOUNT', type: 'number' },
|
|
|
|
|
{ name: 'EXCHANGERATE', type: 'number' },
|
|
|
|
|
{ name: 'REMARK', type: 'string' },
|
|
|
|
|
{ name: 'BILLSTATUSREF', type: 'string' }
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.storeDrChFee = Ext.create('Ext.data.Store', {
|
|
|
|
|
model: 'MsChFee',
|
|
|
|
|
remoteSort: false,
|
|
|
|
|
proxy: {
|
|
|
|
|
type: 'ajax',
|
|
|
|
|
url: '/MvcShipping/MsChFee/GetDataList',
|
|
|
|
|
reader: {
|
|
|
|
|
id: 'GId',
|
|
|
|
|
root: 'data',
|
|
|
|
|
totalProperty: 'totalCount'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.bsno = getUrlParam('bsno');
|
|
|
|
|
this.feetype = getUrlParam('type');
|
|
|
|
|
this.oplb = getUrlParam('oplb');
|
|
|
|
|
|
|
|
|
|
//按钮Toolbar
|
|
|
|
|
this.feeDrGridCheckBoxModel = Ext.create('Ext.selection.CheckboxModel');
|
|
|
|
|
|
|
|
|
|
_this = this;
|
|
|
|
|
|
|
|
|
|
this.gridDrChFee = new Ext.grid.GridPanel({
|
|
|
|
|
store: this.storeDrChFee,
|
|
|
|
|
enableHdMenu: false,
|
|
|
|
|
region: 'center',
|
|
|
|
|
id: 'gridDrChFee',
|
|
|
|
|
loadMask: { msg: "数据加载中,请稍等..." },
|
|
|
|
|
trackMouseOver: true,
|
|
|
|
|
disableSelection: false,
|
|
|
|
|
selModel: this.feeDrGridCheckBoxModel,
|
|
|
|
|
selType: 'cellmodel',
|
|
|
|
|
viewConfig: {
|
|
|
|
|
autoFill: true,
|
|
|
|
|
getRowClass: function (record, rowIndex, rowParams, store) {
|
|
|
|
|
var feeStatus = record.get('FeeStatus');
|
|
|
|
|
return Shipping.FeeGetRowClass(feeStatus);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
columns: [{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'GId',
|
|
|
|
|
header: '惟一编号',
|
|
|
|
|
hidden: true,
|
|
|
|
|
width: 160
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BsNo',
|
|
|
|
|
header: '业务编号',
|
|
|
|
|
hidden: true,
|
|
|
|
|
width: 200
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'FeeStatus',
|
|
|
|
|
header: '费用状态',
|
|
|
|
|
renderer: function (value, p, record) {
|
|
|
|
|
return record.data.FeeStatus_Ref;
|
|
|
|
|
},
|
|
|
|
|
width: 66
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'FeeName',
|
|
|
|
|
header: '应收费用名称',
|
|
|
|
|
width: 100
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'FeeDescription',
|
|
|
|
|
header: '费用英文名称',
|
|
|
|
|
width: 120
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CustomerType',
|
|
|
|
|
header: '客户类别',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CustomerName',
|
|
|
|
|
header: '结算对象',
|
|
|
|
|
width: 120
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'Unit',
|
|
|
|
|
header: '单位标准',
|
|
|
|
|
width: 60
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'UnitPrice',
|
|
|
|
|
header: '单价',
|
|
|
|
|
align: 'right',
|
|
|
|
|
width: 80,
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
try {
|
|
|
|
|
var lsValue = usMoney(value, 2, '', false);
|
|
|
|
|
if (lsValue != "NaN") {
|
|
|
|
|
value = lsValue; if (parseFloat(lsValue) < 0) {
|
|
|
|
|
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'Quantity',
|
|
|
|
|
header: '数量',
|
|
|
|
|
width: 60
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'TaxRate',
|
|
|
|
|
header: '税率',
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) { try { var lsValue = usMoney(value, 2, '', false); if (lsValue != "NaN") { value = lsValue; if (parseFloat(lsValue) < 0) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>'; } } else { return value; } } catch (e) { return value; } return value; },
|
|
|
|
|
align: 'right',
|
|
|
|
|
width: 60
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'NoTaxAmount',
|
|
|
|
|
header: '不含税金额',
|
|
|
|
|
align: 'right',
|
|
|
|
|
width: 80,
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
try {
|
|
|
|
|
var lsValue = usMoney(value, 2, '', false);
|
|
|
|
|
if (lsValue != "NaN") {
|
|
|
|
|
value = lsValue; if (parseFloat(lsValue) < 0) {
|
|
|
|
|
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'Amount',
|
|
|
|
|
header: '金额',
|
|
|
|
|
align: 'right',
|
|
|
|
|
width: 80,
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
try {
|
|
|
|
|
var lsValue = usMoney(value, 2, '', false);
|
|
|
|
|
if (lsValue != "NaN") {
|
|
|
|
|
value = lsValue; if (parseFloat(lsValue) < 0) {
|
|
|
|
|
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'Currency',
|
|
|
|
|
header: '币别',
|
|
|
|
|
width: 40
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'ExChangerate',
|
|
|
|
|
header: '汇率',
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) { try { var lsValue = usMoney(value, 6, '', false); if (lsValue != "NaN") { value = lsValue; if (parseFloat(lsValue) < 0) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>'; } } else { return value; } } catch (e) { return value; } return value; },
|
|
|
|
|
align: 'right',
|
|
|
|
|
width: 60
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'AccTaxRate',
|
|
|
|
|
header: '进项税率',
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) { try { var lsValue = usMoney(value, 2, '', false); if (lsValue != "NaN") { value = lsValue; if (parseFloat(lsValue) < 0) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>'; } } else { return value; } } catch (e) { return value; } return value; },
|
|
|
|
|
align: 'right',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'Remark',
|
|
|
|
|
header: '备注',
|
|
|
|
|
width: 150
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'IsAdvancedpay',
|
|
|
|
|
header: '是否垫付',
|
|
|
|
|
width: 60
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'FeeFrt',
|
|
|
|
|
header: 'FRT',
|
|
|
|
|
width: 40
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'Commissionrate',
|
|
|
|
|
header: '佣金比率',
|
|
|
|
|
width: 60
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'OpName',
|
|
|
|
|
header: '录入人',
|
|
|
|
|
width: 60
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'EnterDate',
|
|
|
|
|
header: '录入日期',
|
|
|
|
|
renderer: Ext.util.Format.dateRenderer('Y-m-d'),
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'Settlement',
|
|
|
|
|
header: '结算金额',
|
|
|
|
|
align: 'right',
|
|
|
|
|
width: 80,
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
try {
|
|
|
|
|
var lsValue = usMoney(value, 2, '', false);
|
|
|
|
|
if (lsValue != "NaN") {
|
|
|
|
|
value = lsValue; if (parseFloat(lsValue) < 0) {
|
|
|
|
|
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'Invoice',
|
|
|
|
|
header: '已开票金额',
|
|
|
|
|
align: 'right',
|
|
|
|
|
width: 80,
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
try {
|
|
|
|
|
var lsValue = usMoney(value, 2, '', false);
|
|
|
|
|
if (lsValue != "NaN") {
|
|
|
|
|
value = lsValue; if (parseFloat(lsValue) < 0) {
|
|
|
|
|
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'InvoiceNum',
|
|
|
|
|
header: '发票号码',
|
|
|
|
|
width: 80
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.panelTop = new Ext.Panel({
|
|
|
|
|
layout: "border",
|
|
|
|
|
region: "north",
|
|
|
|
|
height: 180,
|
|
|
|
|
split: true,
|
|
|
|
|
id: "BillHead",
|
|
|
|
|
items: [this.gridDrChFee]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.storeBodyRecShen = Ext.create('Ext.data.Store', {
|
|
|
|
|
model: 'Chfee_do_detail',
|
|
|
|
|
remoteSort: true,
|
|
|
|
|
proxy: {
|
|
|
|
|
type: 'ajax',
|
|
|
|
|
url: '/MvcShipping/MsOpBill/GetFeeDoList',
|
|
|
|
|
reader: {
|
|
|
|
|
id: 'FEEDOID',
|
|
|
|
|
root: 'data',
|
|
|
|
|
totalProperty: 'totalCount'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.gridListRecShen = new Ext.grid.GridPanel({
|
|
|
|
|
store: this.storeBodyRecShen,
|
|
|
|
|
enableHdMenu: false,
|
|
|
|
|
region: 'center',
|
|
|
|
|
loadMask: { msg: "数据加载中,请稍等..." },
|
|
|
|
|
trackMouseOver: true,
|
|
|
|
|
viewConfig: {
|
|
|
|
|
enableTextSelection: true, //允许复制数据
|
|
|
|
|
autoFill: true
|
|
|
|
|
},
|
|
|
|
|
disableSelection: false,
|
|
|
|
|
columns: [{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'FEEDOID',
|
|
|
|
|
header: 'FEEDOID',
|
|
|
|
|
hidden: true,
|
|
|
|
|
width: 100
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'FEENAME',
|
|
|
|
|
header: '费用名称',
|
|
|
|
|
width: 120
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CUSTOMERNAME',
|
|
|
|
|
header: '客户名称',
|
|
|
|
|
width: 100
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CURRENCY',
|
|
|
|
|
header: '申请币别',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'AMOUNT',
|
|
|
|
|
header: '申请金额',
|
|
|
|
|
width: 80,
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
try {
|
|
|
|
|
var lsValue = usMoney(value, 2, '', false);
|
|
|
|
|
if (lsValue != "NaN") {
|
|
|
|
|
value = lsValue; if (parseFloat(lsValue) < 0) {
|
|
|
|
|
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'ORIGAMOUNT',
|
|
|
|
|
header: '原始金额',
|
|
|
|
|
width: 80,
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
try {
|
|
|
|
|
var lsValue = usMoney(value, 2, '', false);
|
|
|
|
|
if (lsValue != "NaN") {
|
|
|
|
|
value = lsValue; if (parseFloat(lsValue) < 0) {
|
|
|
|
|
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLNO',
|
|
|
|
|
header: '申请编号',
|
|
|
|
|
width: 140
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLDATE',
|
|
|
|
|
header: '申请日期',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLUSER',
|
|
|
|
|
header: '申请人',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLSTATUSREF',
|
|
|
|
|
header: '业务状态',
|
|
|
|
|
width: 80
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.panelRecShen = new Ext.Panel({
|
|
|
|
|
layout: "border",
|
|
|
|
|
region: "north",
|
|
|
|
|
title: '收费申请',
|
|
|
|
|
height: 100,
|
|
|
|
|
items: [this.gridListRecShen]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.storeBodyPayShen = Ext.create('Ext.data.Store', {
|
|
|
|
|
model: 'Chfee_do_detail',
|
|
|
|
|
remoteSort: true,
|
|
|
|
|
proxy: {
|
|
|
|
|
type: 'ajax',
|
|
|
|
|
url: '/MvcShipping/MsOpBill/GetFeeDoList',
|
|
|
|
|
reader: {
|
|
|
|
|
id: 'FEEDOID',
|
|
|
|
|
root: 'data',
|
|
|
|
|
totalProperty: 'totalCount'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.gridListPayShen = new Ext.grid.GridPanel({
|
|
|
|
|
store: this.storeBodyPayShen,
|
|
|
|
|
enableHdMenu: false,
|
|
|
|
|
region: 'center',
|
|
|
|
|
loadMask: { msg: "数据加载中,请稍等..." },
|
|
|
|
|
trackMouseOver: true,
|
|
|
|
|
viewConfig: {
|
|
|
|
|
enableTextSelection: true, //允许复制数据
|
|
|
|
|
autoFill: true
|
|
|
|
|
},
|
|
|
|
|
disableSelection: false,
|
|
|
|
|
columns: [{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'FEEDOID',
|
|
|
|
|
header: 'FEEDOID',
|
|
|
|
|
hidden: true,
|
|
|
|
|
width: 100
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'FEENAME',
|
|
|
|
|
header: '费用名称',
|
|
|
|
|
width: 120
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CUSTOMERNAME',
|
|
|
|
|
header: '客户名称',
|
|
|
|
|
width: 100
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CURRENCY',
|
|
|
|
|
header: '申请币别',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'AMOUNT',
|
|
|
|
|
header: '申请金额',
|
|
|
|
|
width: 80,
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
try {
|
|
|
|
|
var lsValue = usMoney(value, 2, '', false);
|
|
|
|
|
if (lsValue != "NaN") {
|
|
|
|
|
value = lsValue; if (parseFloat(lsValue) < 0) {
|
|
|
|
|
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'ORIGAMOUNT',
|
|
|
|
|
header: '原始金额',
|
|
|
|
|
width: 80,
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
try {
|
|
|
|
|
var lsValue = usMoney(value, 2, '', false);
|
|
|
|
|
if (lsValue != "NaN") {
|
|
|
|
|
value = lsValue; if (parseFloat(lsValue) < 0) {
|
|
|
|
|
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLNO',
|
|
|
|
|
header: '申请编号',
|
|
|
|
|
width: 140
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLDATE',
|
|
|
|
|
header: '申请日期',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLUSER',
|
|
|
|
|
header: '申请人',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLSTATUSREF',
|
|
|
|
|
header: '业务状态',
|
|
|
|
|
width: 80
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.panelPayShen = new Ext.Panel({
|
|
|
|
|
layout: "border",
|
|
|
|
|
region: "north",
|
|
|
|
|
title: '付费申请',
|
|
|
|
|
height: 100,
|
|
|
|
|
items: [this.gridListPayShen]
|
|
|
|
|
});
|
|
|
|
|
this.storeBodyStl = Ext.create('Ext.data.Store', {
|
|
|
|
|
model: 'Chfee_do_detail',
|
|
|
|
|
remoteSort: true,
|
|
|
|
|
proxy: {
|
|
|
|
|
type: 'ajax',
|
|
|
|
|
url: '/MvcShipping/MsOpBill/GetFeeDoList',
|
|
|
|
|
reader: {
|
|
|
|
|
id: 'FEEDOID',
|
|
|
|
|
root: 'data',
|
|
|
|
|
totalProperty: 'totalCount'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.gridListStl = new Ext.grid.GridPanel({
|
|
|
|
|
store: this.storeBodyStl,
|
|
|
|
|
enableHdMenu: false,
|
|
|
|
|
region: 'center',
|
|
|
|
|
loadMask: { msg: "数据加载中,请稍等..." },
|
|
|
|
|
trackMouseOver: true,
|
|
|
|
|
viewConfig: {
|
|
|
|
|
enableTextSelection: true, //允许复制数据
|
|
|
|
|
autoFill: true
|
|
|
|
|
},
|
|
|
|
|
disableSelection: false,
|
|
|
|
|
columns: [{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'FEEDOID',
|
|
|
|
|
header: 'FEEDOID',
|
|
|
|
|
hidden: true,
|
|
|
|
|
width: 100
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'FEENAME',
|
|
|
|
|
header: '费用名称',
|
|
|
|
|
width: 120
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CUSTOMERNAME',
|
|
|
|
|
header: '客户名称',
|
|
|
|
|
width: 100
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CURRENCY',
|
|
|
|
|
header: '结算币别',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'AMOUNT',
|
|
|
|
|
header: '结算金额',
|
|
|
|
|
width: 80,
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
try {
|
|
|
|
|
var lsValue = usMoney(value, 2, '', false);
|
|
|
|
|
if (lsValue != "NaN") {
|
|
|
|
|
value = lsValue; if (parseFloat(lsValue) < 0) {
|
|
|
|
|
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'ORIGAMOUNT',
|
|
|
|
|
header: '原始金额',
|
|
|
|
|
width: 80,
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
try {
|
|
|
|
|
var lsValue = usMoney(value, 2, '', false);
|
|
|
|
|
if (lsValue != "NaN") {
|
|
|
|
|
value = lsValue; if (parseFloat(lsValue) < 0) {
|
|
|
|
|
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLNO',
|
|
|
|
|
header: '结算编号',
|
|
|
|
|
width: 140
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLDATE',
|
|
|
|
|
header: '结算日期',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLUSER',
|
|
|
|
|
header: '结算人',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'SETTLETYPEREF',
|
|
|
|
|
header: '结算方式',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLSTATUSREF',
|
|
|
|
|
header: '业务状态',
|
|
|
|
|
width: 80
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.panelStl = new Ext.Panel({
|
|
|
|
|
layout: "border",
|
|
|
|
|
title: '结算信息',
|
|
|
|
|
region: "north",
|
|
|
|
|
height: 100,
|
|
|
|
|
items: [this.gridListStl]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.panelpage1 = new Ext.Panel({
|
|
|
|
|
title: '费用结算信息',
|
|
|
|
|
layout: "border",
|
|
|
|
|
region: 'center',
|
|
|
|
|
animate: true,
|
|
|
|
|
autoScroll: true,
|
|
|
|
|
containerScroll: true,
|
|
|
|
|
frame: false,
|
|
|
|
|
items: [this.panelStl, this.panelPayShen, this.panelRecShen]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.storeBodyInv = Ext.create('Ext.data.Store', {
|
|
|
|
|
model: 'Chfee_do_detail',
|
|
|
|
|
remoteSort: true,
|
|
|
|
|
proxy: {
|
|
|
|
|
type: 'ajax',
|
|
|
|
|
url: '/MvcShipping/MsOpBill/GetFeeDoList',
|
|
|
|
|
reader: {
|
|
|
|
|
id: 'FEEDOID',
|
|
|
|
|
root: 'data',
|
|
|
|
|
totalProperty: 'totalCount'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.gridListInv = new Ext.grid.GridPanel({
|
|
|
|
|
store: this.storeBodyInv,
|
|
|
|
|
enableHdMenu: false,
|
|
|
|
|
region: 'center',
|
|
|
|
|
loadMask: { msg: "数据加载中,请稍等..." },
|
|
|
|
|
trackMouseOver: true,
|
|
|
|
|
viewConfig: {
|
|
|
|
|
enableTextSelection: true, //允许复制数据
|
|
|
|
|
autoFill: true
|
|
|
|
|
},
|
|
|
|
|
disableSelection: false,
|
|
|
|
|
columns: [{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'FEEDOID',
|
|
|
|
|
header: 'FEEDOID',
|
|
|
|
|
hidden: true,
|
|
|
|
|
width: 100
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'FEENAME',
|
|
|
|
|
header: '费用名称',
|
|
|
|
|
width: 120
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CUSTOMERNAME',
|
|
|
|
|
header: '客户名称',
|
|
|
|
|
width: 100
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CURRENCY',
|
|
|
|
|
header: '开票币别',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'AMOUNT',
|
|
|
|
|
header: '开票金额',
|
|
|
|
|
width: 80,
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
try {
|
|
|
|
|
var lsValue = usMoney(value, 2, '', false);
|
|
|
|
|
if (lsValue != "NaN") {
|
|
|
|
|
value = lsValue; if (parseFloat(lsValue) < 0) {
|
|
|
|
|
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'ORIGAMOUNT',
|
|
|
|
|
header: '原始金额',
|
|
|
|
|
width: 80,
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
try {
|
|
|
|
|
var lsValue = usMoney(value, 2, '', false);
|
|
|
|
|
if (lsValue != "NaN") {
|
|
|
|
|
value = lsValue; if (parseFloat(lsValue) < 0) {
|
|
|
|
|
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLNO',
|
|
|
|
|
header: '发票编号',
|
|
|
|
|
width: 140
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'INVNO',
|
|
|
|
|
header: '发票号',
|
|
|
|
|
width: 120
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLDATE',
|
|
|
|
|
header: '开票日期',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLUSER',
|
|
|
|
|
header: '申请人',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CREATEUSER',
|
|
|
|
|
header: '开票人',
|
|
|
|
|
width: 80
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.panelInv = new Ext.Panel({
|
|
|
|
|
layout: "border",
|
|
|
|
|
region: "north",
|
|
|
|
|
title: '发票信息',
|
|
|
|
|
height: 100,
|
|
|
|
|
items: [this.gridListInv]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.storeBodyInvShen = Ext.create('Ext.data.Store', {
|
|
|
|
|
model: 'Chfee_do_detail',
|
|
|
|
|
remoteSort: true,
|
|
|
|
|
proxy: {
|
|
|
|
|
type: 'ajax',
|
|
|
|
|
url: '/MvcShipping/MsOpBill/GetFeeDoList',
|
|
|
|
|
reader: {
|
|
|
|
|
id: 'FEEDOID',
|
|
|
|
|
root: 'data',
|
|
|
|
|
totalProperty: 'totalCount'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.gridListInvShen = new Ext.grid.GridPanel({
|
|
|
|
|
store: this.storeBodyInvShen,
|
|
|
|
|
enableHdMenu: false,
|
|
|
|
|
region: 'center',
|
|
|
|
|
loadMask: { msg: "数据加载中,请稍等..." },
|
|
|
|
|
trackMouseOver: true,
|
|
|
|
|
viewConfig: {
|
|
|
|
|
enableTextSelection: true, //允许复制数据
|
|
|
|
|
autoFill: true
|
|
|
|
|
},
|
|
|
|
|
disableSelection: false,
|
|
|
|
|
columns: [{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'FEEDOID',
|
|
|
|
|
header: 'FEEDOID',
|
|
|
|
|
hidden: true,
|
|
|
|
|
width: 100
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'FEENAME',
|
|
|
|
|
header: '费用名称',
|
|
|
|
|
width: 120
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CUSTOMERNAME',
|
|
|
|
|
header: '客户名称',
|
|
|
|
|
width: 100
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CURRENCY',
|
|
|
|
|
header: '申请币别',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'AMOUNT',
|
|
|
|
|
header: '申请金额',
|
|
|
|
|
width: 80,
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
try {
|
|
|
|
|
var lsValue = usMoney(value, 2, '', false);
|
|
|
|
|
if (lsValue != "NaN") {
|
|
|
|
|
value = lsValue; if (parseFloat(lsValue) < 0) {
|
|
|
|
|
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'ORIGAMOUNT',
|
|
|
|
|
header: '原始金额',
|
|
|
|
|
width: 80,
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
try {
|
|
|
|
|
var lsValue = usMoney(value, 2, '', false);
|
|
|
|
|
if (lsValue != "NaN") {
|
|
|
|
|
value = lsValue; if (parseFloat(lsValue) < 0) {
|
|
|
|
|
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLNO',
|
|
|
|
|
header: '申请编号',
|
|
|
|
|
width: 140
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLDATE',
|
|
|
|
|
header: '申请日期',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLUSER',
|
|
|
|
|
header: '申请人',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLSTATUSREF',
|
|
|
|
|
header: '业务状态',
|
|
|
|
|
width: 80
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.panelInvShen = new Ext.Panel({
|
|
|
|
|
layout: "border",
|
|
|
|
|
region: "north",
|
|
|
|
|
title: '发票申请',
|
|
|
|
|
height: 100,
|
|
|
|
|
items: [this.gridListInvShen]
|
|
|
|
|
});
|
|
|
|
|
this.storeBodyInvStl = Ext.create('Ext.data.Store', {
|
|
|
|
|
model: 'Chfee_do_detail',
|
|
|
|
|
remoteSort: true,
|
|
|
|
|
proxy: {
|
|
|
|
|
type: 'ajax',
|
|
|
|
|
url: '/MvcShipping/MsOpBill/GetInvHXFeeDoList',
|
|
|
|
|
reader: {
|
|
|
|
|
id: 'FEEDOID',
|
|
|
|
|
root: 'data',
|
|
|
|
|
totalProperty: 'totalCount'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.gridListInvStl = new Ext.grid.GridPanel({
|
|
|
|
|
store: this.storeBodyInvStl,
|
|
|
|
|
enableHdMenu: false,
|
|
|
|
|
region: 'center',
|
|
|
|
|
loadMask: { msg: "数据加载中,请稍等..." },
|
|
|
|
|
trackMouseOver: true,
|
|
|
|
|
viewConfig: {
|
|
|
|
|
enableTextSelection: true, //允许复制数据
|
|
|
|
|
autoFill: true
|
|
|
|
|
},
|
|
|
|
|
disableSelection: false,
|
|
|
|
|
columns: [{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'FEEDOID',
|
|
|
|
|
header: 'FEEDOID',
|
|
|
|
|
hidden: true,
|
|
|
|
|
width: 100
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'FEENAME',
|
|
|
|
|
header: '费用名称',
|
|
|
|
|
width: 120
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CUSTOMERNAME',
|
|
|
|
|
header: '客户名称',
|
|
|
|
|
width: 100
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CURRENCY',
|
|
|
|
|
header: '结算币别',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'AMOUNT',
|
|
|
|
|
header: '结算金额',
|
|
|
|
|
width: 80,
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
try {
|
|
|
|
|
var lsValue = usMoney(value, 2, '', false);
|
|
|
|
|
if (lsValue != "NaN") {
|
|
|
|
|
value = lsValue; if (parseFloat(lsValue) < 0) {
|
|
|
|
|
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'ORIGAMOUNT',
|
|
|
|
|
header: '原始金额',
|
|
|
|
|
width: 80,
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
try {
|
|
|
|
|
var lsValue = usMoney(value, 2, '', false);
|
|
|
|
|
if (lsValue != "NaN") {
|
|
|
|
|
value = lsValue; if (parseFloat(lsValue) < 0) {
|
|
|
|
|
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLNO',
|
|
|
|
|
header: '核销编号',
|
|
|
|
|
width: 140
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'INVNO',
|
|
|
|
|
header: '发票号',
|
|
|
|
|
width: 120
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLDATE',
|
|
|
|
|
header: '核销日期',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLUSER',
|
|
|
|
|
header: '核销人',
|
|
|
|
|
width: 80
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.panelInvStl = new Ext.Panel({
|
|
|
|
|
layout: "border",
|
|
|
|
|
title: '发票核销',
|
|
|
|
|
region: "north",
|
|
|
|
|
height:100,
|
|
|
|
|
items: [this.gridListInvStl]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.storeBodyDui = Ext.create('Ext.data.Store', {
|
|
|
|
|
model: 'MsChDui',
|
|
|
|
|
pageSize: this.PageSize,
|
|
|
|
|
remoteSort: true,
|
|
|
|
|
proxy: {
|
|
|
|
|
type: 'ajax',
|
|
|
|
|
url: '/MvcShipping/MsChDui/GetDataList',
|
|
|
|
|
reader: {
|
|
|
|
|
id: 'DUINO',
|
|
|
|
|
root: 'data',
|
|
|
|
|
totalProperty: 'totalCount'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.gridListDui = new Ext.grid.GridPanel({
|
|
|
|
|
store: this.storeBodyDui,
|
|
|
|
|
enableHdMenu: false,
|
|
|
|
|
region: 'center',
|
|
|
|
|
loadMask: { msg: "数据加载中,请稍等..." },
|
|
|
|
|
trackMouseOver: true,
|
|
|
|
|
disableSelection: false,
|
|
|
|
|
viewConfig: {
|
|
|
|
|
enableTextSelection: true, //允许复制数据
|
|
|
|
|
autoFill: true
|
|
|
|
|
},
|
|
|
|
|
columns: [{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'DUINO',
|
|
|
|
|
header: '对账编号',
|
|
|
|
|
width: 120
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CUSTNAME',
|
|
|
|
|
header: '客户名称',
|
|
|
|
|
width: 160
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'DUIDATE',
|
|
|
|
|
header: '对账日期',
|
|
|
|
|
width: 160
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'OP',
|
|
|
|
|
header: '对账人',
|
|
|
|
|
width: 160
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BILLSTATUSREF',
|
|
|
|
|
header: '状态',
|
|
|
|
|
width: 60
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'DUINAME',
|
|
|
|
|
header: '账单描述',
|
|
|
|
|
width: 160
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'REMARK',
|
|
|
|
|
header: '说明',
|
|
|
|
|
width: 160
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.panelDui = new Ext.Panel({
|
|
|
|
|
layout: "border",
|
|
|
|
|
title: '对账信息',
|
|
|
|
|
region: "north",
|
|
|
|
|
height: 100,
|
|
|
|
|
items: [this.gridListDui]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.panelpage2 = new Ext.Panel({
|
|
|
|
|
title: '发票和对账信息',
|
|
|
|
|
layout: "border",
|
|
|
|
|
region: 'center',
|
|
|
|
|
animate: true,
|
|
|
|
|
autoScroll: true,
|
|
|
|
|
containerScroll: true,
|
|
|
|
|
frame: false,
|
|
|
|
|
items: [this.panelInv, this.panelInvShen, this.panelInvStl, this.panelDui]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.storeChFeeModify = Ext.create('Ext.data.Store', {
|
|
|
|
|
model: 'MsChFee',
|
|
|
|
|
remoteSort: false,
|
|
|
|
|
proxy: {
|
|
|
|
|
type: 'ajax',
|
|
|
|
|
url: '/MvcShipping/MsChFee/GetModifyList',
|
|
|
|
|
reader: {
|
|
|
|
|
id: 'GId',
|
|
|
|
|
root: 'data',
|
|
|
|
|
totalProperty: 'totalCount'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.gridChFeeModify = new Ext.grid.GridPanel({
|
|
|
|
|
store: this.storeChFeeModify,
|
|
|
|
|
enableHdMenu: false,
|
|
|
|
|
region: 'center',
|
|
|
|
|
loadMask: { msg: "数据加载中,请稍等..." },
|
|
|
|
|
trackMouseOver: true,
|
|
|
|
|
disableSelection: false,
|
|
|
|
|
//viewConfig: {
|
|
|
|
|
// autoFill: true,
|
|
|
|
|
// getRowClass: function (record, rowIndex, rowParams, store) {
|
|
|
|
|
// var feeStatus = record.get('FeeStatus');
|
|
|
|
|
// return Shipping.FeeGetRowClass(feeStatus);
|
|
|
|
|
// }
|
|
|
|
|
//},
|
|
|
|
|
columns: [{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'GId',
|
|
|
|
|
header: '惟一编号',
|
|
|
|
|
hidden: true,
|
|
|
|
|
width: 160
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BsNo',
|
|
|
|
|
header: '业务编号',
|
|
|
|
|
hidden: true,
|
|
|
|
|
width: 200
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'FeeStatus_Ref',
|
|
|
|
|
header: '申请类型',
|
|
|
|
|
width: 66
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'Reason',
|
|
|
|
|
header: '申请原因',
|
|
|
|
|
width: 100
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'FeeName',
|
|
|
|
|
header: '应收费用名称',
|
|
|
|
|
width: 100
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CustomerType',
|
|
|
|
|
header: '客户类别',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CustomerName',
|
|
|
|
|
header: '结算对象',
|
|
|
|
|
width: 120
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'Unit',
|
|
|
|
|
header: '单位标准',
|
|
|
|
|
width: 60
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'UnitPrice',
|
|
|
|
|
header: '单价',
|
|
|
|
|
align: 'right',
|
|
|
|
|
width: 80,
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
try {
|
|
|
|
|
var lsValue = usMoney(value, 2, '', false);
|
|
|
|
|
if (lsValue != "NaN") {
|
|
|
|
|
value = lsValue; if (parseFloat(lsValue) < 0) {
|
|
|
|
|
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'Quantity',
|
|
|
|
|
header: '数量',
|
|
|
|
|
width: 60
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'TaxRate',
|
|
|
|
|
header: '税率',
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) { try { var lsValue = usMoney(value, 2, '', false); if (lsValue != "NaN") { value = lsValue; if (parseFloat(lsValue) < 0) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>'; } } else { return value; } } catch (e) { return value; } return value; },
|
|
|
|
|
align: 'right',
|
|
|
|
|
width: 60
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'NoTaxAmount',
|
|
|
|
|
header: '不含税金额',
|
|
|
|
|
align: 'right',
|
|
|
|
|
width: 80,
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
try {
|
|
|
|
|
var lsValue = usMoney(value, 2, '', false);
|
|
|
|
|
if (lsValue != "NaN") {
|
|
|
|
|
value = lsValue; if (parseFloat(lsValue) < 0) {
|
|
|
|
|
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'Amount',
|
|
|
|
|
header: '金额',
|
|
|
|
|
align: 'right',
|
|
|
|
|
width: 80,
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
try {
|
|
|
|
|
var lsValue = usMoney(value, 2, '', false);
|
|
|
|
|
if (lsValue != "NaN") {
|
|
|
|
|
value = lsValue; if (parseFloat(lsValue) < 0) {
|
|
|
|
|
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'Currency',
|
|
|
|
|
header: '币别',
|
|
|
|
|
width: 40
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'ExChangerate',
|
|
|
|
|
header: '汇率',
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) { try { var lsValue = usMoney(value, 6, '', false); if (lsValue != "NaN") { value = lsValue; if (parseFloat(lsValue) < 0) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>'; } } else { return value; } } catch (e) { return value; } return value; },
|
|
|
|
|
align: 'right',
|
|
|
|
|
width: 60
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'AccTaxRate',
|
|
|
|
|
header: '进项税率',
|
|
|
|
|
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) { try { var lsValue = usMoney(value, 2, '', false); if (lsValue != "NaN") { value = lsValue; if (parseFloat(lsValue) < 0) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>'; } } else { return value; } } catch (e) { return value; } return value; },
|
|
|
|
|
align: 'right',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'Remark',
|
|
|
|
|
header: '备注',
|
|
|
|
|
width: 150
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'IsAdvancedpay',
|
|
|
|
|
header: '是否垫付',
|
|
|
|
|
width: 60
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'FeeFrt',
|
|
|
|
|
header: 'FRT',
|
|
|
|
|
width: 40
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'Commissionrate',
|
|
|
|
|
header: '佣金比率',
|
|
|
|
|
width: 60
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'EnteroPerator',
|
|
|
|
|
header: '申请人',
|
|
|
|
|
width: 60
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'EnterDate',
|
|
|
|
|
header: '申请日期',
|
|
|
|
|
renderer: Ext.util.Format.dateRenderer('Y-m-d'),
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'Auditoperator',
|
|
|
|
|
header: '审核人',
|
|
|
|
|
width: 60
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'AuditDate',
|
|
|
|
|
header: '审核日期',
|
|
|
|
|
renderer: Ext.util.Format.dateRenderer('Y-m-d'),
|
|
|
|
|
width: 80
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.panelpage3 = new Ext.Panel({
|
|
|
|
|
title: '申请修改和删除',
|
|
|
|
|
layout: "border",
|
|
|
|
|
region: 'center',
|
|
|
|
|
animate: true,
|
|
|
|
|
autoScroll: true,
|
|
|
|
|
containerScroll: true,
|
|
|
|
|
frame: false,
|
|
|
|
|
items: [this.gridChFeeModify]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.gridDrChFee.getSelectionModel().on('select', function (model, record, index) {
|
|
|
|
|
var GId = record.data.GId;
|
|
|
|
|
var condition = " FEEID='" + GId + "'";
|
|
|
|
|
this.storeBodyRecShen.load({ params: { condition: condition, dotype: "5"} });
|
|
|
|
|
this.storeBodyPayShen.load({ params: { condition: condition, dotype: "4"} });
|
|
|
|
|
this.storeBodyStl.load({ params: { condition: condition, dotype: "1"} });
|
|
|
|
|
this.storeBodyInv.load({ params: { condition: condition, dotype: "7"} });
|
|
|
|
|
this.storeBodyInvShen.load({ params: { condition: condition, dotype: "6"} });
|
|
|
|
|
this.storeBodyInvStl.load({ params: { condition: condition} });
|
|
|
|
|
this.storeBodyDui.load({ params: { condition: " EXISTS (SELECT 1 FROM v_dui_fee z WHERE z.DUINO=ch_dui.DUINO AND z.GID='" + GId + "') "} });
|
|
|
|
|
this.storeChFeeModify.load({ params: { FeeID: GId } });
|
|
|
|
|
|
|
|
|
|
}, this);
|
|
|
|
|
|
|
|
|
|
this.tabpanel = new Ext.TabPanel
|
|
|
|
|
({
|
|
|
|
|
activeTab: 0,
|
|
|
|
|
autoWidth: true,
|
|
|
|
|
border: false,
|
|
|
|
|
frame: false,
|
|
|
|
|
region: 'center',
|
|
|
|
|
id: "TabPanelID",
|
|
|
|
|
enableTabScroll: true,
|
|
|
|
|
items:
|
|
|
|
|
[
|
|
|
|
|
this.panelpage1,
|
|
|
|
|
this.panelpage2,
|
|
|
|
|
this.panelpage3
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Ext.apply(this, {
|
|
|
|
|
items: [this.panelTop, this.tabpanel]
|
|
|
|
|
});
|
|
|
|
|
this.storeDrChFee.load({ params: { billno: this.bsno, type: this.feetype, optype: this.oplb} });
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|