|
|
@@ -74,72 +74,6 @@ Ext.define('saas.view.purchase.purchase.FormPanelController', {
|
|
|
|
|
|
}
|
|
|
},
|
|
|
- // 从表-物料编号
|
|
|
- 'dbfindtrigger[name=pd_prodcode]':{
|
|
|
- beforerender:function(f){
|
|
|
- Ext.apply(f,{
|
|
|
- //数据接口
|
|
|
- dataUrl: '/api/document/product/list',
|
|
|
- addXtype: 'document-product-formpanel',
|
|
|
- addTitle: '物料资料',
|
|
|
- //放大镜赋值设置
|
|
|
- dbfinds:[{
|
|
|
- from:'pr_code',to:'pd_prodcode'
|
|
|
- }, {
|
|
|
- from:'pr_unit',to:'pd_unit'
|
|
|
- }, {
|
|
|
- from: 'pr_detail', to: 'pr_detail'
|
|
|
- }],
|
|
|
- //联想查询条件
|
|
|
- dbCondition:"CONCAT(pr_code, pr_detail) like '{0}%'",
|
|
|
- //联想设置
|
|
|
- dbtpls:[{
|
|
|
- field:'pr_code',width:100
|
|
|
- },{
|
|
|
- field:'pr_detail',width:100
|
|
|
- }],
|
|
|
- //窗口字段设置
|
|
|
- dbSearchFields:[{
|
|
|
- emptyText:'输入物料编号或物料名称',
|
|
|
- xtype : "textfield",
|
|
|
- name : "search",
|
|
|
- conditionExpression:"CONCAT(pr_code, pr_detail) like '{0}%'",
|
|
|
- allowBlank : true,
|
|
|
- columnWidth : 0.25
|
|
|
- }],
|
|
|
- //窗口列设置
|
|
|
- dbColumns:[{
|
|
|
- "text": "物料ID",
|
|
|
- "flex": 0,
|
|
|
- "dataIndex": "pr_id",
|
|
|
- "width": 0,
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- },{
|
|
|
- "text": "物料编号",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "pr_code",
|
|
|
- "width": 100,
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- }, {
|
|
|
- "text": "物料名称",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "pr_detail",
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- }, {
|
|
|
- "text": "物料规格",
|
|
|
- "flex": 0,
|
|
|
- "dataIndex": "pr_spec",
|
|
|
- "width": 200,
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- }]
|
|
|
- }) ;
|
|
|
-
|
|
|
- }
|
|
|
- },
|
|
|
//从表多选放大镜赋值关系 以及 tpl模板
|
|
|
'multidbfindtrigger[name=pd_prodcode]':{
|
|
|
beforerender:function(f){
|