|
|
@@ -19,6 +19,7 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
|
|
|
// dataUrl:'http://localhost:9480/vendor/list',
|
|
|
addXtype: 'document-vendor-formpanel',
|
|
|
addTitle: '供应商资料',
|
|
|
+ defaultCondition:"ve_statuscode='OPEN'",
|
|
|
dbfinds:[{
|
|
|
from:'id',to:'pi_vendid'
|
|
|
},{
|
|
|
@@ -35,10 +36,14 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
|
|
|
dbtplfield:"ve_name",
|
|
|
//放大镜窗口字段
|
|
|
dbSearchFields:[{
|
|
|
+ emptyText:'输入供应商编号或名称',
|
|
|
xtype : "textfield",
|
|
|
name : "ve_name",
|
|
|
- fieldLabel : "供应商名称",
|
|
|
- columnWidth : 0.25
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.25,
|
|
|
+ getCondition:function(v){
|
|
|
+ return "ve_name like '%" + v + "%' or ve_code like '%"+ v +"%'";
|
|
|
+ }
|
|
|
}],
|
|
|
dbColumns:[{
|
|
|
conditionCode:'id',
|
|
|
@@ -100,13 +105,16 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
|
|
|
dbtplfield:"cu_name",
|
|
|
//放大镜窗口字段
|
|
|
dbSearchFields:[{
|
|
|
+ emptyText:'输入客户编号或名称',
|
|
|
xtype : "textfield",
|
|
|
name : "cu_name",
|
|
|
- fieldLabel : "客户名称",
|
|
|
- columnWidth : 0.25
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.25,
|
|
|
+ getCondition:function(v){
|
|
|
+ return "cu_name like '%" + v + "%' or cu_code like '%"+ v +"%'";
|
|
|
+ }
|
|
|
}],
|
|
|
dbColumns:[{
|
|
|
- conditionCode:'id',
|
|
|
"text": "客户ID",
|
|
|
"flex": 0,
|
|
|
"dataIndex": "id",
|
|
|
@@ -114,7 +122,6 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
|
|
|
"xtype": "",
|
|
|
"items": null
|
|
|
},{
|
|
|
- conditionCode:'cu_code',
|
|
|
"text": "客户编号",
|
|
|
"flex": 1,
|
|
|
"dataIndex": "cu_code",
|
|
|
@@ -122,12 +129,41 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
|
|
|
"xtype": "",
|
|
|
"items": null
|
|
|
}, {
|
|
|
- conditionCode:'cu_name',
|
|
|
"text": "客户名称",
|
|
|
"flex": 1,
|
|
|
"dataIndex": "cu_name",
|
|
|
"xtype": "",
|
|
|
"items": null
|
|
|
+ },{
|
|
|
+ "text": "客户类型",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_name",
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ },{
|
|
|
+ "text": "业务员",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_sellername",
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ },{
|
|
|
+ "text": "税率",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_taxrate",
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ },{
|
|
|
+ "text": "承付天数",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_promisedays",
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ },{
|
|
|
+ "text": "额度",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_credit",
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
}]
|
|
|
}) ;
|
|
|
|
|
|
@@ -149,6 +185,12 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
|
|
|
from:'pr_detail',to:'pr_detail'
|
|
|
},{
|
|
|
from:'pr_spec',to:'pr_spec'
|
|
|
+ },{
|
|
|
+ from:'pr_whid',to:'pd_whid'
|
|
|
+ },{
|
|
|
+ from:'pr_whcode',to:'pd_whcode'
|
|
|
+ },{
|
|
|
+ from:'pr_whname',to:'pd_whname'
|
|
|
}],
|
|
|
dbtpls:[{
|
|
|
field:'pr_code',width:100
|
|
|
@@ -157,38 +199,117 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
|
|
|
},{
|
|
|
field:'pr_spec',width:100
|
|
|
}],
|
|
|
+ //窗口字段设置
|
|
|
+ dbSearchFields:[{
|
|
|
+ emptyText:'输入物料编号或物料名称',
|
|
|
+ xtype : "textfield",
|
|
|
+ name : "search",
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.25,
|
|
|
+ getCondition:function(v){
|
|
|
+ return "pr_code like '%" + v + "%' or pr_detail like '%"+ v +"%'";
|
|
|
+ }
|
|
|
+ }],
|
|
|
dbColumns:[{
|
|
|
"text": "物料ID",
|
|
|
- "flex": 0,
|
|
|
- "dataIndex": "pr_id",
|
|
|
+ "dataIndex": "id",
|
|
|
"width": 0,
|
|
|
"xtype": "",
|
|
|
"items": null
|
|
|
},{
|
|
|
- "text": "物料编号",
|
|
|
- "flex": 1,
|
|
|
+ "text": "物料编号",
|
|
|
"dataIndex": "pr_code",
|
|
|
"width": 100,
|
|
|
"xtype": "",
|
|
|
"items": null
|
|
|
}, {
|
|
|
"text": "物料名称",
|
|
|
- "flex": 1,
|
|
|
+ "width": 100,
|
|
|
"dataIndex": "pr_detail",
|
|
|
"xtype": "",
|
|
|
"items": null
|
|
|
}, {
|
|
|
- "text": "物料规格",
|
|
|
+ "text": "规格",
|
|
|
"flex": 0,
|
|
|
"dataIndex": "pr_spec",
|
|
|
- "width": 200,
|
|
|
+ "width": 100,
|
|
|
"xtype": "",
|
|
|
"items": null
|
|
|
}, {
|
|
|
- "text": "物料单位",
|
|
|
+ "text": "单位",
|
|
|
"flex": 0,
|
|
|
- "dataIndex": "pr_unit",
|
|
|
- "width": 200,
|
|
|
+ "dataIndex": "pr_spec",
|
|
|
+ "width": 100,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ },{
|
|
|
+ "text": "仓库id",
|
|
|
+ "flex": 0,
|
|
|
+ "dataIndex": "pr_whid",
|
|
|
+ "width": 0,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ },{
|
|
|
+ "text": "仓库编号",
|
|
|
+ "flex": 0,
|
|
|
+ "dataIndex": "pr_whcode",
|
|
|
+ "width": 0,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ },{
|
|
|
+ "text": "仓库",
|
|
|
+ "flex": 0,
|
|
|
+ "dataIndex": "pr_whname",
|
|
|
+ "width": 100,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ },{
|
|
|
+ "text": "总库存数",
|
|
|
+ "flex": 0,
|
|
|
+ "dataIndex": "po_onhand",
|
|
|
+ "width": 100,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ },{
|
|
|
+ "text": "类型",
|
|
|
+ "flex": 0,
|
|
|
+ "dataIndex": "pr_kind",
|
|
|
+ "width": 100,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ },{
|
|
|
+ "text": "型号",
|
|
|
+ "flex": 0,
|
|
|
+ "dataIndex": "pr_orispeccode",
|
|
|
+ "width": 100,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ },{
|
|
|
+ "text": "品牌",
|
|
|
+ "flex": 0,
|
|
|
+ "dataIndex": "pr_brand",
|
|
|
+ "width": 100,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ },{
|
|
|
+ "text": "供应商",
|
|
|
+ "flex": 0,
|
|
|
+ "dataIndex": "pr_vendname",
|
|
|
+ "width": 100,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ },{
|
|
|
+ "text": "最小包装",
|
|
|
+ "flex": 0,
|
|
|
+ "dataIndex": "pr_zxbzs",
|
|
|
+ "width": 100,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ },{
|
|
|
+ "text": "L/T",
|
|
|
+ "flex": 0,
|
|
|
+ "dataIndex": "pr_leadtime",
|
|
|
+ "width": 100,
|
|
|
"xtype": "",
|
|
|
"items": null
|
|
|
}]
|
|
|
@@ -217,6 +338,16 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
|
|
|
},{
|
|
|
field:'pd_whname',width:100
|
|
|
}],
|
|
|
+ dbSearchFields:[{
|
|
|
+ emptyText:'输入仓库编号或名称',
|
|
|
+ xtype : "textfield",
|
|
|
+ name : "wh_code",
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.25,
|
|
|
+ getCondition:function(v){
|
|
|
+ return "wh_code like '%" + v + "%' or wh_description like '%"+ v +"%'";
|
|
|
+ }
|
|
|
+ }],
|
|
|
dbColumns:[{
|
|
|
"text": "仓库ID",
|
|
|
"flex": 0,
|
|
|
@@ -263,6 +394,16 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
|
|
|
},{
|
|
|
field:'pd_inwhname',width:100
|
|
|
}],
|
|
|
+ dbSearchFields:[{
|
|
|
+ emptyText:'输入仓库编号或名称',
|
|
|
+ xtype : "textfield",
|
|
|
+ name : "wh_code",
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.25,
|
|
|
+ getCondition:function(v){
|
|
|
+ return "wh_code like '%" + v + "%' or wh_description like '%"+ v +"%'";
|
|
|
+ }
|
|
|
+ }],
|
|
|
dbColumns:[{
|
|
|
"text": "仓库ID",
|
|
|
"flex": 0,
|