Commit 6efe1bba by cen

fix: 修改页面样式,修复订单详情的bug

1 parent 23bd05d7

2.61 MB | W: | H:

2.65 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -92,19 +92,19 @@ ...@@ -92,19 +92,19 @@
<template #content> <template #content>
<view class="modatcontent"> <view class="modatcontent">
<view class="modalbox com" :class="selectType == 1 ? 'act' : ''" @click="changeType(1)"> <view class="modalbox com" :class="selectType == 1 ? 'act' : ''" @click="changeType(1)">
<view class="sprite-icon icon-create-order"></view> <view class="sprite-icon icon-createOrder"></view>
新增工单 新增工单
</view> </view>
<view class="modalbox cancle" :class="selectType == 2 ? 'act' : ''" @click="changeType(2)"> <view class="modalbox cancle" :class="selectType == 2 ? 'act' : ''" @click="changeType(2)">
<view class="sprite-icon icon-defeat-order"></view> <view class="sprite-icon icon-defeatOrder"></view>
战败下单 战败下单
</view> </view>
<view v-if="isSettingExpiredTraffic && !isScan" class="modalbox cancle" :class="selectType == 3 ? 'act' : ''" @click="changeType(3)"> <view v-if="isSettingExpiredTraffic && !isScan" class="modalbox cancle" :class="selectType == 3 ? 'act' : ''" @click="changeType(3)">
<view class="sprite-icon icon-expiration"></view> <view class="sprite-icon icon-isExpiredTrafficIcon"></view>
失效客户 失效客户
</view> </view>
<view class="modalbox cancle" v-if="orderCardDetail.constructionFlag !== 'Y' && orderCardDetail.selectPayType !== 1 && orderCardDetail.selectPayType !== 3 && orderCardDetail.selectPayType !== 4 && orderCardDetail.status !== 9" :class="selectType == 4 ? 'act' : ''" @click="changeType(4)"> <view class="modalbox cancle" v-if="orderCardDetail.constructionFlag !== 'Y' && orderCardDetail.selectPayType !== 1 && orderCardDetail.selectPayType !== 3 && orderCardDetail.selectPayType !== 4 && orderCardDetail.status !== 9" :class="selectType == 4 ? 'act' : ''" @click="changeType(4)">
<view class="sprite-icon icon-revoke"></view> <view class="sprite-icon icon-revokeOrder"></view>
撤销工单 撤销工单
</view> </view>
</view> </view>
...@@ -354,6 +354,9 @@ export default { ...@@ -354,6 +354,9 @@ export default {
& + .modalbox { & + .modalbox {
margin-top: toRpx(16); margin-top: toRpx(16);
} }
.sprite-icon {
margin: 0 toRpx(24) 0 toRpx(32);
}
} }
.act { .act {
......
...@@ -773,7 +773,7 @@ export default { ...@@ -773,7 +773,7 @@ export default {
background: linear-gradient(-90deg, #61c0ff 0%, #2c66f7 100%); background: linear-gradient(-90deg, #61c0ff 0%, #2c66f7 100%);
box-shadow: inset 0 0 toRpx(20) 0 #ffffff99; box-shadow: inset 0 0 toRpx(20) 0 #ffffff99;
color: #fff; color: #fff;
padding: 0 toRpx(32); padding: toRpx(48) toRpx(32);
} }
.box-shell { .box-shell {
width: 100%; width: 100%;
......
...@@ -87,7 +87,8 @@ export default { ...@@ -87,7 +87,8 @@ export default {
this.orderCreateType = newVal.type this.orderCreateType = newVal.type
// 新增订单处理 // 新增订单处理
const { const {
paramsData: { customer, customerCoupon, ...rest } paramsData: { customer, customerCoupon, ...rest },
isExpiredTraffic
} = newVal } = newVal
// 基础字段映射 // 基础字段映射
...@@ -452,7 +453,11 @@ export default { ...@@ -452,7 +453,11 @@ export default {
}) })
} }
obj.notUpgradeOrderList = [{ customer: obj.customer, subOrderList: obj.subOrderList, confirmIndex: false, isTouchMove: false, txtStyle: 'left:0' }] obj.notUpgradeOrderList = [{ customer: obj.customer, subOrderList: obj.subOrderList, confirmIndex: false, isTouchMove: false, txtStyle: 'left:0' }]
obj.subOrderList = !this.transmissionOfData.isExpiredTraffic ? obj.subOrderList : []
if (this.transmissionOfData.isExpiredTraffic) {
delete obj.customer?.['experienceFlag'] // 删除是否体验参数
obj['packageGoodsList'] = [] // 删除商品参数
}
delete obj.carBrand delete obj.carBrand
delete obj.couponInfo delete obj.couponInfo
delete obj.refusalReason delete obj.refusalReason
...@@ -679,6 +684,18 @@ export default { ...@@ -679,6 +684,18 @@ export default {
const cell = this.formList[2].find(item => item.value === key) const cell = this.formList[2].find(item => item.value === key)
if (cell) cell.hidden = arrMap[key].length === 0 if (cell) cell.hidden = arrMap[key].length === 0
}) })
// 失效客户进来的战败单
console.log(this.transmissionOfData, '失效客户进来的战败单')
console.log(this.formList, '失效客户进来的战败单')
if (this.transmissionOfData.isExpiredTraffic) {
this.formList[2].map(item => {
item.hidden = true
})
const isExpiredTrafficCell = this.formList[1].find(item => item.label === '是否体验')
if (isExpiredTrafficCell) {
isExpiredTrafficCell.hidden = true
}
}
const subOrderList = this.goodsList || [] const subOrderList = this.goodsList || []
let chooseList = [] let chooseList = []
...@@ -816,8 +833,9 @@ export default { ...@@ -816,8 +833,9 @@ export default {
}, },
reasonClick(text) { reasonClick(text) {
this.$set(this.orderObj, 'refusalReason', (this.orderObj?.refusalReason || '') + text) let refusalReason = (this.orderObj.refusalReason || '') + text
this.orderObj.customer.refusalReason = (this.orderObj.customer.refusalReason || '') + text this.orderObj.customer.refusalReason = refusalReason.substring(0, 30)
this.$set(this.orderObj, 'refusalReason', refusalReason.substring(0, 30))
console.log(this.orderObj.customer?.refusalReason) console.log(this.orderObj.customer?.refusalReason)
}, },
handleSpecificationsEcho(item) { handleSpecificationsEcho(item) {
......
...@@ -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 mt-12">技师施工完毕后可通知车主前来取车</view> <view class="fs-26 mt-12 cl-gray">技师施工完毕后可通知车主前来取车</view>
</view> </view>
<view class="sprite-icon icon-topTipsRightIcon topTipsRightIcon"></view> <view class="sprite-icon icon-topTipsRightIcon topTipsRightIcon"></view>
</view> </view>
...@@ -53,14 +53,14 @@ ...@@ -53,14 +53,14 @@
</view> </view>
<view class="good-list"> <view class="good-list">
<view class="good" v-for="(item, index) in orderInfo.subOrderList" :key="index"> <view class="good" v-for="(item, index) in orderInfo.subOrderList" :key="index">
<view class="flex justify-between align-center"> <view class="flex justify-between align-center mb-20">
<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 mt-20"> <view class="flex justify-between align-center mb-12" v-if="item.upgradeGoodsAlias">
<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">
<text class="good-sku">{{ item.positionStr || item.upgradeGoodsTypeName }}</text> <text class="good-sku">{{ item.positionStr || item.upgradeGoodsTypeName }}</text>
<text class="good-count">x{{ item.number }}</text> <text class="good-count">x{{ item.number }}</text>
</view> </view>
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
</view> </view>
</view> </view>
<view v-if="orderInfo.status == 5 || orderInfo.status == 12"> <view v-if="orderInfo.status == 5 || orderInfo.status == 12">
<view class="flex align-center pt-8"> <view class="flex align-center pt-16">
<view class="label">退款明细</view> <view class="label">退款明细</view>
<view class="value">{{ orderInfo.refundType == 1 ? '退全款' : '退部分款' }}¥{{ orderInfo.refundAmount }}</view> <view class="value">{{ orderInfo.refundType == 1 ? '退全款' : '退部分款' }}¥{{ orderInfo.refundAmount }}</view>
</view> </view>
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
</view> </view>
</view> </view>
<view v-if="orderInfo.selectPayType == 0" class="order-info"> <view v-if="orderInfo.selectPayType == 0" class="order-info">
<view class="flex align-center pt-8"> <view class="flex align-center pt-16">
<view class="label">拒升理由</view> <view class="label">拒升理由</view>
<view class="value"> <view class="value">
{{ orderInfo.customer.refusalReason ? orderInfo.customer.refusalReason : '' }} {{ orderInfo.customer.refusalReason ? orderInfo.customer.refusalReason : '' }}
...@@ -354,7 +354,8 @@ export default { ...@@ -354,7 +354,8 @@ export default {
this.warrantyCardList.push({ this.warrantyCardList.push({
warrantyPeriod: e.upgradeWarrantyPeriod, warrantyPeriod: e.upgradeWarrantyPeriod,
goodsName: e.upgradeGoodsAlias || e.upgradeGoodsName, goodsName: e.upgradeGoodsAlias || e.upgradeGoodsName,
cardCode: e.cardCode cardCode: e.cardCode,
warrantyPrice: e.warrantyPrice
}) })
} }
// 膜类商品 并且服务商开通了使用膜卷号配置 不走签名流程 // 膜类商品 并且服务商开通了使用膜卷号配置 不走签名流程
...@@ -743,7 +744,7 @@ export default { ...@@ -743,7 +744,7 @@ export default {
} }
} }
.scroll-y { .scroll-y {
height: calc(100% - #{toRpx(296)}); height: calc(100% - #{toRpx(248)});
overflow-y: scroll; overflow-y: scroll;
&::-webkit-scrollbar { &::-webkit-scrollbar {
width: 0; width: 0;
...@@ -772,6 +773,9 @@ export default { ...@@ -772,6 +773,9 @@ export default {
.pt-12 { .pt-12 {
padding-top: toRpx(12); padding-top: toRpx(12);
} }
.mb-12 {
margin-bottom: toRpx(12);
}
.fs-14 { .fs-14 {
font-size: toRpx(14); font-size: toRpx(14);
} }
...@@ -817,6 +821,12 @@ export default { ...@@ -817,6 +821,12 @@ export default {
.pt-32 { .pt-32 {
padding-top: toRpx(32) !important; padding-top: toRpx(32) !important;
} }
.mb-20 {
margin-bottom: toRpx(20);
}
.cl-gray {
color: #666666;
}
.date-box { .date-box {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -865,7 +875,7 @@ export default { ...@@ -865,7 +875,7 @@ export default {
height: toRpx(152); height: toRpx(152);
border-radius: toRpx(16); border-radius: toRpx(16);
background: linear-gradient(136.3deg, #fdffff 0%, #ebfff6 46%, #f4fffc 100%); background: linear-gradient(136.3deg, #fdffff 0%, #ebfff6 46%, #f4fffc 100%);
color: #666666; color: #333333;
padding: 0 toRpx(32); padding: 0 toRpx(32);
position: relative; position: relative;
.checkbox-filled { .checkbox-filled {
......
...@@ -741,6 +741,9 @@ export default { ...@@ -741,6 +741,9 @@ export default {
.message { .message {
.item { .item {
margin-bottom: toRpx(12); margin-bottom: toRpx(12);
&:last-child {
margin-bottom: 0;
}
} }
.label { .label {
color: #999ea8; color: #999ea8;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
交易流水号 交易流水号
<text class="required">*</text> <text class="required">*</text>
</view> </view>
<input v-model="outTradeNo" type="number" class="uni-input" maxlength="32" placeholder="请输入" /> <input @input="outTradeNoInput" class="uni-input" maxlength="150" placeholder="请输入" />
</view> </view>
<view class="payment"> <view class="payment">
<view class="payment-label"> <view class="payment-label">
...@@ -63,6 +63,9 @@ export default { ...@@ -63,6 +63,9 @@ export default {
} }
}) })
}, },
outTradeNoInput(value) {
this.outTradeNo = value.replace(/[\u4E00-\u9FA5]/g, '')
},
// 上传付款凭证 // 上传付款凭证
async upLoad(event) { async upLoad(event) {
console.log(event) console.log(event)
...@@ -122,7 +125,7 @@ export default { ...@@ -122,7 +125,7 @@ export default {
border-radius: toRpx(16); border-radius: toRpx(16);
background: #ffffff; background: #ffffff;
padding: toRpx(24) toRpx(32); padding: toRpx(24) toRpx(32);
margin-top: toRpx(16); // margin-top: toRpx(16);
.box-flow { .box-flow {
border-bottom: toRpx(2) solid #f7f7f6; border-bottom: toRpx(2) solid #f7f7f6;
padding-bottom: toRpx(28); padding-bottom: toRpx(28);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!