样式细节修改

dev2
Panzihang 2023-08-24 16:22:29 +08:00
parent 9e12cc0161
commit 5beb2b7f35
35 changed files with 714 additions and 706 deletions

16
App.vue
View File

@ -29,4 +29,20 @@
/deep/.superwei-combox {
background-color: #fff;
}
/deep/.uni-pagination__num-tag {
width: 30px !important;
}
/deep/uni-button:after {
border: none;
}
/deep/.uni-numbox__minus {
border-right: 1px solid #ccc;
}
/deep/.uni-numbox__plus {
border-left: 1px solid #ccc;
}
</style>

View File

@ -1,8 +1,8 @@
<template>
<view class="headInfo">
<uni-icons class="icon" type="back" size="21" @click="toBack" />
<uni-icons class="icon" type="back" size="24" @click="toBack" />
{{title}}
<uni-icons type="bottom" size="18" />
<uni-icons class="bottom" type="bottom" size="18" v-if="type" />
</view>
</template>
@ -13,12 +13,15 @@
title: {
type: String
},
type: {
type: Boolean,
default: () => false
}
},
methods: {
toBack() {
uni.navigateBack('-1')
}
}
}
</script>
@ -28,16 +31,21 @@
position: relative;
background-color: #fff;
border-bottom: 1px solid #999999;
height: 40px;
line-height: 40px;
font-size: 18px;
height: 68px;
line-height: 68px;
font-size: 20px;
color: #23262E;
text-align: center;
font-weight: bold;
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.10);
.icon {
position: absolute;
top: 3px;
left: 10px;
}
.bottom {
margin-left: 6px;
}
}
</style>

View File

@ -230,8 +230,11 @@
"van-uploader": "/wxcomponents/vant/dist/uploader/index",
"van-progress": "/wxcomponents/vant/dist/progress/index",
"van-stepper": "/wxcomponents/vant/dist/stepper/index"
},
"navigationStyle": "custom",
"app-plus": {
"titleNView": false
}
},
"uniIdRouter": {},
"condition": { //

View File

@ -102,7 +102,7 @@
<style lang="less" scoped>
.login {
height: calc(100vh - 44px);
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;

View File

@ -1,5 +1,6 @@
<template>
<view class="details">
<head-view title="船名/航次"></head-view>
<view class="container">
<view class="userInfo">
<p>填报人张星星</p>

View File

@ -1,5 +1,6 @@
<template>
<view class="edit">
<head-view title="船名/航次"></head-view>
<view class="container">
<uni-steps :options="stepList" :active="active" />
<view class="ul">

View File

@ -1,22 +1,23 @@
<template>
<view class="container">
<view class="sign-box">
<canvas class="mycanvas" :style="{width:width +'px',height:height +'px'}" canvas-id="mycanvas"
@touchstart="touchstart" @touchmove="touchmove" @touchend="touchend"></canvas>
<canvas canvas-id="camCacnvs" :style="{width:height +'px',height:width +'px'}" class="canvsborder"></canvas>
</view>
<view class="sigh-btns">
<van-button class="btn" type="default" @tap="handleCancel"></van-button>
<van-button class="btn" type="default" @tap="handleReset"></van-button>
<van-button class="btn" type="default" @tap="handleConfirm"></van-button>
<view class="sign">
<head-view title="场位监控签名"></head-view>
<view class="container">
<view class="sign-box">
<canvas class="mycanvas" :style="{width:width +'px',height:height +'px'}" canvas-id="mycanvas"
@touchstart="touchstart" @touchmove="touchmove" @touchend="touchend"></canvas>
<canvas canvas-id="camCacnvs" :style="{width:height +'px',height:width +'px'}"
class="canvsborder"></canvas>
</view>
<view class="sigh-btns">
<van-button class="btn" type="default" @tap="handleCancel"></van-button>
<van-button class="btn" type="default" @tap="handleReset"></van-button>
<van-button class="btn" type="default" @tap="handleConfirm"></van-button>
</view>
</view>
</view>
</template>
<script>
import utils from '@/common/util.js';
var x = 20;
var y = 20;
var tempPoint = []; //
@ -31,14 +32,12 @@
ctx: '', //
points: [], //,
width: 0,
height: 0
height: 0,
};
},
mounted() {},
onLoad(option) {
that = this;
console.log(option);
id = option.id;
type = option.type;
this.ctx = uni.createCanvasContext('mycanvas', this); //
@ -55,7 +54,6 @@
}
});
},
methods: {
//
touchstart: function(e) {
@ -140,22 +138,23 @@
canvasId: 'mycanvas',
success: function(res) {
let tempPath = res.tempFilePath;
console.log(tempPath)
console.log(tempPath, '压缩前')
//
utils.compress(tempPath, 500, 0.3).then(res => {
console.log(res, '压缩后');
}); //conpress; //conpress
const ctx = uni.createCanvasContext('camCacnvs', that);
ctx.translate(0, that.width);
ctx.rotate((-90 * Math.PI) / 180);
ctx.drawImage(tempPath, 0, 0, that.width, that.height);
ctx.draw();
setTimeout(() => {
//
uni.canvasToTempFilePath({
canvasId: 'camCacnvs',
success: function(res) {
//
let path = res.tempFilePath;
},
fail: err => {
console.log('fail', err);
@ -166,22 +165,22 @@
}, 200);
}
});
}
},
}
};
</script>
<style lang="scss" scoped>
.container {
height: calc(100vh - 44px);
height: calc(100vh - 68px);
padding-bottom: 30px;
background-color: #fff;
}
.sign-box {
width: 80%;
width: 100%;
height: 90%;
margin: auto;
margin-left: 10%;
display: flex;
flex-direction: column;
text-align: center;
@ -197,7 +196,7 @@
}
.btn {
margin: 30px 10px 0;
margin: 10px 10px 0;
}
/deep/.van-button {

View File

@ -40,7 +40,7 @@
export default {
data() {
return {
title: "船名-异常状况",
title: "船名 - 异常状况",
shipInfo: {},
infoList: []
}
@ -49,6 +49,7 @@
// this.shipInfo = uni.getStorageSync('shipInfo')
// this.infoList = uni.getStorageSync('addAbnormalArr')
this.executeSql1('abnormalConditionRespList')
this.executeSql1('shipInfoTable')
},
methods: {
//
@ -56,7 +57,12 @@
let sql = `select * from ${tableName}`
sqlite.executeSqlCeshi(sql).then((value) => {
// resolve
this.infoList = value
if (tableName == 'shipInfoTable') {
this.shipInfo = value[0]
this.title = `${this.shipInfo.vslCnname} - 异常状况`
} else {
this.infoList = value
}
}).catch((error) => {
// reject
console.error(error);
@ -86,12 +92,6 @@
url: `/pages/shipWork/abnormalAdd?params=${params}`
})
},
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/documentList'
})
return true;
},
}
}
</script>

View File

