} | } | ||||
console.log("url", url) | console.log("url", url) | ||||
navTo(`${url}?orderId=${orderInfo.orderId}&clientFee=${orderInfo.amount}&id=${orderInfo.productId}&vehiclePlateColor=${orderInfo.vehiclePlateColor}&fromOrder=true&type=${orderInfo.type}&userType=${orderInfo.userType === 'PERSONAL_USER' ? '1' : '2'}&vehicleId=${orderInfo.vehicleId}`); | |||||
navTo(`${url}?orderId=${orderInfo.orderId}&clientFee=${orderInfo.amount}&id=${orderInfo.productId}&vehiclePlateColor=${orderInfo.vehiclePlateColor}&fromOrder=true&vanType=${orderInfo.type}&userType=${orderInfo.userType === 'PERSONAL_USER' ? '1' : '2'}&vehicleId=${orderInfo.vehicleId}`); | |||||
} | } | ||||
//确认收货 | //确认收货 |
}, { | }, { | ||||
"path": "progress-query/progress-query-business-details", | "path": "progress-query/progress-query-business-details", | ||||
"style": { | "style": { | ||||
"navigationBarTitleText": "业务审核记录详情", | |||||
"navigationBarTitleText": "进度查询详情", | |||||
"enablePullDownRefresh": false | "enablePullDownRefresh": false | ||||
} | } | ||||
}, | }, | ||||
{ | { | ||||
"path": "progress-query/progress-query-business", | "path": "progress-query/progress-query-business", | ||||
"style": { | "style": { | ||||
"navigationBarTitleText": "业务审核记录", | |||||
"navigationBarTitleText": "进度查询", | |||||
"enablePullDownRefresh": false | "enablePullDownRefresh": false | ||||
} | } | ||||
}, | }, |
if (state.type == "34") { | if (state.type == "34") { | ||||
navTo(`/subpackage/after-sale/month-statement/month-statement-query-list?vehicleId=${item.vehicleId}`) | navTo(`/subpackage/after-sale/month-statement/month-statement-query-list?vehicleId=${item.vehicleId}`) | ||||
}else if (state.type == "35") { | }else if (state.type == "35") { | ||||
navTo(`/subpackage/personal-center/search/select-card?vehicleId=${item.vehicleId}`) | |||||
navTo(`/subpackage/personal-center/search/etcFlowingWater?vehicleId=${item.vehicleId}`) | |||||
}else if (state.type == "36") { | }else if (state.type == "36") { | ||||
uni.navigateTo({ | uni.navigateTo({ | ||||
url: `/subpackage/after-sale/blacklist-query/list?vehiclePlate=${item.vehiclePlate}&vehiclePlateColor=${item.vehiclePlateColor}&cardId=${item.cardId}` | url: `/subpackage/after-sale/blacklist-query/list?vehiclePlate=${item.vehiclePlate}&vehiclePlateColor=${item.vehiclePlateColor}&cardId=${item.cardId}` |
getItem | getItem | ||||
} from "@/utils/storage"; | } from "@/utils/storage"; | ||||
import { | import { | ||||
request | |||||
request, requestNew | |||||
} from "@/utils/network/request.js"; | } from "@/utils/network/request.js"; | ||||
import { | import { | ||||
IntegerToHexString, | IntegerToHexString, | ||||
stringToJson | stringToJson | ||||
} from "@/utils/network/encryption.js"; | } from "@/utils/network/encryption.js"; | ||||
import * as IFCODE from "@/utils/network/api.js"; | import * as IFCODE from "@/utils/network/api.js"; | ||||
import { | |||||
issueApply,issueCallback | |||||
} from "@/utils/network/api"; | |||||
import { | import { | ||||
agentId | agentId | ||||
} from "@/utils/network/difference"; | } from "@/utils/network/difference"; | ||||
import { | import { | ||||
channelId | channelId | ||||
} from "@/utils/network/difference"; | } from "@/utils/network/difference"; | ||||
import { | |||||
orderDetailQuery | |||||
} from "@/utils/network/api.js"; | |||||
const state = reactive({ | const state = reactive({ | ||||
orderId: "", | orderId: "", | ||||
id: "", | id: "", | ||||
method: "POST", //提交方式(默认POST) | method: "POST", //提交方式(默认POST) | ||||
}; | }; | ||||
console.log("options2222", options) | console.log("options2222", options) | ||||
//BDS-二发指令回传 | |||||
//卡签版本校验接口 | |||||
request(IFCODE.versionVerificationApi, options) | request(IFCODE.versionVerificationApi, options) | ||||
.then((res) => { | .then((res) => { | ||||
console.log(stringToJson(res.bizContent)); | console.log(stringToJson(res.bizContent)); | ||||
type: 2, //type: 2,JSON格式提交数据(默认表单形式提交) | type: 2, //type: 2,JSON格式提交数据(默认表单形式提交) | ||||
showLoading: false, | showLoading: false, | ||||
data: { | data: { | ||||
orderId: orderInfo.orderId, | |||||
orderId: orderInfo.orderNo, | |||||
issueType: state.transfer ? 2 : 1 //1正常激活 2 过户激活 | issueType: state.transfer ? 2 : 1 //1正常激活 2 过户激活 | ||||
}, //请求参数 | }, //请求参数 | ||||
method: "POST", //提交方式(默认POST) | method: "POST", //提交方式(默认POST) | ||||
console.log("options==", options) | console.log("options==", options) | ||||
//BDS-二发指令申请 | //BDS-二发指令申请 | ||||
request('4b001421f5354c248a7759971881b52f', options) | |||||
requestNew(issueApply, options) | |||||
.then((res) => { | .then((res) => { | ||||
console.log("在线激活 请求"); | console.log("在线激活 请求"); | ||||
console.log(stringToJson(res.bizContent)); | |||||
const datas = stringToJson(res.bizContent).data; | |||||
console.log(res); | |||||
const datas =res; | |||||
bluetoothUtil.transCmd(datas.cmd.split(','), datas.cmdType == 'CARD' ? '10' : '20', function(res) { | bluetoothUtil.transCmd(datas.cmd.split(','), datas.cmdType == 'CARD' ? '10' : '20', function(res) { | ||||
implementCmd(datas.transOrderId, datas.cmd, res.toString(), datas.stepNo) | implementCmd(datas.transOrderId, datas.cmd, res.toString(), datas.stepNo) | ||||
}, () => { | }, () => { | ||||
}; | }; | ||||
console.log("options2222", options) | console.log("options2222", options) | ||||
//BDS-二发指令回传 | //BDS-二发指令回传 | ||||
request('88d98f2db7df4f06b22d58b507db7854', options) | |||||
requestNew(issueCallback, options) | |||||
.then((res) => { | .then((res) => { | ||||
console.log(stringToJson(res.bizContent)); | |||||
const datas = stringToJson(res.bizContent).data; | |||||
console.log(res); | |||||
const datas = res.data; | |||||
console.log("在线激活 请求", datas); | console.log("在线激活 请求", datas); | ||||
if (datas.stepNo == 100) { | if (datas.stepNo == 100) { | ||||
state.disabled = true | state.disabled = true | ||||
implementCmd(transOrderId, datas.cmd, res.toString(), datas.stepNo) | implementCmd(transOrderId, datas.cmd, res.toString(), datas.stepNo) | ||||
}, () => { | }, () => { | ||||
showModals('在线激活异常') | showModals('在线激活异常') | ||||
// tools.hideLoadingAlert(); | |||||
}); | }); | ||||
} | } | ||||
}) | }) | ||||
showLoading: false, | showLoading: false, | ||||
}; | }; | ||||
state.disabled = false | state.disabled = false | ||||
request(IFCODE.orderDetail, options).then((res) => { | |||||
orderInfo = JSON.parse(res.bizContent); | |||||
console.log("orderInfo", orderInfo); | |||||
requestNew(orderDetailQuery, options).then((res) => { | |||||
console.log("orderInfo", res); | |||||
orderInfo = res.data; | |||||
console.log("orderInfores", res); | console.log("orderInfores", res); | ||||
if (orderInfo) { | if (orderInfo) { | ||||
fileDataStrings.userType = orderInfo.userType; //用户类型 | fileDataStrings.userType = orderInfo.userType; //用户类型 | ||||
fileDataStrings.obuId = orderInfo.obuId; | fileDataStrings.obuId = orderInfo.obuId; | ||||
fileDataStrings.customerTel = orderInfo.customerTel; | fileDataStrings.customerTel = orderInfo.customerTel; | ||||
fileDataStrings.customerId = orderInfo.customerId; | fileDataStrings.customerId = orderInfo.customerId; | ||||
fileDataStrings.orderId = orderInfo.orderId; | |||||
fileDataStrings.orderId = orderInfo.orderNo; | |||||
fileDataStrings.vehiclePlateColorStr = getVehiclePlateColor(orderInfo | fileDataStrings.vehiclePlateColorStr = getVehiclePlateColor(orderInfo | ||||
.vehiclePlateColor); | .vehiclePlateColor); | ||||
fileDataStrings.vehiclePlate = orderInfo.vehiclePlate; //车牌 | fileDataStrings.vehiclePlate = orderInfo.vehiclePlate; //车牌 | ||||
fileDataStrings.vehicleClassStr = orderInfo.vehicleClassStr; | fileDataStrings.vehicleClassStr = orderInfo.vehicleClassStr; | ||||
cancelOrderRequest(orderInfo.orderId) | |||||
} | } | ||||
}); | }); | ||||
getObuId(); | getObuId(); | ||||
}; | }; | ||||
//更换设备 去注销前订单的 卡签 | |||||
const cancelOrderRequest = (orderId) => { | |||||
console.log('======更换设备 去注销前订单的 卡签 ======') | |||||
const options = { | |||||
type: 2, | |||||
data: { | |||||
orderId: orderId, | |||||
}, | |||||
method: "POST", | |||||
showLoading: false | |||||
// showLoading: true, | |||||
}; | |||||
request(IFCODE.cancelOrderApi, options).then((res) => { | |||||
}) | |||||
} | |||||
/** | /** | ||||
* 获取OBU号 读OBU | * 获取OBU号 读OBU |
} from "@/utils/storage"; | } from "@/utils/storage"; | ||||
const imgURL = `${fileURL}image/`; | const imgURL = `${fileURL}image/`; | ||||
import { | import { | ||||
request | |||||
requestNew | |||||
} from "@/utils/network/request.js"; | } from "@/utils/network/request.js"; | ||||
import { | import { | ||||
stringToJson | stringToJson | ||||
} from "@/utils/network/encryption.js"; | } from "@/utils/network/encryption.js"; | ||||
import { | import { | ||||
upLoadImg | |||||
activeImgUpload | |||||
} from "@/utils/network/api.js"; | } from "@/utils/network/api.js"; | ||||
import { | import { | ||||
onLoad | onLoad | ||||
showLoading: true, | showLoading: true, | ||||
}; | }; | ||||
request(upLoadImg, options).then((res) => { | |||||
const data = stringToJson(res.bizContent); | |||||
console.log(data); | |||||
requestNew(activeImgUpload, options).then((res) => { | |||||
// const data = stringToJson(res.bizContent); | |||||
// console.log(data); | |||||
navTo(`/pages/bluetooth/bluetooth?routeType=1&transfer=${state.transfer}`) | navTo(`/pages/bluetooth/bluetooth?routeType=1&transfer=${state.transfer}`) | ||||
}); | }); | ||||
onUnload | onUnload | ||||
} from "@dcloudio/uni-app"; | } from "@dcloudio/uni-app"; | ||||
import { | import { | ||||
request | |||||
request,requestNew | |||||
} from "@/utils/network/request"; | } from "@/utils/network/request"; | ||||
import { | import { | ||||
obuDecrypt, | |||||
cardList, | |||||
searchObuInfo | |||||
obuDecrypt,cardObuQuery | |||||
} from "@/utils/network/api"; | } from "@/utils/network/api"; | ||||
import { | import { | ||||
stringToJson | stringToJson | ||||
console.log("card.color===========", card.vehiclePlate, parseInt(res[2].substring(82, 84), | console.log("card.color===========", card.vehiclePlate, parseInt(res[2].substring(82, 84), | ||||
16)) | 16)) | ||||
// 读卡信息 | // 读卡信息 | ||||
getCardList() | |||||
// getCardList() | |||||
//执行0016文件 | //执行0016文件 | ||||
let arr = [cmd.HOME_DIRECTORY, cmd.PERSONAL_INFORMATION] | let arr = [cmd.HOME_DIRECTORY, cmd.PERSONAL_INFORMATION] | ||||
bluetoothUtil.transCmd(arr, '10', function(res) { | bluetoothUtil.transCmd(arr, '10', function(res) { | ||||
//提示对话框 | //提示对话框 | ||||
tools.showModalAlert(msg); | tools.showModalAlert(msg); | ||||
} | } | ||||
const getCardList = () => { | |||||
const getObuList = () => { | |||||
var data = { | var data = { | ||||
vehicleId: state.vehicleId | |||||
obuId: obu.num, | |||||
cardId:card.cardNo, | |||||
}; | }; | ||||
const options = { | const options = { | ||||
type: 2, | type: 2, | ||||
method: "POST", | method: "POST", | ||||
showLoading: true, | showLoading: true, | ||||
}; | }; | ||||
request(cardList, options).then((res) => { | |||||
let result = stringToJson(res.bizContent); | |||||
state.cardStatus = result.data[0].cardStatus | |||||
if (result.data[0].cardType == 1 && result.data[0].debitType == 1) { | |||||
requestNew(cardObuQuery, options).then((res) => { | |||||
tools.hideLoadingAlert(); | |||||
let result = res; | |||||
console.log("153", result) | |||||
state.obuStatus = result.obuStatus?result.obuStatus:"" | |||||
state.cardStatus = result.cardStatus | |||||
if (result.cardType == 1 && result.debitType == 1) { | |||||
state.cardTypeName = "预存卡" | state.cardTypeName = "预存卡" | ||||
} else if (result.data[0].cardType == 2) { | |||||
} else if (result.cardType == 2) { | |||||
state.cardTypeName = "储值卡" | state.cardTypeName = "储值卡" | ||||
} else { | } else { | ||||
state.cardTypeName = "记账卡" | state.cardTypeName = "记账卡" | ||||
} | } | ||||
console.log("152", result) | |||||
}) | |||||
} | |||||
const getObuList = () => { | |||||
var data = { | |||||
obuId: obu.num | |||||
}; | |||||
const options = { | |||||
type: 2, | |||||
data: data, | |||||
method: "POST", | |||||
showLoading: true, | |||||
}; | |||||
request(searchObuInfo, options).then((res) => { | |||||
tools.hideLoadingAlert(); | |||||
let result = stringToJson(res.bizContent); | |||||
console.log("153", result) | |||||
state.obuStatus = result.data[0]?result.data[0].obuStatus:"" | |||||
}) | }) | ||||
} | } | ||||
</script> | </script> |
<script setup lang="ts"> | <script setup lang="ts"> | ||||
import { reactive } from "vue"; | import { reactive } from "vue"; | ||||
import { onLoad, onReachBottom } from "@dcloudio/uni-app"; | import { onLoad, onReachBottom } from "@dcloudio/uni-app"; | ||||
import { monthStatementApi, getUserMsg,monthlyStatementQuery } from "@/utils/network/api.js"; | |||||
import {getUserMsg,monthlyStatementQuery } from "@/utils/network/api.js"; | |||||
import { stringToJson } from "@/utils/network/encryption"; | import { stringToJson } from "@/utils/network/encryption"; | ||||
import { request, requestNew } from "@/utils/network/request.js"; | import { request, requestNew } from "@/utils/network/request.js"; | ||||
import { getItem, StorageKeys } from "@/utils/storage"; | |||||
import { getItem } from "@/utils/storage"; | |||||
import { getVehiclePlateColor } from "@/datas/vehiclePlateColor"; | import { getVehiclePlateColor } from "@/datas/vehiclePlateColor"; | ||||
import { msg, navTo } from "@/utils/utils"; | import { msg, navTo } from "@/utils/utils"; | ||||
const state = reactive({ | const state = reactive({ | ||||
}; | }; | ||||
requestNew(monthlyStatementQuery, options).then((res) => { | requestNew(monthlyStatementQuery, options).then((res) => { | ||||
const data = stringToJson(res.bizContent); | |||||
state.listData = stringToJson(res.bizContent).data | |||||
state.listData = res.result | |||||
console.log("业务完成日志", state.listData,) | console.log("业务完成日志", state.listData,) | ||||
}); | }); | ||||
} | } |
<script setup lang="ts"> | <script setup lang="ts"> | ||||
import { onLoad} from "@dcloudio/uni-app"; | import { onLoad} from "@dcloudio/uni-app"; | ||||
import { reactive, ref } from "vue"; | import { reactive, ref } from "vue"; | ||||
import { equityProductsInfo } from "@/utils/network/api.js"; | |||||
import { stringToJson } from "@/utils/network/encryption"; | import { stringToJson } from "@/utils/network/encryption"; | ||||
import { request } from "@/utils/network/request"; | |||||
import {requestNew } from "@/utils/network/request"; | |||||
import { navTo } from "@/utils/utils"; | import { navTo } from "@/utils/utils"; | ||||
import { jump } from "@/datas/9901Jump.js"; | import { jump } from "@/datas/9901Jump.js"; | ||||
import { | import { | ||||
getOpenidApi | |||||
singleEquityDetail,getOpenId | |||||
} from "@/utils/network/api"; | } from "@/utils/network/api"; | ||||
import { | import { | ||||
getItem, | |||||
setItem | setItem | ||||
} from "@/utils/storage"; | } from "@/utils/storage"; | ||||
import { deviceType } from "@/utils/network/difference"; | import { deviceType } from "@/utils/network/difference"; | ||||
method: 'POST', | method: 'POST', | ||||
showLoading: true, | showLoading: true, | ||||
} | } | ||||
request(equityProductsInfo, options).then((res) => { | |||||
const data = stringToJson(res.bizContent); | |||||
requestNew(singleEquityDetail, options).then((res) => { | |||||
const data = res; | |||||
console.log("333333", data.productIntro) | console.log("333333", data.productIntro) | ||||
richText.value = data.productIntro | richText.value = data.productIntro | ||||
}) | }) | ||||
showLoading: true, | showLoading: true, | ||||
}; | }; | ||||
// #ifdef MP-WEIXIN | // #ifdef MP-WEIXIN | ||||
request(getOpenidApi, options).then((res) => { | |||||
requestNew(getOpenId, options).then((res) => { | |||||
const result = stringToJson(res.bizContent); | const result = stringToJson(res.bizContent); | ||||
console.log("获取微信小程序openid", result); | console.log("获取微信小程序openid", result); | ||||
const openidData = stringToJson(result.data); | const openidData = stringToJson(result.data); |
}; | }; | ||||
return new Promise(async (resolve, reject) => { | return new Promise(async (resolve, reject) => { | ||||
const res = await requestNew(registerFull, options); | const res = await requestNew(registerFull, options); | ||||
const data = stringToJson(res.bizContent); | |||||
const data = res; | |||||
resolve(data); | resolve(data); | ||||
}).catch((error) => { | }).catch((error) => { | ||||
reject(error); | reject(error); |
}; | }; | ||||
return new Promise(async (resolve, reject) => { | return new Promise(async (resolve, reject) => { | ||||
const res = await requestNew(registerFull, options); | const res = await requestNew(registerFull, options); | ||||
const data = stringToJson(res.bizContent); | |||||
const data = res; | |||||
resolve(data); | resolve(data); | ||||
}).catch((error) => { | }).catch((error) => { | ||||
reject(error); | reject(error); |
<view class="base-info"> | <view class="base-info"> | ||||
<view class="d-row"> | <view class="d-row"> | ||||
<text class="d-label">新办单号:</text> | <text class="d-label">新办单号:</text> | ||||
<text class="d-value">{{state.orderInfo.orderId}}</text> | |||||
<text class="d-value">{{state.orderInfo.orderNo}}</text> | |||||
</view> | </view> | ||||
<view class="d-row"> | |||||
<!-- <view class="d-row"> | |||||
<text class="d-label">业务类型:</text> | <text class="d-label">业务类型:</text> | ||||
<text class="d-value">{{getOrderTypeName(state.orderInfo.orderType)}}</text> | <text class="d-value">{{getOrderTypeName(state.orderInfo.orderType)}}</text> | ||||
</view> | |||||
</view> --> | |||||
<view class="d-row"> | <view class="d-row"> | ||||
<text class="d-label">订单车牌:</text> | <text class="d-label">订单车牌:</text> | ||||
<text class="d-value">{{state.orderInfo.vehiclePlate}}</text> | <text class="d-value">{{state.orderInfo.vehiclePlate}}</text> | ||||
</view> | </view> | ||||
<view class="d-row"> | <view class="d-row"> | ||||
<text class="d-label">车辆类型:</text> | <text class="d-label">车辆类型:</text> | ||||
<text class="d-value">{{getCarTypeName(state.orderInfo.type)}}</text> | |||||
<text class="d-value">{{getCarTypeName(state.orderInfo.vanType)}}</text> | |||||
</view> | </view> | ||||
<view class="d-row" v-if="getCarTypeName(state.orderInfo.type)=='货车'"> | |||||
<view class="d-row" v-if="getCarTypeName(state.orderInfo.vanType)=='货车'"> | |||||
<text class="d-label">牵引车:</text> | <text class="d-label">牵引车:</text> | ||||
<text class="d-value">{{state.orderInfo.tractorSign=='1'?'是':'否'}}</text> | <text class="d-value">{{state.orderInfo.tractorSign=='1'?'是':'否'}}</text> | ||||
</view> | </view> |
showLoading: true, | showLoading: true, | ||||
}; | }; | ||||
requestNew(userSign, options).then((res) => { | requestNew(userSign, options).then((res) => { | ||||
const data = stringToJson(res.bizContent); | |||||
const data = res; | |||||
console.log("data", data) | console.log("data", data) | ||||
if (data.userState === "UNAUTHORIZED") { | if (data.userState === "UNAUTHORIZED") { | ||||
if (state.channelSing == "0") { | if (state.channelSing == "0") { |
<!-- 背景颜色充满屏 --> | <!-- 背景颜色充满屏 --> | ||||
<view class="bg-color"></view> | <view class="bg-color"></view> | ||||
<!-- 补卡额订单列表--> | <!-- 补卡额订单列表--> | ||||
<view class="item last"> | |||||
<text>选择卡号:</text> | |||||
<picker bindchange="changeCardId" :value="state.index" :range="state.cardIdRange"> | |||||
<view class="picker"> | |||||
{{state.cardIdRange[state.index]}} | |||||
</view> | |||||
</picker> | |||||
<!-- <uni-data-select style="whith:360rpx;font-size: 26rpx;" v-model="state.cardId" :localdata="state.cardIdRange" | |||||
@change="changeCardId" :clear="false"></uni-data-select> --> | |||||
</view> | |||||
<view class="search-time"> | <view class="search-time"> | ||||
<view class="search-time-box"> | <view class="search-time-box"> | ||||
<view class="show-info"> | <view class="show-info"> | ||||
ref | ref | ||||
} from "vue"; | } from "vue"; | ||||
import { | import { | ||||
request | |||||
request, requestNew | |||||
} from "@/utils/network/request.js"; | } from "@/utils/network/request.js"; | ||||
import { | import { | ||||
stringToJson | stringToJson | ||||
} from "@/utils/network/encryption.js"; | } from "@/utils/network/encryption.js"; | ||||
import { | import { | ||||
orderDetail, | |||||
passBills, | |||||
passBillCount, | passBillCount, | ||||
downloadBills, | downloadBills, | ||||
passbill,cardList | |||||
} from "@/utils/network/api.js"; | } from "@/utils/network/api.js"; | ||||
import { | import { | ||||
onLoad, | onLoad, | ||||
const state = reactive({ | const state = reactive({ | ||||
list: [], | list: [], | ||||
cardId: null, | cardId: null, | ||||
cardIdRange:[], | |||||
passTotal: 0, | passTotal: 0, | ||||
parkTotal: 0, | parkTotal: 0, | ||||
aggregateAmount: 0, | aggregateAmount: 0, | ||||
pageNo: 1, // 当前页 | pageNo: 1, // 当前页 | ||||
flags: false, | flags: false, | ||||
handleDate: "", //月结单选择时间 | handleDate: "", //月结单选择时间 | ||||
vehicleId: "" | |||||
vehicleId: "", | |||||
index:0 | |||||
}) | }) | ||||
onLoad((option) => { | onLoad((option) => { | ||||
state.cardId = option.cardId; | state.cardId = option.cardId; | ||||
state.handleDate = option.handleDate; | state.handleDate = option.handleDate; | ||||
state.vehicleId = option.vehicleId; | state.vehicleId = option.vehicleId; | ||||
console.log("月结单111", state.handleDate) | console.log("月结单111", state.handleDate) | ||||
if (state.handleDate != "undefined") { | |||||
if (state.handleDate) { | |||||
// "2024-04-25" | // "2024-04-25" | ||||
let deadLine = getDaysInMonth(state.handleDate.substring(0, 4), state.handleDate.substring(4, 6)) | let deadLine = getDaysInMonth(state.handleDate.substring(0, 4), state.handleDate.substring(4, 6)) | ||||
dataTime.startDate = state.handleDate.substring(0, 4) + "-" + state.handleDate.substring(4, 6) + "-" + | dataTime.startDate = state.handleDate.substring(0, 4) + "-" + state.handleDate.substring(4, 6) + "-" + | ||||
console.log("月结单", dataTime.startDate, state.handleDate != "") | console.log("月结单", dataTime.startDate, state.handleDate != "") | ||||
search(1) | search(1) | ||||
} | } | ||||
getCardList(option.vehicleId) | |||||
}) | }) | ||||
const changeCardId = (e) => { | |||||
state.cardId = e | |||||
console.log(e) | |||||
} | |||||
const getCardList = (vehicleId) => { | |||||
var data = { | |||||
vehicleId: vehicleId | |||||
}; | |||||
const options = { | |||||
type: 2, | |||||
data: data, | |||||
method: "POST", | |||||
showLoading: true, | |||||
}; | |||||
request(cardList, options).then((res) => { | |||||
console.log("152", stringToJson(res.bizContent)) | |||||
let result = stringToJson(res.bizContent); | |||||
for (var k = 0; k < result.data.length; k++) { | |||||
state.cardIdRange.push(result.data[k]['cardId']) | |||||
} | |||||
console.log(result.data); | |||||
}) | |||||
} | |||||
function getDaysInMonth(year, month) { | function getDaysInMonth(year, month) { | ||||
var date = new Date(); | var date = new Date(); | ||||
date.setFullYear(year); | date.setFullYear(year); | ||||
search(2) | search(2) | ||||
}) | }) | ||||
const search = (val) => { | const search = (val) => { | ||||
// if (dataTime.startDate == "开始时间") { | |||||
// msg('请选择开始时间'); | |||||
// return; | |||||
// } | |||||
// if (dataTime.endDate == "结束时间") { | |||||
// msg('请选择结束时间'); | |||||
// return; | |||||
// } | |||||
if (dataTime.startDate == "开始时间") { | |||||
msg('请选择开始时间'); | |||||
return; | |||||
} | |||||
if (dataTime.endDate == "结束时间") { | |||||
msg('请选择结束时间'); | |||||
return; | |||||
} | |||||
if (val == 1) { | if (val == 1) { | ||||
state.pageNo = 1 | state.pageNo = 1 | ||||
} | } | ||||
method: "POST", | method: "POST", | ||||
showLoading: true, | showLoading: true, | ||||
}; | }; | ||||
request(passBills, options).then((res) => { | |||||
requestNew(passbill, options).then((res) => { | |||||
console.log(res); | console.log(res); | ||||
let result = stringToJson(res.bizContent) | |||||
console.log(result); | |||||
state.list = [...state.list, ...stringToJson(res.bizContent).data] | |||||
console.log(result.data); | |||||
state.list = [...state.list, ...res.result] | |||||
getPpassBillCount() | getPpassBillCount() | ||||
}) | }) | ||||
text-align: center; | text-align: center; | ||||
margin: 30rpx 0; | margin: 30rpx 0; | ||||
} | } | ||||
.item { | |||||
display: flex; | |||||
font-size: 30rpx; | |||||
margin: 20rpx 0 0 20rpx; | |||||
align-items: center; | |||||
background-color: white; | |||||
width:95%; | |||||
padding: 20rpx; | |||||
box-sizing: border-box; | |||||
} | |||||
::deep .last .uni-stat__select { | |||||
width: 360rpx !important; | |||||
} | |||||
</style> | </style> |
export const monthlyStatementQuery= "/iaw/app/issue/monthlyStatement/query" //月结单查询 | export const monthlyStatementQuery= "/iaw/app/issue/monthlyStatement/query" //月结单查询 | ||||
export const cardBlackQuery= "/iaw/app/issue/cardBlack/query" //黑名单查询 | export const cardBlackQuery= "/iaw/app/issue/cardBlack/query" //黑名单查询 | ||||
export const generalAuditQuery= "/iaw/app/issue/generalAudit/query" //业务审核查询 | export const generalAuditQuery= "/iaw/app/issue/generalAudit/query" //业务审核查询 | ||||
export const registerFull= "/iaw/issue/userBasic/registerFull" //无感注册登录接口 | |||||
export const registerFull= "/iaw/issue/userBasic/registerFull" //无感注册登录接口 | |||||
export const issueApply= "/iaw/issue/order/issueApply" //发行指令申请 | |||||
export const issueCallback= "/iaw/issue/order/issueCallback" //发行指令回传 | |||||
export const activeImgUpload= "/iaw/issue/order/activeImgUpload" //激活图片上传 | |||||
export const cardObuQuery= "/iaw/ass/query/cardObuQuery" //卡签信息查询 | |||||
export const singleEquityDetail= "/iaw/ass/equity/singleEquityDetail" //单项权益详情查询 | |||||
export const passbill= "/iaw/app/issue/cardAnnounce/passbill" //ETC通行流水记录查询 |
method: "POST", | method: "POST", | ||||
showLoading: true, | showLoading: true, | ||||
}; | }; | ||||
requestNew(code, options).then((res) => { | |||||
const data = stringToJson(res.bizContent); | |||||
console.log('输出内容=====123', data) | |||||
resolve(data) | |||||
}); | |||||
if(code=="" || code=="91"){ | |||||
request(code, options).then((res) => { | |||||
const data = stringToJson(res.bizContent); | |||||
console.log('输出内容=====123', data) | |||||
resolve(data) | |||||
}); | |||||
}else{ | |||||
requestNew(code, options).then((res) => { | |||||
const data = stringToJson(res.bizContent); | |||||
console.log('输出内容=====123', data) | |||||
resolve(data) | |||||
}); | |||||
} | |||||
} | } | ||||
}); | }); | ||||
}) | }) |