|
|
@@ -6,15 +6,16 @@ Ext.define('saas.view.test.order.FormPanel', {
|
|
|
viewModel: 'test-order-formmodel',
|
|
|
|
|
|
_title:'采购单',
|
|
|
- _codeField: 'puCode',
|
|
|
- _statusField: 'puStatuscode',
|
|
|
+ _codeField: 'pu_ode',
|
|
|
+ _statusField: 'pu_statuscode',
|
|
|
_idField: 'id',
|
|
|
- _detnoColumn: 'pdDetno',
|
|
|
- _dataModelUrl:'http://192.168.253.58:8800/purchase/form?id={id}',
|
|
|
- _saveUrl:'http://192.168.253.58:8800/purchase/form',
|
|
|
+ _detnoColumn: 'pd_detno',
|
|
|
+ _dataModelUrl:'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/detele',
|
|
|
- initId:0,
|
|
|
+ _deleteUrl:'http://192.168.253.58:8800/purchase/delete',
|
|
|
+ _deleteDetailUrl:'http://192.168.253.58:8800/purchase/deletdetail',
|
|
|
+ initId:37,
|
|
|
|
|
|
toolBtns: [{
|
|
|
xtype: 'button',
|
|
|
@@ -33,63 +34,97 @@ Ext.define('saas.view.test.order.FormPanel', {
|
|
|
columnWidth: 0
|
|
|
}, {
|
|
|
xtype : "textfield",
|
|
|
- name : "puCode",
|
|
|
- bind : "{puCode}",
|
|
|
+ name : "pu_code",
|
|
|
+ bind : "{pu_code}",
|
|
|
fieldLabel : "采购单号",
|
|
|
allowBlank : true,
|
|
|
columnWidth : 0.25
|
|
|
}, {
|
|
|
xtype : "datefield",
|
|
|
- name : "puDate",
|
|
|
- bind : "{puDate}",
|
|
|
+ name : "pu_date",
|
|
|
+ bind : "{pu_date}",
|
|
|
fieldLabel : "采购日期",
|
|
|
allowBlank : true,
|
|
|
columnWidth : 0.25
|
|
|
}, {
|
|
|
xtype : "hidden",
|
|
|
- name : "puVendid",
|
|
|
- bind : "{puVendid}",
|
|
|
+ name : "pu_vendid",
|
|
|
+ bind : "{pu_vendid}",
|
|
|
fieldLabel : "供应商ID",
|
|
|
allowBlank : true,
|
|
|
columnWidth : 0.0
|
|
|
}, {
|
|
|
xtype : "dbfindtrigger",
|
|
|
- name : "puVendcode",
|
|
|
- bind : "{puVendcode}",
|
|
|
+ name : "pu_vendcode",
|
|
|
+ bind : "{pu_vendcode}",
|
|
|
fieldLabel : "供应商编号",
|
|
|
allowBlank : true,
|
|
|
columnWidth : 0.25,
|
|
|
}, {
|
|
|
xtype : "textfield",
|
|
|
- name : "puVendname",
|
|
|
- bind : "{puVendname}",
|
|
|
+ name : "pu_vendname",
|
|
|
+ bind : "{pu_vendname}",
|
|
|
fieldLabel : "供应商名称",
|
|
|
allowBlank : true,
|
|
|
columnWidth : 0.25
|
|
|
}, {
|
|
|
xtype : "hidden",
|
|
|
- name : "puBuyerid",
|
|
|
- bind : "{puBuyerid}",
|
|
|
+ name : "pu_buyerid",
|
|
|
+ bind : "{pu_buyerid}",
|
|
|
fieldLabel : "采购员ID",
|
|
|
allowBlank : true,
|
|
|
columnWidth : 0.0
|
|
|
}, {
|
|
|
xtype : "dbfindtrigger",
|
|
|
- name : "puBuyercode",
|
|
|
- bind : "{puBuyercode}",
|
|
|
+ name : "pu_buyercode",
|
|
|
+ bind : "{pu_buyercode}",
|
|
|
fieldLabel : "采购员编号",
|
|
|
allowBlank : true,
|
|
|
columnWidth : 0.25
|
|
|
}, {
|
|
|
xtype : "textfield",
|
|
|
- name : "puBuyername",
|
|
|
- bind : "{puBuyername}",
|
|
|
+ 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",
|
|
|
+ bind: {
|
|
|
+ store:{
|
|
|
+ data:'{detailGridField}'
|
|
|
+ }
|
|
|
+ },
|
|
|
columns : [
|
|
|
{
|
|
|
text : "序号",
|
|
|
@@ -113,7 +148,7 @@ Ext.define('saas.view.test.order.FormPanel', {
|
|
|
},
|
|
|
text : "物料编号",
|
|
|
width : 200.0,
|
|
|
- dataIndex : "pdProdcode",
|
|
|
+ dataIndex : "pd_prodcode",
|
|
|
xtype : "",
|
|
|
items : null
|
|
|
},
|
|
|
@@ -122,34 +157,34 @@ Ext.define('saas.view.test.order.FormPanel', {
|
|
|
editor : {
|
|
|
xtype : "textfield"
|
|
|
},
|
|
|
- dataIndex : "pdUnit",
|
|
|
+ dataIndex : "pd_unit",
|
|
|
width : 120.0,
|
|
|
xtype : "",
|
|
|
items : null
|
|
|
},
|
|
|
{
|
|
|
text : "数量",
|
|
|
- dataIndex : "pdQty",
|
|
|
+ dataIndex : "pd_yqty",
|
|
|
width : 120.0,
|
|
|
xtype : "",
|
|
|
items : null
|
|
|
},
|
|
|
{
|
|
|
text : "单价",
|
|
|
- dataIndex : "pdPrice",
|
|
|
+ dataIndex : "pd_price",
|
|
|
width : 120.0,
|
|
|
xtype : "numbercolumn",
|
|
|
items : null
|
|
|
},
|
|
|
{
|
|
|
text : "总额",
|
|
|
- dataIndex : "pdTotal",
|
|
|
+ dataIndex : "pd_total",
|
|
|
width : 120.0,
|
|
|
xtype : "numbercolumn"
|
|
|
},
|
|
|
{
|
|
|
text : "税额",
|
|
|
- dataIndex : "pdTaxtotal",
|
|
|
+ dataIndex : "pd_taxtotal",
|
|
|
flex : 1.0,
|
|
|
xtype : "numbercolumn"
|
|
|
},
|
|
|
@@ -188,8 +223,8 @@ Ext.define('saas.view.test.order.FormPanel', {
|
|
|
xtype : "hidden",
|
|
|
readOnly : true,
|
|
|
editable : false,
|
|
|
- name : "puStatuscode",
|
|
|
- bind : "{puStatuscode}",
|
|
|
+ name : "pu_statuscode",
|
|
|
+ bind : "{pu_statuscode}",
|
|
|
fieldLabel : "单据状态码",
|
|
|
allowBlank : true,
|
|
|
columnWidth : 0.0
|