orderInfos.cardStatus = orderInfo.cardStatus; | orderInfos.cardStatus = orderInfo.cardStatus; | ||||
orderInfos.obuId = orderInfo.obuId; | orderInfos.obuId = orderInfo.obuId; | ||||
orderInfos.obuStatus = orderInfo.obuStatus; | orderInfos.obuStatus = orderInfo.obuStatus; | ||||
// let arr = orderInfo.vehicleDimensions.split("X"); | |||||
// orderInfos.outlineL = parseInt(arr[0]); //外廓 长 | |||||
// orderInfos.outlineW = parseInt(arr[1]); //外廓 宽 | |||||
// if(arr[2].indexOf('mm')){ | |||||
// orderInfos.outlineH = parseInt(arr[2].substring(0, arr[2].length - 2)); //外廓 高 | |||||
// }else{ | |||||
// orderInfos.outlineH = arr[2] //外廓 高 | |||||
// } | |||||
orderInfos.type = orderInfo.type; | orderInfos.type = orderInfo.type; | ||||
orderInfos.axleCount = orderInfo.vehicleAxleCount; | orderInfos.axleCount = orderInfo.vehicleAxleCount; | ||||
orderInfos.approvedCount = orderInfo.vehicleApprovedCount; | orderInfos.approvedCount = orderInfo.vehicleApprovedCount; |
</view> | </view> | ||||
<view class="details-item"> | <view class="details-item"> | ||||
<view> 用户名称: </view> | <view> 用户名称: </view> | ||||
<text>{{ orderInfos.ownerName }}</text> | |||||
<text>{{ orderInfos.customerName }}</text> | |||||
</view> | </view> | ||||
<view class="details-item"> | <view class="details-item"> | ||||
<view> 用户证件类型: </view> | <view> 用户证件类型: </view> | ||||
let cmdRandNum = ''; | let cmdRandNum = ''; | ||||
const orderInfos = reactive({ | const orderInfos = reactive({ | ||||
orderId: "", | orderId: "", | ||||
ownerName: "", | |||||
customerName: "", | |||||
ownerIdtype: "", | ownerIdtype: "", | ||||
ownerIdnum: "", | ownerIdnum: "", | ||||
vehiclePlate: "", | vehiclePlate: "", | ||||
let orderInfo = JSON.parse(res.bizContent); | let orderInfo = JSON.parse(res.bizContent); | ||||
console.log("orderInfo", orderInfo); | console.log("orderInfo", orderInfo); | ||||
orderInfos.orderId = orderInfo.orderId; | orderInfos.orderId = orderInfo.orderId; | ||||
orderInfos.ownerName = orderInfo.ownerName; | |||||
orderInfos.customerName = orderInfo.customerName; | |||||
orderInfos.ownerIdtype = orderInfo.ownerIdtype; | orderInfos.ownerIdtype = orderInfo.ownerIdtype; | ||||
orderInfos.ownerIdnum = orderInfo.ownerIdnum; | orderInfos.ownerIdnum = orderInfo.ownerIdnum; | ||||
orderInfos.vehiclePlate = orderInfo.vehiclePlate; | orderInfos.vehiclePlate = orderInfo.vehiclePlate; | ||||
fileDataStrings.vehiclePlateColor = orderInfo.vehiclePlateColor; //车牌颜色 | fileDataStrings.vehiclePlateColor = orderInfo.vehiclePlateColor; //车牌颜色 | ||||
console.log("车辆信息", orderInfo) | console.log("车辆信息", orderInfo) | ||||
fileDataStrings.vehicleDimensions = orderInfo.vehicleDimensions; | fileDataStrings.vehicleDimensions = orderInfo.vehicleDimensions; | ||||
let arr = orderInfo.vehicleDimensions.split("X"); | |||||
console.log("orderInfo.vehicleDimensions", orderInfo.vehicleDimensions.split("X")) | |||||
fileDataStrings.outlineL = parseInt(arr[0]); //外廓 长 | |||||
fileDataStrings.outlineW = parseInt(arr[1]); //外廓 宽 | |||||
if(arr[2].indexOf('mm')){ | |||||
fileDataStrings.outlineH = parseInt(arr[2].substring(0, arr[2].length - 2)); //外廓 高 | |||||
}else{ | |||||
fileDataStrings.outlineH = arr[2] //外廓 高 | |||||
} | |||||
// let arr = orderInfo.vehicleDimensions.split("X"); | |||||
// console.log("orderInfo.vehicleDimensions", orderInfo.vehicleDimensions.split("X")) | |||||
// fileDataStrings.outlineL = parseInt(arr[0]); //外廓 长 | |||||
// fileDataStrings.outlineW = parseInt(arr[1]); //外廓 宽 | |||||
// if(arr[2].indexOf('mm')){ | |||||
// fileDataStrings.outlineH = parseInt(arr[2].substring(0, arr[2].length - 2)); //外廓 高 | |||||
// }else{ | |||||
// fileDataStrings.outlineH = arr[2] //外廓 高 | |||||
// } | |||||
fileDataStrings.vehicleIdNo = orderInfo.vehicleEngineNum; //车编号 | fileDataStrings.vehicleIdNo = orderInfo.vehicleEngineNum; //车编号 | ||||
fileDataStrings.vehiclePlateColorStr = getVehiclePlateColor(orderInfo | fileDataStrings.vehiclePlateColorStr = getVehiclePlateColor(orderInfo | ||||
.vehiclePlateColor); | .vehiclePlateColor); |
<view class="cell-left">版本号</view> | <view class="cell-left">版本号</view> | ||||
<view class="cell-right">{{ obu.version }}</view> | <view class="cell-right">{{ obu.version }}</view> | ||||
</view> | </view> | ||||
<view class="cell"> | |||||
<view class="cell" v-if="state.obuStatus"> | |||||
<view class="cell-left">签状态</view> | <view class="cell-left">签状态</view> | ||||
<view class="cell-right">{{getCodeName('OBU_STATE_TYPE',state.obuStatus)}}</view> | <view class="cell-right">{{getCodeName('OBU_STATE_TYPE',state.obuStatus)}}</view> | ||||
</view> | </view> | ||||
tools.hideLoadingAlert(); | tools.hideLoadingAlert(); | ||||
let result = stringToJson(res.bizContent); | let result = stringToJson(res.bizContent); | ||||
console.log("153", result) | console.log("153", result) | ||||
state.obuStatus = result.data[0].obuStatus | |||||
state.obuStatus = result.data[0]?result.data[0].obuStatus:"" | |||||
}) | }) | ||||
} | } | ||||
</script> | </script> |
let arr = allData['vehicleDimensions'].split("X"); | let arr = allData['vehicleDimensions'].split("X"); | ||||
state.outlineL = parseInt(arr[0]); //外廓 长 | state.outlineL = parseInt(arr[0]); //外廓 长 | ||||
state.outlineW = parseInt(arr[1]); //外廓 宽 | state.outlineW = parseInt(arr[1]); //外廓 宽 | ||||
state.outlineH = parseInt(arr[2].substring(0, arr[2].length - 2)); //外廓 高 | |||||
console.log("arr[2]",arr[2]) | |||||
if(arr[2].indexOf('mm')){ | |||||
state.outlineH = parseInt(arr[2].substring(0, arr[2].length - 2)); //外廓 高 | |||||
}else{ | |||||
state.outlineH = parseInt(arr[2]); //外廓 高 | |||||
} | |||||
state.form.totalMassShow = allData['totalMass'] | state.form.totalMassShow = allData['totalMass'] | ||||
state.form.totalMass = allData['totalMass'] | state.form.totalMass = allData['totalMass'] | ||||
state.form.axleCount = allData['axleCount'] ? allData['axleCount'] : 2 | state.form.axleCount = allData['axleCount'] ? allData['axleCount'] : 2 |
import { stringToJson } from "@/utils/network/encryption"; | import { stringToJson } from "@/utils/network/encryption"; | ||||
import { onLoad, onUnload, onReachBottom, onPullDownRefresh } from "@dcloudio/uni-app"; | import { onLoad, onUnload, onReachBottom, onPullDownRefresh } from "@dcloudio/uni-app"; | ||||
import { getItem, StorageKeys } from "@/utils/storage"; | import { getItem, StorageKeys } from "@/utils/storage"; | ||||
import { hasLogin, msg, getOrderStatusName, getOrderTypeName } from "@/utils/utils"; | |||||
import { hasLogin, msg, getOrderStatusName, getOrderTypeName,navTo} from "@/utils/utils"; | |||||
import { noActivationOrder } from "@/utils/network/api"; | import { noActivationOrder } from "@/utils/network/api"; | ||||
import { PageData } from "@/datas/enum"; | import { PageData } from "@/datas/enum"; | ||||
import useOrderSkip from "@/composables/order/useOrderSkip"; | import useOrderSkip from "@/composables/order/useOrderSkip"; | ||||
} | } | ||||
onLoad(() => { | onLoad(() => { | ||||
if (!hasLogin()) { | |||||
uni.showModal({ | |||||
title: '提示', | |||||
content: '您还未登录小程序,请先登录小程序', | |||||
showCancel: false, | |||||
success: function (res) { | |||||
if (res.confirm) { | |||||
navTo(`/login/login?back=1`) | |||||
} | |||||
} | |||||
}); | |||||
} | |||||
//监听订单刷新信息 | //监听订单刷新信息 | ||||
uni.$on('refreshOrder', (data) => { | uni.$on('refreshOrder', (data) => { | ||||
refreshList(); | refreshList(); | ||||
}); | }); | ||||
console.log("guoliale ") | |||||
console.log("guoliale") | |||||
refreshList(); | refreshList(); | ||||
}); | }); | ||||