Commit 9b0fec4b by cen

Merge branch 'SAAS+V5.5.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V5.5.0

2 parents d87cef07 ea702a3a
...@@ -25,25 +25,34 @@ ...@@ -25,25 +25,34 @@
<view class="mask-box"></view> <view class="mask-box"></view>
</template> </template>
<template v-else> <template v-else>
<view class="type-box-v2">
<view <scroll-view
:class="['tab-item',{active:tabIndex == index}]" scroll-x
v-for="(i, index) in typeList" enable-flex
:key="index" class="scroll-box"
@click="tabClick(index)" :scroll-into-view="`tab-id-${tabIndex}`"
> >
<template v-if="index == 0"> <view class="type-box-v2">
<view class="sprite-icon icon-first-right"></view> <view
</template> :class="['tab-item',{active:tabIndex == index}]"
<template v-else> v-for="(i, index) in typeList"
<view class="sprite-icon icon-second-left"></view> :key="index"
<view class="sprite-icon icon-second-right"></view> @click="tabClick(index)"
</template> :id="`tab-id-${index}`"
<view class="text"> >
{{ i[nameKey] }} <template v-if="index == 0">
<view class="sprite-icon icon-first-right"></view>
</template>
<template v-else>
<view class="sprite-icon icon-second-left"></view>
<view class="sprite-icon icon-second-right"></view>
</template>
<view class="text">
{{ i[nameKey] }}
</view>
</view> </view>
</view> </view>
</view> </scroll-view>
</template> </template>
</view> </view>
</template> </template>
...@@ -69,13 +78,14 @@ export default { ...@@ -69,13 +78,14 @@ export default {
data () { data () {
return { return {
firstClass: Object.freeze(['first-nav', 'second-nav']), firstClass: Object.freeze(['first-nav', 'second-nav']),
viewIndex: ''
} }
}, },
computed: { computed: {
blockLeft () { blockLeft () {
let { tabIndex } = this let { tabIndex } = this
return `${(tabIndex * 400) - (tabIndex == 0 ? 0 : 48)}rpx` return `${(tabIndex * 400) - (tabIndex == 0 ? 0 : 48)}rpx`
} },
}, },
mounted () { mounted () {
}, },
...@@ -90,7 +100,9 @@ export default { ...@@ -90,7 +100,9 @@ export default {
return className return className
}, },
tabClick (index) { tabClick (index) {
if(this.tabIndex == index) return if (this.tabIndex == index) return
// this.viewIndex = `tab-id-${index}`
// console.log(this.viewIndex)
this.$emit('update:tabIndex', index) this.$emit('update:tabIndex', index)
this.$emit('tabClick', index) this.$emit('tabClick', index)
} }
...@@ -156,6 +168,9 @@ export default { ...@@ -156,6 +168,9 @@ export default {
border-radius: toRpx(48); border-radius: toRpx(48);
overflow: hidden; overflow: hidden;
} }
.scroll-box {
width: 100%;
}
.type-box-v2 { .type-box-v2 {
position: relative; position: relative;
display: flex; display: flex;
...@@ -166,13 +181,12 @@ export default { ...@@ -166,13 +181,12 @@ export default {
border-radius: toRpx(48) toRpx(48) 0 0; border-radius: toRpx(48) toRpx(48) 0 0;
z-index: 0; z-index: 0;
flex-wrap: nowrap; flex-wrap: nowrap;
overflow-x: auto;
gap: 0 toRpx(80); gap: 0 toRpx(80);
.tab-item { .tab-item {
padding: 0 toRpx(40); padding: 0 toRpx(40);
flex-shrink: 0; flex-shrink: 0;
position: relative; position: relative;
&:first-of-type{ &:first-of-type {
padding-left: toRpx(80); padding-left: toRpx(80);
} }
.text { .text {
......
...@@ -932,7 +932,7 @@ export default { ...@@ -932,7 +932,7 @@ export default {
} }
orderObj.city = city orderObj.city = city
} }
if (customerInfo.carPrice) orderObj.price = customerInfo.carPrice if (customerInfo.carPrice) orderObj.price = this.divideByHundred(customerInfo.carPrice)
if (customerInfo.salesUuid) { if (customerInfo.salesUuid) {
orderObj.referrerId = customerInfo.salesUuid orderObj.referrerId = customerInfo.salesUuid
orderObj.referrer = customerInfo.salesName orderObj.referrer = customerInfo.salesName
...@@ -1046,12 +1046,12 @@ export default { ...@@ -1046,12 +1046,12 @@ export default {
color: #999; color: #999;
} }
.btns { .btns {
padding: 24rpx 128rpx; padding: toRpx(24) toRpx(128);
gap: 32rpx; gap: toRpx(32);
.save { .save {
background: #3b73ff1a; background: #3b73ff1a;
color: #4673ff; color: #4673ff;
font-size: 28rpx; font-size: toRpx(28);
font-weight: 500; font-weight: 500;
} }
} }
...@@ -1067,11 +1067,11 @@ export default { ...@@ -1067,11 +1067,11 @@ export default {
} }
.customer-title { .customer-title {
.customer-file { .customer-file {
margin-left: 20rpx; margin-left: toRpx(20);
color: #347bff; color: #347bff;
font-size: 24rpx; font-size: toRpx(24);
.sprite-icon { .sprite-icon {
margin-right: 4rpx; margin-right: toRpx(4);
} }
} }
} }
......
...@@ -873,7 +873,7 @@ export default { ...@@ -873,7 +873,7 @@ export default {
showModal = true showModal = true
carBandList.forEach(el => { carBandList.forEach(el => {
if (el.brandType == item.brandType) { if (el.brandType == item.brandType) {
context += `【${item.tabName}】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值${item.differenceValue context += `【${el.tabName}】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值${item.differenceValue
},请相关驻店销售对齐核销再次提交\t\n` },请相关驻店销售对齐核销再次提交\t\n`
} }
}) })
......
...@@ -425,8 +425,10 @@ export default { ...@@ -425,8 +425,10 @@ export default {
break break
case 'price': case 'price':
// 处理去报价 // 处理去报价
this.$emit('jump', 'CreateOrder', { paramsData: this.orderCardDetail, type: 'CreateOrder' })
break break
case 'pay': case 'pay':
this.$emit('openPay',this.orderCardDetail)
// 处理去支付 // 处理去支付
break break
case 'defeat': case 'defeat':
......
...@@ -22,9 +22,14 @@ ...@@ -22,9 +22,14 @@
</view> </view>
<z-paging ref="paging" :fixed="false" paging-class="paging-class px-48" :loading-full-fixed="false" :auto-show-system-loading="true" :show-scrollbar="false" v-model="dataList" @query="queryList" :default-page-size="10"> <z-paging ref="paging" :fixed="false" paging-class="paging-class px-48" :loading-full-fixed="false" :auto-show-system-loading="true" :show-scrollbar="false" v-model="dataList" @query="queryList" :default-page-size="10">
<OrderCard v-for="(item, index) in dataList" :key="index" :orderCardDetail="item" @toggle-goods-list="handleToggleGoodsList" @jump="jump" @refresh="search()"></OrderCard> <OrderCard v-for="(item, index) in dataList" :key="index" :orderCardDetail="item" @toggle-goods-list="handleToggleGoodsList" @jump="jump" @refresh="search()" @openPay="openPay"></OrderCard>
</z-paging> </z-paging>
<OrderScreenContract ref="openFilter" @onConfirm="openFilterConfirm" /> <OrderScreenContract ref="openFilter" @onConfirm="openFilterConfirm" />
<!-- 支付弹框 -->
<OrderPay
ref="OrderPay"
@jumpSuccess="jumpSuccess"
/>
</view> </view>
</template> </template>
...@@ -37,13 +42,16 @@ import PublishPopup from '@/components/PublishPopup.vue' ...@@ -37,13 +42,16 @@ import PublishPopup from '@/components/PublishPopup.vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import utils from '@/utils/utils' import utils from '@/utils/utils'
import OrderScreenContract from '@/components/OrderScreenContract/index.vue' import OrderScreenContract from '@/components/OrderScreenContract/index.vue'
import OrderPay from './OrderPay.vue'
export default { export default {
name: 'OrderManagement', name: 'OrderManagement',
mixins: [ZPMixin, interceptionMixin], mixins: [ZPMixin, interceptionMixin],
components: { components: {
OrderCard, OrderCard,
PublishPopup, PublishPopup,
OrderScreenContract OrderScreenContract,
OrderPay
}, },
computed: { computed: {
orderObj() { orderObj() {
...@@ -302,7 +310,13 @@ export default { ...@@ -302,7 +310,13 @@ export default {
jump(name, val) { jump(name, val) {
console.log(name, val, 'jump') console.log(name, val, 'jump')
this.$emit('jump', name, val) this.$emit('jump', name, val)
} },
openPay(item){
this.$refs.OrderPay.open(item.id)
},
jumpSuccess (params) {
this.$emit('jump', 'OrderDetail', params)
},
} }
} }
</script> </script>
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
@click="deleteGoods(index)" @click="deleteGoods(index)"
></view> ></view>
<view :class="['right',{'one-line':item.goodsFlag == 1}]"> <view :class="['right',{'one-line':item.goodsFlag == 1}]">
<view class="shop-name">{{ goodsName(item) }}</view> <view :class="['shop-name',{'name-top':item.goodsFlag == 2}]">{{ goodsName(item) }}</view>
<view <view
class="alias" class="alias"
v-if="item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods.goodsAlias" v-if="item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods.goodsAlias"
...@@ -69,46 +69,48 @@ ...@@ -69,46 +69,48 @@
{{item.multipleSpecificationsGoods.goods.specificationStr}} {{item.multipleSpecificationsGoods.goods.specificationStr}}
</view> </view>
</template> </template>
<template v-if="item.goodsFlag == 1"> <view class="front-number-box flex">
<template v-if="item.goods.goodsPriceModify"> <template v-if="item.goodsFlag == 1">
¥{{item.goods.sellPrice}} <template v-if="item.goods.goodsPriceModify">
</template> ¥{{item.goods.sellPrice}}
<template v-else> </template>
<view class="front-gear-input"> <template v-else>
<view class="unit">¥</view> <view class="front-gear-input">
<input <view class="unit">¥</view>
class="uni-input" <input
type="digit" class="uni-input"
maxlength="9" type="digit"
placeholder="请输入价格" maxlength="9"
placeholder-style="font-size: 14px" placeholder="请输入价格"
v-model="item.goods.sellPrice" placeholder-style="font-size: 14px"
@blur="validatePrice($event, item, index)" v-model="item.goods.sellPrice"
/> @blur="validatePrice($event, item, index)"
</view> />
</template> </view>
</template> </template>
<template v-else>
<template v-if="item.multipleSpecificationsGoods.goods.goodsPriceModify">
¥{{item.multipleSpecificationsGoods.goods.sellPrice}}
</template> </template>
<template v-else> <template v-else>
<view class="front-gear-input"> <template v-if="item.multipleSpecificationsGoods.goods.goodsPriceModify">
<view class="unit">¥</view> ¥{{item.multipleSpecificationsGoods.goods.sellPrice}}
<input </template>
class="uni-input" <template v-else>
type="digit" <view class="front-gear-input">
maxlength="9" <view class="unit">¥</view>
placeholder="请输入价格" <input
placeholder-style="font-size: 14px" class="uni-input"
v-model="item.multipleSpecificationsGoods.goods.sellPrice" type="digit"
@blur="validatePrice($event, item, index)" maxlength="9"
/> placeholder="请输入价格"
</view> placeholder-style="font-size: 14px"
v-model="item.multipleSpecificationsGoods.goods.sellPrice"
@blur="validatePrice($event, item, index)"
/>
</view>
</template>
</template> </template>
</template> <view class="number">
<view class="number"> x1
x1 </view>
</view> </view>
</view> </view>
</view> </view>
...@@ -218,7 +220,7 @@ export default { ...@@ -218,7 +220,7 @@ export default {
if (parseFloat(value) < 0 || parseFloat(value) == 0) { if (parseFloat(value) < 0 || parseFloat(value) == 0) {
value = '0' value = '0'
} }
// 检查最小价格 // 检查最小价格
// if (!item.multipleSpecificationsGoods) { // if (!item.multipleSpecificationsGoods) {
// // 普通商品的最小价格检查 // // 普通商品的最小价格检查
// if (item.goods.validMinSellPrice === 'Y' && item.goods.minSellPrice && parseFloat(value) < parseFloat(item.goods.minSellPrice)) { // if (item.goods.validMinSellPrice === 'Y' && item.goods.minSellPrice && parseFloat(value) < parseFloat(item.goods.minSellPrice)) {
...@@ -342,7 +344,7 @@ export default { ...@@ -342,7 +344,7 @@ export default {
total = NP.plus(total, i.sellPrice * i.number) total = NP.plus(total, i.sellPrice * i.number)
}) })
item.packageGoods.totalPrice = total item.packageGoods.totalPrice = total
return total.toFixed(2) return total
}, },
} }
} }
...@@ -350,7 +352,7 @@ export default { ...@@ -350,7 +352,7 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.shop-list { .shop-list {
padding: 0 toRpx(32) toRpx(32) 0; padding-right: toRpx(32);
.shop-item { .shop-item {
display: flex; display: flex;
...@@ -364,10 +366,12 @@ export default { ...@@ -364,10 +366,12 @@ export default {
flex: 1; flex: 1;
font-size: toRpx(28); font-size: toRpx(28);
margin-left: toRpx(24); margin-left: toRpx(24);
position: relative;
} }
.one-line { .one-line {
display: flex; display: flex;
align-items: center; align-items: center;
min-height: toRpx(72);
.front-gear-box { .front-gear-box {
margin-left: auto; margin-left: auto;
} }
...@@ -377,7 +381,9 @@ export default { ...@@ -377,7 +381,9 @@ export default {
max-width: 70%; max-width: 70%;
word-break: break-all; word-break: break-all;
} }
.name-top {
margin-top: toRpx(4);
}
.alias { .alias {
margin-top: toRpx(12); margin-top: toRpx(12);
font-size: toRpx(24); font-size: toRpx(24);
...@@ -394,34 +400,34 @@ export default { ...@@ -394,34 +400,34 @@ export default {
.total-price { .total-price {
margin-left: auto; margin-left: auto;
color: #292d33; color: #292d33;
font-size: 28rpx; font-size: toRpx(28);
font-weight: 400; font-weight: 400;
} }
} }
.line { .line {
width: calc(100% + 48rpx); width: calc(100% + #{toRpx(48)});
margin-left: -24rpx; margin-left: toMinusRpx(24);
height: 2rpx; height: toRpx(2);
background-color: #dce1e6; background-color: #dce1e6;
margin-top: 24rpx; margin-top: toRpx(24);
} }
.package-item { .package-item {
margin-top: 16rpx; margin-top: toRpx(16);
} }
.sprite-icon { .sprite-icon {
margin-right: 24rpx; margin-right: toRpx(24);
flex-shrink: 0; flex-shrink: 0;
} }
.package-icon { .package-icon {
width: 12rpx; width: toRpx(12);
height: 12rpx; height: toRpx(12);
border-radius: 50%; border-radius: 50%;
background: #4673ff; background: #4673ff;
margin-right: 16rpx; margin-right: toRpx(16);
} }
.package-label { .package-label {
color: #292d33; color: #292d33;
font-size: 28rpx; font-size: toRpx(28);
flex-shrink: 0; flex-shrink: 0;
max-width: 80%; max-width: 80%;
} }
...@@ -431,7 +437,14 @@ export default { ...@@ -431,7 +437,14 @@ export default {
} }
} }
.number { .number {
margin-left: 16rpx; margin-left: toRpx(16);
}
.front-number-box{
position: absolute;
top: 50%;
right: toRpx(24);
transform: translateY(-50%);
} }
} }
} }
...@@ -461,12 +474,13 @@ export default { ...@@ -461,12 +474,13 @@ export default {
.uni-input { .uni-input {
padding: 0 toRpx(32); padding: 0 toRpx(32);
height: 100%; height: 100%;
font-size: toRpx(28);
} }
.unit { .unit {
position: absolute; position: absolute;
top: 50%; top: 50%;
left: toRpx(32); left: toRpx(24);
transform: translateY(-50%); transform: translateY(-50%);
} }
} }
......
...@@ -147,7 +147,7 @@ export default { ...@@ -147,7 +147,7 @@ export default {
padding: 0 toRpx(48); padding: 0 toRpx(48);
} }
.back { .back {
height: 40rpx; height: toRpx(40);
} }
.upload-proof-of-payment { .upload-proof-of-payment {
width: 100%; width: 100%;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!