| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- 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',
-
- //字段属性
- _title:'采购单',
- _idField: 'id',
- _codeField: 'pu_code',
- _statusField: 'pu_status',
- _statusCodeField: 'pu_statuscode',
- _detnoColumn: 'pd_detno',
- _relationColumn: 'pd_puid',
- _readUrl:'http://192.168.253.58:8800/purchase/read/',
- _saveUrl:'http://192.168.253.58:8800/purchase/save',
- _auditUrl:'http://192.168.253.58:8800/purchase/audit',
- _deleteUrl:'http://192.168.253.58:8800/purchase/delete/',
- _deleteDetailUrl:'http://192.168.253.58:8800/purchase/deleteItem/',
- initId:11,
- 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 : true,
- columnWidth : 0.25
- }, {
- 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:"http://192.168.253.41:9480/api/document/product/getProdUnit",
- name : "pu_text1",
- bind : "{pu_text1}",
- fieldLabel : "物料下拉框",
- allowBlank : true,
- queryMode: 'local',
- displayField: 'display',
- valueField: 'value',
- columnWidth : 0.25
- }, {
- name : "detailGridField",
- xtype : "detailGridField",
- columns : [
- {
- text : "序号",
- dataIndex : "pdDetno",
- width : 80.0,
- xtype : "rownumberer"
- },
- {
- editor : {
- displayField : "display",
- editable : true,
- format : "",
- hideTrigger : false,
- maxLength : 100.0,
- minValue : null,
- positiveNum : false,
- queryMode : "local",
- store : null,
- valueField : "value",
- xtype : "dbfindtrigger"
- },
- 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",
- width : 120.0,
- xtype : "",
- items : null
- },
- {
- text : "单价",
- dataIndex : "pd_price",
- width : 120.0,
- xtype : "numbercolumn",
- items : null
- },
- {
- text : "总额",
- dataIndex : "pd_total",
- width : 120.0,
- xtype : "numbercolumn"
- },
- {
- text : "税额",
- dataIndex : "pd_taxtotal",
- flex : 1.0,
- xtype : "numbercolumn"
- },
- {
- text : "id",
- dataIndex : "id",
- flex : 1.0,
- xtype : "numbercolumn"
- }
- ]
- }, {
- format : "Y-m-d",
- xtype : "datetimefield",
- name : "createTime",
- bind : "{createTime}",
- fieldLabel : "创建时间",
- allowBlank : true,
- columnWidth : 0.25
- }, {
- xtype : "datefield",
- name : "updateTime",
- bind : "{updateTime}",
- fieldLabel : "更新时间",
- allowBlank : true,
- columnWidth : 0.25
- }, {
- xtype : "textfield",
- readOnly : true,
- editable : false,
- name : "puStatus",
- bind : "{puStatus}",
- fieldLabel : "单据状态",
- allowBlank : true,
- columnWidth : 0.25
- }, {
- xtype : "hidden",
- readOnly : true,
- editable : false,
- name : "pu_statuscode",
- bind : "{pu_statuscode}",
- fieldLabel : "单据状态码",
- allowBlank : true,
- columnWidth : 0.0
- }]
- });
|