@ -1,5 +1,6 @@
<template>
<view class="abnormalAdd">
<head-view :title="title"></head-view>
<view class="container">
<view class="ul">
<view class="li">
@ -61,6 +62,7 @@
export default {
data() {
return {
title: "",
shipInfo: {},
obj: {},
abnormalRow: {},
@ -90,6 +92,13 @@
if (this.obj.state == 'edit' || this.obj.state == 'look') {
this.getRow();
}
if (this.obj.state == "edit") {
this.title = "编辑异常状况"
} else if (this.obj.state == "look") {
this.title = "查看异常状况"
} else {
this.title = "新增异常状况"
}
this.executeSql1('shipOption')
this.executeSql1("shipInfoTable")
},
@ -208,12 +217,6 @@
console.error(error);
});
},
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/abnormal'
})
return true;
},
}
}
</script>
@ -250,25 +253,6 @@
min-width: 85px;
text-align: right;
}
/deep/.uni-numbox {
border: 1px solid #ccc;
box-sizing: border-box;
}
/deep/.uni-numbox-btns {
border-right: 1px solid #ccc;
border-left: 1px solid #ccc;
padding: 0 14px;
box-sizing: border-box;
}
/deep/.uni-numbox__value {
width: 100px;
height: 35px;
line-height: 35px;
background-color: #fff !important;
}
}
}

View File

@ -1,5 +1,6 @@
<template>
<view class="brandDetails">
<head-view :title="title"></head-view>
<view class="container">
<view class="topBox">
<view class="searchBox">
@ -43,6 +44,7 @@
export default {
data() {
return {
title: "船名 - 品牌明细",
searchValue: "",
color: '#4D7BFE',
hasChoose: false,
@ -59,6 +61,7 @@
},
mounted() {
this.executeSql1('shipmentShipLoadPlansRespList')
this.executeSql1('shipInfoTable')
setTimeout(() => {
this.menuList = [{
'title': '按港口',
@ -185,10 +188,15 @@
let sql = `select * from ${tableName}`
sqlite.executeSqlCeshi(sql).then((value) => {
// resolve
this.allList = value
this.total = value.length
let newArr = this.getMapping(value, this.pageSize)
this.listInfo = newArr[this.current - 1];
if (tableName == "shipInfoTable") {
this.shipInfo = value[0]
this.title = `${this.shipInfo.vslCnname} - 品牌明细`
} else {
this.allList = value
this.total = value.length
let newArr = this.getMapping(value, this.pageSize)
this.listInfo = newArr[this.current - 1];
}
}).catch((error) => {
// reject
console.error(error);
@ -246,12 +254,6 @@
url: `/pages/shipWork/carDetails`
})
},
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/documentList'
})
return true;
},
}
}
</script>

View File

@ -1,5 +1,6 @@
<template>
<view class="carDetails">
<head-view :title="title"></head-view>
<view class="container">
<view class="ul">
<view class="li">船名{{testInfo.vslCnname}}</view>
@ -52,9 +53,11 @@
</template>
<script>
import sqlite from "../../common/sqlite.js"
export default {
data() {
return {
title: "船名 - 车型明细",
testInfo: {
vslCnname: "运程10",
vvyName: "HC97759809",
@ -95,10 +98,23 @@
}
},
mounted() {
this.barndRow = uni.getStorageSync('barndRow')
// this.barndRow = uni.getStorageSync('barndRow')
this.initData()
this.executeSql1('shipInfoTable')
},
methods: {
//
executeSql1(tableName) {
let sql = `select * from ${tableName}`
sqlite.executeSqlCeshi(sql).then((value) => {
// resolve
this.shipInfo = value[0]
this.title = `${this.shipInfo.vslCnname} - 车型明细`
}).catch((error) => {
// reject
console.error(error);
});
},
initData() {
this.testInfo.vinCodeDetails = [{
godId: "01",
@ -142,12 +158,6 @@
}
return newList
},
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/brandDetails'
})
return true;
},
},
}
</script>

View File

