pad-app/pages/shipWork/index.vue

955 lines
26 KiB
Vue
Raw Normal View History

2023-07-05 10:56:11 +08:00
<template>
<view class="app">
2023-08-18 17:28:11 +08:00
<head-info :navIndex="2"></head-info>
2023-07-05 10:56:11 +08:00
<view class="container">
<view class="content">
<view class="form">
2023-07-13 16:46:06 +08:00
<view class="select">
2023-07-17 17:10:05 +08:00
<superwei-combox :candidates="shipList" :isJSON="true" keyName="spmName" placeholder="请选择船名航次"
v-model="shipName" @input="input_json" @select="select_json"></superwei-combox>
2023-07-06 17:08:59 +08:00
</view>
2023-07-25 13:18:37 +08:00
<button class="searchBtn" type="default" @click="search"></button>
2023-08-01 09:32:45 +08:00
<button class="searchBtn" type="default" @click="open"></button>
2023-08-18 17:28:11 +08:00
<!-- <button class="searchBtn" type="default" @click="isOpen"></button>
2023-08-01 09:32:45 +08:00
<button class="searchBtn" type="default" @click="createTable"></button>
<button class="searchBtn" type="default" @click="dropTable"></button>
<button class="searchBtn" type="default" @click="dropData"></button>
2023-08-18 17:28:11 +08:00
<button class="searchBtn" type="default" @click="executeSql1('shipInfoTable')"></button> -->
2023-07-05 10:56:11 +08:00
</view>
<view class="itemList">
2023-07-25 13:18:37 +08:00
<template v-if="itemList.length > 0">
2023-07-17 17:10:05 +08:00
<view v-for="(item, index) in itemList" :key="index" class="item" @click="toGo(item)">
<view class="title">
2023-08-18 17:28:11 +08:00
<image src="../../static/images/ship.png" mode=""></image>
2023-07-17 17:10:05 +08:00
<view class="name">
2023-08-18 17:28:11 +08:00
{{item.shipName}}
2023-07-06 17:08:59 +08:00
</view>
</view>
2023-08-18 17:28:11 +08:00
<view class="row">
<view class="nitem">
进口航次: <text>{{item.inVvyName}}</text>
2023-07-06 17:08:59 +08:00
</view>
2023-08-18 17:28:11 +08:00
<view class="nitem">
进口贸易类型: <text>{{item.inTradeTypeName}}</text>
2023-07-06 17:08:59 +08:00
</view>
2023-08-18 17:28:11 +08:00
</view>
<view class="row">
<view class="nitem">
出口航次: <text>{{item.outVvyName}}</text>
</view>
<view class="nitem">
出口贸易类型: <text>{{item.outTradeTypeName}}</text>
</view>
</view>
<view class="row">
<view class="nitem">
计划泊位: <text>{{item.planBerthageName}}</text>
</view>
<view class="nitem">
实际泊位: <text>{{item.actualBerthageName}}</text>
2023-07-06 17:08:59 +08:00
</view>
2023-08-18 17:28:11 +08:00
</view>
<view class="footer">
<view class="fitem">
<button class="fitem1" type="default" @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>
2023-07-05 10:56:11 +08:00
</view>
2023-08-18 17:28:11 +08:00
<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>
2023-07-05 10:56:11 +08:00
</view>
</view>
</view>
2023-07-17 17:10:05 +08:00
</template>
<o-empty v-else height="70vh" bg="#f5f6fa" />
</view>
2023-07-25 13:18:37 +08:00
<view class="pageBox" v-if="itemList.length > 0">
2023-07-17 17:10:05 +08:00
<uni-pagination :show-icon="true" :total="total" :pageSize="pageSize" :current="current"
@change="changePage" />
2023-07-05 10:56:11 +08:00
</view>
</view>
</view>
</view>
</template>
<script>
import HeadInfo from '@/components/head-info/head-info';
2023-08-01 09:32:45 +08:00
import sqlite from "../../common/sqlite.js"
import tableList from "../../common/createDataTable.js"
2023-08-01 16:32:50 +08:00
import api from "../../common/api.js"
2023-08-18 17:28:11 +08:00
import {
v4 as uuidv4
} from 'uuid';
2023-07-05 10:56:11 +08:00
export default {
data() {
return {
2023-07-13 16:46:06 +08:00
// 港口
pamValue: "",
// pamList: [],
2023-07-13 16:46:06 +08:00
// 船名航次
2023-07-17 17:10:05 +08:00
shipName: "",
2023-07-13 16:46:06 +08:00
shipValue: '',
shipList: [],
2023-07-17 17:10:05 +08:00
shipInput: "",
itemList: [],
// 分页
total: 0,
pageSize: 4,
current: 1,
2023-08-01 09:32:45 +08:00
2023-08-04 17:06:33 +08:00
// 船舶基本信息
shipInfo: {
vslCd: "123",
vslCnname: "测试船只",
vvyId: "1",
vvyName: "hc123",
2023-08-04 17:06:33 +08:00
importExportFlag: "jinchukouId",
importExportFlagName: "进口",
tradeType: "maoyileixingId",
tradeTypeName: "外贸"
},
2023-08-03 15:36:23 +08:00
// 船舶资料
shipData: {
vslCd: "123",
vslCnname: "兰花快航",
vslGton: "9535",
vslNetton: "2861",
vslLoa: "100.29",
vslBreadth: "0",
vslDraftunload: "0",
vslDraftload: "0",
spmCabinht: "0",
spmMintide: "0",
spmCab: "15",
spmBoardCentrele: "0",
spmBoardFrontle: "0",
spmBoardLaterle: "0",
spmBoardCentrerg: "0",
spmBoardFrontrg: "0",
spmBoardLaterrg: "0"
},
// 作业查询数据
2023-08-01 16:32:50 +08:00
workList: [{
agentId: "1",
agentName: "华图供应链管理(天津)有限公司",
amount: "100",
brdId: "1",
brdName: "特斯拉1",
bvdId: "1",
bvdName: "无动力半挂车",
bvmId: "1",
bvmName: "轿车",
carHeight: "100",
carLength: "111",
carWidth: "123",
customsDeclareNo: "BG09759724",
customsDeclareStatus: "未报关",
mnfBl: "TD85875876",
potId: "1",
potName: "巴塞罗那",
sourceType: "新能源",
vvyId: "1",
vvyName: "HC8595986",
yardPos: "C4区15道*2,16道*2",
},
{
agentId: "1",
agentName: "华图供应链管理(天津)有限公司",
amount: "100",
brdId: "1",
brdName: "特斯拉2",
bvdId: "1",
bvdName: "无动力半挂车",
bvmId: "1",
bvmName: "轿车",
carHeight: "100",
carLength: "111",
carWidth: "123",
customsDeclareNo: "BG09759724",
customsDeclareStatus: "未报关",
mnfBl: "TD85875876",
potId: "1",
potName: "巴塞罗那",
sourceType: "新能源",
vvyId: "1",
vvyName: "HC8595986",
yardPos: "C4区15道*2,16道*2",
}
2023-08-03 15:36:23 +08:00
],
// 下拉数据
optionData: [{
dictionariesName: "epTypeList",
ptrCode: "1",
ptrDesc: "贸易方式一",
},
{
dictionariesName: "epTypeList",
ptrCode: "2",
ptrDesc: "贸易方式二",
}, {
dictionariesName: "handTypeList",
ptrCode: "1",
ptrDesc: "装货",
}, {
dictionariesName: "handTypeList",
ptrCode: "2",
ptrDesc: "卸货",
}, {
dictionariesName: "loadTypeList",
ptrCode: "1",
ptrDesc: "Others",
}, {
dictionariesName: "loadTypeList",
ptrCode: "2",
ptrDesc: "Ro/Ro",
}, {
dictionariesName: "loadTypeList",
ptrCode: "3",
ptrDesc: "PortDevice",
}, {
dictionariesName: "ieTypeList",
ptrCode: "1",
ptrDesc: "出口",
}, {
dictionariesName: "ieTypeList",
ptrCode: "2",
ptrDesc: "进口",
},
{
dictionariesName: "supplyTypeList",
ptrCode: "1",
ptrDesc: "供油",
}, {
dictionariesName: "supplyTypeList",
ptrCode: "2",
ptrDesc: "供水",
}, {
dictionariesName: "supplyTypeList",
ptrCode: "3",
ptrDesc: "供电",
}, {
dictionariesName: "supplyTypeList",
ptrCode: "4",
ptrDesc: "其他",
}, {
dictionariesName: "turnoverTypeList",
ptrCode: "1",
ptrDesc: "舱内翻",
}, {
dictionariesName: "turnoverTypeList",
ptrCode: "2",
ptrDesc: "舱外翻",
webStatus: "0",
}, {
dictionariesName: "turnoverTypeList",
ptrCode: "3",
ptrDesc: "货物重装",
}, {
dictionariesName: "bthList",
ptrCode: "1",
ptrDesc: "泊位1",
}, {
dictionariesName: "bthList",
ptrCode: "2",
ptrDesc: "泊位2",
}, {
dictionariesName: "bthList",
ptrCode: "3",
ptrDesc: "泊位3",
}, {
dictionariesName: "carList",
ptrCode: "1",
ptrDesc: "轿车111",
}, {
dictionariesName: "carList",
ptrCode: "2",
ptrDesc: "备件",
}, {
dictionariesName: "carList",
ptrCode: "3",
ptrDesc: "大型轿车",
}, {
dictionariesName: "shiftList",
ptrCode: "1",
ptrDesc: "工班1",
}, {
dictionariesName: "shiftList",
ptrCode: "2",
ptrDesc: "工班2",
}, {
dictionariesName: "shiftList",
ptrCode: "3",
ptrDesc: "工班3",
}, {
dictionariesName: "vvyList",
ptrCode: "1",
ptrDesc: "hc123",
}
2023-08-01 16:32:50 +08:00
]
2023-07-05 10:56:11 +08:00
}
},
components: {
2023-07-13 16:46:06 +08:00
HeadInfo,
},
mounted() {
this.pamValue = uni.getStorageSync('portObj').portId
2023-08-04 17:06:33 +08:00
// this.shipInfo = uni.getStorageSync('shipInfo').voyageScheduleDataList
2023-07-05 10:56:11 +08:00
},
methods: {
2023-08-01 09:32:45 +08:00
open() {
plus.sqlite.openDatabase({
name: 'dianji_chat',
path: '_doc/dianji_chat.db',
success: function(e) {
console.log('打开数据库成功')
},
fail: function(e) {
console.log(e, '打开数据库失败')
}
});
},
isOpen() {
let res = plus.sqlite.isOpenDatabase({
name: 'dianji_chat',
path: '_doc/dianji_chat.db',
});
if (res) {
uni.showToast({
icon: 'none',
title: '数据库已打开'
});
return;
} else {
uni.showToast({
icon: 'none',
title: '数据库未打开'
});
return;
}
},
createTable() {
tableList.createAllTable()
},
dropTable() {
console.log('删除表');
2023-08-18 17:28:11 +08:00
let sql = 'DROP TABLE safetyInspectionRespUrlList;'
2023-08-01 09:32:45 +08:00
this.executeSql(sql)
},
dropData() {
console.log('删除数据');
let sql = "delete from retallyMessageRespList"
2023-08-01 09:32:45 +08:00
this.executeSql(sql)
},
// 查
executeSql(sql) {
sqlite.executeSqlCeshi(sql).then((value) => {
// 在resolve时执行的回调函数
2023-08-03 15:36:23 +08:00
// console.log(value);
2023-08-01 09:32:45 +08:00
}).catch((error) => {
// 在reject时执行的回调函数
console.error(error);
});
},
executeSql1(tableName) {
let sql = 'select * from ' + tableName
this.executeSql(sql)
},
2023-07-13 16:46:06 +08:00
// 获取船的数据
initData() {
uni.request({
2023-08-04 17:06:33 +08:00
url: `${this.$local}/api/shipOperate/select?pamId=${this.pamValue}&vvyId=${this.shipValue}`,
2023-07-13 16:46:06 +08:00
header: {
'Content-Type': 'application/json' //自定义请求头信息
},
method: 'GET', //请求方式,必须为大写
success: (res) => {
console.log('接口返回------', res);
if (res.statusCode === 200) {
2023-07-17 17:10:05 +08:00
this.total = res.data.data.records.length
2023-07-18 17:37:15 +08:00
let newArr = this.getMapping(res.data.data.records, this.pageSize)
2023-07-17 17:10:05 +08:00
this.itemList = newArr[this.current - 1];
2023-07-13 16:46:06 +08:00
}
}
})
},
2023-07-17 17:10:05 +08:00
// 分页切割数组(数组,分割个数)
getMapping(list, num) {
let len = list.length
let newList = []
if (len) {
var chunk = num
for (var i = 0, j = len; i < j; i += chunk) {
newList.push(list.slice(i, i + chunk))
}
}
return newList
},
// 点击分页
2023-07-17 17:10:05 +08:00
changePage(e) {
this.current = e.current;
this.initData()
},
2023-07-13 16:46:06 +08:00
// 获取船名航次下拉数据
getShip() {
uni.request({
2023-08-04 17:06:33 +08:00
url: `${this.$local}/api/shipOperate/queryShipmentVoyageData?key=${this.shipInput}`,
2023-07-13 16:46:06 +08:00
header: {
'Content-Type': 'application/json' //自定义请求头信息
},
method: 'GET', //请求方式,必须为大写
success: (res) => {
console.log('接口返回------', res);
if (res.statusCode === 200) {
2023-07-17 17:10:05 +08:00
this.shipList = res.data.data
2023-07-13 16:46:06 +08:00
}
}
})
},
2023-07-17 17:10:05 +08:00
// 船名航次下拉模糊查询
input_json(e) {
this.shipInput = e;
this.getShip();
},
// 船名航次下拉选项
select_json(e) {
this.shipValue = e.vvyId
this.shipName = e.spmName
},
2023-07-13 16:46:06 +08:00
// 点击搜索
search() {
2023-07-25 13:18:37 +08:00
this.itemList = [{
2023-08-18 17:28:11 +08:00
shipName: "海王星领袖",
2023-07-25 17:15:05 +08:00
uploadTime: "2022-12-11 12:00:08",
uploadStatusDesc: "已上传",
2023-08-18 17:28:11 +08:00
downloadTime: "2022-12-12 12:00:08",
downloadStatusDesc: "已下载",
actualBerthageName: "一泊位",
planBerthageName: "一泊位",
outTradeTypeName: "外贸",
outVvyName: "381527688",
inTradeTypeName: "内贸",
inVvyName: "381527688"
}, {
shipName: "海王星领袖",
uploadTime: "",
downloadTime: "",
actualBerthageName: "一泊位",
planBerthageName: "一泊位",
outTradeTypeName: "外贸",
outVvyName: "381527688",
inTradeTypeName: "内贸",
inVvyName: "381527688"
}, {
shipName: "海王星领袖",
uploadTime: "2022-12-11 12:00:08",
downloadTime: "",
actualBerthageName: "一泊位",
planBerthageName: "一泊位",
outTradeTypeName: "外贸",
outVvyName: "381527688",
inTradeTypeName: "内贸",
inVvyName: "381527688"
}, {
shipName: "海王星领袖",
uploadTime: "",
downloadTime: "2022-12-12 12:00:08",
actualBerthageName: "一泊位",
planBerthageName: "一泊位",
outTradeTypeName: "外贸",
outVvyName: "381527688",
inTradeTypeName: "内贸",
inVvyName: "381527688"
2023-07-25 13:18:37 +08:00
}]
// this.initData()
2023-07-05 10:56:11 +08:00
},
2023-08-04 17:06:33 +08:00
// 船舶基本信息
shipDataInfo() {
let webStatus = 0
let sql = ""
let date = new Date().getTime()
let webId = uuidv4()
let webDate = api.getDate(date)
sql =
`insert into shipInfoTable values('${webId}','${this.shipInfo.vslCd}','${this.shipInfo.vslCnname}',
'${this.shipInfo.vvyId}','${this.shipInfo.vvyName}','${this.shipInfo.importExportFlag}','${this.shipInfo.importExportFlagName}',
'${this.shipInfo.tradeType}','${this.shipInfo.tradeTypeName}','${webStatus}','${webDate}')`
this.executeSql(sql)
},
2023-08-03 15:36:23 +08:00
// 船舶资料数据
cbzlData() {
let webStatus = 0
let sql = ""
let date = new Date().getTime()
let webId = uuidv4()
let webDate = api.getDate(date)
sql =
`insert into shipmentShipManage values('${webId}','${this.shipData.vslCd}','${this.shipData.vslCnname}',
'${this.shipData.vslGton}','${this.shipData.vslNetton}','${this.shipData.vslLoa}','${this.shipData.vslBreadth}','${this.shipData.vslDraftunload}','${this.shipData.vslDraftload}',
'${this.shipData.spmCabinht}','${this.shipData.spmMintide}','${this.shipData.spmCab}','${this.shipData.spmBoardCentrele}',
'${this.shipData.spmBoardFrontle}','${this.shipData.spmBoardLaterle}','${this.shipData.spmBoardCentrerg}','${this.shipData.spmBoardFrontrg}','${this.shipData.spmBoardLaterrg}',
'${webStatus}','${webDate}')`
this.executeSql(sql)
},
// 作业查询数据
zycxData() {
2023-08-01 16:32:50 +08:00
let webStatus = 0
let sql = ""
for (let i = 0; i < this.workList.length; i++) {
let date = new Date().getTime()
2023-08-01 16:50:18 +08:00
let webId = uuidv4()
2023-08-01 16:32:50 +08:00
let webDate = api.getDate(date)
sql =
`insert into shipmentShipLoadPlansRespList values('${webId}','${this.workList[i].agentId}','${this.workList[i].agentName}',
'${this.workList[i].amount}','${this.workList[i].brdId}','${this.workList[i].brdName}','${this.workList[i].bvdId}','${this.workList[i].bvdName}','${this.workList[i].bvmId}',
'${this.workList[i].bvmName}','${this.workList[i].carHeight}','${this.workList[i].carLength}','${this.workList[i].carWidth}',
'${this.workList[i].customsDeclareNo}','${this.workList[i].customsDeclareStatus}','${this.workList[i].mnfBl}','${this.workList[i].potId}','${this.workList[i].potName}',
'${this.workList[i].sourceType}','${this.workList[i].vvyId}','${this.workList[i].vvyName}','${this.workList[i].yardPos}',
'${webStatus}','${webDate}')`
this.executeSql(sql)
}
2023-08-03 15:36:23 +08:00
},
// 下拉数据
xlData() {
for (let i = 0; i < this.optionData.length; i++) {
this.optionData[i]["webId"] = uuidv4()
let date = new Date().getTime()
this.optionData[i]["webStatus"] = "0"
this.optionData[i]["webDate"] = api.getDate(date)
let dbTable = 'shipOption'
let Arr = []
for (let key in this.optionData[i]) {
Arr.push(`'${ this.optionData[i][key]}'`);
}
let Str = Arr.join(',')
// console.log(Str)
sqlite.insertTableData(dbTable, Str).then((value) => {
// 在resolve时执行的回调函数
// console.log(value);
this.executeSql(value)
}).catch((error) => {
// 在reject时执行的回调函数
console.error(error);
});
}
},
// 下载
download(item) {
// 下载创建单证内的表
tableList.createAllTable()
this.zycxData()
this.cbzlData()
this.xlData()
2023-08-04 17:06:33 +08:00
this.shipDataInfo()
2023-08-01 14:35:05 +08:00
// let ids = []
// if (item.inVvyId != null && item.outVvyId == null) {
// ids.push(item.inVvyId)
// } else if (item.outVvyId != null && item.inVvyId == null) {
// ids.push(item.outVvyId)
// } else if (item.inVvyId != null && item.outVvyId != null) {
// ids.push(item.inVvyId)
// ids.push(item.outVvyId)
// }
// console.log(ids)
// uni.request({
// url: this.$local + '/api/shipOperate/download?vvyIds=' + ids,
// header: {
// 'Content-Type': 'application/json' //自定义请求头信息
// },
// method: 'GET', //请求方式,必须为大写
// success: (res) => {
// console.log('接口返回------', res);
// if (res.statusCode == 200) {
// // 存储数据
// uni.setStorageSync('shipInfo', res.data.data);
// }
// }
// })
2023-07-13 16:46:06 +08:00
},
2023-07-17 17:10:05 +08:00
// 上传
upload(item) {
let workDataInfo = {
"adviserLayoutReqList": [{
"altId": "33333333333",
"bthId": "2f166d975bdc58e6a461e3d01de11289",
"createTime": "",
"createUser": "",
"endTime": "2023-07-14 10:00",
"loaderType": "装货",
"personNumber": 10,
"pwcType": "123321",
"remark": "12312312",
"sparePart": 10,
"startTime": "2023-07-13 12:00",
"tenantId": "",
"termcd": "",
"updateTime": "",
"updateUser": "",
"valid": "",
"vehicleSize": 20,
"version": "",
"vvyId": "6cb63df0526f20ecbaa43795774a1299"
}],
"conditionReqList": [{
"operationDate": "2023-07-14",
"remark": "123123",
"type": "2321312",
"vacId": "333333",
"vvyId": "6cb63df0526f20ecbaa43795774a1299"
}],
"consultationReqList": [{
"bthId": "2f166d975bdc58e6a461e3d01de11289",
"handlingType": "装货",
"operationDate": "2023-07-14",
"spareNumber": "12",
"vehiclesNumber": "22",
"vqcId": "123132132131321",
"vvyId": "6cb63df0526f20ecbaa43795774a1299"
}],
"delAlIds": [],
"delCsIds": [],
"delCtIds": [],
"delLnIds": [],
"delMfIds": [],
"delPmIds": [],
"delSauIds": [],
"delSiIds": [],
"delSoiIds": [],
"delSrmIds": [],
"delSsIds": [],
"delSwmIds": [],
"inVvyId": "6cb63df0526f20ecbaa43795774a1299",
"loadUnloadNoticeReqList": [{
"sluId": "11111",
"vbtId": "22222222",
"vvyId": "6cb63df0526f20ecbaa43795774a1299",
"workDate": "2023-07-14"
}],
"outVvyId": "6cb63df0526f20ecbaa43795774a1299",
"personMessageReqList": [{
"bthId": "2f166d975bdc58e6a461e3d01de11289",
"jobEndTime": "2023-7-14 10:00",
"jobStartTime": "2023-7-13 12:00",
"pmeId": "111",
"remark": "123123123remark",
"shipPerson": 0,
"termcd": "2222",
"valid": "33333",
"vbtId": "44444",
"vvyId": "6cb63df0526f20ecbaa43795774a1299",
"weatherType": "晴",
"workSuite": 0
}],
"shipmentAttachUnmoorReqList": [{
"attachTime": "2023-07-13 12:00",
"bthId": "2f166d975bdc58e6a461e3d01de11289",
"createTime": "",
"createUser": "",
"noProductBerthTime": "2023-07-13 12:00",
"remark": "23123123",
"sauId": "333333",
"shiftingBerthTime": "2023-07-13 12:00",
"shipDeadWeight": 30,
"tenantId": "11122222",
"termcd": "111222",
"unmoorTime": "2023-07-13 12:00",
"updateTime": "2023-07-13 12:00",
"updateUser": "111111",
"valid": "2222222",
"version": 20,
"vvyId": "6cb63df0526f20ecbaa43795774a1299"
}],
"shipmentMafiListReqList": [{
"loadType": "卸货",
"mafiBarcode": "000002",
"pamId": "ac9b606e04a2bc71b876914a64ccb0b6",
"size": 10,
"smlId": "1111",
"type": "FULL",
"vtpId": "222222",
"vvyId": "6cb63df0526f20ecbaa43795774a1299",
"workDate": "2023-07-14"
}],
"shipmentOtherInfoReqList": [{
"auxRemark": "111111",
"endTm": "2023-07-14 10:00:00",
"genNum": 20,
"remark": "12312321",
"soiId": "222222",
"startTm": "2023-07-13 12:00:00",
"tecNum": 30,
"volume": 20,
"vvyId": "6cb63df0526f20ecbaa43795774a1299",
"waitRemark": "123123",
"weight": 40,
"workRemark": "1231231"
}],
"shipmentRetallyMessageReqList": [{
"remId": "123123",
"retallyReqDTOS": [{
"remId": "1231231312",
"retallyDetailReqDTOS": [{
"carType": "中型车",
"goodsNumber": 10,
"goodsVolume": 20,
"goodsWeight": 30,
"retallyEndTime": "2023-07-14 10:00:00",
"retallyOrigin": "123123",
"retallyStartTime": "2023-07-13 12:00:00",
"retallyTerminus": "1231321",
"reyId": "1231321",
"rydId": "23123123"
}],
"retallyType": "",
"reyId": ""
}],
"vvyId": "6cb63df0526f20ecbaa43795774a1299"
}],
"shipmentSafetyInspectionReqList": [{
"importExport": "1231312",
"remark": "123123",
"spmId": "32131",
"tradeType": "123213",
"type": "123123",
"uploadStatus": "未上传",
"url": [],
"vsiId": "123123",
"vvyId": "6cb63df0526f20ecbaa43795774a1299"
}],
"shipmentShipSupplyReqList": [{
"sssId": "",
"stopBerthage": "2f166d975bdc58e6a461e3d01de11289",
"supplyAmount": 8,
"supplyDate": "2023-07-14",
"supplyType": "",
"vvyId": "6cb63df0526f20ecbaa43795774a1299",
"vvyName": "511I"
}],
"shipmentWorkMessageReqList": [{
"loadType": "自装",
"pwcType": "123",
"remark": "132311231",
"vvyId": "6cb63df0526f20ecbaa43795774a1299",
"wkmId": "123123",
"workEndTime": "2023-07-13 10:00:00",
"workStartTime": "2023-07-13 12:00:00",
"workMessageDetailReqDTOS": [{
"carType": "中型车",
"goodsNumber": 3,
"loadingType": "自装",
"remark": "",
"tenantId": "",
"termcd": "",
"valid": "",
"wkdId": "",
"wkmId": ""
}],
}],
"vtpId": "123123"
}
uni.request({
url: this.$local + '/api/shipOperate/upload',
data: workDataInfo,
header: {
'Content-Type': 'application/json' //自定义请求头信息
},
method: 'POST', //请求方式,必须为大写
success: (res) => {
console.log('接口返回------', res);
}
})
},
toGo(item) {
2023-07-13 11:18:17 +08:00
uni.navigateTo({
2023-07-18 17:37:15 +08:00
url: `/pages/shipWork/documentList`
2023-07-13 11:18:17 +08:00
})
}
2023-07-05 10:56:11 +08:00
}
};
</script>
2023-07-13 16:46:06 +08:00
<style lang="less" scoped>
2023-07-05 10:56:11 +08:00
.container {
background-color: #f5f6fa;
display: flex;
2023-07-13 16:46:06 +08:00
min-height: calc(100vh - 44px - 40px);
2023-07-05 10:56:11 +08:00
}
.content {
padding: 20px;
2023-07-13 16:46:06 +08:00
min-height: calc(100vh - 44px - 40px);
2023-07-06 17:08:59 +08:00
2023-07-05 10:56:11 +08:00
.form {
display: flex;
2023-07-06 17:08:59 +08:00
2023-07-05 10:56:11 +08:00
.select {
2023-07-13 16:46:06 +08:00
width: 200px;
margin-right: 20px;
2023-07-05 10:56:11 +08:00
}
2023-07-06 17:08:59 +08:00
2023-07-05 10:56:11 +08:00
.input {
width: 200px;
height: 35px;
line-height: 35px;
margin-left: 15px;
}
2023-07-13 16:46:06 +08:00
2023-07-25 13:18:37 +08:00
.searchBtn {
2023-07-13 16:46:06 +08:00
height: 35px;
line-height: 35px;
2023-07-25 13:18:37 +08:00
margin-left: 0;
2023-08-18 17:28:11 +08:00
font-size: 16px;
color: #fff;
background-color: #0067CF;
margin-right: 10px;
2023-07-13 16:46:06 +08:00
}
2023-07-05 10:56:11 +08:00
}
.itemList {
width: 100%;
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
2023-07-06 17:08:59 +08:00
2023-07-17 17:10:05 +08:00
/deep/.o-empty {
width: 100%;
margin-top: 15px;
}
2023-07-05 10:56:11 +08:00
.item {
2023-07-06 17:08:59 +08:00
width: 49%;
2023-08-18 17:28:11 +08:00
min-height: 204px;
2023-07-05 10:56:11 +08:00
margin-top: 15px;
2023-07-06 17:08:59 +08:00
margin-right: 2%;
2023-08-18 17:28:11 +08:00
background-color: #fff;
border-radius: 8px;
padding: 10px 0;
position: relative;
2023-07-05 10:56:11 +08:00
.title {
display: flex;
2023-07-06 17:08:59 +08:00
padding: 10px 20px;
2023-08-18 17:28:11 +08:00
image {
width: 32px;
height: 32px;
margin-right: 12px;
}
.name {
margin-top: 5px;
font-size: 16px;
color: #23262E;
font-weight: bold;
}
2023-07-05 10:56:11 +08:00
}
.row {
display: flex;
justify-content: space-between;
2023-07-17 17:10:05 +08:00
font-size: 14px;
2023-07-06 17:08:59 +08:00
padding: 10px 20px;
2023-07-05 10:56:11 +08:00
2023-07-06 17:08:59 +08:00
.nitem {
width: 46%;
.text {
color: #929292;
}
2023-07-05 10:56:11 +08:00
}
}
2023-07-06 17:08:59 +08:00
.footer {
2023-07-17 17:10:05 +08:00
width: 100%;
2023-07-06 17:08:59 +08:00
display: flex;
2023-08-18 17:28:11 +08:00
justify-content: flex-end;
border-top: 1px solid #EEEEEE;
padding-top: 10px;
2023-07-06 17:08:59 +08:00
.fitem {
2023-08-18 17:28:11 +08:00
display: flex;
2023-07-06 17:08:59 +08:00
}
2023-08-18 17:28:11 +08:00
button {
width: 72px;
height: 28px;
line-height: 28px;
border-radius: 4px;
margin-right: 16px;
font-size: 14px;
}
.fitem1 {
background: #EEEEEE;
color: #999999;
}
.fitem2 {
background: #0067CF;
color: #fff;
}
}
.statusBox {
.statusInfo {
margin-bottom: 3px;
padding: 5px;
background: #F1F8FF;
border-radius: 4px;
font-size: 12px;
color: #0067CF;
text:first-child {
margin-right: 10px;
}
}
.notStatus {
background: #FFF7EE;
color: #FC8300;
text:first-child {
margin-right: 0;
}
}
}
.statusBox1 {
position: absolute;
top: 10px;
right: 5px;
}
.statusBox2 {
position: absolute;
top: 40px;
right: 5px;
2023-07-06 17:08:59 +08:00
}
2023-07-05 10:56:11 +08:00
}
.item:nth-child(2n) {
margin-right: 0;
}
}
2023-07-17 17:10:05 +08:00
.pageBox {
margin-top: 20px;
}
2023-07-05 10:56:11 +08:00
}
2023-07-13 11:18:17 +08:00
</style>