|
|
@ -1839,6 +1839,9 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
|
|
|
|
var PGid = this.formEdit.getForm().findField('PGid');
|
|
|
|
var PGid = this.formEdit.getForm().findField('PGid');
|
|
|
|
PGid.setValue(this.selectPGID);
|
|
|
|
PGid.setValue(this.selectPGID);
|
|
|
|
if (this.editRecord != NaN && this.editRecord != null) {
|
|
|
|
if (this.editRecord != NaN && this.editRecord != null) {
|
|
|
|
|
|
|
|
this.formEdit.getForm().findField('CUSTNO').setValue(this.editRecord.get('CUSTNO'));
|
|
|
|
|
|
|
|
this.formEdit.getForm().findField('TruckSpec').setValue(this.editRecord.get('TruckSpec'));
|
|
|
|
|
|
|
|
|
|
|
|
this.formEdit.getForm().findField('CustomerName').setValue(this.editRecord.get('CustomerName'));
|
|
|
|
this.formEdit.getForm().findField('CustomerName').setValue(this.editRecord.get('CustomerName'));
|
|
|
|
this.formEdit.getForm().findField('SalesName').setValue(this.editRecord.get('SalesName'));
|
|
|
|
this.formEdit.getForm().findField('SalesName').setValue(this.editRecord.get('SalesName'));
|
|
|
|
this.formEdit.getForm().findField('DdName').setValue(this.editRecord.get('DdName'));
|
|
|
|
this.formEdit.getForm().findField('DdName').setValue(this.editRecord.get('DdName'));
|
|
|
@ -2479,12 +2482,14 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
|
|
|
|
Ext.Msg.show({ title: '警告', msg: '主提单号不能为空!', icon: Ext.Msg.WARNING, buttons: Ext.Msg.OK });//'主提单号不能为空!'
|
|
|
|
Ext.Msg.show({ title: '警告', msg: '主提单号不能为空!', icon: Ext.Msg.WARNING, buttons: Ext.Msg.OK });//'主提单号不能为空!'
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var ContainerNo = _thisPc.formEdit.getForm().findField('ContainerNo').getValue();
|
|
|
|
var cntrnostr = '';
|
|
|
|
if (ContainerNo != '') {
|
|
|
|
|
|
|
|
Ext.Msg.show({ title: '警告', msg: '已存在箱号,不允许引入!', icon: Ext.Msg.WARNING, buttons: Ext.Msg.OK });//'主提单号不能为空!'
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
var cntrnostr = _thisPc.formEdit.getForm().findField('ContainerNo').getValue();
|
|
|
|
|
|
|
|
//if (ContainerNo != '') {
|
|
|
|
|
|
|
|
// Ext.Msg.show({ title: '警告', msg: '已存在箱号,不允许引入!', icon: Ext.Msg.WARNING, buttons: Ext.Msg.OK });//'主提单号不能为空!'
|
|
|
|
|
|
|
|
// return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2516,12 +2521,12 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
|
|
|
|
var sVESSEL = "";
|
|
|
|
var sVESSEL = "";
|
|
|
|
var sVOYNO = "";
|
|
|
|
var sVOYNO = "";
|
|
|
|
var bodydatas = [];
|
|
|
|
var bodydatas = [];
|
|
|
|
var cntrnostr = '';
|
|
|
|
|
|
|
|
var sealnostr = '';
|
|
|
|
var sealnostr = '';
|
|
|
|
var pkgsstr = '';
|
|
|
|
var pkgsstr = '';
|
|
|
|
var tixiangshijian = '';
|
|
|
|
var tixiangshijian = '';
|
|
|
|
var fanchangshijian = '';
|
|
|
|
var fanchangshijian = '';
|
|
|
|
var ctnnum = 0;
|
|
|
|
var ctnnum = 0;
|
|
|
|
|
|
|
|
var createfen = 0;
|
|
|
|
for (var j = 0; j < storeyardctn.getCount(); j += 1) {
|
|
|
|
for (var j = 0; j < storeyardctn.getCount(); j += 1) {
|
|
|
|
var member = storeyardctn.getAt(j);
|
|
|
|
var member = storeyardctn.getAt(j);
|
|
|
|
var WEIGHDATE = member.data.WEIGHDATE;
|
|
|
|
var WEIGHDATE = member.data.WEIGHDATE;
|
|
|
@ -2533,6 +2538,9 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
|
|
|
|
TIXIANGSHIJIAN = Ext.util.Format.date(TIXIANGSHIJIAN, 'Y-m-d');
|
|
|
|
TIXIANGSHIJIAN = Ext.util.Format.date(TIXIANGSHIJIAN, 'Y-m-d');
|
|
|
|
member.data.TIXIANGSHIJIAN = TIXIANGSHIJIAN;
|
|
|
|
member.data.TIXIANGSHIJIAN = TIXIANGSHIJIAN;
|
|
|
|
if (member.data.TAREWEIGHT == '') member.data.TAREWEIGHT = '0';
|
|
|
|
if (member.data.TAREWEIGHT == '') member.data.TAREWEIGHT = '0';
|
|
|
|
|
|
|
|
if (cntrnostr!=''&&cntrnostr.indexOf(member.data.CNTRNO)>0)
|
|
|
|
|
|
|
|
bodydatas.push(member);
|
|
|
|
|
|
|
|
|
|
|
|
cntrnostr = cntrnostr + ' ' + member.data.CNTRNO;
|
|
|
|
cntrnostr = cntrnostr + ' ' + member.data.CNTRNO;
|
|
|
|
sealnostr = sealnostr + ' ' + member.data.SEALNO;
|
|
|
|
sealnostr = sealnostr + ' ' + member.data.SEALNO;
|
|
|
|
pkgsstr = pkgsstr + ' ' + member.data.PKGS + '/' + member.data.KGS + '/' + member.data.CBM;
|
|
|
|
pkgsstr = pkgsstr + ' ' + member.data.PKGS + '/' + member.data.KGS + '/' + member.data.CBM;
|
|
|
@ -2543,7 +2551,7 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
|
|
|
|
if (fanchangshijian != '')
|
|
|
|
if (fanchangshijian != '')
|
|
|
|
fanchangshijian = Ext.util.Format.date(fanchangshijian, 'Y-m-d');
|
|
|
|
fanchangshijian = Ext.util.Format.date(fanchangshijian, 'Y-m-d');
|
|
|
|
ctnnum = ctnnum + 1;
|
|
|
|
ctnnum = ctnnum + 1;
|
|
|
|
bodydatas.push(member);
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
var field = _thisPc.formEdit.getForm().findField('ContainerNo');
|
|
|
|
var field = _thisPc.formEdit.getForm().findField('ContainerNo');
|
|
|
|
field.setValue(cntrnostr);
|
|
|
|
field.setValue(cntrnostr);
|
|
|
@ -2563,7 +2571,7 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
|
|
|
|
if (field.getValue == "")
|
|
|
|
if (field.getValue == "")
|
|
|
|
field.setValue(fanchangshijian);
|
|
|
|
field.setValue(fanchangshijian);
|
|
|
|
|
|
|
|
|
|
|
|
if (ctnnum != 1) {
|
|
|
|
if ((ctnnum != 1) && (bodydatas.length != 0)) {
|
|
|
|
|
|
|
|
|
|
|
|
var jsonBody = ConvertRecordsToJsonAll(bodydatas);
|
|
|
|
var jsonBody = ConvertRecordsToJsonAll(bodydatas);
|
|
|
|
Ext.Msg.wait('正在保存数据, 请稍侯..');
|
|
|
|
Ext.Msg.wait('正在保存数据, 请稍侯..');
|
|
|
|