zhuth 7 лет назад
Родитель
Сommit
b02e5bb96d

+ 0 - 47
frontend/saas-web/app/util/GridUtil.js

@@ -1,47 +0,0 @@
-Ext.define('saas.util.GridUtil', {
-
-    BaseUtil: Ext.create('saas.util.BaseUtil'),
-
-    /**
-     * 获取grid列配置
-     * @param grid grid组件
-     * @param url 请求url
-     */
-    setColumns: function(grid, url) {
-        this.BaseUtil.request({url})
-        .then(function(response) {
-            var columns = Ext.decode(response.responseText);
-            var fields = columns.map(column => column.dataIndex);
-            var store = Ext.create('Ext.data.Store', {
-                fields,
-            });
-            if(grid.showIndex) {
-                columns.unshift({ xtype: 'rownumberer' });
-            }
-            grid.reconfigure(store, columns);
-
-            grid.fireEvent('afterSetColumns', grid, columns);
-        })
-        .catch(function(response) {
-            // something...
-        });
-    },
-
-    /**
-     * 获取grid数据
-     * @param grid grid组件
-     * @param url 请求url
-     */
-    loadData: function(grid, url) {
-        this.BaseUtil.request({url})
-        .then(function(response) {
-            var data = Ext.decode(response.responseText);
-                grid.getStore().loadData(data);
-
-                grid.fireEvent('afterLoadData', grid, data);
-        })
-        .catch(function(response) {
-            // something...
-        });
-    }
-});

+ 0 - 200
frontend/saas-web/app/util/QueryUtil.js

