|
|
|
@ -831,6 +831,7 @@ Ext.extend(Shipping.MsSeaeOrderAudit, Ext.Panel, {
|
|
|
|
|
handler: function () {
|
|
|
|
|
|
|
|
|
|
var form = me.formAudit.getForm();
|
|
|
|
|
|
|
|
|
|
var ACCDATE = form.findField('ACCDATE').getRawValue();
|
|
|
|
|
if (ACCDATE == '' || ACCDATE == null || ACCDATE == undefined) {
|
|
|
|
|
Ext.Msg.show({ title: '提示', msg: '会计期间为必填!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
|
@ -1308,17 +1309,25 @@ Ext.extend(Shipping.MsSeaeOrderAudit, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
}, //end initUIComponents
|
|
|
|
|
onAuditClick: function () {
|
|
|
|
|
var form = this.formAudit.getForm();
|
|
|
|
|
var VoucherDate = form.findField('ACCDATE');
|
|
|
|
|
var thisday = this.getToMonth();
|
|
|
|
|
VoucherDate.setRawValue(thisday)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var selections = this.gridList.getSelectionModel().getSelection();
|
|
|
|
|
if (selections.length == 0) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var record = selections[0];
|
|
|
|
|
|
|
|
|
|
var form = this.formAudit.getForm();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var VoucherDate = form.findField('ACCDATE');
|
|
|
|
|
|
|
|
|
|
//var thisday = this.getToMonth();
|
|
|
|
|
//VoucherDate.setRawValue(thisday)
|
|
|
|
|
var accdate = record.data.ETD.substring(0, 7);
|
|
|
|
|
VoucherDate.setRawValue(accdate);
|
|
|
|
|
|
|
|
|
|
this.comboxSeaeOp.setValue(record.data.OP);
|
|
|
|
|
this.comboxSeaeCustService.setValue(record.data.CUSTSERVICE);
|
|
|
|
|
this.comboxFORWARDER.setValue(record.data.FORWARDER);
|
|
|
|
|