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/Import/Viewsjs/ImportTrade/ImportTradeModel.js

343 lines
17 KiB
JavaScript

3 years ago

Ext.define('ImportTrademb', {
extend: 'Ext.data.Model',
idProperty: '',
fields: [
{ name: 'id', type: 'string' },
{ name: 'ContractNo', type: 'string' },
{ name: 'BSNO', type: 'string' },
{ name: 'OPLBNAME', type: 'string' },
{ name: 'HTH', type: 'string' },
{ name: 'Mainstate', type: 'string' },
{ name: 'MainstateRef', type: 'string' },
{ name: 'Selled_Ref', type: 'number' },
{ name: 'Supplier_Billno', type: 'string' },
{ name: 'Other_Billno', type: 'string' },
{ name: 'OP', type: 'string' },
{ name: 'Agent', type: 'string' },
{ name: 'seller', type: 'string' },
{ name: 'buyer', type: 'string' },
{ name: 'Owner_Ref', type: 'string' },
{ name: 'Buy_Type', type: 'string' },
{ name: 'Buy_Op', type: 'string' },
{ name: 'creattime', type: 'string' },
{ name: 'countryid', type: 'string' },
{ name: 'Country_Ref', type: 'string' },
{ name: 'port', type: 'string' },
{ name: 'portRef', type: 'string' },
{ name: 'ShipCompany_id', type: 'string' },
{ name: 'shipcompany_Ref', type: 'string' },
{ name: 'Vessel', type: 'string' },
{ name: 'Voyage', type: 'string' },
{ name: 'Ex_sailingdate', type: 'string' },
{ name: 'Sailingdate', type: 'string' },
{ name: 'ArrivalDate', type: 'string' },
{ name: 'BillNo', type: 'string' },
{ name: 'ContainerNo', type: 'string' },
{ name: 'SealNo', type: 'string' },
{ name: 'BillTime', type: 'string' },
{ name: 'Audittime', type: 'string' },
{ name: 'Receiptremark', type: 'string' },
{ name: 'Bill_ExpressNo', type: 'string' },
{ name: 'paydate_ref', type: 'string' },
{ name: 'paydate_b_ref', type: 'string' },
{ name: 'Agents_paydate', type: 'string' },
{ name: 'Agents_b_paydate', type: 'string' },
{ name: 'BillType', type: 'string' },
{ name: 'BillTypeREF', type: 'string' },
{ name: 'CargoType', type: 'string' },
{ name: 'CargoName', type: 'string' },
{ name: 'Ename', type: 'string' },
{ name: 'BoxCount', type: 'number' },
{ name: 'KINDPKGS', type: 'string' },
{ name: 'Weight', type: 'number' },
{ name: 'weight_Ref', type: 'number' },
{ name: 'Exporter', type: 'string' },
{ name: 'factoryno', type: 'string' },
{ name: 'productiondate_min', type: 'string' },
{ name: 'productiondate_max', type: 'string' },
{ name: 'TransactionMethod', type: 'string' },
{ name: 'TransactionMethodRef', type: 'string' },
{ name: 'price_limit', type: 'number' },
{ name: 'amount', type: 'number' },
{ name: 'pay_amount', type: 'number' },
{ name: 'pay_amount_RMBes', type: 'number' },
{ name: 'Currency', type: 'string' },
{ name: 'Price', type: 'number' },
{ name: 'price_RMBes', type: 'number' },
{ name: 'STORAGENAME', type: 'string' },
{ name: 'GOODSPACK', type: 'number' },
{ name: 'Overfilled', type: 'string' },
{ name: 'GOODSPACKSTOCK_Ref', type: 'number' },
{ name: 'GOODSSTOCK_Ref', type: 'number' },
{ name: 'StoreDays', type: 'number' },
{ name: 'CargoDays', type: 'number' },
{ name: 'PreProportion', type: 'string' },
{ name: 'Prepayments', type: 'number' },
{ name: 'prepayments_RMBes', type: 'number' },
{ name: 'prepayments_RMB', type: 'number' },
{ name: 'Exchange_Pre', type: 'number' },
{ name: 'Prepaydate_Payapp', type: 'string' },
{ name: 'Prepaydate_Agent', type: 'string' },
{ name: 'Balance', type: 'number' },
{ name: 'Balance_RMBes', type: 'number' },
{ name: 'Balance_RMB', type: 'number' },
{ name: 'Exchange_Balance', type: 'string' },
{ name: 'Balancepaydate', type: 'string' },
{ name: 'Balancepaydate_Agent', type: 'string' },
{ name: 'AllCostes', type: 'number' },
{ name: 'BasePricees', type: 'number' },
{ name: 'AllCost', type: 'number' },
{ name: 'AllPayment', type: 'number' },
{ name: 'FundsUsed', type: 'number' },
{ name: 'BasePrice', type: 'number' },
{ name: 'TimeMark', type: 'string' },
{ name: 'creator', type: 'string' },
{ name: 'FEESTATUS', type: 'string' },
{ name: 'remark', type: 'string' },
{ name: 'remark_2', type: 'string' },
{ name: 'remark_3', type: 'string' },
{ name: 'remark_4', type: 'string' },
{ name: 'remark_5', type: 'string' },
{ name: 'remark_6', type: 'string' },
{ name: 'CORPID', type: 'string' },
{ name: 'GID', type: 'string' },
{ name: 'SEQUENCE', type: 'string' },
{ name: 'PUBLIC_AMOUNT', type: 'number' },
{ name: 'PUBLIC_SETTLEMENT', type: 'number' },
{ name: 'PUBLIC_REMAIN', type: 'number' },
{ name: 'LOCAL_AMOUNT', type: 'number' },
{ name: 'LOCAL_SETTLEMENT', type: 'number' },
{ name: 'LOCAL_REMAIN', type: 'number' },
{ name: 'WEIGHT_ACT', type: 'number' },
{ name: 'WEIGHT_REMAIN', type: 'number' },
{ name: 'BOXCOUNT_ACT', type: 'number' },
{ name: 'BOXCOUNT_REMAIN', type: 'number' },
{ name: 'DZCE', type: 'number' },
{ name: 'LOCK_EXCHANGERATE', type: 'string' },
{ name: 'EXCHANGERATE', type: 'string' },
{ name: 'SALEINFO', type: 'string' }
, { name: 'SPECIFICATIONS', type: 'string' }
, { name: 'Prepaydate_sett', type: 'string' }
, { name: 'Balancepaydate_sett', type: 'string' }
, { name: 'WEIGHT_HT', type: 'number' }
, { name: 'BOXCOUNT_HT', type: 'number' }
, { name: 'inspection_date', type: 'string' }
, { name: 'Unsealdate', type: 'string' }
, { name: 'WMSDATE', type: 'string' }
, { name: 'SamplingDate_Plan', type: 'string' }
, { name: 'DeliveryInfo', type: 'string' },
{ name: 'STOCKDATE_1', type: 'string' },
{ name: 'STOCKDATE_2', type: 'string' },
{ name: 'FUNDDATE_1', type: 'string' },
{ name: 'FUNDDATE_2', type: 'string' },
{ name: 'PAYCOMPANY', type: 'string' },
{ name: 'Inspection_Storage', type: 'string' }
, { name: 'MOREORLESS', type: 'string' }
, { name: 'MOREORLESSCOUNT', type: 'string' },
{ name: 'Freetime', type: 'string' },
{ name: 'Paydate', type: 'string' },
{ name: 'Prepaydate', type: 'string' },
{ name: 'UnitRef', type: 'string' },
{ name: 'U_weight', type: 'string' },
{ name: 'PortDays', type: 'string' },
{ name: 'ExpirationDates', type: 'number' },
{ name: 'ExpirationDate', type: 'string' },
{ name: 'ispinxiang', type: 'string' }
]
});
Ext.define('Cargomb2', {
extend: 'Ext.data.Model',
idProperty: 'id',
fields: [
{ name: 'id', type: 'string' },
{ name: 'GID', type: 'string' },
{ name: 'ContractNo', type: 'string' },
{ name: 'cargoinfo_id', type: 'string' },
{ name: 'cargociq_id', type: 'string' },
{ name: 'name', type: 'string' },
{ name: 'Ename', type: 'string' },
{ name: 'Unit', type: 'string' },
{ name: 'UnitRate', type: 'string' },
{ name: 'U_PRICE', type: 'number' },
{ name: 'U_weight', type: 'number' },
{ name: 'weight', type: 'number' },
{ name: 'm_weight', type: 'number' },
{ name: 'price', type: 'number' },
{ name: 'price_agio', type: 'number' },
{ name: 'price_limit', type: 'number' },
{ name: 'Amount', type: 'number' }, //合同价格
{name: 'tax_Amount', type: 'number' }, //完税价格
{name: 'tax_Amount_RMB', type: 'number' }, //完税价格
{name: 'pay_Amount', type: 'number' }, //购货价格
{name: 'BoxCount', type: 'number' },
{ name: 'BoxWeight', type: 'number' },
{ name: 'Exporter', type: 'string' },
{ name: 'FactoryNo', type: 'string' },
{ name: 'Productiondate_min', type: 'date' },
{ name: 'Productiondate_max', type: 'date' },
{ name: 'currid', type: 'string' },
{ name: 'prepayments', type: 'number' },
{ name: 'balance', type: 'number' },
{ name: 'Paypart', type: 'string' },
{ name: 'cicode', type: 'string' },
{ name: 'ciname', type: 'string' },
{ name: 'cicodeandname', type: 'string' },
{ name: 'ciqcode', type: 'string' },
{ name: 'ciqname', type: 'string' },
{ name: 'ciqcodeandname', type: 'string' },
{ name: 'codename', type: 'string' },
{ name: 'defaultrate', type: 'string' },
{ name: 'UnitRef', type: 'string' },
{ name: 'paypartRef', type: 'string' },
{ name: 'baolv', type: 'string' },
{ name: 'tariff', type: 'string' },
{ name: 'tax', type: 'number' },
{ name: 'tax_CL', type: 'number' },
{ name: 'tax_zz', type: 'number' },
{ name: 'Declarenumber', type: 'string' },
{ name: 'Exchangerate', type: 'number' },
{ name: 'Exchangerate_Customs', type: 'number' },
//20140109 增加对计算值的保存,用于向应收应付列表和费用通知单提供数据
{ name: 'tax_1', type: 'string' },
//{ name: 'tax_CL_1', type: 'string' },
{ name: 'tax_zz_1', type: 'string' },
{ name: 'tax_2', type: 'string' },
//{ name: 'tax_CL_2', type: 'string' },
{ name: 'tax_zz_2', type: 'string' }
//20140307 增加 预付比例,用于许可证核销的总金额
, { name: 'PreProportion', type: 'string' }
, { name: 'AMOUNT_WRITEOFFS', type: 'string' }
, { name: 'NAME_REF', type: 'string' }
, { name: 'SEQUENCE', type: 'number' }
, { name: 'Ename', type: 'string' }
, { name: 'SBYS', type: 'string' }
, { name: 'BZTCHNO', type: 'string' }
, { name: 'CargoType', type: 'string' }
, { name: 'WEIGHT_HT', type: 'string' }
, { name: 'BOXCOUNT_HT', type: 'string' }
, { name: 'WEIGHT_ACT', type: 'string' }
, { name: 'BOXCOUNT_ACT', type: 'string' }
, { name: 'WEIGHT_REMAIN', type: 'string' }
, { name: 'BOXCOUNT_REMAIN', type: 'string' }
, { name: 'ISLOCKED', type: 'string' }
, { name: 'KINDPKGS', type: 'string' }
, { name: 'ExpirationDate', type: 'date' }
, { name: 'AGENCRATE', type: 'string' }
, { name: 'MOREORLESS', type: 'string' }
, { name: 'pay_prepayments', type: 'string' }
, { name: 'pay_balance', type: 'string' }
, { name: 'REMARK', type: 'string' }
, { name: 'SPECIFICATIONS', type: 'string' },
{ name: 'Exchangerate_Cust', type: 'string' },
{ name: 'AGENCRATE_Cust', type: 'string' },
{ name: 'STOCKDATE_1', type: 'date' },
{ name: 'STOCKDATE_2', type: 'date' },
{ name: 'HTH', type: 'string' },
{ name: 'ContainerNo', type: 'string' },
{ name: 'SALEINFO', type: 'string' },
{ name: 'buyer', type: 'string' },
//{ name: 'ContractNo', type: 'string' },
{ name: 'Mainstate', type: 'string' },
{ name: 'MainStateRef', type: 'string' },
{ name: 'Inspection_Storage', type: 'string' },
{ name: 'inspection_date', type: 'date' },
{ name: 'Unsealdate', type: 'date' },
//保质天数
{name: 'ExpirationDates', type: 'number' }
]
});
Ext.define('ImportSalesmb', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'SALESNO', type: 'string' },
{ name: 'CUSTOMERNAME', type: 'string' },
{ name: 'OP', type: 'string' },
{ name: 'SALER', type: 'string' },
{ name: 'CORPID', type: 'string' },
{ name: 'DEPTGID', type: 'string' },
{ name: 'CARGONAME', type: 'string' },
{ name: 'REMARK', type: 'string' },
{ name: 'CURRENCY', type: 'string' },
{ name: 'EXCHANGERATE', type: 'string' },
{ name: 'AMOUNT', type: 'string' },
{ name: 'AMOUNTRMB', type: 'string' },
{ name: 'SALESDATE', type: 'string' },
{ name: 'DELIVERYDATE', type: 'string' },
{ name: 'DELIVERYADDRESS', type: 'string' },
{ name: 'DELIVERYCONTACTS', type: 'string' },
{ name: 'DELIVERYTEL', type: 'string' },
{ name: 'BSSTATUS', type: 'string' },
{ name: 'FEESTATUS', type: 'string' },
{ name: 'TIMEMARK', type: 'string' },
{ name: 'OPRef', type: 'string' },
{ name: 'SALERRef', type: 'string' },
{ name: 'BSSTATUSRef', type: 'string' },
{ name: 'FEESTATUSRef', type: 'string' },
{ name: 'DELIVERYWEIGHT', type: 'string' },
{ name: 'MAINSTATE', type: 'string' },
{ name: 'MAINSTATERef', type: 'string' },
{ name: 'SALESTATUS', type: 'string' },
{ name: 'SALESTATUSRef', type: 'string' }
]
});
Ext.define('ImportSaledetailmb', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'SALESNO', type: 'string' },
{ name: 'CARGO_GID', type: 'string' },
{ name: 'BSNO', type: 'string' },
{ name: 'WEIGHT', type: 'number' },
{ name: 'BOXCOUNT', type: 'number' },
{ name: 'CURRENCY', type: 'string' },
{ name: 'PRICE', type: 'number' },
{ name: 'AMOUNT', type: 'number' },
{ name: 'EXCHANGERATE', type: 'string' },
{ name: 'AMOUNTRMB', type: 'number' },
{ name: 'REMARK', type: 'string' },
{ name: 'HTH', type: 'string' },
{ name: 'NAME', type: 'string' },
{ name: 'WEIGHT_ACT', type: 'string' },
{ name: 'WEIGHT_REMAIN', type: 'string' },
{ name: 'BOXCOUNT_REMAIN', type: 'string' },
{ name: 'COSTPRICE', type: 'string' },
{ name: 'CUSTOMERNAME', type: 'string' }
]
});
Ext.define('remind', {
extend: 'Ext.data.Model',
fields: [
{ name: 'RemindName', type: 'string' },
{ name: 'RemindSql', type: 'string' }
]
});
Ext.define('ReceiptDocmb', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'RECEIPTTYPE', type: 'string' },
{ name: 'R_GID', type: 'string' },
{ name: 'BSNO', type: 'string' },
{ name: 'URL', type: 'string' },
{ name: 'Driect_URL', type: 'string' },
{ name: 'MODIFIEDUSER', type: 'string' },
{ name: 'MODIFIEDUSERRef', type: 'string' },
{ name: 'MODIFIEDTIME', type: 'string' }
]
});