From 63c0c44643fd8a6d0077de709c5ef0f61b4a08e7 Mon Sep 17 00:00:00 2001 From: Panzihang <819652404@qq.com> Date: Fri, 4 Aug 2023 17:06:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Esqlit=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/createDataTable.js | 72 +++- pages/shipWork/index.vue | 56 +-- pages/shipWork/mafiAdd.vue | 2 +- pages/shipWork/mixWork.vue | 8 + pages/shipWork/opinionAdd.vue | 6 +- pages/shipWork/peopleAdd.vue | 680 ++++++++++++++++--------------- pages/shipWork/shiftAdd.vue | 131 ++++-- pages/shipWork/shiftDetails.vue | 22 +- pages/shipWork/supplyAdd.vue | 2 +- pages/shipWork/untieAdd.vue | 2 +- pages/shipWork/workAssignAdd.vue | 6 +- 11 files changed, 568 insertions(+), 419 deletions(-) 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 @@ - - +