|
|
@@ -9,6 +9,78 @@ Ext.define('saas.view.money.verification.FormPanelController', {
|
|
|
'dbfindtrigger[name=vc_custname]':{
|
|
|
beforerender:function(f){
|
|
|
Ext.apply(f,{
|
|
|
+ dbColumns: [{
|
|
|
+ conditionCode: 'id',
|
|
|
+ text: "客户ID",
|
|
|
+ dataIndex: "id",
|
|
|
+ hidden:true,
|
|
|
+ xtype: "",
|
|
|
+ }, {
|
|
|
+ conditionCode: 'cu_code',
|
|
|
+ text: "客户编号",
|
|
|
+ dataIndex: "cu_code",
|
|
|
+ width: 150,
|
|
|
+ xtype: "",
|
|
|
+ }, {
|
|
|
+ conditionCode: 'cu_name',
|
|
|
+ text: "客户名称",
|
|
|
+ dataIndex: "cu_name",
|
|
|
+ width: 200,
|
|
|
+ xtype: "",
|
|
|
+ }, {
|
|
|
+ conditionCode: 'cu_type',
|
|
|
+ text: "客户类型",
|
|
|
+ dataIndex: "cu_type",
|
|
|
+ width: 110,
|
|
|
+ xtype: "",
|
|
|
+ }, {
|
|
|
+ text: "业务员编号",
|
|
|
+ dataIndex: "cu_sellercode",
|
|
|
+ width:110
|
|
|
+ }, {
|
|
|
+ text: "业务员",
|
|
|
+ dataIndex: "cu_sellername",
|
|
|
+ width:110
|
|
|
+ }, {
|
|
|
+ text: "税率",
|
|
|
+ dataIndex: "cu_taxrate",
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ width:80,
|
|
|
+ renderer: function (v) {
|
|
|
+ return Ext.util.Format.number(v, '0');
|
|
|
+ }
|
|
|
+ },{
|
|
|
+ text: "应收款余额",
|
|
|
+ dataIndex: "cu_leftamount",
|
|
|
+ width:110,
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ renderer : function(v) {
|
|
|
+ if(!v) {
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ var arr = (v + '.').split('.');
|
|
|
+ var xr = (new Array(arr[1].length > 3 ? 3 : arr[1].length)).fill('0');
|
|
|
+ var format = '0.' + xr.join();
|
|
|
+ return Ext.util.Format.number(v, format);
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text: "结算天数",
|
|
|
+ dataIndex: "cu_promisedays",
|
|
|
+ width:110,
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ renderer: function (v) {
|
|
|
+ return Ext.util.Format.number(v, '0');
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text: "额度",
|
|
|
+ dataIndex: "cu_credit",
|
|
|
+ width:110,
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ }, {
|
|
|
+ text: "客户地址",
|
|
|
+ dataIndex: "ca_address",
|
|
|
+ width: 250
|
|
|
+ }],
|
|
|
//赋值
|
|
|
dbfinds:[{
|
|
|
from: 'id', to: 'vc_custid',ignore:true
|
|
|
@@ -25,6 +97,78 @@ Ext.define('saas.view.money.verification.FormPanelController', {
|
|
|
'dbfindtrigger[name=vc_turncustname]':{
|
|
|
beforerender:function(f){
|
|
|
Ext.apply(f,{
|
|
|
+ dbColumns: [{
|
|
|
+ conditionCode: 'id',
|
|
|
+ text: "客户ID",
|
|
|
+ dataIndex: "id",
|
|
|
+ hidden:true,
|
|
|
+ xtype: "",
|
|
|
+ }, {
|
|
|
+ conditionCode: 'cu_code',
|
|
|
+ text: "客户编号",
|
|
|
+ dataIndex: "cu_code",
|
|
|
+ width: 150,
|
|
|
+ xtype: "",
|
|
|
+ }, {
|
|
|
+ conditionCode: 'cu_name',
|
|
|
+ text: "客户名称",
|
|
|
+ dataIndex: "cu_name",
|
|
|
+ width: 200,
|
|
|
+ xtype: "",
|
|
|
+ }, {
|
|
|
+ conditionCode: 'cu_type',
|
|
|
+ text: "客户类型",
|
|
|
+ dataIndex: "cu_type",
|
|
|
+ width: 110,
|
|
|
+ xtype: "",
|
|
|
+ }, {
|
|
|
+ text: "业务员编号",
|
|
|
+ dataIndex: "cu_sellercode",
|
|
|
+ width:110
|
|
|
+ }, {
|
|
|
+ text: "业务员",
|
|
|
+ dataIndex: "cu_sellername",
|
|
|
+ width:110
|
|
|
+ }, {
|
|
|
+ text: "税率",
|
|
|
+ dataIndex: "cu_taxrate",
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ width:80,
|
|
|
+ renderer: function (v) {
|
|
|
+ return Ext.util.Format.number(v, '0');
|
|
|
+ }
|
|
|
+ },{
|
|
|
+ text: "应收款余额",
|
|
|
+ dataIndex: "cu_leftamount",
|
|
|
+ width:110,
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ renderer : function(v) {
|
|
|
+ if(!v) {
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ var arr = (v + '.').split('.');
|
|
|
+ var xr = (new Array(arr[1].length > 3 ? 3 : arr[1].length)).fill('0');
|
|
|
+ var format = '0.' + xr.join();
|
|
|
+ return Ext.util.Format.number(v, format);
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text: "结算天数",
|
|
|
+ dataIndex: "cu_promisedays",
|
|
|
+ width:110,
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ renderer: function (v) {
|
|
|
+ return Ext.util.Format.number(v, '0');
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text: "额度",
|
|
|
+ dataIndex: "cu_credit",
|
|
|
+ width:110,
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ }, {
|
|
|
+ text: "客户地址",
|
|
|
+ dataIndex: "ca_address",
|
|
|
+ width: 250
|
|
|
+ }],
|
|
|
//赋值
|
|
|
dbfinds:[{
|
|
|
from: 'id', to: 'vc_turncustid',ignore:true
|
|
|
@@ -41,6 +185,74 @@ Ext.define('saas.view.money.verification.FormPanelController', {
|
|
|
'dbfindtrigger[name=vc_vendname]':{
|
|
|
beforerender: function (f) {
|
|
|
Ext.apply(f, {
|
|
|
+ dbColumns:[{
|
|
|
+ text: "供应商ID",
|
|
|
+ hidden: true,
|
|
|
+ dataIndex: "id",
|
|
|
+ xtype: "numbercolumn"
|
|
|
+ },{
|
|
|
+ text: "供应商编号",
|
|
|
+ dataIndex: "ve_code",
|
|
|
+ width: 150
|
|
|
+ }, {
|
|
|
+ text: "供应商名称",
|
|
|
+ dataIndex: "ve_name",
|
|
|
+ width: 200
|
|
|
+ }, {
|
|
|
+ text: "供应商类型",
|
|
|
+ dataIndex: "ve_type",
|
|
|
+ width: 110,
|
|
|
+ }, {
|
|
|
+ text: "税率",
|
|
|
+ dataIndex: "ve_taxrate",
|
|
|
+ width: 80,
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ align:'end',
|
|
|
+ renderer : function(v) {
|
|
|
+ if(!v) {
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ var arr = (v + '.').split('.');
|
|
|
+ var xr = (new Array(arr[1].length > 3 ? 3 : arr[1].length)).fill('0');
|
|
|
+ var format = '0.' + xr.join();
|
|
|
+ return Ext.util.Format.number(v, format);
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text: "应付款余额",
|
|
|
+ dataIndex: "ve_leftamount",
|
|
|
+ width:110,
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ renderer : function(v) {
|
|
|
+ if(!v) {
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ var arr = (v + '.').split('.');
|
|
|
+ var xr = (new Array(arr[1].length > 3 ? 3 : arr[1].length)).fill('0');
|
|
|
+ var format = '0.' + xr.join();
|
|
|
+ return Ext.util.Format.number(v, format);
|
|
|
+ }
|
|
|
+ },{
|
|
|
+ text: "结算天数",
|
|
|
+ dataIndex: "ve_promisedays",
|
|
|
+ width: 110,
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ align: 'end',
|
|
|
+ renderer : function(v) {
|
|
|
+ return Ext.util.Format.number(v, '0');
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text: "纳税人识别号",
|
|
|
+ dataIndex: "ve_nsrzh",
|
|
|
+ width: 150
|
|
|
+ }, {
|
|
|
+ text: "开户银行",
|
|
|
+ dataIndex: "ve_bankcode",
|
|
|
+ width: 150
|
|
|
+ }, {
|
|
|
+ text: "银行账户",
|
|
|
+ dataIndex: "ve_bankaccount",
|
|
|
+ width: 200
|
|
|
+ }],
|
|
|
dbfinds: [{
|
|
|
from: 'id',
|
|
|
to: 'vc_vendid',
|
|
|
@@ -56,29 +268,78 @@ Ext.define('saas.view.money.verification.FormPanelController', {
|
|
|
|
|
|
}
|
|
|
},
|
|
|
- // 转出供应商
|
|
|
- 'dbfindtrigger[name=vc_outvendname]':{
|
|
|
+ // 转入供应商
|
|
|
+ 'dbfindtrigger[name=vc_turnvendname]':{
|
|
|
beforerender: function (f) {
|
|
|
Ext.apply(f, {
|
|
|
- dbfinds: [{
|
|
|
- from: 'id',
|
|
|
- to: 'vc_outvendid',
|
|
|
- ignore: true
|
|
|
+ dbColumns:[{
|
|
|
+ text: "供应商ID",
|
|
|
+ hidden: true,
|
|
|
+ dataIndex: "id",
|
|
|
+ xtype: "numbercolumn"
|
|
|
+ },{
|
|
|
+ text: "供应商编号",
|
|
|
+ dataIndex: "ve_code",
|
|
|
+ width: 150
|
|
|
}, {
|
|
|
- from: 've_code',
|
|
|
- to: 'vc_outvendcode'
|
|
|
+ text: "供应商名称",
|
|
|
+ dataIndex: "ve_name",
|
|
|
+ width: 200
|
|
|
}, {
|
|
|
- from: 've_name',
|
|
|
- to: 'vc_outvendname'
|
|
|
+ text: "供应商类型",
|
|
|
+ dataIndex: "ve_type",
|
|
|
+ width: 110,
|
|
|
+ }, {
|
|
|
+ text: "税率",
|
|
|
+ dataIndex: "ve_taxrate",
|
|
|
+ width: 80,
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ align:'end',
|
|
|
+ renderer : function(v) {
|
|
|
+ if(!v) {
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ var arr = (v + '.').split('.');
|
|
|
+ var xr = (new Array(arr[1].length > 3 ? 3 : arr[1].length)).fill('0');
|
|
|
+ var format = '0.' + xr.join();
|
|
|
+ return Ext.util.Format.number(v, format);
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text: "应付款余额",
|
|
|
+ dataIndex: "ve_leftamount",
|
|
|
+ width:110,
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ renderer : function(v) {
|
|
|
+ if(!v) {
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ var arr = (v + '.').split('.');
|
|
|
+ var xr = (new Array(arr[1].length > 3 ? 3 : arr[1].length)).fill('0');
|
|
|
+ var format = '0.' + xr.join();
|
|
|
+ return Ext.util.Format.number(v, format);
|
|
|
+ }
|
|
|
+ },{
|
|
|
+ text: "结算天数",
|
|
|
+ dataIndex: "ve_promisedays",
|
|
|
+ width: 110,
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ align: 'end',
|
|
|
+ renderer : function(v) {
|
|
|
+ return Ext.util.Format.number(v, '0');
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text: "纳税人识别号",
|
|
|
+ dataIndex: "ve_nsrzh",
|
|
|
+ width: 150
|
|
|
+ }, {
|
|
|
+ text: "开户银行",
|
|
|
+ dataIndex: "ve_bankcode",
|
|
|
+ width: 150
|
|
|
+ }, {
|
|
|
+ text: "银行账户",
|
|
|
+ dataIndex: "ve_bankaccount",
|
|
|
+ width: 200
|
|
|
}],
|
|
|
- });
|
|
|
-
|
|
|
- }
|
|
|
- },
|
|
|
- // 转入供应商
|
|
|
- 'dbfindtrigger[name=vc_turnvendname]':{
|
|
|
- beforerender: function (f) {
|
|
|
- Ext.apply(f, {
|
|
|
dbfinds: [{
|
|
|
from: 'id',
|
|
|
to: 'vc_turnvendid',
|