Browse Source

feat: update 待质检页面增加校验

master
TengXF 6 months ago
parent
commit
f0e4c121db
  1. 27
      src/pages/mes/workScheduling/waitQuality.vue

27
src/pages/mes/workScheduling/waitQuality.vue

@ -18,8 +18,8 @@
<view class="dec-item">
<view>合格数量</view>
<view>
<u-number-box v-model="saveData.qualified" style="width:120px" :max="planCount" @change="valChange"></u-number-box>
<!-- <u-input v-model="saveData.qualified" type="number" placeholder="请输入合格数量" /> -->
<u-number-box v-model="saveData.qualified" style="width:120px" @update:modelValue="changeQualified()" :key="Quakey"></u-number-box>
<!-- <u-input v-model="saveData.qualified" type="number" placeholder="请输入合格数量" :max="planCount" @change="valChange" /> -->
</view>
</view>
<view class="dec-item">
@ -48,11 +48,6 @@
<u-select v-model="showWorker" mode="mutil-column-auto" :list="workerList" @confirm="confirmSelectWorker"></u-select>
</view>
</u-popup>
<u-popup v-model="showType" mode="bottom" border-radius="14" length="30%">
<view>
<u-select v-model="showType" :list="typeList" @confirm="confirmSelectType"></u-select>
</view>
</u-popup>
</template>
<script setup lang="ts">
@ -68,9 +63,7 @@
const { proxy } = getCurrentInstance()
const paramData = ref()
const showWorker = ref(false)
const showType = ref(false)
const workerList = ref([])
const typeList = ref([{label:'是',value: '1'},{label:'否',value: '2'}])
const nodeInfo = ref({
planDayCode:'PO20240430-0011',
processCode:'QD_CY_01'
@ -80,14 +73,26 @@
id:'0',
planDayCode:'',
processCode:'',
qualified:'',
unqualified:'',
qualified:0,
unqualified:0,
personSelected:[],
personSelectedItem:'',
remark:"",
checkPerson:""
})
const Quakey = ref(0)
function changeQualified(){
Quakey.value++
if(saveData.value.qualified > planCount.value){
saveData.value.qualified = planCount.value
}
valChange()
}
//
function submitData(){
proxy.$modal.loading('加载中')

Loading…
Cancel
Save