修改bug

dev3
wuwx 2024-05-09 11:12:03 +08:00
parent 2c637fb0cf
commit 760d5fad98
11 changed files with 105 additions and 62 deletions

View File

@ -98,7 +98,7 @@ module.exports = {
// 创建工班信息翻仓 retallyMessageRespList // 创建工班信息翻仓 retallyMessageRespList
createRetallyMessageRespList() { createRetallyMessageRespList() {
let sql = let sql =
'CREATE TABLE if not exists retallyMessageRespList ("webId" text NOT NULL,"vtpId" text,"contactId" text,"aId" text,"reyVvyId" text,"vvyName" text,"retallyType" text,"retallyTypeName" text,"retallyOrigin" text,"retallyTerminus" text,"retallyStartTime" text,"retallyEndTime" text,"carType" text,"carTypeName" text,"goodsNumber" text,"goodsVolume" text,"goodsWeight" text,"mafiGroupNum" text,"editStatus" text,"webStatus" text,"webDate" text, PRIMARY KEY("webId"));' 'CREATE TABLE if not exists retallyMessageRespList ("webId" text NOT NULL,"vtpId" text,"contactId" text,"aId" text,"reyVvyId" text,"vvyName" text,"retallyType" text,"retallyTypeName" text,"retallyOrigin" text,"retallyTerminus" text,"retallyStartTime" text,"retallyEndTime" text,"carType" text,"carTypeName" text,"goodsNumber" text,"goodsVolume" text,"goodsWeight" text,"mafiGroupNum" text,"mafiSize" text,"editStatus" text,"webStatus" text,"webDate" text, PRIMARY KEY("webId"));'
this.executeSql(sql) this.executeSql(sql)
}, },
// 创建工班信息其他 infoRespList // 创建工班信息其他 infoRespList

View File

@ -9,10 +9,10 @@
</view> </view>
<view class="navList"> <view class="navList">
<template v-for="(item,index) in navList"> <template v-for="(item,index) in navList">
<navigator :key="index" :url="item.url" open-type="redirect" class="item"> <navigator :key="index" :url="item.path" open-type="redirect" class="item" @click="changeNav(index)">
<view class="itemInfo" :class="item.type?'navActive':''"> <view class="itemInfo" :class="item.type?'navActive':''">
<image :src="item.imageUrl" mode="widthFix" v-if="item.type"></image> <image :src="item.icon" mode="widthFix" v-if="item.type"></image>
<image :src="item.imageUrl2" mode="widthFix" v-if="!item.type"></image> <image :src="item.smpId" mode="widthFix" v-if="!item.type"></image>
<text>{{item.name}}</text> <text>{{item.name}}</text>
</view> </view>
</navigator> </navigator>
@ -89,45 +89,46 @@
portName: "", portName: "",
activeIndex: 0, activeIndex: 0,
mediaType: "pad", mediaType: "pad",
navList: [{ navList: [
url: "/pages/index/index", // {
name: "装船指令", // url: "/pages/index/index",
type: false, // name: "",
imageUrl: "../../static/images/theme/zcIcon1-1.png", // type: false,
imageUrl2: "../../static/images/theme/zcIcon1-2.png" // imageUrl: "../../static/images/theme/zcIcon1-1.png",
}, // imageUrl2: "../../static/images/theme/zcIcon1-2.png"
{ // },
url: "/pages/discharge/index", // {
name: "卸船指令", // url: "/pages/discharge/index",
type: false, // name: "",
imageUrl: "../../static/images/theme/xcIcon1-1.png", // type: false,
imageUrl2: "../../static/images/theme/xcIcon1-2.png" // imageUrl: "../../static/images/theme/xcIcon1-1.png",
}, { // imageUrl2: "../../static/images/theme/xcIcon1-2.png"
url: "/pages/shipWork/index", // }, {
name: "船舶作业", // url: "/pages/shipWork/index",
type: false, // name: "",
imageUrl: "../../static/images/theme/cbIcon1-1.png", // type: false,
imageUrl2: "../../static/images/theme/cbIcon1-2.png" // imageUrl: "../../static/images/theme/cbIcon1-1.png",
}, { // imageUrl2: "../../static/images/theme/cbIcon1-2.png"
url: "/pages/quality/index", // }, {
name: "残损信息", // url: "/pages/quality/index",
type: false, // name: "",
imageUrl: "../../static/images/theme/csIcon1-1.png", // type: false,
imageUrl2: "../../static/images/theme/csIcon1-2.png" // imageUrl: "../../static/images/theme/csIcon1-1.png",
}, { // imageUrl2: "../../static/images/theme/csIcon1-2.png"
url: "/pages/monitor/index", // }, {
name: "场位管控", // url: "/pages/monitor/index",
type: false, // name: "",
imageUrl: "../../static/images/theme/jcIcon1-1.png", // type: false,
imageUrl2: "../../static/images/theme/jcIcon1-2.png" // imageUrl: "../../static/images/theme/jcIcon1-1.png",
}, // imageUrl2: "../../static/images/theme/jcIcon1-2.png"
{ // },
url: "/pages/receipt/index", // {
name: "进出口货物交接单", // url: "/pages/receipt/index",
type: false, // name: "",
imageUrl: "../../static/images/theme/jckIcon1-1.png", // type: false,
imageUrl2: "../../static/images/theme/jckIcon1-2.png" // imageUrl: "../../static/images/theme/jckIcon1-1.png",
} // imageUrl2: "../../static/images/theme/jckIcon1-2.png"
// }
], ],
lotusLoadingData: { lotusLoadingData: {
isShow: false //truefalse isShow: false //truefalse
@ -145,13 +146,26 @@
}, },
}, },
mounted() { mounted() {
this.navList = uni.getStorageSync('qxList')
this.navList.map(item => {
item.type = false
if(item.name == '装船指令') {
item.path = '/pages/index/index'
item.icon = '../../static/images/theme/zcIcon1-1.png'
item.smpId = '../../static/images/theme/zcIcon1-2.png'
}
return item
})
this.loginObj = uni.getStorageSync('loginObj') this.loginObj = uni.getStorageSync('loginObj')
this.initData() this.initData()
this.activeIndex = uni.getStorageSync("selectPortIndex") this.activeIndex = uni.getStorageSync("selectPortIndex")
this.navList[this.navIndex].type = true this.navList[uni.getStorageSync("navIndex")].type = true
this.getUser() this.getUser()
}, },
methods: { methods: {
changeNav(index) {
uni.setStorageSync("navIndex",index)
},
// //
getUser() { getUser() {
uni.request({ uni.request({

View File

@ -1156,6 +1156,14 @@
}, },
// //
distribute(type, a, item) { distribute(type, a, item) {
if(a == 'solo' && this.checkList.length == 0) {
uni.showModal({
title: '提示',
showCancel: false,
content: '请选择分指令!'
})
return
}
this.delValue = false this.delValue = false
this.distributeType = a this.distributeType = a
this.$refs.popup.open(type) this.$refs.popup.open(type)

View File

@ -996,6 +996,14 @@
}, },
// //
distribute(type, a, item) { distribute(type, a, item) {
if(a == 'solo' && this.checkList.length == 0) {
uni.showModal({
title: '提示',
showCancel: false,
content: '请选择分指令!'
})
return
}
this.distributeType = a this.distributeType = a
this.$refs.popup.open(type) this.$refs.popup.open(type)
if (a == 'again' || a == 'solo') { if (a == 'again' || a == 'solo') {

View File

@ -1358,6 +1358,14 @@
}, },
// //
distribute(type, a, item) { distribute(type, a, item) {
if(a == 'solo' && this.checkList.length == 0) {
uni.showModal({
title: '提示',
showCancel: false,
content: '请选择分指令!'
})
return
}
this.delValue = false this.delValue = false
this.distributeType = a this.distributeType = a
this.$refs.popup.open(type) this.$refs.popup.open(type)

View File

@ -203,9 +203,6 @@
uni.setStorageSync('selectPortIndex', this.activeIndex) uni.setStorageSync('selectPortIndex', this.activeIndex)
this.$refs.popup.close() this.$refs.popup.close()
this.qxdata() this.qxdata()
uni.navigateTo({
url: '/pages/index/index'
})
this.open() this.open()
this.createTable() this.createTable()
} else { } else {
@ -230,6 +227,10 @@
method: 'GET', // method: 'GET', //
success: (res) => { success: (res) => {
uni.setStorageSync('qxList', res.data.data); uni.setStorageSync('qxList', res.data.data);
uni.setStorageSync("navIndex",0)
uni.navigateTo({
url: '/pages/index/index'
})
}, },
}) })
}, },

View File

@ -245,7 +245,7 @@
}, },
dropTable() { dropTable() {
console.log('删除表'); console.log('删除表');
let sql = 'DROP TABLE workMessageRespInfoList' let sql = 'DROP TABLE workSignTable'
this.executeSql(sql) this.executeSql(sql)
}, },
dropData() { dropData() {
@ -629,7 +629,7 @@
`insert into retallyMessageRespList values('${v.reyId}','${this.vtpId}','${this.downloadData.shipmentShipManage.spmId}','${aId}', `insert into retallyMessageRespList values('${v.reyId}','${this.vtpId}','${this.downloadData.shipmentShipManage.spmId}','${aId}',
'${v.reyVvyId}','${v.reyVvyName}','${v.retallyType}','${v.retallyTypeName}','${v.retallyOrigin}','${v.retallyTerminus}', '${v.reyVvyId}','${v.reyVvyName}','${v.retallyType}','${v.retallyTypeName}','${v.retallyOrigin}','${v.retallyTerminus}',
'${v.retallyStartTime}','${v.retallyEndTime}','${v.carType}','${v.carTypeName}', '${v.retallyStartTime}','${v.retallyEndTime}','${v.carType}','${v.carTypeName}',
'${v.goodsNumber}','${v.goodsVolume}','${v.goodsWeight}','${v.mafiGroupNum}','${editStatus}','${webStatus}','${webDate}')` '${v.goodsNumber}','${v.goodsVolume}','${v.goodsWeight}','${v.mafiGroupNum}','${v.mafiSize}','${editStatus}','${webStatus}','${webDate}')`
this.executeSql(sql) this.executeSql(sql)
}) })
} }
@ -1168,6 +1168,7 @@
// //
executeSql1(tableName, id) { executeSql1(tableName, id) {
let sql = `select * from ${tableName} WHERE vtpId = '${id}';` let sql = `select * from ${tableName} WHERE vtpId = '${id}';`
// if(tableName == 'workSignTable') sql = `SELECT webId,vtpId,strftime('%Y-%m-%d', bizId) as bizId,signFile,bizType,sort,vvyId,webDate FROM workSignTable t WHERE vtpId='${id}';`
this.executeSql(sql, tableName) this.executeSql(sql, tableName)
}, },
toGo(item) { toGo(item) {

View File

@ -1085,7 +1085,9 @@ export default {
}, },
// //
executeSql5() { executeSql5() {
let sql = `select * from workSignTable WHERE bizId = '${this.dateId}';` let signId = this.dateId.split('-')
signId = signId[0] + signId[1] + signId[2]
let sql = `select * from workSignTable WHERE bizId = '${signId}';`
sqlite.executeSqlCeshi(sql).then((value) => { sqlite.executeSqlCeshi(sql).then((value) => {
// resolve // resolve
let zdyList = [] let zdyList = []

View File

@ -266,6 +266,10 @@
<p class="liTitle"><text class="required">*</text>组数</p> <p class="liTitle"><text class="required">*</text>组数</p>
<uni-number-box v-model="item.mafiGroupNum" :max="1000000000" /> <uni-number-box v-model="item.mafiGroupNum" :max="1000000000" />
</view> </view>
<view class="li" v-if="item.mfType">
<p class="liTitle"><text class="required">*</text>尺码</p>
<uni-number-box v-model="item.mafiSize" :max="1000000000" />
</view>
<view class="li"> <view class="li">
<p class="liTitle"><text class="required" v-if="!item.mfType">*</text></p> <p class="liTitle"><text class="required" v-if="!item.mfType">*</text></p>
<uni-number-box v-model="item.goodsVolume" :max="1000000000" /> <uni-number-box v-model="item.goodsVolume" :max="1000000000" />
@ -1731,7 +1735,7 @@
retallyStartTime = '${this.fcUlList[i].retallyStartTime}', retallyEndTime = '${this.fcUlList[i].retallyEndTime}', retallyStartTime = '${this.fcUlList[i].retallyStartTime}', retallyEndTime = '${this.fcUlList[i].retallyEndTime}',
carType = '${this.fcUlList[i].carType}',carTypeName = '${this.fcUlList[i].carTypeName}', carType = '${this.fcUlList[i].carType}',carTypeName = '${this.fcUlList[i].carTypeName}',
goodsNumber = '${this.fcUlList[i].goodsNumber}', goodsVolume = '${this.fcUlList[i].goodsVolume}', goodsNumber = '${this.fcUlList[i].goodsNumber}', goodsVolume = '${this.fcUlList[i].goodsVolume}',
goodsWeight = '${this.fcUlList[i].goodsWeight}',mafiGroupNum = '${this.fcUlList[i].mafiGroupNum}', webStatus = '${webStatus}', goodsWeight = '${this.fcUlList[i].goodsWeight}',mafiGroupNum = '${this.fcUlList[i].mafiGroupNum}', mafiSize = '${this.fcUlList[i].mafiSize}',webStatus = '${webStatus}',
webDate = '${webDate}' WHERE webId = '${this.fcUlList[i].webId}';` webDate = '${webDate}' WHERE webId = '${this.fcUlList[i].webId}';`
this.executeSql(sql) this.executeSql(sql)
} else { } else {
@ -1742,7 +1746,7 @@
'${this.fcUlList[i].retallyTypeName}','${this.fcUlList[i].retallyOrigin}','${this.fcUlList[i].retallyTerminus}', '${this.fcUlList[i].retallyTypeName}','${this.fcUlList[i].retallyOrigin}','${this.fcUlList[i].retallyTerminus}',
'${this.fcUlList[i].retallyStartTime}','${this.fcUlList[i].retallyEndTime}','${this.fcUlList[i].carType}', '${this.fcUlList[i].retallyStartTime}','${this.fcUlList[i].retallyEndTime}','${this.fcUlList[i].carType}',
'${this.fcUlList[i].carTypeName}','${this.fcUlList[i].goodsNumber}','${this.fcUlList[i].goodsVolume}', '${this.fcUlList[i].carTypeName}','${this.fcUlList[i].goodsNumber}','${this.fcUlList[i].goodsVolume}',
'${this.fcUlList[i].goodsWeight}','${this.fcUlList[i].mafiGroupNum}','${editStatus}','${webStatus}','${webDate}')` '${this.fcUlList[i].goodsWeight}','${this.fcUlList[i].mafiGroupNum}','${this.fcUlList[i].mafiSize}','${editStatus}','${webStatus}','${webDate}')`
this.executeSql(sql) this.executeSql(sql)
} }
} }
@ -1825,7 +1829,7 @@
'${this.fcUlList[i].retallyTypeName}','${this.fcUlList[i].retallyOrigin}','${this.fcUlList[i].retallyTerminus}', '${this.fcUlList[i].retallyTypeName}','${this.fcUlList[i].retallyOrigin}','${this.fcUlList[i].retallyTerminus}',
'${this.fcUlList[i].retallyStartTime}','${this.fcUlList[i].retallyEndTime}','${this.fcUlList[i].carType}', '${this.fcUlList[i].retallyStartTime}','${this.fcUlList[i].retallyEndTime}','${this.fcUlList[i].carType}',
'${this.fcUlList[i].carTypeName}','${this.fcUlList[i].goodsNumber}','${this.fcUlList[i].goodsVolume}', '${this.fcUlList[i].carTypeName}','${this.fcUlList[i].goodsNumber}','${this.fcUlList[i].goodsVolume}',
'${this.fcUlList[i].goodsWeight}','${this.fcUlList[i].mafiGroupNum}','${editStatus}','${webStatus}','${webDate}')` '${this.fcUlList[i].goodsWeight}','${this.fcUlList[i].mafiGroupNum}','${this.fcUlList[i].mafiSize}','${editStatus}','${webStatus}','${webDate}')`
this.executeSql(sql) this.executeSql(sql)
} }
// //

