|
@@ -3,23 +3,31 @@
|
|
<view class="list-container">
|
|
<view class="list-container">
|
|
<view class="list-title"><text class="label">合格量</text></view>
|
|
<view class="list-title"><text class="label">合格量</text></view>
|
|
<view class="table-item">
|
|
<view class="table-item">
|
|
- <input class="input" placeholder="请输入合格量" />
|
|
|
|
|
|
+ <input class="input" v-model="workInfo.qualified" placeholder="请输入合格量" />
|
|
</view>
|
|
</view>
|
|
<view class="list-title">
|
|
<view class="list-title">
|
|
<text class="label">废品量</text>
|
|
<text class="label">废品量</text>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="table-item"><input class="input" placeholder="请输入废品量" /></view>
|
|
|
|
|
|
+ <view class="table-item"><input class="input" v-model="workInfo.amount" placeholder="请输入废品量" /></view>
|
|
<view class="list-title">
|
|
<view class="list-title">
|
|
<text class="label">废品原因</text>
|
|
<text class="label">废品原因</text>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="table-item"><input class="input" placeholder="请输入废品原因" /></view>
|
|
|
|
|
|
+ <view class="table-item"><input class="input" v-model="workInfo.reason" placeholder="请输入废品原因" /></view>
|
|
|
|
+ <view class="list-title uni-row">
|
|
|
|
+ <text class="label">当前序是否完成</text>
|
|
|
|
+
|
|
|
|
+ <switch class="switch" @change="switchChange" color="rgba(255,85,85,1)" style="transform:scale(0.7)" />
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
<view class="add-btn-container uni-row">
|
|
<view class="add-btn-container uni-row">
|
|
- <button type="default" class="btn">结束报工</button>
|
|
|
|
|
|
+ <button type="default" class="btn" @click="handleFinishReporting">结束报工</button>
|
|
</view>
|
|
</view>
|
|
-</dialog-base>
|
|
|
|
|
|
+ </dialog-base>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
|
|
@@ -29,10 +37,22 @@
|
|
getCurrentInstance
|
|
getCurrentInstance
|
|
} from 'vue'
|
|
} from 'vue'
|
|
const baseDialog = ref(null)
|
|
const baseDialog = ref(null)
|
|
|
|
+ const workInfo = ref({})
|
|
const open = (data) => {
|
|
const open = (data) => {
|
|
// console.log(dialog.value)
|
|
// console.log(dialog.value)
|
|
baseDialog.value.open()
|
|
baseDialog.value.open()
|
|
}
|
|
}
|
|
|
|
+ function switchChange(event) {
|
|
|
|
+ if(event.detail.value) {
|
|
|
|
+ workInfo.value.status = "2"
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ workInfo.value.status = "1"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ function handleFinishReporting(){
|
|
|
|
+ console.log(workInfo.value,"123")
|
|
|
|
+ }
|
|
defineExpose({
|
|
defineExpose({
|
|
open
|
|
open
|
|
})
|
|
})
|
|
@@ -53,9 +73,14 @@
|
|
font-size: 32rpx;
|
|
font-size: 32rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .switch {
|
|
|
|
+ margin-top: -8rpx;
|
|
|
|
+ align-items: center;
|
|
|
|
+ }
|
|
|
|
|
|
.table-item {
|
|
.table-item {
|
|
margin-top: 24rpx;
|
|
margin-top: 24rpx;
|
|
|
|
+
|
|
.input {
|
|
.input {
|
|
height: 60rpx;
|
|
height: 60rpx;
|
|
border: 1px solid #808080;
|
|
border: 1px solid #808080;
|
|
@@ -69,7 +94,7 @@
|
|
|
|
|
|
.btn {
|
|
.btn {
|
|
flex: 1;
|
|
flex: 1;
|
|
- background-color: rgb(255, 121, 1);
|
|
|
|
|
|
+ background-color: rgba(255,85,85,1);
|
|
color: #FFFFFF;
|
|
color: #FFFFFF;
|
|
|
|
|
|
}
|
|
}
|