|
|
|
@ -249,7 +249,7 @@ Ext.extend(Shipping.MsChRecvapplicationBLEdit, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
items: [
|
|
|
|
|
{//fieldset 1
|
|
|
|
|
xtype: 'fieldset',
|
|
|
|
|
xtype: 'container',//fieldset
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
layout: 'anchor',
|
|
|
|
|
defaults: {
|
|
|
|
@ -759,7 +759,16 @@ Ext.extend(Shipping.MsChRecvapplicationBLEdit, Ext.Panel, {
|
|
|
|
|
}
|
|
|
|
|
}],
|
|
|
|
|
scope: this
|
|
|
|
|
}],
|
|
|
|
|
}
|
|
|
|
|
, '-', {
|
|
|
|
|
text: "查看仓储费明细",
|
|
|
|
|
//iconCls: "btnreturn",
|
|
|
|
|
handler: function (button, event) {
|
|
|
|
|
this.ShowCCFDetail();
|
|
|
|
|
},
|
|
|
|
|
scope: this
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
columns: this.girdbillcolums
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -1412,6 +1421,7 @@ Ext.extend(Shipping.MsChRecvapplicationBLEdit, Ext.Panel, {
|
|
|
|
|
queryMode: 'remote',
|
|
|
|
|
forceSelection: true,
|
|
|
|
|
minChars: 1,
|
|
|
|
|
flex:1,
|
|
|
|
|
queryParam: 'CODENAME',
|
|
|
|
|
name: 'CUSTNAME',
|
|
|
|
|
valueField: 'CustName',
|
|
|
|
@ -1586,6 +1596,23 @@ Ext.extend(Shipping.MsChRecvapplicationBLEdit, Ext.Panel, {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.StoreFeeINPUTMODE = Ext.create('Ext.data.Store', {
|
|
|
|
|
fields: ['Frt']
|
|
|
|
|
});
|
|
|
|
|
this.StoreFeeINPUTMODE.add({ "Frt": "月结" });
|
|
|
|
|
this.StoreFeeINPUTMODE.add({ "Frt": "现结" });
|
|
|
|
|
|
|
|
|
|
this.comboxFeeINPUTMODE = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
fieldLabel: '结算账期',
|
|
|
|
|
flex: 1,
|
|
|
|
|
store: this.StoreFeeINPUTMODE,
|
|
|
|
|
forceSelection: true,
|
|
|
|
|
name: 'INPUTMODE',
|
|
|
|
|
valueField: 'Frt',
|
|
|
|
|
displayField: 'Frt'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1691,12 +1718,14 @@ Ext.extend(Shipping.MsChRecvapplicationBLEdit, Ext.Panel, {
|
|
|
|
|
scope: this
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}, {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
items: [this.comboxaddDCType, this.comboxCurr2, this.comboxFeeNameRef, {
|
|
|
|
|
fieldLabel: '会计期间',
|
|
|
|
|
fieldLabel: '从..会计期间',
|
|
|
|
|
xtype: 'monthfield',
|
|
|
|
|
name: 'ACCDATEFR',
|
|
|
|
|
enableKeyEvents: true,
|
|
|
|
@ -1708,7 +1737,7 @@ Ext.extend(Shipping.MsChRecvapplicationBLEdit, Ext.Panel, {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
fieldLabel: '会计期间',
|
|
|
|
|
fieldLabel: '到..会计期间',
|
|
|
|
|
xtype: 'monthfield',
|
|
|
|
|
name: 'ACCDATETO',
|
|
|
|
|
enableKeyEvents: true,
|
|
|
|
@ -1742,6 +1771,100 @@ Ext.extend(Shipping.MsChRecvapplicationBLEdit, Ext.Panel, {
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
items: [
|
|
|
|
|
this.comboxFeeINPUTMODE
|
|
|
|
|
//, {
|
|
|
|
|
// fieldLabel: '1',
|
|
|
|
|
// name: 'DuiNo',
|
|
|
|
|
// enableKeyEvents: true,
|
|
|
|
|
// listeners: {
|
|
|
|
|
// specialkey: function (field, e) {
|
|
|
|
|
// if (e.getKey() == e.ENTER) {
|
|
|
|
|
// _this.onRefreshClick();
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
//, {
|
|
|
|
|
// fieldLabel: '2',
|
|
|
|
|
// name: 'DuiNo',
|
|
|
|
|
// enableKeyEvents: true,
|
|
|
|
|
// listeners: {
|
|
|
|
|
// specialkey: function (field, e) {
|
|
|
|
|
// if (e.getKey() == e.ENTER) {
|
|
|
|
|
// _this.onRefreshClick();
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
//, {
|
|
|
|
|
// fieldLabel: '3',
|
|
|
|
|
// name: 'DuiNo',
|
|
|
|
|
// enableKeyEvents: true,
|
|
|
|
|
// listeners: {
|
|
|
|
|
// specialkey: function (field, e) {
|
|
|
|
|
// if (e.getKey() == e.ENTER) {
|
|
|
|
|
// _this.onRefreshClick();
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
//, {
|
|
|
|
|
// fieldLabel: '4',
|
|
|
|
|
// name: 'DuiNo',
|
|
|
|
|
// enableKeyEvents: true,
|
|
|
|
|
// listeners: {
|
|
|
|
|
// specialkey: function (field, e) {
|
|
|
|
|
// if (e.getKey() == e.ENTER) {
|
|
|
|
|
// _this.onRefreshClick();
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
//, {
|
|
|
|
|
// fieldLabel: '5',
|
|
|
|
|
// name: 'DuiNo',
|
|
|
|
|
// enableKeyEvents: true,
|
|
|
|
|
// listeners: {
|
|
|
|
|
// specialkey: function (field, e) {
|
|
|
|
|
// if (e.getKey() == e.ENTER) {
|
|
|
|
|
// _this.onRefreshClick();
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
, {
|
|
|
|
|
xtype: 'hiddenfield',
|
|
|
|
|
flex: 1
|
|
|
|
|
}
|
|
|
|
|
, {
|
|
|
|
|
xtype: 'hiddenfield',
|
|
|
|
|
flex: 1
|
|
|
|
|
}
|
|
|
|
|
, {
|
|
|
|
|
xtype: 'hiddenfield',
|
|
|
|
|
flex: 1
|
|
|
|
|
}
|
|
|
|
|
, {
|
|
|
|
|
xtype: 'hiddenfield',
|
|
|
|
|
flex: 1
|
|
|
|
|
}
|
|
|
|
|
, {
|
|
|
|
|
xtype: 'hiddenfield',
|
|
|
|
|
flex: 1
|
|
|
|
|
}
|
|
|
|
|
, {
|
|
|
|
|
xtype: 'label',
|
|
|
|
|
width: 60,
|
|
|
|
|
text: ""
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]//end items(fieldset 1)
|
|
|
|
|
}//end fieldset 1
|
|
|
|
|
]//end root items
|
|
|
|
@ -1832,7 +1955,7 @@ Ext.extend(Shipping.MsChRecvapplicationBLEdit, Ext.Panel, {
|
|
|
|
|
this.panelTop = new Ext.Panel({
|
|
|
|
|
layout: "border",
|
|
|
|
|
region: "north",
|
|
|
|
|
height: 160,
|
|
|
|
|
height: 150,
|
|
|
|
|
items: [this.panelBtn, this.formEdit]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -2251,7 +2374,109 @@ Ext.extend(Shipping.MsChRecvapplicationBLEdit, Ext.Panel, {
|
|
|
|
|
this.deleteBill();
|
|
|
|
|
}, //end onAddDetailClick
|
|
|
|
|
|
|
|
|
|
ShowCCFDetail: function () {
|
|
|
|
|
|
|
|
|
|
//20231220 查看选中的仓储费明细
|
|
|
|
|
|
|
|
|
|
//var selectedRecords = this.gridListdetail.selModel.getSelection();
|
|
|
|
|
var selectedRecords = this.gridList.selModel.getSelection();
|
|
|
|
|
if (selectedRecords.length > 0) {
|
|
|
|
|
var rec = selectedRecords[0];
|
|
|
|
|
|
|
|
|
|
var GID = rec.data.FEEID;
|
|
|
|
|
title = "仓储费明细[" + rec.data.MBLNO + "]";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
model = Ext.define('OP_WMS_FEEDUI_STORAGE_WUTONGDETAIL_md', {
|
|
|
|
|
extend: 'Ext.data.Model',
|
|
|
|
|
idProperty: 'GID',
|
|
|
|
|
fields: [
|
|
|
|
|
{ name: 'GID', type: 'string' },
|
|
|
|
|
{ name: 'FEEDATE', type: 'string' },
|
|
|
|
|
{ name: 'QICHU', type: 'string' },
|
|
|
|
|
{ name: 'JINHUO', type: 'string' },
|
|
|
|
|
{ name: 'CHUHUO', type: 'string' },
|
|
|
|
|
{ name: 'JIECUN', type: 'string' },
|
|
|
|
|
{ name: 'STORAGEUNITCOUNT', type: 'decimal' },
|
|
|
|
|
{ name: 'PRICE', type: 'string' },
|
|
|
|
|
{ name: 'AMOUNT', type: 'decimal' },
|
|
|
|
|
{ name: 'INDATE', type: 'string' },
|
|
|
|
|
{ name: 'DAYS', type: 'string' }
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
proxyUrl = '/MvcShipping/MsOpBill/GetCCFDetail';
|
|
|
|
|
|
|
|
|
|
condition = GID;
|
|
|
|
|
|
|
|
|
|
columns = [
|
|
|
|
|
{
|
|
|
|
|
sortable: true, hidden: true,
|
|
|
|
|
dataIndex: 'GID',
|
|
|
|
|
header: 'GID',
|
|
|
|
|
width: 120
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'FEEDATE',
|
|
|
|
|
header: '费用日期',
|
|
|
|
|
width: 120
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'QICHU',
|
|
|
|
|
header: '期初',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'JINHUO',
|
|
|
|
|
header: '进货',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
dataIndex: 'CHUHUO',
|
|
|
|
|
header: '出货',
|
|
|
|
|
width: 90
|
|
|
|
|
}, {
|
|
|
|
|
dataIndex: 'JIECUN',
|
|
|
|
|
header: '结存',
|
|
|
|
|
width: 90
|
|
|
|
|
}, {
|
|
|
|
|
dataIndex: 'PRICE',
|
|
|
|
|
header: '价格',
|
|
|
|
|
width: 90
|
|
|
|
|
}, {
|
|
|
|
|
dataIndex: 'STORAGEUNITCOUNT',
|
|
|
|
|
header: '计费数量',
|
|
|
|
|
summaryType: 'sum',
|
|
|
|
|
summaryRenderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
value = usMoney(value, 6, '', true);
|
|
|
|
|
return value;
|
|
|
|
|
},
|
|
|
|
|
width: 90
|
|
|
|
|
}, {
|
|
|
|
|
dataIndex: 'AMOUNT',
|
|
|
|
|
header: '金额',
|
|
|
|
|
summaryType: 'sum',
|
|
|
|
|
summaryRenderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
|
|
|
|
|
value = usMoney(value, 2, '', true);
|
|
|
|
|
return value;
|
|
|
|
|
},
|
|
|
|
|
width: 90
|
|
|
|
|
}, {
|
|
|
|
|
dataIndex: 'INDATE',
|
|
|
|
|
header: '最初入库',
|
|
|
|
|
width: 120
|
|
|
|
|
}, {
|
|
|
|
|
dataIndex: 'DAYS',
|
|
|
|
|
header: '堆存天数',
|
|
|
|
|
width: 90
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
ShowPublicINFO(title, model, proxyUrl, condition, columns, 1000, 700);
|
|
|
|
|
} else {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
gridAddFeeListAfterEdit: function (editor, e, eOpts) {
|
|
|
|
|
//需要自己实现里面的事件
|
|
|
|
|
if (e.value == e.originalValue) return;
|
|
|
|
@ -3283,6 +3508,9 @@ Ext.extend(Shipping.MsChRecvapplicationBLEdit, Ext.Panel, {
|
|
|
|
|
var ACCDATETO = form.findField('ACCDATETO').getRawValue();
|
|
|
|
|
sql = sql + getAndConSql(sql, ACCDATETO, "b.ACCDATE<='" + ACCDATETO + "'");
|
|
|
|
|
|
|
|
|
|
var INPUTMODE = form.findField('INPUTMODE').getRawValue();
|
|
|
|
|
sql = sql + getAndConSql(sql, INPUTMODE, "f.INPUTMODE='" + INPUTMODE + "'");
|
|
|
|
|
|
|
|
|
|
var feesql = ' ';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|