|
|
|
@ -281,9 +281,17 @@ Ext.extend(DsTruck.Wms_StockTakeIndex, Ext.Panel, {
|
|
|
|
|
items: [{
|
|
|
|
|
fieldLabel: '库别',
|
|
|
|
|
name: 'WHS_CODE'
|
|
|
|
|
}, { xtype: 'hiddenfield' }
|
|
|
|
|
, { xtype: 'hiddenfield' }
|
|
|
|
|
, { xtype: 'hiddenfield' }
|
|
|
|
|
}, {
|
|
|
|
|
fieldLabel: '储位',
|
|
|
|
|
//hidden:true,
|
|
|
|
|
id:"PS_AREANAME",
|
|
|
|
|
name: 'AREANAME'
|
|
|
|
|
}, {
|
|
|
|
|
fieldLabel: '批次号',
|
|
|
|
|
//hidden: true,
|
|
|
|
|
id: "PS_PICIHAO",
|
|
|
|
|
name: 'PICIHAO'
|
|
|
|
|
}, { xtype: 'hiddenfield' }
|
|
|
|
|
, { xtype: 'hiddenfield' }
|
|
|
|
|
]
|
|
|
|
|
}]
|
|
|
|
@ -331,6 +339,7 @@ Ext.extend(DsTruck.Wms_StockTakeIndex, Ext.Panel, {
|
|
|
|
|
{ name: 'GOODSSLICE_OUT', type: 'number' }, //需求编号:SR2017071100001
|
|
|
|
|
{ name: 'AREANAME', type: 'string' },//需求编号:SR2020051900002
|
|
|
|
|
{ name: 'WHS_CODE', type: 'string' },
|
|
|
|
|
{ name: 'PICIHAO', type: 'string' },
|
|
|
|
|
{ name: 'COUNTRYOFORIGIN', type: 'string' }
|
|
|
|
|
],
|
|
|
|
|
remoteSort: true,
|
|
|
|
@ -381,6 +390,7 @@ Ext.extend(DsTruck.Wms_StockTakeIndex, Ext.Panel, {
|
|
|
|
|
{ name: 'ISBONDEDNAME', type: 'string' }, //是否保税:SR2017062600003
|
|
|
|
|
{ name: 'GOODSSLICE_OUT', type: 'number' }, //需求编号:SR2017071100001
|
|
|
|
|
{ name: 'AREANAME', type: 'string' },//需求编号:SR2020051900002
|
|
|
|
|
{ name: 'PICIHAO', type: 'string' },
|
|
|
|
|
{ name: 'WHS_CODE', type: 'string' },
|
|
|
|
|
{ name: 'COUNTRYOFORIGIN', type: 'string' }
|
|
|
|
|
],
|
|
|
|
@ -749,6 +759,234 @@ Ext.extend(DsTruck.Wms_StockTakeIndex, Ext.Panel, {
|
|
|
|
|
width: 80
|
|
|
|
|
}];
|
|
|
|
|
|
|
|
|
|
this.WMSINcolums = [
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'WMSDATE',
|
|
|
|
|
header: '入库日期',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'COUNTRYOFORIGIN',
|
|
|
|
|
header: '原产国',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CUSTOMERNAME',
|
|
|
|
|
header: '货主',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'MBLNO',
|
|
|
|
|
header: '提单号',
|
|
|
|
|
width: 100
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CUSTNO',
|
|
|
|
|
header: '委托编号',
|
|
|
|
|
width: 100
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'WMSNO',
|
|
|
|
|
header: '入库单号',
|
|
|
|
|
width: 150
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'STORAGENAME',
|
|
|
|
|
header: '仓库',
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'WHS_CODE',
|
|
|
|
|
header: '库别',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'GOODSNAME',
|
|
|
|
|
header: '品名',
|
|
|
|
|
width: 150
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'GOODSMODEL',
|
|
|
|
|
header: '单位', //品牌,需求编号:SR2017061800001-12
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'GOODSSTANDARD',
|
|
|
|
|
header: '规格',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
//summaryType: 'sum',
|
|
|
|
|
//summaryRenderer: Ext.util.Format.numberRenderer('00.00'),
|
|
|
|
|
dataIndex: 'hj_GOODSPACK',
|
|
|
|
|
header: '入库件数',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
//需求编号:SR2017062200002
|
|
|
|
|
sortable: true,
|
|
|
|
|
//summaryType: 'sum',
|
|
|
|
|
//summaryRenderer: Ext.util.Format.numberRenderer('00.00'),
|
|
|
|
|
dataIndex: 'WeiWanShui',
|
|
|
|
|
header: '未完税件数',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
//summaryType: 'sum',
|
|
|
|
|
//summaryRenderer: Ext.util.Format.numberRenderer('00.00'),
|
|
|
|
|
dataIndex: 'GOODSNUM',
|
|
|
|
|
header: '完税件数',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
//summaryType: 'sum',
|
|
|
|
|
//summaryRenderer: Ext.util.Format.numberRenderer('00.00'),
|
|
|
|
|
dataIndex: 'hj_GOODSPACKPFSL',
|
|
|
|
|
header: '出库件数',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
//需求编号:SR2017061800001-7,SR2017071100001
|
|
|
|
|
sortable: true,
|
|
|
|
|
//summaryType: 'sum',
|
|
|
|
|
//summaryRenderer: Ext.util.Format.numberRenderer('00.00'),
|
|
|
|
|
dataIndex: 'GOODSSLICE_OUT',
|
|
|
|
|
header: '出库包装件数',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
//summaryType: 'sum',
|
|
|
|
|
//summaryRenderer: Ext.util.Format.numberRenderer('00.00'),
|
|
|
|
|
dataIndex: 'hj_GOODSPACKSTOCK',
|
|
|
|
|
header: '库存件数',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
//summaryType: 'sum',
|
|
|
|
|
//summaryRenderer: Ext.util.Format.numberRenderer('00.00'),
|
|
|
|
|
dataIndex: 'hj_GOODSRKSL',
|
|
|
|
|
header: '入库数量',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
//summaryType: 'sum',
|
|
|
|
|
//summaryRenderer: Ext.util.Format.numberRenderer('00.00'),
|
|
|
|
|
dataIndex: 'hj_GOODSPFSL_OUT',
|
|
|
|
|
header: '出库数量',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
//summaryType: 'sum',
|
|
|
|
|
//summaryRenderer: Ext.util.Format.numberRenderer('00.00'),
|
|
|
|
|
dataIndex: 'hj_GOODSSTOCK',
|
|
|
|
|
header: '库存数量',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CLEARSTOCKGAP',
|
|
|
|
|
header: '清库差',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'AREANAME',
|
|
|
|
|
header: '储位',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'PICIHAO',
|
|
|
|
|
header: '批次号',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CUSTOMNO',
|
|
|
|
|
header: '报关单号/备案清单号',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CHARGEUNIT',
|
|
|
|
|
header: '计算单位',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CONTRACTNO',
|
|
|
|
|
header: '合同号',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'GOODSGRADE',
|
|
|
|
|
header: '品名的等级',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
//是否保税:SR2017062600003
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'ISBONDEDNAME',
|
|
|
|
|
header: '是否保税业务',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'REMARK',
|
|
|
|
|
header: '备注',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
//summaryType: 'sum',
|
|
|
|
|
//summaryRenderer: Ext.util.Format.numberRenderer('00.00'),
|
|
|
|
|
dataIndex: 'hj_GOODSPACKACTUAL',
|
|
|
|
|
header: '实际件数',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
//summaryType: 'sum',
|
|
|
|
|
//summaryRenderer: Ext.util.Format.numberRenderer('00.00'),
|
|
|
|
|
dataIndex: 'hj_GOODSRKSLACTUAL',
|
|
|
|
|
header: '实际数量',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
hidden: true,
|
|
|
|
|
dataIndex: 'GID',
|
|
|
|
|
header: 'GID',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
|
hidden: true,
|
|
|
|
|
dataIndex: 'ASSOCIATEDNO',
|
|
|
|
|
header: 'BSNO',
|
|
|
|
|
width: 80
|
|
|
|
|
}];
|
|
|
|
|
|
|
|
|
|
this.initgirdDrcolums_Customer = [
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
@ -950,7 +1188,6 @@ Ext.extend(DsTruck.Wms_StockTakeIndex, Ext.Panel, {
|
|
|
|
|
width: 80
|
|
|
|
|
}];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.initgirdDrcolums_CNTRNO = [
|
|
|
|
|
{
|
|
|
|
|
sortable: true,
|
|
|
|
@ -1069,6 +1306,9 @@ Ext.extend(DsTruck.Wms_StockTakeIndex, Ext.Panel, {
|
|
|
|
|
this.column_CNTRNO = this.initgirdDrcolums_CNTRNO;
|
|
|
|
|
this.column_CNTRNO = DsTruck.GetGridPanel(USERID, this.formname + "_CNTRNO", this.column_CNTRNO, 0); //使用者id,表名,中间column数组,跳过一开始的几列
|
|
|
|
|
|
|
|
|
|
this.column_WMSIN = this.WMSINcolums;
|
|
|
|
|
this.column_WMSIN = DsTruck.GetGridPanel(USERID, this.formname + "_WMSIN", this.column_WMSIN, 0); //使用者id,表名,中间column数组,跳过一开始的几列
|
|
|
|
|
|
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
|
//#region gridList列表显示信息
|
|
|
|
@ -1112,7 +1352,7 @@ Ext.extend(DsTruck.Wms_StockTakeIndex, Ext.Panel, {
|
|
|
|
|
},
|
|
|
|
|
stateful: false,
|
|
|
|
|
selModel: this.KCCBModel,
|
|
|
|
|
columns: this.column,
|
|
|
|
|
columns: this.column_WMSIN,
|
|
|
|
|
bbar: Ext.create('Ext.PagingToolbar', {
|
|
|
|
|
store: this.storeWMSINList,
|
|
|
|
|
displayInfo: true,
|
|
|
|
@ -1485,7 +1725,8 @@ Ext.extend(DsTruck.Wms_StockTakeIndex, Ext.Panel, {
|
|
|
|
|
region: "center",
|
|
|
|
|
items: [this.page_1, this.page_2, this.page_3, this.page_4, this.page_5, this.page_6],
|
|
|
|
|
listeners: {
|
|
|
|
|
tabchange: function (tp, p) {
|
|
|
|
|
tabchange: function (tabPanel, newCard, oldCard, eOpts) {
|
|
|
|
|
_this.setSearch(newCard);
|
|
|
|
|
_this.onRefreshClick();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1555,20 +1796,23 @@ Ext.extend(DsTruck.Wms_StockTakeIndex, Ext.Panel, {
|
|
|
|
|
}
|
|
|
|
|
if (_p == "page_6") {
|
|
|
|
|
this.storeWMSINList.load({
|
|
|
|
|
params: { start: 0, limit: this.PageSize, condition: sql, GROUPBY: "CNTRNO" },
|
|
|
|
|
params: { start: 0, limit: this.PageSize, condition: sql, GROUPBY: "" },
|
|
|
|
|
waitMsg: "正在查询数据...",
|
|
|
|
|
scope: this
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.storeList_Sum.load({
|
|
|
|
|
params: { start: 0, limit: this.PageSize, condition: sql },
|
|
|
|
|
params: { start: 0, limit: this.PageSize, condition: sqlsum },
|
|
|
|
|
waitMsg: "正在查询数据...",
|
|
|
|
|
scope: this
|
|
|
|
|
});
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
getCondition: function () {
|
|
|
|
|
getCondition: function (issum) {
|
|
|
|
|
var form = this.formSearch.getForm();
|
|
|
|
|
if (!form.isValid()) {
|
|
|
|
|
Ext.Msg.alert('提示', '查询条件赋值错误,请检查。');
|
|
|
|
@ -1636,6 +1880,13 @@ Ext.extend(DsTruck.Wms_StockTakeIndex, Ext.Panel, {
|
|
|
|
|
var WHS_CODE = form.findField('WHS_CODE').getValue();
|
|
|
|
|
if (WHS_CODE != "") { sql = sql + getAndConSql(sql, WHS_CODE, "vws.WHS_CODE = '" + WHS_CODE + "'"); }
|
|
|
|
|
|
|
|
|
|
var AREANAME = form.findField('AREANAME').getValue();
|
|
|
|
|
sql = sql + getAndConSql(sql, AREANAME, "vws.AREANAME like '%" + AREANAME + "%'");
|
|
|
|
|
|
|
|
|
|
var PICIHAO = form.findField('PICIHAO').getValue();
|
|
|
|
|
sql = sql + getAndConSql(sql, PICIHAO, "vws.PICIHAO like '%" + PICIHAO + "%'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return sql;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -1670,15 +1921,43 @@ Ext.extend(DsTruck.Wms_StockTakeIndex, Ext.Panel, {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
setSearch: function (newCard) {
|
|
|
|
|
if (newCard.id == "page_6")
|
|
|
|
|
{
|
|
|
|
|
//areaname = Ext.getCmp("PS_AREANAME");
|
|
|
|
|
//picihao = Ext.getCmp("PS_PICIHAO");
|
|
|
|
|
|
|
|
|
|
//areaname.setValue("");
|
|
|
|
|
//picihao.setValue("");
|
|
|
|
|
|
|
|
|
|
//areaname.hidden = false;
|
|
|
|
|
//picihao.hidden = false;
|
|
|
|
|
} else
|
|
|
|
|
{
|
|
|
|
|
//areaname = Ext.getCmp("PS_AREANAME");
|
|
|
|
|
//picihao = Ext.getCmp("PS_PICIHAO");
|
|
|
|
|
|
|
|
|
|
//areaname.setValue("");
|
|
|
|
|
//picihao.setValue("");
|
|
|
|
|
|
|
|
|
|
//areaname.hidden = true;
|
|
|
|
|
//picihao.hidden = true;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
|
//#region 保存列表样式
|
|
|
|
|
onSaveClick: function (button, event) {
|
|
|
|
|
var sql = this.getCondition();
|
|
|
|
|
var _p = this.MainTab.getActiveTab().id;
|
|
|
|
|
if (_p == "page_1" || _p == "page_6") {
|
|
|
|
|
if (_p == "page_1" ) {
|
|
|
|
|
this.columns = DsTruck.SaveGridPanel(USERID, this.formname, this.gridList.columns, this.column, 0, true); //使用者id,表名,中间column数组,跳过一开始的几列
|
|
|
|
|
}
|
|
|
|
|
if (_p == "page_6") {
|
|
|
|
|
this.columns = DsTruck.SaveGridPanel(USERID, this.formname + "_WMSIN", this.gridList_WMSIN.columns, this.column_WMSIN, 0, true); //使用者id,表名,中间column数组,跳过一开始的几列
|
|
|
|
|
}
|
|
|
|
|
if (_p == "page_2") {
|
|
|
|
|
this.column_Customer = DsTruck.SaveGridPanel(USERID, this.formname + "_Customer", this.gridList_Customer.columns, this.column_Customer, 0, true); //使用者id,表名,中间column数组,跳过一开始的几列
|
|
|
|
|
}
|
|
|
|
@ -1737,11 +2016,17 @@ Ext.extend(DsTruck.Wms_StockTakeIndex, Ext.Panel, {
|
|
|
|
|
if (_p == "page_3") {
|
|
|
|
|
GridExportExcelPage(this.gridList_Company);
|
|
|
|
|
}
|
|
|
|
|
if (_p == "page_4") {
|
|
|
|
|
if (_p == "page_4")
|
|
|
|
|
{
|
|
|
|
|
GridExportExcelPage(this.gridList_GOODSNAME);
|
|
|
|
|
} if (_p == "page_5") {
|
|
|
|
|
}
|
|
|
|
|
if (_p == "page_5")
|
|
|
|
|
{
|
|
|
|
|
GridExportExcelPage(this.gridList_CNTRNO);
|
|
|
|
|
}
|
|
|
|
|
if (_p == "page_6") {
|
|
|
|
|
GridExportExcelPage(this.gridList_WMSIN);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
|