@ -1,6 +1,6 @@
<template>
<view class="documentList">
<head-view :title="title"></head-view>
<head-view :title="title" :type="true"></head-view>
<uni-notice-bar show-icon single :text="noticeText" />
<view class="container">
<view class="workBox">
@ -176,12 +176,6 @@
url: `/pages/shipWork/${url}`
})
},
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/index'
})
return true;
},
}
}
</script>
@ -190,6 +184,7 @@
.documentList {
.container {
padding: 30px 20px;
min-height: calc(100vh - 119px);
.workBox {
background-color: #fff;

View File

@ -9,71 +9,78 @@
v-model="shipName" @input="input_json" @select="select_json"></superwei-combox>
</view>
<button class="searchBtn" type="default" @click="search"></button>
<button class="searchBtn" type="default" @click="open"></button>
<button class="searchBtn" type="default" @click="open"></button>
<!-- <button class="searchBtn" type="default" @click="isOpen"></button> -->
<button class="searchBtn" type="default" @click="createTable"></button>
<button class="searchBtn" type="default" @click="dropTable"></button>
<!-- <button class="searchBtn" type="default" @click="createTable"></button>
<button class="searchBtn" type="default" @click="dropTable"></button> -->
<!-- <button class="searchBtn" type="default" @click="dropData"></button> -->
<!-- <button class="searchBtn" type="default" @click="executeSql1('shipOption')"></button> -->
</view>
<view class="itemList">
<template v-if="itemList.length > 0">
<view v-for="(item, index) in itemList" :key="index" class="item" @click="toGo(item)">
<view class="title">
<image src="../../static/images/ship.png" mode=""></image>
<view class="name">
{{item.shipName}}
<view v-for="(item, index) in itemList" :key="index" class="item">
<view @click="toGo(item)">
<view class="title">
<image src="../../static/images/ship.png" mode=""></image>
<view class="name">
{{item.shipName}}
</view>
</view>
</view>
<view class="row">
<view class="nitem">
进口航次: <text>{{item.inVvyName}}</text>
<view class="row">
<view class="nitem">
进口航次: <text>{{item.inVvyName}}</text>
</view>
<view class="nitem">
进口贸易类型: <text>{{item.inTradeTypeName}}</text>
</view>
</view>
<view class="nitem">
进口贸易类型: <text>{{item.inTradeTypeName}}</text>
<view class="row">
<view class="nitem">
出口航次: <text>{{item.outVvyName}}</text>
</view>
<view class="nitem">
出口贸易类型: <text>{{item.outTradeTypeName}}</text>
</view>
</view>
</view>
<view class="row">
<view class="nitem">
出口航次: <text>{{item.outVvyName}}</text>
<view class="row">
<view class="nitem">
计划泊位: <text>{{item.planBerthageName}}</text>
</view>
<view class="nitem">
实际泊位: <text>{{item.actualBerthageName}}</text>
</view>
</view>
<view class="nitem">
出口贸易类型: <text>{{item.outTradeTypeName}}</text>
<view class="statusBox statusBox1">
<view class="statusInfo" v-if="item.uploadTime != ''">
<text>已上传</text>
<text>{{item.uploadTime}}</text>
</view>
<view class="statusInfo notStatus" v-else>
<text>未上传</text>
</view>
</view>
</view>
<view class="row">
<view class="nitem">
计划泊位: <text>{{item.planBerthageName}}</text>
</view>
<view class="nitem">
实际泊位: <text>{{item.actualBerthageName}}</text>
<view class="statusBox statusBox2">
<view class="statusInfo" v-if="item.downloadTime != ''">
<text>已下载</text>
<text>{{item.downloadTime}}</text>
</view>
<view class="statusInfo notStatus" v-else>
<text>未下载</text>
</view>
</view>
</view>
<view class="footer">
<view class="fitem">
<button class="fitem1" type="default" @click.stop="download(item)">下载</button>
<button :class="{fitem1:item.uploadTime != ''}" type="default"
:disabled="item.uploadTime == ''" @click.stop="download(item)">下载</button>
<button class="fitem2" type="default" @click.stop="upload(item)">上传</button>
</view>
</view>
<view class="statusBox statusBox1">
<view class="statusInfo" v-if="item.uploadTime != ''">
<text>已上传</text>
<text>{{item.uploadTime}}</text>
</view>
<view class="statusInfo notStatus" v-else>
<text>未上传</text>
</view>
</view>
<view class="statusBox statusBox2">
<view class="statusInfo" v-if="item.downloadTime != ''">
<text>已下载</text>
<text>{{item.downloadTime}}</text>
</view>
<view class="statusInfo notStatus" v-else>
<text>未下载</text>
</view>
</view>
</view>
<uni-popup ref="popup" type="message">
<uni-popup-message :type="msgType" :message="popupText"
:duration="2000"></uni-popup-message>
</uni-popup>
</template>
<o-empty v-else height="70vh" bg="#f5f6fa" />
</view>
@ -98,6 +105,13 @@
export default {
data() {
return {
//
popupText: "",
//
errorText: "",
//
msgType: "",
//
pamValue: "",
// pamList: [],
@ -549,11 +563,20 @@
//
download(item) {
//
tableList.createAllTable()
this.zycxData()
this.cbzlData()
this.xlData()
this.shipDataInfo()
// tableList.createAllTable()
// this.zycxData()
// this.cbzlData()
// this.xlData()
// this.shipDataInfo()
if (item.uploadTime != '') {
this.popupText = "下载成功"
this.msgType = "success"
this.$refs.popup.open()
} else {
this.popupText = "下载失败"
this.msgType = "error"
this.$refs.popup.open()
}
// let ids = []
// if (item.inVvyId != null && item.outVvyId == null) {
// ids.push(item.inVvyId)
@ -785,12 +808,12 @@
.container {
background-color: #f5f6fa;
display: flex;
min-height: calc(100vh - 44px - 40px);
min-height: calc(100vh - 68px - 40px);
}
.content {
padding: 20px;
min-height: calc(100vh - 44px - 40px);
min-height: calc(100vh - 68px - 40px);
.form {
display: flex;
@ -880,8 +903,6 @@
padding-top: 10px;
.fitem {
display: flex;
}
@ -892,11 +913,17 @@
border-radius: 4px;
margin-right: 16px;
font-size: 14px;
border: 1px solid rgba(0, 0, 0, .2);
}
.fitem1 {
background: #EEEEEE;
color: #999999;
border: 1px solid #FC8300;
color: #FC8300;
background: #fff;
/deep/:after {
border: none;
}
}
.fitem2 {

View File

@ -41,7 +41,7 @@
export default {
data() {
return {
title: "船名-MAFI清单",
title: "船名 - MAFI清单",
shipInfo: {},
infoList: []
}
@ -50,6 +50,7 @@
// this.shipInfo = uni.getStorageSync('shipInfo')
// this.infoList = uni.getStorageSync('addMafiArr')
this.executeSql1('mafiListRespList')
this.executeSql1('shipInfoTable')
},
methods: {
//
@ -57,7 +58,12 @@
let sql = `select * from ${tableName}`
sqlite.executeSqlCeshi(sql).then((value) => {
// resolve
this.infoList = value
if (tableName == 'shipInfoTable') {
this.shipInfo = value[0]
this.title = `${this.shipInfo.vslCnname} - MAFI清单`
} else {
this.infoList = value
}
}).catch((error) => {
// reject
console.error(error);
@ -87,12 +93,6 @@
url: `/pages/shipWork/mafiAdd?params=${params}`
})
},
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/documentList'
})
return true;
},
}
}
</script>

View File

@ -1,5 +1,6 @@
<template>
<view class="mafiAdd">
<head-view :title="title"></head-view>
<view class="container">
<view class="ul">
<view class="li">
@ -72,6 +73,7 @@
export default {
data() {
return {
title: "",
shipInfo: {},
obj: {},
mafiRow: {},
@ -117,6 +119,13 @@
if (this.obj.state == 'edit' || this.obj.state == 'look') {
this.getRow();
}
if (this.obj.state == "edit") {
this.title = "编辑MAFI清单"
} else if (this.obj.state == "look") {
this.title = "查看MAFI清单"
} else {
this.title = "新增MAFI清单"
}
this.executeSql1('shipOption')
this.executeSql1("shipInfoTable")
},
@ -271,12 +280,6 @@
console.error(error);
});
},
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/mafi'
})
return true;
},
}
}
</script>
@ -316,8 +319,6 @@
}
/deep/.uni-numbox-btns {
border-right: 1px solid #ccc;
border-left: 1px solid #ccc;
padding: 0 14px;
box-sizing: border-box;
}

View File

@ -78,8 +78,8 @@
export default {
data() {
return {
title: "船名-杂项作业",
shipInfo: [],
title: "船只 - 杂项作业单",
shipInfo: {},
tabsList: ["人员信息", "工班信息"],
tabsType: 0, // 0 1
tabsIndex: 0,
@ -113,7 +113,8 @@
let sql = `select * from ${tableName}`
sqlite.executeSqlCeshi(sql).then((value) => {
if (tableName == 'shipInfoTable') {
this.shipInfo = value
this.shipInfo = value[0]
this.title = `${this.shipInfo.vslCnname} - 杂项作业单`
}
if (this.tabsType == 0) {
this.peopleInfo = value
@ -181,13 +182,6 @@
url: `/pages/shipWork/shiftDetails`
})
},
onBackPress(event) {
uni.setStorageSync('tabsType', 0);
uni.navigateTo({
url: '/pages/shipWork/documentList'
})
return true;
},
},
}
</script>
@ -202,6 +196,7 @@
.container {
padding: 30px 10px;
min-height: calc(100vh - 68px);
.signBox {
display: flex;

View File

@ -40,7 +40,7 @@
export default {
data() {
return {
title: "船名-船舶装卸通知书",
title: "船名 - 船舶装卸通知书",
shipInfo: {},
infoList: []
}
@ -49,6 +49,7 @@
// this.shipInfo = uni.getStorageSync('shipInfo')
// this.infoList = uni.getStorageSync('addNoticeArr')
this.executeSql1('shipmentLoadUnloadNoticeRespList')
this.executeSql1('shipInfoTable')
},
methods: {
//
@ -56,7 +57,12 @@
let sql = `select * from ${tableName}`
sqlite.executeSqlCeshi(sql).then((value) => {
// resolve
this.infoList = value
if (tableName == 'shipInfoTable') {
this.shipInfo = value[0]
this.title = `${this.shipInfo.vslCnname} - 船舶装卸通知书`
} else {
this.infoList = value
}
}).catch((error) => {
// reject
console.error(error);
@ -86,12 +92,6 @@
url: `/pages/shipWork/noticeAdd?params=${params}`
})
},
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/documentList'
})
return true;
},
}
}
</script>

View File

