yangteng 7 месяцев назад
Родитель
Сommit
5639f1ab91

+ 17
- 17
subpackage/after-sale/card-Renewal/renewal-confirm.vue Просмотреть файл

onShow onShow
} from "@dcloudio/uni-app"; } from "@dcloudio/uni-app";
import { import {
request
request,requestNew
} from "@/utils/network/request.js"; } from "@/utils/network/request.js";
import { import {
orderDetail,
cardRenewal,
writeCardBack,
cardModifyConfirm,
obuRenewal,
orderDetailQuery,
cardRenewalFromWechat,
cardCosConfirm,
cardRenewalConfirm,
obuRenewalFromWechat,
modifyObuVehicleInfo, modifyObuVehicleInfo,
obuActivation, obuActivation,
renewalTimeApi renewalTimeApi
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(orderDetail, options).then((res) => {
let orderInfo = JSON.parse(res.bizContent);
requestNew(orderDetailQuery, options).then((res) => {
let orderInfo = res;
console.log("orderInfo", orderInfo); console.log("orderInfo", orderInfo);
orderInfos.orderId = orderInfo.orderId; orderInfos.orderId = orderInfo.orderId;
orderInfos.customerName = orderInfo.customerName; orderInfos.customerName = orderInfo.customerName;
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(cardRenewal, options).then((res) => {
let result = stringToJson(res.bizContent);
requestNew(cardRenewalFromWechat, options).then((res) => {
let result = res;
let cmdArray = result.command.split(","); let cmdArray = result.command.split(",");
console.log(cmdArray); console.log(cmdArray);
console.log(result.cosRecordId); console.log(result.cosRecordId);
}; };


//调用方式 //调用方式
request(writeCardBack, options)
requestNew(cardCosConfirm, options)
.then((res) => { .then((res) => {
tools.hideLoadingAlert(); tools.hideLoadingAlert();
let result = JSON.parse(res.bizContent);
let result = res;
if (result.orderStatus == 1 || result.orderStatus == "1") { if (result.orderStatus == 1 || result.orderStatus == "1") {
tools.showLoadingAlert("执行指令中"); tools.showLoadingAlert("执行指令中");
bluetoothUtil.transCmd(result.command.split(","), "10", function(res) { bluetoothUtil.transCmd(result.command.split(","), "10", function(res) {
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(cardModifyConfirm, options).then((res) => {
requestNew(cardRenewalConfirm, options).then((res) => {
// 只写卡 // 只写卡
if (flag.length == 1) { if (flag.length == 1) {
sure(1) sure(1)
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(obuRenewal, options).then((res) => {
let datas = stringToJson(res.bizContent);
requestNew(obuRenewalFromWechat, options).then((res) => {
let datas = res;
console.log("899", datas, datas.data.APDU); console.log("899", datas, datas.data.APDU);
if (datas.data.APDU) { if (datas.data.APDU) {
tools.showLoadingAlert("正在执行指令"); tools.showLoadingAlert("正在执行指令");
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(orderDetail, options).then((res) => {
orderInfo = JSON.parse(res.bizContent);
requestNew(orderDetailQuery, options).then((res) => {
orderInfo = res;
console.log("orderInfo", orderInfo); console.log("orderInfo", orderInfo);
console.log("orderInfores", res); console.log("orderInfores", res);
if (orderInfo) { if (orderInfo) {

+ 1
- 6
subpackage/orders/invoiceApply/invoice-content.vue Просмотреть файл

navTo, msg navTo, msg
} from "@/utils/utils"; } from "@/utils/utils";
import { reactive, ref } from "vue"; import { reactive, ref } from "vue";
import { onLoad, onReachBottom, onShow } from "@dcloudio/uni-app";
import { onLoad, onReachBottom} from "@dcloudio/uni-app";
import { queryEtcOrderApi, getUserMsg, trafficFlowApi } from "@/utils/network/api.js"; import { queryEtcOrderApi, getUserMsg, trafficFlowApi } from "@/utils/network/api.js";
import { stringToJson } from "@/utils/network/encryption"; import { stringToJson } from "@/utils/network/encryption";
import { request } from "@/utils/network/request.js"; import { request } from "@/utils/network/request.js";
state.type = option.type state.type = option.type
getUserinfo() getUserinfo()
}) })
// onShow(() => {
// if (state.type == 1) {
// etcOrder(1)
// }
// })
const value = ref('') const value = ref('')
const getUserinfo = () => { const getUserinfo = () => {
const options = { const options = {

+ 5
- 6
subpackage/orders/invoiceApply/invoice-header-add.vue Просмотреть файл

ref, ref,
reactive reactive
} from "vue"; } from "vue";
import { addInvoiceApi, queryEtcOrderApi } from "@/utils/network/api.js";
import { request } from "@/utils/network/request.js";
import { stringToJson } from "@/utils/network/encryption";
import { msg, checkStr } from "@/utils/utils";
import { billRaiseInsert } from "@/utils/network/api.js";
import {requestNew } from "@/utils/network/request.js";
import { msg } from "@/utils/utils";
import { onLoad } from "@dcloudio/uni-app"; import { onLoad } from "@dcloudio/uni-app";
const form = reactive({ const form = reactive({
titleType: 1, //抬头类型 1-单位抬头 2个人抬头 titleType: 1, //抬头类型 1-单位抬头 2个人抬头
showLoading: true, showLoading: true,
}; };


request(addInvoiceApi, options).then((res) => {
const data = stringToJson(res.bizContent);
requestNew(billRaiseInsert, options).then((res) => {
const data =res;
console.log("data", data) console.log("data", data)
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1

+ 7
- 7
subpackage/orders/invoiceApply/invoice-header-edit.vue Просмотреть файл

ref, ref,
reactive reactive
} from "vue"; } from "vue";
import { editInvoiceHeaderApi, delInvoiceHeaderApi } from "@/utils/network/api.js";
import { request } from "@/utils/network/request.js";
import { billRaiseUpdate, billRaiseDelete } from "@/utils/network/api.js";
import { requestNew } from "@/utils/network/request.js";
import { stringToJson } from "@/utils/network/encryption"; import { stringToJson } from "@/utils/network/encryption";
import { msg, checkStr } from "@/utils/utils";
import { msg} from "@/utils/utils";
import { onLoad } from "@dcloudio/uni-app"; import { onLoad } from "@dcloudio/uni-app";
const form = reactive({ const form = reactive({
titleType: 1, //抬头类型 1-单位抬头 2个人抬头 titleType: 1, //抬头类型 1-单位抬头 2个人抬头
showLoading: true, showLoading: true,
}; };


request(editInvoiceHeaderApi, options).then((res) => {
const data = stringToJson(res.bizContent);
requestNew(billRaiseUpdate, options).then((res) => {
const data = res;
console.log("data", data) console.log("data", data)
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1
showLoading: true, showLoading: true,
}; };


request(delInvoiceHeaderApi, options).then((res) => {
const data = stringToJson(res.bizContent);
requestNew(billRaiseDelete, options).then((res) => {
const data = res;
console.log("data", data) console.log("data", data)
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1

+ 4
- 4
subpackage/orders/invoiceApply/invoice-header-list.vue Просмотреть файл

import { import {
navTo, navTo,
} from "@/utils/utils"; } from "@/utils/utils";
import { queryInvoiceHeaderApi, getUserMsg } from "@/utils/network/api.js";
import { billRaiseSelect, getUserMsg } from "@/utils/network/api.js";
import { stringToJson } from "@/utils/network/encryption"; import { stringToJson } from "@/utils/network/encryption";
import { request } from "@/utils/network/request.js";
import { request,requestNew } from "@/utils/network/request.js";
import { import {
getItem getItem
} from "@/utils/storage"; } from "@/utils/storage";
showLoading: true, showLoading: true,
}; };
console.log("options", options) console.log("options", options)
request(queryInvoiceHeaderApi, options).then((res) => {
const data = stringToJson(res.bizContent);
requestNew(billRaiseSelect, options).then((res) => {
const data = res;
form.data = data.titles form.data = data.titles
console.log("data", data.titles) console.log("data", data.titles)



+ 4
- 6
subpackage/orders/invoiceApply/invoiceList.vue Просмотреть файл

reactive reactive
} from "vue"; } from "vue";
import { onLoad, onReachBottom } from "@dcloudio/uni-app"; import { onLoad, onReachBottom } from "@dcloudio/uni-app";
import { invoiceQueryApi } from "@/utils/network/api.js";
import { stringToJson } from "@/utils/network/encryption";
import { request } from "@/utils/network/request.js";
import { msg } from "@/utils/utils";
import { billQueryBill } from "@/utils/network/api.js";
import { requestNew } from "@/utils/network/request.js";
const state = reactive({ const state = reactive({
userMobile: "", userMobile: "",
pageNumber: 1, pageNumber: 1,
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(invoiceQueryApi, options).then((res) => {
const data = stringToJson(res.bizContent);
requestNew(billQueryBill, options).then((res) => {
const data = res;
state.data = data.invoices state.data = data.invoices
console.log(data, "通行"); console.log(data, "通行");
}); });

+ 13
- 1
utils/network/api.js Просмотреть файл

export const trafficsuppleQueryList= "/iaw/trafficsupple/queryList" //通行流水欠费补缴信息查询 export const trafficsuppleQueryList= "/iaw/trafficsupple/queryList" //通行流水欠费补缴信息查询
export const trafficsuppleApply= "/iaw/trafficsupple/apply" //通行流水欠费补缴支付下单 export const trafficsuppleApply= "/iaw/trafficsupple/apply" //通行流水欠费补缴支付下单
export const trafficsupplePayQuery= "/iaw/trafficsupple/payQuery" //通行流水欠费补缴支付查询 export const trafficsupplePayQuery= "/iaw/trafficsupple/payQuery" //通行流水欠费补缴支付查询
export const trafficsupplObtainuserid= "/iaw/trafficsupple/obtainuserid" //统一会员平台获取第三方用户标识
export const trafficsupplObtainuserid= "/iaw/trafficsupple/obtainuserid" //统一会员平台获取第三方用户标识
// 发票
export const billRaiseSelect = "/iaw/invoice/bill/billRaiseSelect" // 查询发票抬头
export const billRaiseInsert = "/iaw/invoice/bill/billRaiseInsert" // 新增发票抬头
export const billRaiseUpdate = "/iaw/invoice/bill/billRaiseUpdate" // 修改发票抬头
export const billRaiseDelete = "/iaw/invoice/bill/billRaiseDelete" // 删除发票抬头
export const billQueryBill = "/iaw/invoice/bill/queryBill" // 发票查询
// 卡签续期
export const cardRenewalFromWechat = "/iaw/api/afterSale/renewal/cardRenewal/fromWechat" //小程序卡续期
export const cardRenewalConfirm = "/iaw/api/afterSale/renewal/cardRenewal/confirm" //卡续期确认
export const obuRenewalFromWechat = "/iaw/api/afterSale/renewal/obuRenewal/fromWechat" //小程序签续期
export const cardCosConfirm = "/iaw/api/active/cardCos/confirm" //写卡指令结果返回


Загрузка…
Отмена
Сохранить