Commit 873855b1 by cen

fix: 修复工单确认页面样式

1 parent ed9bb8dc

2.61 MB | W: | H:

2.61 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin

2.93 KB | W: | H:

7.13 KB | W: | H:

assets/spritesmith/coupon.png
assets/spritesmith/coupon.png
assets/spritesmith/coupon.png
assets/spritesmith/coupon.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -55,20 +55,20 @@
<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 pt-12">
<text class="good-alias">商品别名:{{ replaceItemText(item.upgradeGoodsAlias) || '' }}</text>
</view>
<view class="flex align-center pt-12">
<view class="flex align-center pt-24">
<text class="good-sku">{{ item.positionStr || item.upgradeGoodsTypeName }}</text>
<text class="good-count">x{{ item.number }}</text>
</view>
</view>
</view>
<view class="flex align-center py-8" v-if="orderInfo">
<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 class="flex align-center py-16 coupon" v-if="orderInfo">
<view class="sprite-icon icon-coupon"></view>
<text class="fs-28 coupon-name">{{ orderInfo.couponName || '' }}{{ orderInfo.customerCoupon.customerCouponCode || '' }}({{ orderInfo.customerCoupon.employeeName || '' }})</text>
</view>
<view class="flex justify-end align-center" v-if="orderInfo">
<view class="flex justify-end align-center mt-24" v-if="orderInfo">
<text class="good-total-lable">商品总金额:</text>
<text class="good-total-value">
<text class="unit">¥</text>
......@@ -80,7 +80,7 @@
<view class="box-shell">
<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-8">
<view v-for="(item, index) in orderObj" :key="index" class="flex align-center pt-16">
<view class="label">{{ item.label }}</view>
<view v-if="item.key == 'status'">
<view class="value" :style="{ color: status[orderInfo.status].color || '' }">
......@@ -128,7 +128,7 @@
<view class="box-shell">
<view class="box-shell-title">客户信息</view>
<view class="order-info pt-16">
<view class="flex align-center pt-8" v-for="(item, index) in customerObj" :key="index">
<view class="flex align-center pt-16" 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">
......@@ -180,7 +180,7 @@
</PublishPopup>
<PublishPopup ref="calendarPopup" popupClass="calendarPopup" :showClose="false" :showTitle="false" @confirm="confirmCalendar">
<template #content>
<uni-calendar class="calendar" :showMonth="false" @change="calendarChange" />
<uni-calendar class="calendar" :showMonth="false" :endDate="endDate" @change="calendarChange" />
</template>
</PublishPopup>
<order-popup ref="openDate" popupType="13" @onConfirm="confirmDate" />
......@@ -231,7 +231,7 @@ export default {
this.getPositionList()
// "this.transmissionOfData.orderCode"
this.getDetail(this.transmissionOfData.orderCode)
this.successDate = dayjs().format('YYYY-MM-DD 00:00:00')
this.successDate = dayjs().format('YYYY-MM-DD HH:mm:00')
}
},
immediate: true
......@@ -247,7 +247,8 @@ export default {
selectDate: null,
time: null,
wxqrcode: '',
posQrCode: ''
posQrCode: '',
endDate: dayjs().format('YYYY-MM-DD')
}
},
mounted() {
......@@ -389,7 +390,7 @@ export default {
},
confirmDate(date) {
const { chooseContent } = date
this.successDate = dayjs(chooseContent).format('YYYY-MM-DD HH:mm:ss')
this.successDate = dayjs(chooseContent).format('YYYY-MM-DD HH:mm:00')
console.log(this.successDate)
},
calendarChange(date) {
......@@ -670,12 +671,18 @@ export default {
.pt-12 {
padding-top: toRpx(12);
}
.pt-24 {
padding-top: toRpx(24);
}
.fs-14 {
font-size: toRpx(14);
}
.fs-32 {
font-size: toRpx(32);
}
.fs-28 {
font-size: toRpx(28);
}
.fs-26 {
font-size: toRpx(26);
}
......@@ -691,8 +698,11 @@ export default {
.mt-16 {
margin-top: toRpx(16);
}
.py-8 {
padding: toRpx(8) 0;
.mt-24 {
margin-top: toRpx(24);
}
.py-16 {
padding: toRpx(16) 0;
}
.date-box {
display: flex;
......@@ -830,6 +840,7 @@ export default {
color: #999999;
font-size: toRpx(24);
font-weight: 400;
margin-right: toRpx(24);
}
.good-count {
color: #999999;
......@@ -838,12 +849,16 @@ export default {
}
}
}
.coupon-name {
color: #292d33;
font-size: toRpx(24);
font-weight: 400;
margin-left: toRpx(8);
.coupon {
border-bottom: 1px solid #f7f7f6;
.coupon-name {
color: #292d33;
font-size: toRpx(28);
font-weight: 400;
margin-left: toRpx(8);
}
}
.good-total-lable {
color: #757980;
font-size: toRpx(28);
......@@ -869,6 +884,8 @@ export default {
color: #222222;
font-size: toRpx(26);
font-weight: 400;
white-space: wrap;
flex: 1;
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!