|
|
|
@ -1166,6 +1166,17 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
|
displayField: 'ZHUFEN'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.comboxTRANSPORT = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
fieldLabel: '中转港',
|
|
|
|
|
store: this.storeCodeDisport5,
|
|
|
|
|
name: 'TRANSPORT',
|
|
|
|
|
valueField: 'PORT',
|
|
|
|
|
queryMode: 'remote',
|
|
|
|
|
minChars: 1,
|
|
|
|
|
queryParam: 'PORT',
|
|
|
|
|
displayField: 'PORT'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//#region 编辑formHead 基本信息
|
|
|
|
@ -1317,6 +1328,7 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
|
xtype: 'checkboxfield',
|
|
|
|
|
name: 'HAVEFEN'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
, { xtype: 'hiddenfield' }
|
|
|
|
|
, { xtype: 'hiddenfield' }
|
|
|
|
|
, { xtype: 'hiddenfield' }
|
|
|
|
@ -1604,6 +1616,7 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
|
store: this.storeCodeLoadport,
|
|
|
|
|
// queryMode: 'remote',
|
|
|
|
|
// minChars: 1,
|
|
|
|
|
flex:1.5,
|
|
|
|
|
name: 'PORTLOAD',
|
|
|
|
|
valueField: 'PORT',
|
|
|
|
|
displayField: 'CodeAndName',
|
|
|
|
@ -1627,6 +1640,7 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
|
this.comboxPORTDISCHARGE = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
fieldLabel: '卸货港',
|
|
|
|
|
store: this.storeCodeDisport,
|
|
|
|
|
flex: 2.5,
|
|
|
|
|
name: 'PORTDISCHARGE',
|
|
|
|
|
valueField: 'PORT',
|
|
|
|
|
queryMode: 'remote',
|
|
|
|
@ -1641,11 +1655,11 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
|
var selectrecords = DsStoreQueryBy(this.storeCodeDisport, 'PORT', combo.value);
|
|
|
|
|
if (selectrecords.getCount() > 0) {
|
|
|
|
|
var selectdata = selectrecords.getAt(0).data;
|
|
|
|
|
this.formBill.getForm().findField('PORTDISCHARGEID').setValue(selectdata.EDICODE);
|
|
|
|
|
var DESTINATION = this.formBill.getForm().findField('DESTINATIONID').getValue();
|
|
|
|
|
this.formEdit.getForm().findField('PORTDISCHARGEID').setValue(selectdata.EDICODE);
|
|
|
|
|
var DESTINATION = this.formEdit.getForm().findField('DESTINATIONID').getValue();
|
|
|
|
|
if (DESTINATION == null || DESTINATION == '') {
|
|
|
|
|
this.formEdit.getForm().findField('DESTINATION').setValue(combo.value);
|
|
|
|
|
this.formBill.getForm().findField('DESTINATIONID').setValue(selectdata.EDICODE);
|
|
|
|
|
this.formEdit.getForm().findField('DESTINATIONID').setValue(selectdata.EDICODE);
|
|
|
|
|
}
|
|
|
|
|
var PLACEDELIVERY = this.formBill.getForm().findField('PLACEDELIVERYID').getValue();
|
|
|
|
|
if (PLACEDELIVERY == null || PLACEDELIVERY == '') {
|
|
|
|
@ -1656,13 +1670,13 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
|
this.formEdit.getForm().findField('LANE').setValue(records[0].data.LANE);
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
this.formBill.getForm().findField('PORTDISCHARGEID').setValue('');
|
|
|
|
|
this.formEdit.getForm().findField('PORTDISCHARGEID').setValue('');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
change: function (field, newValue, oldValue, eOpts) {
|
|
|
|
|
if (newValue == null || newValue == '') {
|
|
|
|
|
this.formBill.getForm().findField('PORTDISCHARGEID').setValue('');
|
|
|
|
|
this.formEdit.getForm().findField('PORTDISCHARGEID').setValue('');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1671,6 +1685,7 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
|
this.comboxDESTINATION = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
fieldLabel: '目的地',
|
|
|
|
|
store: this.storeCodeDisport2,
|
|
|
|
|
flex: 2.5,
|
|
|
|
|
name: 'DESTINATION',
|
|
|
|
|
queryMode: 'remote',
|
|
|
|
|
minChars: 1,
|
|
|
|
@ -1685,20 +1700,20 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
|
var selectrecords = DsStoreQueryBy(this.storeCodeDisport2, 'PORT', combo.value);
|
|
|
|
|
if (selectrecords.getCount() > 0) {
|
|
|
|
|
var selectdata = selectrecords.getAt(0).data;
|
|
|
|
|
this.formBill.getForm().findField('DESTINATIONID').setValue(selectdata.EDICODE);
|
|
|
|
|
this.formEdit.getForm().findField('DESTINATIONID').setValue(selectdata.EDICODE);
|
|
|
|
|
var PLACEDELIVERY = this.formBill.getForm().findField('PLACEDELIVERYID').getValue();
|
|
|
|
|
if (PLACEDELIVERY == null || PLACEDELIVERY == '') {
|
|
|
|
|
//if (PLACEDELIVERY == null || PLACEDELIVERY == '') {
|
|
|
|
|
this.formEdit.getForm().findField('PLACEDELIVERY').setValue(combo.value);
|
|
|
|
|
this.formBill.getForm().findField('PLACEDELIVERYID').setValue(selectdata.EDICODE);
|
|
|
|
|
}
|
|
|
|
|
//}
|
|
|
|
|
} else {
|
|
|
|
|
this.formBill.getForm().findField('DESTINATIONID').setValue('');
|
|
|
|
|
this.formEdit.getForm().findField('DESTINATIONID').setValue('');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
change: function (field, newValue, oldValue, eOpts) {
|
|
|
|
|
if (newValue == null || newValue == '') {
|
|
|
|
|
this.formBill.getForm().findField('DESTINATIONID').setValue('');
|
|
|
|
|
this.formEdit.getForm().findField('DESTINATIONID').setValue('');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1707,6 +1722,7 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
|
this.comboxPLACEDELIVERY = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
fieldLabel: '交货地',
|
|
|
|
|
store: this.storeCodeDisport3,
|
|
|
|
|
flex: 1.5,
|
|
|
|
|
name: 'PLACEDELIVERY',
|
|
|
|
|
matchFieldWidth: false,
|
|
|
|
|
queryMode: 'remote',
|
|
|
|
@ -1766,16 +1782,7 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.comboxTRANSPORT = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
fieldLabel: '中转港',
|
|
|
|
|
store: this.storeCodeDisport5,
|
|
|
|
|
name: 'TRANSPORT',
|
|
|
|
|
valueField: 'PORT',
|
|
|
|
|
queryMode: 'remote',
|
|
|
|
|
minChars: 1,
|
|
|
|
|
queryParam: 'PORT',
|
|
|
|
|
displayField: 'PORT'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.comboxISSUEPLACE = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
fieldLabel: '签单地点',
|
|
|
|
@ -1882,12 +1889,31 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
|
format: 'Y-m-d',
|
|
|
|
|
xtype: 'datefield',
|
|
|
|
|
name: 'ETD'
|
|
|
|
|
}, this.comboxPORTLOAD, this.comboxPORTDISCHARGE, this.comboxDESTINATION]
|
|
|
|
|
}, this.comboxPORTLOAD
|
|
|
|
|
|
|
|
|
|
, this.comboxPORTDISCHARGE
|
|
|
|
|
, {
|
|
|
|
|
fieldLabel: '卸港代码',
|
|
|
|
|
name: 'PORTDISCHARGEID'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
items: [
|
|
|
|
|
this.comboxISSUETYPE,
|
|
|
|
|
this.comboxDESTINATION,
|
|
|
|
|
{
|
|
|
|
|
fieldLabel: '目的代码',
|
|
|
|
|
name: 'DESTINATIONID'
|
|
|
|
|
},
|
|
|
|
|
this.comboxPLACEDELIVERY]
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
items: [ this.comboxPLACEDELIVERY,{
|
|
|
|
|
items: [ {
|
|
|
|
|
fieldLabel: '总件数',
|
|
|
|
|
labelWidth: 70,
|
|
|
|
|
name: 'PKGS',
|
|
|
|
@ -1901,19 +1927,14 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, this.comboxKINDPKGS, {
|
|
|
|
|
labelWidth: 70,
|
|
|
|
|
fieldLabel: '总重量',
|
|
|
|
|
name: 'KGS'
|
|
|
|
|
}, {
|
|
|
|
|
labelWidth: 70,
|
|
|
|
|
fieldLabel: '总尺码',
|
|
|
|
|
name: 'CBM'
|
|
|
|
|
}]
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
items: [this.comboxISSUETYPE, this.comboxPKGTYPE, {
|
|
|
|
|
labelWidth: 70,
|
|
|
|
|
fieldLabel: '总重量',
|
|
|
|
|
name: 'KGS'
|
|
|
|
|
}, {
|
|
|
|
|
labelWidth: 70,
|
|
|
|
|
fieldLabel: '总尺码',
|
|
|
|
|
name: 'CBM'
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
|
|
fieldLabel: '免箱天数',
|
|
|
|
|
// flex: 0.5,
|
|
|
|
@ -1923,10 +1944,6 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
|
labelWidth: 100,
|
|
|
|
|
// flex: 0.8,
|
|
|
|
|
name: 'DESTFBP'
|
|
|
|
|
}, {
|
|
|
|
|
fieldLabel: '限重',
|
|
|
|
|
// flex: 0.7,
|
|
|
|
|
name: 'MAXWEIGHT'
|
|
|
|
|
}]
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
@ -1935,7 +1952,7 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
|
items: [{
|
|
|
|
|
fieldLabel: '预计利润',
|
|
|
|
|
name: 'PLANPROFIT'
|
|
|
|
|
}, this.comboxAgent, this.comboxLANE, this.comboxTRANSPORT, this.comboxYARD]
|
|
|
|
|
}, this.comboxAgent, this.comboxLANE, this.comboxYARD]
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
@ -2042,6 +2059,20 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
|
flex: 1,
|
|
|
|
|
name: 'VOYNO'
|
|
|
|
|
}]
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
items: [
|
|
|
|
|
{
|
|
|
|
|
fieldLabel: '装港代码',
|
|
|
|
|
name: 'PORTLOADID'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
fieldLabel: '交货代码',
|
|
|
|
|
name: 'PLACEDELIVERYID'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
@ -2054,30 +2085,32 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
items: [ {
|
|
|
|
|
fieldLabel: '交货代码',
|
|
|
|
|
name: 'PLACEDELIVERYID'
|
|
|
|
|
}, { xtype: 'hiddenfield' }]
|
|
|
|
|
items: [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
items: [{
|
|
|
|
|
fieldLabel: '装港代码',
|
|
|
|
|
name: 'PORTLOADID'
|
|
|
|
|
items: [ this.comboxSERVICE]
|
|
|
|
|
}, {
|
|
|
|
|
fieldLabel: '卸港代码',
|
|
|
|
|
name: 'PORTDISCHARGEID'
|
|
|
|
|
}]
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
items: [ this.comboxPKGTYPE
|
|
|
|
|
, this.comboxTRANSPORT]
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
items: [{
|
|
|
|
|
fieldLabel: '目的代码',
|
|
|
|
|
name: 'DESTINATIONID'
|
|
|
|
|
}, this.comboxSERVICE]
|
|
|
|
|
}, {
|
|
|
|
|
fieldLabel: '限重',
|
|
|
|
|
// flex: 0.7,
|
|
|
|
|
name: 'MAXWEIGHT'
|
|
|
|
|
}, { xtype: 'hiddenfield' }]
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
@ -2601,11 +2634,11 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
|
var basicForm = this.formHead.getForm();
|
|
|
|
|
var editForm = this.formEdit.getForm();
|
|
|
|
|
this.opStatus = 'add';
|
|
|
|
|
basicForm.findField('BSNO').setDisabled(false);
|
|
|
|
|
//basicForm.findField('BSNO').setDisabled(false);
|
|
|
|
|
var field = basicForm.findField('BSNO');
|
|
|
|
|
var BSNO = NewGuid();
|
|
|
|
|
field.setValue(BSNO);
|
|
|
|
|
basicForm.findField('BSNO').setDisabled(true);
|
|
|
|
|
//basicForm.findField('BSNO').setDisabled(true);
|
|
|
|
|
field = basicForm.findField('ORDNO');
|
|
|
|
|
field.setValue('');
|
|
|
|
|
field = basicForm.findField('INPUTBY');
|
|
|
|
@ -2674,7 +2707,7 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
|
handler: function (button, event) {
|
|
|
|
|
this.LoadData('add', '');
|
|
|
|
|
var basicForm = this.formEdit.getForm();
|
|
|
|
|
basicForm.findField('BsNo').setDisabled(false);
|
|
|
|
|
//basicForm.findField('BsNo').setDisabled(false);
|
|
|
|
|
this.panelOcr.hide();
|
|
|
|
|
},
|
|
|
|
|
scope: this
|
|
|
|
|