Commit 11c33c5f by yixinjj

Merge branch 'v1.0.7' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.7

2 parents 4783975d b0f9e3cb

891 KB | W: | H:

876 KB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin

30.1 KB | W: | H:

10.9 KB | W: | H:

assets/spritesmith/logo.png
assets/spritesmith/logo.png
assets/spritesmith/logo.png
assets/spritesmith/logo.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -413,6 +413,7 @@ export default {
border-radius: 48rpx;
margin-top: 48rpx;
height: calc(100vh - 440rpx);
margin-right: 66rpx;
.type-box {
position: relative;
display: flex;
......@@ -463,8 +464,8 @@ export default {
.list {
display: flex;
flex-wrap: wrap;
gap: 48rpx 60rpx;
padding: 0rpx 64rpx 20rpx;
gap: 40rpx 44rpx;
padding: 0rpx 0 20rpx 64rpx;
.item {
width: 608rpx;
background: #ffffff;
......@@ -573,6 +574,7 @@ export default {
font-family: "numberBold";
font-size: 48rpx;
font-weight: 700;
margin: 0 4rpx;
}
.unit {
font-weight: 500;
......
const target = ["ip", "dev", "uat", "prod", "beta"];
const index = 2;
const index = 1;
/**
*
0本地
......
......@@ -24,6 +24,7 @@ Vue.component("MessageBox", MessageBox);
Vue.component("wnCanvas", wnCanvas);
Vue.component("UpdateBox", UpdateBox);
uni.$api = api;
uni.$lock = false;
uni.$storage = new Storage();
uni.$throttle = utils.throttle;
uni.$isNetWork = utils.isNetWork;
......
......@@ -170,6 +170,7 @@ export default {
},
/**保存记录*/
saveRecord() {
uni.$lock = true;
const recordUrlList = this.audioInfo.audioList.map((i) => {
return {
status: UPLOAD_STATUS.fail,
......@@ -178,14 +179,15 @@ export default {
});
let recordList = JSON.parse(uni.$storage.get("recordList") || "[]");
recordList = [
...recordList,
{
...this.getParams(),
recordUrlList,
},
...recordList,
];
console.log(recordList, "recordList");
uni.$storage.set("recordList", JSON.stringify(recordList));
uni.$lock = false;
},
//结束接待
stopAudio: utils.throttle(async function (status) {
......
......@@ -7,21 +7,7 @@ let wv, getResult;
import { uploadFile, getOssToken } from "@/utils/ossUploadFile/uploadFile.js";
import config from "@/config.js";
export default {
onLoad() {
// #ifdef APP-PLUS
// wv = plus.webview.create("", "custom-webview", {
// plusrequire: "none", //禁止远程网页使用plus的API,有些使用mui制作的网页可能会监听plus.key,造成关闭页面混乱,可以通过这种方式禁止
// "uni-app": "none", //不加载uni-app渲染层框架,避免样式冲突
// top: uni.getSystemInfoSync().statusBarHeight + 44, //放置在titleNView下方。如果还想在webview上方加个地址栏的什么的,可以继续降低TOP值
// });
// wv.loadURL("/hybrid/html/index.html");
// var currentWebview = this.$scope.$getAppWebview(); //此对象相当于html5plus里的plus.webview.currentWebview()。在uni-app里vue页面直接使用plus.webview.currentWebview()无效
// currentWebview.append(wv); //一定要append到当前的页面里!!!才能跟随当前页面一起做动画,一起关闭
// setTimeout(function () {
// wv.setStyle({ top: "100%", height: 300 });
// }, 1000); //如果是首页的onload调用时需要延时一下,二级页面无需延时,可直接获取
// // #endif
},
onLoad() {},
mounted() {
// console.log(JSON.stringify(this))
var currentWebview = this.$parent.$scope.$getAppWebview(); //此对象相当于html5plus里的plus.webview.currentWebview()。在uni-app里vue页面直接使用plus.webview.currentWebview()无效
......@@ -43,9 +29,12 @@ export default {
checkRecord() {
uni.$isNetWork().then(async (res) => {
let recordList = JSON.parse(uni.$storage.get("recordList") || "[]");
console.log(recordList, "recordList");
for (let i = 0; i < recordList.length; i++) {
await this.handleRerord(recordList[i]);
try {
await this.handleRerord(recordList[i]);
} catch (error) {
continue;
}
}
});
},
......@@ -65,10 +54,6 @@ export default {
},
/**上传记录*/
async handleRerord(val) {
let recordList = JSON.parse(uni.$storage.get("recordList") || "[]");
let idx = recordList.findIndex(
(item) => item.receptionStartTime == val.receptionStartTime
);
let recordUrlList = val.recordUrlList;
// 上传失败的记录
for (let i of recordUrlList) {
......@@ -94,6 +79,9 @@ export default {
});
i.status = UPLOAD_STATUS.success;
i.file = config.OSS_DOMAIN + "/" + config.FOLDER + filePath;
} else {
this.sendSentry(result.detail.data[0].error);
throw "上传失败";
}
getResult = "";
break;
......@@ -106,12 +94,21 @@ export default {
// }
}
}
//目前处于保存中
if (uni.$lock) {
return;
}
// 判断是否全部上传成功
if (recordUrlList.every((i) => i.status == UPLOAD_STATUS.success)) {
val.recordUrlList = val.recordUrlList.map((i) => i.file);
try {
const res = await uni.$api.commonApi.saveRecCustomer(val);
console.log(res, val);
await uni.$api.commonApi.saveRecCustomer(val).then((res) => {
console.log(res);
});
let recordList = JSON.parse(uni.$storage.get("recordList") || "[]");
let idx = recordList.findIndex(
(item) => item.receptionStartTime == val.receptionStartTime
);
recordList.splice(idx, 1);
uni.$storage.set("recordList", JSON.stringify(recordList));
} catch (err) {
......@@ -119,6 +116,14 @@ export default {
}
}
},
sendSentry(msg) {
const { customerName, phoneNumber, carModel, staffName } =
this.$store.state.user.customerInfo;
const { name } = uni.$storage.get("userInfo");
this.$sendSentry(
`上传失败:手机号-${phoneNumber} 姓名-${customerName} 销售-${staffName} 车型-${carModel} 员工-${name},失败原因-${msg}`
);
},
async checkFileUpload(tempFilePath) {
console.log(tempFilePath);
let attempt = 0;
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-06-20 11:32:52
* @LastEditors: huyue
* @LastEditTime: 2024-06-26 16:28:12
* @LastEditTime: 2024-07-01 16:41:55
-->
<template>
<view class="layout" @click.prevent="touch">
......@@ -47,163 +47,10 @@
</view>
</template>
</wnCanvas>
<partsPop ref="partsRef"></partsPop>
<partsPop ref="partsRef" :screenList="screenList"></partsPop>
</view>
</template>
<script>
const list = [
{
name: "冷却系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-1.webp",
style: "width: 284rpx;height: 498rpx;float: left;",
class: "m-r-b",
description: '冷却风扇电机、散热器、冷却液水壶盖、冷却液水壶、冷却液循环泵'
},
{
name: "悬挂系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-2.webp",
style: "width: 582rpx;height: 330rpx;float: left;",
class: "m-r-b",
description: '前轮轴承、后轮轴承、平衡杆、平衡杆固定螺栓、平衡杆拉杆、减震器上座、减震器上座螺丝、减震 下摆臂'
},
{
name: "制动系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-3.webp",
style: "width: 288rpx;height: 330rpx;float: left;",
class: "m-r-b",
description: '骨制动踏板、真空泵、制动主缸、液压控制单元、液压管路、制动轮缸等'
},
{
name: "灯光照明系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-4.webp",
style: "width: 584rpx;height: 330rpx;float: left;",
class: "m-b",
description: '示宽灯开关、大灯开关、大灯变光开关、雾灯开关、转向灯开关、双闪灯开关、大灯清洗开关、仪表照明调节开关、灯光总成控制集成单元等'
},
{
name: "转向系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-9.webp",
style: "width: 284rpx;height: 242rpx; float: right;",
description: '转向机、转向柱、转向柱锁、转向连接杆(转向柱到转向机)、方向盘'
},
{
name: "传动系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-8.webp",
style: "width: 284rpx;height: 242rpx;float: right;",
class: "m-r-b",
description: '传动轴、传动轴固定螺丝、传动轴支撑、等速万向节、元宝梁、转向节'
},
{
name: "电气系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-7.webp",
style: "width: 584rpx;height: 498rpx;float: right;",
class: "m-r-b",
description: '发电机、档位开关、巡航定速开关、巡航控制传感器、巡航控制电机、车载充电器总成、座椅开关、座椅记录开关、后视镜电机、点火开关、点火线圈、起动机雨刮开关、雨刮电机、雨刮清洗电机、雨量传感器、中控锁开关、中央防盗控制单元、后备箱开关、油箱盖开关、天窗开关、天窗电机、组合仪表等'
},
{
name: "空调系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-6.webp",
style: "width: 286rpx;height: 498rpx;float: right;",
class: "m-r-b",
description: '空调压缩机、空调高压力传感器、空调低压力传感器、蒸发箱温度传感器、蒸发箱、暖风水箱、空调伺服电机、空调开关、空调控制单元、空调0形密封圈、压缩机高压管、压缩机低压管、膨胀阀'
},
{
name: "安全气囊系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-5.webp",
style: "width: 284rpx;height: 330rpx;float: right;",
class: "m-r-b",
description: '安全气囊模块(未开过封条/事故无效)、安全气囊碰撞传感器、安全气囊、安全带收紧器、安全带收紧器马达、安全带'
},
{
name: "智能辅助系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-10.webp",
style:
"width: 584rpx;height: 240rpx;position: absolute;top:604rpx;right:0;",
class: "",
description: '传感器:摄像头 雷达 激光雷达 超声波传感器等 执行器:电机刹车 转向等导航系统 语音控制系统 远程控制系统等'
},
{
name: "增程器",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-11.webp",
style: "width: 586rpx;height: 332rpx;float: left;",
class: "m-r",
description: '气缸体、曲轴油封、气缸盖垫、轴承盖轴瓦、轴承盖、止推垫片、飞轮、机油泵、集滤器、机油喷嘴 连杆轴盖瓦、连杆轴瓦、活塞卡环、活塞环、连杆 机油尺导向管、凸轮轴调节、电磁阀等'
},
{
name: "舒适系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-12.webp",
style: "width: 284rpx;height: 332rpx;float: left;",
class: "m-r",
description: '巡航定速开关、座椅开关、座椅记忆开关、座椅电机、转向辅助系统开关、多功能方向盘按键'
},
{
name: "ABS防抱死制动系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-13.webp",
style: "width: 582rpx;height: 332rpx;float: left;",
class: "m-r",
description: '传ABS传感器、电子驻车控制单元、制动信号灯开ABS控制单元、驻车制动器开关、电控驻车制动器伺服马达、制动总泵、制动分泵、制动液压硬管、制动踏板、支架制动钳、电子真空力泵等'
},
{
name: "娱乐系统",
detailUrl:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-14.webp",
style: "width: 286rpx;height: 332rpx;float: left;",
description: '导航控制系统、音响系统、视频/多媒体播放器、收音机、显示屏、语音控制系统等'
},
];
const ulList = [
{
index: "01",
name: "元宝梁",
value: "价值4千-1万元",
},
{
index: "02",
name: "转向节",
value: "价值2千-5千元",
},
{
index: "03",
name: "减震器上座",
value: "价值1千-3千元",
},
{
index: "04",
name: "智能中控屏",
value: "价值5千-3万元",
hasArrow: true,
flagName: "control",
},
{
index: "05",
name: "空调压缩机",
value: "价值4千-1.6万元",
hasArrow: true,
flagName: "compressor",
},
{
index: "06",
name: "空气悬挂",
value: "价值1万-1.3万元",
hasArrow: true,
flagName: "airSuspension",
},
];
import partsPop from './PartsPop.vue'
export default {
name: "Guarantee",
......@@ -212,12 +59,14 @@ export default {
penSwitch: Boolean,
title: String,
madiaId: Number,
ulList: Array,
screenList: Array
},
components: {partsPop},
data() {
return {
list,
ulList,
screenList,
showIndex: -1,
};
},
......
......@@ -7,27 +7,36 @@
<view class="card-item" v-for="item in historyList" :key="item.id">
<template>
<image
v-if="item.vdQuotationPaymentDoc && item.vdQuotationPaymentDoc.paymentDocUrl"
class="image-box"
:src="item.vdQuotationPaymentDoc.paymentDocUrl"
/>
<image
v-else
class="image-box"
src="https://img02.glsx.com.cn/weapp/resource/app-tape/media/common/pay.webp"
/>
<view class="gradient-overlay"></view>
</template>
<view class="name">{{ nameHide(item.customerName) }}</view>
<view class="goods-name">{{ item.customerName }}</view>
<view class="card-info">
<view class="label">车架号</view>
<view class="value">{{ item.carVin || "-" }}</view>
</view>
<view class="card-info">
<view class="label">工单号</view>
<view class="value">{{ item.payId }}</view>
</view>
<view class="card-info">
<view class="label">交易流水号</view>
<view class="value">{{ item.transactionNo }}</view>
</view>
<view class="card-info">
<view class="label">实收金额</view>
<view class="price"><view class="flag">¥</view>{{ accDiv(item.equityPrice) }}</view>
<view>
<view class="name">{{ nameHide(item.customerName) }}</view>
<view class="goods-name">{{ item.goodsName }}</view>
<view class="card-info">
<view class="label">车架号</view>
<view class="value">{{ item.carVin || "-" }}</view>
</view>
<view class="card-info">
<view class="label">工单号</view>
<view class="value">{{ item.payId }}</view>
</view>
<view class="card-info">
<view class="label">交易流水号</view>
<view class="value">{{ item.transactionNo }}</view>
</view>
<view class="card-info">
<view class="label">实收金额</view>
<view class="price"><view class="flag">¥</view>{{ accDiv(item.equityPrice) }}</view>
</view>
</view>
</view>
</view>
......@@ -59,7 +68,7 @@ export default {
isEnd: false,
currentPage: 1,
shopMerchantId: '',
goodsName: 'M5'
goodsName: null
}
},
watch: {
......@@ -212,8 +221,23 @@ export default {
right: 0rpx;
top: 0rpx;
width: 252rpx;
height: 372rpx;
height: 364rpx;
border-radius: 0 32rpx 32rpx 0;
z-index: -1;
}
.gradient-overlay {
z-index: -1;
position: absolute;
top: 0;
right: 0;
width: 252rpx;
height: 372rpx;
background: linear-gradient(
to left,
rgba(247, 249, 255, 0) 0%,
rgba(247, 249, 255, 1) 100%
);
}
}
}
}
......
......@@ -9,7 +9,7 @@
<view class="screen-container">
<image
class="screen-image"
src="https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/screen-1.webp"
:src="`https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/screen-${screenInfo.id}.webp`"
/>
<view class="feature-container">
<view class="feature-title">{{screenInfo.title}}</view>
......@@ -29,39 +29,20 @@
</template>
<script>
const SCREEN_INFO = [
{
name: 'control',
title: '中控大屏',
detail: '导航、控制、娱乐、通信、智能助手',
tips: '避免长时间暴晒、液体泼溅、硬物撞击。'
},
{
name: 'compressor',
title: '空调压缩机',
detail: '车内空气制冷、除湿,保持车内外空气循环',
tips: '正确启动和关闭,周期性清理灰尘及更换滤芯。'
},
{
name: 'airSuspension',
title: '空气悬挂',
detail: '提升通过性、驾驶舒适性及操控感',
tips: '避免异物卡阻或频繁调整悬挂高度,及时处理故障报警。'
}
]
export default {
name: 'PartsPop',
props: {
screenList: Array,
},
data() {
return {
screenInfo: {}
// screenInfo: SCREEN_INFO
}
},
methods: {
show(name) {
console.log(name,'====')
this.screenInfo = SCREEN_INFO.find(item => item.name === name)
this.screenInfo = this.screenList.find(item => item.name === name)
console.log(this.screenInfo)
this.$refs.partsRef.open("center");
},
......
......@@ -71,7 +71,7 @@
</view>
</template>
<script>
import upload from "@/utils/ossUploadFile/uploadFile.js";
import {uploadFile} from "@/utils/ossUploadFile/uploadFile.js";
import utils from "@/utils/utils";
const INFO_LIST = [
{
......@@ -104,7 +104,6 @@ export default {
watchBooksList: {
immediate: true,
handler (newValue) {
console.log(newValue, '===')
if (newValue.length) this.infoList = newValue
else this.infoList = JSON.parse(JSON.stringify(INFO_LIST))
},
......@@ -133,7 +132,7 @@ export default {
count: 1,
success: async (res) => {
// await upload(res.tempFilePath)
let url = await upload(res.tempFilePaths[0])
let url = await uploadFile(res.tempFilePaths[0])
// this.$set(
// this.infoList[index],
// "imgUrl",
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: huyue
* @LastEditTime: 2024-06-24 16:41:54
* @LastEditTime: 2024-07-01 16:38:24
-->
<template>
<view
......@@ -39,6 +39,8 @@
:madiaId="item.id"
:carTypeList="item.carTypeList || []"
@scale="scale"
:ulList="item.ulList"
:screenList="item.screenList"
/>
</view>
</template>
......@@ -153,10 +155,6 @@ export default {
choose (e) {
if (this.id == 1) this.$refs.media1[0].closeAllPopup()
this.$emit('update:id', e.id)
if (e.id == 2 || e.id == 4) {
console.log(this.$refs[`media${e.id}`][0].$refs)
this.$refs[`media${e.id}`][0].$refs.tabs.init()
}
},
back () {
this.$refs?.toolRef?.hide()
......
......@@ -235,6 +235,8 @@ export default {
}, 1500);
},
back() {
const detailRef = this.$refs.detail
if(detailRef.showPayPage) return detailRef.showPayPage = false
if (!this.id) return uni.navigateBack();
if (this.type != "preview") return this.$refs.home.finishRef.open();
this.backHome();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!