import { gotoAgainUseOrderApi, finishUseOrderApi } from "@/utils/network/api.js"; | import { gotoAgainUseOrderApi, finishUseOrderApi } from "@/utils/network/api.js"; | ||||
import { stringToJson } from "@/utils/network/encryption.js"; | import { stringToJson } from "@/utils/network/encryption.js"; | ||||
import { jump } from "@/datas/9901Jump.js"; | import { jump } from "@/datas/9901Jump.js"; | ||||
import { agencyId } from "@/utils/network/difference"; | |||||
export default function useOrderSkip() { | export default function useOrderSkip() { | ||||
const gotoOrderDetailsPay = (orderInfo) => { | const gotoOrderDetailsPay = (orderInfo) => { | ||||
// #ifdef MP-WEIXIN | // #ifdef MP-WEIXIN | ||||
console.log("********555555555555**********", orderInfo.orderStep, OrderStatus["已支付/待签约"]); | console.log("********555555555555**********", orderInfo.orderStep, OrderStatus["已支付/待签约"]); | ||||
let url = ''; | let url = ''; | ||||
if (orderInfo.orderStep == OrderStatus.完成填写基本信息 || orderInfo.orderStep == OrderStatus.待支付3) { | if (orderInfo.orderStep == OrderStatus.完成填写基本信息 || orderInfo.orderStep == OrderStatus.待支付3) { | ||||
if (orderInfo.agencyId == "52010106004") { | |||||
if (orderInfo.agencyId == agencyId) { | |||||
const params = encodeURIComponent(JSON.stringify(orderInfo)) | const params = encodeURIComponent(JSON.stringify(orderInfo)) | ||||
jump("10", params) | jump("10", params) | ||||
} else { | } else { | ||||
} else if (orderInfo.orderStep === OrderStatus.待加购权益) { | } else if (orderInfo.orderStep === OrderStatus.待加购权益) { | ||||
navTo(`/subpackage/orders/interestsList?orderId=${orderInfo.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`); | navTo(`/subpackage/orders/interestsList?orderId=${orderInfo.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`); | ||||
} else if (orderInfo.orderStep === OrderStatus["完成车辆信息上传/待支付"]) { | } else if (orderInfo.orderStep === OrderStatus["完成车辆信息上传/待支付"]) { | ||||
if (orderInfo.agencyId == "52010106004") { | |||||
if (orderInfo.agencyId == agencyId) { | |||||
const params = encodeURIComponent(JSON.stringify(orderInfo)) | const params = encodeURIComponent(JSON.stringify(orderInfo)) | ||||
jump("11", params) | jump("11", params) | ||||
} else { | } else { | ||||
} else if (orderInfo.orderStep === OrderStatus["审核不通过"]) { //修改资料 | } else if (orderInfo.orderStep === OrderStatus["审核不通过"]) { //修改资料 | ||||
url = '/subpackage/orders/changeInformation'; | url = '/subpackage/orders/changeInformation'; | ||||
} else if (orderInfo.orderStep === OrderStatus["已支付/待签约"]) { //修改资料 | } else if (orderInfo.orderStep === OrderStatus["已支付/待签约"]) { //修改资料 | ||||
if (orderInfo.agencyId == "52010106004") { | |||||
if (orderInfo.agencyId == agencyId) { | |||||
const params = encodeURIComponent(JSON.stringify(orderInfo)) | const params = encodeURIComponent(JSON.stringify(orderInfo)) | ||||
jump("12", params) | jump("12", params) | ||||
} else { | } else { | ||||
//申请退货 | //申请退货 | ||||
const gotoReturnOrder = (orderInfo : any) => { | const gotoReturnOrder = (orderInfo : any) => { | ||||
if (orderInfo.agencyId == "52010106004") { | |||||
if (orderInfo.agencyId == agencyId) { | |||||
const params = encodeURIComponent(JSON.stringify(orderInfo)) | const params = encodeURIComponent(JSON.stringify(orderInfo)) | ||||
jump("8", params) | jump("8", params) | ||||
} else { | } else { | ||||
//申请换货 | //申请换货 | ||||
const gotoExchangeOrder = (orderInfo : any) => { | const gotoExchangeOrder = (orderInfo : any) => { | ||||
if (orderInfo.agencyId == "52010106004") { | |||||
if (orderInfo.agencyId == agencyId) { | |||||
const params = encodeURIComponent(JSON.stringify(orderInfo)) | const params = encodeURIComponent(JSON.stringify(orderInfo)) | ||||
jump("7", params) | jump("7", params) | ||||
} else { | } else { | ||||
} | } | ||||
//申请补货 | //申请补货 | ||||
const gotoReplenishmentOrder = (orderInfo : any) => { | const gotoReplenishmentOrder = (orderInfo : any) => { | ||||
if (orderInfo.agencyId == "52010106004") { | |||||
if (orderInfo.agencyId == agencyId) { | |||||
const params = encodeURIComponent(JSON.stringify(orderInfo)) | const params = encodeURIComponent(JSON.stringify(orderInfo)) | ||||
jump("9", params) | jump("9", params) | ||||
} | } | ||||
//去激活订单 | //去激活订单 | ||||
const gotoActiveOrder = (orderInfo : any) => { | const gotoActiveOrder = (orderInfo : any) => { | ||||
if (orderInfo.agencyId == "52010106004") { | |||||
if (orderInfo.agencyId == agencyId) { | |||||
const params = encodeURIComponent(JSON.stringify(orderInfo)) | const params = encodeURIComponent(JSON.stringify(orderInfo)) | ||||
jump("3", params) | jump("3", params) | ||||
} else { | } else { | ||||
} | } | ||||
//去签约 | //去签约 | ||||
const gotoOrderSign = (orderInfo : any) => { | const gotoOrderSign = (orderInfo : any) => { | ||||
//跳转到车辆信息变更界面 | |||||
// #ifdef MP-ALIPAY | |||||
navTo(`/subpackage/orders/release-products?orderId=${orderInfo.orderId}`); | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
navTo(`/subpackage/orders/release-products?orderId=${orderInfo.orderId}&&id=${orderInfo.id}&&clientFee=${orderInfo.amount}`); | |||||
// #endif | |||||
if (orderInfo.agencyId == agencyId) { | |||||
const params = encodeURIComponent(JSON.stringify(orderInfo)) | |||||
jump("12", params) | |||||
} else { | |||||
//跳转到车辆信息变更界面 | |||||
// #ifdef MP-ALIPAY | |||||
navTo(`/subpackage/orders/release-products?orderId=${orderInfo.orderId}`); | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
navTo(`/subpackage/orders/release-products?orderId=${orderInfo.orderId}&&id=${orderInfo.id}&&clientFee=${orderInfo.amount}`); | |||||
// #endif | |||||
} | |||||
} | } | ||||
//再次使用订单 | //再次使用订单 | ||||
const gotoAgainUseOrder = (orderInfo : any) => { | const gotoAgainUseOrder = (orderInfo : any) => { | ||||
} | } | ||||
//异地-邮寄地址填写 | //异地-邮寄地址填写 | ||||
const gotoAddressOrder=(orderInfo:any)=>{ | const gotoAddressOrder=(orderInfo:any)=>{ | ||||
if (orderInfo.agencyId == "52010106004") { | |||||
if (orderInfo.agencyId == agencyId) { | |||||
const params = encodeURIComponent(JSON.stringify(orderInfo)) | const params = encodeURIComponent(JSON.stringify(orderInfo)) | ||||
jump("13", params) | jump("13", params) | ||||
} | } |
"requiredPrivateInfos": ["chooseLocation", "getLocation", "chooseAddress"], | "requiredPrivateInfos": ["chooseLocation", "getLocation", "chooseAddress"], | ||||
"plugins": { | "plugins": { | ||||
"issuer-plugin": { | "issuer-plugin": { | ||||
"version": "dev-206d4a307ce40780758f0e3fbf5286a6", | |||||
"version": "dev-bc64e9cc4e4b9ef2aa1ede4c3b632243", | |||||
"provider": "wxa2d9acdd1054e69b" | "provider": "wxa2d9acdd1054e69b" | ||||
} | } | ||||
} | } |
<view class="btns" v-else-if="item.orderStep == OrderStatus.待激活"> | <view class="btns" v-else-if="item.orderStep == OrderStatus.待激活"> | ||||
<view class="btn btn-normal" @click.stop="gotoReturnOrder(item)" v-if="item.applyReturn">申请退货</view> | <view class="btn btn-normal" @click.stop="gotoReturnOrder(item)" v-if="item.applyReturn">申请退货</view> | ||||
<view class="btn btn-normal" @click.stop="gotoExchangeOrder(item)">申请换货</view> | <view class="btn btn-normal" @click.stop="gotoExchangeOrder(item)">申请换货</view> | ||||
<view class="btn btn-normal" @click.stop="gotoReplenishmentOrder(item)" v-if="item.agencyId=='52010106004'">申请补货</view> | |||||
<view class="btn btn-normal" @click.stop="gotoReplenishmentOrder(item)" v-if="item.agencyId==agencyId">申请补货</view> | |||||
<view class="btn btn-primary" @click.stop="gotoActiveOrder(item)">去激活</view> | <view class="btn btn-primary" @click.stop="gotoActiveOrder(item)">去激活</view> | ||||
<view class="btn btn-primary" @click.stop="closeOrder(item)" v-if="item.finishOrder">结束订单</view> | <view class="btn btn-primary" @click.stop="closeOrder(item)" v-if="item.finishOrder">结束订单</view> | ||||
</view> | </view> | ||||
<view class="btn btn-primary" @click.stop="gotoAgainUseOrder(item)">再次使用订单</view> | <view class="btn btn-primary" @click.stop="gotoAgainUseOrder(item)">再次使用订单</view> | ||||
</view> | </view> | ||||
<!-- 异地-邮寄地址填写 --> | <!-- 异地-邮寄地址填写 --> | ||||
<view class="btns" v-else-if="item.orderStep == OrderStatus.邮寄地址填写 && item.agencyId=='52010106004'"> | |||||
<view class="btns" v-else-if="item.orderStep == OrderStatus.邮寄地址填写 && item.agencyId==agencyId"> | |||||
<view class="btn btn-primary" @click.stop="gotoAddressOrder(item)">邮寄地址填写</view> | <view class="btn btn-primary" @click.stop="gotoAddressOrder(item)">邮寄地址填写</view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<script lang="ts" setup> | <script lang="ts" setup> | ||||
import popupActiveOrder from "./popup-active-order.vue"; | import popupActiveOrder from "./popup-active-order.vue"; | ||||
import useOrderSkip from "@/composables/order/useOrderSkip"; | import useOrderSkip from "@/composables/order/useOrderSkip"; | ||||
import { agencyId } from "@/utils/network/difference"; | |||||
import { | import { | ||||
getOrderStatusName, | getOrderStatusName, | ||||
msg, | msg, |
import { getItem, StorageKeys, setItem } from "@/utils/storage"; | import { getItem, StorageKeys, setItem } from "@/utils/storage"; | ||||
import { stringToJson } from "@/utils/network/encryption"; | import { stringToJson } from "@/utils/network/encryption"; | ||||
import { jump } from "@/datas/9901Jump.js"; | import { jump } from "@/datas/9901Jump.js"; | ||||
import { agencyId } from "@/utils/network/difference"; | |||||
const state = reactive({ | const state = reactive({ | ||||
list: [], | list: [], | ||||
type: "",//1 OBU重新激活 2 卡签注销 3 更换设备 4卡签续期 5挂失解挂 6增补设备 | type: "",//1 OBU重新激活 2 卡签注销 3 更换设备 4卡签续期 5挂失解挂 6增补设备 | ||||
console.log(item.cardId); | console.log(item.cardId); | ||||
flag.value = i | flag.value = i | ||||
// 判断9901 | // 判断9901 | ||||
if (item.agencyId == "520101060041") { | |||||
if (item.agencyId == "agencyId") { | |||||
// OBU重新激活跳转 | // OBU重新激活跳转 | ||||
const params = encodeURIComponent(JSON.stringify(item)) | const params = encodeURIComponent(JSON.stringify(item)) | ||||
jump(state.type, params) | jump(state.type, params) |
bgc = "#FFFFFF" | bgc = "#FFFFFF" | ||||
// #endif | // #endif | ||||
// #ifdef MP-WEIXIN | // #ifdef MP-WEIXIN | ||||
bgc = "#F4F6FA" //52010106004 | |||||
bgc = "#F4F6FA" | |||||
// #endif | // #endif | ||||
const scrollTop = ref(0); //滚动距离 | const scrollTop = ref(0); //滚动距离 | ||||
bgc = "#FFFFFF" | bgc = "#FFFFFF" | ||||
// #endif | // #endif | ||||
// #ifdef MP-WEIXIN | // #ifdef MP-WEIXIN | ||||
bgc = "#F4F6FA" //52010106004 | |||||
bgc = "#F4F6FA" | |||||
// #endif | // #endif | ||||
const scrollTop = ref(0); //滚动距离 | const scrollTop = ref(0); //滚动距离 |
<view class="btn-green" @click.stop="gotoAgainUseOrder(state.orderInfo)">再次使用订单</view> | <view class="btn-green" @click.stop="gotoAgainUseOrder(state.orderInfo)">再次使用订单</view> | ||||
</view> | </view> | ||||
<!-- 异地-邮寄地址填写 --> | <!-- 异地-邮寄地址填写 --> | ||||
<view v-if="state.orderInfo.orderStep == OrderStatus.邮寄地址填写 && state.orderInfo.agencyId=='52010106004'" | |||||
<view v-if="state.orderInfo.orderStep == OrderStatus.邮寄地址填写 && state.orderInfo.agencyId==agencyId" | |||||
class="btn-status"> | class="btn-status"> | ||||
<view class="btn-green" @click.stop="gotoAddressOrder(state.orderInfo)">邮寄地址填写</view> | <view class="btn-green" @click.stop="gotoAddressOrder(state.orderInfo)">邮寄地址填写</view> | ||||
</view> | </view> | ||||
import useOrderSkip from "@/composables/order/useOrderSkip"; | import useOrderSkip from "@/composables/order/useOrderSkip"; | ||||
import { getETCStatusName, getOBUStatusName, msg, getOrderTypeName, getCarTypeName, getOrderTime, isBlank, timesDiff } from "@/utils/utils"; | import { getETCStatusName, getOBUStatusName, msg, getOrderTypeName, getCarTypeName, getOrderTime, isBlank, timesDiff } from "@/utils/utils"; | ||||
import { OrderStatus } from "@/datas/enum"; | import { OrderStatus } from "@/datas/enum"; | ||||
import { source } from "@/utils/network/difference"; | |||||
import {agencyId} from "@/utils/network/difference"; | |||||
const state = reactive({ | const state = reactive({ | ||||
orderInfo: { | orderInfo: { | ||||
orderInfoExt: {} | orderInfoExt: {} |
// #endif | // #endif | ||||
// #ifdef MP-WEIXIN | // #ifdef MP-WEIXIN | ||||
export const channelId = "5201010200601130001" // | export const channelId = "5201010200601130001" // | ||||
// #endif | |||||
// #endif | |||||
// 9901渠道 | |||||
export const agencyId = "52010106004" |