修改bug
parent
35246b6010
commit
00abdecbdc
|
@ -366,7 +366,6 @@
|
||||||
confirm() {
|
confirm() {
|
||||||
this.$refs.showRight.close();
|
this.$refs.showRight.close();
|
||||||
let arr = []
|
let arr = []
|
||||||
let flag = false
|
|
||||||
if (this.modelId == "" && this.modelName == "" && this.brdId == "" && this.brdName == "" && this.bvmId ==
|
if (this.modelId == "" && this.modelName == "" && this.brdId == "" && this.brdName == "" && this.bvmId ==
|
||||||
"" && this.bvmName == "" && this.potId == "" && this.potName == "" && this.minTon == "" && this
|
"" && this.bvmName == "" && this.potId == "" && this.potName == "" && this.minTon == "" && this
|
||||||
.maxTon == "" && this.minWidth == "" && this.maxWidth == "" && this.minHeight == "" && this
|
.maxTon == "" && this.minWidth == "" && this.maxWidth == "" && this.minHeight == "" && this
|
||||||
|
@ -375,36 +374,41 @@
|
||||||
} else {
|
} else {
|
||||||
this.allList.forEach(v => {
|
this.allList.forEach(v => {
|
||||||
if (this.modelName == v.model) {
|
if (this.modelName == v.model) {
|
||||||
flag = true
|
arr.push(v)
|
||||||
}
|
}
|
||||||
if (this.brdName == v.brdName) {
|
if (this.brdName == v.brdName) {
|
||||||
flag = true
|
arr.push(v)
|
||||||
}
|
}
|
||||||
if (this.bvmName == v.bvmName) {
|
if (this.bvmName == v.bvmName) {
|
||||||
flag = true
|
arr.push(v)
|
||||||
}
|
}
|
||||||
if (this.potName == v.potName) {
|
if (this.potName == v.potName) {
|
||||||
flag = true
|
arr.push(v)
|
||||||
}
|
}
|
||||||
if (this.minTon != "" && this.maxTon) {
|
if (this.minTon != "" && this.maxTon) {
|
||||||
if (this.minTon <= Number(v.weight) && this.maxTon >= Number(v.weight)) {
|
if (this.minTon <= Number(v.weight) && this.maxTon >= Number(v.weight)) {
|
||||||
flag = true
|
arr.push(v)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.minWidth != "" && this.maxWidth) {
|
if (this.minWidth != "" && this.maxWidth) {
|
||||||
if (this.minWidth <= Number(v.carWidth) && this.maxWidth >= Number(v.carWidth)) {
|
if (this.minWidth <= Number(v.carWidth) && this.maxWidth >= Number(v.carWidth)) {
|
||||||
flag = true
|
arr.push(v)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.minHeight != "" && this.maxHeight) {
|
if (this.minHeight != "" && this.maxHeight) {
|
||||||
if (this.minHeight <= Number(v.carHeight) && this.maxHeight >= Number(v.carHeight)) {
|
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
|
this.total = arr.length
|
||||||
if (arr.length > 0) {
|
if (arr.length > 0) {
|
||||||
let newArr = this.getMapping(arr, this.pageSize)
|
let newArr = this.getMapping(arr, this.pageSize)
|
||||||
|
|
|
@ -763,7 +763,7 @@
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: '当前船只不可下载'
|
title: '该船名航次已被其他用户下载,不可再次下载'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -954,7 +954,7 @@
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: '当前船只不可上传'
|
title: '该船名航次已被其他用户下载,不可再次上传'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -175,7 +175,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="rowTwo" v-if="shiftInfo1.length == 0">
|
<view class="rowTwo" v-show="shiftInfo1.length == 0">
|
||||||
<view class="left bo_r">
|
<view class="left bo_r">
|
||||||
<view class="cell bo_r">
|
<view class="cell bo_r">
|
||||||
First Shift
|
First Shift
|
||||||
|
@ -264,7 +264,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="rowTwo" v-if="shiftInfo2.length == 0">
|
<view class="rowTwo" v-show="shiftInfo2.length == 0">
|
||||||
<view class="left bo_r">
|
<view class="left bo_r">
|
||||||
<view class="cell bo_r">
|
<view class="cell bo_r">
|
||||||
Second Shift
|
Second Shift
|
||||||
|
@ -353,7 +353,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="rowTwo" v-if="shiftInfo3.length == 0">
|
<view class="rowTwo" v-show="shiftInfo3.length == 0">
|
||||||
<view class="left bo_r">
|
<view class="left bo_r">
|
||||||
<view class="cell bo_r">
|
<view class="cell bo_r">
|
||||||
Third Shift
|
Third Shift
|
||||||
|
|
|
@ -93,7 +93,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="li widthLi iLi">
|
<view class="li widthLi iLi">
|
||||||
<p class="liTitle">备注:</p>
|
<p class="liTitle">备注:</p>
|
||||||
<uni-easyinput type="textarea" autoHeight v-model="item2.remark"
|
<uni-easyinput type="textarea" v-model="item2.remark"
|
||||||
placeholder="请输入任务描述(200字以内)" maxlength="200"></uni-easyinput>
|
placeholder="请输入任务描述(200字以内)" maxlength="200"></uni-easyinput>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -150,7 +150,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="li widthLi iLi">
|
<view class="li widthLi iLi">
|
||||||
<p class="liTitle">备注:</p>
|
<p class="liTitle">备注:</p>
|
||||||
<uni-easyinput type="textarea" autoHeight v-model="item2.remark"
|
<uni-easyinput type="textarea" v-model="item2.remark"
|
||||||
placeholder="请输入任务描述(200字以内)" maxlength="200"></uni-easyinput>
|
placeholder="请输入任务描述(200字以内)" maxlength="200"></uni-easyinput>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -285,19 +285,19 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="li iLi">
|
<view class="li iLi">
|
||||||
<p class="liTitle">描述:</p>
|
<p class="liTitle">描述:</p>
|
||||||
<uni-easyinput type="textarea" autoHeight v-model="item.describe"
|
<uni-easyinput type="textarea" v-model="item.describe"
|
||||||
placeholder="请输入任务描述(200字以内)" maxlength="200"></uni-easyinput>
|
placeholder="请输入任务描述(200字以内)" maxlength="200"></uni-easyinput>
|
||||||
</view>
|
</view>
|
||||||
<p class="title">待工作业</p>
|
<p class="title">待工作业</p>
|
||||||
<view class="li iLi">
|
<view class="li iLi">
|
||||||
<p class="liTitle">描述:</p>
|
<p class="liTitle">描述:</p>
|
||||||
<uni-easyinput type="textarea" autoHeight v-model="item.dgWork"
|
<uni-easyinput type="textarea" v-model="item.dgWork"
|
||||||
placeholder="请输入任务描述(200字以内)" maxlength="200"></uni-easyinput>
|
placeholder="请输入任务描述(200字以内)" maxlength="200"></uni-easyinput>
|
||||||
</view>
|
</view>
|
||||||
<p class="title">作业备注</p>
|
<p class="title">作业备注</p>
|
||||||
<view class="li iLi">
|
<view class="li iLi">
|
||||||
<p class="liTitle">描述:</p>
|
<p class="liTitle">描述:</p>
|
||||||
<uni-easyinput type="textarea" autoHeight v-model="item.remark"
|
<uni-easyinput type="textarea" v-model="item.remark"
|
||||||
placeholder="请输入任务描述(200字以内)" maxlength="200"></uni-easyinput>
|
placeholder="请输入任务描述(200字以内)" maxlength="200"></uni-easyinput>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -526,45 +526,45 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.fcUlList = [{
|
// this.fcUlList = [{
|
||||||
retallyType: "",
|
// retallyType: "",
|
||||||
retallyTypeName: "",
|
// retallyTypeName: "",
|
||||||
retallyOrigin: "",
|
// retallyOrigin: "",
|
||||||
retallyTerminus: "",
|
// retallyTerminus: "",
|
||||||
carType: "",
|
// carType: "",
|
||||||
carTypeName: "",
|
// carTypeName: "",
|
||||||
datetime: ['', ''],
|
// datetime: ['', ''],
|
||||||
retallyStartTime: "",
|
// retallyStartTime: "",
|
||||||
retallyEndTime: "",
|
// retallyEndTime: "",
|
||||||
goodsNumber: 0,
|
// goodsNumber: 0,
|
||||||
goodsVolume: 0,
|
// goodsVolume: 0,
|
||||||
goodsWeight: 0,
|
// goodsWeight: 0,
|
||||||
mafiGroupNum: 0,
|
// mafiGroupNum: 0,
|
||||||
mfType: false,
|
// mfType: false,
|
||||||
editStatus: 0,
|
// editStatus: 0,
|
||||||
}]
|
// }]
|
||||||
}
|
}
|
||||||
} else if (tableName == 'infoRespList') {
|
} else if (tableName == 'infoRespList') {
|
||||||
if (value.length == 0) {
|
if (value.length == 0) {
|
||||||
this.otherArr = [{
|
// this.otherArr = [{
|
||||||
webId: '',
|
// webId: '',
|
||||||
contactId: '',
|
// contactId: '',
|
||||||
jsworker: 0,
|
// jsworker: 0,
|
||||||
datetime: ['', ''],
|
// datetime: ['', ''],
|
||||||
startTime: '',
|
// startTime: '',
|
||||||
endTime: '',
|
// endTime: '',
|
||||||
zlValue: 0,
|
// zlValue: 0,
|
||||||
tjValue: 0,
|
// tjValue: 0,
|
||||||
ptworker: 0,
|
// ptworker: 0,
|
||||||
datetime2: ['', ''],
|
// datetime2: ['', ''],
|
||||||
startTime2: '',
|
// startTime2: '',
|
||||||
endTime2: '',
|
// endTime2: '',
|
||||||
zlValue2: 0,
|
// zlValue2: 0,
|
||||||
tjValue2: 0,
|
// tjValue2: 0,
|
||||||
describe: '',
|
// describe: '',
|
||||||
dgWork: '',
|
// dgWork: '',
|
||||||
remark: ''
|
// remark: ''
|
||||||
}]
|
// }]
|
||||||
} else {
|
} else {
|
||||||
this.otherArr = []
|
this.otherArr = []
|
||||||
}
|
}
|
||||||
|
@ -677,13 +677,13 @@
|
||||||
},
|
},
|
||||||
//状态为编辑获取数据
|
//状态为编辑获取数据
|
||||||
editData() {
|
editData() {
|
||||||
this.executeSql1('workMessageRespList')
|
this.executeSql1('workMessageRespList')
|
||||||
let that = this
|
let that = this
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
that.loadItem()
|
that.loadItem()
|
||||||
}, 200)
|
}, 200)
|
||||||
this.executeSql1('retallyMessageRespList')
|
this.executeSql1('retallyMessageRespList')
|
||||||
this.executeSql1('infoRespList')
|
this.executeSql1('infoRespList')
|
||||||
},
|
},
|
||||||
async loadItem() {
|
async loadItem() {
|
||||||
for (let i = 0; i < this.ulList1.length; i++) {
|
for (let i = 0; i < this.ulList1.length; i++) {
|
||||||
|
|
|
@ -421,7 +421,7 @@
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
|
justify-content: space-between;
|
||||||
.masonryLi {
|
.masonryLi {
|
||||||
width: 49%;
|
width: 49%;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
|
|
@ -329,6 +329,38 @@
|
||||||
},
|
},
|
||||||
// 保存
|
// 保存
|
||||||
save() {
|
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 date = new Date().getTime()
|
||||||
let altId = uuidv4()
|
let altId = uuidv4()
|
||||||
let webStatus = 0
|
let webStatus = 0
|
||||||
|
|
Loading…
Reference in New Issue