Commit 5e5c1f98 by cen

fix: 修复显示bug

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