|
@ -126,6 +126,22 @@ |
|
|
<el-image v-for="url in urls" :key="url" :src="url" lazy /> |
|
|
<el-image v-for="url in urls" :key="url" :src="url" lazy /> |
|
|
</Dialog> |
|
|
</Dialog> |
|
|
|
|
|
|
|
|
|
|
|
<Dialog |
|
|
|
|
|
ref="confirmIfTempIdeaRef" |
|
|
|
|
|
v-model="showTempIdeaRefView" |
|
|
|
|
|
:key="tempIdeaRefViewKey" |
|
|
|
|
|
:closeOnClickModal="true" |
|
|
|
|
|
:title="tempIdeaRefViewTitle" |
|
|
|
|
|
> |
|
|
|
|
|
<div style="text-align: center;"> |
|
|
|
|
|
<el-checkbox ref="checkBoxTempDue" v-model="isTemporary">临时措施</el-checkbox> |
|
|
|
|
|
</div> |
|
|
|
|
|
<template #footer> |
|
|
|
|
|
<el-button @click="cancel">取消</el-button> |
|
|
|
|
|
<el-button type="primary" @click="confirmIsTemporary">确定</el-button> |
|
|
|
|
|
</template> |
|
|
|
|
|
</Dialog> |
|
|
|
|
|
|
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
@ -170,6 +186,11 @@ const newRow = ref() |
|
|
const deviceList = ref() |
|
|
const deviceList = ref() |
|
|
const moldList = ref() |
|
|
const moldList = ref() |
|
|
const repairUser = ref() |
|
|
const repairUser = ref() |
|
|
|
|
|
const showTempIdeaRefView = ref(false) |
|
|
|
|
|
const tempIdeaRefViewKey = ref(0) |
|
|
|
|
|
const tempIdeaRefViewTitle = ref('是否临时措施') |
|
|
|
|
|
const isTemporary = ref(false) |
|
|
|
|
|
const tempIdeaRefViewData = ref() |
|
|
// 字段设置 更新主列表字段 |
|
|
// 字段设置 更新主列表字段 |
|
|
const updataTableColumns = (val) => { |
|
|
const updataTableColumns = (val) => { |
|
|
tableColumns.value = val |
|
|
tableColumns.value = val |
|
@ -385,7 +406,23 @@ const onChangeSec = (field, cur, item,formRefSec) => { |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
setV['maintenance'] = '' |
|
|
setV['maintenance'] = '' |
|
|
formRefSec.setValues(setV) |
|
|
formRefSec.setValues(setV) |
|
|
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
|
|
|
return item.field == 'maintenance' |
|
|
|
|
|
}).componentProps.options = res |
|
|
|
|
|
}) |
|
|
|
|
|
const setV = {} |
|
|
|
|
|
setV['deviceNumber'] = '' |
|
|
|
|
|
formRefSec.setValues(setV) |
|
|
|
|
|
} else if (cur == 'TECH') { |
|
|
|
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
|
|
|
return item.field == 'deviceNumber' |
|
|
|
|
|
}).componentProps.options = deviceList.value |
|
|
|
|
|
selecUserByType({ classType: 'TECH', factoryAreaNumber: '', flag: null }).then(res => { |
|
|
|
|
|
repairUser.value = res |
|
|
|
|
|
const setV = {} |
|
|
|
|
|
setV['maintenance'] = '' |
|
|
|
|
|
formRefSec.setValues(setV) |
|
|
|
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'maintenance' |
|
|
return item.field == 'maintenance' |
|
|
}).componentProps.options = res |
|
|
}).componentProps.options = res |
|
|
}) |
|
|
}) |
|
@ -401,7 +438,7 @@ const onChangeSec = (field, cur, item,formRefSec) => { |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
setV['maintenance'] = '' |
|
|
setV['maintenance'] = '' |
|
|
formRefSec.setValues(setV) |
|
|
formRefSec.setValues(setV) |
|
|
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'maintenance' |
|
|
return item.field == 'maintenance' |
|
|
}).componentProps.options = res |
|
|
}).componentProps.options = res |
|
|
}) |
|
|
}) |
|
@ -615,20 +652,28 @@ function acceptOrder(row) { |
|
|
} |
|
|
} |
|
|
// 转办 |
|
|
// 转办 |
|
|
function turnOrder() { } |
|
|
function turnOrder() { } |
|
|
|
|
|
|
|
|
// 完成 |
|
|
// 完成 |
|
|
function finishOrder(row) { |
|
|
function finishOrder(row) { |
|
|
|
|
|
showTempIdeaRefView.value = true |
|
|
|
|
|
tempIdeaRefViewData.value = row |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function confirmFinish(row) { |
|
|
let param = { |
|
|
let param = { |
|
|
id: row.id, |
|
|
id: row.id, |
|
|
number: row.number, |
|
|
number: row.number, |
|
|
status: row.status, |
|
|
status: row.status, |
|
|
result: 'COMPLETED', |
|
|
result:isTemporary.value && isTemporary.value != ''?'TEMPORARILY':'COMPLETED', |
|
|
requestNumber: row.requestNumber, |
|
|
requestNumber: row.requestNumber, |
|
|
} |
|
|
} |
|
|
DeviceMaintenanceMainApi.finishOrder(param).then(res => { |
|
|
DeviceMaintenanceMainApi.finishOrder(param).then(res => { |
|
|
getList() |
|
|
getList() |
|
|
|
|
|
showTempIdeaRefView.value = false; |
|
|
message.success('操作成功') |
|
|
message.success('操作成功') |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 验证 |
|
|
// 验证 |
|
|
function verifyOrder(row) { |
|
|
function verifyOrder(row) { |
|
|
let param = { |
|
|
let param = { |
|
@ -866,6 +911,15 @@ function isReceiver(orderPerson) { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const confirmIsTemporary = () => { |
|
|
|
|
|
confirmFinish(tempIdeaRefViewData.value) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const cancel = () => { |
|
|
|
|
|
showTempIdeaRefView.value = false; |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
/** 初始化 **/ |
|
|
/** 初始化 **/ |
|
|
onMounted(async () => { |
|
|
onMounted(async () => { |
|
|
getList() |
|
|
getList() |
|
|