8.1 代码更改
parent
e10a5efba4
commit
ab75b852e7
|
@ -141,7 +141,7 @@
|
||||||
// let addAbnormalArr = uni.getStorageSync('addAbnormalArr')
|
// let addAbnormalArr = uni.getStorageSync('addAbnormalArr')
|
||||||
// addAbnormalArr.splice(this.abnormalRowIndex, 1)
|
// addAbnormalArr.splice(this.abnormalRowIndex, 1)
|
||||||
// uni.setStorageSync('addAbnormalArr', addAbnormalArr);
|
// 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)
|
this.executeSql(sql)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/shipWork/abnormal'
|
url: '/pages/shipWork/abnormal'
|
||||||
|
|
|
@ -197,7 +197,7 @@
|
||||||
// let addMafiArr = uni.getStorageSync('addMafiArr')
|
// let addMafiArr = uni.getStorageSync('addMafiArr')
|
||||||
// addMafiArr.splice(this.mafiRowIndex, 1)
|
// addMafiArr.splice(this.mafiRowIndex, 1)
|
||||||
// uni.setStorageSync('addMafiArr', addMafiArr);
|
// 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)
|
this.executeSql(sql)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/shipWork/mafi'
|
url: '/pages/shipWork/mafi'
|
||||||
|
|
|
@ -129,16 +129,13 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onBackPress(event) {
|
onBackPress(event) {
|
||||||
|
uni.setStorageSync('tabsType', 0);
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/shipWork/documentList'
|
url: '/pages/shipWork/documentList'
|
||||||
})
|
})
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// 离开页面删除数据
|
|
||||||
destroyed() {
|
|
||||||
uni.removeStorageSync('tabsType')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -124,7 +124,7 @@
|
||||||
// let addNoticeArr = uni.getStorageSync('addNoticeArr')
|
// let addNoticeArr = uni.getStorageSync('addNoticeArr')
|
||||||
// addNoticeArr.splice(this.noticeRowIndex, 1)
|
// addNoticeArr.splice(this.noticeRowIndex, 1)
|
||||||
// uni.setStorageSync('addNoticeArr', addNoticeArr);
|
// 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)
|
this.executeSql(sql)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/shipWork/notice'
|
url: '/pages/shipWork/notice'
|
||||||
|
|
|
@ -196,7 +196,7 @@
|
||||||
// let addOpinionArr = uni.getStorageSync('addOpinionArr')
|
// let addOpinionArr = uni.getStorageSync('addOpinionArr')
|
||||||
// addOpinionArr.splice(this.opinionRowIndex, 1)
|
// addOpinionArr.splice(this.opinionRowIndex, 1)
|
||||||
// uni.setStorageSync('addOpinionArr', addOpinionArr);
|
// 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)
|
this.executeSql(sql)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/shipWork/opinion'
|
url: '/pages/shipWork/opinion'
|
||||||
|
|
|
@ -149,7 +149,7 @@
|
||||||
// let addPatrolArr = uni.getStorageSync('addPatrolArr')
|
// let addPatrolArr = uni.getStorageSync('addPatrolArr')
|
||||||
// addPatrolArr.splice(this.patrolRowIndex, 1)
|
// addPatrolArr.splice(this.patrolRowIndex, 1)
|
||||||
// uni.setStorageSync('addPatrolArr', addPatrolArr);
|
// 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)
|
this.executeSql(sql)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/shipWork/patrol'
|
url: '/pages/shipWork/patrol'
|
||||||
|
|
|
@ -211,7 +211,7 @@
|
||||||
// let addPeopleArr = uni.getStorageSync('addPeopleArr')
|
// let addPeopleArr = uni.getStorageSync('addPeopleArr')
|
||||||
// addPeopleArr.splice(this.peopleRowIndex, 1)
|
// addPeopleArr.splice(this.peopleRowIndex, 1)
|
||||||
// uni.setStorageSync('addPeopleArr', addPeopleArr);
|
// 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)
|
this.executeSql(sql)
|
||||||
uni.setStorageSync('tabsType', 0);
|
uni.setStorageSync('tabsType', 0);
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
@ -234,7 +234,7 @@
|
||||||
jobStartTime = '${this.startTime}',jobEndTime = '${this.endTime}',shipPerson = '${this.shipValue}',
|
jobStartTime = '${this.startTime}',jobEndTime = '${this.endTime}',shipPerson = '${this.shipValue}',
|
||||||
vvyId = '${this.hcValue}',vvyName = '${this.hcTextValue}',weatherId = '${this.tqValue}',
|
vvyId = '${this.hcValue}',vvyName = '${this.hcTextValue}',weatherId = '${this.tqValue}',
|
||||||
weatherType = '${this.tqTextValue}',workSuite = '${this.workValue}',webStatus = '${webStatus}',
|
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)
|
this.executeSql(sql)
|
||||||
} else if (this.obj.state == "add") {
|
} else if (this.obj.state == "add") {
|
||||||
let sql = `insert into messageRespList values('${webId}','${this.bwValue}','${this.bwTextValue}',
|
let sql = `insert into messageRespList values('${webId}','${this.bwValue}','${this.bwTextValue}',
|
||||||
|
|
|
@ -184,7 +184,7 @@
|
||||||
// let addSupplyArr = uni.getStorageSync('addSupplyArr')
|
// let addSupplyArr = uni.getStorageSync('addSupplyArr')
|
||||||
// addSupplyArr.splice(this.supplyRowIndex, 1)
|
// addSupplyArr.splice(this.supplyRowIndex, 1)
|
||||||
// uni.setStorageSync('addSupplyArr', addSupplyArr);
|
// 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)
|
this.executeSql(sql)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/shipWork/supply'
|
url: '/pages/shipWork/supply'
|
||||||
|
@ -205,7 +205,7 @@
|
||||||
`UPDATE shipmentShipSupplyRespList SET vvyId = '${this.vvyId}',vvyName = '${this.vvyName}',
|
`UPDATE shipmentShipSupplyRespList SET vvyId = '${this.vvyId}',vvyName = '${this.vvyName}',
|
||||||
stopBerthage = '${this.stopBerthage}',stopBerthageName = '${this.stopBerthageName}',sssId = '${this.supplyTypeId}',
|
stopBerthage = '${this.stopBerthage}',stopBerthageName = '${this.stopBerthageName}',sssId = '${this.supplyTypeId}',
|
||||||
supplyType = '${this.supplyType}',supplyAmount = '${this.supplyAmount}',supplyDate = '${this.supplyDate}',webStatus = '${webStatus}',
|
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)
|
this.executeSql(sql)
|
||||||
} else if (this.obj.state == "add") {
|
} else if (this.obj.state == "add") {
|
||||||
let sql =
|
let sql =
|
||||||
|
|
|
@ -193,7 +193,7 @@
|
||||||
// let addUntieArr = uni.getStorageSync('addUntieArr')
|
// let addUntieArr = uni.getStorageSync('addUntieArr')
|
||||||
// addUntieArr.splice(this.untieRowIndex, 1)
|
// addUntieArr.splice(this.untieRowIndex, 1)
|
||||||
// uni.setStorageSync('addUntieArr', addUntieArr);
|
// 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)
|
this.executeSql(sql)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/shipWork/untieCord'
|
url: '/pages/shipWork/untieCord'
|
||||||
|
@ -215,7 +215,7 @@
|
||||||
vvyName = '${this.vvyName}',bthId = '${this.bthId}',bthIdName = '${this.bthIdName}',
|
vvyName = '${this.vvyName}',bthId = '${this.bthId}',bthIdName = '${this.bthIdName}',
|
||||||
attachTime = '${this.attachTime}',unmoorTime = '${this.unmoorTime}',shiftingBerthTime = '${this.shiftingBerthTime}',
|
attachTime = '${this.attachTime}',unmoorTime = '${this.unmoorTime}',shiftingBerthTime = '${this.shiftingBerthTime}',
|
||||||
noProductBerthTime = '${this.noProductBerthTime}',webStatus = '${webStatus}',
|
noProductBerthTime = '${this.noProductBerthTime}',webStatus = '${webStatus}',
|
||||||
webDate = '${webDate}' WHERE webId = ${this.untieRow.webId};`
|
webDate = '${webDate}' WHERE webId = '${this.untieRow.webId}';`
|
||||||
this.executeSql(sql)
|
this.executeSql(sql)
|
||||||
} else if (this.obj.state == "add") {
|
} else if (this.obj.state == "add") {
|
||||||
let sql =
|
let sql =
|
||||||
|
|
|
@ -239,7 +239,7 @@
|
||||||
// let addAssignArr = uni.getStorageSync('addAssignArr')
|
// let addAssignArr = uni.getStorageSync('addAssignArr')
|
||||||
// addAssignArr.splice(this.assignRowIndex, 1)
|
// addAssignArr.splice(this.assignRowIndex, 1)
|
||||||
// uni.setStorageSync('addAssignArr', addAssignArr);
|
// 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)
|
this.executeSql(sql)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/shipWork/workAssign'
|
url: '/pages/shipWork/workAssign'
|
||||||
|
|
Loading…
Reference in New Issue