|
|
@@ -5,17 +5,17 @@ Ext.define('saas.view.stock.otherOut.QueryPanelController', {
|
|
|
init: function (form) {
|
|
|
var me = this;
|
|
|
this.control({
|
|
|
- //放大镜赋值关系 以及 tpl模板
|
|
|
- 'dbfindtrigger[name=pu_vendname]':{
|
|
|
+ // 供应商名称
|
|
|
+ 'dbfindtrigger[name=pi_vendname]':{
|
|
|
beforerender:function(f){
|
|
|
Ext.apply(f,{
|
|
|
dataUrl:'/api/document/vendor/list',
|
|
|
addXtype: 'document-vendor-formpanel',
|
|
|
addTitle: '供应商资料',
|
|
|
dbfinds:[{
|
|
|
- from:'ve_code',to:'pu_vendcode'
|
|
|
+ from:'ve_code',to:'pi_vendname'
|
|
|
},{
|
|
|
- from:'ve_name',to:'pu_vendname'
|
|
|
+ from:'ve_name',to:'pi_vendname'
|
|
|
}],
|
|
|
dbtpls:[{
|
|
|
field:'ve_code',width:100
|
|
|
@@ -77,17 +77,18 @@ Ext.define('saas.view.stock.otherOut.QueryPanelController', {
|
|
|
|
|
|
}
|
|
|
},
|
|
|
- //放大镜赋值关系 以及 tpl模板
|
|
|
- 'dbfindtrigger[name=pd_prodcode]':{
|
|
|
+ // 物料名称
|
|
|
+ 'dbfindtrigger[name=pr_detail]':{
|
|
|
beforerender:function(f){
|
|
|
Ext.apply(f,{
|
|
|
+ conditionCode:'pr_code',
|
|
|
dataUrl:'/api/document/product/list',
|
|
|
addXtype: 'document-product-formpanel',
|
|
|
addTitle: '物料资料',
|
|
|
dbfinds:[{
|
|
|
- from:'pr_code',to:'pd_prodcode'
|
|
|
+ from:'pr_code',to:'pd_prodcode',
|
|
|
}, {
|
|
|
- from:'pr_unit',to:'pd_unit'
|
|
|
+ from:'pr_detail',to:'pr_detail'
|
|
|
}],
|
|
|
dbtpls:[{
|
|
|
field:'pr_code',width:100
|
|
|
@@ -166,7 +167,7 @@ Ext.define('saas.view.stock.otherOut.QueryPanelController', {
|
|
|
"text": "L/T",
|
|
|
"dataIndex": "pr_leadtime",
|
|
|
"width": 100,
|
|
|
- }]
|
|
|
+ }]
|
|
|
}) ;
|
|
|
|
|
|
}
|