调整销售订舱中确认订舱时accdate默认值的逻辑,改为跟着etd走

临时发布20240103
ddlucky 2 years ago
parent 03e40e01f8
commit 726eefdd49

@ -1287,6 +1287,7 @@ namespace DSWeb.MvcShipping.DAL.MsSeaeOrderDAL
headData.SALECORPID = OrderData.SALECORPID;
headData.CORPID = OrderData.SALECORPID;
headData.ACCDATE = accdate;
var modb = new ModelObjectDB();
result = modb.Save(headData);

@ -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);

@ -2078,7 +2078,15 @@ Ext.extend(Shipping.MsSeaeOrderEdit, Ext.Panel, {
fieldLabel: '大船ETD',
format: 'Y-m-d',
xtype: 'datefield',
name: 'ETD'
name: 'ETD',
listeners: {
scope: this,
change: function (field, newValue, oldValue, eOpts) {
var ACCDATEvalue = newValue.toISOString().substring(0, 7).replace('T', ' ');
var accdate = Ext.getCmp("ACCDATE");
accdate.setValue(ACCDATEvalue);
}
}
},
//
]
@ -3165,6 +3173,7 @@ Ext.extend(Shipping.MsSeaeOrderEdit, Ext.Panel, {
items: [{
fieldLabel: '会计期间',
xtype: 'monthfield',
id:"ACCDATE",
name: 'ACCDATE'
}, this.comboxSeaeOp
]
@ -3605,14 +3614,22 @@ Ext.extend(Shipping.MsSeaeOrderEdit, Ext.Panel, {
var form = this.formAudit.getForm();
var VoucherDate = form.findField('ACCDATE');
var thisday = this.getToMonth();
VoucherDate.setRawValue(thisday)
//var thisday = this.getToMonth();
//VoucherDate.setRawValue(thisday)
var basicForm = this.formHead.getForm();
this.comboxSeaeOp.setValue(basicForm.findField('OP').getValue());
this.comboxSeaeCustService.setValue(basicForm.findField('CUSTSERVICE').getValue());
var editForm = this.formEdit.getForm();
this.comboxFORWARDER2.setValue(editForm.findField('FORWARDER').getValue());
var thisday = editForm.findField('ETD').getRawValue().substring(0, 7);
VoucherDate.setRawValue(thisday);
this.winAuditShow.show();
},

Loading…
Cancel
Save