8.1 代码更改

dev2
Panzihang 2023-08-01 17:26:06 +08:00
parent e10a5efba4
commit ab75b852e7
10 changed files with 13 additions and 16 deletions

View File

@ -141,7 +141,7 @@
// let addAbnormalArr = uni.getStorageSync('addAbnormalArr')
// addAbnormalArr.splice(this.abnormalRowIndex, 1)
// uni.setStorageSync('addAbnormalArr', addAbnormalArr);
let sql = `DELETE FROM abnormalConditionRespList WHERE webId = ${this.abnormalRow.webId};`
let sql = `DELETE FROM abnormalConditionRespList WHERE webId = '${this.abnormalRow.webId}';`
this.executeSql(sql)
uni.navigateTo({
url: '/pages/shipWork/abnormal'

View File

@ -197,7 +197,7 @@
// let addMafiArr = uni.getStorageSync('addMafiArr')
// addMafiArr.splice(this.mafiRowIndex, 1)
// uni.setStorageSync('addMafiArr', addMafiArr);
let sql = `DELETE FROM mafiListRespList WHERE webId = ${this.mafiRow.webId};`
let sql = `DELETE FROM mafiListRespList WHERE webId = '${this.mafiRow.webId}';`
this.executeSql(sql)
uni.navigateTo({
url: '/pages/shipWork/mafi'

View File

@ -129,16 +129,13 @@
})
},
onBackPress(event) {
uni.setStorageSync('tabsType', 0);
uni.navigateTo({
url: '/pages/shipWork/documentList'
})
return true;
},
},
//
destroyed() {
uni.removeStorageSync('tabsType')
}
}
</script>

View File