View File

@ -182,6 +182,11 @@
console.error(error); console.error(error);
}); });
} }
// -
if(that.nextUrl == 'mixSign') {
signId = signId.split('-')
signId = signId[0] + signId[1] + signId[2]
}
let sql = let sql =
`insert into workSignTable values('${webId}','${that.vtpId}','${signId}','${that.signImgUrl}','${that.signTable}','${that.signType}','${that.vvyId}','${webDate}')` `insert into workSignTable values('${webId}','${that.vtpId}','${signId}','${that.signImgUrl}','${that.signTable}','${that.signType}','${that.vvyId}','${webDate}')`
sqlite.executeSqlCeshi(sql).then(( sqlite.executeSqlCeshi(sql).then((

View File

@ -34,7 +34,7 @@
<text v-else>{{bthIdName}}</text> <text v-else>{{bthIdName}}</text>
</view> </view>
<view class="li"> <view class="li">
<p><text class="required" v-if="obj.state != 'look'">*</text></p> <p>系缆时</p>
<uni-datetime-picker v-model="attachTime" @change="changeLog1" v-if="obj.state != 'look'" <uni-datetime-picker v-model="attachTime" @change="changeLog1" v-if="obj.state != 'look'"
:border="false" /> :border="false" />
<text v-else>{{attachTime}}</text> <text v-else>{{attachTime}}</text>
@ -326,14 +326,6 @@
}) })
return return
} }
if (this.attachTime == "") {
uni.showModal({
title: '提示',
showCancel: false,
content: '请输入系揽时间!'
})
return
}
let date = new Date().getTime() let date = new Date().getTime()
let sauId = uuidv4() let sauId = uuidv4()
let webStatus = 0 let webStatus = 0