You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/Areas/TruckMng/Viewsjs/MsWlBs/MsWlBsCardModel.js

499 lines
23 KiB
JavaScript

3 years ago
Ext.define('MsWlBsHead', {
extend: 'Ext.data.Model',
idProperty: 'BillNo',
fields: [
{ name: 'BillNo', type: 'string' },
{ name: 'LrDate', type: 'string' },
{ name: 'JzDate', type: 'string' },
{ name: 'UserCode', type: 'string' },
{ name: 'UserName', type: 'string' },
{ name: 'OrgCode', type: 'string' },
{ name: 'OrgName', type: 'string' },
{ name: 'LogisticsNo', type: 'string' },
{ name: 'CustCode', type: 'string' },
{ name: 'CustName', type: 'string' },
{ name: 'CustName_Ref', type: 'string' },
{ name: 'CustDate', type: 'string' },
{ name: 'VoyVeg', type: 'string' },
{ name: 'VoyVeg_Ref', type: 'string' },
{ name: 'EtDate', type: 'string' },
{ name: 'EndPortDate', type: 'string' },
{ name: 'MblNo', type: 'string' },
{ name: 'SalesCode', type: 'string' },
{ name: 'SalesCode_Ref', type: 'string' },
{ name: 'SalesName', type: 'string' },
{ name: 'LoadPlace', type: 'string' },
{ name: 'FactoryAddr', type: 'string' },
{ name: 'DispatchCode', type: 'string' },
{ name: 'DispatchCode_Ref', type: 'string' },
{ name: 'DispatchName', type: 'string' },
{ name: 'SendYardCode', type: 'string' },
{ name: 'SendYardCode_Ref', type: 'string' },
{ name: 'SendYardName', type: 'string' },
{ name: 'RtnYardCode', type: 'string' },
{ name: 'RtnYard', type: 'string' },
{ name: 'DstArea', type: 'string' },
{ name: 'DetiNation', type: 'string' },
{ name: 'DetiLinkTel', type: 'string' },
{ name: 'DetiLinkMan', type: 'string' },
{ name: 'BsType', type: 'string' },
{ name: 'BsType_Ref', type: 'string' },
{ name: 'Remark', type: 'string' },
{ name: 'BillStatus', type: 'string' },
{ name: 'BillStatus_Ref', type: 'string' },
{ name: 'BsStatus', type: 'string' },
{ name: 'BsStatus_Ref', type: 'string' },
{ name: 'FEESTATUS', type: 'string' },
{ name: 'FeeStatus_Ref', type: 'string' },
{ name: 'TimeMark', type: 'number' },
{ name: 'GId', type: 'string' },
{ name: 'CustLikeManCode', type: 'string' },
{ name: 'CustLikeManName', type: 'string' },
{ name: 'CustTel', type: 'string' },
{ name: 'BillRises1', type: 'string' },
{ name: 'FeeOpStatus', type: 'string' },
{ name: 'FeeOpStatus_Ref', type: 'string' },
{ name: 'VoyVegSe', type: 'string' },
{ name: 'GoodsName', type: 'string' },
{ name: 'PcType', type: 'string' },
{ name: 'TruckNo', type: 'string' },
{ name: 'PKGS', type: 'number' },
{ name: 'KGS', type: 'number' },
{ name: 'CBM', type: 'number' },
{ name: 'PCPKGS', type: 'number' },
{ name: 'PCKGS', type: 'number' },
{ name: 'PCCBM', type: 'number' },
{ name: 'NPKGS', type: 'number' },
{ name: 'NKGS', type: 'number' },
{ name: 'NCBM', type: 'number' },
{ name: 'KINDPKGS', type: 'string' },
{ name: 'CtnInfo', type: 'string' }
]
});
Ext.define('MsWlBsFixed', {
extend: 'Ext.data.Model',
idProperty: 'BillNo,SerialNo',
fields: [
{ name: 'BillNo', type: 'string' },
{ name: 'SerialNo', type: 'number' },
{ name: 'CreditDebit', type: 'string' },
{ name: 'CreditDebit_Ref', type: 'string' },
{ name: 'FeeTypeCode', type: 'string' },
{ name: 'FeeTypeCode_Ref', type: 'string' },
{ name: 'FeeTypeName', type: 'string' },
{ name: 'DistCount', type: 'number' },
{ name: 'Price', type: 'number' },
{ name: 'FsTotal', type: 'number' },
{ name: 'JsTotal', type: 'number' },
{ name: 'Remark', type: 'string' },
{ name: 'GId', type: 'string' },
{ name: 'FeeStatus', type: 'number' },
{ name: 'FeeStatus_Ref', type: 'string' },
{ name: 'SubmitDate', type: 'date' },
{ name: 'Auditoperator', type: 'string' },
{ name: 'AuditDate', type: 'date' },
{ name: 'AuditStatus', type: 'number' },
{ name: 'NeadLoadDate', type: 'string' },
{ name: 'NeedArriveDate', type: 'string' }
]
});
Ext.define('MsWlPcHead', {
extend: 'Ext.data.Model',
idProperty: 'BillNo',
fields: [
{ name: 'BillNo', type: 'string' },
{ name: 'LrDate', type: 'date' },
{ name: 'JzDate', type: 'date' },
{ name: 'UserCode', type: 'string' },
{ name: 'UserName', type: 'string' },
{ name: 'OrgCode', type: 'string' },
{ name: 'OrgName', type: 'string' },
{ name: 'TruckNo', type: 'string' },
{ name: 'TruckNo_Ref', type: 'string' },
{ name: 'DrvCode', type: 'string' },
{ name: 'DrvName', type: 'string' },
{ name: 'DrvCode_Ref', type: 'string' },
{ name: 'Mobile', type: 'string' },
//{ name: 'ExpDate', type: 'date', dateFormat: 'Y-m-d H:i:s' },
{ name: 'ExpDate', type: 'string' },
{ name: 'ContainerType', type: 'string' },
{ name: 'ContainerType_Ref', type: 'string' },
{ name: 'ContainerQty', type: 'number' },
{ name: 'VoyVeg', type: 'string' },
{ name: 'VoyVeg_Ref', type: 'string' },
{ name: 'EtDate', type: 'string' },
{ name: 'EndPortDate', type: 'string' },
{ name: 'MblNo', type: 'string' },
{ name: 'YardCode', type: 'string' },
{ name: 'YardCode_Ref', type: 'string' },
{ name: 'YardName', type: 'string' },
{ name: 'RtnYardCode', type: 'string' },
{ name: 'RtnYardCode_Ref', type: 'string' },
{ name: 'RtnYardName', type: 'string' },
{ name: 'DstArea', type: 'string' },
{ name: 'DetiNation', type: 'string' },
{ name: 'FactoryAddr', type: 'string' },
{ name: 'LinkTel', type: 'string' },
{ name: 'LinkMan', type: 'string' },
{ name: 'RatedMil', type: 'number' },
{ name: 'RatedFuel', type: 'number' },
{ name: 'FuelQty', type: 'number' },
{ name: 'RealMil', type: 'number' },
{ name: 'RealFuel', type: 'number' },
{ name: 'NoLoadMil', type: 'number' },
{ name: 'OverLoadMil', type: 'number' },
{ name: 'Ton', type: 'number' },
{ name: 'AroundTon', type: 'number' },
{ name: 'LoadCount', type: 'number' },
{ name: 'ArriveDate', type: 'string' },
{ name: 'DdCode', type: 'string' },
{ name: 'DdCode_Ref', type: 'string' },
{ name: 'DdName', type: 'string' },
{ name: 'ReturnDate', type: 'string' },
{ name: 'RefBillNo', type: 'string' },//
{ name: 'Remark', type: 'string' },
{ name: 'IsDouble', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'RefBillNoSe', type: 'string' },
{ name: 'ContainerTypeSe', type: 'string' },
{ name: 'ContainerTypeSe_Ref', type: 'string' },
{ name: 'ContainerQtySe', type: 'number' },
{ name: 'MblNoSe', type: 'string' },
{ name: 'VoyVegSe', type: 'string' },
{ name: 'VoyVegSe_Ref', type: 'string' },
{ name: 'EtDateSe', type: 'string' },
{ name: 'EndPortDateSe', type: 'string' },
{ name: 'YardCodeSe', type: 'string' },
{ name: 'YardCodeSe_Ref', type: 'string' },
{ name: 'YardNameSe', type: 'string' },
{ name: 'DstAreaSe', type: 'string' },
{ name: 'FactoryAddrSe', type: 'string' },
{ name: 'DetiNationSe', type: 'string' },
{ name: 'LinkManSe', type: 'string' },
{ name: 'LinkTelSe', type: 'string' },
{ name: 'RtnYardCodeSe', type: 'string' },
{ name: 'RtnYardCodeSe_Ref', type: 'string' },
{ name: 'RtnYardNameSe', type: 'string' },
{ name: 'BillStatus', type: 'string' },
{ name: 'BillStatus_Ref', type: 'string' },
{ name: 'FeeStatus', type: 'string' },
{ name: 'FeeStatus_Ref', type: 'string' },
{ name: 'GId', type: 'string' },
{ name: 'TimeMark', type: 'number' },
{ name: 'RefCustomerName', type: 'string' },
{ name: 'CustName', type: 'string' },
{ name: 'LoadPlace', type: 'string' },
{ name: 'LoadFuel', type: 'number' },
{ name: 'NoLoadFuel', type: 'number' },
{ name: 'BsType', type: 'string' },
{ name: 'BsType_Ref', type: 'string' },
// { name: 'NeadLoadDate', type: 'string' },
// { name: 'NeedArriveDate', type: 'string' },
{ name: 'ArriveTime', type: 'string' },
{ name: 'ReturnTime', type: 'string' },
{ name: 'CustLikeManCode', type: 'string' },
{ name: 'CustLikeManName', type: 'string' },
{ name: 'CustTel', type: 'string' },
{ name: 'BillRises1', type: 'string' },
{ name: 'ChangedMil', type: 'number' },
{ name: 'ChangedFuel', type: 'number' },
{ name: 'ChangedReson', type: 'string' },
{ name: 'FeeOpStatus', type: 'string' },
{ name: 'FeeOpStatus_Ref', type: 'string' },
{ name: 'RunTimes', type: 'number' },
{ name: 'ContainerNo', type: 'string' },
{ name: 'SealNo', type: 'string' },
{ name: 'ContainerNoSe', type: 'string' },
{ name: 'SealNoSe', type: 'string' },
{ name: 'CustomerName', type: 'string' },
{ name: 'F_CustomerName', type: 'string' },
{ name: 'CutoffTime', type: 'string' },
{ name: 'isEnd', type: 'string' },
{ name: 'FuelPrice', type: 'string' },
{ name: 'FuelAmount', type: 'string' },
{ name: 'RoadFee', type: 'stringstring' },
{ name: 'PCSTATUSREF', type: 'stringstring' },
{ name: 'DGTYPE', type: 'stringstring' },//危险品类型
{name: 'SECOND_DRV', type: 'stringstring'},//押车人员 副驾驶
{ name: 'DGTYPECODE', type: 'stringstring' }//危险品代码
]
});
Ext.define('MsWlPcHead2', {
extend: 'Ext.data.Model',
idProperty: 'BillNo',
fields: [
{ name: 'BillNo', type: 'string' },
{ name: 'LrDate', type: 'date' },
{ name: 'JzDate', type: 'date' },
{ name: 'UserCode', type: 'string' },
{ name: 'UserName', type: 'string' },
{ name: 'OrgCode', type: 'string' },
{ name: 'OrgName', type: 'string' },
{ name: 'TruckNo', type: 'string' },
{ name: 'TruckNo_Ref', type: 'string' },
{ name: 'DrvCode', type: 'string' },
{ name: 'DrvName', type: 'string' },
{ name: 'DrvCode_Ref', type: 'string' },
{ name: 'Mobile', type: 'string' },
{ name: 'ExpDate', type: 'date', dateFormat: 'Y-m-d H:i:s' },
//{ name: 'ExpDate', type: 'string' },
{name: 'ContainerType', type: 'string' },
{ name: 'ContainerType_Ref', type: 'string' },
{ name: 'ContainerQty', type: 'number' },
{ name: 'VoyVeg', type: 'string' },
{ name: 'VoyVeg_Ref', type: 'string' },
{ name: 'EtDate', type: 'string' },
{ name: 'EndPortDate', type: 'string' },
{ name: 'MblNo', type: 'string' },
{ name: 'YardCode', type: 'string' },
{ name: 'YardCode_Ref', type: 'string' },
{ name: 'YardName', type: 'string' },
{ name: 'RtnYardCode', type: 'string' },
{ name: 'RtnYardCode_Ref', type: 'string' },
{ name: 'RtnYardName', type: 'string' },
{ name: 'DstArea', type: 'string' },
{ name: 'DetiNation', type: 'string' },
{ name: 'FactoryAddr', type: 'string' },
{ name: 'LinkTel', type: 'string' },
{ name: 'LinkMan', type: 'string' },
{ name: 'RatedMil', type: 'number' },
{ name: 'RatedFuel', type: 'number' },
{ name: 'FuelQty', type: 'number' },
{ name: 'RealMil', type: 'number' },
{ name: 'RealFuel', type: 'number' },
{ name: 'NoLoadMil', type: 'number' },
{ name: 'OverLoadMil', type: 'number' },
{ name: 'Ton', type: 'number' },
{ name: 'AroundTon', type: 'number' },
{ name: 'LoadCount', type: 'number' },
{ name: 'ArriveDate', type: 'string' },
{ name: 'DdCode', type: 'string' },
{ name: 'DdCode_Ref', type: 'string' },
{ name: 'DdName', type: 'string' },
{ name: 'ReturnDate', type: 'string' },
{ name: 'RefBillNo', type: 'string' },
{ name: 'Remark', type: 'string' },
{ name: 'IsDouble', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'RefBillNoSe', type: 'string' },
{ name: 'ContainerTypeSe', type: 'string' },
{ name: 'ContainerTypeSe_Ref', type: 'string' },
{ name: 'ContainerQtySe', type: 'number' },
{ name: 'MblNoSe', type: 'string' },
{ name: 'VoyVegSe', type: 'string' },
{ name: 'VoyVegSe_Ref', type: 'string' },
{ name: 'EtDateSe', type: 'string' },
{ name: 'EndPortDateSe', type: 'string' },
{ name: 'YardCodeSe', type: 'string' },
{ name: 'YardCodeSe_Ref', type: 'string' },
{ name: 'YardNameSe', type: 'string' },
{ name: 'DstAreaSe', type: 'string' },
{ name: 'FactoryAddrSe', type: 'string' },
{ name: 'DetiNationSe', type: 'string' },
{ name: 'LinkManSe', type: 'string' },
{ name: 'LinkTelSe', type: 'string' },
{ name: 'RtnYardCodeSe', type: 'string' },
{ name: 'RtnYardCodeSe_Ref', type: 'string' },
{ name: 'RtnYardNameSe', type: 'string' },
{ name: 'BillStatus', type: 'string' },
{ name: 'BillStatus_Ref', type: 'string' },
{ name: 'FeeStatus', type: 'string' },
{ name: 'FeeStatus_Ref', type: 'string' },
{ name: 'GId', type: 'string' },
{ name: 'TimeMark', type: 'number' },
{ name: 'RefCustomerName', type: 'string' },
{ name: 'RefCustName', type: 'string' },
{ name: 'LoadPlace', type: 'string' },
{ name: 'LoadFuel', type: 'number' },
{ name: 'NoLoadFuel', type: 'number' },
{ name: 'BsType', type: 'string' },
{ name: 'BsType_Ref', type: 'string' },
// { name: 'NeadLoadDate', type: 'string' },
// { name: 'NeedArriveDate', type: 'string' },
{name: 'ArriveTime', type: 'string' },
{ name: 'ReturnTime', type: 'string' },
{ name: 'CustLikeManCode', type: 'string' },
{ name: 'CustLikeManName', type: 'string' },
{ name: 'CustTel', type: 'string' },
{ name: 'BillRises1', type: 'string' },
{ name: 'ChangedMil', type: 'number' },
{ name: 'ChangedFuel', type: 'number' },
{ name: 'ChangedReson', type: 'string' },
{ name: 'FeeOpStatus', type: 'string' },
{ name: 'FeeOpStatus_Ref', type: 'string' },
{ name: 'RunTimes', type: 'number' },
{ name: 'ContainerNo', type: 'string' },
{ name: 'SealNo', type: 'string' },
{ name: 'ContainerNoSe', type: 'string' },
{ name: 'SealNoSe', type: 'string' },
{ name: 'CustomerName', type: 'string' },
{ name: 'F_CustomerName', type: 'string' },
{ name: 'CutoffTime', type: 'string' },
{ name: 'isEnd', type: 'string' },
{ name: 'FuelPrice', type: 'string' },
{ name: 'FuelAmount', type: 'string' },
{ name: 'RoadFee', type: 'stringstring' },
{ name: 'PCSTATUSREF', type: 'stringstring' }
]
});
Ext.define('MsWlPcFixed', {
extend: 'Ext.data.Model',
idProperty: 'GId',
fields: [
{ name: 'BillNo', type: 'string' },
{ name: 'SerialNo', type: 'number' },
{ name: 'CreditDebit', type: 'string' },
{ name: 'CreditDebit_Ref', type: 'string' },
{ name: 'FeeTypeCode', type: 'string' },
{ name: 'FeeTypeCode_Ref', type: 'string' },
{ name: 'FeeTypeName', type: 'string' },
{ name: 'DistCount', type: 'number' },
{ name: 'Price', type: 'number' },
{ name: 'FsTotal', type: 'number' },
{ name: 'JsTotal', type: 'number' },
{ name: 'Remark', type: 'string' },
{ name: 'GId', type: 'string' },
{ name: 'FeeStatus', type: 'number' },
{ name: 'FeeStatus_Ref', type: 'string' },
{ name: 'SubmitDate', type: 'date' },
{ name: 'Auditoperator', type: 'string' },
{ name: 'AuditDate', type: 'date' },
{ name: 'AuditStatus', type: 'number' }
]
});
Ext.define('MsWlBsCtn', {
extend: 'Ext.data.Model',
idProperty: 'BillNo,SerialNo',
fields: [
{ name: 'BillNo', type: 'string' },
{ name: 'SerialNo', type: 'number' },
{ name: 'ContainerType', type: 'string' },
{ name: 'ContainerType_Ref', type: 'string' },
{ name: 'ContainerQty', type: 'number' },
{ name: 'ContainerNo', type: 'string' },
{ name: 'PCQTY', type: 'number' },
{ name: 'NPCQTY', type: 'number' },
{ name: 'UNITPRICE', type: 'number' },
{ name: 'FREIGHT', type: 'number' }, // 件数
{ name: 'ORUNITPRICE', type: 'number' },
{ name: 'ORFREIGHT', type: 'number' }, // 件数
{ name: 'SealNo', type: 'string' }
]
});
Ext.define('MsWlBsHeadRefMsWlTruck', {
extend: 'Ext.data.Model',
fields: [
{ name: 'TruckNo', type: 'string' },
{ name: 'DrvCode', type: 'string' },
{ name: 'DrvName', type: 'string' },
{ name: 'Mobile', type: 'string' }
]
});
Ext.define('MsWlBsHeadRefMsWlDriver', {
extend: 'Ext.data.Model',
fields: [
{ name: 'DrvCode', type: 'string' },
{ name: 'DrvName', type: 'string' },
{ name: 'CodeAndName', type: 'string' },
{ name: 'Mobile', type: 'string'}
]
});
Ext.define('MsWlBsHeadRefMsContainers', {
extend: 'Ext.data.Model',
fields: [
{ name: 'ContainerNo', type: 'string' }
]
});
Ext.define('MsWlBsHeadRefMsSeals', {
extend: 'Ext.data.Model',
fields: [
{ name: 'ContainerNo', type: 'string' },
{ name: 'SealNo', type: 'string' }
]
});
Ext.define('Tradermb', {
extend: 'Ext.data.Model',
idProperty: 'gid',
fields: [
{ name: 'gid', type: 'string' },
{ name: 'name', type: 'string' },
{ name: 'codename', type: 'string' },
{ name: 'ADDR', type: 'string' }
]
});
Ext.define('F_Tradermb', {
extend: 'Ext.data.Model',
idProperty: 'gid',
fields: [
{ name: 'gid', type: 'string' },
{ name: 'name', type: 'string' },
{ name: 'codename', type: 'string' },
{ name: 'ADDR', type: 'string' }
]
});
Ext.define('PC_WFSDmb', {
extend: 'Ext.data.Model',
idProperty: 'gId',
fields: [
{ name: 'ywType', type: 'string' },
{ name: 'PcBillType', type: 'string' },
{ name: 'PcBillTypeREF', type: 'string' },
{ name: 'timeMark', type: 'string' },
{ name: 'gId', type: 'string' },
{ name: 'RowNumber', type: 'string' },
{ name: 'BillNo', type: 'string' },
{ name: 'ExpDate', type: 'string' },
{ name: 'ArriveDate', type: 'string' },
{ name: 'ReturnDate', type: 'string' },
{ name: 'CustomerName', type: 'string' },
{ name: 'F_CustomerName', type: 'string' },
{ name: 'DrvName', type: 'string' },
{ name: 'TruckNo', type: 'string' },
{ name: 'MblNo', type: 'string' },
{ name: 'LinkMan', type: 'string' },
{ name: 'DstArea', type: 'string' },
{ name: 'DetiNation', type: 'string' },
{ name: 'ContainerQty', type: 'string' },
{ name: 'Ton', type: 'string' },
{ name: 'LoadCount', type: 'string' },
{ name: 'LoadPlace', type: 'string' },
{ name: 'TruckSpec', type: 'string' },
{ name: 'IsDouble', type: 'string' },
{ name: 'Property', type: 'string' },
{ name: 'YUNFEI', type: 'string' },
{ name: 'HCHJ', type: 'string' },
{ name: 'ZXF', type: 'string' },
{ name: 'DDF', type: 'string' },
{ name: 'QTFee', type: 'string' },
{ name: 'TotalFee', type: 'string' },
{ name: 'Remark', type: 'string' }
]
});