12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- Ext.define('uas.view.form.formpanel.FormPanelController', {
- extend: 'Ext.app.ViewController',
- alias: 'controller.formpanelcontroller',
- init: function (form) {
- var me = this;
- this.control({
- //放大镜赋值关系 以及 tpl模板
- 'producttrigger[name=code]':{
- beforerender:function(f){
- Ext.apply(f, {
- dbfinds: [{
- from: 'code',
- to: 'code',
- ignore: true
- }, {
- from: 'price',
- to: 'price'
- }],
- searchUrl:'/api/searchPlanTree',
- dataUrl:'/api/productList',
- addTitle: '物料资料',
- defaultCondition: "pr_statuscode='ENABLE'",
- });
- }
- },
- 'vendormultitrigger[name=vcode]':{
- beforerender:function(f){
- Ext.apply(f, {
- dbfinds: [{
- from: 'vcode',
- to: 'vcode',
- ignore: true
- }],
- searchUrl:'/api/searchPlanTree',
- dataUrl:'/api/productList',
- addTitle: '供应商资料',
- defaultCondition: "pr_statuscode='ENABLE'",
- });
- }
- }
- });
- }
- });
|