Sfoglia il codice sorgente

调整下单流程和新建报表模板页面

yxb
不甘寂寞 2 anni fa
parent
commit
f268e593ff

+ 1
- 1
subpackage/applyCard/choice-product.vue Vedi File

setItem("productId", val.id); setItem("productId", val.id);
setItem("isValueCard", val.isValueCard); setItem("isValueCard", val.isValueCard);
uni.redirectTo({ uni.redirectTo({
url: `/subpackage/applyCard/essential-information?orderId=${state.orderId}&vehiclePlateColor=${state.vehiclePlateColor}`,
url: `/subpackage/applyCard/essential-information?productId=${val.id}&userType=${state.userType}&type=${state.type}`,
}); });
// if (state.userType === 1) { // if (state.userType === 1) {

+ 43
- 11
subpackage/applyCard/essential-information.vue Vedi File

etcCreatOrder, etcCreatOrder,
etcVehiclePlateVer, etcVehiclePlateVer,
searchOrder, searchOrder,
productReCode,
} from "@/utils/network/api.js"; } from "@/utils/network/api.js";
import { request } from "@/utils/network/request.js"; import { request } from "@/utils/network/request.js";
import { reactive, ref } from "vue"; import { reactive, ref } from "vue";
region: "", region: "",
address: "", address: "",
postalCode: "", postalCode: "",
productId:"",
}, },
show: false, show: false,
addressArray: [],
addressArray: [],
}); });


/* 选择车牌颜色 */ /* 选择车牌颜色 */
orderGoAction(); orderGoAction();
} else { } else {
const data = stringToJson(res.bizContent); const data = stringToJson(res.bizContent);
console.log(data);
//提交产品信息
productReCodeAction(data.orderId).then((result)=>{
console.log(result);
if (state.data.userType === 1) {
uni.navigateTo({
url: `/subpackage/applyCard/opening-account-people?orderId=${data.orderId}&&vehiclePlateColor=${state.data.vehiclePlateColor}`,
});
} else {
uni.navigateTo({
url: `/subpackage/applyCard/opening-account-unit?orderId=${data.orderId}&&vehiclePlateColor=${state.data.vehiclePlateColor}`,
});
}
})
// uni.navigateTo({ // uni.navigateTo({
// url: `/subpackage/applyCard/choice-product?orderId=${data.orderId}&userType=${state.data.userType}&vehiclePlateColor=${state.data.vehiclePlateColor}`, // url: `/subpackage/applyCard/choice-product?orderId=${data.orderId}&userType=${state.data.userType}&vehiclePlateColor=${state.data.vehiclePlateColor}`,
// }) // })
// url: `/subpackage/applyCard/choice-product?orderId=${data.orderId}&userType=${state.data.userType}&vehiclePlateColor=${state.data.vehiclePlateColor}`, // url: `/subpackage/applyCard/choice-product?orderId=${data.orderId}&userType=${state.data.userType}&vehiclePlateColor=${state.data.vehiclePlateColor}`,
// }); // });


if (state.data.userType === 1) {
uni.navigateTo({
url: `/subpackage/applyCard/opening-account-people?orderId=${data.orderId}&&vehiclePlateColor=${state.data.vehiclePlateColor}`,
});
} else {
uni.navigateTo({
url: `/subpackage/applyCard/opening-account-unit?orderId=${data.orderId}&&vehiclePlateColor=${state.data.vehiclePlateColor}`,
});
}
} }
}); });
}); });
console.log(val); console.log(val);
//完成填写基本信息 //完成填写基本信息
if (val.orderStep === 1) { if (val.orderStep === 1) {
if (state.data.userType === "1") {
if (state.data.userType === 1) {
uni.redirectTo({ uni.redirectTo({
url: `/subpackage/applyCard/opening-account-people?orderId=${val.orderId}&&vehiclePlateColor=${val.vehiclePlateColor}`, url: `/subpackage/applyCard/opening-account-people?orderId=${val.orderId}&&vehiclePlateColor=${val.vehiclePlateColor}`,
}); });
state.data.opId = getItem(StorageKeys.OpenId); state.data.opId = getItem(StorageKeys.OpenId);
state.data.type = option.type; //客车 state.data.type = option.type; //客车
state.data.userType = option.userType; state.data.userType = option.userType;
state.data.productId = option.productId;
}); });


//监听页面滚动 //监听页面滚动
}); });
} }
}); });

const productReCodeAction = (orderId) => {
var data = {
productId: state.data.productId,
orderId: orderId,
};
const options = {
type: 2,
data: data,
method: "POST",
showLoading: true,
};

return new Promise(async (resolve, reject) => {
const res = await request(productReCode, options);
const data = stringToJson(res.bizContent);
resolve(data);
}).catch((error) => {
reject(error);
});
};
</script> </script>


<style lang="scss" scoped> <style lang="scss" scoped>

+ 82
- 13
subpackage/personal-center/excel.vue Vedi File

<template> <template>
<view>
<view class="wrapper">
<view class="tabel">
<view class="tr">
<view class="th">仓库名称</view>
<view class="th">设备类型</view>
<view class="th">库存数量</view>
<view class="th">剩余可用数量</view>
</view>
<view class="tr">
<view class="td">黔通智联仓库1</view>
<view class="td">2X储值卡</view>
<view class="td">10000</view>
<view class="td">100001</view>
</view>
<view class="tr">
<view class="td">黔通智联仓库2</view>
<view class="td">2X储值卡</view>
<view class="td">10000</view>
<view class="td">100001</view>
</view>
<view class="tr">
<view class="td">黔通智联仓库3</view>
<view class="td">2X储值卡</view>
<view class="td">100022</view>
<view class="td">10000</view>
</view>
<view class="tr">
<view class="td">黔通智联仓库4</view>
<view class="td">2X储值卡</view>
<view class="td">188000</view>
<view class="td">100001</view>
</view>
</view>
</view> </view>
</template> </template>


<script> <script>
export default {
data() {
return {
}
},
methods: {
}
}

</script> </script>


<style> <style>

page {
background: #eef7f7;
}
</style> </style>
<style scoped>
.wrapper {
padding: 30rpx;
}

.tabel {
display: table;
border-collapse: collapse;
overflow-x: auto;
word-break: keep-all;
white-space: nowrap;
background-color: #FFFFFF;
font-size: 28rpx;
width: 100%;
}

.tabel .tr {
display: table-row;
}

.tabel .tr .th {
display: table-cell;
height: 72rpx;
line-height: 72rpx;
text-align: center;
border: 1rpx solid #DDDDDD;
border-right: none;
border-bottom: none;
background-color: #00B38B;
color: #FFFFFF;
font-weight: bold;
box-sizing: border-box;
}

.tabel .tr .td {
padding: 0rpx 10rpx;
display: table-cell;
height: 60rpx;
line-height: 60rpx;
text-align: center;
border: 1rpx solid #DDDDDD;
border-right: none;
box-sizing: border-box;
}
</style>

Loading…
Annulla
Salva