| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- /**
- * Created by zhouy on 2018/10/18.
- */
- Ext.define('saas.view.document.kind.Kind', {
- extend: 'Ext.panel.Panel',
- xtype: 'document-kind',
- autoScroll: true,
- layout:'fit',
- controller:'document-kind',
- viewModel: {
- type: 'document-kind'
- },
- defaultType:'',
- tbar: [{
- xtype: 'segmentedbutton',
- reference: 'dataKind',
- value: 'customerkind',
- bind:'{segmented}',
- items: [{
- text: '客户',
- value: 'customerkind'
- }, {
- text: '供应商',
- value: 'vendorkind'
- }, {
- text: '商品',
- value: 'productkind'
- }, {
- text: '收支',
- value: 'inoutkind'
- }],
- listeners: {
- toggle: 'onKindToggle'
- }
- },'->',
- {
- xtype:'button',
- text:'新增',
- listeners: {
- click: 'onAdd'
- }
- },{
- xtype:'button',
- text:'刷新',
- listeners: {
- click: 'onRefresh'
- }
- }],
- items:[{
- xtype:'grid',
- reference: 'document-kind-Grid',
- margin: '10 0 0 0',
- flex: 1,
- frame:true,
- bind:{
- selection: '{selectedCompany}'
- },
- listeners:{
- render:'loadDefualt'
- }
- }],
- etc:{
- customerkind:{
- columns: [{
- text: '客户类型',
- dataIndex: 'ck_name',
- flex: 1
- }],
- keyField:'id',
- reqUrl:basePath + 'document/customerkind/save',
- delUrl:basePath + 'document/customerkind/delete'
- },
- vendorkind:{
- columns: [{
- text: '供应商类型',
- dataIndex: 'vk_name',
- flex: 1
- }],
- keyField:'id',
- reqUrl:basePath + 'document/vendorkind/save',
- delUrl:basePath + 'document/vendorkind/delete'
- },
- productkind:{
- columns: [{
- text: '物料类型',
- dataIndex: 'pt_name',
- flex: 1
- }],
- keyField:'id',
- reqUrl:basePath + 'document/producttype/save',
- delUrl:basePath + 'document/producttype/delete'
- },
- productbrand:{
- columns: [{
- text: '物料品牌',
- dataIndex: 'pb_name',
- flex: 1
- }],
- keyField:'id',
- reqUrl:basePath + 'document/productbrand/save',
- delUrl:basePath + 'document/productbrand/delete'
- },
- bankinformation:{
- columns: [{
- text: '账户编号',
- dataIndex: 'bk_bankcode',
- flex: 1
- },{
- text: '账户名称',
- dataIndex: 'bk_bankname',
- flex: 1
- },{
- xtype:'datecolumn',
- text: '日期',
- dataIndex: 'bk_date',
- flex: 1
- },{
- text: '账户类型',
- dataIndex: 'bk_type',
- flex: 1
- },{
- text: '账户期初金额',
- dataIndex: 'bk_beginamount',
- flex: 1
- },{
- text: '账户期末余额',
- dataIndex: 'bk_thisamount',
- flex: 1
- }],
- keyField:'id',
- reqUrl: 'http://192.168.253.129:9480/bankinformation/save',
- delUrl: 'http://192.168.253.129:9480/bankinformation/delete'
- },
- inoutkind:{
- columns: [{
- text: '收支类型',
- dataIndex: 'ft_name',
- flex: 1
- }],
- keyField:'id',
- reqUrl: 'http://192.168.253.31:9480/fundinouttype/save',
- delUrl: 'http://192.168.253.31:9480/fundinouttype/delete'
- }
- }
- })
|