Commit 072227ac by 胡悦

Merge branch 'V4.56.0' of http://192.168.3.233:8090/glsx/gl_tape into V4.56.0

2 parents 936a4a3d ca19a6e0
......@@ -112,7 +112,7 @@ export default {
},
async getCustomerCouponList (customerPhone) {
const phoneRex = /^[1]([3-9])[0-9]{9}$/,
{ userInfo, params: formParams, data: orderObj } = this,
{ data: orderObj } = this,
params = {
customerPhone,
statusList: [0, 1],
......@@ -123,7 +123,7 @@ export default {
this.customerCouponList = data.filter((item) => {
return (
item.status != 1 ||
(item.status == 1 && item.customerCouponCode == orderObj[formParams.idKey])
(item.status == 1 && item.id == orderObj.customerCouponId)
);
})
}
......
......@@ -216,6 +216,12 @@ export default {
.picker {
height: 100%;
text-align: center;
.uni-picker-view-content>*{
display: flex;
align-items: center;
justify-content: center;
font-size: toRpx(32);
}
}
}
</style>
\ No newline at end of file
......@@ -280,7 +280,7 @@ export default {
position: relative;
color: #333333;
font-size: toRpx(32);
padding: toRpx(14) toRpx(16);
padding: toRpx(14) toRpx(32);
word-break: break-all;
text-align: center;
.sprite-icon {
......
......@@ -9,14 +9,19 @@
:class="['item',{active: checkActive(item)}]"
>
<view class="title flex">
<view class="icon">
<view class="icon flex">
<uni-icons
type="circle"
:size="16"
:size="20"
color="#8C8C8C"
class="uni-icons"
class="circle"
></uni-icons>
<uni-icons
type="checkbox-filled"
:size="20"
color="#2c66f7"
class="filled"
></uni-icons>
<view class="sprite-icon icon-notice-success"></view>
</view>
{{item.packageGoods.packageAlias||item.packageGoods.packageName}}
<text class="price">¥{{item.packageGoods.upgradePrice}}</text>
......@@ -67,7 +72,7 @@ export default {
merchantId: shopMerchantId,
sceneType
})
this.updateParams(params, data || [])
this.updateParams(params, data || [])
},
handleSearch (searchValue) {
if (!searchValue) this.searchStatus = false
......@@ -155,12 +160,12 @@ export default {
margin-left: auto;
}
.title {
line-height: toRpx(44);
height: toRpx(88);
padding: toRpx(24) 0 toRpx(20);
.icon {
margin-right: toRpx(16);
}
.sprite-icon {
.filled {
display: none;
}
}
......@@ -191,10 +196,10 @@ export default {
color: #2c66f7;
.icon {
.uni-icons {
.circle {
display: none;
}
.sprite-icon {
.filled {
display: block;
}
}
......
......@@ -109,8 +109,11 @@ export default {
},
methods: {
initList () {
let { data, params: { idKey } } = this
this.currentId = data[idKey]
let { data, params: { idKey }, list } = this
if (data[idKey]) {
let item = list.find(val => val.value.join(',') == data[idKey].join(','))
this.currentId = item ? item.id : ''
}
this.$emit('onComplete')
}
}
......
......@@ -26,7 +26,7 @@ const screenList = [
title: '订单时间',
componentName: 'TimeList',
params: {
idKey: ['orderStartDate', 'orderEndDate'],
idKey: ['placeOrderStartDateStr', 'placeOrderEndDateStr'],
currentIdKey: 'orderTimeId',
},
......@@ -35,7 +35,7 @@ const screenList = [
title: '支付时间',
componentName: 'TimeList',
params: {
idKey: ['payStartDate', 'payEndDate'],
idKey: ['installUpgradeBeginTimeStr', 'installUpgradeEndTimeStr'],
currentIdKey: 'payTimeId',
},
......
......@@ -139,8 +139,8 @@ export default {
delete chooseContent.payTimeId
delete chooseContent.orderTimeId
Object.keys(chooseContent).map(e => {
if (e == 'orderStartDate' || e == 'payStartDate') chooseContent[e] = `${chooseContent[e]} 00:00:00`
if (e == 'orderEndDate' || e == 'payEndDate') chooseContent[e] = `${chooseContent[e]} 23:59:59`
if (e == 'placeOrderStartDateStr' || e == 'installUpgradeBeginTimeStr') chooseContent[e] = `${chooseContent[e]} 00:00:00`
if (e == 'placeOrderEndDateStr' || e == 'installUpgradeEndTimeStr') chooseContent[e] = `${chooseContent[e]} 23:59:59`
})
this.$emit('onConfirm', chooseContent)
this.close()
......
......@@ -20,7 +20,7 @@
<view>
<view class="goods-list" :style="{ paddingBottom: orderCardDetail.subOrderList && orderCardDetail.subOrderList.length < 1 ? '0' : '' }" v-if="orderCardDetail.subOrderList && orderCardDetail.subOrderList.length > 0">
<view>
<view v-for="(i, sindex) in orderCardDetail.subOrderList" :key="sindex" class="goods flex justify-between" v-if="orderCardDetail.showAllGoodsListFlag ? true : sindex < 2">
<view v-for="(i, sindex) in orderCardDetail.subOrderList" :key="sindex" class="goods flex justify-between" :class="{ 'no-margin': orderCardDetail.subOrderList.length === 1 }" v-if="orderCardDetail.showAllGoodsListFlag ? true : sindex < 2">
<view class="goods-name text-hide flex">
<view class="point"></view>
{{ i.upgradeGoodsAlias || i.upgradeGoodsName || i.packageName || '' }}
......@@ -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 }}件)
......@@ -524,7 +524,10 @@ export default {
color: #333333;
font-size: toRpx(28);
font-weight: 400;
padding-top: toRpx(12);
margin-bottom: toRpx(16);
&.no-margin {
margin-bottom: 0;
}
.goods-name {
.point {
width: toRpx(12);
......
......@@ -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
......@@ -410,14 +404,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
}
}
......@@ -524,7 +518,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)
......
......@@ -717,7 +717,6 @@ export default {
width: 100%;
height: toRpx(80);
border-radius: toRpx(48);
border: toRpx(2) solid #979797;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff;
font-size: toRpx(28);
......@@ -726,7 +725,6 @@ export default {
.cancel-btn {
background: #3b73ff1a;
color: #4673ff;
border: toRpx(2) solid #fff;
}
}
}
......
......@@ -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({
......
<template>
<view class="order-detail">
<view class="common-title">{{ orderInfo.constructionFlag == 'Y' && orderInfo.status != 10 ? '完成施工' : '工单详情' }}</view>
<view v-if="isShow" class="px-48 scroll-y" :class="{ 'construction-flag-y': orderInfo && orderInfo.constructionFlag !== 'Y' && !isMake }">
<view v-if="isShow" class="px-48 scroll-y" :class="{ 'construction-flag-y': !isMake }">
<view class="top-tips flex align-center" v-if="orderInfo.status != 10 && orderInfo.status != 9 && orderInfo.constructionFlag !== 'Y'">
<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-20">
<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>
......@@ -79,7 +79,7 @@
</view>
</view>
<!-- 工单信息 -->
<view class="box-shell">
<view class="box-shell pt-32">
<view class="box-shell-title">工单信息</view>
<view class="order-info pt-16">
<view v-for="(item, index) in orderObj" :key="index" class="flex align-center pt-16">
......@@ -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">
......@@ -130,7 +130,7 @@
<view class="box-shell">
<view class="box-shell-title">客户信息</view>
<view class="order-info pt-16">
<view class="flex align-center pt-16" v-for="(item, index) in customerObj" :key="index">
<view class="flex align-center pt-20" v-for="(item, index) in customerObj" :key="index">
<view class="label">{{ item.label }}</view>
<view class="value" :style="{ color: item.color || '#333' }">
<view v-if="item.arr">
......@@ -166,7 +166,7 @@
<view class="box">
<view class="box-shell-title">{{ orderInfo.selectPayType == 0 ? '客服' : '质保信息' }}</view>
<view class="warranty-list" v-for="(item, index) in warrantyCardList" :key="index">
<view class="warranty flex align-center justify-between pt-8">
<view class="warranty flex align-center justify-between pt-20">
<view class="flex align-center">
<view class="label">质保产品</view>
<view class="value">{{ replaceItemText(item.goodsName) }}</view>
......@@ -176,11 +176,11 @@
质保价格
</view>
</view>
<view class="warranty flex align-center pt-8">
<view class="warranty flex align-center pt-20">
<view class="label">质保期</view>
<view class="value">{{ item.warrantyPeriod }}</view>
</view>
<view class="warranty flex align-start pt-8">
<view class="warranty flex align-start pt-20">
<view class="label">质保编码</view>
<view class="codeImg-box">
<image v-if="item.barCodeUrl" :src="item.barCodeUrl" class="barCodeImg" />
......@@ -190,7 +190,7 @@
</view>
<view class="warranty-list">
<view class="warranty flex align-start pt-8">
<view class="warranty flex align-start pt-20">
<view class="label">{{ orderInfo.selectPayType == 0 ? '客服号' : '质保查询' }}</view>
<view class="value">
<view class="warranty-tips" v-if="warrantyCardVisible">
......@@ -206,9 +206,9 @@
<view class="flex align-center footer-box justify-center" v-if="isMake">
<view class="edit btn flex-1" @click="repeal">撤销工单</view>
</view>
<view class="flex align-center footer-box justify-center" v-if="orderInfo.constructionFlag == 'Y'">
<!-- <view class="flex align-center footer-box justify-center" v-if="orderInfo.constructionFlag == 'Y'">
<view class="edit btn flex-1" @click="repeal">再来一单</view>
</view>
</view> -->
<!-- 已支付4 战败2 已评价6 三种状态才展示 并且不是通过失效客户录入的战败单 -->
<view v-if="!userInfo.isSuper && userInfo.loginRole != 3 && userInfo.loginRole != 6 && userInfo.userType == 2 && (orderInfo.status == 4 || orderInfo.status == 2 || orderInfo.status == 6) && ((orderInfo.subOrderList && orderInfo.subOrderList.length) || (orderInfo.packageGoodsList && orderInfo.packageGoodsList.length))">
<!-- 不需要走签名逻辑 -->
......@@ -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)
},
......@@ -771,6 +766,9 @@ export default {
.pt-16 {
padding-top: toRpx(16);
}
.pt-20 {
padding-top: toRpx(20);
}
.pt-12 {
padding-top: toRpx(12);
}
......@@ -801,9 +799,24 @@ export default {
.mr-8 {
margin-right: toRpx(8);
}
.mt-12 {
margin-top: toRpx(12);
}
.mt-20 {
margin-top: toRpx(20);
}
.my-16 {
margin: toRpx(16) 0;
}
.py-8 {
padding: toRpx(8) 0;
}
.py-16 {
padding: toRpx(16) 0;
}
.pt-32 {
padding-top: toRpx(32) !important;
}
.date-box {
display: flex;
align-items: center;
......@@ -928,7 +941,7 @@ export default {
font-size: toRpx(28);
border-radius: toRpx(24);
background: #f5f7fa;
padding: toRpx(24);
padding: toRpx(30) toRpx(24) toRpx(24) toRpx(24);
margin-bottom: toRpx(16);
.good-name {
font-weight: 400;
......
......@@ -268,7 +268,9 @@ export default {
},
openFilterConfirm(val) {
console.log(val)
this.searchObj = null
this.searchObj = val
console.log(this.searchObj)
this.search()
},
copyText(e) {
......@@ -294,6 +296,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,
......@@ -339,6 +345,7 @@ export default {
})
},
queryList(pageNo, pageSize) {
console.log(this.searchObj)
let obj = {
keyword: this.keyword,
pageSize,
......@@ -357,10 +364,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 => {
......@@ -525,7 +535,8 @@ export default {
}
.search-box {
padding: toRpx(40) toRpx(48) toRpx(24);
padding: toRpx(40) toRpx(48) toRpx(0);
margin-bottom: toRpx(24);
position: relative;
&::after {
content: '';
......@@ -593,11 +604,10 @@ export default {
.tab-container {
display: flex;
// justify-content: start;
padding: toRpx(0) toRpx(48) toRpx(24);
height: toRpx(80);
margin-bottom: toRpx(20);
padding: toRpx(0) toRpx(48);
margin-bottom: toRpx(24);
.filter-item {
width: toRpx(164);
// width: toRpx(164);
height: toRpx(72);
border-radius: toRpx(16);
background: #fff;
......@@ -605,14 +615,16 @@ export default {
color: #333333;
font-size: toRpx(28);
font-weight: 400;
padding: toRpx(0) toRpx(40);
}
}
.tab-item {
width: toRpx(164);
// width: toRpx(164);
height: toRpx(72);
border-radius: toRpx(16);
margin-right: toRpx(16);
margin-right: toRpx(20);
padding: toRpx(0) toRpx(40);
opacity: 1;
display: flex;
align-items: center;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!