| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267 |
- Ext.define('saas.view.stock.make.FormPanel', {
- extend: 'saas.view.core.form.FormPanel',
- xtype: 'stock-make-formpanel',
- controller: 'stock-make-formpanel',
- viewModel: 'stock-make-formpanel',
- viewName: 'stock-make-formpanel',
- caller:'Make',
-
- //字段属性
- _title:'制造单',
- _idField: 'id',
- _codeField: 'ma_code',
- _statusField: 'ma_status',
- _statusCodeField: 'ma_statuscode',
- _relationColumn: 'mm_maid',
- _readUrl:basePath+'purchase/purchase/read/',
- _saveUrl:basePath+'purchase/purchase/save',
- _auditUrl:basePath+'purchase/purchase/audit',
- _deleteUrl:basePath+'purchase/purchase/delete/',
- _deleteDetailUrl:basePath+'purchase/purchase/deleteItem/',
- _turnInUrl:basePath+'purchase/prodinout/turnProdin/',
- initId:0,
-
- toolBtns: [],
- defaultItems: [{
- xtype: 'hidden',
- name: 'id',
- fieldLabel: 'id',
- columnWidth: 0
- }, {
- xtype : "textfield",
- name : "ma_code",
- fieldLabel : "制造单号",
- columnWidth: 0.2
- }, {
- xtype : "textfield",
- name : "ma_type",
- fieldLabel : "类型",
- columnWidth: 0.2
- },{
- xtype: 'hidden',
- name: 'ma_prodid',
- fieldLabel: '产品id',
- columnWidth: 0
- },{
- xtype : "textfield",
- name : "ma_prodcode",
- fieldLabel : "产品编号",
- columnWidth: 0.2
- },{
- xtype : "textfield",
- name : "ma_proddetail",
- fieldLabel : "名称",
- columnWidth: 0.2
- },{
- xtype : "textfield",
- name : "ma_prodspec",
- fieldLabel : "规格",
- columnWidth: 0.2
- },{
- xtype : "textfield",
- name : "ma_version",
- fieldLabel : "版本",
- columnWidth: 0.2
- },{
- xtype : "textfield",
- name : "ma_produnit",
- fieldLabel : "单位",
- columnWidth: 0.2
- },
- {
- xtype : "textfield",
- name : "ma_qty",
- fieldLabel : "数量",
- columnWidth: 0.2
- },{
- xtype : "hidden",
- name : "ma_whid",
- fieldLabel : "仓库id",
- columnWidth: 0.2
- },{
- xtype : "textfield",
- name : "ma_whcode",
- fieldLabel : "仓库",
- columnWidth: 0.2
- },{
- name : "detailGridField",
- xtype : "detailGridField",
- storeModel:'saas.model.document.Product',
- detnoColumn: 'pd_detno',
- columns : [
- {
- text : "id",
- dataIndex : "id",
- xtype : "numbercolumn"
- },
- {
- text : "mm_prodidid",
- dataIndex : "mm_prodid",
- xtype : "numbercolumn"
- },
- {
- text : "物料编号",
- width : 200.0,
- dataIndex : "mm_prodcode",
- xtype : "",
- items : null,
- editor : {
- displayField : "display",
- editable : true,
- format : "",
- hideTrigger : false,
- maxLength : 100.0,
- minValue : null,
- positiveNum : false,
- queryMode : "local",
- store : null,
- valueField : "value",
- xtype : "dbfindtrigger"
- }
- },
- {
- text : "名称",
- dataIndex : "pr_detail",
- ignore:true,
- renderer: function (v, m, r) {
- return r.data["product"]?r.data["product"][m.column.dataIndex]:'';
- }
- },
- {
- text : "规格",
- dataIndex : "pr_spec",
- ignore:true,
- renderer: function (v, m, r) {
- return r.data["product"]?r.data["product"][m.column.dataIndex]:'';
- }
- },
- {
- text : "数量",
- dataIndex : "pd_qty",
- editor : {
- xtype : "numberfield"
- },
- width : 120.0,
- xtype : "numbercolumn",
- format:'0',
- items : null,
- summaryType: 'sum'
- },
- {
- text : "已转数",
- dataIndex : "pd_yqty",
- editor : {
- xtype : "numberfield"
- },
- width : 120.0,
- xtype : "numbercolumn",
- format:'0',
- items : null,
- summaryType: 'sum'
- },
- {
- text : "单价",
- editor : {
- xtype : "numberfield"
- },
- format:'0,000.00',
- dataIndex : "pd_price",
- width : 120.0,
- xtype : "numbercolumn",
- items : null,
- summaryType: 'sum'
- },
- {
- text : "税率",
- editor : {
- xtype : "numberfield"
- },
- dataIndex : "pd_taxrate",
- width : 120.0,
- xtype : "numbercolumn",
- items : null
- },
- {
- text : "含税金额",
- dataIndex : "pd_total",
- width : 120.0,
- xtype : "numbercolumn"
- },
- {
- text : "未税金额",
- dataIndex : "pd_taxtotal",
- xtype : "numbercolumn"
- },{
- text : "需求日期",
- dataIndex : "pd_delivery",
- flex : 1.0,
- xtype:'datecolumn',
- format : "Y-m-d H:i:s",
- editor : {
- xtype : "datefield",
- editable : true,
- format : "Y-m-d H:i:s",
- hideTrigger : false
- }
- },
- {
- text : "关联销售单号",
- dataIndex : "pd_salecode",
- width : 120.0,
- flex : 1.0
- }
- ]
- },{
- format : "Y-m-d",
- xtype : "datefield",
- name : "createTime",
- bind : "{createTime}",
- fieldLabel : "制单日",
- allowBlank : true,
- columnWidth : 0.25
- },{
- xtype : "textfield",
- name : "ma_recorder",
- fieldLabel : "制单人",
- columnWidth: 0.2
- },{
- xtype : "numberfield",
- name : "ma_price",
- fieldLabel : "单位成本",
- columnWidth: 0.2
- },{
- xtype : "numberfield",
- name : "ma_total",
- fieldLabel : "总成本",
- columnWidth: 0.2
- }, {
- xtype : "datefield",
- name : "updateTime",
- bind : "{updateTime}",
- fieldLabel : "更新时间",
- allowBlank : true,
- columnWidth : 0.25
- }, {
- xtype : "textfield",
- readOnly : true,
- editable : false,
- name : "ma_status",
- bind : "{ma_status}",
- fieldLabel : "单据状态",
- allowBlank : true,
- columnWidth : 0.25
- }, {
- xtype : "hidden",
- readOnly : true,
- editable : false,
- name : "ma_statuscode",
- bind : "{ma_statuscode}",
- fieldLabel : "单据状态码",
- allowBlank : true,
- columnWidth : 0.0
- }]
- });
|