Commit 5e5c1f98 by cen

fix: 修复显示bug

1 parent 26a22b11
......@@ -32,7 +32,7 @@
</view>
<view v-if="orderCardDetail.subOrderList.length > 2" class="goods-more">
<text @click="showAllGoodsList">
<text @click.stop="showAllGoodsList">
{{ orderCardDetail.showAllGoodsListFlag ? '收起' : '查看全部' }}
</text>
(共{{ orderCardDetail.subOrderList.length }}件)
......
......@@ -170,7 +170,7 @@
<PublishPopup ref="tipsPopup" popupClass="tipsPopup" type="center" :showClose="true" :showTitle="false" @confirm="confirmTips">
<template #content>
<view>
<image class="tipsPopupBg" src="@/assets/images/boutique/tipsPopupBg.png" />
<image class="tipsPopupBg" :src="popupBg" />
<view class="title">重要提示</view>
<view class="tipsConent">
<view>请检查店内是否配备POS机,确认信息后该工单将无法撤销或修改!</view>
......@@ -245,6 +245,7 @@ export default {
data() {
return {
...order_mixins.data,
popupBg: require('@/assets/images/boutique/tipsPopupBg.png'),
positionTypeList: [],
isErrorOrder: false,
orderInfo: null,
......
<template>
<view class="order">
<view class="common-title">{{ orderCreateType == 'createWithPay' ? '新建工单':'补录订单' }}</view>
<view class="common-title">{{ orderCreateType == 'createWithPay' ? '新建工单' : '补录订单' }}</view>
<view class="box">
<scroll-view class="scroll-view" scroll-y="true">
<view class="box-content">
<GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @inputBlur="inputBlur"
@handleCell="handleCell">
<GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @inputBlur="inputBlur" @handleCell="handleCell">
<template slot="frontGear">
<Product v-if="orderObj.frontGear" @changeTotalPrice="changeTotalPrice" :list="orderObj.frontGear" :positionTypeList="positionTypeList"
:baseConfigData="baseConfigData"></Product>
<Product v-if="orderObj.frontGear" @changeTotalPrice="changeTotalPrice" :list="orderObj.frontGear" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
</template>
<template slot="frontWindow">
<Product v-if="orderObj.frontWindow" @changeTotalPrice="changeTotalPrice" :list="orderObj.frontWindow" :positionTypeList="positionTypeList"
:baseConfigData="baseConfigData"></Product>
<Product v-if="orderObj.frontWindow" @changeTotalPrice="changeTotalPrice" :list="orderObj.frontWindow" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
</template>
<template slot="rearWindow">
<Product v-if="orderObj.rearWindow" @changeTotalPrice="changeTotalPrice" :list="orderObj.rearWindow" :positionTypeList="positionTypeList"
:baseConfigData="baseConfigData"></Product>
<Product v-if="orderObj.rearWindow" @changeTotalPrice="changeTotalPrice" :list="orderObj.rearWindow" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
</template>
<template slot="rearGear">
<Product v-if="orderObj.rearGear" @changeTotalPrice="changeTotalPrice" :list="orderObj.rearGear" :positionTypeList="positionTypeList"
:baseConfigData="baseConfigData"></Product>
<Product v-if="orderObj.rearGear" @changeTotalPrice="changeTotalPrice" :list="orderObj.rearGear" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
</template>
<template slot="sunRoof">
<Product v-if="orderObj.sunRoof" @changeTotalPrice="changeTotalPrice" :list="orderObj.sunRoof" :positionTypeList="positionTypeList"
:baseConfigData="baseConfigData"></Product>
<Product v-if="orderObj.sunRoof" @changeTotalPrice="changeTotalPrice" :list="orderObj.sunRoof" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
</template>
<template slot="package">
<Package v-if="orderObj.package" @changeTotalPrice="changeTotalPrice" :list="orderObj.package" :positionTypeList="positionTypeList"></Package>
......@@ -230,7 +224,7 @@ export default {
// 埋点
if (this.orderCreateType == 'createWithPay' && !this.orderObj.id) {
uni.$track.add({ eventCode: 'app_create_order' })
} else if(this.orderCreateType == 'supplementOrder') {
} else if (this.orderCreateType == 'supplementOrder') {
uni.$track.add({ eventCode: 'app_supplement_order' })
}
const { userInfo } = this
......@@ -408,14 +402,14 @@ export default {
}
if (this.orderObj.standNo) {
const vinRex = /[A-Z0-9]{17}$/;
const vinRex = /^(?=.*[A-Za-z])[A-Za-z0-9]{17}$/
console.log(this.orderObj.standNo, vinRex.test(this.orderObj.standNo))
if (!vinRex.test(this.orderObj.standNo)) {
uni.showToast({
title: `请输入正确的VIN码`,
icon: 'none'
})
return false;
return false
}
}
......@@ -522,7 +516,7 @@ export default {
})
if (this.orderCreateType == 'createWithPay' && !this.orderObj.id) {
uni.$track.add({ eventCode: 'app_submit_create_order' })
} else if(this.orderCreateType == 'supplementOrder') {
} else if (this.orderCreateType == 'supplementOrder') {
uni.$track.add({ eventCode: 'app_submit_supplement_order' })
}
this.$emit('jump', orderCreateType == 'supplementOrder' ? 'OrderDetail' : 'ConfirmOrder', res)
......
......@@ -380,7 +380,7 @@ export default {
}
if (this.orderObj.standNo) {
const vinRex = /[A-Z0-9]{17}$/
const vinRex = /^(?=.*[A-Za-z])[A-Za-z0-9]{17}$/
console.log(this.orderObj.standNo, vinRex.test(this.orderObj.standNo))
if (!vinRex.test(this.orderObj.standNo)) {
uni.showToast({
......
......@@ -6,7 +6,7 @@
<uni-icons class="checkbox-filled" type="checkbox-filled" color="#4ac18e"></uni-icons>
<view>
<view class="fs-34 fw-5">客户已付款</view>
<view class="fs-26">技师施工完毕后可通知车主前来取车</view>
<view class="fs-26 mt-12">技师施工完毕后可通知车主前来取车</view>
</view>
<view class="sprite-icon icon-topTipsRightIcon topTipsRightIcon"></view>
</view>
......@@ -57,7 +57,7 @@
<text class="good-name">商品名称:{{ replaceItemText(item.upgradeGoodsName) || '' }}</text>
<text class="good-price">¥{{ item.price }}</text>
</view>
<view class="flex justify-between align-center pt-6">
<view class="flex justify-between align-center mt-12">
<text class="good-alias">商品别名:{{ replaceItemText(item.upgradeGoodsAlias) || '' }}</text>
</view>
<view class="flex align-center pt-12">
......@@ -66,7 +66,7 @@
</view>
</view>
</view>
<view class="flex align-center py-8">
<view class="flex align-center my-16">
<view class="sprite-icon icon-coupon fs-14"></view>
<text class="fs-14 coupon-name">{{ orderInfo.couponName || '' }}{{ orderInfo.customerCoupon.customerCouponCode || '' }}({{ orderInfo.customerCoupon.employeeName || '' }})</text>
</view>
......@@ -101,7 +101,7 @@
<view class="sprite-icon icon-icon-copy copy"></view>
</view>
<view class="customize-btn" v-if="item.dateChange" @click.stop="customizeDate">自定义</view>
<!-- <view class="customize-btn" v-if="item.dateChange" @click.stop="customizeDate">自定义</view> -->
</view>
<view v-if="(orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7) && orderInfo.payVoucherList.length">
<view class="flex align-start pt-16">
......@@ -287,6 +287,7 @@ export default {
...order_mixins.data,
orderInfo: {},
baseConfigData: {},
customerService: '',
defaultCustomerService: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/kf.png',
failCustomerService: '../images/kfrefresh.png',
warrantyCardVisible: true,
......@@ -498,12 +499,6 @@ export default {
} else {
this.customerService = defaultCustomerService
}
// else {
// wx.$util.showToast(message)
// }
})
.catch(err => {
this.customerService = failCustomerService
})
// }, 3000)
},
......@@ -801,9 +796,18 @@ export default {
.mr-8 {
margin-right: toRpx(8);
}
.mt-12 {
margin-top: toRpx(12);
}
.my-16 {
margin: toRpx(16) 0;
}
.py-8 {
padding: toRpx(8) 0;
}
.py-16 {
padding: toRpx(16) 0;
}
.date-box {
display: flex;
align-items: center;
......
......@@ -268,7 +268,9 @@ export default {
},
openFilterConfirm(val) {
console.log(val)
this.searchObj = null
this.searchObj = val
console.log(this.searchObj)
this.search()
},
tabChange(index) {
......@@ -281,6 +283,10 @@ export default {
}
},
getStatByStatus() {
if ((this.searchObj.statusList && this.searchObj.statusList[0] == 'Y') || (this.searchObj.statusList && this.searchObj.statusList[0] == 'N')) {
this.searchObj.constructionFlag = this.searchObj.statusList[0]
delete this.searchObj.statusList
}
uni.$api.boutiqueApi
.statByStatus({
...this.searchObj,
......@@ -326,6 +332,7 @@ export default {
})
},
queryList(pageNo, pageSize) {
console.log(this.searchObj)
let obj = {
keyword: this.keyword,
pageSize,
......@@ -344,10 +351,13 @@ export default {
} else if (this.tabIndex == 1) {
obj.statusList = [1]
}
console.log(this.searchObj.statusList)
console.log(this.searchObj.statusList && this.searchObj.statusList[0])
if ((this.searchObj.statusList && this.searchObj.statusList[0] == 'Y') || (this.searchObj.statusList && this.searchObj.statusList[0] == 'N')) {
this.searchObj.constructionFlag = this.searchObj.statusList[0]
delete this.searchObj.statusList
delete obj.statusList
}
uni.$api.boutiqueApi
.getWorkPackageGoodsList(obj)
.then(result => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!