<template>
    <view class="accept page-common">
        <div class="card">
            <div>任务信息</div>
            <uni-forms :model="formData" label-width="160rpx" :border="true">
                <uni-forms-item label="退料单位" name="unitName">
                    <span>{{ formData.unitName }}</span>
                </uni-forms-item>
               <uni-forms-item label="退料工程：" name="proName">
                    <span>{{ formData.proName }}</span>
                </uni-forms-item>
                <uni-forms-item label="退料单号：" name="code">
                    <span>{{ formData.code }}</span>
                </uni-forms-item>
                <uni-forms-item label="退料人员：" name="backPerson">
                    <span>{{ formData.backPerson }}</span>
                </uni-forms-item>
                <uni-forms-item label="联系电话：" name="phone">
                    <span>{{ formData.phone }}</span>
                </uni-forms-item>
            </uni-forms>
        </div>
        <div class="card">
            <div>任务信息</div>
            
        </div>

        <div class="btn">
            <!-- <button class="btn-cont" @click="reject">取消</button> -->
            <button class="btn-cont">确认</button>
        </div>
    </view>
</template>

<script setup>
import { ref, reactive } from 'vue'
import { onLoad } from '@dcloudio/uni-app'  
const formData = ref({})    

  

onLoad((options)=>{
	console.log(options)
	formData.value = JSON.parse(options.taskInfo)
    console.log(formData.value)
})
</script>

<style lang="scss">
.accept {
    padding: 10px;
    height: 100%;
    word-break: break-all;
}
.card {
    padding: 10px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2upx 4upx 0 rgba(0, 0, 0, 0.1);
}
.upload {
    width: 80px;
    height: 80px;
    background-color: #f5f5f5;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: #ccc;
    margin-top: 10px;
}
.btn {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;

    .btn-cont {
        width: 40%;
        height: 40px;
        line-height: 40px;
        text-align: center;
        background-color: #3784fb;
        color: #fff;
        border-radius: 20px;
        // 取消按钮淡蓝色
        &:first-child {
            background-color: #aacefb;
        }
    }
}
</style>
