|
|
@@ -13,13 +13,13 @@ Ext.define('saas.view.purchase.purchase.FormPanel', {
|
|
|
_statusCodeField: 'pu_statuscode',
|
|
|
_detnoColumn: 'pd_detno',
|
|
|
_relationColumn: 'pd_puid',
|
|
|
- _readUrl:'http://localhost:8800/purchase/read/',
|
|
|
- _saveUrl:'http://localhost:8800/purchase/save',
|
|
|
- _auditUrl:'http://localhost:8800/purchase/audit',
|
|
|
- _deleteUrl:'http://localhost:8800/purchase/delete/',
|
|
|
- _deleteDetailUrl:'http://localhost:8800/purchase/deleteItem/',
|
|
|
- _turnInUrl:'http://localhost:8800/purchase/turnProdin/',
|
|
|
- initId:0,
|
|
|
+ _readUrl:'http://192.168.253.228:8800/purchase/read/',
|
|
|
+ _saveUrl:'http://192.168.253.228:8800/purchase/save',
|
|
|
+ _auditUrl:'http://192.168.253.228:8800/purchase/audit',
|
|
|
+ _deleteUrl:'http://192.168.253.228:8800/purchase/delete/',
|
|
|
+ _deleteDetailUrl:'http://192.168.253.228:8800/purchase/deleteItem/',
|
|
|
+ _turnInUrl:'http://192.168.253.228:8800/purchase/turnProdin/',
|
|
|
+ initId:76,
|
|
|
|
|
|
toolBtns: [{
|
|
|
xtype: 'button',
|
|
|
@@ -109,6 +109,7 @@ Ext.define('saas.view.purchase.purchase.FormPanel', {
|
|
|
}, {
|
|
|
name : "detailGridField",
|
|
|
xtype : "detailGridField",
|
|
|
+ storeModel:'saas.model.purchase.purchasedetail',
|
|
|
columns : [
|
|
|
{
|
|
|
text : "序号",
|
|
|
@@ -149,12 +150,18 @@ Ext.define('saas.view.purchase.purchase.FormPanel', {
|
|
|
{
|
|
|
text : "名称",
|
|
|
dataIndex : "pr_detail",
|
|
|
- ignore:true
|
|
|
+ ignore:true,
|
|
|
+ renderer: function (v, m, r) {
|
|
|
+ return r.data["product"]?r.data["product"][m.column.dataIndex]:'';
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
text : "规格",
|
|
|
dataIndex : "pr_spec",
|
|
|
- ignore:true
|
|
|
+ ignore:true,
|
|
|
+ renderer: function (v, m, r) {
|
|
|
+ return r.data["product"]?r.data["product"][m.column.dataIndex]:'';
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
text : "数量",
|