|
|
|
@ -14,7 +14,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
EditRecord: null,
|
|
|
|
|
Editdata: null,
|
|
|
|
|
MainEditRecord: null,
|
|
|
|
|
seaeHeadData:null,
|
|
|
|
|
seaeHeadData: null,
|
|
|
|
|
|
|
|
|
|
initUIComponents: function () {
|
|
|
|
|
|
|
|
|
@ -493,11 +493,11 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
this.comboxCargoid2 = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
store: this.StoreCargoid,
|
|
|
|
|
labelWidth:60,
|
|
|
|
|
labelWidth: 60,
|
|
|
|
|
fieldLabel: "<a><font color='#000000'>货物类型</font></a>",
|
|
|
|
|
forceSelection: true,
|
|
|
|
|
allowBlank: true,
|
|
|
|
|
flex:0.70,
|
|
|
|
|
flex: 0.70,
|
|
|
|
|
//width: 1200,
|
|
|
|
|
name: 'CARGOID',
|
|
|
|
|
valueField: 'EnumValueId',
|
|
|
|
@ -585,7 +585,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
this.comboxPLACERECEIPTID = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
fieldLabel: "收货地", //'装货港',
|
|
|
|
|
hidden:true,
|
|
|
|
|
hidden: true,
|
|
|
|
|
labelWidth: 60,
|
|
|
|
|
store: this.storeCodeLoadport_Order2,
|
|
|
|
|
name: 'PLACERECEIPTID',
|
|
|
|
@ -1065,7 +1065,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
this.comboxPAYABLEAT = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
fieldLabel: Zi.LAN.PAYABLEAT, //'到付地点',
|
|
|
|
|
store: this.storeCodeDisport6,
|
|
|
|
|
id:"comboxPAYABLEAT",
|
|
|
|
|
id: "comboxPAYABLEAT",
|
|
|
|
|
queryMode: 'remote',
|
|
|
|
|
minChars: 2,
|
|
|
|
|
queryParam: 'PORT',
|
|
|
|
@ -1176,6 +1176,78 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.storeISSUETYPE = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
model: 'CODE_BLTYPE',
|
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCodeBLTYPEList' }
|
|
|
|
|
});
|
|
|
|
|
this.storeISSUETYPE.load({ params: { condition: "" } });
|
|
|
|
|
|
|
|
|
|
this.comboxISSUETYPE = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
fieldLabel: Zi.LAN.ISSUETYPE, //'签单方式',
|
|
|
|
|
store: this.storeISSUETYPE,
|
|
|
|
|
forceSelection: true,
|
|
|
|
|
name: 'ISSUETYPE',
|
|
|
|
|
id: 'ISSUETYPE',
|
|
|
|
|
valueField: 'BLTYPE',
|
|
|
|
|
displayField: 'BLTYPE',
|
|
|
|
|
listeners: {
|
|
|
|
|
scope: this,
|
|
|
|
|
'select': function (combo, records, eOpts) {
|
|
|
|
|
if (records.length > 0) {
|
|
|
|
|
if (records[0].data.NOBILL != '') {
|
|
|
|
|
this.formEdit.getForm().findField('NOBILL').setValue(records[0].data.NOBILL);
|
|
|
|
|
this.formEdit.getForm().findField('COPYNOBILL').setValue(records[0].data.COPYNOBILL);
|
|
|
|
|
} else {
|
|
|
|
|
if (combo.value == "正本") {
|
|
|
|
|
this.formEdit.getForm().findField('NOBILL').setValue('THREE');
|
|
|
|
|
this.formEdit.getForm().findField('COPYNOBILL').setValue('ONE');
|
|
|
|
|
} else if (combo.value == "电放") {
|
|
|
|
|
this.formEdit.getForm().findField('NOBILL').setValue('ONE');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.storeCodeGoodsList = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
model: 'DsShipping.ux.CodeGoodsModel',
|
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCodeGoodsList' }
|
|
|
|
|
});
|
|
|
|
|
this.storeCodeGoodsList.load();
|
|
|
|
|
this.comboxGOODSNAME = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
fieldLabel: "中文品名",
|
|
|
|
|
store: this.storeCodeGoodsList,
|
|
|
|
|
labelWidth: 60,
|
|
|
|
|
// forceSelection: true,
|
|
|
|
|
name: 'GOODSNAME',
|
|
|
|
|
valueField: 'GOODNAME',
|
|
|
|
|
displayField: 'CodeAndName'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.comboxGOODCODE = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
store: this.storeCodeGoodsList,
|
|
|
|
|
name: 'HSCODE',
|
|
|
|
|
fieldLabel: Zi.LAN.HSCODE, //'HS编码',
|
|
|
|
|
labelWidth: 45,
|
|
|
|
|
valueField: 'GOODCODE',
|
|
|
|
|
displayField: 'GOODCODE',
|
|
|
|
|
listeners: {
|
|
|
|
|
scope: this,
|
|
|
|
|
'select': function (combo, records, eOpts) {
|
|
|
|
|
if (records.length > 0) {
|
|
|
|
|
var hscode = combo.value;
|
|
|
|
|
if (hscode.length > 6) {
|
|
|
|
|
hscode = hscode.substring(0, 6);
|
|
|
|
|
this.formEdit.getForm().findField('HSCODE').setValue(hscode);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//////////////////////
|
|
|
|
|
|
|
|
|
|
this.formDjyOrder = Ext.widget('form', {
|
|
|
|
@ -1226,7 +1298,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
id: 'formDjyOrder_3',
|
|
|
|
|
hidden:false,
|
|
|
|
|
hidden: false,
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
labelWidth: 60,
|
|
|
|
@ -1238,7 +1310,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
readOnly: true,
|
|
|
|
|
|
|
|
|
|
name: 'CARRIER'
|
|
|
|
|
},{
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'datefield',
|
|
|
|
|
|
|
|
|
|
format: 'Y-m-d',
|
|
|
|
@ -1268,7 +1340,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
labelWidth: 60,
|
|
|
|
|
items: [
|
|
|
|
|
this.comboxPLACERECEIPTID
|
|
|
|
|
,this.comboxPORTLOAD2
|
|
|
|
|
, this.comboxPORTLOAD2
|
|
|
|
|
, this.comboxPORTDISCHARGE2
|
|
|
|
|
, this.comboxDESTINATION2
|
|
|
|
|
|
|
|
|
@ -1282,23 +1354,26 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
labelWidth: 60,
|
|
|
|
|
items: [
|
|
|
|
|
{
|
|
|
|
|
flex: 1,
|
|
|
|
|
xtype: 'label',
|
|
|
|
|
html: '提单类型'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
flex: 1,
|
|
|
|
|
xtype: 'label',
|
|
|
|
|
html: '中文品名'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
flex: 1,
|
|
|
|
|
xtype: 'label',
|
|
|
|
|
html: 'HSCODE'
|
|
|
|
|
},
|
|
|
|
|
this.comboxSERVICE
|
|
|
|
|
, this.comboxMBLFRT
|
|
|
|
|
//{
|
|
|
|
|
// flex: 1,
|
|
|
|
|
// xtype: 'label',
|
|
|
|
|
// html: '签单方式'
|
|
|
|
|
//},
|
|
|
|
|
this.comboxISSUETYPE,
|
|
|
|
|
//{
|
|
|
|
|
// flex: 1,
|
|
|
|
|
// xtype: 'label',
|
|
|
|
|
// html: '中文品名'
|
|
|
|
|
//},
|
|
|
|
|
this.comboxGOODSNAME,
|
|
|
|
|
//{
|
|
|
|
|
// flex: 1,
|
|
|
|
|
// xtype: 'label',
|
|
|
|
|
// html: 'HSCODE'
|
|
|
|
|
//},
|
|
|
|
|
this.comboxGOODCODE,
|
|
|
|
|
this.comboxSERVICE,
|
|
|
|
|
this.comboxMBLFRT
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@ -1617,7 +1692,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
var grid_VesselVoyno = Ext.create('Ext.grid.Panel', {
|
|
|
|
|
region: "center",
|
|
|
|
|
autoWidth:false,
|
|
|
|
|
autoWidth: false,
|
|
|
|
|
store: _this.storeVesselVoyno,
|
|
|
|
|
plugins: [{
|
|
|
|
|
ptype: 'rowexpander',
|
|
|
|
@ -1691,7 +1766,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
}, this);
|
|
|
|
|
|
|
|
|
|
grid_VesselVoyno.view.on('expandBody', function (rowNode, record, expandRow, eOpts) {
|
|
|
|
|
_this.displayInnerGrid(record.get('ID') );
|
|
|
|
|
_this.displayInnerGrid(record.get('ID'));
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
grid_VesselVoyno.view.on('collapsebody', function (rowNode, record, expandRow, eOpts) {
|
|
|
|
@ -1759,8 +1834,8 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.formDjyOrder
|
|
|
|
|
,this.panel_DjyOrderBody
|
|
|
|
|
,this.panelBtn
|
|
|
|
|
, this.panel_DjyOrderBody
|
|
|
|
|
, this.panelBtn
|
|
|
|
|
/////////
|
|
|
|
|
//,this.gridList_OrderCtn
|
|
|
|
|
//, this.gridDocList
|
|
|
|
@ -1770,6 +1845,15 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
|
//装货港
|
|
|
|
|
this.storeCodeLoadport_Order.add({ EDICODE: this.seaeHeadData.PORTLOADID, CodeAndName: this.seaeHeadData.PORTLOAD });
|
|
|
|
|
|
|
|
|
|
//卸货港
|
|
|
|
|
this.storeCodeDisport_Order.add({ EDICODE: this.seaeHeadData.PORTDISCHARGEID, CodeAndName: this.seaeHeadData.PORTDISCHARGE });
|
|
|
|
|
|
|
|
|
|
//目的地
|
|
|
|
|
this.storeCodeDisport_Order2.add({ EDICODE: this.seaeHeadData.DESTINATIONID, CodeAndName: this.seaeHeadData.DESTINATION });
|
|
|
|
|
|
|
|
|
|
this.formDjyOrder.getForm().setValues(this.seaeHeadData);
|
|
|
|
|
|
|
|
|
|
this.LoadData();
|
|
|
|
@ -1921,8 +2005,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DoSendDjyOrder()
|
|
|
|
|
{
|
|
|
|
|
DoSendDjyOrder() {
|
|
|
|
|
me = this;
|
|
|
|
|
|
|
|
|
|
var BSNO = this.seaeHeadData.BSNO;
|
|
|
|
@ -1998,8 +2081,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
{
|
|
|
|
|
me.storeDocList.remove(selectedRecords[i]);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
else {
|
|
|
|
|
var feeGId = "" + rec.data.GID + "";
|
|
|
|
|
if (feeGidSql == '') {
|
|
|
|
|
feeGidSql = feeGId;
|
|
|
|
@ -2255,12 +2337,10 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
// checked: false
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
if (this.carrier == "PIL")
|
|
|
|
|
{
|
|
|
|
|
if (this.carrier == "PIL") {
|
|
|
|
|
carriervalue = 'PABV';
|
|
|
|
|
}
|
|
|
|
|
if (this.carrier == "ZIM")
|
|
|
|
|
{
|
|
|
|
|
if (this.carrier == "ZIM") {
|
|
|
|
|
carriervalue = 'ZIMU';
|
|
|
|
|
}
|
|
|
|
|
this.ParentWin.LeYuDingCangSwap(data, bodydatas, FILETYPE, FILEROLE, carriervalue);
|
|
|
|
|