Browse Source

采购单URL修改

rainco 7 years ago
parent
commit
82e6a9d67e

+ 9 - 30
frontend/saas-web/app/view/purchase/purchase/FormPanel.js

@@ -14,8 +14,8 @@ Ext.define('saas.view.purchase.purchase.FormPanel', {
      _codeField: 'pu_code',
      _statusField: 'pu_status',
      _statusCodeField: 'pu_statuscode',
-     
      _relationColumn: 'pd_puid',
+
      _readUrl:basePath+'purchase/purchase/read/',
      _saveUrl:basePath+'purchase/purchase/save',
      _auditUrl:basePath+'purchase/purchase/audit',
@@ -33,45 +33,24 @@ Ext.define('saas.view.purchase.purchase.FormPanel', {
     defaultItems: [{
         xtype: 'hidden',
         name: 'id',
-        bind: '{id}',
         fieldLabel: 'id',
-        allowBlank: true,
         columnWidth: 0
-    }, {
-        xtype : "textfield", 
-        name : "pu_code", 
-        bind : "{pu_code}", 
-        fieldLabel : "采购单号", 
-        allowBlank : true, 
-        columnWidth : 0.25
     }, {
         xtype : "hidden", 
         name : "pu_vendid", 
-        bind : "{pu_vendid}", 
-        fieldLabel : "供应商ID", 
-        allowBlank : true, 
-        columnWidth : 0.0
+        fieldLabel : "供应商ID"
     }, {
-        xtype : "dbfindtrigger", 
+        xtype : "hidden", 
         name : "pu_vendcode", 
-        bind : "{pu_vendcode}", 
-        fieldLabel : "供应商编号", 
-        allowBlank : true, 
-        columnWidth : 0.25, 
+        fieldLabel : "供应商编号"
     }, {
-        xtype : "textfield", 
+        xtype : "dbfindtrigger", 
         name : "pu_vendname", 
-        bind : "{pu_vendname}", 
-        fieldLabel : "供应商名称", 
-        allowBlank : true, 
-        columnWidth : 0.25
+        fieldLabel : "供应商名称"
     },{
-        xtype : "datefield", 
-        name : "pu_date", 
-        bind : "{pu_date}", 
-        fieldLabel : "采购日期", 
-        allowBlank : false, 
-        columnWidth : 0.25
+        xtype : "hidden", 
+        name : "pu_delivery", 
+        fieldLabel : "交货日期"
     }, {
         xtype : "hidden", 
         name : "pu_buyerid", 

+ 3 - 3
frontend/saas-web/app/view/purchase/purchase/FormPanelController.js

@@ -9,7 +9,7 @@ Ext.define('saas.view.purchase.purchase.FormPanelController', {
                 beforerender:function(f){
                     Ext.apply(f,{
                         //数据接口
-                        dataUrl:'http://192.168.253.41:9480/vendor/getVendorsByCondition',
+                        dataUrl:basePath+'document/vendor/getVendorsByCondition',
                         //赋值 
                         dbfinds:[{
                             from:'ve_code',to:'pu_vendcode'
@@ -70,7 +70,7 @@ Ext.define('saas.view.purchase.purchase.FormPanelController', {
                 beforerender:function(f){
                     Ext.apply(f,{
                         //数据接口
-                        dataUrl:'http://192.168.253.41:9480/product/getProductsByCondition',
+                        dataUrl:basePath+'document/product/getProductsByCondition',
                         //放大镜赋值设置
                         dbfinds:[{
                             from:'pr_code',to:'pd_prodcode'
@@ -132,7 +132,7 @@ Ext.define('saas.view.purchase.purchase.FormPanelController', {
                 beforerender:function(f){
                     Ext.apply(f,{
                         //数据接口
-                        dataUrl:'http://192.168.253.41:9480/product/getProductsByCondition',
+                        dataUrl:'http://192.168.253.31:9480/product/getProductsByCondition',
                         //放大镜赋值设置
                         dbfinds:[{
                             from:'pr_code',to:'pd_prodcode'