|
|
|
|
@ -8,7 +8,7 @@ |
|
|
|
|
@searchHandle="searchHandle" |
|
|
|
|
@addHandle="$refs.crud.rowAdd()" |
|
|
|
|
> |
|
|
|
|
<el-select |
|
|
|
|
<!-- <el-select |
|
|
|
|
class="inputHeight" |
|
|
|
|
v-model="searchForm.isVerification" |
|
|
|
|
placeholder="请选择是否需要检定" |
|
|
|
|
@ -22,9 +22,39 @@ |
|
|
|
|
:value="item.value" |
|
|
|
|
> |
|
|
|
|
</el-option> |
|
|
|
|
</el-select> --> |
|
|
|
|
<!-- <el-select |
|
|
|
|
class="inputHeight" |
|
|
|
|
v-model="searchForm.status" |
|
|
|
|
placeholder="请选择设备状态" |
|
|
|
|
size="small" |
|
|
|
|
clearable |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in statusList" |
|
|
|
|
:key="item.dictKey" |
|
|
|
|
:label="item.dictValue" |
|
|
|
|
:value="item.dictKey" |
|
|
|
|
> |
|
|
|
|
</el-option> |
|
|
|
|
</el-select> --> |
|
|
|
|
<el-select |
|
|
|
|
class="inputHeight" |
|
|
|
|
v-model="searchForm.runStatus" |
|
|
|
|
placeholder="请选择运行状态" |
|
|
|
|
size="small" |
|
|
|
|
clearable |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in runList" |
|
|
|
|
:key="item.dictKey" |
|
|
|
|
:label="item.dictValue" |
|
|
|
|
:value="item.dictKey" |
|
|
|
|
> |
|
|
|
|
</el-option> |
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
|
|
<el-button |
|
|
|
|
<!-- <el-button |
|
|
|
|
class="cus-confirm" |
|
|
|
|
slot="otherBtn" |
|
|
|
|
size="small" |
|
|
|
|
@ -32,7 +62,7 @@ |
|
|
|
|
style="float: right; margin-right: 20px" |
|
|
|
|
@click="batchPrint" |
|
|
|
|
>批量打印</el-button |
|
|
|
|
> |
|
|
|
|
> --> |
|
|
|
|
<el-button |
|
|
|
|
class="cus-confirm" |
|
|
|
|
slot="otherBtn" |
|
|
|
|
@ -244,7 +274,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 搜索 |
|
|
|
|
searchForm: { name: "", isVerification: "" }, |
|
|
|
|
searchForm: { name: "", isVerification: "", status: "", instrumentStatus: "", runStatus: "" }, |
|
|
|
|
// 搜索组件传参 |
|
|
|
|
searchText: { addText: "新增", flag: 3 }, |
|
|
|
|
option: tableOption, |
|
|
|
|
@ -320,14 +350,25 @@ export default { |
|
|
|
|
if(tmp){ |
|
|
|
|
this.$message.warning('请选择未处理的设备') |
|
|
|
|
}else{ |
|
|
|
|
let params = this.selectionList[0] |
|
|
|
|
params.status = 1 |
|
|
|
|
update(params).then(res =>{ |
|
|
|
|
if(res.data){ |
|
|
|
|
this.$message.success('设备确认成功') |
|
|
|
|
this.onLoad(this.page[0], this.searchForm) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
this.$confirm("是否确认选中设备?", { |
|
|
|
|
confirmButtonText: "确定", |
|
|
|
|
cancelButtonText: "取消", |
|
|
|
|
type: "warning", |
|
|
|
|
}).then(() => { |
|
|
|
|
let params = this.selectionList[0] |
|
|
|
|
params.status = 1 |
|
|
|
|
update(params).then(res =>{ |
|
|
|
|
if(res.data){ |
|
|
|
|
this.$message.success('设备确认成功') |
|
|
|
|
this.onLoad(this.page[0], this.searchForm) |
|
|
|
|
} |
|
|
|
|
}).catch(err => { |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'error', |
|
|
|
|
message: "设备确认失败!" |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|