| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- Ext.define('saas.view.document.bom.FormPanel', {
- extend: 'saas.view.core.form.FormPanel',
- xtype: 'document-bom-formpanel',
- controller: 'document-bom-formpanel',
- viewModel: 'document-bom-formpanel',
-
- caller:'Bom',
- //字段属性
- _title:'客户资料',
- _idField: 'id',
- _codeField: 'bo_mothercode',
- _statusField: 'bo_status',
- _statusCodeField: 'bo_statuscode',
- _readUrl:'/api/document/bom/read/',
- _saveUrl:'/api/document/bom/save',
- _openUrl:'/api/document/bom/open',
- _closeUrl:'/api/document/bom/close',
- _deleteUrl:'/api/document/bom/delete/',
- initId:0,
- defaultItems: [{
- xtype: 'hidden',
- name: 'id',
- fieldLabel: 'id',
- },{
- xtype: 'hidden',
- name: 'bo_motherid',
- fieldLabel: '母件id'
- },{
- xtype: 'textfield',
- name: 'bo_mothername',
- fieldLabel: 'BOM名称',
- allowBlank: false
- },{
- xtype: 'textfield',
- name: 'bo_mothercode',
- fieldLabel: 'BOM编号',
- allowBlank: true
- },{
- xtype: 'textfield',
- name: 'bo_status',
- fieldLabel: 'BOM状态'
- },{
- xtype: 'hidden',
- name: 'bo_statuscode',
- fieldLabel: '状态码'
- },{
- xtype : "datefield",
- name : "createTime",
- fieldLabel : "创建时间"
- },{
- xtype : "datefield",
- name : "updateTime",
- fieldLabel : "更新时间"
- }, {
- xtype : "detailGridField",
- detnoColumn: 'bd_detno',
- storeModel:'saas.model.document.bomdetail',
- deleteDetailUrl:'/api/document/bom/deleteDetail/',
- columns : [
- {
- text : "ID",
- dataIndex : "id",
- width : 0,
- xtype : "numbercolumn"
- },
- {
- text : "关联ID",
- dataIndex : "bd_bomid",
- width : 120,
- xtype : "numbercolumn"
- },
- {
- text : "子件编号",
- editor : {
- xtype : "textfield"
- },
- dataIndex : "bd_soncode",
- width : 120.0
- },
- {
- text : "单位",
- editor : {
- xtype : "textfield"
- },
- dataIndex : "bd_unit",
- width : 120.0
- },
- {
- text : "单位用量",
- editor : {
- xtype : "textfield"
- },
- dataIndex : "bd_baseqty",
- width : 120.0
- },
- {
- text : "替代料",
- editor : {
- xtype : "textfield"
- },
- dataIndex : "bd_replace",
- width : 120.0
- }]
- }],
- auditTexts: {
- auditCode: 'OPEN',
- auditText: '已开启',
- unAuditCode: 'CLOSE',
- unAuditText: '已关闭',
- auditBtnText: '启用',
- unAuditBtnText: '禁用',
- },
- });
|