| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- Ext.define('saas.view.document.product.BasePanel', {
- extend: 'saas.view.core.base.BasePanel',
- xtype: 'document-product-basepanel',
- controller: 'document-product-basepanel',
- viewModel: 'document-product-basepanel',
- searchField:[{
- editable:false,
- hiddenBtn:true,
- xtype : "remotecombo",
- storeUrl: '/api/document/producttype/getCombo',
- name : "pr_kind",
- emptyText : "物料类型",
- width:120
- },{
- xtype : "textfield",
- name : "pr_detail",
- emptyText : "物料名称",
- width:120
- },{
- xtype : "textfield",
- name : "pr_code",
- emptyText : "物料编号",
- width:120
- },{
- xtype : "textfield",
- name : "pr_unit",
- emptyText : "单位",
- width:100
- },{
- xtype : "textfield",
- name : "pr_brand",
- emptyText : "品牌",
- width:100
- },{
- xtype : "textfield",
- name : "pr_orispeccode",
- emptyText : "型号",
- width:100
- }],
- //字段属性
- _formXtype:'document-product-formpanel',
- _title:'物料资料',
- _deleteUrl:'/api/document/product/delete/',
- _batchOpenUrl:'/api/document/product/batchOpen',
- _batchCloseUrl:'/api/document/product/batchClose',
- _batchDeleteUrl:'/api/document/product/batchDelete',
- gridConfig: {
- idField: 'id',
- codeField: 'pr_code',
- statusCodeField:'pr_statuscode',
- dataUrl: '/api/document/product/list',
- columns : [{
- text : "id",
- width : 0,
- dataIndex : "id",
- xtype : "numbercolumn",
- },{
- text : "物料编号",
- width : 200.0,
- dataIndex : "pr_code"
- }, {
- text : "物料名称",
- dataIndex : "pr_detail",
- width : 120.0
- }, {
- text : "规格",
- dataIndex : "pr_spec"
- }, {
- text : "类型",
- dataIndex : "pr_kind"
- }, {
- text : "单位",
- dataIndex : "pr_unit"
- }, {
- text : "总库存数",
- dataIndex : "po_onhand",
- xtype: 'numbercolumn'
- }, {
- text : "单位成本",
- dataIndex : "pr_standardprice",
- xtype: 'numbercolumn'
- }, {
- text : "最新采购单价",
- dataIndex : "pr_purcprice",
- xtype: 'numbercolumn'
- }, {
- text : "最新出库单价",
- dataIndex : "pr_saleprice",
- xtype: 'numbercolumn'
- }, {
- text : "型号",
- dataIndex : "pr_orispeccode"
- }, {
- text : "品牌",
- dataIndex : "pr_brand"
- }, {
- text : "最小包装",
- dataIndex : "pr_zxbzs",
- xtype: 'numbercolumn'
- }, {
- text : "L/T",
- dataIndex : "pr_leadtime",
- xtype: 'numbercolumn'
- }, {
- text : "状态",
- dataIndex : "pr_status"
- }]
- },
- refresh:function(){
- this.items.items[0].store.load()
- }
- });
|