@ -1,5 +1,6 @@
<template>
<view class="noticeAdd">
<head-view :title="title"></head-view>
<view class="container">
<view class="ul">
<view class="li">
@ -50,6 +51,7 @@
export default {
data() {
return {
title: "",
shipInfo: {},
obj: {},
noticeRow: {},
@ -75,6 +77,13 @@
if (this.obj.state == 'edit' || this.obj.state == 'look') {
this.getRow();
}
if (this.obj.state == "edit") {
this.title = "编辑船舶装卸通知书"
} else if (this.obj.state == "look") {
this.title = "查看船舶装卸通知书"
} else {
this.title = "新增船舶装卸通知书"
}
this.executeSql1('shipOption')
this.executeSql1("shipInfoTable")
},
@ -189,12 +198,6 @@
console.error(error);
});
},
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/notice'
})
return true;
},
}
}
</script>
@ -227,25 +230,6 @@
min-width: 85px;
text-align: right;
}
/deep/.uni-numbox {
border: 1px solid #ccc;
box-sizing: border-box;
}
/deep/.uni-numbox-btns {
border-right: 1px solid #ccc;
border-left: 1px solid #ccc;
padding: 0 14px;
box-sizing: border-box;
}
/deep/.uni-numbox__value {
width: 100px;
height: 35px;
line-height: 35px;
background-color: #fff !important;
}
}
}

View File

@ -42,7 +42,7 @@
export default {
data() {
return {
title: "船名-质量意见征询",
title: "船名 - 质量意见征询",
shipInfo: {},
infoList: []
}
@ -51,6 +51,7 @@
// this.shipInfo = uni.getStorageSync('shipInfo')
// this.infoList = uni.getStorageSync('addOpinionArr')
this.executeSql1('shipmentQualityConsultationRespList')
this.executeSql1('shipInfoTable')
},
methods: {
//
@ -58,7 +59,12 @@
let sql = `select * from ${tableName}`
sqlite.executeSqlCeshi(sql).then((value) => {
// resolve
this.infoList = value
if (tableName == 'shipInfoTable') {
this.shipInfo = value[0]
this.title = `${this.shipInfo.vslCnname} - 质量意见征询`
} else {
this.infoList = value
}
}).catch((error) => {
// reject
console.error(error);
@ -88,12 +94,6 @@
url: `/pages/shipWork/opinionAdd?params=${params}`
})
},
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/documentList'
})
return true;
},
}
}
</script>

View File

@ -1,5 +1,6 @@
<template>
<view class="opinionAdd">
<head-view :title="title"></head-view>
<view class="container">
<view class="ul">
<view class="li">
@ -72,6 +73,7 @@
export default {
data() {
return {
title: "",
shipInfo: {},
obj: {},
opinionRow: {},
@ -109,6 +111,13 @@
if (this.obj.state == 'edit' || this.obj.state == 'look') {
this.getRow();
}
if (this.obj.state == "edit") {
this.title = "编辑船舶装卸通知书"
} else if (this.obj.state == "look") {
this.title = "查看船舶装卸通知书"
} else {
this.title = "新增船舶装卸通知书"
}
this.executeSql1('shipOption')
this.executeSql1("shipInfoTable")
},
@ -278,12 +287,6 @@
console.error(error);
});
},
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/opinion'
})
return true;
},
}
}
</script>
@ -323,8 +326,6 @@
}
/deep/.uni-numbox-btns {
border-right: 1px solid #ccc;
border-left: 1px solid #ccc;
padding: 0 14px;
box-sizing: border-box;
}

View File

@ -1,5 +1,6 @@
<template>
<view class="patrol">
<head-view :title="title"></head-view>
<view class="container">
<template v-if="infoList.length > 0">
<view class="ul">
@ -36,6 +37,7 @@
export default {
data() {
return {
title: "船只 - 安全巡检",
shipInfo: {},
infoList: []
}
@ -44,6 +46,7 @@
// this.shipInfo = uni.getStorageSync('shipInfo')
// this.infoList = uni.getStorageSync('addPatrolArr')
this.executeSql1('safetyInspectionRespList')
this.executeSql1('shipInfoTable')
},
methods: {
//
@ -51,7 +54,12 @@
let sql = `select * from ${tableName}`
sqlite.executeSqlCeshi(sql).then((value) => {
// resolve
this.infoList = value
if (tableName == 'shipInfoTable') {
this.shipInfo = value[0]
this.title = `${this.shipInfo.vslCnname} - 安全巡检`
} else {
this.infoList = value
}
}).catch((error) => {
// reject
console.error(error);
@ -70,12 +78,6 @@
url: `/pages/shipWork/patrolAdd?params=${params}`
})
},
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/documentList'
})
return true;
},
}
}
</script>

View File

