|
|
@ -65,6 +65,9 @@ |
|
|
|
:detailButtonIsShowAdd=statusBtn |
|
|
|
:detailButtonIsShowEdit=statusBtn |
|
|
|
:detailButtonIsShowDelete=statusBtn |
|
|
|
@handleMainFefresh="handleMainFefresh" |
|
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
|
:key="count" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
@ -81,11 +84,6 @@ import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
|
import Detail from '@/views/eam/equipmentRepairJobMain/EquipmentRepairJobDetail.vue' |
|
|
|
import FinishForm2 from '@/views/eam/equipmentRepairJobMain/finishForm2.vue' |
|
|
|
import * as EquipmentMaintenanceMainApi from "@/api/eam/equipmentMaintenanceMain"; |
|
|
|
import { |
|
|
|
executeEquipmentRepairJobMain, |
|
|
|
executEquipmentRepairJobMain |
|
|
|
} from "@/api/eam/equipmentRepairJobMain"; |
|
|
|
|
|
|
|
defineOptions({ name: 'EquipmentRepairJobMain' }) |
|
|
|
|
|
|
@ -230,6 +228,29 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
|
detailRef.value.openDetail(row, titleName, titleValue, 'basicEquipmentRepairJobMain') |
|
|
|
} |
|
|
|
|
|
|
|
/** 页面操作 */ |
|
|
|
let count = ref(0) |
|
|
|
const handleMainFefresh = async()=>{ |
|
|
|
count.value++ |
|
|
|
getList() |
|
|
|
} |
|
|
|
|
|
|
|
// 子页面查询字典页面返回 |
|
|
|
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { |
|
|
|
nextTick(() => { |
|
|
|
const setV = {} |
|
|
|
let result = ''; |
|
|
|
for (var i = 0; i < val.length; i++) { |
|
|
|
result += val[i].code + ','; |
|
|
|
} |
|
|
|
if(result.endsWith(',')){ |
|
|
|
result = result.substring(0,result.length -1) |
|
|
|
} |
|
|
|
setV[formField] = result; |
|
|
|
formRef.setValues(setV) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
/** 完成按钮操作 */ |
|
|
|
const finishForm2Ref = ref() |
|
|
|
const handleFinish = async (row) => { |
|
|
|