You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

53 lines
1.1 KiB

<style lang="scss">
.container{
.cu-navbar{
.action>button{
background:rgba(255, 255, 255, 0.1);
width:96rpx;
height:48rpx;
line-height: 48rpx;
text-align: center;
font-size:32rpx;
padding:0;
color:#fff;
}
}
}
</style>
<template>
<view class="container">
<cu-navbar text="采收信息" style="--bg:#10C176;--c:#fff;" isBack>
<button slot="right" class="cu-btn round">提交</button>
</cu-navbar>
<u-form class="card inline" :model="formData" :rules="rules" ref="form" labelWidth="auto">
<d-form
v-for="(v,k) in fields"
:key="k"
v-bind="v"
:field="k"
:required="!!rules[k]"/>
</u-form>
</view>
</template>
<script>
export default {
data(){
return{
fields:{
num:{label:"采收数量",suffix:'kg'},
batch:{label:"收获批次号",btnText:"生成", btnFun(){console.log('asdfafd')}},
director:{label:"负责人",type:"select"},
recoveryDate:{label:"采收时间",type:"calendar"},
recoveryType:{label:"采收状态",type:"select"},
},
formData:{
name:"",
},
rules:{
}
}
}
}
</script>