@@ -1,200 +0,0 @@
-Ext.define('saas.util.QueryUtil', {
-
-    BaseUtil: Ext.create('saas.util.BaseUtil'),
-
-     /**
-     * 获得form的字段查询条件
-     * @param form: form组件
-     * @returns Mode: 字段模式,默认MAIN 当f.fieldMode = "DETAIL",Mode->"DETAIL"
-     */
-    getStoreMode: function(form,Mode){
-        var Mode = "MAIN";
-        if(form.items.items.find(function(item) {
-            return !Ext.isEmpty(item.value)&&item.fieldMode == "DETAIL";
-        })) {
-            Mode = "DETAIL";
-        }
-        return Mode;
-    },
-    turnRelativeGrid:function(grid,queryForm,queryMoreForm){
-        var me = this,
-            Mode = me.getStoreMode(queryForm);
-        if(queryMoreForm){//更多查询
-            if(Mode=="MAIN"){
-                me.getStoreMode(queryMoreForm);
-            }
-        }
-        if(Mode=="MAIN"){
-            grid.Mode = Mode;
-            grid.reconfigure(grid.store, grid.baseColumn);
-            grid.store.loadPage(1);
-        }else{
-            //若明细字段含明细字段注意切换数据源 grid.reconfigure(store, columns);
-            //关联viewName = 关联viewName+"-RelativeGrid" selModel
-            //grid.selModel = '';
-            grid.Mode = Mode;
-            grid.reconfigure(grid.store, grid.relativeColumn);
-            grid.store.loadPage(1);
-        }
-    },
-      /**
-     * 获得form的字段查询条件
-     * @param form: form组件
-     */
-    getFormCondition: function(form){
-        var condition = "",
-        me = this;
-        Ext.each(form.items.items, function(f){
-				if((f.xtype == 'checkbox' || f.xtype == 'radio')&&f.logic){
-					if(f.value == true) {
-						if(condition == ''){
-							condition += "("+f.logic+")";
-						} else {
-							condition += ' AND (' + f.logic+')';
-						}
-					}
-				} else if (f.xtype == 'condatefield' && f.value != null ){
-                    if(f.value.from != null){
-                        if(condition == ''){
-                            condition += " ( date("+f.name+") between '"+Ext.Date.format(f.value.from,"Y-m-d H:i:s")+"' and '"+Ext.Date.format(f.value.to,"Y-m-d H:i:s")+"' )";
-                        } else {
-                            condition += " AND ( date("+f.name+") between '"+Ext.Date.format(f.value.from,"Y-m-d H:i:s")+"' and '"+Ext.Date.format(f.value.to,"Y-m-d H:i:s")+"' )";
-                        }
-                    }
-                }else if(f.xtype == 'datefield' && f.value != null && f.value != '' ){
-					var v = Ext.Date.format(new Date(f.value), 'Y-m-d');
-					if(condition == ''){
-						condition += "date("+f.name+")='"+v+"'";
-					} else {
-						condition += " AND date("+f.name+")='"+v+"'";
-					}
-				} else if(f.xtype == 'datetimefield' && f.value != null){
-                    var v = Ext.Date.format(new Date(f.value), 'Y-m-d H:i:s');
-					if(condition == ''){
-						condition += 'date('+f.name + ")= '" + v + "'";
-					} else {
-						condition += ' AND date('+f.name + ")= '" + v + "'";
-					}
-				} else if(f.xtype == 'numberfield' && f.value != null && f.value != ''){
-					var endChar = '=';
-					if(condition == ''){
-						condition += f.name + endChar + f.value;
-					} else {
-						condition += ' AND ' + f.name + endChar + f.value;
-					}
-				} else if(f.xtype == 'combobox' ){
-                    if(f.value != '$ALL'&& f.value!=null){
-                        if(condition == ''){
-                            condition = f.name+" = '"+f.value+"' ";
-                        } else {
-                            condition += ' AND '+f.name+" = '"+f.value+"' ";
-                        }
-                    }
-				} else if(f.xtype == 'multicombo' ){
-				    if(f.value && f.value.length > 0){
-                        var text = f.value.map(function(v) {
-                            return '\'' + v.value + '\'';
-                        }).join(',');
-                        if(condition == ''){
-                            condition = f.name + " in (" + text +")";
-                        } else {
-                            condition += ' AND ' +  f.name + " in (" + text +")";
-                        }
-                    }
-
-                } else {
-                    if(!Ext.isEmpty(f.value)){
-                        if(me.contains(f.value.toString(), 'BETWEEN', true) && me.contains(f.value.toString(), 'AND', true)){
-                            if(condition == ''){
-                                condition += f.name + " " + f.value;
-                            } else {
-                                condition += ' AND (' + f.name + " " + f.value + ")";
-                            }
-                        } else if(me.contains(f.value.toString(), '||', true)){
-                            var str = '';
-                            Ext.each(f.value.split('||'), function(v){
-                                if(v != null && v != ''){
-                                    if(str == ''){
-                                        str += f.name + "='" + v + "'";
-                                    } else {
-                                        str += ' OR ' + f.name + "='" + v + "'";
-                                    }
-                                }
-                            });
-                            if(condition == ''){
-                                condition += "(" + str + ")";
-                            } else {
-                                condition += ' AND (' + str + ")";
-                            }
-                        } else if(f.value.toString().charAt(0) == '!'){ 
-                            if(condition == ''){
-                                condition += 'nvl(' + f.name + ",' ')<>'" + f.value.substr(1) + "'";
-                            } else {
-                                condition += ' AND (nvl(' + f.name + ",' ')<>'" + f.value.substr(1) + "')";
-                            }
-                        } else {
-                            if(f.value.toString().indexOf('%') >= 0) {
-                                if(condition == ''){
-                                    condition += f.name + " like '" + f.value + "'";
-                                } else {
-                                    condition += ' AND (' + f.name + " like '" + f.value + "')";
-                                }
-                            } else {
-                                if(f.queryType=='VAG'){
-                                    if(condition == ''){
-                                        if(me.contains(f.name.toString(), '#', true)){
-                                            var nameArr = f.name.split("#");
-                                            Ext.each(nameArr, function(nameItem,index) {
-                                                if(index==0){
-                                                    condition = (nameItem+ " like '%" +f.value + "%'");
-                                                }else{
-                                                    condition += " or "+nameItem+ " like '%" +f.value + "%' ";
-                                                }
-                                            });
-                                        }else{
-                                            condition += '('+ f.name + " like '%" + f.value + "%')";
-                                        }
-                                    } else {
-                                        if(me.contains(f.name.toString(), '#', true)){
-                                            var nameArr = f.name.split("#");
-                                            Ext.each(nameArr, function(nameItem,index) {
-                                                if(index==0){
-                                                    condition += ' AND ('+(nameItem+ " like '%" +f.value + "%'");
-                                                }else{
-                                                    condition += " or "+nameItem+ " like '%" +f.value + "%' ";
-                                                }
-                                            });
-                                            condition+=')';
-                                        }else{
-                                            condition += ' AND (' + f.name + " like '%" + f.value + "%')";
-                                        }
-                                    }
-                                }else{
-                                    if(condition == ''){
-                                        condition += '('+f.name + "='" + f.value + "')";
-                                    } else {
-                                        condition += ' AND (' + f.name + "='" + f.value + "')";
-                                    }
-                                }
-                            }
-                        }
-                    }
-                    
-				}
-        });
-        return condition;
-    },
-    /**
-	 * string:原始字符串
-	 * substr:子字符串
-	 * isIgnoreCase:忽略大小写
-	 */
-    contains: function(string, substr, isIgnoreCase){
-		if (string == null || substr == null) return false;
-		if (isIgnoreCase === undefined || isIgnoreCase === true) {
-			string = string.toLowerCase();
-			substr = substr.toLowerCase();
-		}
-		return string.indexOf(substr) > -1;
-    }
-});

