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

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

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

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

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

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

@ -83,6 +83,7 @@
:detailValidate="detailValidate" :detailValidate="detailValidate"
@detailSubmitForm="detailSubmitForm" @detailSubmitForm="detailSubmitForm"
:isSearchTableItem="true" :isSearchTableItem="true"
:openFormCallBack="openFormCallBack"
:buttonControllFunction="buttonControllFunction" :buttonControllFunction="buttonControllFunction"
@detailOnChange="detailOnChange" @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 { try {
let data1 = { let data1 = {
id:data.id, id:data.id,
@ -582,7 +582,7 @@ const detailSubmitForm= async (formType,data,getList,formRef,tableList) => {
} }
formRef.dialogVisible = false formRef.dialogVisible = false
// //
await getList() await detailRef.value.getList()
detailRef.value.tableObject.tableList.forEach(item=>{ detailRef.value.tableObject.tableList.forEach(item=>{
if (item.itemNumbers?.length>0) { if (item.itemNumbers?.length>0) {
let str = '' let str = ''

Loading…
Cancel
Save