|
|
@@ -8,53 +8,87 @@ Ext.define('saas.view.sale.sale.FormPanelController', {
|
|
|
'dbfindtrigger[name=sa_custname]':{
|
|
|
beforerender:function(f){
|
|
|
Ext.apply(f,{
|
|
|
- dataUrl:'/api/document/customer/list',
|
|
|
+ dataUrl:'/api/document/customer/dbfind',
|
|
|
addXtype: 'document-customer-formpanel',
|
|
|
addTitle: '客户资料',
|
|
|
- dbfinds:[{
|
|
|
- from:'id',to:'sa_custid'
|
|
|
- },{
|
|
|
- from:'cu_code',to:'sa_custcode'
|
|
|
- },{
|
|
|
- from:'cu_name',to:'sa_custname'
|
|
|
+ dbfinds:[
|
|
|
+ {
|
|
|
+ from:'id',to:'sa_custid'
|
|
|
+ },{
|
|
|
+ from:'cu_code',to:'sa_custcode'
|
|
|
+ },{
|
|
|
+ from:'cu_name',to:'sa_custname'
|
|
|
+ },{
|
|
|
+ from:'ca_address',to:'sa_address'
|
|
|
}],
|
|
|
dbtpls:[{
|
|
|
field:'cu_code',width:100
|
|
|
},{
|
|
|
field:'cu_name',width:100
|
|
|
}],
|
|
|
- dbColumns:[{
|
|
|
- conditionCode:'id',
|
|
|
- "text": "客户ID",
|
|
|
- "flex": 0,
|
|
|
- "dataIndex": "id",
|
|
|
- "width": 100,
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- },{
|
|
|
- conditionCode:'cu_code',
|
|
|
- "text": "客户编号",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "cu_code",
|
|
|
- "width": 100,
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- }, {
|
|
|
- conditionCode:'cu_name',
|
|
|
- "text": "客户名称",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "cu_name",
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- }, {
|
|
|
- conditionCode:'cu_type',
|
|
|
- "text": "客户类型",
|
|
|
- "flex": 0,
|
|
|
- "dataIndex": "cu_type",
|
|
|
- "width": 200,
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- }]
|
|
|
+ dbColumns:[
|
|
|
+ {
|
|
|
+ conditionCode:'id',
|
|
|
+ "text": "客户ID",
|
|
|
+ "flex": 0,
|
|
|
+ "dataIndex": "id",
|
|
|
+ "width": 0,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ },{
|
|
|
+ conditionCode:'cu_code',
|
|
|
+ "text": "客户编号",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_code",
|
|
|
+ "width": 100,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ conditionCode:'cu_name',
|
|
|
+ "text": "客户名称",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_name",
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ conditionCode:'cu_type',
|
|
|
+ "text": "客户类型",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_type",
|
|
|
+ "width": 200,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ "text": "业务员编号",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_sellercode",
|
|
|
+ "width": 100
|
|
|
+ }, {
|
|
|
+ "text": "业务员",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_sellername",
|
|
|
+ "width": 100
|
|
|
+ }, {
|
|
|
+ "text": "税率",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_taxrate",
|
|
|
+ "width": 100
|
|
|
+ }, {
|
|
|
+ "text": "承付天数",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_promisedays",
|
|
|
+ "width": 100
|
|
|
+ }, {
|
|
|
+ "text": "额度",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "cu_credit",
|
|
|
+ "width": 100
|
|
|
+ }, {
|
|
|
+ "text": "客户地址",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "ca_address",
|
|
|
+ "width": 250
|
|
|
+ }]
|
|
|
}) ;
|
|
|
|
|
|
}
|
|
|
@@ -73,40 +107,85 @@ Ext.define('saas.view.sale.sale.FormPanelController', {
|
|
|
from:'pr_detail',to:'pr_detail'
|
|
|
}, {
|
|
|
from:'pr_spec',to:'pr_spec'
|
|
|
+ }, {
|
|
|
+ from:'id',to:'sd_prodid'
|
|
|
}],
|
|
|
dbtpls:[{
|
|
|
field:'pr_code',width:100
|
|
|
},{
|
|
|
field:'pr_detail',width:100
|
|
|
}],
|
|
|
- dbColumns:[{
|
|
|
- "text": "物料ID",
|
|
|
- "flex": 0,
|
|
|
- "dataIndex": "pr_id",
|
|
|
- "width": 0,
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- },{
|
|
|
- "text": "物料编号",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "pr_code",
|
|
|
- "width": 100,
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- }, {
|
|
|
- "text": "物料名称",
|
|
|
- "flex": 1,
|
|
|
- "dataIndex": "pr_detail",
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- }, {
|
|
|
- "text": "物料规格",
|
|
|
- "flex": 0,
|
|
|
- "dataIndex": "pr_spec",
|
|
|
- "width": 200,
|
|
|
- "xtype": "",
|
|
|
- "items": null
|
|
|
- }]
|
|
|
+ dbColumns:[
|
|
|
+ {
|
|
|
+ "text": "物料ID",
|
|
|
+ "flex": 0,
|
|
|
+ "dataIndex": "id",
|
|
|
+ "width": 0,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ },{
|
|
|
+ "text": "物料编号",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "pr_code",
|
|
|
+ "width": 100,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ "text": "物料名称",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "pr_detail",
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ "text": "规格",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "pr_spec",
|
|
|
+ "width": 200,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ "text": "单位",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "pr_unit",
|
|
|
+ "width": 200,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ "text": "品牌",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "pr_brand",
|
|
|
+ "width": 200,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ "text": "供应商ID",
|
|
|
+ "flex": 0,
|
|
|
+ "dataIndex": "pr_vendid",
|
|
|
+ "width": 0,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ "text": "供应商编号",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "pr_vendcode",
|
|
|
+ "width": 200,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ "text": "供应商名称",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "pr_vendname",
|
|
|
+ "width": 200,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }, {
|
|
|
+ "text": "最小包装量",
|
|
|
+ "flex": 1,
|
|
|
+ "dataIndex": "pr_zxbzs",
|
|
|
+ "width": 200,
|
|
|
+ "xtype": "",
|
|
|
+ "items": null
|
|
|
+ }]
|
|
|
}) ;
|
|
|
|
|
|
}
|