diff --git a/src/pages/deviceReport/addForm.vue b/src/pages/deviceReport/addForm.vue index ba43d10..00e6f81 100644 --- a/src/pages/deviceReport/addForm.vue +++ b/src/pages/deviceReport/addForm.vue @@ -18,7 +18,7 @@ + @blur="blur()" @confirm='blur()'/> 扫描 diff --git a/src/pages/overhaulOrder/addForm.vue b/src/pages/overhaulOrder/addForm.vue index c2ea802..6b314e1 100644 --- a/src/pages/overhaulOrder/addForm.vue +++ b/src/pages/overhaulOrder/addForm.vue @@ -33,7 +33,7 @@ + @blur="blur()" @confirm='blur()'/> 扫描 diff --git a/src/pages/repairOrder/addForm.vue b/src/pages/repairOrder/addForm.vue index 1127cff..d70c758 100644 --- a/src/pages/repairOrder/addForm.vue +++ b/src/pages/repairOrder/addForm.vue @@ -29,7 +29,7 @@ --> + @blur="blur()" @confirm='blur()'/> 扫描 diff --git a/src/pages/repairOrder/transfer.vue b/src/pages/repairOrder/transfer.vue index 505b847..c032d3a 100644 --- a/src/pages/repairOrder/transfer.vue +++ b/src/pages/repairOrder/transfer.vue @@ -39,7 +39,7 @@ + @blur="blur()" @confirm='blur()'/> 扫描 diff --git a/src/pages/sparePartsServiceWorkOrderList/addForm.vue b/src/pages/sparePartsServiceWorkOrderList/addForm.vue index 22f7578..22c8a2d 100644 --- a/src/pages/sparePartsServiceWorkOrderList/addForm.vue +++ b/src/pages/sparePartsServiceWorkOrderList/addForm.vue @@ -71,7 +71,7 @@ - + 扫描 diff --git a/src/pages/spotCheckOrder/addForm.vue b/src/pages/spotCheckOrder/addForm.vue index e396626..0e872e5 100644 --- a/src/pages/spotCheckOrder/addForm.vue +++ b/src/pages/spotCheckOrder/addForm.vue @@ -7,7 +7,7 @@ + :placeholder="`请输入${type=='DEVICE'?'设备' : '模具'}编码`" @blur="blur" @confirm='blur()'/> 扫描 @@ -50,7 +50,7 @@ {{item.equipmentParts}} - 是否符合: + 是否符合: @@ -166,6 +166,9 @@ proxy.$modal.showToast('该设备无检修项目') return; } + subList.value.forEach(item=>{ + item.isConform = !item.isConform1 ? 'FALSE' : 'TRUE' + }) const data = { describes:form.value.describes, deviceNumber:form.value.deviceNumber, diff --git a/src/pages/upkeepOrder/addServiceRecord.vue b/src/pages/upkeepOrder/addServiceRecord.vue index 7715ec9..8446884 100644 --- a/src/pages/upkeepOrder/addServiceRecord.vue +++ b/src/pages/upkeepOrder/addServiceRecord.vue @@ -400,6 +400,10 @@ const form = ref({ } // 添加配件 function addSpare() { + if (!form1.value.number) { + proxy.$modal.showToast('请选择备件') + return; + } if (!form1.value.qty || form1.value.qty == 0) { proxy.$modal.showToast('请输入数量') return; @@ -451,7 +455,7 @@ const form = ref({ } let str = array1.join('-') + ' ' + array2.join(':') formatDate.value = str - form.value[field.value] = e.timestamp + form.value[field.value] = e.timestamp*1000 } onLoad(async(option) => { if (option.type) type.value = option.type; @@ -461,7 +465,7 @@ const form = ref({ .data)).id) { form.value = JSON.parse(decodeURIComponent(option.data)) form.value.itemNumbers = form.value.items - formatDate.value = form.value.completionTime ? proxy.$time.formatDate(form.value.completionTime * 1000) : '' + formatDate.value = form.value.completionTime ? proxy.$time.formatDate(form.value.completionTime) : '' form.value.statusTxt = form.value.status == 0 ? '完成' :'未完成' }; jxDetailsStatus.value = await dictApi.getDict('jx_details_status') diff --git a/src/pages/upkeepOrder/detail.vue b/src/pages/upkeepOrder/detail.vue index 095cf54..c965b7e 100644 --- a/src/pages/upkeepOrder/detail.vue +++ b/src/pages/upkeepOrder/detail.vue @@ -103,7 +103,7 @@ 完成时间: - {{$time.formatDate(item.completionTime*1000)}} + {{$time.formatDate(item.completionTime)}} 工程师确认: