Browse Source

报修

master
zhang_li 8 months ago
parent
commit
ed243ffbc4
  1. 16
      src/views/eam/device/deviceinspectionjob/index.vue
  2. 1
      src/views/eam/device/devicemaintainjob/index.vue
  3. 16
      src/views/eam/mold/moldinspectionjob/index.vue
  4. 1
      src/views/eam/mold/moldmaintainjob/index.vue
  5. 4
      src/views/eam/mold/moldmaintenancejob/index.vue

16
src/views/eam/device/deviceinspectionjob/index.vue

@ -331,18 +331,18 @@ function handleFinishOrder(row) {
if (response.list.length == 0) {
message.error(t('请先填写并完成检修明细内容!'))
} else {
let unFinishedList = response.list.filter(item => {
return item.status == 1
})
if (unFinishedList != null && unFinishedList.length > 0) {
message.error(t('请先完成各检修明细内容!'))
return
} else {
// let unFinishedList = response.list.filter(item => {
// return item.status == 1
// })
// if (unFinishedList != null && unFinishedList.length > 0) {
// message.error(t(''))
// return
// } else {
DeviceInspectionMainApi.finishInspection(row.id).then(res => {
message.success(t('common.finishSuccess'))
getList()
})
}
// }
}
} else {
message.error(t('common.finishFail'))

1
src/views/eam/device/devicemaintainjob/index.vue

@ -82,6 +82,7 @@
@detailOpenForm="detailOpenForm"
:detailValidate="detailValidate"
@detailSubmitForm="detailSubmitForm"
:openFormCallBack="openFormCallBack"
:isSearchTableItem="true"
:buttonControllFunction="buttonControllFunction"
@detailOnChange="detailOnChange"

16
src/views/eam/mold/moldinspectionjob/index.vue

@ -322,18 +322,18 @@ function handleFinishOrder(row) {
if (response.list.length == 0) {
message.error(t('请先填写并完成检修明细内容!'))
} else {
let unFinishedList = response.list.filter(item => {
return item.status == 1
})
if (unFinishedList != null && unFinishedList.length > 0) {
message.error(t('请先完成各检修明细内容!'))
return
} else {
// let unFinishedList = response.list.filter(item => {
// return item.status == 1
// })
// if (unFinishedList != null && unFinishedList.length > 0) {
// message.error(t(''))
// return
// } else {
DeviceInspectionMainApi.finishInspection(row.id).then(res => {
message.success(t('common.finishSuccess'))
getList()
})
}
// }
}
} else {
message.error(t('common.finishFail'))

1
src/views/eam/mold/moldmaintainjob/index.vue

@ -83,6 +83,7 @@
:detailValidate="detailValidate"
@detailSubmitForm="detailSubmitForm"
:isSearchTableItem="true"
:openFormCallBack="openFormCallBack"
:buttonControllFunction="buttonControllFunction"
@detailOnChange="detailOnChange"
/>

4
src/views/eam/mold/moldmaintenancejob/index.vue

@ -560,7 +560,7 @@ const detailValidate = (data) => {
}
}
//
const detailSubmitForm= async (formType,data,getList,formRef,tableList) => {
const detailSubmitForm= async (formType,data,formRef,tableList) => {
try {
let data1 = {
id:data.id,
@ -582,7 +582,7 @@ const detailSubmitForm= async (formType,data,getList,formRef,tableList) => {
}
formRef.dialogVisible = false
//
await getList()
await detailRef.value.getList()
detailRef.value.tableObject.tableList.forEach(item=>{
if (item.itemNumbers?.length>0) {
let str = ''

Loading…
Cancel
Save