|
@@ -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);
|