|
|
@@ -13,11 +13,11 @@ Ext.define('saas.view.document.product.panel.FormPanel', {
|
|
|
_codeField: 'pr_code',
|
|
|
_statusField: 'pr_status',
|
|
|
_statusCodeField: 'pr_statuscode',
|
|
|
- _readUrl:'http://192.168.253.31:9480/product/read/',
|
|
|
- _saveUrl:'http://192.168.253.31:9480/product/save',
|
|
|
- _openUrl:'http://192.168.253.31:9480/product/open',
|
|
|
- _closeUrl:'http://192.168.253.31:9480/product/close',
|
|
|
- _deleteUrl:'http://192.168.253.31:9480/product/delete/',
|
|
|
+ _readUrl:basePath + 'document/product/read/',
|
|
|
+ _saveUrl:basePath + 'document/product/save',
|
|
|
+ _openUrl:basePath + 'document/product/open',
|
|
|
+ _closeUrl:basePath + 'document/product/close',
|
|
|
+ _deleteUrl:basePath + 'document/product/delete/',
|
|
|
initId:0,
|
|
|
|
|
|
defaultItems: [{
|
|
|
@@ -28,7 +28,7 @@ Ext.define('saas.view.document.product.panel.FormPanel', {
|
|
|
columnWidth: 0.25
|
|
|
},{
|
|
|
xtype: 'textfield',
|
|
|
- name: 'pr_name',
|
|
|
+ name: 'pr_detail',
|
|
|
fieldLabel: '物料名称',
|
|
|
allowBlank: false,
|
|
|
columnWidth: 0.25
|
|
|
@@ -36,12 +36,12 @@ Ext.define('saas.view.document.product.panel.FormPanel', {
|
|
|
xtype: 'textfield',
|
|
|
name: 'pr_code',
|
|
|
fieldLabel: '物料编号',
|
|
|
- allowBlank: true,
|
|
|
+ allowBlank: false,
|
|
|
columnWidth: 0.25
|
|
|
},{
|
|
|
xtype: 'textfield',
|
|
|
name: 'pr_status',
|
|
|
- fieldLabel: '状态',
|
|
|
+ fieldLabel: '可用状态',
|
|
|
allowBlank: true,
|
|
|
columnWidth: 0.25
|
|
|
},{
|
|
|
@@ -52,7 +52,7 @@ Ext.define('saas.view.document.product.panel.FormPanel', {
|
|
|
columnWidth: 0.25
|
|
|
},{
|
|
|
xtype : "remotecombo",
|
|
|
- storeUrl:"http://192.168.253.31:9480/producttype/getCombo",
|
|
|
+ storeUrl:basePath + 'document/producttype/getCombo',
|
|
|
name : "pr_type",
|
|
|
fieldLabel : "物料类型",
|
|
|
allowBlank : true,
|
|
|
@@ -64,8 +64,8 @@ Ext.define('saas.view.document.product.panel.FormPanel', {
|
|
|
producttype:{
|
|
|
keyField:'id',
|
|
|
dataField:'pr_name',
|
|
|
- reqUrl:'http://192.168.253.31:9480/producttype/save',
|
|
|
- delUrl:'http://192.168.253.31:9480/producttype/delete'
|
|
|
+ reqUrl:basePath + 'document/producttype/save',
|
|
|
+ delUrl:basePath + 'document/producttype/delete'
|
|
|
}
|
|
|
},
|
|
|
addHandler:function(b){
|
|
|
@@ -83,6 +83,109 @@ Ext.define('saas.view.document.product.panel.FormPanel', {
|
|
|
});
|
|
|
this.dialog.show();
|
|
|
}
|
|
|
+ },{
|
|
|
+ xtype : "remotecombo",
|
|
|
+ storeUrl:basePath+'ducument/product/getProdUnit',
|
|
|
+ name : "pr_unit",
|
|
|
+ bind : "{pr_unit}",
|
|
|
+ fieldLabel : "物料单位",
|
|
|
+ allowBlank : true,
|
|
|
+ queryMode: 'local',
|
|
|
+ displayField: 'display',
|
|
|
+ valueField: 'value',
|
|
|
+ columnWidth : 0.25,
|
|
|
+ etc:{
|
|
|
+ produnit:{
|
|
|
+ keyField:'id',
|
|
|
+ dataField:'vk_name',
|
|
|
+ reqUrl:basePath+'ducument/produnit/save',
|
|
|
+ delUrl:basePath+'ducument/produnit/delete'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ addHandler:function(b){
|
|
|
+ var form = this.ownerCmp.ownerCt;
|
|
|
+ this.dialog = form.getController().getView().add({
|
|
|
+ xtype: 'document-kind-childwin',
|
|
|
+ bind: {
|
|
|
+ title: '新增物料单位'
|
|
|
+ },
|
|
|
+ dataKind:'vendorkind',
|
|
|
+ belong:this.ownerCmp.etc['vendorkind'],
|
|
|
+ _parent:form,
|
|
|
+ record:null,
|
|
|
+ session: true
|
|
|
+ });
|
|
|
+ this.dialog.show();
|
|
|
+ }
|
|
|
+ },{
|
|
|
+ xtype : "remotecombo",
|
|
|
+ storeUrl:basePath+'ducument/product/getProdBrand',
|
|
|
+ name : "pr_brand",
|
|
|
+ bind : "{pr_brand}",
|
|
|
+ fieldLabel : "物料品牌",
|
|
|
+ allowBlank : true,
|
|
|
+ queryMode: 'local',
|
|
|
+ displayField: 'display',
|
|
|
+ valueField: 'value',
|
|
|
+ columnWidth : 0.25,
|
|
|
+ etc:{
|
|
|
+ productbrand:{
|
|
|
+ keyField:'id',
|
|
|
+ dataField:'pb_name',
|
|
|
+ reqUrl:basePath+'ducument/productbrand/save',
|
|
|
+ delUrl:basePath+'ducument/productbrand/delete'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ addHandler:function(b){
|
|
|
+ var form = this.ownerCmp.ownerCt;
|
|
|
+ this.dialog = form.getController().getView().add({
|
|
|
+ xtype: 'document-kind-childwin',
|
|
|
+ bind: {
|
|
|
+ title: '新增物料单位'
|
|
|
+ },
|
|
|
+ dataKind:'productbrand',
|
|
|
+ belong:this.ownerCmp.etc['productbrand'],
|
|
|
+ _parent:form,
|
|
|
+ record:null,
|
|
|
+ session: true
|
|
|
+ });
|
|
|
+ this.dialog.show();
|
|
|
+ }
|
|
|
+ },{
|
|
|
+ xtype : "dbfindtrigger",
|
|
|
+ name : "pr_vendcode",
|
|
|
+ bind : "{pr_vendcode}",
|
|
|
+ fieldLabel : "供应商编号",
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.25,
|
|
|
+ }, {
|
|
|
+ xtype : "textfield",
|
|
|
+ name : "pr_vendname",
|
|
|
+ bind : "{pr_vendname}",
|
|
|
+ fieldLabel : "供应商名称",
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.25
|
|
|
+ },{
|
|
|
+ xtype : "dbfindtrigger",
|
|
|
+ name : "pr_whcode",
|
|
|
+ bind : "{pr_whcode}",
|
|
|
+ fieldLabel : "仓库编号",
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.25,
|
|
|
+ }, {
|
|
|
+ xtype : "textfield",
|
|
|
+ name : "pr_whname",
|
|
|
+ bind : "{pr_whname}",
|
|
|
+ fieldLabel : "仓库名称",
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.25
|
|
|
+ },{
|
|
|
+ xtype : "numberfield",
|
|
|
+ name : "pr_standardprice",
|
|
|
+ bind : "{pr_standardprice}",
|
|
|
+ fieldLabel : "标准单价",
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.25
|
|
|
},{
|
|
|
format : "Y-m-d",
|
|
|
xtype : "datefield",
|