|
|
|
@ -446,6 +446,9 @@ Ext.extend(Shipping.MsOpOtherEdit, Ext.Panel, {
|
|
|
|
|
items: [{
|
|
|
|
|
fieldLabel: '业务编号',
|
|
|
|
|
name: 'BSNO', hidden: true
|
|
|
|
|
}, {
|
|
|
|
|
fieldLabel: 'OPLBNAME',
|
|
|
|
|
name: 'OPLBNAME', hidden: true
|
|
|
|
|
}, {
|
|
|
|
|
fieldLabel: '业务状态',
|
|
|
|
|
readOnly: true,
|
|
|
|
@ -982,6 +985,22 @@ Ext.extend(Shipping.MsOpOtherEdit, Ext.Panel, {
|
|
|
|
|
title: record.data.DESCRIPTION
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
if (record.data.NAME == 'modOpSeaeEdiEdit') {
|
|
|
|
|
var _url = record.data.MODULEURL + "?MASTERNO=" + this.editRecord.get('BSNO');
|
|
|
|
|
var paneltabitems = new Ext.Panel({
|
|
|
|
|
id: 'pnl' + record.data.NAME,
|
|
|
|
|
layout: "fit",
|
|
|
|
|
region: "center",
|
|
|
|
|
autoScroll: true,
|
|
|
|
|
frame: false,
|
|
|
|
|
closable: true,
|
|
|
|
|
title: record.data.DESCRIPTION,
|
|
|
|
|
html: ' <iframe scrolling="auto" frameborder="0" width="100%" height="100%" src="' + _url + '"> </iframe>'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
var paneltabitems = new Ext.Panel({
|
|
|
|
|
id: 'pnl' + record.data.NAME,
|
|
|
|
|
layout: "fit",
|
|
|
|
@ -993,6 +1012,7 @@ Ext.extend(Shipping.MsOpOtherEdit, Ext.Panel, {
|
|
|
|
|
html: ' <iframe scrolling="auto" frameborder="0" width="100%" height="100%" src="' + record.data.MODULEURL + '"> </iframe>'
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.tabOtherPanel.add(paneltabitems);
|
|
|
|
|
this.tabOtherPanel.setActiveTab(paneltabitems);
|
|
|
|
|
this.tabOtherPanel.doLayout();
|
|
|
|
@ -1401,6 +1421,7 @@ Ext.extend(Shipping.MsOpOtherEdit, Ext.Panel, {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
data = result.data;
|
|
|
|
|
data.OPLBNAME = "舱单申报";
|
|
|
|
|
this.formHead.getForm().reset();
|
|
|
|
|
this.formHead.getForm().setValues(data);
|
|
|
|
|
this.formEdit.getForm().reset();
|
|
|
|
@ -1463,34 +1484,6 @@ Ext.extend(Shipping.MsOpOtherEdit, Ext.Panel, {
|
|
|
|
|
});
|
|
|
|
|
this.panelFee.storeChFeeGain.load({ params: { bsno: data.BSNO, optype: "op_other" } });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var edi_condition = "MFNO='" + data.BSNO +"'";
|
|
|
|
|
Ext.Ajax.request({
|
|
|
|
|
waitMsg: '正在查询主表数据...',
|
|
|
|
|
url: '/MvcShipping/MsOpSeaeEdi/GetData',
|
|
|
|
|
params: {
|
|
|
|
|
handle: opstatus,
|
|
|
|
|
condition: condition
|
|
|
|
|
},
|
|
|
|
|
callback: function (options, success, response) {
|
|
|
|
|
if (success) {
|
|
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
|
|
if (!result.Success) {
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
title: '提示',
|
|
|
|
|
msg: result.Message,
|
|
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
|
|
buttons: Ext.Msg.OK
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
data = result.data;
|
|
|
|
|
_this.formBill.getForm().reset();
|
|
|
|
|
_this.formBill.getForm().setValues(data);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
|
|
|
|
|
}
|
|
|
|
@ -1803,11 +1796,6 @@ Ext.extend(Shipping.MsOpOtherEdit, Ext.Panel, {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var basicForm3 = this.formBill.getForm();
|
|
|
|
|
if (!basicForm3.isValid()) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.accdatesameetd == 1) {
|
|
|
|
|
var ETD = this.formEdit.getForm().findField('ETD').getRawValue();
|
|
|
|
@ -1843,8 +1831,6 @@ Ext.extend(Shipping.MsOpOtherEdit, Ext.Panel, {
|
|
|
|
|
this.formHead.getForm().findField('BSNO').setDisabled(true);
|
|
|
|
|
var data2 = this.formEdit.getForm().getValues(false, false, false);
|
|
|
|
|
|
|
|
|
|
var data3 = this.formBill.getForm().getValues(false, false, false);
|
|
|
|
|
|
|
|
|
|
var bodydatas = [];
|
|
|
|
|
for (var i = 0; i < this.storeBodyList.getCount(); i += 1) {
|
|
|
|
|
var member = this.storeBodyList.getAt(i);
|
|
|
|
@ -1858,14 +1844,12 @@ Ext.extend(Shipping.MsOpOtherEdit, Ext.Panel, {
|
|
|
|
|
Ext.Msg.wait('正在保存数据, 请稍侯..');
|
|
|
|
|
Ext.Ajax.request({
|
|
|
|
|
waitMsg: '正在保存数据...',
|
|
|
|
|
url: '/MvcShipping/MsOpOther/Save_CangDan',
|
|
|
|
|
url: '/MvcShipping/MsOpOther/Save',
|
|
|
|
|
scope: this,
|
|
|
|
|
params: {
|
|
|
|
|
opstatus: this.opStatus,
|
|
|
|
|
data: Ext.JSON.encode(data),
|
|
|
|
|
data2: Ext.JSON.encode(data2),
|
|
|
|
|
data3: Ext.JSON.encode(data3),
|
|
|
|
|
body: jsonBody
|
|
|
|
|
data2: Ext.JSON.encode(data2)
|
|
|
|
|
},
|
|
|
|
|
callback: function (options, success, response) {
|
|
|
|
|
if (success) {
|
|
|
|
@ -2089,6 +2073,7 @@ Ext.extend(Shipping.MsOpOtherEdit, Ext.Panel, {
|
|
|
|
|
});
|
|
|
|
|
this.GetEditStatus();
|
|
|
|
|
|
|
|
|
|
this.formHead.getForm().findField("OPLBNAME").setValue("舱单申报");
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|