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