Browse Source

【界面标准化】【采购验收单】【界面标准化】【前端处理】

rainco 7 năm trước cách đây
mục cha
commit
9fda73dca6

+ 33 - 7
frontend/saas-web/app/view/purchase/purchaseIn/FormPanel.js

@@ -69,13 +69,6 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
         allowBlank: false,
         columnWidth: 0.25,
         defaultValue: new Date()
-    }, {
-        xtype: "textfield",
-        name: "pi_total",
-        fieldLabel: "价税合计(元)",
-        allowBlank: true,
-        readOnly: true,
-        columnWidth: 0.25
     }, {
         xtype: "hidden",
         name: "pi_puid",
@@ -333,6 +326,39 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
         name: "pi_remark",
         fieldLabel: "备注",
         columnWidth: 1
+    }, {
+        xtype: "textfield",
+        name: "pu_currency",
+        fieldLabel: "币别",
+        readOnly: true,
+        defaultValue: 'RMB'
+    }, {
+        xtype: "textfield",
+        name: "pi_nettotal",
+        fieldLabel: "金额(元)",
+        allowBlank: true,
+        readOnly: true,
+        columnWidth: 0.25
+    }, {
+        xtype: "textfield",
+        name: "pi_total",
+        fieldLabel: "价税合计(元)",
+        allowBlank: true,
+        readOnly: true,
+        columnWidth: 0.25
+    }, {
+        xtype: "hidden",
+        name: "pi_buyercode",
+        fieldLabel: "采购员编号"
+    }, {
+        xtype: "employeeDbfindTrigger",
+        name: "pi_buyername",
+        fieldLabel: "采购员",
+        columnWidth: 0.25
+    }, {
+        xtype: "hidden",
+        name: "pi_buyerid",
+        fieldLabel: "采购员ID"
     }, {
         xtype: "hidden",
         name: "creatorId",

+ 15 - 1
frontend/saas-web/app/view/purchase/purchaseIn/FormPanelController.js

@@ -71,7 +71,21 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanelController', {
                     }) ;   
 
                 }
-            }
+            } , // 主表-采购员名称
+            'dbfindtrigger[name=pi_buyername]':{
+                beforerender:function(f){
+                    Ext.apply(f,{
+                        //赋值 
+                        dbfinds:[{
+                            from:'id',to:'pi_buyerid',ignore:true
+                        },{
+                            from:'em_code',to:'pi_buyercode'
+                        },{
+                            from:'em_name',to:'pi_buyername'
+                        }]
+                    }) ;   
+                }
+            },
 
         });