You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
165 lines
5.9 KiB
JavaScript
165 lines
5.9 KiB
JavaScript
Ext.namespace('Shipping');
|
|
|
|
Shipping.TruckBulkFee = function (config) {
|
|
Ext.applyIf(this, config);
|
|
this.initUIComponents();
|
|
window.Shipping.TruckBulkFee.superclass.constructor.call(this);
|
|
};
|
|
|
|
|
|
Ext.extend(Shipping.TruckBulkFee, Ext.Panel, {
|
|
ParentWin: null,
|
|
OpStatus: 'add',
|
|
StoreList: null,
|
|
EditRecord: null,
|
|
region: 'north',
|
|
|
|
initUIComponents: function () {
|
|
//枚举参照相关
|
|
//var mainform = window.parent._this;// Ext.getCmp('OpOtherEdit');
|
|
var mainform = Ext.getCmp('OpTruckBulkEdit');
|
|
if (mainform == NaN || mainform == null) mainform = Ext.getCmp('OpTruckBulkCtnEdit');
|
|
if (mainform == NaN || mainform == null) mainform = Ext.getCmp('OpTruckBulkPcEdit');
|
|
if (mainform == NaN || mainform == null) mainform = Ext.getCmp('OpTruckBulkCtnPcEdit');
|
|
EditRecord = mainform.editRecord;
|
|
this.BSNO = EditRecord.get('BSNO');
|
|
this.formHead = Ext.widget('form', {
|
|
id: 'FeeHeadOther',
|
|
region: 'center',
|
|
frame: true,
|
|
bodyPadding: 5,
|
|
trackResetOnLoad: true,
|
|
fieldDefaults: {
|
|
margins: '2 2 2 2',
|
|
labelAlign: 'right',
|
|
flex: 1,
|
|
labelWidth: 60,
|
|
msgTarget: 'qtip'
|
|
},
|
|
items: [{
|
|
xtype: 'container',
|
|
layout: 'hbox',
|
|
defaultType: 'textfield',
|
|
items: [{
|
|
fieldLabel: '业务编号',
|
|
name: 'BSNO', flex: 0, hidden: true, margins: '0'
|
|
}, {
|
|
fieldLabel: '委托编号',
|
|
readOnly: true,
|
|
name: 'CUSTNO'
|
|
}, {
|
|
fieldLabel: '业务锁定',
|
|
readOnly: true,
|
|
name: 'BSSTATUSREF'
|
|
}, {
|
|
fieldLabel: '费用锁定',
|
|
readOnly: true,
|
|
name: 'FEESTATUSREF'
|
|
}, {
|
|
fieldLabel: '会计期间',
|
|
readOnly: true,
|
|
name: 'ACCDATE'
|
|
//xtype: 'monthfield',
|
|
//value: Ext.util.Format.date(Ext.Date.add(new Date(), Ext.Date.MONTH - 1, 1), "Y-m"),
|
|
}, {
|
|
fieldLabel: '委托单位',
|
|
readOnly: true,
|
|
name: 'CUSTOMERNAME'
|
|
}]
|
|
}, {
|
|
xtype: 'container',
|
|
layout: 'hbox',
|
|
defaultType: 'textfield',
|
|
items: [ {
|
|
fieldLabel: '合同号',
|
|
readOnly: true,
|
|
name: 'CONTRACTNO'
|
|
}, {
|
|
fieldLabel: '计费方案',
|
|
readOnly: true,
|
|
name: 'TEMPLATENAME'
|
|
}, {
|
|
fieldLabel: '客户经理',
|
|
readOnly: true,
|
|
name: 'SALE'
|
|
}, {
|
|
fieldLabel: '操 作',
|
|
readOnly: true,
|
|
name: 'OP'
|
|
}, {
|
|
fieldLabel: '运营经理',
|
|
readOnly: true,
|
|
name: 'CUSTSERVICE'
|
|
}]
|
|
}, {
|
|
xtype: 'container',
|
|
layout: 'hbox',
|
|
defaultType: 'textfield',
|
|
items: [{
|
|
fieldLabel: '品名',
|
|
readOnly: true,
|
|
name: 'GOODSNAME'
|
|
}, {
|
|
fieldLabel: '件数',
|
|
readOnly: true,
|
|
name: 'PKGS'
|
|
}, {
|
|
fieldLabel: '毛量',
|
|
readOnly: true,
|
|
name: 'KGS'
|
|
}, {
|
|
fieldLabel: '尺码',
|
|
readOnly: true,
|
|
name: 'CBM'
|
|
}]
|
|
}]//end items(fieldset 1)
|
|
}); //end this.formEdit
|
|
this.formHead.getForm().loadRecord(EditRecord);
|
|
|
|
this.panelTop = new Ext.Panel({
|
|
layout: "border",
|
|
region: "north",
|
|
height: 100,
|
|
id: "BillHeadOther",
|
|
items: [this.formHead]
|
|
});
|
|
|
|
this.panelFee = new Shipping.FeeEditGrid({
|
|
region: 'center',
|
|
layout: 'border'
|
|
});
|
|
|
|
this.panelFee.EditRecord = EditRecord;
|
|
this.panelFee.stroplb = 'op_truckbulk';
|
|
this.panelFee.strBSNO = EditRecord.get('BSNO');
|
|
this.panelFee.strMBLNO = EditRecord.get('CUSTNO');
|
|
this.panelFee.StoreCustType.add({ "SCUSTTYPE": "WTDW-委托单位", "CUSTTYPE": "委托单位", "CUSTNAME": "CUSTOMERNAME" });
|
|
|
|
|
|
this.panelFee.StoreDrOpRange.load({ params: { optype: "modTruckRecvFeeManagement" } });
|
|
this.panelFee.StoreCrOpRange.load({ params: { optype: "modTruckPayFeeManagement" } });
|
|
this.panelFee.StoreUnit.load({ params: { BSNO: this.BSNO, bstype: "op_truckbulk" } });
|
|
|
|
this.panelFee.storeFeeNameRef.load({ params: { condition: ""} });
|
|
this.panelFee.StoreDateCurr.load({ params: { optype: "op_truckbulk", BSNO: this.BSNO } });
|
|
|
|
this.panelFee.storeDrChFee.load({ params: { billno: this.BSNO, type: 1, optype: "op_truckbulk" } });
|
|
this.panelFee.storeCrChFee.load({ params: { billno: this.BSNO, type: 2, optype: "op_truckbulk" } });
|
|
|
|
this.panelFee.storeBodySum.load({
|
|
params: { bsno: this.BSNO, optype: "op_truckbulk" },
|
|
callback: function (r, options, success) {
|
|
if (success) {
|
|
_thisfee.setTotalHead();
|
|
}
|
|
}
|
|
});
|
|
this.panelFee.storeChFeeGain.load({ params: { bsno: this.BSNO, optype: "op_truckbulk" } });
|
|
|
|
Ext.apply(this, {
|
|
items: [this.panelTop, this.panelFee]
|
|
});
|
|
}
|
|
});
|
|
|