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/MvcShipping/Viewsjs/MsOpApply/MsOpApplyModel.js

372 lines
20 KiB
JavaScript

2 years ago
Ext.define('MsOpApply', {
extend: 'Ext.data.Model',
idProperty: 'BSNO',
fields: [
{ name: 'BSNO', type: 'string' },
{ name: 'BSSTATUS', type: 'boolean' },
{ name: 'FEESTATUS', type: 'boolean' },
{ name: 'BSSTATUSREF', type: 'string' },
{ name: 'FEESTATUSREF', type: 'string' },
{ name: 'DRFEESTATUS', type: 'string' },
{ name: 'CRFEESTATUS', type: 'string' },
{ name: 'DRINVSTATUS', type: 'string' },
{ name: 'DRDUISTATUS', type: 'string' },
{ name: 'OPSTATUS', type: 'string' },
{ name: 'BSDATE', type: 'string' },
{ name: 'ACCDATE', type: 'string' },
{ name: 'OPDATE', type: 'string' },
{ name: 'MBLNO', type: 'string' },
{ name: 'HBLNO', type: 'string' },
{ name: 'MANIFESTSTATUS', type: 'string' },
{ name: 'CUSTNO', type: 'string' },
{ name: 'BSCUSTNO', type: 'string' },
{ name: 'CUSTOMERNAME', type: 'string' },
{ name: 'BSTYPE', type: 'string' },
{ name: 'BSTYPEREF', type: 'string' },
{ name: 'VESSEL', type: 'string' },
{ name: 'TimeMark', type: 'number' },
{ name: 'VOYNO', type: 'string' },
{ name: 'ETD', type: 'string' },
{ name: 'ETA', type: 'string' },
{ name: 'PORTLOAD', type: 'string' },
{ name: 'PORTDISCHARGE', type: 'string' },
{ name: 'INPUTBY', type: 'string' },
{ name: 'OP', type: 'string' },
{ name: 'SALE', type: 'string' },
{ name: 'CUSTSERVICE', type: 'string' },
{ name: 'SALECORPID', type: 'string' },
{ name: 'SALECORP', type: 'string' },
{ name: 'SALEDEPT', type: 'string' },
{ name: 'CUSTOMSER', type: 'string' },
{ name: 'BSSOURCE', type: 'string' },
{ name: 'BSSOURCEDETAIL', type: 'string' },
{ name: 'CORPID', type: 'string' },
{ name: 'PKGS', type: 'number' },
{ name: 'KGS', type: 'number' },
{ name: 'NETWEIGHT', type: 'number' },
{ name: 'CBM', type: 'number' },
{ name: 'CURRENCY', type: 'string' },
{ name: 'CARGOVALUE', type: 'number' },
{ name: 'CUSTOMNO', type: 'string' },
{ name: 'BSCUSTOMNO', type: 'string' },
{ name: 'CUSTOMDATE', type: 'string' },
{ name: 'INSPECTIONNO', type: 'string' },
{ name: 'INSPECTIONDATE', type: 'string' },
{ name: 'INVNO', type: 'string' },
{ name: 'CONTRACTNO', type: 'string' },
{ name: 'ARCOUNTRY', type: 'string' },
{ name: 'GOODSOURCE', type: 'string' },
{ name: 'DOCNO', type: 'string' },
{ name: 'TRADETYPE', type: 'string' },
{ name: 'TRADETERM', type: 'string' },
{ name: 'BOOKNO', type: 'string' },
{ name: 'BYCUSTOM', type: 'string' },
{ name: 'ENTERPID', type: 'string' },
{ name: 'ENTERP', type: 'string' },
{ name: 'CUSTOMSNUM', type: 'number' },
{ name: 'OPERATORCODE', type: 'string' },
{ name: 'IsSERVICE1', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE2', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE3', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE4', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE5', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE6', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE7', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE8', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE9', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE10', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE11', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE12', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE13', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE14', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE15', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE16', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'ISPRINTPR', type: 'string' },
{ name: 'SERVICE1', type: 'string' },
{ name: 'SERVICE2', type: 'string' },
{ name: 'SERVICE3', type: 'string' },
{ name: 'SERVICE4', type: 'string' },
{ name: 'SERVICE5', type: 'string' },
{ name: 'SERVICE6', type: 'string' },
{ name: 'SERVICE7', type: 'string' },
{ name: 'SERVICE8', type: 'string' },
{ name: 'SERVICE9', type: 'string' },
{ name: 'SERVICE10', type: 'string' },
{ name: 'SERVICE11', type: 'string' },
{ name: 'SERVICE12', type: 'string' },
{ name: 'SERVICE13', type: 'string' },
{ name: 'SERVICE14', type: 'string' },
{ name: 'SERVICE15', type: 'string' },
{ name: 'SERVICE16', type: 'string' },
{ name: 'REMARK', type: 'string' },
{ name: 'CLEARCUSTOMDATE', type: 'string' },
{ name: 'ISMOREGOOD', type: 'boolean' },
{ name: 'INSPECTSERVICE', type: 'string' },
{ name: 'CUSTOMTYPE', type: 'string' },
{ name: 'WMSNO', type: 'string' },
{ name: 'CUSTOMSLNO', type: 'string' },
{ name: 'ISCLEAR', type: 'string' },
{ name: 'ISCUSTOMEND', type: 'string' },
{ name: 'INQUNO', type: 'string' },
{ name: 'ISDY', type: 'string' },
{ name: 'DOCSTATUS', type: 'string' },
{ name: 'CUSCIQNO', type: 'string' },
{ name: 'TRANCUSTOMNO', type: 'string' },
{ name: 'CUSTOMLOCKNO', type: 'string' },
{ name: 'EXPCUSTOMTYPE', type: 'string' },
{ name: 'DESPPORT', type: 'string' },
{ name: 'MASTERNO', type: 'string' },
//需求编号SR2017081100003
{ name: 'EDIYWLX', type: 'int' },//易航线_0代表一般出口业务;1代表一般进口业务;2代表出口备案手册业务;3代表进口备案手册业务;4出境清单业务;5进境清单业务;
{ name: 'RECORDSN', type: 'string' },//易航线_备案号ediYwlx =0||1时该字段不填写其他必须填写
{ name: 'PAYMENT', type: 'string' },//易航线_征税比例电汇出口方式需要必填进口方式不填
{ name: 'CARRIAGETYPE', type: 'string' },//易航线_运费类型率,单价,总价
{ name: 'CARRIAGEPRICE', type: 'decimal' },//易航线_运费金额
{ name: 'CARRIAGECURRENCY', type: 'string' },//易航线_运费币制当carriageType是[率]时,不能填运费币制
{ name: 'PREMIUMTYPE', type: 'string' },//易航线_保费类型率,单价,总价
{ name: 'PREMIUMPRICE', type: 'decimal' },//易航线_保费金额
{ name: 'PREMIUMCURRENCY', type: 'string' },//易航线_保费币制当premiumType是[率]时,不能填保费币制
{ name: 'BillFeeStatus', type: 'string' },
{ name: 'ETPS_CATEGORY', type: 'string' },//报关企业类别 用于保存 ACD
{ name: 'CDNTYPE', type: 'decimal' }//报关单类型 0-4共5种
]
});
Ext.define('MsOpApplyDetail', {
extend: 'Ext.data.Model',
idProperty: 'BsNo,SerialNo',
fields: [
{ name: 'BsNo', type: 'string' },
{ name: 'SerialNo', type: 'number' },
{ name: 'GoodsCode', type: 'string' },
{ name: 'GoodsName', type: 'string' },
{ name: 'WMSNO', type: 'string' },
{ name: 'PICINO', type: 'string' },
{ name: 'PONO', type: 'string' },
{ name: 'WMSIN_GID', type: 'string' },
{ name: 'GOODSMODEL', type: 'string' },
{ name: 'GOODSSTANDARD', type: 'string' },
{ name: 'KINDPKGS', type: 'string' },
{ name: 'GOODSNUM', type: 'number' },
{ name: 'NOAPPLYNUM', type: 'number' },
{ name: 'KGS', type: 'number' },
{ name: 'Pkgs', type: 'number' },
{ name: 'Price', type: 'number' },
{ name: 'Total', type: 'number' },
{ name: 'Currency', type: 'string' },
{ name: 'Remark', type: 'string' }
]
});
Ext.define('MsOpApplyServiceDetail', {
extend: 'Ext.data.Model',
idProperty: 'BSNO,SerialNo',
fields: [
{ name: 'BSNO', type: 'string' },
{ name: 'SerialNo', type: 'number' },
{ name: 'OPFIELD', type: 'string' },
{ name: 'GID', type: 'string' },
{ name: 'WORK', type: 'string' },
{ name: 'STATUS', type: 'string' },
{ name: 'STARTDATETIME', type: 'date', dateFormat: 'Y-m-d H:i:s'},
{ name: 'PLANENDTIME', type: 'date', dateFormat: 'Y-m-d H:i:s'},
{ name: 'ENDDATETIME', type: 'date', dateFormat: 'Y-m-d H:i:s'},
{ name: 'NOFINISHRESON', type: 'string' },
{ name: 'OTADVICE', type: 'string' },
{ name: 'HELPOP', type: 'string' },
{ name: 'ENDOP', type: 'string' },
{ name: 'REMARK', type: 'string' }
]
});
Ext.define('MsOpCtn', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'CTN_ID', type: 'string' },
{ name: 'MASTERNO', type: 'string' },
{ name: 'BSNO', type: 'string' },
{ name: 'CTNCODE', type: 'string' },
{ name: 'SIZE', type: 'string' },
{ name: 'CTN', type: 'string' },
{ name: 'CTNNUM', type: 'int' },
{ name: 'TEU', type: 'int' },
{ name: 'CTNALL', type: 'string' },
{ name: 'CNTRNO', type: 'string' },
{ name: 'SEALNO', type: 'string' },
{ name: 'PKGS', type: 'int' },
{ name: 'KGS', type: 'decimal' },
{ name: 'CBM', type: 'decimal' },
{ name: 'FENPKGS', type: 'int' },
{ name: 'FENKGS', type: 'decimal' },
{ name: 'FENCBM', type: 'decimal' },
{ name: 'REMARK', type: 'string' },
{ name: 'KINDPKGS', type: 'string' },
{ name: 'TAREWEIGHT', type: 'decimal' }, //箱皮重
{name: 'TTLWEIGHT', type: 'decimal' }, //箱皮重
{name: 'GOODSNAME', type: 'string' }, //箱皮重
{name: 'EXITDOOR', type: 'string' }, //箱皮重
{name: 'ENTERDOOR', type: 'string' }, //箱皮重
{name: 'CTNSTATUS', type: 'string' }, //箱皮重
{name: 'MASTERNO', type: 'string' },
{ name: 'VESSEL', type: 'string' }, //箱皮重
{name: 'VOYNO', type: 'string' }, //箱皮重
{name: 'MBLNO', type: 'string' }, //箱皮重
{name: 'TRUCKNO', type: 'string' }, //箱皮重
{name: 'TRUCKTYPE', type: 'string' }, //箱皮重
{name: 'ONBORD', type: 'string' }, //箱皮重
{name: 'ETD', type: 'string' },
{ name: 'WEIGHTYPE', type: 'string' }, //称重方式
{name: 'WEIGHKGS', type: 'decimal' }, //称重重量
{name: 'WEIGHATTN', type: 'string' }, //Shipper VGM 联系人
{name: 'WEIGHTEL', type: 'string' }, //VGM联系人的联系方式
{name: 'WEIGHSIGN', type: 'string' }, ////VGM负责人签名
{name: 'WEIGHDATE', type: 'string' }, //VGM称重日期
{name: 'TRUCKER', type: 'string' },
{ name: 'TRUCKFEE', type: 'decimal' },
{ name: 'FREESTORAGEDAY', type: 'int' },
{ name: 'STORAGEDAY', type: 'int' },
{ name: 'STORAGEPRICE', type: 'decimal' },
{ name: 'STORAGEFEE', type: 'decimal' },
{ name: 'FREECTNDAY', type: 'int' },
{ name: 'CTNDAY', type: 'int' },
{ name: 'CTNPRICE', type: 'decimal' },
{ name: 'CTNFEE', type: 'decimal' },
{ name: 'VGMCONNCOM', type: 'string'} //VGM联系公司
]
});
Ext.define('MsOpApplyCtn', {
extend: 'Ext.data.Model',
idProperty: 'CTN_ID',
fields: [
{ name: 'CTN_ID', type: 'string' },
{ name: 'CNTRNO', type: 'string' },
{ name: 'BSNO', type: 'string' },
{ name: 'BSSTATUS', type: 'boolean' },
{ name: 'FEESTATUS', type: 'boolean' },
{ name: 'BSSTATUSREF', type: 'string' },
{ name: 'FEESTATUSREF', type: 'string' },
{ name: 'DRFEESTATUS', type: 'string' },
{ name: 'CRFEESTATUS', type: 'string' },
{ name: 'DRINVSTATUS', type: 'string' },
{ name: 'BSDATE', type: 'string' },
{ name: 'ACCDATE', type: 'string' },
{ name: 'OPDATE', type: 'string' },
{ name: 'MBLNO', type: 'string' },
{ name: 'HBLNO', type: 'string' },
{ name: 'MANIFESTSTATUS', type: 'string' },
{ name: 'CUSTNO', type: 'string' },
{ name: 'BSCUSTNO', type: 'string' },
{ name: 'CUSTOMERNAME', type: 'string' },
{ name: 'BSTYPE', type: 'string' },
{ name: 'BSTYPEREF', type: 'string' },
{ name: 'VESSEL', type: 'string' },
{ name: 'TimeMark', type: 'number' },
{ name: 'VOYNO', type: 'string' },
{ name: 'ETD', type: 'string' },
{ name: 'ETA', type: 'string' },
{ name: 'PORTLOAD', type: 'string' },
{ name: 'PORTDISCHARGE', type: 'string' },
{ name: 'INPUTBY', type: 'string' },
{ name: 'OP', type: 'string' },
{ name: 'SALE', type: 'string' },
{ name: 'SALECORPID', type: 'string' },
{ name: 'SALECORP', type: 'string' },
{ name: 'SALEDEPT', type: 'string' },
{ name: 'CUSTOMSER', type: 'string' },
{ name: 'BSSOURCE', type: 'string' },
{ name: 'BSSOURCEDETAIL', type: 'string' },
{ name: 'CORPID', type: 'string' },
{ name: 'PKGS', type: 'number' },
{ name: 'KGS', type: 'number' },
{ name: 'NETWEIGHT', type: 'number' },
{ name: 'CBM', type: 'number' },
{ name: 'CURRENCY', type: 'string' },
{ name: 'CARGOVALUE', type: 'number' },
{ name: 'CUSTOMNO', type: 'string' },
{ name: 'BSCUSTOMNO', type: 'string' },
{ name: 'CUSTOMDATE', type: 'string' },
{ name: 'INSPECTIONNO', type: 'string' },
{ name: 'INSPECTIONDATE', type: 'string' },
{ name: 'INVNO', type: 'string' },
{ name: 'CONTRACTNO', type: 'string' },
{ name: 'ARCOUNTRY', type: 'string' },
{ name: 'GOODSOURCE', type: 'string' },
{ name: 'DOCNO', type: 'string' },
{ name: 'TRADETYPE', type: 'string' },
{ name: 'TRADETERM', type: 'string' },
{ name: 'BOOKNO', type: 'string' },
{ name: 'BYCUSTOM', type: 'string' },
{ name: 'ENTERPID', type: 'string' },
{ name: 'ENTERP', type: 'string' },
{ name: 'CUSTOMSNUM', type: 'number' },
{ name: 'IsSERVICE1', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE2', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE3', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE4', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE5', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE6', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE7', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE8', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE9', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE10', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE11', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE12', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE13', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE14', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE15', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'IsSERVICE16', type: 'boolean', convert: function (v) { return v === '1'; } },
{ name: 'ISPRINTPR', type: 'string' },
{ name: 'SERVICE1', type: 'string' },
{ name: 'SERVICE2', type: 'string' },
{ name: 'SERVICE3', type: 'string' },
{ name: 'SERVICE4', type: 'string' },
{ name: 'SERVICE5', type: 'string' },
{ name: 'SERVICE6', type: 'string' },
{ name: 'SERVICE7', type: 'string' },
{ name: 'SERVICE8', type: 'string' },
{ name: 'SERVICE9', type: 'string' },
{ name: 'SERVICE10', type: 'string' },
{ name: 'SERVICE11', type: 'string' },
{ name: 'SERVICE12', type: 'string' },
{ name: 'SERVICE13', type: 'string' },
{ name: 'SERVICE14', type: 'string' },
{ name: 'SERVICE15', type: 'string' },
{ name: 'SERVICE16', type: 'string' },
{ name: 'REMARK', type: 'string' },
{ name: 'CLEARCUSTOMDATE', type: 'string' },
{ name: 'ISMOREGOOD', type: 'boolean' },
{ name: 'INSPECTSERVICE', type: 'string' },
{ name: 'CUSTOMTYPE', type: 'string' },
{ name: 'WMSNO', type: 'string' },
{ name: 'CUSTOMSLNO', type: 'string' },
{ name: 'ISCLEAR', type: 'string' },
{ name: 'ISCUSTOMEND', type: 'string' },
{ name: 'INQUNO', type: 'string' },
{ name: 'ISDY', type: 'string' },
{ name: 'DOCSTATUS', type: 'string' },
{ name: 'CUSCIQNO', type: 'string' },
{ name: 'TRANCUSTOMNO', type: 'string' },
{ name: 'CUSTOMLOCKNO', type: 'string' },
{ name: 'EXPCUSTOMTYPE', type: 'string' },
{ name: 'DESPPORT', type: 'string' },
{ name: 'MASTERNO', type: 'string' },
//需求编号SR2017081100003
{ name: 'EDIYWLX', type: 'int' },//易航线_0代表一般出口业务;1代表一般进口业务;2代表出口备案手册业务;3代表进口备案手册业务;4出境清单业务;5进境清单业务;
{ name: 'RECORDSN', type: 'string' },//易航线_备案号ediYwlx =0||1时该字段不填写其他必须填写
{ name: 'PAYMENT', type: 'string' },//易航线_征税比例电汇出口方式需要必填进口方式不填
{ name: 'CARRIAGETYPE', type: 'string' },//易航线_运费类型率,单价,总价
{ name: 'CARRIAGEPRICE', type: 'decimal' },//易航线_运费金额
{ name: 'CARRIAGECURRENCY', type: 'string' },//易航线_运费币制当carriageType是[率]时,不能填运费币制
{ name: 'PREMIUMTYPE', type: 'string' },//易航线_保费类型率,单价,总价
{ name: 'PREMIUMPRICE', type: 'decimal' },//易航线_保费金额
{ name: 'PREMIUMCURRENCY', type: 'string' },//易航线_保费币制当premiumType是[率]时,不能填保费币制
{ name: 'BillFeeStatus', type: 'string' }
]
});