修试入库和报废管理接口对接
This commit is contained in:
parent
51a095555d
commit
602eec34a6
|
|
@ -8,6 +8,14 @@ export function getScrapApplyListApi(query) {
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 查询报废审核列表
|
||||||
|
export function getScrapDetailListApi(query) {
|
||||||
|
return request({
|
||||||
|
url: '/material/scrap_apply_details/selectRepairQuestListByTaskId',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -16,5 +24,3 @@ export function getScrapApplyListApi(query) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@
|
||||||
:inline="true"
|
:inline="true"
|
||||||
label-width="120px"
|
label-width="120px"
|
||||||
>
|
>
|
||||||
<el-form-item label="退料单位" prop="unitName">
|
<el-form-item label="退料单位" prop="backUnit">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="maForm.unitName"
|
v-model="maForm.backUnit"
|
||||||
placeholder="请输入退料单位"
|
placeholder="请输入退料单位"
|
||||||
clearable
|
clearable
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
|
|
@ -18,9 +18,9 @@
|
||||||
disabled
|
disabled
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="退料单位" prop="projectName">
|
<el-form-item label="退料单位" prop="backPro">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="maForm.projectName"
|
v-model="maForm.backPro"
|
||||||
placeholder="请输入退料单位"
|
placeholder="请输入退料单位"
|
||||||
clearable
|
clearable
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
|
|
@ -29,9 +29,9 @@
|
||||||
disabled
|
disabled
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="维修单号" prop="repairNum">
|
<el-form-item label="报废单号" prop="scrapCode">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="maForm.repairNum"
|
v-model="maForm.scrapCode"
|
||||||
clearable
|
clearable
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
style="width: 240px"
|
style="width: 240px"
|
||||||
|
|
@ -105,23 +105,11 @@
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="已修数量"
|
label="报废数量"
|
||||||
align="center"
|
align="center"
|
||||||
prop="repairedNum"
|
prop="repairedNum"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
|
||||||
label="待修数量"
|
|
||||||
align="center"
|
|
||||||
prop="waitNum"
|
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<div>
|
|
||||||
{{ scope.row.repairNum - scope.row.repairedNum }}
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="管理模式"
|
label="管理模式"
|
||||||
align="center"
|
align="center"
|
||||||
|
|
@ -175,18 +163,19 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination
|
<!-- <pagination
|
||||||
v-show="total > 0"
|
v-show="total > 0"
|
||||||
:total="total"
|
:total="total"
|
||||||
:page.sync="maForm.pageNum"
|
:page.sync="maForm.pageNum"
|
||||||
:limit.sync="maForm.pageSize"
|
:limit.sync="maForm.pageSize"
|
||||||
@pagination="getTaskInfo"
|
@pagination="getTaskInfo"
|
||||||
/>
|
/> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getAuditInfo, auditPass } from "@/api/repair/testExamine";
|
// import { getAuditInfo, } from "@/api/repair/testExamine";
|
||||||
|
import { getScrapDetailListApi } from "@/api/repair/scrapManage";
|
||||||
import { getToken } from "@/utils/auth";
|
import { getToken } from "@/utils/auth";
|
||||||
export default {
|
export default {
|
||||||
name: "AddTools",
|
name: "AddTools",
|
||||||
|
|
@ -245,11 +234,9 @@ export default {
|
||||||
open: false,
|
open: false,
|
||||||
rowData: {},
|
rowData: {},
|
||||||
maForm: {
|
maForm: {
|
||||||
pageNum: 1,
|
backUnit: undefined,
|
||||||
pageSize: 10,
|
backPro: undefined,
|
||||||
unitName: undefined,
|
scrapCode: undefined,
|
||||||
projectName: undefined,
|
|
||||||
repairNum: undefined,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
@ -257,9 +244,55 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
this.taskId = this.queryTaskId;
|
this.taskId = this.queryTaskId;
|
||||||
this.paramTemp = this.param;
|
this.paramTemp = this.param;
|
||||||
|
this.maForm = this.paramTemp;
|
||||||
this.getTaskInfo();
|
this.getTaskInfo();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//获取任务详情-列表数据
|
||||||
|
getTaskInfo() {
|
||||||
|
this.loading = true;
|
||||||
|
getScrapDetailListApi({ taskId: this.taskId }).then((response) => {
|
||||||
|
this.maForm = this.paramTemp;
|
||||||
|
this.equipmentList = response.data;
|
||||||
|
// this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//单个通过
|
||||||
|
handlePass(row) {
|
||||||
|
const param = [];
|
||||||
|
param.push({ id: row.id, status: "1",specificationType: row.specificationType,machineTypeName:row.machineTypeName,
|
||||||
|
unitName:row.unitName,repairNum:row.repairNum,repairedNum:row.repairedNum,typeId:row.typeId,taskId:row.taskId,
|
||||||
|
auditId:row.id,repairId:row.repairId,maId:row.maId, });
|
||||||
|
this.$modal
|
||||||
|
.confirm("是否确认通过所选择的数据项?")
|
||||||
|
.then(function () {
|
||||||
|
// return auditPass(param);
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.getTaskInfo();
|
||||||
|
this.$modal.msgSuccess("通过成功");
|
||||||
|
})
|
||||||
|
.catch(() => {});
|
||||||
|
},
|
||||||
|
//单个驳回
|
||||||
|
handleFail(row) {
|
||||||
|
const param = [];
|
||||||
|
param.push({ id: row.id, status: "2",specificationType: row.specificationType,machineTypeName:row.machineTypeName,
|
||||||
|
unitName:row.unitName,repairNum:row.repairNum,repairedNum:row.repairedNum,typeId:row.typeId,taskId:row.taskId,
|
||||||
|
auditId:row.id,repairId:row.repairId,maId:row.maId,
|
||||||
|
});
|
||||||
|
this.$modal
|
||||||
|
.confirm("是否确认驳回所选择的数据项?")
|
||||||
|
.then(function () {
|
||||||
|
// return auditPass(param);
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.getTaskInfo();
|
||||||
|
this.$modal.msgSuccess("驳回成功");
|
||||||
|
})
|
||||||
|
.catch(() => {});
|
||||||
|
},
|
||||||
//是否可用勾选框
|
//是否可用勾选框
|
||||||
selectable(row) {
|
selectable(row) {
|
||||||
if (row.status == "0") {
|
if (row.status == "0") {
|
||||||
|
|
@ -286,51 +319,6 @@ export default {
|
||||||
this.single = selection.length != 1;
|
this.single = selection.length != 1;
|
||||||
this.multiple = !selection.length;
|
this.multiple = !selection.length;
|
||||||
},
|
},
|
||||||
//获取任务详情-列表数据
|
|
||||||
getTaskInfo() {
|
|
||||||
this.loading = true;
|
|
||||||
getAuditInfo({ taskId: this.taskId }).then((response) => {
|
|
||||||
this.maForm = this.paramTemp;
|
|
||||||
this.equipmentList = response.rows;
|
|
||||||
this.total = response.total;
|
|
||||||
this.loading = false;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
//单个通过
|
|
||||||
handlePass(row) {
|
|
||||||
const param = [];
|
|
||||||
param.push({ id: row.id, status: "1",specificationType: row.specificationType,machineTypeName:row.machineTypeName,
|
|
||||||
unitName:row.unitName,repairNum:row.repairNum,repairedNum:row.repairedNum,typeId:row.typeId,taskId:row.taskId,
|
|
||||||
auditId:row.id,repairId:row.repairId,maId:row.maId, });
|
|
||||||
this.$modal
|
|
||||||
.confirm("是否确认通过所选择的数据项?")
|
|
||||||
.then(function () {
|
|
||||||
return auditPass(param);
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
this.getTaskInfo();
|
|
||||||
this.$modal.msgSuccess("通过成功");
|
|
||||||
})
|
|
||||||
.catch(() => {});
|
|
||||||
},
|
|
||||||
//单个驳回
|
|
||||||
handleFail(row) {
|
|
||||||
const param = [];
|
|
||||||
param.push({ id: row.id, status: "2",specificationType: row.specificationType,machineTypeName:row.machineTypeName,
|
|
||||||
unitName:row.unitName,repairNum:row.repairNum,repairedNum:row.repairedNum,typeId:row.typeId,taskId:row.taskId,
|
|
||||||
auditId:row.id,repairId:row.repairId,maId:row.maId,
|
|
||||||
});
|
|
||||||
this.$modal
|
|
||||||
.confirm("是否确认驳回所选择的数据项?")
|
|
||||||
.then(function () {
|
|
||||||
return auditPass(param);
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
this.getTaskInfo();
|
|
||||||
this.$modal.msgSuccess("驳回成功");
|
|
||||||
})
|
|
||||||
.catch(() => {});
|
|
||||||
},
|
|
||||||
//多个通过
|
//多个通过
|
||||||
handlePassAll() {
|
handlePassAll() {
|
||||||
if (this.ids.length == 0) {
|
if (this.ids.length == 0) {
|
||||||
|
|
@ -340,12 +328,12 @@ export default {
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
auditPass(this.passTemp).then((response) => {
|
// auditPass(this.passTemp).then((response) => {
|
||||||
if (response.code == 200) {
|
// if (response.code == 200) {
|
||||||
this.$modal.msgSuccess("通过成功");
|
// this.$modal.msgSuccess("通过成功");
|
||||||
}
|
// }
|
||||||
this.getTaskInfo();
|
// this.getTaskInfo();
|
||||||
});
|
// });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//多个驳回
|
//多个驳回
|
||||||
|
|
@ -357,12 +345,12 @@ export default {
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
auditPass(this.failTemp).then((response) => {
|
// auditPass(this.failTemp).then((response) => {
|
||||||
if (response.code == 200) {
|
// if (response.code == 200) {
|
||||||
this.$modal.msgSuccess("驳回成功");
|
// this.$modal.msgSuccess("驳回成功");
|
||||||
}
|
// }
|
||||||
this.getTaskInfo();
|
// this.getTaskInfo();
|
||||||
});
|
// });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -32,23 +32,22 @@
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<!-- <el-form-item label="状态" prop="taskStatus">
|
<el-form-item label="状态" prop="status">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.taskStatus"
|
v-model="queryParams.status"
|
||||||
placeholder="请选择状态"
|
placeholder="请选择状态"
|
||||||
clearable
|
clearable
|
||||||
filterable
|
filterable
|
||||||
style="width: 240px"
|
style="width: 240px"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in dict.type.repair_task_status"
|
v-for="dict in statusList"
|
||||||
v-if="dict.value == 10 || dict.value == 11 || dict.value == 12"
|
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
:label="dict.label"
|
:label="dict.label"
|
||||||
:value="dict.value"
|
:value="dict.value"
|
||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item> -->
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button
|
||||||
|
|
@ -120,14 +119,26 @@
|
||||||
align="center"
|
align="center"
|
||||||
width="160"
|
width="160"
|
||||||
label="退料单位"
|
label="退料单位"
|
||||||
prop="unitName"
|
prop="backUnit"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="退料工程"
|
label="退料工程"
|
||||||
width="150"
|
width="150"
|
||||||
align="center"
|
align="center"
|
||||||
prop="projectName"
|
prop="backPro"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="报废单号"
|
||||||
|
align="center"
|
||||||
|
prop="scrapCode"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="物资类型"
|
||||||
|
align="center"
|
||||||
|
prop="type"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
|
@ -136,22 +147,10 @@
|
||||||
prop="repairNum"
|
prop="repairNum"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
|
||||||
label="物资类型"
|
|
||||||
align="center"
|
|
||||||
prop="itemType"
|
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="维修班组"
|
|
||||||
align="center"
|
|
||||||
prop="teamName"
|
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="提交人"
|
label="提交人"
|
||||||
align="center"
|
align="center"
|
||||||
prop="createBy"
|
prop="createName"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
|
@ -224,9 +223,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
|
||||||
getListTestExamineApply,
|
|
||||||
} from "@/api/repair/testExamine";
|
|
||||||
import {
|
import {
|
||||||
getScrapApplyListApi,
|
getScrapApplyListApi,
|
||||||
} from "@/api/repair/scrapManage";
|
} from "@/api/repair/scrapManage";
|
||||||
|
|
@ -254,13 +250,14 @@ export default {
|
||||||
tableList: [],
|
tableList: [],
|
||||||
// 日期范围
|
// 日期范围
|
||||||
dateRange: [],
|
dateRange: [],
|
||||||
|
statusList: [{value:"0",label:"进行中"},{value:"1",label:"已审核"},{value:"2",label:"驳回"},],
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
time: null, //申请时间
|
time: null,
|
||||||
name: undefined,
|
|
||||||
keyWord: "",
|
keyWord: "",
|
||||||
|
status: undefined,
|
||||||
},
|
},
|
||||||
passTemp: [],
|
passTemp: [],
|
||||||
failTemp: [],
|
failTemp: [],
|
||||||
|
|
@ -297,6 +294,7 @@ export default {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
const params = {
|
const params = {
|
||||||
keyWord: this.queryParams.keyWord,
|
keyWord: this.queryParams.keyWord,
|
||||||
|
status: this.queryParams.status,
|
||||||
startTime: this.queryParams.time && this.queryParams.time[0],
|
startTime: this.queryParams.time && this.queryParams.time[0],
|
||||||
endTime: this.queryParams.time && this.queryParams.time[1],
|
endTime: this.queryParams.time && this.queryParams.time[1],
|
||||||
pageSize: this.queryParams.pageSize,
|
pageSize: this.queryParams.pageSize,
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@
|
||||||
:isView="isView"
|
:isView="isView"
|
||||||
:codingTaskId="codingTaskId"
|
:codingTaskId="codingTaskId"
|
||||||
@addTools="addTools"
|
@addTools="addTools"
|
||||||
@editTools="editTools"
|
|
||||||
@queryTools="queryTools"
|
@queryTools="queryTools"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -51,7 +50,6 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
/* 编辑工机具 */
|
|
||||||
addTools(taskId, id,row) {
|
addTools(taskId, id,row) {
|
||||||
this.isEdit = true;
|
this.isEdit = true;
|
||||||
this.pageContent = "报废审核";
|
this.pageContent = "报废审核";
|
||||||
|
|
@ -60,7 +58,6 @@ export default {
|
||||||
this.param = row;
|
this.param = row;
|
||||||
this.isShowComponent = "AddTools";
|
this.isShowComponent = "AddTools";
|
||||||
},
|
},
|
||||||
/* 查询工机具 */
|
|
||||||
queryTools(taskId, id, row) {
|
queryTools(taskId, id, row) {
|
||||||
this.isView = true;
|
this.isView = true;
|
||||||
this.pageContent = "详情信息";
|
this.pageContent = "详情信息";
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button size="mini" style="margin-bottom: 10px" type="success" v-if="scope.row.status == '0'" @click="handlePass(scope.row)">入库</el-button>
|
<el-button size="mini" style="margin-bottom: 10px" type="success" v-if="scope.row.status == '0'" @click="handlePass(scope.row)">入库</el-button>
|
||||||
<el-button size="mini" type="danger" v-if="scope.row.status == '0'" @click="handleFail(scope.row)">驳回</el-button>
|
<el-button size="mini" type="danger" v-if="scope.row.status == '0'" @click="handleFail(scope.row)">驳回</el-button>
|
||||||
<el-button size="mini" v-if="scope.row.status == '1'&&scope.row.manageType==0" @click="handleViewCode(scope.row)">查看</el-button>
|
<el-button size="mini" v-if="(scope.row.status == '1'||scope.row.status == '2')&&scope.row.manageType==0" @click="handleViewCode(scope.row)">查看</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
@ -131,8 +131,8 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center">
|
<el-table-column label="操作" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="primary" size="mini" @click="codeWarehouse(scope.row)" v-if="!isReject&&scope.row.maStatus!='1'">入库</el-button>
|
<el-button type="primary" size="mini" @click="codeWarehouse(scope.row)" v-if="!isReject&&scope.row.maStatus=='5'">入库</el-button>
|
||||||
<el-button size="mini" type="danger" @click="rejectCodeWarehouse(scope.row)" v-if="scope.row.maStatus!='1'">驳回</el-button>
|
<el-button size="mini" type="danger" @click="rejectCodeWarehouse(scope.row)" v-if="scope.row.maStatus=='5'">驳回</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
@ -310,10 +310,11 @@ export default {
|
||||||
}else{
|
}else{
|
||||||
//数量驳回接口
|
//数量驳回接口
|
||||||
let param = {
|
let param = {
|
||||||
|
agreementId:this.rowData.agreementId,
|
||||||
taskId:this.rowData.taskId,
|
taskId:this.rowData.taskId,
|
||||||
typeId:this.rowData.typeId,
|
typeId:this.rowData.typeId,
|
||||||
pendingInputNum:this.rowData.pendingInputNum,
|
pendingInputNum:this.rowData.pendingInputNum,
|
||||||
inputNum:this.numInput2
|
rejectNum:this.numInput2
|
||||||
}
|
}
|
||||||
rejectWarehouseApi(param).then((response) => {
|
rejectWarehouseApi(param).then((response) => {
|
||||||
if(response.code==200){
|
if(response.code==200){
|
||||||
|
|
@ -368,6 +369,7 @@ export default {
|
||||||
if(response.code==200){
|
if(response.code==200){
|
||||||
this.$modal.msgSuccess("入库成功");
|
this.$modal.msgSuccess("入库成功");
|
||||||
this.queryCodeList();
|
this.queryCodeList();
|
||||||
|
this.getTaskInfo();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
|
|
@ -377,6 +379,7 @@ export default {
|
||||||
console.log(this.rowData)
|
console.log(this.rowData)
|
||||||
console.log(codeRow)
|
console.log(codeRow)
|
||||||
let param = {
|
let param = {
|
||||||
|
agreementId:this.rowData.agreementId,
|
||||||
taskId:this.rowData.taskId,
|
taskId:this.rowData.taskId,
|
||||||
typeId:this.rowData.typeId,
|
typeId:this.rowData.typeId,
|
||||||
maCodeList:[{maId:codeRow.maId}]
|
maCodeList:[{maId:codeRow.maId}]
|
||||||
|
|
@ -388,6 +391,7 @@ export default {
|
||||||
if(response.code==200){
|
if(response.code==200){
|
||||||
this.$modal.msgSuccess("驳回成功");
|
this.$modal.msgSuccess("驳回成功");
|
||||||
this.queryCodeList();
|
this.queryCodeList();
|
||||||
|
this.getTaskInfo();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
|
|
|
||||||
|
|
@ -221,7 +221,7 @@ export default {
|
||||||
},
|
},
|
||||||
//是否可用勾选框
|
//是否可用勾选框
|
||||||
selectable(row) {
|
selectable(row) {
|
||||||
if (row.taskStatus == "1") {
|
if (row.taskStatus == "1"||row.taskStatus == "2") {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true;
|
||||||
|
|
@ -229,7 +229,13 @@ export default {
|
||||||
},
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
this.ids = selection.map((item) => item.taskId);
|
this.ids = selection.map((item) => {
|
||||||
|
let obj = {
|
||||||
|
agreementId:item.agreementId,
|
||||||
|
taskId:item.taskId
|
||||||
|
}
|
||||||
|
return obj
|
||||||
|
});
|
||||||
this.single = selection.length != 1;
|
this.single = selection.length != 1;
|
||||||
this.multiple = !selection.length;
|
this.multiple = !selection.length;
|
||||||
},
|
},
|
||||||
|
|
@ -255,7 +261,7 @@ export default {
|
||||||
handleFailAll(){
|
handleFailAll(){
|
||||||
console.log(this.ids)
|
console.log(this.ids)
|
||||||
let param = {
|
let param = {
|
||||||
taskIdList:this.ids
|
outTaskList:this.ids
|
||||||
}
|
}
|
||||||
this.$modal.confirm("是否确认驳回所选择的设备编码?")
|
this.$modal.confirm("是否确认驳回所选择的设备编码?")
|
||||||
.then(function () {
|
.then(function () {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue