diff --git a/pages/quality/edit.vue b/pages/quality/edit.vue index f992d03..a3b1e79 100644 --- a/pages/quality/edit.vue +++ b/pages/quality/edit.vue @@ -469,8 +469,9 @@ } else if (this.current == '其他') { this.isOther = true } + console.log('this.radioList',this.radioList,this.infoData.qdLink); this.radioList.forEach(v => { - if (v.name == this.infoData.qdLink) { + if (v.value == this.infoData.qdLink) { this.currentValue = v.value this.$set(v, "checked", true) } else { diff --git a/pages/shipWork/mixSign.vue b/pages/shipWork/mixSign.vue index 263c6a7..b9ca47b 100644 --- a/pages/shipWork/mixSign.vue +++ b/pages/shipWork/mixSign.vue @@ -52,7 +52,7 @@

Berthed at Haitong:

{{bwInfo}} --> - Foreman Working time:??? + Foreman Working time:{{RYSJ[0].minStartTime | textFilter}}-{{RYSJ[0].maxEndTime | textFilter}} Berthed at Haitong: @@ -131,10 +131,10 @@ - {{item2.workStartTime}} + {{item2.workStartTime | textFilter}} - {{item2.workEndTime}} + {{item2.workEndTime | textFilter}} @@ -219,8 +219,8 @@ {{item.retallyOrigin}} - {{item.retallyStartTime}} - {{item.retallyEndTime}} + {{item.retallyStartTime | textFilter}} + {{item.retallyEndTime | textFilter}} @@ -248,8 +248,8 @@ {{item.retallyOrigin}} - {{item.retallyStartTime}} - {{item.retallyEndTime}} + {{item.retallyStartTime | textFilter}} + {{item.retallyEndTime | textFilter}} @@ -329,12 +329,12 @@ {{ PTGR[0].totalGenNum }} - {{ JSGR[0].minStartTime }} - {{ PTGR[0].minStartTimePt }} + {{ JSGR[0].minStartTime | textFilter}} + {{ PTGR[0].minStartTimePt | textFilter}} - {{ JSGR[0].maxEndTime }} - {{ PTGR[0].maxEndTimePt }} + {{ JSGR[0].maxEndTime | textFilter}} + {{ PTGR[0].maxEndTimePt | textFilter}} @@ -459,6 +459,7 @@ delId: "", PTGR:[], JSGR:[], + RYSJ:[] } }, onLoad(option) { @@ -518,6 +519,15 @@ that.bwInfo = that.bwArr.join(",") }, 300) }, + filters: { + textFilter(value) { + let split_s = value.split(" ") + let result = split_s[1].split(":") + let date = split_s[0].split("-") + let sum = result[0] + ":" + result[1] + "(" + date[2] + ")" + return sum + } + }, methods: { // 查船舶信息/人员信息 executeSql(tableName) { @@ -546,6 +556,7 @@ sqlite.executeSqlCeshi(sql).then((value) => { this.timeArr = value value.forEach((v, index) => { + console.log('v',v); this.startTime = v.work_shift.split(",")[0] this.endTime = v.work_shift.split(",")[1] let sql2 = @@ -570,6 +581,13 @@ let sql6 = `SELECT MIN(startTm) AS minStartTime,MAX(endTm) AS maxEndTime,SUM(tecNum) AS totalTecNum,SUM(weight) AS totalWeight,SUM(volume) AS totalvolume,GROUP_CONCAT(waitRemark, ', ') AS allWaitRemark,GROUP_CONCAT(auxRemark, ', ') AS allAuxRemark FROM infoRespList WHERE vtpId = '${this.vtpId}' AND startTm>='${this.startTime}'AND endTm<='${this.endTime}'` this.executeSql7(sql6) + // 人员信息作业时间 + let sql7 = `SELECT MIN(jobStartTime) AS minStartTime,MAX(jobEndTime) AS maxEndTime + FROM messageRespList + WHERE vtpId = '${this.vtpId}' + AND jobStartTime>='${this.startTime}' + AND jobEndTime<='${this.endTime}'` + this.executeSql8(sql7) }) let that = this setTimeout(function() { @@ -659,11 +677,9 @@ executeSql4(sql) { sqlite.executeSqlCeshi(sql).then((value) => { // 在resolve时执行的回调函数 - // console.log('value',value); if (value.length > 0) { this.PTGR.push(...value) } - // this.qtList = api.arrFrom(this.qtList, "webId") }).catch((error) => { // 在reject时执行的回调函数 console.error(error); @@ -676,7 +692,18 @@ if (value.length > 0) { this.JSGR.push(...value) } - // this.qtList = api.arrFrom(this.qtList, "webId") + }).catch((error) => { + // 在reject时执行的回调函数 + console.error(error); + }); + }, + // 人员信息作业时间 + executeSql8(sql) { + sqlite.executeSqlCeshi(sql).then((value) => { + // 在resolve时执行的回调函数 + if (value.length > 0) { + this.RYSJ.push(...value) + } }).catch((error) => { // 在reject时执行的回调函数 console.error(error); @@ -686,6 +713,7 @@ executeSql6(sql) { sqlite.executeSqlCeshi(sql).then((value) => { // 在resolve时执行的回调函数 + console.log('value',value); if (value.length > 0) { this.peopleList.push(...value) } diff --git a/pages/shipWork/peopleAdd.vue b/pages/shipWork/peopleAdd.vue index ee81c6f..0894e9f 100644 --- a/pages/shipWork/peopleAdd.vue +++ b/pages/shipWork/peopleAdd.vue @@ -26,9 +26,10 @@

*天气:

- - {{peopleRow.weatherType}} + + + {{ tqTextValue }}

*泊位:

@@ -49,7 +50,7 @@ {{peopleRow.shipPerson}}
-

作业时间:

+

*作业时间: