| | |
| | | <template> |
| | | <view> |
| | | <view class="form" :style="{height: containerHeight + 'px',overflow: 'auto'}"> |
| | | <view class="form-item"> |
| | | <view class="title">生产资源:</view> |
| | | <view class="right"> |
| | | <uni-combox |
| | | :candidates="arrayHSourceName" |
| | | placeholder="请选择生产资源" |
| | | v-model="hform.HSourceName" |
| | | <uni-combox :candidates="arrayHSourceName" placeholder="请选择生产资源" v-model="hform.HSourceName" |
| | | @input="HSourceNameChange"> |
| | | </uni-combox> |
| | | </view> |
| | |
| | | <view class="form-item"> |
| | | <view class="title">负责人:</view> |
| | | <view class="right"> |
| | | <uni-combox |
| | | :candidates="arrayHManagerName" |
| | | placeholder="请选择负责人" |
| | | v-model="hform.HManagerName" |
| | | <uni-combox :candidates="arrayHManagerName" placeholder="请选择负责人" v-model="hform.HManagerName" |
| | | @input="HManagerNameChange"> |
| | | </uni-combox> |
| | | </view> |
| | |
| | | <view class="form-item"> |
| | | <view class="title">班组:</view> |
| | | <view class="right"> |
| | | <uni-combox |
| | | :candidates="arrayHGroupName" |
| | | placeholder="请选择班组" |
| | | v-model="hform.HGroupName" |
| | | <uni-combox :candidates="arrayHGroupName" placeholder="请选择班组" v-model="hform.HGroupName" |
| | | @input="HGroupNameChange"> |
| | | </uni-combox> |
| | | </view> |
| | |
| | | <textarea v-model="hform.HRemark" placeholder="请输入备注" auto-height /> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- 操作按钮 --> |
| | | <view class="buttons" id="buttons"> |
| | |
| | | |
| | | <script> |
| | | import dayjs from "dayjs"; |
| | | import { CommonUtils } from "@/utils/common"; |
| | | import { getUserInfo } from "@/utils/auth"; |
| | | import { |
| | | CommonUtils |
| | | } from "@/utils/common"; |
| | | import { |
| | | getUserInfo |
| | | } from "@/utils/auth"; |
| | | |
| | | export default { |
| | | name: 'AddLineBind', |
| | |
| | | <style lang="scss" scoped> |
| | | .form { |
| | | padding: 20rpx; |
| | | // 添加底部内边距,为底部按钮留出空间 |
| | | padding-bottom: 160rpx; // 按钮高度 + 额外间距 |
| | | // 使用 calc 计算高度 |
| | | height: calc(100vh - 160rpx); |
| | | /* 减去底部按钮区域的高度 */ |
| | | overflow: auto; |
| | | box-sizing: border-box; |
| | | /* 确保内边距不影响高度计算 */ |
| | | } |
| | | |
| | | .form-item { |
| | |
| | | font-size: 28rpx; |
| | | padding: 6rpx 0; |
| | | margin-bottom: 20rpx; |
| | | margin-left: 10px; |
| | | |
| | | .title { |
| | | width: 180rpx; |
| | |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | input, textarea { |
| | | input, |
| | | textarea { |
| | | width: 100%; |
| | | font-size: 30rpx; |
| | | } |