|
|
@ -69,7 +69,7 @@ Ext.extend(Shipping.WMSOUT_GuiGeEdit, Ext.Panel, {
|
|
|
|
Goodsrecords:null,
|
|
|
|
Goodsrecords:null,
|
|
|
|
|
|
|
|
|
|
|
|
initUIComponents: function () {
|
|
|
|
initUIComponents: function () {
|
|
|
|
|
|
|
|
_this = this;
|
|
|
|
this.formname = "formWMSOUT_GuiGeEdit"; //出库单
|
|
|
|
this.formname = "formWMSOUT_GuiGeEdit"; //出库单
|
|
|
|
this.pcnostr = "";
|
|
|
|
this.pcnostr = "";
|
|
|
|
this.cntrstr = "";
|
|
|
|
this.cntrstr = "";
|
|
|
@ -102,6 +102,33 @@ Ext.extend(Shipping.WMSOUT_GuiGeEdit, Ext.Panel, {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//#region 页面加载
|
|
|
|
//#region 页面加载
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//委托单位
|
|
|
|
|
|
|
|
this.storeCustCode = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
|
|
|
model: 'DsShipping.ux.CustomRefModel',
|
|
|
|
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' }
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
//转移对象,需求编号:SR2017073000001
|
|
|
|
|
|
|
|
this.storeCLIENTNAMEOLD = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
|
|
|
model: 'DsShipping.ux.CustomRefModel',
|
|
|
|
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' }
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
//应收仓储客户,需求编号:SR2017073000001
|
|
|
|
|
|
|
|
this.storeARCLIENTWMSOUT = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
|
|
|
model: 'DsShipping.ux.CustomRefModel',
|
|
|
|
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' }
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
//应收出库客户,需求编号:SR2017073000001
|
|
|
|
|
|
|
|
this.storeARCLIENT = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
|
|
|
model: 'DsShipping.ux.CustomRefModel',
|
|
|
|
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' }
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
//应付客户,需求编号:SR2017073000001
|
|
|
|
|
|
|
|
this.storeTRUCKNAME = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
|
|
|
model: 'DsShipping.ux.CustomRefModel',
|
|
|
|
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' }
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
this.opStatus = 'add';
|
|
|
|
this.opStatus = 'add';
|
|
|
|
parentWin = window.parent.opener;
|
|
|
|
parentWin = window.parent.opener;
|
|
|
|
if (parentWin) {
|
|
|
|
if (parentWin) {
|
|
|
@ -138,9 +165,33 @@ Ext.extend(Shipping.WMSOUT_GuiGeEdit, Ext.Panel, {
|
|
|
|
if (this.OPLBNAME == "WMSMAIN") {
|
|
|
|
if (this.OPLBNAME == "WMSMAIN") {
|
|
|
|
//如果是出库管理处双击打开
|
|
|
|
//如果是出库管理处双击打开
|
|
|
|
this.mainWin = getMainForm(parentWin);
|
|
|
|
this.mainWin = getMainForm(parentWin);
|
|
|
|
|
|
|
|
var _storecustcode = ret[9];
|
|
|
|
|
|
|
|
this.storeCustCode.loadData(_storecustcode.data.items);
|
|
|
|
|
|
|
|
this.storeCLIENTNAMEOLD.loadData(_storecustcode.data.items);
|
|
|
|
|
|
|
|
this.storeARCLIENTWMSOUT.loadData(_storecustcode.data.items);
|
|
|
|
|
|
|
|
this.storeARCLIENT.loadData(_storecustcode.data.items);
|
|
|
|
|
|
|
|
this.storeTRUCKNAME.loadData(_storecustcode.data.items);
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
//如果是海运进口处双击打开
|
|
|
|
//如果是海运进口处双击打开
|
|
|
|
this.mainWin = getMainForm_Opener(parentWin);
|
|
|
|
this.mainWin = getMainForm_Opener(parentWin);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.storeTRUCKNAME.load(
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
callback: function (options, success, response) {
|
|
|
|
|
|
|
|
if (success) {
|
|
|
|
|
|
|
|
var _storecustcode = _this.storeTRUCKNAME;
|
|
|
|
|
|
|
|
this.storeCustCode.loadData(_storecustcode.data.items);
|
|
|
|
|
|
|
|
this.storeCLIENTNAMEOLD.loadData(_storecustcode.data.items);
|
|
|
|
|
|
|
|
this.storeARCLIENTWMSOUT.loadData(_storecustcode.data.items);
|
|
|
|
|
|
|
|
this.storeARCLIENT.loadData(_storecustcode.data.items);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//#endregion
|
|
|
|
//#endregion
|
|
|
@ -168,17 +219,11 @@ Ext.extend(Shipping.WMSOUT_GuiGeEdit, Ext.Panel, {
|
|
|
|
//endregion
|
|
|
|
//endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//#region formSearch 下拉框信息加载
|
|
|
|
//#region formSearch 下拉框信息加载
|
|
|
|
|
|
|
|
|
|
|
|
//委托单位
|
|
|
|
|
|
|
|
this.storeCustCode = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
|
|
|
model: 'DsShipping.ux.CustomRefModel',
|
|
|
|
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' }
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
// this.storeCustCode.loadData(this.mainWin.GetPubStore("INFOCLIENT_ALL").data.items);
|
|
|
|
// this.storeCustCode.loadData(this.mainWin.GetPubStore("INFOCLIENT_ALL").data.items);
|
|
|
|
this.storeCustCode.load();
|
|
|
|
//this.storeCustCode.load();
|
|
|
|
this.comboxCustCode = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
this.comboxCustCode = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
fieldLabel: '客户名称', //需求编号:SR2017071300002-2
|
|
|
|
fieldLabel: '客户名称', //需求编号:SR2017071300002-2
|
|
|
|
store: this.storeCustCode,
|
|
|
|
store: this.storeCustCode,
|
|
|
@ -196,12 +241,8 @@ Ext.extend(Shipping.WMSOUT_GuiGeEdit, Ext.Panel, {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//转移对象,需求编号:SR2017073000001
|
|
|
|
|
|
|
|
this.storeCLIENTNAMEOLD = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
//this.storeCLIENTNAMEOLD.load();
|
|
|
|
model: 'DsShipping.ux.CustomRefModel',
|
|
|
|
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' }
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
this.storeCLIENTNAMEOLD.load();
|
|
|
|
|
|
|
|
//this.storeCLIENTNAMEOLD.loadData(this.mainWin.GetPubStore("OPSEAE_CUST_ISCONTROLLER").data.items);
|
|
|
|
//this.storeCLIENTNAMEOLD.loadData(this.mainWin.GetPubStore("OPSEAE_CUST_ISCONTROLLER").data.items);
|
|
|
|
this.comboxCLIENTNAMEOLD = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
this.comboxCLIENTNAMEOLD = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
fieldLabel: '转移对象',
|
|
|
|
fieldLabel: '转移对象',
|
|
|
@ -213,12 +254,8 @@ Ext.extend(Shipping.WMSOUT_GuiGeEdit, Ext.Panel, {
|
|
|
|
displayField: 'CodeAndName'
|
|
|
|
displayField: 'CodeAndName'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//应收仓储客户,需求编号:SR2017073000001
|
|
|
|
|
|
|
|
this.storeARCLIENTWMSOUT = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
//this.storeARCLIENTWMSOUT.load();
|
|
|
|
model: 'DsShipping.ux.CustomRefModel',
|
|
|
|
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' }
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
this.storeARCLIENTWMSOUT.load();
|
|
|
|
|
|
|
|
//this.storeARCLIENTWMSOUT.loadData(this.mainWin.GetPubStore("OPSEAE_CUST_ISCONTROLLER").data.items);
|
|
|
|
//this.storeARCLIENTWMSOUT.loadData(this.mainWin.GetPubStore("OPSEAE_CUST_ISCONTROLLER").data.items);
|
|
|
|
this.comboxARCLIENTWMSOUT = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
this.comboxARCLIENTWMSOUT = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
fieldLabel: '应收仓储客户',
|
|
|
|
fieldLabel: '应收仓储客户',
|
|
|
@ -229,12 +266,7 @@ Ext.extend(Shipping.WMSOUT_GuiGeEdit, Ext.Panel, {
|
|
|
|
displayField: 'CodeAndName'
|
|
|
|
displayField: 'CodeAndName'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//应收出库客户,需求编号:SR2017073000001
|
|
|
|
//this.storeARCLIENT.load();
|
|
|
|
this.storeARCLIENT = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
|
|
|
model: 'DsShipping.ux.CustomRefModel',
|
|
|
|
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' }
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
this.storeARCLIENT.load();
|
|
|
|
|
|
|
|
//this.storeARCLIENT.loadData(this.mainWin.GetPubStore("OPSEAE_CUST_ISCONTROLLER").data.items);
|
|
|
|
//this.storeARCLIENT.loadData(this.mainWin.GetPubStore("OPSEAE_CUST_ISCONTROLLER").data.items);
|
|
|
|
this.comboxARCLIENT = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
this.comboxARCLIENT = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
fieldLabel: '应收出库客户',
|
|
|
|
fieldLabel: '应收出库客户',
|
|
|
@ -246,12 +278,8 @@ Ext.extend(Shipping.WMSOUT_GuiGeEdit, Ext.Panel, {
|
|
|
|
displayField: 'CodeAndName'
|
|
|
|
displayField: 'CodeAndName'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//应付客户,需求编号:SR2017073000001
|
|
|
|
|
|
|
|
this.storeTRUCKNAME = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
//this.storeTRUCKNAME.load();
|
|
|
|
model: 'DsShipping.ux.CustomRefModel',
|
|
|
|
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' }
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
this.storeTRUCKNAME.load();
|
|
|
|
|
|
|
|
//this.storeTRUCKNAME.loadData(this.mainWin.GetPubStore("OPSEAE_CUST_ISCONTROLLER").data.items);
|
|
|
|
//this.storeTRUCKNAME.loadData(this.mainWin.GetPubStore("OPSEAE_CUST_ISCONTROLLER").data.items);
|
|
|
|
this.comboxTRUCKNAME = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
this.comboxTRUCKNAME = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
fieldLabel: '应付客户',
|
|
|
|
fieldLabel: '应付客户',
|
|
|
|