|
|
@@ -22,17 +22,6 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
_unAuditUrl:'/api/purchase/prodinout/unAudit/',
|
|
|
_deleteUrl:'/api/purchase/prodinout/delete/',
|
|
|
_turnOutUrl:'/api/purchase/prodinout/turnProdOut/',
|
|
|
-
|
|
|
- // _relationColumn: 'pd_piid',
|
|
|
- // _readUrl:'http://localhost:8800/prodinout/read/',
|
|
|
- // _saveUrl:'http://localhost:8800/prodinout/save',
|
|
|
- // _auditUrl:'http://localhost:8800/prodinout/audit',
|
|
|
- // _unAuditUrl:'http://localhost:8800/prodinout/unAudit/',
|
|
|
- // _deleteUrl:'http://localhost:8800/prodinout/delete/',
|
|
|
- // _turnOutUrl:'http://localhost:8800/prodinout/turnProdOut/',
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
initId:0,
|
|
|
|
|
|
toolBtns: [{
|
|
|
@@ -46,14 +35,12 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
defaultItems: [{
|
|
|
xtype: 'hidden',
|
|
|
name: 'id',
|
|
|
- bind: '{id}',
|
|
|
fieldLabel: 'id',
|
|
|
allowBlank: true,
|
|
|
columnWidth: 0
|
|
|
},{
|
|
|
xtype : "textfield",
|
|
|
name : "pi_class",
|
|
|
- bind : "{pi_class}",
|
|
|
fieldLabel : "单据类型",
|
|
|
readOnly:true,
|
|
|
allowBlank : true,
|
|
|
@@ -61,25 +48,21 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
}, {
|
|
|
xtype : "hidden",
|
|
|
name : "pi_vendid",
|
|
|
- bind : "{pi_vendid}",
|
|
|
fieldLabel : "供应商ID",
|
|
|
allowBlank : true,
|
|
|
columnWidth : 0.0
|
|
|
},{
|
|
|
xtype: 'hidden',
|
|
|
name: 'pi_vendcode',
|
|
|
- bind: '{pi_vendcode}',
|
|
|
fieldLabel: '供应商编号'
|
|
|
}, {
|
|
|
xtype: 'dbfindtrigger',
|
|
|
name: 'pi_vendname',
|
|
|
- bind: '{pi_vendname}',
|
|
|
fieldLabel: '供应商名称',
|
|
|
allowBlank : false,
|
|
|
},{
|
|
|
xtype : "datefield",
|
|
|
name : "pi_date",
|
|
|
- bind : "{pi_date}",
|
|
|
fieldLabel : "单据日期",
|
|
|
allowBlank : false,
|
|
|
columnWidth : 0.25,
|
|
|
@@ -87,7 +70,6 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
},{
|
|
|
xtype : "textfield",
|
|
|
name : "pi_total",
|
|
|
- bind : "{pi_total}",
|
|
|
fieldLabel : "总额",
|
|
|
allowBlank : true,
|
|
|
readOnly: true,
|
|
|
@@ -95,14 +77,12 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
}, {
|
|
|
xtype : "hidden",
|
|
|
name : "pi_puid",
|
|
|
- bind : "{pi_puid}",
|
|
|
fieldLabel : "采购单id",
|
|
|
allowBlank : true,
|
|
|
columnWidth : 0.25
|
|
|
},{
|
|
|
xtype : "hidden",
|
|
|
name : "pi_pucode",
|
|
|
- bind : "{pi_pucode}",
|
|
|
fieldLabel : "采购单号",
|
|
|
allowBlank : true,
|
|
|
columnWidth : 0.25
|
|
|
@@ -110,7 +90,6 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
name : "detailGridField",
|
|
|
xtype : "detailGridField",
|
|
|
storeModel:'saas.model.purchase.ProdIODetail',
|
|
|
- // deleteDetailUrl:'http://localhost:8800/prodinout/deleteDetail/',
|
|
|
deleteDetailUrl:'/api/purchase/prodinout/deleteDetail/',
|
|
|
detnoColumn: 'pd_pdno',
|
|
|
columns : [
|
|
|
@@ -175,6 +154,7 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
{
|
|
|
text : "数量",
|
|
|
dataIndex : "pd_inqty",
|
|
|
+ xtype: 'numbercolumn',
|
|
|
width : 120.0,
|
|
|
allowBlank : false,
|
|
|
editor : {
|
|
|
@@ -195,9 +175,10 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
var format = '0.' + xr.join();
|
|
|
return Ext.util.Format.number(v, format);
|
|
|
}
|
|
|
- }, {
|
|
|
+ }, {
|
|
|
text : "已转数",
|
|
|
dataIndex : "pd_yqty",
|
|
|
+ xtype: 'numbercolumn',
|
|
|
hidden:true,
|
|
|
width : 120.0,
|
|
|
editor : {
|
|
|
@@ -250,6 +231,7 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
},
|
|
|
{
|
|
|
text : "单价",
|
|
|
+ xtype: 'numbercolumn',
|
|
|
editor : {
|
|
|
xtype : "numberfield",
|
|
|
decimalPrecision: 8,
|
|
|
@@ -264,6 +246,7 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
return Ext.util.Format.number(v, format);
|
|
|
},
|
|
|
}, {
|
|
|
+ xtype: 'numbercolumn',
|
|
|
text : "税率",
|
|
|
dataIndex : "pd_taxrate",
|
|
|
width : 120.0,
|
|
|
@@ -275,6 +258,7 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
}
|
|
|
},{
|
|
|
text : "含税金额",
|
|
|
+ xtype: 'numbercolumn',
|
|
|
dataIndex : "pd_total",
|
|
|
width : 120.0,
|
|
|
editor : {
|
|
|
@@ -298,6 +282,7 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
},
|
|
|
{
|
|
|
text : "未税金额",
|
|
|
+ xtype: 'numbercolumn',
|
|
|
dataIndex : "pd_nettotal",
|
|
|
editor : {
|
|
|
xtype : "numberfield",
|