| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- 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:'采购单',
- _codeField: 'puCode',
- _statusField: 'puStatuscode',
- _idField: 'id',
- _detnoColumn: 'pdDetno',
- _dataModelUrl:'http://192.168.253.58:8800/purchase/form?id={id}',
- _saveUrl:'http://192.168.253.58:8800/purchase/form',
- _auditUrl:'http://192.168.253.58:8800/purchase/audit',
- _deleteUrl:'http://192.168.253.58:8800/purchase/detele',
- initId:0,
- _baseItems:[{
- "xtype": "hidden",
- "name": "id",
- "bind": "{id}",
- "fieldLabel": "ID",
- "allowBlank": true,
- "columnWidth": 0.0
- },
- {
- "xtype": "textfield",
- "name": "puCode",
- "bind": "{puCode}",
- "fieldLabel": "采购单号",
- "allowBlank": true,
- "columnWidth": 0.25
- },
- {
- "xtype": "datefield",
- "name": "puDate",
- "bind": "{puDate}",
- "fieldLabel": "采购日期",
- "allowBlank": true,
- "columnWidth": 0.25
- },
- {
- "xtype": "hidden",
- "name": "puVendid",
- "bind": "{puVendid}",
- "fieldLabel": "供应商ID",
- "allowBlank": true,
- "columnWidth": 0.0
- },
- {
- "xtype": "dbfindtrigger",
- "name": "puVendcode",
- "bind": "{puVendcode}",
- "fieldLabel": "供应商编号",
- "allowBlank": true,
- "columnWidth": 0.25,
- "configUrl": "resources/json/purchase/vendorColumnsDbfind.json",
- "dataUrl": "resources/json/purchase/vendorDataDbfind.json"
- },
- {
- "xtype": "textfield",
- "name": "puVendname",
- "bind": "{puVendname}",
- "fieldLabel": "供应商名称",
- "allowBlank": true,
- "columnWidth": 0.25
- },
- {
- "xtype": "hidden",
- "name": "puBuyerid",
- "bind": "{puBuyerid}",
- "fieldLabel": "采购员ID",
- "allowBlank": true,
- "columnWidth": 0.0
- },
- {
- "xtype": "dbfindtrigger",
- "name": "puBuyercode",
- "bind": "{puBuyercode}",
- "fieldLabel": "采购员编号",
- "allowBlank": true,
- "columnWidth": 0.25
- },
- {
- "xtype": "textfield",
- "name": "puBuyername",
- "bind": "{puBuyername}",
- "fieldLabel": "采购员名称",
- "allowBlank": true,
- "columnWidth": 0.25
- },
- {
- "name": "detailGridField",
- "xtype": "detailGridField",
- "columnWidth": 1.0,
- "frame": true,
- "bind": {
- "store": "{detailGridStore}"
- },
- "margin": 3.0,
- "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": "pdProdcode",
- "xtype": "",
- "items": null
- },
- {
- "text": "单位",
- "editor": {
- "xtype": "textfield"
- },
- "dataIndex": "pdUnit",
- "width": 120.0,
- "xtype": "",
- "items": null
- },
- {
- "text": "数量",
- "dataIndex": "pdQty",
- "width": 120.0,
- "format":'0',
- "xtype": "numbercolumn",
- "items": null
- },
- {
- "text": "单价",
- "dataIndex": "pdPrice",
- "width": 120.0,
- "xtype": "numbercolumn",
- "items": null
- },
- {
- "text": "总额",
- "dataIndex": "pdTotal",
- "width": 120.0,
- "xtype": "numbercolumn"
- },
- {
- "text": "税额",
- "dataIndex": "pdTaxtotal",
- "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": "puStatuscode",
- "bind": "{puStatuscode}",
- "fieldLabel": "单据状态码",
- "allowBlank": true,
- "columnWidth": 0.0
- }],
- toolBtns: [{
- xtype: 'button',
- text: '转单按钮',
- handler: function() {
- console.log('11');
- }
- }]
- });
|