diff --git a/common/createDataTable.js b/common/createDataTable.js index 87dd273..d6d1e06 100644 --- a/common/createDataTable.js +++ b/common/createDataTable.js @@ -4,20 +4,50 @@ module.exports = { dbPath: '_doc/dianji_chat.db', // 创建所有表 createAllTable() { + // 创建船舶基本信息 + this.createShipInfoTable() + // 创建人员信息 this.createMessageRespList() - // this.createWorkMessageRespList() + // 创建工班信息 + this.createWorkMessageRespList() + // 创建工班信息详细 + this.createWorkMessageRespInfoList() + // // 创建工班信息翻仓 + // this.createRetallyMessageRespList() + // // 创建工班信息翻仓详情 + // this.createRetallyMessageRespInfoList() + // // 创建工班信息其他 + // this.createInfoRespList() + // 创建系解缆 this.creatAttachUnmoorRespList() + // 创建供给 this.createShipmentShipSupplyRespList() + // 创建指导员作业布置 this.createShipmentAdviserLayoutRespList() + // 创建船舶装卸通知书 this.createShipmentLoadUnloadNoticeRespList() + // 创建质量意见征询 this.createShipmentQualityConsultationRespList() + // 创建异常情况 this.createAbnormalConditionRespList() + // 创建mafi this.createMafiListRespList() + // 创建安全巡检 this.createSafetyInspectionRespList() + // 创建作业查询 this.createShipmentShipLoadPlansRespList() + // 创建船舶资料 this.createShipmentShipManage() + // 创建下拉数据 this.createShipOption() }, + // 创建船舶基本信息 shipInfoTable + createShipInfoTable() { + console.log("创建船舶基本信息表") + let sql = + 'CREATE TABLE if not exists shipInfoTable ("webId" text NOT NULL,"vslCd" text,"vslCnname" text,"vvyId" text,"vvyName" text,"importExportFlag" text,"importExportFlagName" text,"tradeType" text,"tradeTypeName" text,"webStatus" text,"webDate" text, PRIMARY KEY("webId"));' + this.executeSql(sql) + }, // 创建人员信息 messageRespList createMessageRespList() { let sql = @@ -25,12 +55,38 @@ module.exports = { this.executeSql(sql) }, // 创建工班信息 workMessageRespList - // createWorkMessageRespList() { - // console.log('创建表'); - // let sql = - // 'CREATE TABLE if not exists workMessageRespList ("webId" text NOT NULL,"bthId" text,"bthIdName" text,"jobStartTime" text,"jobEndTime" text,"shipPerson" text,"vvyId" text,"vvyName" text,"weatherId" text,"weatherType" text,"workSuite" text,"tradeTypeName" text,"importExportFlagName" text,"spmName" text,"webStatus" text,"webDate" text, PRIMARY KEY("webId"));' - // this.executeSql(sql) - // }, + createWorkMessageRespList() { + let sql = + 'CREATE TABLE if not exists workMessageRespList ("webId" text NOT NULL,"contactId" text,"vvyId" text,"vvyName" text,"loadType" text,"loadTypeName" text,"pwcType" text,"pwcTypeName" text,"workStartTime" text,"workEndTime" text,"tradeTypeName" text,"importExportFlagName" text,"spmName" text,"webStatus" text,"webDate" text, PRIMARY KEY("webId"));' + this.executeSql(sql) + }, + // 创建工班信息详细 workMessageRespInfoList + createWorkMessageRespInfoList() { + let sql = + 'CREATE TABLE if not exists workMessageRespInfoList ("webId" text NOT NULL,"contactId" text,"carType" text,"carTypeName" text,"goodsNumber" text,"loadingType" text,"loadingTypeName" text,"remark" text,"tradeTypeName" text,"importExportFlagName" text,"spmName" text,"webStatus" text,"webDate" text, PRIMARY KEY("webId"));' + this.executeSql(sql) + }, + // 创建工班信息翻仓 retallyMessageRespList + createRetallyMessageRespList() { + console.log('创建工班信息翻仓表'); + let sql = + 'CREATE TABLE if not exists workMessageRespFlipList ("webId" text NOT NULL,"contactId" text,"vvyId" text,"vvyName" text,"retallyType" text,"retallyTypeName" text,"tradeTypeName" text,"importExportFlagName" text,"spmName" text,"webStatus" text,"webDate" text, PRIMARY KEY("webId"));' + this.executeSql(sql) + }, + // 创建工班信息翻仓详情 retallyMessageRespInfoList + createRetallyMessageRespInfoList() { + console.log('创建工班信息翻仓详情表'); + let sql = + 'CREATE TABLE if not exists retallyMessageRespInfoList ("webId" text NOT NULL,"contactId" text,"vvyId" text,"vvyName" text,"retallyOrigin" text,"retallyTerminus" text,"carType" text,"carTypeName" text,"retallyStartTime" text,"retallyEndTime" text,"goodsNumber" text,"goodsVolume" text,"goodsWeight" text,"tradeTypeName" text,"importExportFlagName" text,"spmName" text,"webStatus" text,"webDate" text, PRIMARY KEY("webId"));' + this.executeSql(sql) + }, + // 创建工班信息其他 infoRespList + createInfoRespList() { + console.log('创建工班信息翻仓其他表'); + let sql = + 'CREATE TABLE if not exists infoRespList ("webId" text NOT NULL,"contactId" text,"vvyId" text,"vvyName" text,"tecNum" text,"tecStartTm" text,"tecEndTm" text,"tecWeight" text,"tecVolume" text,"genNum" text,"genStartTm" text,"genEndTm" text,"genWeight" text,"genVolume" text,"tradeTypeName" text,"importExportFlagName" text,"spmName" text,"webStatus" text,"webDate" text, PRIMARY KEY("webId"));' + this.executeSql(sql) + }, // 创建系解缆 attachUnmoorRespList creatAttachUnmoorRespList() { let sql = @@ -67,7 +123,7 @@ module.exports = { 'CREATE TABLE if not exists abnormalConditionRespList ("webId" text NOT NULL,"vvyId" text,"vvyName" text,"type" text,"remark" text,"workTime" text,"tradeTypeName" text,"importExportFlagName" text,"spmName" text,"webStatus" text,"webDate" text, PRIMARY KEY("webId"));' this.executeSql(sql) }, - // 创建mifi mafiListRespList + // 创建mafi mafiListRespList createMafiListRespList() { let sql = 'CREATE TABLE if not exists mafiListRespList ("webId" text NOT NULL,"vvyId" text,"vvyName" text,"loaderTypeId" text,"loaderType" text,"typeId" text,"type" text,"size" text,"mafiBarcode" text,"workDate" text,"tradeTypeName" text,"importExportFlagName" text,"spmName" text,"webStatus" text,"webDate" text, PRIMARY KEY("webId"));' diff --git a/pages/shipWork/index.vue b/pages/shipWork/index.vue index 971be4f..aa50163 100644 --- a/pages/shipWork/index.vue +++ b/pages/shipWork/index.vue @@ -15,8 +15,7 @@ - - +