| | |
| | | <input type="number" v-model="form.num" placeholder="请输入" /> |
| | | </view> |
| | | </view> |
| | | <view class="fp_list_item" @click="openTime"> |
| | | <view class="fp_list_item" @click="timeShow = true"> |
| | | <view class="fp_list_item_left"> |
| | | <text style="color: #f00;">*</text> |
| | | <text>计划开工日期:</text> |
| | |
| | | </view> |
| | | <view class="fp_list_item_right"> |
| | | <u-checkbox-group v-model="form.personnelId" direction="horizontal" v-show="personnelData.length > 0"> |
| | | <u-checkbox :name="item.id" v-for="item in personnelData" checked-color="#4275FC">{{item.text}}</u-checkbox> |
| | | <u-checkbox :name="item.id" v-for="(item, index) in personnelData" :key="index" checked-color="#4275FC">{{item.text}}</u-checkbox> |
| | | </u-checkbox-group> |
| | | <view class="wu" v-show="personnelData.length === 0"> |
| | | <text>暂无数据</text> |
| | |
| | | <view class="fp_footer_close" @click="go">取消</view> |
| | | <button class="fp_footer_submit" @click="submit">确认</button> |
| | | </view> |
| | | <!-- 选择日期 --> |
| | | <u-calendar :show="timeShow" mode="range" @confirm="timeConfirm"></u-calendar> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | data() { |
| | | return { |
| | | form: { |
| | | num: this.$route.query.num, // 生产数量 |
| | | num: $route.query.num, // 生产数量 |
| | | startTime: gsdate(new Date()), // 开始时间 |
| | | equipmentId: '', // 设备id |
| | | equipmentName: '', // 设备名称 |
| | | personnelId: [] // 人员id |
| | | } |
| | | }, |
| | | timeShow: false |
| | | }; |
| | | }, |
| | | methods: { |
| | | go() { |
| | | uni.navigateBack({ delta: 1 }); |
| | | }, |
| | | timeConfirm(val) { |
| | | console.log(val) |
| | | this.timeShow = false |
| | | } |
| | | } |
| | | } |