@ -1,5 +1,6 @@
<template>
<view class="patrolAdd">
<head-view :title="title"></head-view>
<view class="container">
<view class="ul">
<view class="li">
@ -70,6 +71,7 @@
export default {
data() {
return {
title: "",
shipInfo: {},
obj: {},
patrolRow: {},
@ -100,7 +102,13 @@
if (this.obj.state == 'edit' || this.obj.state == 'look') {
this.getRow();
}
if (this.obj.state == "edit") {
this.title = "编辑安全巡检"
} else if (this.obj.state == "look") {
this.title = "查看安全巡检"
} else {
this.title = "新增安全巡检"
}
this.executeSql1('shipOption')
this.executeSql1("shipInfoTable")
this.executeSql2('safetyInspectionRespUrlList')
@ -257,12 +265,6 @@
console.error(error);
});
},
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/patrol'
})
return true;
},
}
}
</script>
@ -309,25 +311,6 @@
text-align: right;
}
/deep/.uni-numbox {
border: 1px solid #ccc;
box-sizing: border-box;
}
/deep/.uni-numbox-btns {
border-right: 1px solid #ccc;
border-left: 1px solid #ccc;
padding: 0 14px;
box-sizing: border-box;
}
/deep/.uni-numbox__value {
width: 100px;
height: 35px;
line-height: 35px;
background-color: #fff !important;
}
.picture {
/deep/.file-picker__box {
width: 120px !important;

View File

@ -1,371 +1,371 @@
<template>
<view class="peopleAdd">
<view class="container">
<view class="ul">
<view class="li">
<p>船名</p>
<text>{{shipInfo.vslCnname}}</text>
</view>
<view class="li">
<p><text class="required" v-if="obj.state != 'look'">*</text></p>
<uni-data-select v-model="hcValue" :localdata="hcList" @change="hcChange"
v-if="obj.state != 'look'"></uni-data-select>
<text v-else>{{peopleRow.vvyName}}</text>
</view>
<view class="li">
<p>进出口</p>
<text>{{shipInfo.importExportFlagName}}</text>
</view>
<view class="li">
<p>贸易类型</p>
<text>{{shipInfo.tradeTypeName}}</text>
</view>
<view class="li">
<p><text class="required" v-if="obj.state != 'look'">*</text></p>
<uni-data-select v-model="tqValue" :localdata="tqList" @change="tqChange"
v-if="obj.state != 'look'"></uni-data-select>
<text v-else>{{peopleRow.weatherType}}</text>
</view>
<view class="li">
<p><text class="required" v-if="obj.state != 'look'">*</text></p>
<uni-data-select v-model="bwValue" :localdata="bwList" @change="bwChange"
v-if="obj.state != 'look'"></uni-data-select>
<text v-else>{{peopleRow.bthIdName}}</text>
</view>
<view class="li">
<p><text class="required" v-if="obj.state != 'look'">*</text></p>
<uni-number-box @change="workChange" v-model="workValue" :max="1000000000"
v-if="obj.state != 'look'" />
<text v-else>{{peopleRow.workSuite}}</text>
</view>
<view class="li">
<p><text class="required" v-if="obj.state != 'look'">*</text></p>
<uni-number-box @change="shipChange" v-model="shipValue" :max="1000000000"
v-if="obj.state != 'look'" />
<text v-else>{{peopleRow.shipPerson}}</text>
</view>
<view class="li">
<p>作业时间</p>
<uni-datetime-picker v-model="datetime" type="datetimerange" rangeSeparator="-" @change="changeLog"
v-if="obj.state != 'look'" />
<text v-else>{{peopleRow.jobStartTime}} - {{peopleRow.jobEndTime}}</text>
</view>
<template>
<view class="peopleAdd">
<head-view :title="title"></head-view>
<view class="container">
<view class="ul">
<view class="li">
<p>船名</p>
<text>{{shipInfo.vslCnname}}</text>
</view>
<uni-popup ref="popup" type="dialog">
<uni-popup-dialog type="error" confirmText="确定" title="通知" content="是否删除此条数据"
@confirm="delConfirm"></uni-popup-dialog>
</uni-popup>
<view class="btnList">
<van-button type="default" @click="cancel"></van-button>
<van-button type="danger" v-if="obj.state == 'look'" @click="del"></van-button>
<van-button type="info" v-if="obj.state == 'add' || obj.state == 'edit'" @click="save"></van-button>
<van-button type="info" v-if="obj.state == 'look'" @click="toGo('edit')"></van-button>
<view class="li">
<p><text class="required" v-if="obj.state != 'look'">*</text></p>
<uni-data-select v-model="hcValue" :localdata="hcList" @change="hcChange"
v-if="obj.state != 'look'"></uni-data-select>
<text v-else>{{peopleRow.vvyName}}</text>
</view>
<view class="li">
<p>进出口</p>
<text>{{shipInfo.importExportFlagName}}</text>
</view>
<view class="li">
<p>贸易类型</p>
<text>{{shipInfo.tradeTypeName}}</text>
</view>
<view class="li">
<p><text class="required" v-if="obj.state != 'look'">*</text></p>
<uni-data-select v-model="tqValue" :localdata="tqList" @change="tqChange"
v-if="obj.state != 'look'"></uni-data-select>
<text v-else>{{peopleRow.weatherType}}</text>
</view>
<view class="li">
<p><text class="required" v-if="obj.state != 'look'">*</text></p>
<uni-data-select v-model="bwValue" :localdata="bwList" @change="bwChange"
v-if="obj.state != 'look'"></uni-data-select>
<text v-else>{{peopleRow.bthIdName}}</text>
</view>
<view class="li">
<p><text class="required" v-if="obj.state != 'look'">*</text></p>
<uni-number-box @change="workChange" v-model="workValue" :max="1000000000"
v-if="obj.state != 'look'" />
<text v-else>{{peopleRow.workSuite}}</text>
</view>
<view class="li">
<p><text class="required" v-if="obj.state != 'look'">*</text></p>
<uni-number-box @change="shipChange" v-model="shipValue" :max="1000000000"
v-if="obj.state != 'look'" />
<text v-else>{{peopleRow.shipPerson}}</text>
</view>
<view class="li">
<p>作业时间</p>
<uni-datetime-picker v-model="datetime" type="datetimerange" rangeSeparator="-" @change="changeLog"
v-if="obj.state != 'look'" />
<text v-else>{{peopleRow.jobStartTime}} - {{peopleRow.jobEndTime}}</text>
</view>
</view>
<uni-popup ref="popup" type="dialog">
<uni-popup-dialog type="error" confirmText="确定" title="通知" content="是否删除此条数据"
@confirm="delConfirm"></uni-popup-dialog>
</uni-popup>
<view class="btnList">
<van-button type="default" @click="cancel"></van-button>
<van-button type="danger" v-if="obj.state == 'look'" @click="del"></van-button>
<van-button type="info" v-if="obj.state == 'add' || obj.state == 'edit'" @click="save"></van-button>
<van-button type="info" v-if="obj.state == 'look'" @click="toGo('edit')"></van-button>
</view>
</view>
</template>
</view>
</template>
<script>
import sqlite from "../../common/sqlite.js"
import api from "../../common/api.js"
import {
v4 as uuidv4
} from 'uuid';
export default {
data() {
return {
shipInfo: {},
peopleRow: {},
peopleRowIndex: 0,
obj: {},
//
hcValue: "",
hcTextValue: "",
hcList: [],
//
bwValue: "",
bwTextValue: "",
bwList: [],
//
tqValue: "",
tqTextValue: "",
tqList: [{
value: "0",
text: "晴"
},
{
value: " 1",
text: "阴"
}, {
value: "2",
text: "雨"
}
],
//
workValue: 0,
//
shipValue: 0,
//
datetime: ['', ''],
startTime: "",
endTime: "",
//
optionData: [],
}
},
onLoad(options) {
if ('params' in options) {
// 使decodeURIComponent
this.obj = JSON.parse(decodeURIComponent(options.params))
}
},
mounted() {
if (this.obj.state == "edit" || this.obj.state == "look") {
this.getRow()
}
this.executeSql1('shipOption')
this.executeSql1("shipInfoTable")
},
methods: {
//
executeSql1(tableName) {
let sql = `select * from ${tableName}`
sqlite.executeSqlCeshi(sql).then((value) => {
// resolve
if (tableName == 'shipOption') {
this.optionData = value
this.getShip()
} else if (tableName == 'shipInfoTable') {
this.shipInfo = value[0]
}
}).catch((error) => {
// reject
console.error(error);
});
},
//
getShip() {
// this.shipInfo = uni.getStorageSync('shipInfo')
//
let hcOption = []
this.optionData.forEach((v, index) => {
if (v.dictionariesName == 'vvyList') {
hcOption.push(v)
}
})
hcOption.forEach((v, index) => {
this.hcList.push({
text: v.ptrDesc,
value: v.ptrCode
})
})
//
let bwOption = []
this.optionData.forEach((v, index) => {
if (v.dictionariesName == 'bthList') {
bwOption.push(v)
}
})
bwOption.forEach((v, index) => {
this.bwList.push({
text: v.ptrDesc,
value: v.ptrCode
})
})
},
//
getRow() {
this.peopleRow = uni.getStorageSync('peopleRow');
this.hcValue = this.peopleRow.vvyId
this.hcTextValue = this.peopleRow.vvyName
this.tqValue = this.peopleRow.weatherId
this.tqTextValue = this.peopleRow.weatherType
this.bwValue = this.peopleRow.bthId
this.bwTextValue = this.peopleRow.bthIdName
this.workValue = this.peopleRow.workSuite
this.shipValue = this.peopleRow.shipPerson
this.datetime = [this.peopleRow.jobStartTime, this.peopleRow.jobEndTime]
this.startTime = this.peopleRow.jobStartTime
this.endTime = this.peopleRow.jobEndTime
},
//
hcChange(e) {
this.hcValue = e;
this.hcList.forEach(v => {
if (v.value == e) {
this.hcTextValue = v.text
}
})
},
//
bwChange(e) {
this.bwValue = e;
this.bwList.forEach(v => {
if (v.value == e) {
this.bwTextValue = v.text
}
})
},
//
tqChange(e) {
this.tqValue = e;
this.tqList.forEach(v => {
if (v.value == e) {
this.tqTextValue = v.text
}
})
},
<script>
import sqlite from "../../common/sqlite.js"
import api from "../../common/api.js"
import {
v4 as uuidv4
} from 'uuid';
export default {
data() {
return {
title: "",
shipInfo: {},
peopleRow: {},
peopleRowIndex: 0,
obj: {},
//
hcValue: "",
hcTextValue: "",
hcList: [],
//
bwValue: "",
bwTextValue: "",
bwList: [],
//
tqValue: "",
tqTextValue: "",
tqList: [{
value: "0",
text: "晴"
},
{
value: " 1",
text: "阴"
}, {
value: "2",
text: "雨"
}
],
//
workChange(val) {
this.workValue = val;
},
workValue: 0,
//
shipChange(val) {
this.shipValue = val;
},
shipValue: 0,
//
changeLog(e) {
this.datetime = e;
this.startTime = this.datetime[0]
this.endTime = this.datetime[1]
},
//
cancel() {
uni.setStorageSync('tabsType', 0);
uni.navigateTo({
url: '/pages/shipWork/mixWork'
datetime: ['', ''],
startTime: "",
endTime: "",
//
optionData: [],
}
},
onLoad(options) {
if ('params' in options) {
// 使decodeURIComponent
this.obj = JSON.parse(decodeURIComponent(options.params))
}
},
mounted() {
if (this.obj.state == "edit" || this.obj.state == "look") {
this.getRow()
}
if (this.obj.state == "edit") {
this.title = "编辑人员信息"
} else if (this.obj.state == "look") {
this.title = "查看人员信息"
} else {
this.title = "新增人员信息"
}
this.executeSql1('shipOption')
this.executeSql1("shipInfoTable")
},
methods: {
//
executeSql1(tableName) {
let sql = `select * from ${tableName}`
sqlite.executeSqlCeshi(sql).then((value) => {
// resolve
if (tableName == 'shipOption') {
this.optionData = value
this.getShip()
} else if (tableName == 'shipInfoTable') {
this.shipInfo = value[0]
}
}).catch((error) => {
// reject
console.error(error);
});
},
//
getShip() {
// this.shipInfo = uni.getStorageSync('shipInfo')
//
let hcOption = []
this.optionData.forEach((v, index) => {
if (v.dictionariesName == 'vvyList') {
hcOption.push(v)
}
})
hcOption.forEach((v, index) => {
this.hcList.push({
text: v.ptrDesc,
value: v.ptrCode
})
},
//
delConfirm() {
let sql = `DELETE FROM messageRespList WHERE webId = '${this.peopleRow.webId}';`
})
//
let bwOption = []
this.optionData.forEach((v, index) => {
if (v.dictionariesName == 'bthList') {
bwOption.push(v)
}
})
bwOption.forEach((v, index) => {
this.bwList.push({
text: v.ptrDesc,
value: v.ptrCode
})
})
},
//
getRow() {
this.peopleRow = uni.getStorageSync('peopleRow');
this.hcValue = this.peopleRow.vvyId
this.hcTextValue = this.peopleRow.vvyName
this.tqValue = this.peopleRow.weatherId
this.tqTextValue = this.peopleRow.weatherType
this.bwValue = this.peopleRow.bthId
this.bwTextValue = this.peopleRow.bthIdName
this.workValue = this.peopleRow.workSuite
this.shipValue = this.peopleRow.shipPerson
this.datetime = [this.peopleRow.jobStartTime, this.peopleRow.jobEndTime]
this.startTime = this.peopleRow.jobStartTime
this.endTime = this.peopleRow.jobEndTime
},
//
hcChange(e) {
this.hcValue = e;
this.hcList.forEach(v => {
if (v.value == e) {
this.hcTextValue = v.text
}
})
},
//
bwChange(e) {
this.bwValue = e;
this.bwList.forEach(v => {
if (v.value == e) {
this.bwTextValue = v.text
}
})
},
//
tqChange(e) {
this.tqValue = e;
this.tqList.forEach(v => {
if (v.value == e) {
this.tqTextValue = v.text
}
})
},
//
workChange(val) {
this.workValue = val;
},
//
shipChange(val) {
this.shipValue = val;
},
//
changeLog(e) {
this.datetime = e;
this.startTime = this.datetime[0]
this.endTime = this.datetime[1]
},
//
cancel() {
uni.setStorageSync('tabsType', 0);
uni.navigateTo({
url: '/pages/shipWork/mixWork'
})
},
//
delConfirm() {
let sql = `DELETE FROM messageRespList WHERE webId = '${this.peopleRow.webId}';`
this.executeSql(sql)
uni.setStorageSync('tabsType', 0);
uni.navigateTo({
url: '/pages/shipWork/mixWork'
})
},
//
del() {
this.$refs.popup.open()
},
//
save() {
let date = new Date().getTime()
let webId = uuidv4()
let webStatus = 0
let webDate = api.getDate(date)
if (this.obj.state == "edit") {
let sql =
`UPDATE messageRespList SET bthId = '${this.bwValue}',bthIdName = '${this.bwTextValue}',
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}';`
this.executeSql(sql)
uni.setStorageSync('tabsType', 0);
uni.navigateTo({
url: '/pages/shipWork/mixWork'
})
},
//
del() {
this.$refs.popup.open()
},
//
save() {
let date = new Date().getTime()
let webId = uuidv4()
let webStatus = 0
let webDate = api.getDate(date)
if (this.obj.state == "edit") {
let sql =
`UPDATE messageRespList SET bthId = '${this.bwValue}',bthIdName = '${this.bwTextValue}',
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}';`
this.executeSql(sql)
} else if (this.obj.state == "add") {
let sql = `insert into messageRespList values('${webId}','${this.bwValue}','${this.bwTextValue}',
} else if (this.obj.state == "add") {
let sql = `insert into messageRespList values('${webId}','${this.bwValue}','${this.bwTextValue}',
'${this.startTime}','${this.endTime}','${this.shipValue}','${this.hcValue}','${this.hcTextValue}','${this.tqValue}',
'${this.tqTextValue}','${this.workValue}','${this.shipInfo.tradeTypeName}',
'${this.shipInfo.importExportFlagName}','${this.shipInfo.spmName}',
'${webStatus}','${webDate}')`
this.executeSql(sql)
}
uni.setStorageSync('tabsType', 0);
uni.navigateTo({
url: '/pages/shipWork/mixWork'
})
},
//
toGo(state) {
this.obj.state = state;
const params = encodeURIComponent(JSON.stringify(this.obj));
uni.navigateTo({
url: `/pages/shipWork/peopleAdd?params=${params}`
})
},
executeSql(sql) {
sqlite.executeSqlCeshi(sql).then((value) => {
// resolve
console.log(value);
}).catch((error) => {
// reject
console.error(error);
});
},
onBackPress(event) {
uni.setStorageSync('tabsType', 0);
uni.navigateTo({
url: '/pages/shipWork/mixWork'
})
return true;
},
}
this.executeSql(sql)
}
uni.setStorageSync('tabsType', 0);
uni.navigateTo({
url: '/pages/shipWork/mixWork'
})
},
//
toGo(state) {
this.obj.state = state;
const params = encodeURIComponent(JSON.stringify(this.obj));
uni.navigateTo({
url: `/pages/shipWork/peopleAdd?params=${params}`
})
},
executeSql(sql) {
sqlite.executeSqlCeshi(sql).then((value) => {
// resolve
console.log(value);
}).catch((error) => {
// reject
console.error(error);
});
},
}
</script>
}
</script>
<style lang="less" scoped>
.peopleAdd {
.container {
padding: 30px 20px;
background-color: #fff;
<style lang="less" scoped>
.peopleAdd {
.container {
padding: 30px 20px;
background-color: #fff;
.ul {
.ul {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
.li {
width: 44%;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
padding: 10px 20px;
line-height: 35px;
margin-bottom: 20px;
.li {
width: 44%;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
display: flex;
padding: 10px 20px;
p {
min-width: 85px;
text-align: right;
}
.required {
color: red;
margin-right: 5px;
}
/deep/.uni-numbox {
border: 1px solid #ccc;
box-sizing: border-box;
}
/deep/.uni-numbox-btns {
padding: 0 14px;
box-sizing: border-box;
}
/deep/.uni-numbox__value {
width: 100px;
height: 35px;
line-height: 35px;
margin-bottom: 20px;
p {
min-width: 85px;
text-align: right;
}
.required {
color: red;
margin-right: 5px;
}
/deep/.uni-numbox {
border: 1px solid #ccc;
box-sizing: border-box;
}
/deep/.uni-numbox-btns {
border-right: 1px solid #ccc;
border-left: 1px solid #ccc;
padding: 0 14px;
box-sizing: border-box;
}
/deep/.uni-numbox__value {
width: 100px;
height: 35px;
line-height: 35px;
background-color: #fff !important;
}
}
}
.btnList {
display: flex;
justify-content: center;
/deep/ .van-button {
margin: 30px 20px;
width: 120px;
height: 50px;
background-color: #fff !important;
}
}
}
.btnList {
display: flex;
justify-content: center;
/deep/ .van-button {
margin: 30px 20px;
width: 120px;
height: 50px;
}
}
}
</style>
}
</style>

View File

@ -1,5 +1,6 @@
<template>
<view class="shiftAdd">
<head-view :title="title"></head-view>
<view class="container">
<uni-steps :options="stepList" :active="active" />
<view class="line"></view>
@ -203,6 +204,7 @@
export default {
data() {
return {
title: "",
shipInfo: {},
obj: {},
dataInfo: {},
@ -300,12 +302,14 @@
this.executeSql2('shipOption')
this.executeSql2('shipInfoTable')
if (this.obj.state == 'edit') {
this.title = "编辑工班信息"
this.dataInfo = uni.getStorageSync('shiftRow')
this.contactId = this.dataInfo[0].contactId
this.aId = this.dataInfo[0].aId
this.ulList1 = []
this.editData();
} else if (this.obj.state == 'add') {
this.title = "新增工班信息"
this.ulList1 = [{
gbValue: "",
gbTextValue: "",
@ -899,13 +903,6 @@
console.error(error);
});
},
onBackPress(event) {
uni.setStorageSync('tabsType', 1);
uni.navigateTo({
url: '/pages/shipWork/mixWork'
})
return true;
},
}
}
</script>
@ -1000,8 +997,6 @@
}
/deep/.uni-numbox-btns {
border-right: 1px solid #ccc;
border-left: 1px solid #ccc;
padding: 0 14px;
box-sizing: border-box;
}

View File

@ -1,5 +1,6 @@
<template>
<view class="shiftDetails">
<head-view :title="title"></head-view>
<view class="container">
<custom-tabs type="c1" :value="tabsValue" @change="changeIndex">
<custom-tab-pane label="工班信息" name="c1_1">
@ -169,6 +170,7 @@
export default {
data() {
return {
title: "查看工班信息",
tabsValue: 0,
dataInfo: [{
spmName: "",
@ -256,9 +258,9 @@
//
executeSql(tableName) {
let sql = ""
if(tableName == "workMessageRespInfoList"){
if (tableName == "workMessageRespInfoList") {
sql = `DELETE FROM ${tableName} WHERE contactId = '${this.contactId}';`
}else{
} else {
sql = `DELETE FROM ${tableName} WHERE aId = '${this.aId}';`
}
sqlite.executeSqlCeshi(sql).then((value) => {
@ -302,13 +304,6 @@
url: `/pages/shipWork/shiftAdd?params=${params}`
})
},
onBackPress(event) {
uni.setStorageSync('tabsType', 1);
uni.navigateTo({
url: '/pages/shipWork/mixWork'
})
return true;
},
}
}
</script>

View File

@ -1,5 +1,6 @@
<template>
<view class="shipInfo">
<head-view :title="title"></head-view>
<view class="container">
<view class="ul">
<view class="li">船名{{shipInfo.vslCnname}}</view>
@ -28,6 +29,7 @@
export default {
data() {
return {
title: "船名 - 船舶资料",
shipInfo: {},
}
},
@ -42,18 +44,12 @@
sqlite.executeSqlCeshi(sql).then((value) => {
// resolve
this.shipInfo = value[0]
console.log(this.shipInfo)
this.title = `${this.shipInfo.vslCnname} - 船舶资料`
}).catch((error) => {
// reject
console.error(error);
});
},
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/documentList'
})
return true;
},
}
}
</script>

View File

@ -1,5 +1,6 @@
<template>
<view class="shipPlan">
<head-view :title="title"></head-view>
<view class="container">
<p class="title">基本信息</p>
<view class="ul">
@ -40,22 +41,30 @@
</template>
<script>
import sqlite from "../../common/sqlite.js"
export default {
data() {
return {
title: "船名 - 船舶计划",
shipInfo: {},
}
},
mounted() {
this.shipInfo = uni.getStorageSync('shipInfo')
console.log(this.shipInfo)
// this.shipInfo = uni.getStorageSync('shipInfo')
this.executeSql1('shipInfoTable')
},
methods: {
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/documentList'
})
return true;
//
executeSql1(tableName) {
let sql = `select * from ${tableName}`
sqlite.executeSqlCeshi(sql).then((value) => {
// resolve
this.shipInfo = value[0]
this.title = `${this.shipInfo.vslCnname} - 船舶计划`
}).catch((error) => {
// reject
console.error(error);
});
},
}
}

View File

@ -1,20 +1,20 @@
<template>
<view class="container">
<view class="sign-box">
<canvas class="mycanvas" :style="{width:width +'px',height:height +'px'}" canvas-id="mycanvas"
@touchstart="touchstart" @touchmove="touchmove" @touchend="touchend"></canvas>
<canvas canvas-id="camCacnvs" :style="{width:height +'px',height:width +'px'}" class="canvsborder"></canvas>
</view>
<view class="sigh-btns">
<van-button class="btn" type="default" @tap="handleCancel"></van-button>
<van-button class="btn" type="default" @tap="handleReset"></van-button>
<van-button class="btn" type="default" @tap="handleConfirm"></van-button>
<view class="sign">
<head-view title="单证签名"></head-view>
<view class="container">
<view class="sign-box">
<canvas class="mycanvas" :style="{width:width +'px',height:height +'px'}" canvas-id="mycanvas"
@touchstart="touchstart" @touchmove="touchmove" @touchend="touchend"></canvas>
<canvas canvas-id="camCacnvs" :style="{width:height +'px',height:width +'px'}"
class="canvsborder"></canvas>
</view>
<view class="sigh-btns">
<van-button class="btn" type="default" @tap="handleCancel"></van-button>
<van-button class="btn" type="default" @tap="handleReset"></van-button>
<van-button class="btn" type="default" @tap="handleConfirm"></van-button>
</view>
</view>
</view>
</template>
<script>
import utils from '@/common/util.js';
@ -39,7 +39,6 @@
mounted() {},
onLoad(option) {
this.sginType = JSON.parse(decodeURIComponent(option.dataType)).signType
console.log(this.sginType)
that = this;
id = option.id;
type = option.type;
@ -57,7 +56,6 @@
}
});
},
methods: {
//
touchstart: function(e) {
@ -176,15 +174,15 @@
<style lang="scss" scoped>
.container {
height: calc(100vh - 44px);
height: calc(100vh - 68px);
padding-bottom: 30px;
background-color: #fff;
}
.sign-box {
width: 80%;
width: 100%;
height: 90%;
margin: auto;
margin-left: 10%;
display: flex;
flex-direction: column;
text-align: center;
@ -200,7 +198,7 @@
}
.btn {
margin: 30px 10px 0;
margin: 10px 10px 0;
}
/deep/.van-button {

View File

@ -41,7 +41,7 @@
export default {
data() {
return {
title: "船名-供给",
title: "船只 - 供给",
shipInfo: {},
infoList: []
}
@ -50,6 +50,7 @@
// this.shipInfo = uni.getStorageSync('shipInfo')
// this.infoList = uni.getStorageSync('addSupplyArr')
this.executeSql1('shipmentShipSupplyRespList')
this.executeSql1('shipInfoTable')
},
methods: {
//
@ -57,7 +58,12 @@
let sql = `select * from ${tableName}`
sqlite.executeSqlCeshi(sql).then((value) => {
// resolve
this.infoList = value
if (tableName == 'shipInfoTable') {
this.shipInfo = value[0]
this.title = `${this.shipInfo.vslCnname} - 供给`
} else {
this.infoList = value
}
}).catch((error) => {
// reject
console.error(error);
@ -87,12 +93,6 @@
url: `/pages/shipWork/supplyAdd?params=${params}`
})
},
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/documentList'
})
return true;
},
}
}
</script>

View File

@ -1,5 +1,6 @@
<template>
<view class="supplyAdd">
<head-view :title="title"></head-view>
<view class="container">
<view class="ul">
<view class="li">
@ -67,6 +68,7 @@
export default {
data() {
return {
title: "",
shipInfo: {},
obj: {},
supplyRow: {},
@ -101,6 +103,13 @@
if (this.obj.state == "edit" || this.obj.state == "look") {
this.getRow()
}
if (this.obj.state == "edit") {
this.title = "编辑供给"
} else if (this.obj.state == "look") {
this.title = "查看供给"
} else {
this.title = "新增供给"
}
this.executeSql1('shipOption')
this.executeSql1("shipInfoTable")
},
@ -270,12 +279,6 @@
console.error(error);
});
},
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/supply'
})
return true;
},
}
}
</script>
@ -315,8 +318,6 @@
}
/deep/.uni-numbox-btns {
border-right: 1px solid #ccc;
border-left: 1px solid #ccc;
padding: 0 14px;
box-sizing: border-box;
}

View File

@ -1,5 +1,6 @@
<template>
<view class="untieAdd">
<head-view :title="title"></head-view>
<view class="container">
<view class="ul">
<view class="li">
@ -75,6 +76,7 @@
export default {
data() {
return {
title: "",
shipInfo: {},
obj: {},
untieRow: {},
@ -112,6 +114,13 @@
if (this.obj.state == "edit" || this.obj.state == "look") {
this.getRow()
}
if (this.obj.state == "edit") {
this.title = "编辑系解缆"
} else if (this.obj.state == "look") {
this.title = "查看系解缆"
} else {
this.title = "新增系解缆"
}
this.executeSql1('shipOption')
this.executeSql1("shipInfoTable")
},
@ -270,12 +279,6 @@
console.error(error);
});
},
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/untieCord'
})
return true;
},
}
}
</script>
@ -315,8 +318,6 @@
}
/deep/.uni-numbox-btns {
border-right: 1px solid #ccc;
border-left: 1px solid #ccc;
padding: 0 14px;
box-sizing: border-box;
}

View File

@ -42,7 +42,7 @@
export default {
data() {
return {
title: "船名-系解缆",
title: "船只 - 系解缆",
shipInfo: {},
infoList: []
}
@ -51,6 +51,7 @@
// this.shipInfo = uni.getStorageSync('shipInfo')
// this.infoList = uni.getStorageSync('addUntieArr')
this.executeSql1('attachUnmoorRespList')
this.executeSql1('shipInfoTable')
},
methods: {
//
@ -58,7 +59,12 @@
let sql = `select * from ${tableName}`
sqlite.executeSqlCeshi(sql).then((value) => {
// resolve
this.infoList = value
if (tableName == 'shipInfoTable') {
this.shipInfo = value[0]
this.title = `${this.shipInfo.vslCnname} - 系解缆`
} else {
this.infoList = value
}
}).catch((error) => {
// reject
console.error(error);
@ -88,12 +94,6 @@
url: `/pages/shipWork/untieAdd?params=${params}`
})
},
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/documentList'
})
return true;
},
}
}
</script>

View File

@ -40,7 +40,7 @@
export default {
data() {
return {
title: "船名-指导员作业布置",
title: "船只 - 指导员作业布置",
shipInfo: {},
infoList: []
}
@ -49,6 +49,7 @@
// this.shipInfo = uni.getStorageSync('shipInfo')
// this.infoList = uni.getStorageSync('addAssignArr')
this.executeSql1('shipmentAdviserLayoutRespList')
this.executeSql1('shipInfoTable')
},
methods: {
//
@ -56,7 +57,12 @@
let sql = `select * from ${tableName}`
sqlite.executeSqlCeshi(sql).then((value) => {
// resolve
this.infoList = value
if (tableName == 'shipInfoTable') {
this.shipInfo = value[0]
this.title = `${this.shipInfo.vslCnname} - 指导员作业布置`
} else {
this.infoList = value
}
}).catch((error) => {
// reject
console.error(error);
@ -86,12 +92,6 @@
url: `/pages/shipWork/workAssignAdd?params=${params}`
})
},
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/documentList'
})
return true;
},
}
}
</script>

View File

@ -1,5 +1,6 @@
<template>
<view class="workAssignAdd">
<head-view :title="title"></head-view>
<view class="container">
<view class="ul">
<view class="li">
@ -83,6 +84,7 @@
export default {
data() {
return {
title: "",
shipInfo: {},
obj: {},
assignRow: {},
@ -128,6 +130,13 @@
if (this.obj.state == 'edit' || this.obj.state == 'look') {
this.getRow();
}
if (this.obj.state == "edit") {
this.title = "编辑指导员作业布置"
} else if (this.obj.state == "look") {
this.title = "查看指导员作业布置"
} else {
this.title = "新增指导员作业布置"
}
this.executeSql1('shipOption')
this.executeSql1("shipInfoTable")
},
@ -328,12 +337,6 @@
console.error(error);
});
},
onBackPress(event) {
uni.navigateTo({
url: '/pages/shipWork/workAssign'
})
return true;
},
}
}
</script>
@ -373,8 +376,6 @@
}
/deep/.uni-numbox-btns {
border-right: 1px solid #ccc;
border-left: 1px solid #ccc;
padding: 0 14px;
box-sizing: border-box;
}

View File

@ -1,5 +1,5 @@
.container {
min-height: calc(100vh - 44px);
min-height: calc(100vh - 68px);
background-color: #f5f6fa;
}