diff --git a/pages/shipWork/brandDetails.vue b/pages/shipWork/brandDetails.vue index 8348fbd..93fe38c 100644 --- a/pages/shipWork/brandDetails.vue +++ b/pages/shipWork/brandDetails.vue @@ -366,7 +366,6 @@ confirm() { this.$refs.showRight.close(); let arr = [] - let flag = false if (this.modelId == "" && this.modelName == "" && this.brdId == "" && this.brdName == "" && this.bvmId == "" && this.bvmName == "" && this.potId == "" && this.potName == "" && this.minTon == "" && this .maxTon == "" && this.minWidth == "" && this.maxWidth == "" && this.minHeight == "" && this @@ -375,36 +374,41 @@ } else { this.allList.forEach(v => { if (this.modelName == v.model) { - flag = true + arr.push(v) } if (this.brdName == v.brdName) { - flag = true + arr.push(v) } if (this.bvmName == v.bvmName) { - flag = true + arr.push(v) } if (this.potName == v.potName) { - flag = true + arr.push(v) } if (this.minTon != "" && this.maxTon) { if (this.minTon <= Number(v.weight) && this.maxTon >= Number(v.weight)) { - flag = true + arr.push(v) } } if (this.minWidth != "" && this.maxWidth) { if (this.minWidth <= Number(v.carWidth) && this.maxWidth >= Number(v.carWidth)) { - flag = true + arr.push(v) } } if (this.minHeight != "" && this.maxHeight) { if (this.minHeight <= Number(v.carHeight) && this.maxHeight >= Number(v.carHeight)) { - flag = true + arr.push(v) } } - if (flag) { - arr.push(v) - } }) + for (let i = 0; i < arr.length; i++) { + for (let j = i + 1; j < arr.length; j++) { + if (arr[i].webId == arr[j].webId) { + arr.splice(j, 1); + j--; + } + } + } this.total = arr.length if (arr.length > 0) { let newArr = this.getMapping(arr, this.pageSize) diff --git a/pages/shipWork/index.vue b/pages/shipWork/index.vue index fc6f5c5..bec708b 100644 --- a/pages/shipWork/index.vue +++ b/pages/shipWork/index.vue @@ -763,7 +763,7 @@ } else { uni.showToast({ icon: 'none', - title: '当前船只不可下载' + title: '该船名航次已被其他用户下载,不可再次下载' }); } } else { @@ -954,7 +954,7 @@ } else { uni.showToast({ icon: 'none', - title: '当前船只不可上传' + title: '该船名航次已被其他用户下载,不可再次上传' }); } }, diff --git a/pages/shipWork/mixSign.vue b/pages/shipWork/mixSign.vue index 8fade49..26bcdbc 100644 --- a/pages/shipWork/mixSign.vue +++ b/pages/shipWork/mixSign.vue @@ -175,7 +175,7 @@ - + First Shift @@ -264,7 +264,7 @@ - + Second Shift @@ -353,7 +353,7 @@ - + Third Shift diff --git a/pages/shipWork/shiftAdd.vue b/pages/shipWork/shiftAdd.vue index 3e1f0cf..2e75436 100644 --- a/pages/shipWork/shiftAdd.vue +++ b/pages/shipWork/shiftAdd.vue @@ -93,7 +93,7 @@

备注:

-
@@ -150,7 +150,7 @@

备注:

-
@@ -285,19 +285,19 @@

描述:

-

待工作业

描述:

-

作业备注

描述:

-
@@ -526,45 +526,45 @@ } }) } else { - this.fcUlList = [{ - retallyType: "", - retallyTypeName: "", - retallyOrigin: "", - retallyTerminus: "", - carType: "", - carTypeName: "", - datetime: ['', ''], - retallyStartTime: "", - retallyEndTime: "", - goodsNumber: 0, - goodsVolume: 0, - goodsWeight: 0, - mafiGroupNum: 0, - mfType: false, - editStatus: 0, - }] + // this.fcUlList = [{ + // retallyType: "", + // retallyTypeName: "", + // retallyOrigin: "", + // retallyTerminus: "", + // carType: "", + // carTypeName: "", + // datetime: ['', ''], + // retallyStartTime: "", + // retallyEndTime: "", + // goodsNumber: 0, + // goodsVolume: 0, + // goodsWeight: 0, + // mafiGroupNum: 0, + // mfType: false, + // editStatus: 0, + // }] } } else if (tableName == 'infoRespList') { if (value.length == 0) { - this.otherArr = [{ - webId: '', - contactId: '', - jsworker: 0, - datetime: ['', ''], - startTime: '', - endTime: '', - zlValue: 0, - tjValue: 0, - ptworker: 0, - datetime2: ['', ''], - startTime2: '', - endTime2: '', - zlValue2: 0, - tjValue2: 0, - describe: '', - dgWork: '', - remark: '' - }] + // this.otherArr = [{ + // webId: '', + // contactId: '', + // jsworker: 0, + // datetime: ['', ''], + // startTime: '', + // endTime: '', + // zlValue: 0, + // tjValue: 0, + // ptworker: 0, + // datetime2: ['', ''], + // startTime2: '', + // endTime2: '', + // zlValue2: 0, + // tjValue2: 0, + // describe: '', + // dgWork: '', + // remark: '' + // }] } else { this.otherArr = [] } @@ -677,13 +677,13 @@ }, //状态为编辑获取数据 editData() { - this.executeSql1('workMessageRespList') + this.executeSql1('workMessageRespList') let that = this setTimeout(function() { that.loadItem() }, 200) - this.executeSql1('retallyMessageRespList') - this.executeSql1('infoRespList') + this.executeSql1('retallyMessageRespList') + this.executeSql1('infoRespList') }, async loadItem() { for (let i = 0; i < this.ulList1.length; i++) { diff --git a/pages/shipWork/shiftDetails.vue b/pages/shipWork/shiftDetails.vue index 5916acc..ff9415e 100644 --- a/pages/shipWork/shiftDetails.vue +++ b/pages/shipWork/shiftDetails.vue @@ -421,7 +421,7 @@ flex-wrap: wrap; align-items: baseline; gap: 16px; - + justify-content: space-between; .masonryLi { width: 49%; height: auto; diff --git a/pages/shipWork/workAssignAdd.vue b/pages/shipWork/workAssignAdd.vue index c5afee3..9eb312d 100644 --- a/pages/shipWork/workAssignAdd.vue +++ b/pages/shipWork/workAssignAdd.vue @@ -329,6 +329,38 @@ }, // 保存 save() { + if (this.vvyId == "") { + uni.showModal({ + title: '提示', + showCancel: false, + content: '请输入航次!' + }) + return + } + if (this.bthId == "") { + uni.showModal({ + title: '提示', + showCancel: false, + content: '请输入泊位!' + }) + return + } + if (this.pwcType == "") { + uni.showModal({ + title: '提示', + showCancel: false, + content: '请输入工班!' + }) + return + } + if (this.startTime == "") { + uni.showModal({ + title: '提示', + showCancel: false, + content: '请输入作业时间!' + }) + return + } let date = new Date().getTime() let altId = uuidv4() let webStatus = 0