xiala
This commit is contained in:
parent
697df757b8
commit
b84a15a93e
|
@ -49,6 +49,12 @@ export function updatesubinspecttask(id) {
|
||||||
method: 'put',
|
method: 'put',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function upinspectdept(id) {
|
||||||
|
return request({
|
||||||
|
url: `/quality/inspectdept/${id}/up/`,
|
||||||
|
method: 'put',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export function createsubinspecttask(data) {
|
export function createsubinspecttask(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<div slot="header" class="clearfix">
|
<div slot="header" class="clearfix">
|
||||||
<span>任务详情</span>
|
<span>任务详情</span>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-left: 10px; margin-right: 10px">
|
<div style="margin-left: 10px; margin-right: 10px;">
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<div style="margin-bottom: 6px">
|
<div style="margin-bottom: 6px">
|
||||||
|
@ -551,8 +551,7 @@ export default {
|
||||||
sendconfirm(){
|
sendconfirm(){
|
||||||
|
|
||||||
|
|
||||||
|
const lengths = this.multipleSelection.lengths;
|
||||||
const lengths = this.multipleSelection.length;
|
|
||||||
for (let i = 0; i < lengths; i++) {
|
for (let i = 0; i < lengths; i++) {
|
||||||
this.ids.push(this.multipleSelection[i].id);
|
this.ids.push(this.multipleSelection[i].id);
|
||||||
}
|
}
|
||||||
|
@ -562,7 +561,6 @@ export default {
|
||||||
|
|
||||||
this.mbersData.records=this.ids
|
this.mbersData.records=this.ids
|
||||||
console.log(this.mbersData)
|
console.log(this.mbersData)
|
||||||
|
|
||||||
addappoint(this.mbersData).then((res) => {
|
addappoint(this.mbersData).then((res) => {
|
||||||
|
|
||||||
this.dialogFormVisible = false;
|
this.dialogFormVisible = false;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card style="float:left;width: 25%;">
|
<el-card style="float:left;width: 27%;">
|
||||||
|
|
||||||
<el-table
|
<el-table
|
||||||
:data="recordList"
|
:data="recordList"
|
||||||
|
@ -9,30 +9,38 @@
|
||||||
stripe
|
stripe
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
@row-click="recorclickRow"
|
|
||||||
>
|
>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="组织名称"
|
label="组织名称"
|
||||||
width="180">
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
<el-link type="primary"
|
||||||
|
@click="recorclickRow(scope)"> {{ scope.row.dept__name }}</el-link>
|
||||||
|
|
||||||
{{ scope.row.dept__name }}
|
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="检查状态"
|
label="检查状态"
|
||||||
width="180">
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
||||||
<el-tag size="medium">{{ scope.row.state }}</el-tag>
|
{{ scope.row.state }}
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="操作">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
|
||||||
|
<el-button
|
||||||
|
@click="handleCheckup(scope)">组长提交</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card class="box-card" style="float:right;width: 75%;">
|
<el-card class="box-card" style="float:right;width: 73%;">
|
||||||
|
|
||||||
<el-table
|
<el-table
|
||||||
:data="inspectitemList"
|
:data="inspectitemList"
|
||||||
|
@ -179,7 +187,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import {getsubinspecttaskdep,getinspectrecordlist,updateinspectrecord,getinspectrecord} from "@/api/subinspecttask";
|
import {getsubinspecttaskdep,getinspectrecordlist,updateinspectrecord,getinspectrecord,upinspectdept} from "@/api/subinspecttask";
|
||||||
import { upUrl, upHeaders } from "@/api/file";
|
import { upUrl, upHeaders } from "@/api/file";
|
||||||
import Pagination from "@/components/Pagination";
|
import Pagination from "@/components/Pagination";
|
||||||
import checkPermission from "@/utils/permission";
|
import checkPermission from "@/utils/permission";
|
||||||
|
@ -255,9 +263,10 @@ export default {
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
recorclickRow(row, col, e) {
|
recorclickRow(scope) {
|
||||||
this.listLoading2 = true;
|
this.listLoading2 = true;
|
||||||
this.listQuery = {pageoff:true, subtask: this.subtask, dept: row.dept }
|
console.log(scope.row.id)
|
||||||
|
this.listQuery = {pageoff:true, subtask: this.id, dept:scope.row.dept}
|
||||||
this.getinspectrecordlist();
|
this.getinspectrecordlist();
|
||||||
},
|
},
|
||||||
handcheckupdate(scope)
|
handcheckupdate(scope)
|
||||||
|
@ -345,6 +354,15 @@ export default {
|
||||||
this.dialog = false;
|
this.dialog = false;
|
||||||
clearTimeout(this.timer);
|
clearTimeout(this.timer);
|
||||||
},
|
},
|
||||||
|
//组长提交
|
||||||
|
handleCheckup(scope)
|
||||||
|
{
|
||||||
|
|
||||||
|
upinspectdept(scope.row.dept).then((res) => {
|
||||||
|
this.$message.success("提交成功");
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue