Commit 594f7ffe by zhangxw

施工单详情页面开发

1 parent 38ed417f
...@@ -6,23 +6,28 @@ ...@@ -6,23 +6,28 @@
<search-input bindsearch="search" value="{{searchValue}}" /> <search-input bindsearch="search" value="{{searchValue}}" />
<view class="box-title"> <view class="box-title">
<view>技师</view> <view>技师</view>
<view class="tips">使用<text bind:tap="goMiniprogram">生意助手小程序</text>登录创建技师</view> <!-- <view class="tips">使用<text bind:tap="goMiniprogram">生意助手小程序</text>登录创建技师</view> -->
</view> </view>
<scroll-view scroll-y style="height: calc(100% - var(--fontSize194));" enhanced="{{true}}" show-scrollbar="{{false}}"> <block wx:if="{{artificerList.length}}">
<block wx:for="{{artificerList}}" wx:key="index"> <scroll-view scroll-y style="height: calc(100% - var(--fontSize194));" enhanced="{{true}}" show-scrollbar="{{false}}">
<view class="artificerList {{item.active?'active':''}}" bindtap="changeItem" data-target="{{item}}" data-index="{{index}}"> <block wx:for="{{artificerList}}" wx:key="index">
<view class="checked_img"> <view class="artificerList {{item.active?'active':''}}" bindtap="changeItem" data-target="{{item}}" data-index="{{index}}">
<block wx:if="{{multiple}}"> <view class="checked_img">
<image src="{{item.active ? '../images/radio.png' : '../images/radio_icon.png'}}" /> <block wx:if="{{multiple}}">
</block> <image src="{{item.active ? '../images/radio.png' : '../images/radio_icon.png'}}" />
<block wx:else> </block>
<image wx:if="{{item.active}}" src="{{IMG_URL}}checked.png"></image> <block wx:else>
</block> <image wx:if="{{item.active}}" src="{{IMG_URL}}checked.png"></image>
</block>
</view>
<view class="text_box"><view class="text-hide {{item.disabled ? 'disabled' : ''}}">{{item.staffName}}</view></view>
</view> </view>
<view class="text_box"><view class="text-hide {{item.disabled ? 'disabled' : ''}}">{{item.staffName}}</view></view> </block>
</view> </scroll-view>
</block> </block>
</scroll-view> <block wx:else>
<empty-data style="width: 100%;" />
</block>
</view> </view>
</view> </view>
</view> </view>
......
/* pages/tabRepairOrder/pages/index/index.wxss */
\ No newline at end of file \ No newline at end of file
...@@ -9,8 +9,28 @@ module.exports = { ...@@ -9,8 +9,28 @@ module.exports = {
getCanRelateGoodsList(data) { getCanRelateGoodsList(data) {
return api.post('dj.api.smartcarlife.construction.list.subOrder', data) return api.post('dj.api.smartcarlife.construction.list.subOrder', data)
}, },
/**获取服务项目列表数据 */
getServiceItemList(data) {
return api.post('dj.api.carboutique.construction.item.page', data)
},
/**提交电子施工单 */ /**提交电子施工单 */
confirmConstruction(data) { confirmConstruction(data) {
return api.post('dj.api.smartcarlife.construction.addOrUpdate', data) return api.post('dj.api.smartcarlife.construction.addOrUpdate', data)
},
/**根据商品获取膜卷号数据 */
getfilmRollNoByGoods(data) {
return api.post('dj.api.smarcarlife.stock.filmroll.list', data)
},
/**物料出库 */
outboundAPI(data) {
return api.post('dj.api.smartcarlife.construction.outbound', data)
},
/**确认完成施工 */
completeConstructionOrder(data) {
return api.post('dj.api.smartcarlife.construction.complete', data)
},
/**审核施工单 */
approvalRepairOrder(data) {
return api.post('dj.api.smartcarlife.construction.approval', data)
} }
} }
\ No newline at end of file \ No newline at end of file
// tabWorkOrder/components/filmRollNoPopup/filmRollNoPopup.js
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
Component({
/**
* 组件的属性列表
*/
properties: {
show: {
type: Boolean,
observer: function(n) {
if (n) {
let { copyfilmRollNoList, filmSelectedItem } = this.data
console.log(filmSelectedItem, '===')
this.setData({
filmRollNoList: wx.$util.deepClone(copyfilmRollNoList),
selectedNumber: filmSelectedItem,
searchValue: ''
})
}
}
},
title: String,
filmSelectedItem: String,
copyfilmRollNoList: Array
},
/**
* 组件的初始数据
*/
data: {
orderObj: {},
IMG_URL,
filmRollNoList: [],
searchValue: ''
},
/**
* 组件的方法列表
*/
methods: {
search(e) {
let { copyfilmRollNoList } = wx.$util.deepClone(this.data)
let { value } = e.detail
if (!value) {
this.setData({
filmRollNoList: copyfilmRollNoList
})
} else {
let arr = []
copyfilmRollNoList.map(i => {
if (i.indexOf(value) != -1) {
arr.push(i)
}
})
this.setData({
filmRollNoList: arr
})
}
},
changeItem(e) {
let { target } = e.currentTarget.dataset
let { filmRollNoList } = this.data
let { copyfilmRollNoList } = wx.$util.deepClone(this.data)
this.setData({
filmRollNoList,
copyfilmRollNoList,
selectedNumber: target
})
},
cancel() {
this.triggerEvent('cancel')
},
// 打开生意助手小程序
goMiniprogram() {
wx.navigateToMiniProgram({
appId: 'wx2c28337db96364d2'
})
},
async confirm() {
let { selectedNumber } = this.data
if (!selectedNumber) {
wx.$util.showToast('请选择膜卷号')
}
this.triggerEvent('confirm', selectedNumber)
}
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
<!--tabWorkOrder/components/filmRollNoPopup/filmRollNoPopup.wxml-->
<popup show="{{show}}" bindconfirm="confirm" bindcancel="cancel" title="{{title}}" height="45%">
<view class="film-roll-number-select-popup-box" >
<view class="box">
<scroll-view wx:if="{{filmRollNoList.length}}" scroll-y style="height: 100%;" enhanced="{{true}}" show-scrollbar="{{false}}">
<block wx:for="{{filmRollNoList}}" wx:key="index">
<view class="film-roll-numberList {{item == selectedNumber?'active':''}}" bindtap="changeItem" data-target="{{item}}" data-index="{{index}}">
<view class="checked_img">
<image wx:if="{{item == selectedNumber}}" src="{{IMG_URL}}checked.png"></image>
</view>
<view class="text_box"><view class="text-hide">{{item}}</view></view>
</view>
</block>
</scroll-view>
</view>
</view>
</popup>
/* tabWorkOrder/components/filmRollNoPopup/filmRollNoPopup.wxss */
.film-roll-number-select-popup-box{
height: 100%;
width: calc(100% + var(--fontSize64));
transform: translateX(calc(-1 * var(--fontSize32)));
}
.sub-title {
height: var(--fontSize100);
font-size: var(--fontSize32);
color: #333333;
position: sticky;
left: 0;
top: 0;
background-color: #fff;
z-index: 2;
border-bottom: var(--fontSize2) solid #F9F9F9;
}
.text-hide {
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
.text-center{
display: flex;
align-items: center;
justify-content: center;
}
.box{
height: 100%;
padding: 0 var(--fontSize32);
}
.box-title{
color: #333333;
font-size: var(--fontSize32);
height: var(--fontSize88);
line-height: var(--fontSize88);
display: flex;
align-items: center;
justify-content: space-between;
}
.box-title .tips{
color: #333333;
font-size: var(--fontSize24);
}
.box-title .tips text{
color: #347BFF;
}
.film-roll-numberList {
width: calc(100% - var(--fontSize50));
height: var(--fontSize98);
display: flex;
align-items: center;
font-size: var(--fontSize28);
color: #292D33;
padding: 0 var(--fontSize25);
transition: all .5s;
}
.checked_img{
width: var(--fontSize32);
height: var(--fontSize32);
flex-shrink: 0;
margin-right: var(--fontSize20);
}
.film-roll-numberList .text_box{
flex: 1;
border-bottom: var(--fontSize2) solid #F9F9F9;
height: 100%;
line-height: var(--fontSize98);
}
.film-roll-numberList.active {
/* color: #347BFF; */
/* font-weight: 700; */
position: relative;
}
// tabRepairOrder/components/outboundPopup/index.js
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
import { createQrcodeImage } from '~/api/api'
import api from '../../api'
Component({
/**
* 组件的属性列表
*/
properties: {
show: {
type: Boolean,
observer: function(n) {
if (n) {
this.getDetailInfo()
}
}
},
title: String,
detailInfo: {
type: Object,
observer: function(n) {
if (n) {
this.setData({
infoData: wx.$util.deepClone(n)
})
}
}
}
},
/**
* 组件的初始数据
*/
data: {
IMG_URL,
infoData: {},
filmRollNoList: []
},
/**
* 组件的方法列表
*/
methods: {
async getDetailInfo() {
let userInfo = wx.$util.getUserInfo()
let oParams = {}
oParams.appId = 'wx570d9331f9ace0bd'
oParams.qrcodeType = 'QR_WXA_UNLIMIT'
oParams.path = 'pages/loading/loading'
oParams.scene = `merchantId=${userInfo.shopMerchantId}&yqMerchantId=${userInfo.merchantId}`
oParams.channelType = 1
const data = await createQrcodeImage(oParams)
},
// 选择膜卷号
handleRollNumber(e) {
let { target, index } = e.currentTarget.dataset
console.log(target)
// 获取膜卷号数据
api.getfilmRollNoByGoods({
// upgradeGoodsId: e.upgradeGoodsId,
// yqMerchantId: data?.sellerMerchantId,
// merchantId: data?.merchantId
upgradeGoodsId: 100942,
yqMerchantId: 44209880,
merchantId: 44211227
}).then(res => {
let { code, data, message } = res
if (code == 0) {
this.setData({
filmRollNoList: data || [],
filmRollNoVisible: true,
filmSelectedItem: target.rollNumber,
selectRollIndex: index
})
} else {
wx.$util.showToast(message)
}
})
},
// 膜卷号确认
changefilmRollNo(e) {
let { selectRollIndex } = this.data
this.setData({
[`infoData.subOrderList[${selectRollIndex}].rollNumber`]: e.detail
})
this.handelCancelRollPopup()
},
// 膜卷号取消
handelCancelRollPopup() {
this.setData({filmRollNoVisible: false})
},
// 实际用料输入框
handleInput(e) {
const { index } = e.currentTarget.dataset
let value = e.detail.value
value = value.replace(/[^\d.]/g, '')
// 处理多个小数点的情况,只保留第一个
const dotIndex = value.indexOf('.')
if (dotIndex !== -1) {
value = value.substring(0, dotIndex + 1) + value.substring(dotIndex + 1).replace(/\./g, '')
}
// 限制小数点后最多两位
if (dotIndex !== -1) {
const decimalPart = value.substring(dotIndex + 1)
if (decimalPart.length > 2) {
value = value.substring(0, dotIndex + 3)
}
}
// 转换为数字进行最大值验证
const numValue = parseFloat(value || 0)
if (!isNaN(numValue) && numValue > 99999.99) {
value = '99999.99'
}
this.setData({
[`infoData.subOrderList[${index}].materialStandard`]: value
});
},
// 产品出库时间
handleOutboundTime() {
this.setData({
timeVisible: true
})
},
// 产品出库时间确认
onTimeConfirm(e) {
console.log(e)
this.setData({
'infoData.outBoundTime': e.detail
})
this.onClosePicker()
},
// 产品出库时间弹窗取消
onClosePicker() {
this.setData({timeVisible: false})
},
// 关闭物料出库弹窗
cancel() {
this.triggerEvent('cancel')
},
confirm() {
let { infoData } = this.data
this.triggerEvent('confirm', infoData)
}
}
})
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"film-roll-no-popup": "../FilmRollNoPopup/FilmRollNoPopup",
"time-select": "../timeSelect/index"
}
}
\ No newline at end of file \ No newline at end of file
/* tabRepairOrder/components/outboundPopup/index.wxss */
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.outbound-popup-box {
height: calc(100% - var(--fontSize120));
.sub-title {
height: var(--fontSize112);
line-height: var(--fontSize112);
border-bottom: var(--fontSize1) solid #EBEDF0;
margin-bottom: var(--fontSize20);
.text-center {
text-align: center;
font-weight: 500;
color: #222222;
}
}
.outbound-box {
height: calc(100% - var(--fontSize114));
.scroll-box {
height: 100%;
}
.qrcode-box {
margin: 0 var(--fontSize32);
background: #F4F5F7;
border-radius: var(--fontSize11);
padding: var(--fontSize24);
display: flex;
flex-flow: column;
align-items: center;
image {
width: var(--fontSize256);
height: var(--fontSize256);
}
.tips {
margin-top: var(--fontSize16);
font-size: var(--fontSize24);
color: #757980;
}
}
.box {
padding: var(--fontSize40) var(--fontSize32) var(--fontSize2) var(--fontSize40);
position: relative;
margin: var(--fontSize20) 0 0;
.title {
font-size: var(--fontSize28);
color: #292D33;
margin-bottom: var(--fontSize20);
position: relative;
font-weight: 500;
&::after {
position: absolute;
content: '';
width: var(--fontSize8);
height: var(--fontSize44);
background: #347BFF;
left: calc(-1 * var(--fontSize40));
top: 50%;
transform: translateY(-50%);
}
.text-name {
max-width: calc(100% - var(--fontSize100));
}
}
.box-item {
display: flex;
align-items: center;
justify-content: space-between;
height: var(--fontSize104);
font-size: var(--fontSize28);
.label {
color: #292D33;
flex-shrink: 0;
width: var(--fontSize180);
.required {
color: #f00;
margin-left: var(--fontSize8);
}
}
.value-box {
width: calc(100% - var(--fontSize190));
display: flex;
align-items: center;
justify-content: flex-end;
}
.value {
text-align: right;
width: calc(100% - var(--fontSize32));
.placeholder {
color: #BEC1C7;
}
}
.pickerArrow {
width: var(--fontSize32);
height: var(--fontSize32);
}
}
.input-box {
.label {
width: var(--fontSize330);
}
.value {
width: var(--fontSize240);
.input {
width: 100%;
height: var(--fontSize68);
min-height: var(--fontSize68);
border: var(--fontSize2) solid #DEE0E3;
overflow: hidden;
border-radius: var(--fontSize8);
text-align: right;
box-sizing: border-box;
padding: 0 var(--fontSize20);
display: flex;
align-items: center;
justify-content: flex-end;
-webkit-appearance: none;
appearance: none;
&::placeholder {
position: relative;
top: 0;
transform: none;
}
}
.disabled {
background: #DEE0E3;
}
}
}
.time-box {
padding-bottom: var(--fontSize48);
}
}
}
}
.popup-footer {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--fontSize20) var(--fontSize32) ;
.btn {
height: var(--fontSize80);
box-sizing: border-box;
border-radius: var(--fontSize12);
font-size: var(--fontSize32);
text-align: center;
line-height: var(--fontSize80);
}
.cancel {
width: var(--fontSize186);
height: var(--fontSize76);
color: #292D33;
border: var(--fontSize2) solid #DEE0E3;
}
.confirm {
width: calc(100% - var(--fontSize206));
background: #347BFF;
color: #fff;
}
}
.popup-footer.isFullSucreen {
padding-bottom: var(--fontSize68) !important;
}
\ No newline at end of file \ No newline at end of file
<!--tabRepairOrder/components/outboundPopup/index.wxml-->
<wxs src="../../index.wxs" module="filter" />
<van-popup show="{{show}}" position="bottom" custom-style="height: 90%;" round closeable close-on-click-overlay="{{false}}" bind:close="cancel">
<view class="outbound-popup-box" >
<view class="sub-title">
<view class="text-center">{{title}}</view>
</view>
<view class="outbound-box">
<scroll-view scroll-y class="scroll-box" enhanced="{{true}}" show-scrollbar="{{false}}">
<view class="qrcode-box">
<image src="" mode=""/>
<view class="tips">请仓库管理员扫描此二维码确认产品实际用料</view>
</view>
<block wx:for="{{infoData.subOrderList}}" wx:key="index">
<view class="box">
<view class="title infoTitle">
<view class="text-name text-hide">{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || item.packageName||''}}</view>
</view>
<view class="box-item">
<view class="label">产品膜卷号</view>
<view class="value-box" bindtap="handleRollNumber" data-target="{{item}}" data-index="{{index}}">
<view class="value text-hide">
<block wx:if="{{item.rollNumber}}">{{item.rollNumber}}</block>
<block wx:else><view class='placeholder'>请选择</view></block>
</view>
<image class="pickerArrow" src="/components/images/arrow-x.png" />
</view>
</view>
<view class="box-item input-box">
<view class="label">产品实际用料(米/件)<text class='required'>*</text></view>
<view class="value">
<input class="input {{'disabled'}}" bindinput="handleInput" value="{{item.materialStandard}}" data-index="{{index}}" type="digit" placeholder-style="color: #BEC1C7;" placeholder="输入数字"/>
</view>
</view>
</view>
</block>
<view class="box">
<view class="title infoTitle">
出库时间
</view>
<view class="box-item time-box">
<view class="label" >产品出库时间</view>
<view class="value-box" bindtap="handleOutboundTime">
<view class="value text-hide">
<block wx:if="{{infoData.outBoundTime}}">{{infoData.outBoundTime}}</block>
<block wx:else><view class='placeholder'>请选择</view></block>
</view>
<image class="pickerArrow" src="/components/images/arrow-x.png" />
</view>
</view>
</view>
</scroll-view>
</view>
</view>
<view class="popup-footer {{ isFullSucreen?'isFullSucreen':'' }}">
<view class="cancel btn text-center" bind:tap="cancel">取消</view>
<view class="confirm btn text-center" bind:tap="confirm">确认核销出库</view>
</view>
</van-popup>
<film-roll-no-popup show="{{filmRollNoVisible}}" title="产品膜卷号" copyfilmRollNoList="{{filmRollNoList}}" filmSelectedItem="{{filmSelectedItem}}" bindconfirm="changefilmRollNo" bindcancel="handelCancelRollPopup"/>
<time-select show="{{timeVisible}}" title="产品出库时间" defaultTime="{{infoData.outBoundTime}}" bind:confirm="onTimeConfirm" bindcancel="onClosePicker"/>
\ No newline at end of file \ No newline at end of file
// tabRepairOrder/components/servicePopup/index.js // tabRepairOrder/components/servicePopup/index.js
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/' const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
import api from '../../api'
Component({ Component({
/** /**
...@@ -22,6 +23,7 @@ Component({ ...@@ -22,6 +23,7 @@ Component({
})) }))
}) })
this.setData({servicesList}) this.setData({servicesList})
this.getList()
} }
} }
}, },
...@@ -40,6 +42,12 @@ Component({ ...@@ -40,6 +42,12 @@ Component({
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
// 获取服务项目数据
getList() {
api.getServiceItemList({}).then(res => {
console.log(res)
})
},
// 服务项目选择 // 服务项目选择
handleChecked(e) { handleChecked(e) {
let { target } = e.currentTarget.dataset let { target } = e.currentTarget.dataset
......
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* tabRepairOrder/components/timeSelect/index.wxss */
.fixed-content {
height: 100%;
.fixed-body {
display: flex;
height: 100%;
.picker {
width: 20%;
height: 100%;
.view {
display: flex;
align-items: center;
justify-content: center;
font-size: var(--fontSize30);
color: #292D33;
}
}
.picker_max{
width: 40% !important;
}
}
}
\ No newline at end of file \ No newline at end of file
<!--tabRepairOrder/components/timeSelect/index.wxml-->
<popup show="{{show}}" title="{{title}}" bindconfirm="confirm" height="50%" bindcancel="cancel">
<view class="fixed-content">
<view class="fixed-body">
<picker-view class="picker picker_max" value="{{dateValues}}" indicator-class="indicator" bindchange="changeDate">
<picker-view-column>
<block wx:for="{{days}}" wx:key="index">
<view class="view">{{item}}</view>
</block>
</picker-view-column>
</picker-view>
<picker-view class="picker" value="{{hourValues}}" indicator-class="indicator" bindchange="changeHour">
<picker-view-column>
<block wx:for="{{hours}}" wx:key="index">
<view class="view">{{item}}</view>
</block>
</picker-view-column>
</picker-view>
<picker-view wx:if="{{!loading}}" class="picker" value="{{minuteValues}}" indicator-class="indicator" bindchange="changeMinutes">
<picker-view-column>
<block wx:for="{{minutes}}" wx:key="index">
<view class="view">{{item}}</view>
</block>
</picker-view-column>
</picker-view>
<picker-view wx:if="{{!loading}}" class="picker" value="{{secondValues}}" indicator-class="indicator" bindchange="changeMinutes">
<picker-view-column>
<block wx:for="{{seconds}}" wx:key="index">
<view class="view">{{item}}</view>
</block>
</picker-view-column>
</picker-view>
</view>
</view>
</popup>
\ No newline at end of file \ No newline at end of file
/* tabRepairOrder/pages/confirmWorkOrder/confirmWorkOrder.wxss */
\ No newline at end of file \ No newline at end of file
{ {
"usingComponents": {}, "usingComponents": {
"time-select": "../../components/timeSelect/index",
"outbound-popup": "../../components/outboundPopup/index"
},
"navigationBarTitleText": "施工单详情" "navigationBarTitleText": "施工单详情"
} }
\ No newline at end of file \ No newline at end of file
/* tabRepairOrder/pages/repairOrderDetail/index.wxss */
\ No newline at end of file \ No newline at end of file
/* tabRepairOrder/pages/repairOrderDetail/index.wxss */
page {
background: #F7F8FA;
}
.isFullSucreen {
padding-bottom: var(--fontSize228) !important;
}
.main {
.status-box {
background: #347BFF;
font-size: var(--fontSize28);
color: #FFFFFF;
padding: var(--fontSize48) var(--fontSize40) var(--fontSize48) var(--fontSize60);
box-sizing: border-box;
.user-info {
display: flex;
align-items: flex-end;
.hide-text {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
}
.car {
font-size: var(--fontSize40);
font-weight: 600;
margin-right: var(--fontSize8);
max-width: var(--fontSize400);
image {
width: var(--fontSize40);
height: var(--fontSize40);
margin-right: var(--fontSize20);
margin-top: var(--fontSize8);
}
}
.staff-name {
position: relative;
background: none;
max-width: var(--fontSize242);
&::before {
content: "(";
position: absolute;
left: 0;
top: 0;
}
&::after {
content: ")";
position: absolute;
right: 0;
bottom: 0;
}
.name {
padding-right: 0.8em;
text-indent: 1.2em;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2; /* 限制显示两行 */
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
}
}
margin-bottom: var(--fontSize32);
}
.content {
display: flex;
align-items: center;
justify-content: space-between;
.tips {
font-size: var(--fontSize24);
margin-right: var(--fontSize50);
}
.btn {
flex-shrink: 0;
padding: var(--fontSize8) var(--fontSize28);
border: var(--fontSize2) solid #FFFFFF;
border-radius: var(--fontSize30);
}
}
}
.box {
background: #FFFFFF;
box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 rgba(0, 0, 0, 0.10);
border-radius: var(--fontSize16);
padding: var(--fontSize40) var(--fontSize40) var(--fontSize2);
position: relative;
margin: var(--fontSize20) var(--fontSize20) 0;
.title {
font-size: var(--fontSize32);
color: #292D33;
margin-bottom: var(--fontSize20);
position: relative;
font-weight: 600;
&::after {
position: absolute;
content: '';
width: var(--fontSize8);
height: var(--fontSize44);
background: #347BFF;
left: calc(-1 * var(--fontSize40));
top: 50%;
transform: translateY(-50%);
}
}
.flex {
display: flex;
align-items: center;
justify-content: space-between;
.example {
font-weight: 400;
color: #347BFF;
font-size: var(--fontSize26);
}
}
.cell {
font-size: var(--fontSize28);
color: #999EA8;
display: flex;
align-items: flex-start;
margin-bottom: var(--fontSize32);
.label {
flex-shrink: 0;
width: var(--fontSize208);
}
.value {
color: #292D33;
display: flex;
flex-flow: wrap;
align-items: center;
}
.placeholder {
color: #BEC1C7;
}
.copy,.edit {
color: #347BFF;
margin-left: auto;
.image {
width: var(--fontSize32);
height: var(--fontSize32);
vertical-align: middle;
}
}
}
.image-box {
display: flex;
flex-wrap: wrap;
margin-bottom: var(--fontSize32);
.tire-block {
width: var(--fontSize196);
height: var(--fontSize196);
box-sizing: border-box;
background-color: #F4F5F7;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
border-radius: var(--fontSize8);
overflow: hidden;
&:not(:nth-child(3n)) {
margin-right: var(--fontSize20);
}
&:nth-child(n+4) {
margin-top: var(--fontSize20);
}
.tire-img-box {
position: relative;
width: 100%;
height: 100%;
.tire-img {
width: 100%;
height: 100%;
}
.icon-delete {
position: absolute;
top: var(--fontSize12);
right: var(--fontSize12);
width: var(--fontSize40);
height: var(--fontSize40);
}
}
.icon-plus {
width: var(--fontSize80);
height: var(--fontSize80);
}
.plus-text {
color: #999EA8;
font-size: var(--fontSize28);
}
}
}
.service {
padding-bottom: var(--fontSize16);
.category {
padding-bottom: var(--fontSize8);
font-size: var(--fontSize28);
color: #292D33;
}
.service-item {
background: #F7F8FA;
border-radius: var(--fontSize12);
padding: var(--fontSize24);
font-size: var(--fontSize26);
margin: var(--fontSize16) calc(-1 * var(--fontSize8));
.name {
color: #EA6612;
margin-bottom: var(--fontSize12);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
}
.bott {
display: flex;
font-size: var(--fontSize24);
color: #5A5E66;
.split {
margin: 0 var(--fontSize6);
}
}
}
.edit-item {
display: flex;
align-items: center;
image {
width: var(--fontSize32);
height: var(--fontSize32);
margin-right: var(--fontSize20);
flex-shrink: 0;
}
}
}
.empty-box {
width: 100%;
font-size: var(--fontSize24);
color: #BEC1C7;
display: flex;
align-items: center;
justify-content: center;
image {
width: var(--fontSize86);
height: var(--fontSize86);
margin-right: var(--fontSize16);
}
}
.goods {
margin: 0 calc(-1 * var(--fontSize8));
font-size: var(--fontSize28);
color: #292D33;
padding-bottom: var(--fontSize32);
.goods-item {
padding: var(--fontSize24);
background: #F7F8FA;
border-radius: var(--fontSize12);
margin-bottom: var(--fontSize16);
position: relative;
.goods-name {
width: calc(100% - var(--fontSize52));
padding-left: var(--fontSize28);
}
&::after {
position: absolute;
width: var(--fontSize12);
height: var(--fontSize12);
top: var(--fontSize44);
left: var(--fontSize24);
transform: translateY(-50%);
content: '';
background: #347BFF;
border-radius: 100%;
}
&:last-child {
margin-bottom: 0;
}
}
.bott {
margin-top: var(--fontSize12);
padding-left: var(--fontSize28);
font-size: var(--fontSize24);
color: #999EA8;
.split {
margin: 0 var(--fontSize6);
}
}
}
}
.isFullSucreen-btn {
padding-bottom: 34px !important;
}
.btns {
position: fixed;
left: 0;
width: 100%;
bottom: 0;
min-height: var(--fontSize100);
background: #FFFFFF;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
font-size: var(--fontSize32);
font-weight: 500;
z-index: 99;
flex-direction: column;
.tips_box {
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
width: 100%;
height: var(--fontSize52);
padding: 0 var(--fontSize20) 0 var(--fontSize32);
font-size: var(--fontSize24);
color: #FF9D0A;
background: #FEF5E7;
.tipsIcon {
flex-shrink: 0;
width: var(--fontSize28);
height: var(--fontSize28);
margin-right: var(--fontSize8);
}
.contentText {
margin-right: auto;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.close-image {
width: var(--fontSize32);
height: var(--fontSize32);
}
}
.btns-con {
box-sizing: border-box;
display: flex;
padding: var(--fontSize10) 0;
width: calc(100% - var(--fontSize80));
.confirm {
border-radius: var(--fontSize12);
height: var(--fontSize80);
box-sizing: border-box;
width: 100%;
color: #fff;
background-color: #347BFF;
}
}
}
}
\ No newline at end of file \ No newline at end of file
/* tabRepairOrder/pages/repairOrderDetail/repairOrderDetail.wxss */
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!