+ 1 - 1
frontend/saas-web/app/view/core/form/FormPanelController.js

@@ -112,9 +112,9 @@ Ext.define('saas.view.core.form.FormPanelController', {
         })
         .then(function(localJson) {
             if(localJson.success){
-                Ext.toast('保存成功');
                 form.initId = localJson.data.id;
                 form.FormUtil.loadData(form);
+                Ext.toast('保存成功');
             }
         })
         .catch(function(e) {

+ 0 - 32
frontend/saas-web/app/view/test/myform/FormPanel.js

@@ -1,32 +0,0 @@
-
-Ext.define('saas.view.test.myform.FormPanel',{
-    extend: 'saas.view.core.form.FormPanel',
-    xtype: 'test-myform-formpanel',
-
-    controller: 'test-myform-formpanel',
-    viewModel: {
-        type: 'test-myform-formpanel'
-    },
-
-    defaultItems: [{
-        xtype: 'detailGridField',
-        store: Ext.create('Ext.data.Store', {
-            fields: ['col1', 'col2'],
-            data: []
-        }),
-        columns: [{
-            text : "col1", 
-            editor : {
-                xtype : "textfield"
-            }, 
-            dataIndex : "col1", 
-            width : 120.0
-        }, {
-            text : "col2", 
-            editor : {
-                xtype : "textfield"
-            }, 
-            dataIndex : "col2"
-        }]
-    }]
-});

+ 0 - 22
frontend/saas-web/app/view/test/myform/FormPanelController.js

@@ -1,22 +0,0 @@
-Ext.define('saas.view.test.myform.FormPanelController', {
-    extend: 'saas.view.core.form.FormPanelController',
-    alias: 'controller.test-myform-formpanel',
-
-    control: {
-        'form': {
-            afterSetItems: function(form) {
-                // viewModel.notify();
-                // formPanel.getForm().getFields().each(function(field) {
-                //     field.resetOriginalValue();
-                // });
-            }
-        }
-    },
-
-    save: function() {
-        var me = this,
-        form = me.getView(),
-        viewModel = me.getViewModel();
-            
-    }
-});

+ 0 - 10
frontend/saas-web/app/view/test/myform/FormPanelModel.js

@@ -1,10 +0,0 @@
-Ext.define('saas.view.test.myform.FormPanelModel', {
-    extend: 'saas.view.core.form.FormPanelModel',
-    alias: 'viewmodel.test-myform-formpanel',
-    
-    data: {
-        company: '深圳市优软科技有限公司',
-        name: 'saas'
-    }
-
-});

+ 0 - 201
frontend/saas-web/app/view/test/order/FormController.js

@@ -1,201 +0,0 @@
-Ext.define('saas.view.test.order.FormController', {
-    extend: 'saas.view.core.form.FormPanelController',
-    alias: 'controller.test-order-formcontroller',
-    init: function (form) {
-        var me = this;
-        this.control({
-            /**放大镜新增demo*/
-            "field[name=combo]":{
-                beforerender:function(f){
-                    f.addHandler=me.addCombo;
-                }
-            },
-            //主表单选放大镜模板
-            'dbfindtrigger[name=pu_vendcode]':{
-                beforerender:function(f){
-                    Ext.apply(f,{
-                        //数据接口
-                        dataUrl:basePath + 'document/vendor/list',
-                        //赋值 
-                        dbfinds:[{
-                            from:'ve_code',to:'pu_vendcode'
-                        },{
-                            from:'ve_name',to:'pu_vendname'
-                        }],
-                        //联想设置
-                        dbtpls:[{
-                            field:'ve_code',width:100
-                        },{
-                            field:'ve_name',width:100
-                        }],
-                        //联想查询条件
-                        //dbCondition:"CONCAT(ve_code, ve_name) like '{0}%'",
-                        //放大镜窗口字段
-                        dbSearchFields:[{
-                            xtype : "textfield", 
-                            name : "ve_name", 
-                            conditionExpression:"ve_name like '{0}%'",//传入后台条件  替换占位符
-                            fieldLabel : "供应商名称", 
-                            columnWidth : 0.25
-                        }],
-                        //放大镜窗口列表
-                        dbColumns:[{
-                            "text": "供应商ID",
-                            "flex": 0,
-                            "dataIndex": "ve_id",
-                            "width": 0,
-                            "xtype": "",
-                            "items": null
-                        },{
-                            "text": "供应商编号",
-                            "flex": 1,
-                            "dataIndex": "ve_code",
-                            "width": 100,
-                            "xtype": "",
-                            "items": null
-                        }, {
-                            "text": "供应商名称",
-                            "flex": 1,
-                            "dataIndex": "ve_name",
-                            "xtype": "",
-                            "items": null
-                        }, {
-                            "text": "供应商类型",
-                            "flex": 0,
-                            "dataIndex": "ve_type",
-                            "width": 200,
-                            "xtype": "",
-                            "items": null
-                        }]
-                    }) ;   
-
-                }
-            },
-            //从表单选放大镜赋值关系 以及 tpl模板
-            'dbfindtrigger[name=pd_prodcode]':{
-                beforerender:function(f){
-                    Ext.apply(f,{
-                        //数据接口
-                        dataUrl:basePath + 'document/product/getProductsByCondition',
-                        //放大镜赋值设置
-                        dbfinds:[{
-                            from:'pr_code',to:'pd_prodcode'
-                        },{
-                            from:'pr_unit',to:'pd_unit'
-                        }],
-                        //联想查询条件
-                        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){
-                    Ext.apply(f,{
-                        //数据接口
-                        dataUrl:basePath + 'document/product/getProductsByCondition',
-                        //放大镜赋值设置
-                        dbfinds:[{
-                            from:'pr_code',to:'pd_prodcode'
-                        },{
-                            from:'pr_unit',to:'pd_unit'
-                        }],
-                        //联想查询条件
-                        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
-                        }]
-                    }) ;   
-
-                }
-            }
-        });
-
-    }
-});

+ 0 - 6
frontend/saas-web/app/view/test/order/FormModel.js

@@ -1,6 +0,0 @@
-Ext.define('saas.view.test.order.FormModel', {
-    extend: 'saas.view.core.form.FormPanelModel',
-    alias: 'viewmodel.test-order-formmodel',
-
-    
-});

+ 0 - 279
frontend/saas-web/app/view/test/order/FormPanel.js

@@ -1,279 +0,0 @@
-Ext.define('saas.view.test.order.FormPanel', {
-    extend: 'saas.view.core.form.FormPanel',
-    xtype: 'test-order-formpanel',
-
-    controller: 'test-order-formcontroller',
-    viewModel: 'test-order-formmodel',
-    
-    caller:'Purchase',
-
-    //字段属性
-    _title:'采购单',
-    _idField: 'id',
-    _codeField: 'pu_code',
-    _statusField: 'pu_status',
-    _statusCodeField: 'pu_statuscode',
-    _detnoColumn:  'pd_detno',
-    _relationColumn: 'pd_puid',
-    _readUrl:basePath + 'purchase/purchase/read/',
-    _saveUrl:basePath + 'purchase/purchase/save',
-    _auditUrl:basePath + 'purchase/purchase/audit',
-    _deleteUrl:basePath + 'purchase/purchase/delete/',
-    _deleteDetailUrl:basePath + 'purchase/purchase/deleteItem/',
-    initId:0,
-
-    toolBtns: [{
-        xtype: 'button',
-        text: '转单按钮',
-        handler: function() {
-            console.log('11');
-        }
-    }],
-
-    defaultItems: [{
-        xtype: 'hidden',
-        name: 'id',
-        bind: '{id}',
-        fieldLabel: 'id',
-        allowBlank: true,
-        columnWidth: 0
-    }, {
-        xtype : "textfield", 
-        name : "pu_code", 
-        bind : "{pu_code}", 
-        fieldLabel : "采购单号",
-        allowBlank : true, 
-        columnWidth : 0.25
-    }, {
-        xtype : "datefield", 
-        name : "pu_date", 
-        bind : "{pu_date}", 
-        fieldLabel : "采购日期", 
-        allowBlank : false, 
-        columnWidth : 0.25,
-        format:'Y-m-d'
-    }, {
-        xtype : "hidden", 
-        name : "pu_vendid", 
-        bind : "{pu_vendid}", 
-        fieldLabel : "供应商ID", 
-        allowBlank : true, 
-        columnWidth : 0.0
-    }, {
-        xtype : "dbfindtrigger", 
-        name : "pu_vendcode", 
-        bind : "{pu_vendcode}", 
-        fieldLabel : "供应商编号", 
-        allowBlank : true, 
-        columnWidth : 0.25, 
-    }, {
-        xtype : "textfield", 
-        name : "pu_vendname", 
-        bind : "{pu_vendname}", 
-        fieldLabel : "供应商名称", 
-        allowBlank : true, 
-        columnWidth : 0.25
-    }, {
-        xtype : "hidden", 
-        name : "pu_buyerid", 
-        bind : "{pu_buyerid}", 
-        fieldLabel : "采购员ID", 
-        allowBlank : true, 
-        columnWidth : 0.0
-    }, {
-        xtype : "dbfindtrigger", 
-        name : "pu_buyercode", 
-        bind : "{pu_buyercode}", 
-        fieldLabel : "采购员编号", 
-        allowBlank : true, 
-        columnWidth : 0.25
-    }, {
-        xtype : "textfield", 
-        name : "pu_buyername", 
-        bind : "{pu_buyername}", 
-        fieldLabel : "采购员名称", 
-        allowBlank : true, 
-        columnWidth : 0.25
-    },{
-        xtype : "combo", 
-        name : "pu_total", 
-        bind : "{pu_total}", 
-        fieldLabel : "下拉框", 
-        allowBlank : true, 
-        queryMode: 'local',
-        displayField: 'display',
-        valueField: 'value',
-        store:{
-            fields: ['display', 'value'],
-            data : [
-                {"display":"1", "value":"1"},
-                {"display":"2", "value":"2"},
-                {"display":"3", "value":"3"}
-            ]
-        },
-        columnWidth : 0.25
-    },{
-        xtype : "remotecombo", 
-        storeUrl:basePath+'ducument/product/getProdUnit',
-        name : "pu_text1", 
-        bind : "{pu_text1}", 
-        fieldLabel : "供应商类型", 
-        allowBlank : true, 
-        queryMode: 'local',
-        displayField: 'display',
-        valueField: 'value',
-        columnWidth : 0.25,
-        etc:{
-            vendorkind:{
-                keyField:'id',
-                dataField:'vk_name',
-                reqUrl:basePath+'ducument/vendorkind/save',
-                delUrl:basePath+'ducument/vendorkind/delete'
-            }
-        },
-        addHandler:function(b){
-            var form = this.ownerCmp.ownerCt;
-            this.dialog = form.getController().getView().add({
-                xtype: 'document-kind-childwin',
-                bind: {
-                    title: '新增供应商类型'
-                },
-                dataKind:'vendorkind',
-                belong:this.ownerCmp.etc['vendorkind'],
-                _parent:form,
-                record:null,
-                session: true
-            });
-            this.dialog.show();
-        }
-    }, {
-        name : "detailGridField", 
-        xtype : "detailGridField", 
-        columns : [
-            {
-                text : "序号", 
-                dataIndex : "pd_detno", 
-                width : 100, 
-                xtype : "numbercolumn",
-                align : 'center',
-                format:'0',
-                summaryType: 'count',
-                summaryRenderer: function(value, summaryData, dataIndex) {
-                    return Ext.String.format('合计: {0}条', value);
-                },
-            }, 
-            {
-                editor : {
-                    displayField : "display", 
-                    editable : true, 
-                    format : "", 
-                    hideTrigger : false, 
-                    maxLength : 100.0, 
-                    minValue : null, 
-                    positiveNum : false, 
-                    queryMode : "local", 
-                    store : null, 
-                    valueField : "value", 
-                    xtype : "multidbfindtrigger"
-                }, 
-                text : "物料编号", 
-                width : 200.0, 
-                dataIndex : "pd_prodcode", 
-                xtype : "", 
-                items : null
-            }, 
-            {
-                text : "单位", 
-                editor : {
-                    xtype : "textfield"
-                },
-                dataIndex : "pd_unit", 
-                width : 120.0, 
-                xtype : "", 
-                items : null
-            }, 
-            {
-                text : "数量", 
-                dataIndex : "pd_yqty", 
-                editor : {
-                    xtype : "numberfield"
-                },
-                width : 120.0, 
-                xtype : "numbercolumn", 
-                format:'0',
-                items : null,
-                summaryType: 'sum'
-            }, 
-            {
-                text : "单价", 
-                editor : {
-                    xtype : "numberfield"
-                },
-                format:'0,000.00',
-                dataIndex : "pd_price", 
-                width : 120.0, 
-                xtype : "numbercolumn",
-                items : null,
-                summaryType: 'sum'
-            }, 
-            {
-                text : "总额", 
-                dataIndex : "pd_total", 
-                width : 120.0, 
-                xtype : "numbercolumn",
-                summaryType: 'sum'
-            }, 
-            {
-                text : "税额", 
-                dataIndex : "pd_taxtotal", 
-                flex : 1.0, 
-                xtype : "numbercolumn",
-                summaryType: 'sum'
-            }
-        ]
-    }, {
-        format : "Y-m-d", 
-        xtype : "datefield", 
-        name : "createTime", 
-        bind : "{createTime}", 
-        fieldLabel : "创建时间", 
-        allowBlank : true, 
-        columnWidth : 0.25
-    }, {
-        format : "Y-m-d",
-        xtype : "datefield", 
-        name : "updateTime", 
-        bind : "{updateTime}", 
-        fieldLabel : "更新时间", 
-        allowBlank : true, 
-        columnWidth : 0.25
-    }, {
-        xtype : "textfield", 
-        readOnly : true, 
-        editable : false, 
-        name : "pu_status", 
-        bind : "{pu_status}", 
-        fieldLabel : "单据状态", 
-        allowBlank : true, 
-        columnWidth : 0.25
-    }, 
-    // {
-    //     xtype : "hidden", 
-    //     readOnly : true, 
-    //     editable : false, 
-    //     name : "pu_statuscode", 
-    //     bind : "{pu_statuscode}", 
-    //     fieldLabel : "单据状态码", 
-    //     allowBlank : true, 
-    //     columnWidth : 0.0
-    // },
-    {
-        xtype : "textfield", 
-        name : "pu_statuscode", 
-        bind : "{pu_statuscode}", 
-        fieldLabel : "忽略字段", 
-        ignore:true,
-        allowBlank : true, 
-        columnWidth : 0.25
-    }]
-});

+ 0 - 250
frontend/saas-web/app/view/test/query/QueryPanel.js

@@ -1,250 +0,0 @@
-Ext.define('saas.view.test.query.QueryPanel', {
-    extend: 'saas.view.core.query.QueryPanel',
-    xtype: 'test-query-querypanel',
-
-    controller: 'test-query-querypanel',
-    viewModel: 'test-query-querypanel',
-    
-    viewName: 'test-query-formpanel',
-    _baseVastUrl:basePath+'purchase/',
-    _idField:'pu_id',
-    _codeField:'pu_code',
-    queryFormItems: [{
-        xtype: 'hidden',
-        name: 'pu_id',
-        bind: '{pu_id}',
-        fieldLabel: 'ID',
-        allowBlank: true,
-        columnWidth: 0
-    }, {
-        xtype: 'dbfindtrigger',
-        name: 'pu_code',
-        bind: '{pu_code}',
-        fieldLabel: '单据编号',
-        allowBlank: true,
-        columnWidth: 0.25,
-        dataUrl:basePath+'ducument/vendor/list',
-        dbfinds:[{
-            from:'ve_code',to:'pu_code'
-        }],
-        dbColumns:[{
-            conditionCode:'ve_id',
-            "text": "供应商ID",
-            "flex": 0,
-            "dataIndex": "ve_id",
-            "width": 0,
-            "xtype": "",
-            "items": null
-        },{
-            conditionCode:'ve_code',
-            "text": "供应商编号",
-            "flex": 1,
-            "dataIndex": "ve_code",
-            "width": 100,
-            "xtype": "",
-            "items": null
-        }, {
-            conditionCode:'ve_name',
-            "text": "供应商名称",
-            "flex": 1,
-            "dataIndex": "ve_name",
-            "xtype": "",
-            "items": null
-        }, {
-            conditionCode:'ve_type',
-            "text": "供应商类型",
-            "flex": 0,
-            "dataIndex": "ve_type",
-            "width": 200,
-            "xtype": "",
-            "items": null
-        }]
-    }, {
-        xtype: 'condatefield',
-        name: 'pu_date',
-        bind: '{pu_date}',
-        fieldLabel: '采购日期',
-        allowBlank: true,
-        columnWidth: 0.5
-    }, {
-        xtype: 'dbfindtrigger',
-        name: 'pu_vendcode',
-        bind: '{pu_vendcode}',
-        fieldLabel: '供应商编号',
-        allowBlank: true,
-        columnWidth: 0.25,
-        configUrl: 'resources/json/purchase/vendorColumnsDbfind.json',
-        dataUrl: 'resources/json/purchase/vendorDataDbfind.json'
-    }, {
-        xtype: 'textfield',
-        name: 'pu_vendname',
-        bind: '{pu_vendname}',
-        fieldLabel: '供应商名称',
-        allowBlank: true,
-        columnWidth: 0.25
-    }, {
-        xtype: 'dbfindtrigger',
-        name: 'pd_prodcode#pd_prodcode',
-        bind: '{pd_prodcode}',
-        fieldLabel: '物料编号',
-        fieldMode: 'DETAIL',
-        queryType:'VAG',
-        allowBlank: true,
-        columnWidth: 0.25,
-        configUrl: 'resources/json/purchase/vendorColumnsDbfind.json',
-        dataUrl: 'resources/json/purchase/vendorDataDbfind.json'
-    }, {
-        xtype: 'textfield',
-        name: 'pr_detail',
-        bind: '{pr_detail}',
-        fieldLabel: '物料名称',
-        allowBlank: true,
-        columnWidth: 0.25
-    }, {
-        xtype: 'combobox',
-        name: 'pr_statuscode',
-        bind: '{pr_statuscode}',
-        fieldLabel: '审核状态',
-        allowBlank: true,
-        columnWidth: 0.25,
-        queryMode: 'local',
-        displayField: 'pr_status',
-        valueField: 'pr_statuscode',
-        store: Ext.create('Ext.data.Store', {
-            fields: ['pr_statuscode', 'pr_status'],
-            data: [
-                ["$ALL", "全部"],
-                ["AUDITED", "已审核"],
-                ["AUDITED", "未审核"]
-            ]
-        })
-    }, {
-        xtype: 'multicombo',
-        name: 'pu_acceptstatuscode',
-        bind: '{pu_acceptstatuscode}',
-        fieldLabel: '入库状态',
-        allowBlank: true,
-        columnWidth: 0.25,
-        datas: [
-            ["$ALL", "全部"],
-            ["TURNOUT", "已入库"],
-            ["NOOUT", "未入库"],
-            ["PARTOUT", "部分入库"]
-        ]
-    }],
-    moreQueryFormItems: [{
-        xtype: 'textfield',
-        name: 'pu_buyername',
-        bind: '{pu_buyername}',
-        fieldLabel: '采购员',
-        allowBlank: true
-    }, {
-        xtype: 'textfield',
-        name: 'pu_total',
-        bind: '{pu_total}',
-        fieldLabel: '金额',
-        allowBlank: true
-    }, {
-        xtype: 'condatefield',
-        name: 'pu_delivery',
-        bind: '{pu_delivery}',
-        fieldLabel: '交货日期',
-        allowBlank: true,
-        columnWidth: 1
-    }],
-    queryGridConfig: {
-        _idField:'pu_id',
-        _codeField:'pu_code',
-        _title:'采购单',
-        _addXtype:'test-order-formpanel',
-        _baseVastUrl:basePath+'purchase/',
-        _baseColumn: [{
-            text: '序号',
-            width: 80,
-            xtype: 'rownumberer'
-        }, {
-            text: 'id',
-            dataIndex: 'pu_id',
-            width: 100,
-            xtype: 'numbercolumn'
-        }, {
-            text: '单据编号',
-            dataIndex: 'pu_code',
-            width: 120
-        }, {
-            text: '单据状态',
-            dataIndex: 'pu_status',
-            width: 120
-        }, {
-            text: '下单日期',
-            dataIndex: 'pu_indate',
-            xtype:'datecolumn',
-            width: 200
-        },{
-            text: '供应商名称',
-            dataIndex: 'pu_vendname',
-            width: 120
-        },{
-            text: '含税金额',
-            dataIndex: 'pu_taxtotal',
-            xtype:'numbercolumn',
-            width: 120
-        },{
-            text: '金额',
-            dataIndex: 'pu_total',
-            xtype:'numbercolumn',
-            width: 120
-        }],
-        _relativeColumn: [{
-            text: '序号',
-            width: 80,
-            xtype: 'rownumberer'
-        }, {
-            text: 'id',
-            dataIndex: 'pu_id',
-            width: 100,
-            xtype: 'numbercolumn'
-        }, {
-            text: '单据编号',
-            dataIndex: 'pu_code',
-            width: 120
-        }, {
-            text: '单据状态',
-            dataIndex: 'pu_status',
-            width: 120
-        }, {
-            text: '下单日期',
-            dataIndex: 'pu_indate',
-            xtype:'datecolumn',
-            width: 200
-        },{
-            text: '供应商名称',
-            dataIndex: 'pu_vendname',
-            width: 120
-        },{
-            text: '采购序号',
-            dataIndex: 'pd_detno',
-            xtype:'numbercolumn',
-            width: 120
-        },{
-            text: '物料编号',
-            dataIndex: 'pd_prodcode',
-            width: 120
-        },{
-            text: '数量',
-            dataIndex: 'pd_qty',
-            xtype:'numbercolumn',
-            width: 120
-        },{
-            text: '单价',
-            dataIndex: 'pd_price',
-            xtype:'numbercolumn',
-            width: 120
-        },{
-            text: '已转数',
-            dataIndex: 'pd_ytqy',
-            xtype:'numbercolumn',
-            width: 120
-        }]
-    }
-});

+ 0 - 5
frontend/saas-web/app/view/test/query/QueryPanelController.js

@@ -1,5 +0,0 @@
-Ext.define('saas.view.test.query.QueryPanelController', {
-    extend: 'saas.view.core.query.QueryPanelController',
-    alias: 'controller.test-query-querypanel',
-
-});

+ 0 - 19
frontend/saas-web/app/view/test/query/QueryPanelModel.js

@@ -1,19 +0,0 @@
-Ext.define('saas.view.test.query.QueryPanelModel', {
-    extend: 'saas.view.core.query.QueryPanelModel',
-    alias: 'viewmodel.test-query-querypanel',
-
-    data: {
-       // pu_total: '3333',
-        //pu_code: '4'
-    },
-    formulas: {
-        queryItems1: {
-            get: function(get) {
-                var pu_code = get('pu_code'),
-                pu_date = get('pu_date');
-
-                return '单据编号:' + pu_code + ',采购日期:从' + Ext.Date.format(pu_date.from, 'Y-m-d') + '到' + Ext.Date.format(pu_date.to, 'Y-m-d');
-            }
-        }
-    }
-});

+ 0 - 16
frontend/saas-web/app/view/test/test/Myv.js

@@ -1,16 +0,0 @@
-
-Ext.define('saas.view.test.test.Myv',{
-    extend: 'Ext.panel.Panel',
-
-    requires: [
-        'saas.view.test.test.MyvController',
-        'saas.view.test.test.MyvModel'
-    ],
-
-    controller: 'test-test-myv',
-    viewModel: {
-        type: 'test-test-myv'
-    },
-
-    html: 'Hello, World!!'
-});

+ 0 - 5
frontend/saas-web/app/view/test/test/MyvController.js

@@ -1,5 +0,0 @@
-Ext.define('saas.view.test.test.MyvController', {
-    extend: 'Ext.app.ViewController',
-    alias: 'controller.test-test-myv'
-
-});

+ 0 - 8
frontend/saas-web/app/view/test/test/MyvModel.js

@@ -1,8 +0,0 @@
-Ext.define('saas.view.test.test.MyvModel', {
-    extend: 'Ext.app.ViewModel',
-    alias: 'viewmodel.test-test-myv',
-    data: {
-        name: 'saas'
-    }
-
-});