@ -124,7 +124,7 @@
// let addNoticeArr = uni.getStorageSync('addNoticeArr')
// addNoticeArr.splice(this.noticeRowIndex, 1)
// uni.setStorageSync('addNoticeArr', addNoticeArr);
let sql = `DELETE FROM shipmentLoadUnloadNoticeRespList WHERE webId = ${this.noticeRow.webId};`
let sql = `DELETE FROM shipmentLoadUnloadNoticeRespList WHERE webId = '${this.noticeRow.webId}';`
this.executeSql(sql)
uni.navigateTo({
url: '/pages/shipWork/notice'

View File

@ -196,7 +196,7 @@
// let addOpinionArr = uni.getStorageSync('addOpinionArr')
// addOpinionArr.splice(this.opinionRowIndex, 1)
// uni.setStorageSync('addOpinionArr', addOpinionArr);
let sql = `DELETE FROM shipmentQualityConsultationRespList WHERE webId = ${this.opinionRow.webId};`
let sql = `DELETE FROM shipmentQualityConsultationRespList WHERE webId = '${this.opinionRow.webId}';`
this.executeSql(sql)
uni.navigateTo({
url: '/pages/shipWork/opinion'

View File

@ -149,7 +149,7 @@
// let addPatrolArr = uni.getStorageSync('addPatrolArr')
// addPatrolArr.splice(this.patrolRowIndex, 1)
// uni.setStorageSync('addPatrolArr', addPatrolArr);
let sql = `DELETE FROM safetyInspectionRespList WHERE webId = ${this.patrolRow.webId};`
let sql = `DELETE FROM safetyInspectionRespList WHERE webId = '${this.patrolRow.webId}';`
this.executeSql(sql)
uni.navigateTo({
url: '/pages/shipWork/patrol'

View File

@ -211,7 +211,7 @@
// let addPeopleArr = uni.getStorageSync('addPeopleArr')
// addPeopleArr.splice(this.peopleRowIndex, 1)
// uni.setStorageSync('addPeopleArr', addPeopleArr);
let sql = `DELETE FROM messageRespList WHERE webId = ${this.peopleRow.webId};`
let sql = `DELETE FROM messageRespList WHERE webId = '${this.peopleRow.webId}';`
this.executeSql(sql)
uni.setStorageSync('tabsType', 0);
uni.navigateTo({
@ -234,7 +234,7 @@
jobStartTime = '${this.startTime}',jobEndTime = '${this.endTime}',shipPerson = '${this.shipValue}',
vvyId = '${this.hcValue}',vvyName = '${this.hcTextValue}',weatherId = '${this.tqValue}',
weatherType = '${this.tqTextValue}',workSuite = '${this.workValue}',webStatus = '${webStatus}',
webDate = '${webDate}' WHERE webId = ${this.peopleRow.webId};`
webDate = '${webDate}' WHERE webId = '${this.peopleRow.webId}';`
this.executeSql(sql)
} else if (this.obj.state == "add") {
let sql = `insert into messageRespList values('${webId}','${this.bwValue}','${this.bwTextValue}',

View File

@ -184,7 +184,7 @@
// let addSupplyArr = uni.getStorageSync('addSupplyArr')
// addSupplyArr.splice(this.supplyRowIndex, 1)
// uni.setStorageSync('addSupplyArr', addSupplyArr);
let sql = `DELETE FROM shipmentShipSupplyRespList WHERE webId = ${this.supplyRow.webId};`
let sql = `DELETE FROM shipmentShipSupplyRespList WHERE webId = '${this.supplyRow.webId}';`
this.executeSql(sql)
uni.navigateTo({
url: '/pages/shipWork/supply'
@ -205,7 +205,7 @@
`UPDATE shipmentShipSupplyRespList SET vvyId = '${this.vvyId}',vvyName = '${this.vvyName}',
stopBerthage = '${this.stopBerthage}',stopBerthageName = '${this.stopBerthageName}',sssId = '${this.supplyTypeId}',
supplyType = '${this.supplyType}',supplyAmount = '${this.supplyAmount}',supplyDate = '${this.supplyDate}',webStatus = '${webStatus}',
webDate = '${webDate}' WHERE webId = ${this.supplyRow.webId};`
webDate = '${webDate}' WHERE webId = '${this.supplyRow.webId}';`
this.executeSql(sql)
} else if (this.obj.state == "add") {
let sql =

View File

@ -193,7 +193,7 @@
// let addUntieArr = uni.getStorageSync('addUntieArr')
// addUntieArr.splice(this.untieRowIndex, 1)
// uni.setStorageSync('addUntieArr', addUntieArr);
let sql = `DELETE FROM attachUnmoorRespList WHERE webId = ${this.untieRow.webId};`
let sql = `DELETE FROM attachUnmoorRespList WHERE webId = '${this.untieRow.webId}';`
this.executeSql(sql)
uni.navigateTo({
url: '/pages/shipWork/untieCord'
@ -215,7 +215,7 @@
vvyName = '${this.vvyName}',bthId = '${this.bthId}',bthIdName = '${this.bthIdName}',
attachTime = '${this.attachTime}',unmoorTime = '${this.unmoorTime}',shiftingBerthTime = '${this.shiftingBerthTime}',
noProductBerthTime = '${this.noProductBerthTime}',webStatus = '${webStatus}',
webDate = '${webDate}' WHERE webId = ${this.untieRow.webId};`
webDate = '${webDate}' WHERE webId = '${this.untieRow.webId}';`
this.executeSql(sql)
} else if (this.obj.state == "add") {
let sql =

View File

@ -239,7 +239,7 @@
// let addAssignArr = uni.getStorageSync('addAssignArr')
// addAssignArr.splice(this.assignRowIndex, 1)
// uni.setStorageSync('addAssignArr', addAssignArr);
let sql = `DELETE FROM shipmentAdviserLayoutRespList WHERE webId = ${this.assignRow.webId};`
let sql = `DELETE FROM shipmentAdviserLayoutRespList WHERE webId = '${this.assignRow.webId}';`
this.executeSql(sql)
uni.navigateTo({
url: '/pages/shipWork/workAssign'