|
|
|
@ -2854,12 +2854,12 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
basicForm.findField('BillNo').setDisabled(false);
|
|
|
|
|
/* basicForm.findField('BillNo').setDisabled(false);*/
|
|
|
|
|
|
|
|
|
|
var data = basicForm.getValues();
|
|
|
|
|
data.BsType = '装箱';
|
|
|
|
|
|
|
|
|
|
basicForm.findField('BillNo').setDisabled(true);
|
|
|
|
|
/* basicForm.findField('BillNo').setDisabled(true);*/
|
|
|
|
|
var bodyctndatas = [];
|
|
|
|
|
//for (var i = 0; i < this.storeCtnList.getCount(); i += 1) {
|
|
|
|
|
// var member = this.storeCtnList.getAt(i);
|
|
|
|
@ -2937,7 +2937,7 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
|
|
|
|
|
}
|
|
|
|
|
if (type == '0') {
|
|
|
|
|
this.opStatus = 'edit';
|
|
|
|
|
basicForm.findField('BillNo').setDisabled(true);
|
|
|
|
|
/* basicForm.findField('BillNo').setDisabled(true);*/
|
|
|
|
|
|
|
|
|
|
//for (var i = 0; i < this.storeBodyFix.getCount(); i += 1) {
|
|
|
|
|
// var member = this.storeBodyFix.getAt(i);
|
|
|
|
@ -3471,26 +3471,26 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (member.data.PKGS != 0) {
|
|
|
|
|
memberbody.set("PKGS", member.data.PKGS);
|
|
|
|
|
}
|
|
|
|
|
//if (member.data.PKGS != 0) {
|
|
|
|
|
// memberbody.set("PKGS", member.data.PKGS);
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
if (member.data.KGS != 0) {
|
|
|
|
|
memberbody.set("KGS", member.data.KGS);
|
|
|
|
|
}
|
|
|
|
|
//if (member.data.KGS != 0) {
|
|
|
|
|
// memberbody.set("KGS", member.data.KGS);
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
if (member.data.CBM != 0) {
|
|
|
|
|
memberbody.set("CBM", member.data.CBM);
|
|
|
|
|
}
|
|
|
|
|
//if (member.data.CBM != 0) {
|
|
|
|
|
// memberbody.set("CBM", member.data.CBM);
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
if (member.data.TAREWEIGHT != 0) {
|
|
|
|
|
memberbody.set("TAREWEIGHT", member.data.TAREWEIGHT);
|
|
|
|
|
}
|
|
|
|
|
//if (member.data.TAREWEIGHT != 0) {
|
|
|
|
|
// memberbody.set("TAREWEIGHT", member.data.TAREWEIGHT);
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
if (member.data.KGS != 0 && member.data.TAREWEIGHT != 0) {
|
|
|
|
|
memberbody.set("WEIGHKGS", _WEIGHKGS);
|
|
|
|
|
memberbody.set("TTLWEIGHT", _WEIGHKGS);
|
|
|
|
|
}
|
|
|
|
|
//if (member.data.KGS != 0 && member.data.TAREWEIGHT != 0) {
|
|
|
|
|
// memberbody.set("WEIGHKGS", _WEIGHKGS);
|
|
|
|
|
// memberbody.set("TTLWEIGHT", _WEIGHKGS);
|
|
|
|
|
//}
|
|
|
|
|
memberbody.commit();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -3519,14 +3519,14 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
|
|
|
|
|
CTNNUM: 1,
|
|
|
|
|
CNTRNO: member.data.CNTRNO.trim(),
|
|
|
|
|
SEALNO: member.data.SEALNO.trim(),
|
|
|
|
|
PKGS: member.data.PKGS,
|
|
|
|
|
PKGS: 0,
|
|
|
|
|
KINDPKGS: addKINDPKGS,
|
|
|
|
|
KGS: member.data.KGS,
|
|
|
|
|
TAREWEIGHT: member.data.TAREWEIGHT,
|
|
|
|
|
CBM: member.data.CBM,
|
|
|
|
|
KGS:0 ,
|
|
|
|
|
TAREWEIGHT:0,
|
|
|
|
|
CBM: 0,
|
|
|
|
|
WEIGHTYPE: "累加",
|
|
|
|
|
TTLWEIGHT: _WEIGHKGS,
|
|
|
|
|
WEIGHKGS: _WEIGHKGS,
|
|
|
|
|
TTLWEIGHT:0,
|
|
|
|
|
WEIGHKGS:0,
|
|
|
|
|
WEIGHATTN: '',
|
|
|
|
|
WEIGHTEL: '',
|
|
|
|
|
WEIGHSIGN: '',
|
|
|
|
@ -3579,40 +3579,41 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
|
|
|
|
|
field.setValue(cntrnostr);
|
|
|
|
|
var field = _thisPc.formEdit.getForm().findField('SealNo');
|
|
|
|
|
field.setValue(sealnostr);
|
|
|
|
|
var field = _thisPc.formEdit.getForm().findField('ContainerNoSe');
|
|
|
|
|
if (field.getValue() == '') field.setValue(pkgsstr);
|
|
|
|
|
var field = _thisPc.formEdit.getForm().findField('ContainerQty');
|
|
|
|
|
field.setValue(ctnnum);
|
|
|
|
|
//var field = _thisPc.formEdit.getForm().findField('ContainerNoSe');
|
|
|
|
|
//if (field.getValue() == '') field.setValue(pkgsstr);
|
|
|
|
|
//var field = _thisPc.formEdit.getForm().findField('ContainerQty');
|
|
|
|
|
//field.setValue(ctnnum);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var jsonBody = ConvertRecordsToJsonAll(bodydatas);
|
|
|
|
|
Ext.Msg.wait('正在保存数据, 请稍侯..');
|
|
|
|
|
Ext.Ajax.request({
|
|
|
|
|
waitMsg: '正在保存数据...',
|
|
|
|
|
url: '/TruckMng/PcHeadEdit_WFSD/CreateHYRDFen',
|
|
|
|
|
scope: this,
|
|
|
|
|
params: {
|
|
|
|
|
bsno: BSNO,
|
|
|
|
|
ctnbody: jsonBody
|
|
|
|
|
},
|
|
|
|
|
callback: function (options, success, response) {
|
|
|
|
|
if (success) {
|
|
|
|
|
Ext.MessageBox.hide();
|
|
|
|
|
var jsonresult = Ext.JSON.decode(response.responseText);
|
|
|
|
|
if (jsonresult.Success) {
|
|
|
|
|
Ext.Msg.show({ title: '提示', msg: jsonresult.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
|
|
if (ctnnum != 1) {
|
|
|
|
|
var jsonBody = ConvertRecordsToJsonAll(bodydatas);
|
|
|
|
|
Ext.Msg.wait('正在保存数据, 请稍侯..');
|
|
|
|
|
Ext.Ajax.request({
|
|
|
|
|
waitMsg: '正在保存数据...',
|
|
|
|
|
url: '/TruckMng/PcHeadEdit_WFSD/CreateHYRDFen',
|
|
|
|
|
scope: this,
|
|
|
|
|
params: {
|
|
|
|
|
bsno: BSNO,
|
|
|
|
|
ctnbody: jsonBody
|
|
|
|
|
},
|
|
|
|
|
callback: function (options, success, response) {
|
|
|
|
|
if (success) {
|
|
|
|
|
Ext.MessageBox.hide();
|
|
|
|
|
var jsonresult = Ext.JSON.decode(response.responseText);
|
|
|
|
|
if (jsonresult.Success) {
|
|
|
|
|
Ext.Msg.show({ title: '提示', msg: jsonresult.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
|
|
} else {
|
|
|
|
|
Ext.Msg.show({ title: '错误', msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
Ext.Msg.show({ title: '错误', msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
title: '请重试',
|
|
|
|
|
msg: '服务器响应出错',
|
|
|
|
|
icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
title: '请重试',
|
|
|
|
|
msg: '服务器响应出错',
|
|
|
|
|
icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
Ext.Msg.hide();
|
|
|
|
|