ソースを参照

应收明细账查询去掉选项“显示销售发票明细”

madan 3 年 前
コミット
a8dcb45a93

+ 14 - 13
WebContent/app/controller/fa/ars/ShowCmDetail.js

@@ -85,19 +85,20 @@ Ext.define('erp.controller.fa.ars.ShowCmDetail', {
 				checked:true,
 				columnWidth: .71,
 				boxLabel: '显示发出商品信息'
-			},{
-				xtype: 'checkbox',
-				id: 'showdemsg',
-				name: 'showdemsg',
-				columnWidth: .71,
-				boxLabel: '显示销售发票明细'
-			}/*,{
-				xtype: 'checkbox',
-				id: 'showdemsg',
-				name: 'showdemsg',
-				columnWidth: .71,
-				boxLabel: '显示应收款转销明细'
-			}*/],
+			}
+				/*,{
+                    xtype: 'checkbox',
+                    id: 'showdemsg',
+                    name: 'showdemsg',
+                    columnWidth: .71,
+                    boxLabel: '显示销售发票明细'
+                },{
+                    xtype: 'checkbox',
+                    id: 'showdemsg',
+                    name: 'showdemsg',
+                    columnWidth: .71,
+                    boxLabel: '显示应收款转销明细'
+                }*/],
 			buttonAlign: 'center',
     	    buttons: [{
 	    		text: '确定',

+ 22 - 15
WebContent/app/controller/fa/ars/ShowCmDetailAll.js

@@ -147,27 +147,26 @@ Ext.define('erp.controller.fa.ars.ShowCmDetailAll', {
 				checked:true,
 				columnWidth: .71,
 				boxLabel: '显示发出商品信息'
-			},{
-				xtype: 'checkbox',
-				id: 'showdemsg',
-				name: 'showdemsg',
-				columnWidth: .71,
-				boxLabel: '显示销售发票明细'
-			}/*,{
-				xtype: 'checkbox',
-				id: 'showdemsg',
-				name: 'showdemsg',
-				columnWidth: .71,
-				boxLabel: '显示应收款转销明细'
-			}*/],
+			}
+				/*,{
+                    xtype: 'checkbox',
+                    id: 'showdemsg',
+                    name: 'showdemsg',
+                    columnWidth: .71,
+                    boxLabel: '显示销售发票明细'
+                },{
+                    xtype: 'checkbox',
+                    id: 'showdemsg',
+                    name: 'showdemsg',
+                    columnWidth: .71,
+                    boxLabel: '显示应收款转销明细'
+                }*/],
 			buttonAlign: 'center',
     	    buttons: [{
 	    		text: '确定',
 	    		width: 60,
 	    		cls: 'x-btn-blue',
 	    		handler: function(btn) {
-	    			debugger
-
 	    			var showArDetailVal = Ext.getCmp('showdemsg').getValue();
 	    			var grid = Ext.getCmp('cmdetailallgrid');
 	    			var fl = btn.ownerCt.ownerCt;
@@ -178,6 +177,14 @@ Ext.define('erp.controller.fa.ars.ShowCmDetailAll', {
 					tb_custcode = Ext.getCmp('cmq_custcode').getValue().cm_custcode;
 					tb_custname = Ext.getCmp('cm_custname').getValue();
 					var currency = Ext.getCmp('cm_currency').getValue();
+					if(Ext.isEmpty(tb_custcode) || tb_custcode == null  || tb_custcode==''){
+						showError('客户编号不能为空!');
+						return;
+					}
+					if(Ext.isEmpty(currency) || currency == null || currency == ''){
+						showError('币别不能为空!');
+						return;
+					}
 	    			if(showArDetailVal){
 	    				grid.columns = grid.detailColumns;
 	    				me.getConditionDetail(con,'fa/ars/CmQueryController/getCmDetailByIdAllDetail.action',yearmonthbg,yearmonthed,custcode,currency);