|
|
@@ -132,33 +132,12 @@ Ext.define('saas.view.document.customer.FormPanel', {
|
|
|
columnWidth: 0.25,
|
|
|
group: '交易信息',
|
|
|
}, {
|
|
|
- xtype: 'condbfindtrigger',
|
|
|
- fieldLabel: '币别汇率',
|
|
|
+ xtype: 'currencyDbfindTrigger',
|
|
|
+ name: "cu_currency",
|
|
|
+ fieldLabel: '币别',
|
|
|
allowBlank: false,
|
|
|
- dbType: 'currencyDbfindTrigger',
|
|
|
- dbfinds: [{
|
|
|
- from: 'cr_name', to: 'cu_currency'
|
|
|
- }, {
|
|
|
- from: 'cr_rate', to: 'cr_rate'
|
|
|
- }],
|
|
|
- defaultValue: {
|
|
|
- cu_currency: this.getViewModel().get('defaultCurrency'),
|
|
|
- cu_taxrate: 1
|
|
|
- },
|
|
|
- supFieldConfig: {
|
|
|
- xtype: 'numberfield',
|
|
|
- readOnly: false,
|
|
|
- ignore:true,
|
|
|
- defaultReadOnly: false,
|
|
|
- decimalPrecision: 6,
|
|
|
- vtype: 'positiveNumber',
|
|
|
- listeners: {
|
|
|
- change: function(f, v) {
|
|
|
- var defaultCurrency = Ext.getCmp('mainView').getViewModel().get('defaultCurrency');
|
|
|
- f.setReadOnly(f.ownerCt.items.items[0].value == defaultCurrency);
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
+ columnWidth: 0.25,
|
|
|
+ defaultValue: this.getViewModel().get('defaultCurrency') ,
|
|
|
group: '交易信息',
|
|
|
}, {
|
|
|
xtype: "numberfield",
|