|
|
@@ -15,17 +15,20 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
|
|
|
'dbfindtrigger[name=pi_vendname]':{
|
|
|
beforerender:function(f){
|
|
|
Ext.apply(f,{
|
|
|
+ //数据接口
|
|
|
dataUrl:'/api/document/vendor/list',
|
|
|
- // dataUrl:'http://localhost:9480/vendor/list',
|
|
|
addXtype: 'document-vendor-formpanel',
|
|
|
addTitle: '供应商资料',
|
|
|
+ defaultCondition:"ve_statuscode='OPEN'",
|
|
|
+ //赋值
|
|
|
dbfinds:[{
|
|
|
- from:'id',to:'pi_vendid'
|
|
|
+ from:'id',to:'pi_vendid',ignore:true
|
|
|
},{
|
|
|
from:'ve_code',to:'pi_vendcode'
|
|
|
},{
|
|
|
from:'ve_name',to:'pi_vendname'
|
|
|
}],
|
|
|
+ //联想设置
|
|
|
dbtpls:[{
|
|
|
field:'ve_code',width:100
|
|
|
},{
|
|
|
@@ -42,6 +45,7 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
|
|
|
allowBlank : true,
|
|
|
columnWidth : 0.25
|
|
|
}],
|
|
|
+ //放大镜窗口列表
|
|
|
dbColumns:[{
|
|
|
"text": "供应商ID",
|
|
|
"hidden": true,
|
|
|
@@ -72,7 +76,7 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
|
|
|
"dataIndex": "ve_promisedays",
|
|
|
"width": 100,
|
|
|
xtype: 'numbercolumn',
|
|
|
- align:'end'
|
|
|
+ align: 'end'
|
|
|
}, {
|
|
|
"text": "纳税人识别号",
|
|
|
"dataIndex": "ve_bankaccount",
|
|
|
@@ -91,24 +95,26 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
|
|
|
}
|
|
|
},
|
|
|
//放大镜赋值关系 以及 tpl模板
|
|
|
- 'dbfindtrigger[name=pi_custname]':{
|
|
|
- beforerender:function(f){
|
|
|
- Ext.apply(f,{
|
|
|
+ 'dbfindtrigger[name=pi_custname]': {
|
|
|
+ beforerender: function (f) {
|
|
|
+ Ext.apply(f, {
|
|
|
addXtype: 'document-customer-formpanel',
|
|
|
addTitle: '客户资料',
|
|
|
- dataUrl:'/api/document/customer/list',
|
|
|
+ dataUrl: '/api/document/customer/list',
|
|
|
// dataUrl:'http://localhost:9480/customer/list',
|
|
|
- dbfinds:[{
|
|
|
- from:'id',to:'pi_custid'
|
|
|
- },{
|
|
|
- from:'cu_code',to:'pi_custcode'
|
|
|
- },{
|
|
|
- from:'cu_name',to:'pi_custname'
|
|
|
+ dbfinds: [{
|
|
|
+ from: 'id',to: 'pi_custid',ignore:true
|
|
|
+ }, {
|
|
|
+ from: 'cu_code',to: 'pi_custcode'
|
|
|
+ }, {
|
|
|
+ from: 'cu_name',to: 'pi_custname'
|
|
|
}],
|
|
|
- dbtpls:[{
|
|
|
- field:'cu_code',width:100
|
|
|
- },{
|
|
|
- field:'cu_name',width:100
|
|
|
+ dbtpls: [{
|
|
|
+ field: 'cu_code',
|
|
|
+ width: 100
|
|
|
+ }, {
|
|
|
+ field: 'cu_name',
|
|
|
+ width: 100
|
|
|
}],
|
|
|
defaultCondition:"cu_statuscode='OPEN'",
|
|
|
//放大镜窗口字段
|
|
|
@@ -119,7 +125,7 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
|
|
|
allowBlank : true,
|
|
|
columnWidth : 0.25,
|
|
|
getCondition:function(v){
|
|
|
- return "upper(cu_name) like '%"+v.toUpperCase()+"%' or upper(cu_code) like '%"+v.toUpperCase()+"%'";
|
|
|
+ return "(upper(cu_name) like '%"+v.toUpperCase()+"%' or upper(cu_code) like '%"+v.toUpperCase()+"%')";
|
|
|
}
|
|
|
}],
|
|
|
dbColumns:[{
|
|
|
@@ -161,10 +167,10 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
|
|
|
xtype: 'numbercolumn',
|
|
|
align:'end'
|
|
|
}]
|
|
|
- }) ;
|
|
|
+ });
|
|
|
|
|
|
}
|
|
|
- },
|
|
|
+ },
|
|
|
//放大镜赋值关系 以及 tpl模板
|
|
|
'multidbfindtrigger[name=pd_prodcode]':{
|
|
|
beforerender:function(f){
|
|
|
@@ -292,9 +298,9 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
|
|
|
from:'wh_description',to:'pd_whname'
|
|
|
}],
|
|
|
dbtpls:[{
|
|
|
- field:'pd_whcode',width:100
|
|
|
+ field:'wh_code',width:100
|
|
|
},{
|
|
|
- field:'pd_whname',width:100
|
|
|
+ field:'wh_description',width:100
|
|
|
}],
|
|
|
dbSearchFields:[{
|
|
|
emptyText:'输入仓库编号或名称',
|
|
|
@@ -353,9 +359,9 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
|
|
|
from:'wh_description',to:'pd_inwhname'
|
|
|
}],
|
|
|
dbtpls:[{
|
|
|
- field:'pd_whcode',width:100
|
|
|
+ field:'wh_code',width:100
|
|
|
},{
|
|
|
- field:'pd_whname',width:100
|
|
|
+ field:'wh_description',width:100
|
|
|
}],
|
|
|
dbSearchFields:[{
|
|
|
emptyText:'输入仓库编号或名称',
|