|
|
@@ -9,72 +9,6 @@ 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, m, r) {
|
|
|
- return saas.util.BaseUtil.numberFormat(v, 2, false);
|
|
|
- }
|
|
|
- },{
|
|
|
- text: "应收款余额",
|
|
|
- dataIndex: "cu_leftamount",
|
|
|
- width:110,
|
|
|
- xtype: 'numbercolumn',
|
|
|
- renderer : function(v, m, r) {
|
|
|
- return saas.util.BaseUtil.numberFormat(v, 2, true);
|
|
|
- }
|
|
|
- }, {
|
|
|
- text: "结算天数",
|
|
|
- dataIndex: "cu_promisedays",
|
|
|
- width:110,
|
|
|
- xtype: 'numbercolumn',
|
|
|
- renderer: function(v, m, r) {
|
|
|
- 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
|
|
|
@@ -96,72 +30,6 @@ 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, m, r) {
|
|
|
- return saas.util.BaseUtil.numberFormat(v, 2, false);
|
|
|
- }
|
|
|
- },{
|
|
|
- text: "应收款余额",
|
|
|
- dataIndex: "cu_leftamount",
|
|
|
- width:110,
|
|
|
- xtype: 'numbercolumn',
|
|
|
- renderer : function(v, m, r) {
|
|
|
- return saas.util.BaseUtil.numberFormat(v, 2, true);
|
|
|
- }
|
|
|
- }, {
|
|
|
- text: "结算天数",
|
|
|
- dataIndex: "cu_promisedays",
|
|
|
- width:110,
|
|
|
- xtype: 'numbercolumn',
|
|
|
- renderer: function(v, m, r) {
|
|
|
- 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
|
|
|
@@ -178,62 +46,6 @@ 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, m, r) {
|
|
|
- return saas.util.BaseUtil.numberFormat(v, 2, false);
|
|
|
- }
|
|
|
- }, {
|
|
|
- text: "应付款余额",
|
|
|
- dataIndex: "ve_leftamount",
|
|
|
- width:110,
|
|
|
- xtype: 'numbercolumn',
|
|
|
- renderer : function(v, m, r) {
|
|
|
- return saas.util.BaseUtil.numberFormat(v, 2, true);
|
|
|
- }
|
|
|
- },{
|
|
|
- text: "结算天数",
|
|
|
- dataIndex: "ve_promisedays",
|
|
|
- width: 110,
|
|
|
- xtype: 'numbercolumn',
|
|
|
- align: 'end',
|
|
|
- renderer : function(v, m, r) {
|
|
|
- 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',
|
|
|
@@ -258,62 +70,6 @@ Ext.define('saas.view.money.verification.FormPanelController', {
|
|
|
'dbfindtrigger[name=vc_turnvendname]':{
|
|
|
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, m, r) {
|
|
|
- return saas.util.BaseUtil.numberFormat(v, 2, false);
|
|
|
- }
|
|
|
- }, {
|
|
|
- text: "应付款余额",
|
|
|
- dataIndex: "ve_leftamount",
|
|
|
- width:110,
|
|
|
- xtype: 'numbercolumn',
|
|
|
- renderer : function(v, m, r) {
|
|
|
- return saas.util.BaseUtil.numberFormat(v, 2, true);
|
|
|
- }
|
|
|
- },{
|
|
|
- text: "结算天数",
|
|
|
- dataIndex: "ve_promisedays",
|
|
|
- width: 110,
|
|
|
- xtype: 'numbercolumn',
|
|
|
- align: 'end',
|
|
|
- renderer : function(v, m, r) {
|
|
|
- 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_turnvendid',
|