1.26
parent
7642e83daf
commit
0a400fd422
|
@ -16,7 +16,8 @@ export default {
|
||||||
* @description api请求基础路径
|
* @description api请求基础路径
|
||||||
*/
|
*/
|
||||||
// local: "http://192.168.61.133/tos", // VPN地址
|
// local: "http://192.168.61.133/tos", // VPN地址
|
||||||
local: "https://rtops4.haitongauto.com/tos", // 海通地址
|
local: "https://rtops4.haitongauto.com/tos", // 海通地址(测试版)
|
||||||
|
local2: "https://rtops.haitongauto.com/tos", // 海通地址(正式版)
|
||||||
imgSrc: "http://116.205.142.169/HtRtosResource/assets/",
|
imgSrc: "http://116.205.142.169/HtRtosResource/assets/",
|
||||||
mapkey: "FUFBZ-KBIWW-P63RR-RR4W3-BNV4H-T6BGX"
|
mapkey: "FUFBZ-KBIWW-P63RR-RR4W3-BNV4H-T6BGX"
|
||||||
}
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
import config, { local ,local2 } from '@/config/index.js'
|
||||||
|
import Vue from 'vue'
|
||||||
|
export function changeEnv () {
|
||||||
|
const {local ,local2} = config
|
||||||
|
if(Vue.prototype.$local == local) {
|
||||||
|
Vue.prototype.$local = local2
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: '切换到正式环境'
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
Vue.prototype.$local = local
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: '切换到测试环境'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
1
main.js
1
main.js
|
@ -3,6 +3,7 @@ import store from './store'
|
||||||
import config from '@/config';
|
import config from '@/config';
|
||||||
const {
|
const {
|
||||||
local,
|
local,
|
||||||
|
local2,
|
||||||
mapkey,
|
mapkey,
|
||||||
imgSrc
|
imgSrc
|
||||||
} = config;
|
} = config;
|
||||||
|
|
|
@ -553,12 +553,22 @@
|
||||||
:key="index3" :style="getDynamicStyle(item3, item.shipSpace)">
|
:key="index3" :style="getDynamicStyle(item3, item.shipSpace)">
|
||||||
<zb-tooltip placement="bottom-start" color="white"
|
<zb-tooltip placement="bottom-start" color="white"
|
||||||
:visible.sync="item3.isShow">
|
:visible.sync="item3.isShow">
|
||||||
{{item3.stowageNo}} {{item3.potName}} {{item3.amount}}
|
<text style="margin-left: 5px;">{{item3.stowageNo}}</text>
|
||||||
|
<text style="margin-left: 5px;">{{item3.potName}}</text>
|
||||||
|
<text
|
||||||
|
v-if="item3.transitPortName != null && item3.transitPortName != ''">({{item3.transitPortName}})</text>
|
||||||
|
<text style="margin-left: 5px;">{{item3.amount}}</text>
|
||||||
<view slot="content">
|
<view slot="content">
|
||||||
<view class="tipBox">
|
<view class="tipBox">
|
||||||
<p style="color: #000;">
|
<p style="color: #000;">
|
||||||
{{item3.stowageNo}} {{item3.potName}}
|
<text
|
||||||
{{item3.amount}}
|
style="margin-left: 5px;">{{item3.stowageNo}}</text>
|
||||||
|
<text
|
||||||
|
style="margin-left: 5px;">{{item3.potName}}</text>
|
||||||
|
<text
|
||||||
|
v-if="item3.transitPortName != null && item3.transitPortName != ''">({{item3.transitPortName}})</text>
|
||||||
|
<text style="margin-left: 5px;">
|
||||||
|
{{item3.amount}}</text>
|
||||||
</p>
|
</p>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -1684,6 +1694,7 @@
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
if (res.data.status == "200") {
|
if (res.data.status == "200") {
|
||||||
this.goodsInfo = res.data.data
|
this.goodsInfo = res.data.data
|
||||||
|
console.log(this.goodsInfo)
|
||||||
if (this.imgInfo.whetherNormal == "0") {
|
if (this.imgInfo.whetherNormal == "0") {
|
||||||
this.goodsInfo.reverse()
|
this.goodsInfo.reverse()
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="loginBox">
|
<view class="loginBox">
|
||||||
|
<view class="tabBox">
|
||||||
|
<view class="hjButton" @click="tabHj">切换环境</view>
|
||||||
|
</view>
|
||||||
<view class="loginTop">
|
<view class="loginTop">
|
||||||
<image src="../../static/images/theme/logo.png" mode="widthFix"></image>
|
<image src="../../static/images/theme/logo.png" mode="widthFix"></image>
|
||||||
</view>
|
</view>
|
||||||
|
@ -62,6 +65,9 @@
|
||||||
decrypt
|
decrypt
|
||||||
} from "../../common/crypto.js"
|
} from "../../common/crypto.js"
|
||||||
import LotusLoading from "../../components/Winglau14-lotusLoading/Winglau14-LotusLoading.vue";
|
import LotusLoading from "../../components/Winglau14-lotusLoading/Winglau14-LotusLoading.vue";
|
||||||
|
import {
|
||||||
|
changeEnv
|
||||||
|
} from '../../env.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -85,20 +91,22 @@
|
||||||
lotusLoadingData: {
|
lotusLoadingData: {
|
||||||
isShow: false //设置显示加载中组件true显示false隐藏
|
isShow: false //设置显示加载中组件true显示false隐藏
|
||||||
},
|
},
|
||||||
pwdShow: false
|
pwdShow: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
LotusLoading
|
LotusLoading
|
||||||
},
|
},
|
||||||
onLoad() {
|
|
||||||
this.screenHeight = uni.getSystemInfoSync().windowHeight;
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
// 点击图标
|
// 点击图标
|
||||||
iconC() {
|
iconC() {
|
||||||
this.pwdShow = !this.pwdShow
|
this.pwdShow = !this.pwdShow
|
||||||
},
|
},
|
||||||
|
// 切换环境
|
||||||
|
tabHj() {
|
||||||
|
changeEnv()
|
||||||
|
},
|
||||||
// 登录
|
// 登录
|
||||||
loginGo(type) {
|
loginGo(type) {
|
||||||
this.lotusLoadingData.isShow = true
|
this.lotusLoadingData.isShow = true
|
||||||
|
@ -279,6 +287,27 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
|
.tabBox {
|
||||||
|
position: absolute;
|
||||||
|
right: 10px;
|
||||||
|
top: 10px;
|
||||||
|
|
||||||
|
.hjButton {
|
||||||
|
width: 80px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
text-align: center;
|
||||||
|
background-color: #0067CF;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
text {
|
||||||
|
color: #23262E;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.loginTop {
|
.loginTop {
|
||||||
width: 172px;
|
width: 172px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
|
|
|
@ -554,6 +554,7 @@
|
||||||
},
|
},
|
||||||
// type 1 板车照片 2板车车牌照 3质损照片 4车架号图片 5签名 6参考图
|
// type 1 板车照片 2板车车牌照 3质损照片 4车架号图片 5签名 6参考图
|
||||||
initImg(fileName, type) {
|
initImg(fileName, type) {
|
||||||
|
if (fileName != "") {
|
||||||
uni.request({
|
uni.request({
|
||||||
url: `${this.$local}/api/file/url/?fileName=${fileName}`,
|
url: `${this.$local}/api/file/url/?fileName=${fileName}`,
|
||||||
header: {
|
header: {
|
||||||
|
@ -587,6 +588,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 质损发生环节选项
|
// 质损发生环节选项
|
||||||
radioChange(evt) {
|
radioChange(evt) {
|
||||||
|
@ -1401,6 +1403,7 @@
|
||||||
"ygqId": this.ygqId, // 质量id
|
"ygqId": this.ygqId, // 质量id
|
||||||
"vinCode": this.carValue, // 车架号
|
"vinCode": this.carValue, // 车架号
|
||||||
}
|
}
|
||||||
|
console.log(editReqDTO)
|
||||||
uni.request({
|
uni.request({
|
||||||
url: `${this.$local}/api/goodsQuality/edit`,
|
url: `${this.$local}/api/goodsQuality/edit`,
|
||||||
data: editReqDTO,
|
data: editReqDTO,
|
||||||
|
|
|
@ -171,6 +171,7 @@
|
||||||
this.portObj = uni.getStorageSync('portObj')
|
this.portObj = uni.getStorageSync('portObj')
|
||||||
uni.setStorageSync('signImg', "")
|
uni.setStorageSync('signImg', "")
|
||||||
uni.setStorageSync('hzzsImg', "")
|
uni.setStorageSync('hzzsImg', "")
|
||||||
|
uni.setStorageSync('isSign', true)
|
||||||
this.initData()
|
this.initData()
|
||||||
this.getBrand()
|
this.getBrand()
|
||||||
this.getShip()
|
this.getShip()
|
||||||
|
|
|
@ -145,6 +145,7 @@
|
||||||
this.ctx.lineTo(point2.X, point2.Y);
|
this.ctx.lineTo(point2.X, point2.Y);
|
||||||
this.ctx.stroke();
|
this.ctx.stroke();
|
||||||
this.ctx.draw(true);
|
this.ctx.draw(true);
|
||||||
|
this.isSign = true
|
||||||
},
|
},
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
|
|
|
@ -964,8 +964,9 @@
|
||||||
value.forEach(v => {
|
value.forEach(v => {
|
||||||
this.vtpList.push(v.vtpId)
|
this.vtpList.push(v.vtpId)
|
||||||
})
|
})
|
||||||
} else if (tableName == 'shipOption') {} else if (tableName == "messageRespList") {
|
} else if (tableName == "messageRespList") {
|
||||||
that.messageRespList = value
|
that.messageRespList = value
|
||||||
|
console.log(value)
|
||||||
} else if (tableName == "workMessageRespList") {
|
} else if (tableName == "workMessageRespList") {
|
||||||
that.workMessageRespList = value
|
that.workMessageRespList = value
|
||||||
that.workMessageRespList.forEach(v => {
|
that.workMessageRespList.forEach(v => {
|
||||||
|
@ -999,18 +1000,65 @@
|
||||||
})
|
})
|
||||||
} else if (tableName == "attachUnmoorRespList") {
|
} else if (tableName == "attachUnmoorRespList") {
|
||||||
that.attachUnmoorRespList = value
|
that.attachUnmoorRespList = value
|
||||||
|
that.attachUnmoorRespList.forEach(v => {
|
||||||
|
if (v.attachTime == "null") {
|
||||||
|
that.$set(v, "attachTime", null)
|
||||||
|
}
|
||||||
|
if (v.unmoorTime == "null") {
|
||||||
|
that.$set(v, "unmoorTime", null)
|
||||||
|
}
|
||||||
|
if (v.shiftingBerthTime == "null") {
|
||||||
|
that.$set(v, "shiftingBerthTime", null)
|
||||||
|
}
|
||||||
|
if (v.noProductBerthStTime == "null") {
|
||||||
|
that.$set(v, "noProductBerthStTime", null)
|
||||||
|
}
|
||||||
|
if (v.noProductBerthEdTime == "null") {
|
||||||
|
that.$set(v, "noProductBerthEdTime", null)
|
||||||
|
}
|
||||||
|
})
|
||||||
} else if (tableName == "shipmentShipSupplyRespList") {
|
} else if (tableName == "shipmentShipSupplyRespList") {
|
||||||
that.shipmentShipSupplyRespList = value
|
that.shipmentShipSupplyRespList = value
|
||||||
|
that.shipmentShipSupplyRespList.forEach(v => {
|
||||||
|
if (v.supplyDate == "null") {
|
||||||
|
that.$set(v, "supplyDate", null)
|
||||||
|
}
|
||||||
|
})
|
||||||
} else if (tableName == "shipmentAdviserLayoutRespList") {
|
} else if (tableName == "shipmentAdviserLayoutRespList") {
|
||||||
that.shipmentAdviserLayoutRespList = value
|
that.shipmentAdviserLayoutRespList = value
|
||||||
|
that.shipmentAdviserLayoutRespList.forEach(v => {
|
||||||
|
if (v.workTime == "null") {
|
||||||
|
that.$set(v, "workTime", null)
|
||||||
|
}
|
||||||
|
})
|
||||||
} else if (tableName == "shipmentLoadUnloadNoticeRespList") {
|
} else if (tableName == "shipmentLoadUnloadNoticeRespList") {
|
||||||
that.shipmentLoadUnloadNoticeRespList = value
|
that.shipmentLoadUnloadNoticeRespList = value
|
||||||
|
that.shipmentLoadUnloadNoticeRespList.forEach(v => {
|
||||||
|
if (v.workDate == "null") {
|
||||||
|
that.$set(v, "workDate", null)
|
||||||
|
}
|
||||||
|
})
|
||||||
} else if (tableName == "shipmentQualityConsultationRespList") {
|
} else if (tableName == "shipmentQualityConsultationRespList") {
|
||||||
that.shipmentQualityConsultationRespList = value
|
that.shipmentQualityConsultationRespList = value
|
||||||
|
that.shipmentQualityConsultationRespList.forEach(v => {
|
||||||
|
if (v.operationDate == "null") {
|
||||||
|
that.$set(v, "operationDate", null)
|
||||||
|
}
|
||||||
|
})
|
||||||
} else if (tableName == "abnormalConditionRespList") {
|
} else if (tableName == "abnormalConditionRespList") {
|
||||||
that.abnormalConditionRespList = value
|
that.abnormalConditionRespList = value
|
||||||
|
that.abnormalConditionRespList.forEach(v => {
|
||||||
|
if (v.operationDate == "null") {
|
||||||
|
that.$set(v, "operationDate", null)
|
||||||
|
}
|
||||||
|
})
|
||||||
} else if (tableName == "mafiListRespList") {
|
} else if (tableName == "mafiListRespList") {
|
||||||
that.mafiListRespList = value
|
that.mafiListRespList = value
|
||||||
|
that.mafiListRespList.forEach(v => {
|
||||||
|
if (v.workDate == "null") {
|
||||||
|
that.$set(v, "workDate", null)
|
||||||
|
}
|
||||||
|
})
|
||||||
} else if (tableName == "workSignTable") {
|
} else if (tableName == "workSignTable") {
|
||||||
that.workSignTable = value
|
that.workSignTable = value
|
||||||
} else if (tableName == 'evaluateTable') {
|
} else if (tableName == 'evaluateTable') {
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<p>装卸方式:<text>{{item.loadType}}</text></p>
|
<p>装卸方式:<text>{{item.loadType}}</text></p>
|
||||||
</view>
|
</view>
|
||||||
<view class="status didNot" v-if="item.status == 0 || item.status == 'null'">
|
<view class="status didNot" v-if="item.status == 0 || item.status == 'null'">
|
||||||
<p>未提交审核</p>
|
<p>待提交</p>
|
||||||
</view>
|
</view>
|
||||||
<view class="status didNot" v-if="item.status == 1">
|
<view class="status didNot" v-if="item.status == 1">
|
||||||
<p>待审核</p>
|
<p>待审核</p>
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
<p>单船人数:<text>{{item.shipPerson}}</text></p>
|
<p>单船人数:<text>{{item.shipPerson}}</text></p>
|
||||||
</view>
|
</view>
|
||||||
<view class="status didNot" v-if="item.status == 0 || item.status == 'null'">
|
<view class="status didNot" v-if="item.status == 0 || item.status == 'null'">
|
||||||
<p>未提交审核</p>
|
<p>待提交</p>
|
||||||
</view>
|
</view>
|
||||||
<view class="status didNot" v-if="item.status == 1">
|
<view class="status didNot" v-if="item.status == 1">
|
||||||
<p>待审核</p>
|
<p>待审核</p>
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
<text class="text">结束时间:</text><text class="time">{{item2.workEndTime}}</text>
|
<text class="text">结束时间:</text><text class="time">{{item2.workEndTime}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="status didNot" v-if="item[0].status == 0 || item[0].status == 'null'">
|
<view class="status didNot" v-if="item[0].status == 0 || item[0].status == 'null'">
|
||||||
<p>未提交审核</p>
|
<p>待提交</p>
|
||||||
</view>
|
</view>
|
||||||
<view class="status didNot" v-if="item[0].status == 1">
|
<view class="status didNot" v-if="item[0].status == 1">
|
||||||
<p>待审核</p>
|
<p>待审核</p>
|
||||||
|
@ -145,6 +145,7 @@
|
||||||
.aId] = [item];
|
.aId] = [item];
|
||||||
return res;
|
return res;
|
||||||
}, {}));
|
}, {}));
|
||||||
|
console.log(this.shiftInfo)
|
||||||
this.shiftInfo.forEach(v => {
|
this.shiftInfo.forEach(v => {
|
||||||
v.forEach(i => {
|
v.forEach(i => {
|
||||||
this.$set(i, "shiftArr", [])
|
this.$set(i, "shiftArr", [])
|
||||||
|
|
|
@ -374,6 +374,13 @@
|
||||||
},
|
},
|
||||||
// 保存
|
// 保存
|
||||||
save() {
|
save() {
|
||||||
|
if (this.datetime[0] == "") {
|
||||||
|
uni.showModal({
|
||||||
|
title: '提示',
|
||||||
|
showCancel: false,
|
||||||
|
content: '请输入作业时间!'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
let date = new Date().getTime()
|
let date = new Date().getTime()
|
||||||
let pmeId = uuidv4()
|
let pmeId = uuidv4()
|
||||||
let webStatus = 0
|
let webStatus = 0
|
||||||
|
@ -396,6 +403,7 @@
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/shipWork/mixWork'
|
url: '/pages/shipWork/mixWork'
|
||||||
})
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 编辑
|
// 编辑
|
||||||
toGo(state) {
|
toGo(state) {
|
||||||
|
|
|
@ -13,13 +13,13 @@
|
||||||
<text>航次:{{item.vvyName}}</text>
|
<text>航次:{{item.vvyName}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="liInfo">
|
<view class="liInfo">
|
||||||
<p>类型:<text>{{item.supplyTypeNm}}</text></p>
|
<p>类型:<text>{{item.supplyType}}</text></p>
|
||||||
<p>进出口:<text>{{item.importExportFlagName}}</text></p>
|
<p>进出口:<text>{{item.importExportFlagName}}</text></p>
|
||||||
<p>贸易类型:<text>{{shipInfo.spmTradeName}}</text></p>
|
<p>贸易类型:<text>{{shipInfo.spmTradeName}}</text></p>
|
||||||
<p>日期:<text>{{item.supplyDate}}</text></p>
|
<p>日期:<text>{{item.supplyDate}}</text></p>
|
||||||
</view>
|
</view>
|
||||||
<view class="status didNot" v-if="item.status == 0 || item.status == 'null'">
|
<view class="status didNot" v-if="item.status == 0 || item.status == 'null'">
|
||||||
<p>未提交审核</p>
|
<p>待提交</p>
|
||||||
</view>
|
</view>
|
||||||
<view class="status didNot" v-if="item.status == 1">
|
<view class="status didNot" v-if="item.status == 1">
|
||||||
<p>待审核</p>
|
<p>待审核</p>
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="li">
|
<view class="li">
|
||||||
<p>泊位/Berth:</p>
|
<p>泊位/Berth:</p>
|
||||||
<p>{{tableInfo.bthIdName}}</p>
|
<p>{{tableInfo.stopBerthageName}}</p>
|
||||||
</view>
|
</view>
|
||||||
<view class="li">
|
<view class="li">
|
||||||
<p>日期/Date:</p>
|
<p>日期/Date:</p>
|
||||||
|
@ -126,9 +126,10 @@
|
||||||
// 在resolve时执行的回调函数
|
// 在resolve时执行的回调函数
|
||||||
this.tabsList = []
|
this.tabsList = []
|
||||||
this.tableInfo = value[tabsValue]
|
this.tableInfo = value[tabsValue]
|
||||||
|
console.log(this.tableInfo)
|
||||||
value.forEach((v, index) => {
|
value.forEach((v, index) => {
|
||||||
let obj = {
|
let obj = {
|
||||||
name: `供水${index + 1}`,
|
name: `供给${index + 1}`,
|
||||||
}
|
}
|
||||||
this.tabsList.push(obj)
|
this.tabsList.push(obj)
|
||||||
})
|
})
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<p>系缆时间:<text>{{item.attachTime}}</text></p>
|
<p>系缆时间:<text>{{item.attachTime}}</text></p>
|
||||||
</view>
|
</view>
|
||||||
<view class="status didNot" v-if="item.status == 0 || item.status == 'null'">
|
<view class="status didNot" v-if="item.status == 0 || item.status == 'null'">
|
||||||
<p>未提交审核</p>
|
<p>待提交</p>
|
||||||
</view>
|
</view>
|
||||||
<view class="status didNot" v-if="item.status == 1">
|
<view class="status didNot" v-if="item.status == 1">
|
||||||
<p>待审核</p>
|
<p>待审核</p>
|
||||||
|
|
Loading…
Reference in New Issue