135 lines
3.1 KiB
Vue
135 lines
3.1 KiB
Vue
<template>
|
|
<view class="ctr" v-if="data !== null">
|
|
<view class="group">
|
|
<view class="group-name flex-l line-after">
|
|
<me-icon class="icon" type="icon-info" color="#E18F00" size="40rpx"></me-icon>
|
|
<text class="text">沟通后请提交信息</text>
|
|
</view>
|
|
<view class="item time">
|
|
<view class="item-row flex-sb">
|
|
<view class="title flex-l">上门时间</view>
|
|
<uni-datetime-picker v-model="data.plan_time" type="datetime" :hide-second="true">
|
|
<view class="value flex-r value-empty" v-if="data.plan_time === ''">点击选择上门时间</view>
|
|
<view class="value flex-r" v-else>{{ helpers.removeSeconds(data.plan_time) }}</view>
|
|
</uni-datetime-picker>
|
|
</view>
|
|
<view class="desc flex-l">点击时间可更改,请确认和客户沟通的上门时间</view>
|
|
</view>
|
|
</view>
|
|
<me-empty-space height="376"></me-empty-space>
|
|
<view class="bottom">
|
|
<me-button @click="submit()" text="确认上门时间" width="686rpx" icon-type="icon-checkbox-circle" margin-top="32rpx"></me-button>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script setup>
|
|
|
|
import MeIcon from "../../components/me-icon/me-icon.vue";
|
|
import MeEmptySpace from "../../components/me-empty-space/me-empty-space.vue";
|
|
import MeButton from "../../components/me-button/me-button.vue";
|
|
import helpers from "../../utils/helpers";
|
|
import {ref, reactive, computed, watch, inject} from 'vue'
|
|
import {onLoad, onShow} from '@dcloudio/uni-app'
|
|
import api from "../../api/api";
|
|
|
|
const planTime = ref('')
|
|
|
|
const submit = () => {
|
|
console.log(data.value)
|
|
}
|
|
|
|
const id = ref(null)
|
|
onLoad((params) => {
|
|
id.value = params.id
|
|
init()
|
|
})
|
|
|
|
const data = ref(null)
|
|
const init = () => {
|
|
api.orderInfo({order_dispatch_id: id.value}).then(res => {
|
|
data.value = res
|
|
}).catch(() => {})
|
|
}
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.ctr {
|
|
padding: 0 32rpx;
|
|
box-sizing: border-box;
|
|
height: 100vh;
|
|
.group {
|
|
width: 100%;
|
|
background: var(--containerBgColor);
|
|
border-radius: 16rpx;
|
|
padding: 20rpx;
|
|
box-sizing: border-box;
|
|
margin-top: 32rpx;
|
|
.group-name {
|
|
width: 100%;
|
|
height: 80rpx;
|
|
position: relative;
|
|
.text {
|
|
font-size: 30rpx;
|
|
color: #E18F00;
|
|
margin-left: 8rpx;
|
|
}
|
|
}
|
|
.item {
|
|
width: 100%;
|
|
}
|
|
.time {
|
|
.item-row {
|
|
width: 100%;
|
|
height: 100rpx;
|
|
.title {
|
|
width: 200rpx;
|
|
height: 100rpx;
|
|
font-size: 30rpx;
|
|
color: var(--titleColor);
|
|
}
|
|
.value {
|
|
width: 446rpx;
|
|
height: 100rpx;
|
|
font-size: 30rpx;
|
|
color: var(--titleColor);
|
|
}
|
|
.value-empty {
|
|
color: var(--summaryColor);
|
|
}
|
|
}
|
|
.desc {
|
|
width: 100%;
|
|
min-height: 50rpx;
|
|
font-size: 28rpx;
|
|
color: var(--descriptionColor);
|
|
line-height: 48rpx;
|
|
}
|
|
}
|
|
}
|
|
.bottom {
|
|
width: 100%;
|
|
padding-top: 20rpx;
|
|
padding-bottom: 68rpx;
|
|
background: var(--pageBgColor);
|
|
box-sizing: border-box;
|
|
position: fixed;
|
|
bottom: 0;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|