|
|
@ -2191,14 +2191,6 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
this.onDelDetailClick(button, event, 1);
|
|
|
|
this.onDelDetailClick(button, event, 1);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
scope: this
|
|
|
|
scope: this
|
|
|
|
}, '-'
|
|
|
|
|
|
|
|
, {
|
|
|
|
|
|
|
|
text: Zi.LAN.btnAddOpCtnDetail, //'多品名维护',
|
|
|
|
|
|
|
|
id: "btnAddOpCtnDetail",
|
|
|
|
|
|
|
|
handler: function (button, event) {
|
|
|
|
|
|
|
|
this.onAddOpCtnDetail(button, event);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
scope: this
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
, '-', {
|
|
|
|
, '-', {
|
|
|
|
text: Zi.LAN.btnadddetail2, //'展开集装箱',
|
|
|
|
text: Zi.LAN.btnadddetail2, //'展开集装箱',
|
|
|
@ -2264,12 +2256,6 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
_this.winCtnListShow.show();
|
|
|
|
_this.winCtnListShow.show();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
scope: this
|
|
|
|
scope: this
|
|
|
|
}, '-', {
|
|
|
|
|
|
|
|
text: Zi.LAN.updatectntruck, //'同步车队',
|
|
|
|
|
|
|
|
handler: function (button, event) {
|
|
|
|
|
|
|
|
this.onUpDetailTruckClick(button, event);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
scope: this
|
|
|
|
|
|
|
|
}, '-', {
|
|
|
|
}, '-', {
|
|
|
|
text: Zi.LAN.setPackage, //'批量设置包装',
|
|
|
|
text: Zi.LAN.setPackage, //'批量设置包装',
|
|
|
|
handler: function (button, event) {
|
|
|
|
handler: function (button, event) {
|
|
|
@ -2294,6 +2280,20 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
this.onsetCtnClick(1, "CBM");
|
|
|
|
this.onsetCtnClick(1, "CBM");
|
|
|
|
},
|
|
|
|
},
|
|
|
|
scope: this
|
|
|
|
scope: this
|
|
|
|
|
|
|
|
}, '-'
|
|
|
|
|
|
|
|
, {
|
|
|
|
|
|
|
|
text: Zi.LAN.btnAddOpCtnDetail, //'多品名维护',
|
|
|
|
|
|
|
|
id: "btnAddOpCtnDetail",
|
|
|
|
|
|
|
|
handler: function (button, event) {
|
|
|
|
|
|
|
|
this.onAddOpCtnDetail(button, event);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
scope: this
|
|
|
|
|
|
|
|
}, '-', {
|
|
|
|
|
|
|
|
text: Zi.LAN.updatectntruck, //'同步车队',
|
|
|
|
|
|
|
|
handler: function (button, event) {
|
|
|
|
|
|
|
|
this.onUpDetailTruckClick(button, event);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
scope: this
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|
|
|
|
|
|
|
|
|
columns: this.ctncolumns
|
|
|
|
columns: this.ctncolumns
|
|
|
@ -14451,7 +14451,6 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
var KINDPKGS = this.formEdit.getForm().findField('KINDPKGS').getValue();
|
|
|
|
var KINDPKGS = this.formEdit.getForm().findField('KINDPKGS').getValue();
|
|
|
|
this.formEdit.getForm().findField('NOPKGS').setValue(PKGS + KINDPKGS);
|
|
|
|
this.formEdit.getForm().findField('NOPKGS').setValue(PKGS + KINDPKGS);
|
|
|
|
this.formEdit.getForm().findField('TOTALNO').setValue('SAY:' + ToEn(PKGS).toUpperCase() + ' ' + KINDPKGS + ' ONLY.');
|
|
|
|
this.formEdit.getForm().findField('TOTALNO').setValue('SAY:' + ToEn(PKGS).toUpperCase() + ' ' + KINDPKGS + ' ONLY.');
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (e.field == 'CTNALL') {
|
|
|
|
} else if (e.field == 'CTNALL') {
|
|
|
|
var CTNALL = e.record.data['CTNALL'];
|
|
|
|
var CTNALL = e.record.data['CTNALL'];
|
|
|
@ -14936,6 +14935,39 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
this.setAllTotal();
|
|
|
|
this.setAllTotal();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (fieldname == 'KGS') {
|
|
|
|
|
|
|
|
var KGS = this.formEdit.getForm().findField('KGS').getValue();
|
|
|
|
|
|
|
|
this.formEdit.getForm().findField('GROSSWEIGHT').setValue(KGS + 'KGS');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (fieldname == 'CBM') {
|
|
|
|
|
|
|
|
var CBM = this.formEdit.getForm().findField('CBM').getValue();
|
|
|
|
|
|
|
|
this.formEdit.getForm().findField('MEASUREMENT').setValue(CBM + 'CBM');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (fieldname == 'PKGS') {
|
|
|
|
|
|
|
|
var PKGS = this.formEdit.getForm().findField('PKGS').getValue();
|
|
|
|
|
|
|
|
var KINDPKGS = this.formEdit.getForm().findField('KINDPKGS').getValue();
|
|
|
|
|
|
|
|
this.formEdit.getForm().findField('NOPKGS').setValue(PKGS + KINDPKGS);
|
|
|
|
|
|
|
|
this.formEdit.getForm().findField('TOTALNO').setValue('SAY:' + ToEn(PKGS).toUpperCase() + ' ' + KINDPKGS + ' ONLY.');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (fieldname == 'KINDPKGS') {
|
|
|
|
|
|
|
|
var KINDPKGS = e.record.data['KINDPKGS'];
|
|
|
|
|
|
|
|
this.setHeadFieldValue('KINDPKGS', KINDPKGS);
|
|
|
|
|
|
|
|
var PKGS = this.formEdit.getForm().findField('PKGS').getValue();
|
|
|
|
|
|
|
|
this.formEdit.getForm().findField('NOPKGS').setValue(PKGS + KINDPKGS);
|
|
|
|
|
|
|
|
this.formEdit.getForm().findField('TOTALNO').setValue('SAY:' + ToEn(PKGS).toUpperCase() + ' ' + KINDPKGS + ' ONLY.');
|
|
|
|
|
|
|
|
for (var j = 0; j < this.storeBodyList.getCount(); j += 1) {
|
|
|
|
|
|
|
|
var memberbody = this.storeBodyList.getAt(j);
|
|
|
|
|
|
|
|
if (memberbody.data.KINDPKGS == "" || memberbody.data.KINDPKGS == NaN || memberbody.data.KINDPKGS == null) {
|
|
|
|
|
|
|
|
memberbody.set("KINDPKGS", KINDPKGS);
|
|
|
|
|
|
|
|
memberbody.commit();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -15046,6 +15078,9 @@ DFF42726-A0BA-4264-BFDF-2500A35E89C7 isVehiclesDispatcher 是否派车调度人
|
|
|
|
for (var i = 0; i < this.storeBodyList.getCount(); i += 1) {
|
|
|
|
for (var i = 0; i < this.storeBodyList.getCount(); i += 1) {
|
|
|
|
var memberbody = this.storeBodyList.getAt(i);
|
|
|
|
var memberbody = this.storeBodyList.getAt(i);
|
|
|
|
if (memberbody.data.CNTRNO == member.data.CNTRNO) {
|
|
|
|
if (memberbody.data.CNTRNO == member.data.CNTRNO) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
memberbody.set("CTNNUM", 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (member.data.SEALNO != '') {
|
|
|
|
if (member.data.SEALNO != '') {
|
|
|
|
memberbody.set("SEALNO", member.data.SEALNO.trim());
|
|
|
|
memberbody.set("SEALNO", member.data.SEALNO.trim());
|
|
|
|
}
|
|
|
|
}
|
|
|
|