|
@@ -19,9 +19,14 @@
|
|
|
<text class="label">当前序是否完成</text>
|
|
|
|
|
|
<switch class="switch" @change="switchChange" color="rgba(255,85,85,1)" style="transform:scale(0.7)" />
|
|
|
-
|
|
|
-
|
|
|
</view>
|
|
|
+ <view class="list-title"><text class="label">请选择设备:</text></view>
|
|
|
+ <!-- <scroll-view class="scroll-container" scroll-y> -->
|
|
|
+ <checkbox-group class="equipment-container uni-row" @change="checkboxChange">
|
|
|
+ <checkbox v-for="(item,index) in equiments" class="checkbox" style="transform:scale(0.8)" :key="index" :value="item" :checked="item.checked" >
|
|
|
+ {{item}}
|
|
|
+ </checkbox>
|
|
|
+ </checkbox-group>
|
|
|
|
|
|
</view>
|
|
|
<view class="add-btn-container uni-row">
|
|
@@ -37,6 +42,7 @@
|
|
|
getCurrentInstance
|
|
|
} from 'vue'
|
|
|
const baseDialog = ref(null)
|
|
|
+ const equiments = ref(['009-21','009-22','009-23','009-24','009-25','009-26','009-27','009-28','009-29','009-26','009-27'])
|
|
|
const workInfo = ref({})
|
|
|
const open = (data) => {
|
|
|
// console.log(dialog.value)
|
|
@@ -50,9 +56,14 @@
|
|
|
workInfo.value.status = "1"
|
|
|
}
|
|
|
}
|
|
|
+ function checkboxChange(event) {
|
|
|
+ console.log(event.detail.value)
|
|
|
+ workInfo.value.equiments = event.detail.value
|
|
|
+ }
|
|
|
function handleFinishReporting(){
|
|
|
console.log(workInfo.value,"123")
|
|
|
}
|
|
|
+
|
|
|
defineExpose({
|
|
|
open
|
|
|
})
|
|
@@ -77,7 +88,20 @@
|
|
|
margin-top: -8rpx;
|
|
|
align-items: center;
|
|
|
}
|
|
|
-
|
|
|
+ .equipment-container {
|
|
|
+ width: 100%;
|
|
|
+ height: 120rpx;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ justify-content: flex-start;
|
|
|
+ overflow: auto;
|
|
|
+ .checkbox {
|
|
|
+
|
|
|
+ padding: 12rpx 0;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
.table-item {
|
|
|
margin-top: 24rpx;
|
|
|
|