修试入库外层接口对接
This commit is contained in:
parent
3dd85bd679
commit
7fcc9e3100
|
|
@ -50,7 +50,7 @@
|
|||
</el-form-item>
|
||||
</el-form>
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<!-- <el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
|
|
@ -59,6 +59,24 @@
|
|||
@click="handleExport"
|
||||
>导出
|
||||
</el-button>
|
||||
</el-col> -->
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
size="mini" :disabled="multiple"
|
||||
@click="handleSuccessAll"
|
||||
>批量入库
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain :disabled="multiple"
|
||||
size="mini"
|
||||
@click="handleFailAll"
|
||||
>批量驳回
|
||||
</el-button>
|
||||
</el-col>
|
||||
<right-toolbar
|
||||
:showSearch.sync="showSearch"
|
||||
|
|
@ -66,12 +84,8 @@
|
|||
></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="testedList"
|
||||
ref="multipleTable"
|
||||
row-key="teamId"
|
||||
>
|
||||
<el-table v-loading="loading" :data="testedList" ref="multipleTable" row-key="taskId" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" :selectable="selectable"/>
|
||||
<el-table-column label="序号" align="center" width="80" type="index">
|
||||
<template slot-scope="scope">
|
||||
<span>{{
|
||||
|
|
@ -128,7 +142,7 @@
|
|||
|
||||
<script>
|
||||
import {
|
||||
getTestedListApi
|
||||
getTestedListApi,repairInputWarehouseApi,rejectWarehouseApi
|
||||
} from "@/api/repair/testedInBound";
|
||||
export default {
|
||||
name: "testedInBound",
|
||||
|
|
@ -146,7 +160,6 @@ export default {
|
|||
showSearch: true,
|
||||
// 查看页面
|
||||
showView: false,
|
||||
|
||||
// 总条数
|
||||
total: 0,
|
||||
//二级页面总条数
|
||||
|
|
@ -165,7 +178,7 @@ export default {
|
|||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
},
|
||||
|
||||
ids:[],
|
||||
//修试入库列表
|
||||
testedList:[],
|
||||
//审核入库列表
|
||||
|
|
@ -177,22 +190,6 @@ export default {
|
|||
},
|
||||
components: {},
|
||||
methods: {
|
||||
//是否可用勾选框
|
||||
selectable(row) {
|
||||
if (row.taskStatus == "1" && this.title=="审核") {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map((item) => item.id);
|
||||
this.single = selection.length != 1;
|
||||
this.multiple = !selection.length;
|
||||
},
|
||||
|
||||
/** 查询修试入库列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
|
|
@ -202,7 +199,6 @@ export default {
|
|||
this.loading = false;
|
||||
});
|
||||
},
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
|
|
@ -223,23 +219,54 @@ export default {
|
|||
handleView(row){
|
||||
this.$emit("queryApply",row.id,row);
|
||||
},
|
||||
|
||||
|
||||
//通过
|
||||
InBoundSuccess(row){
|
||||
|
||||
//是否可用勾选框
|
||||
selectable(row) {
|
||||
if (row.taskStatus == "1") {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
//不通过
|
||||
InBoundFail(row){
|
||||
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map((item) => item.taskId);
|
||||
this.single = selection.length != 1;
|
||||
this.multiple = !selection.length;
|
||||
},
|
||||
//批量通过
|
||||
handleSuccessAll(){
|
||||
|
||||
console.log(this.ids)
|
||||
// repairInputWarehouseApi
|
||||
let param = {
|
||||
taskIdList:this.ids
|
||||
}
|
||||
this.$modal.confirm("是否确认入库所选择的设备编码?")
|
||||
.then(function () {
|
||||
return repairInputWarehouseApi(param);
|
||||
}).then((response) => {
|
||||
if(response.code==200){
|
||||
this.$modal.msgSuccess("入库成功");
|
||||
this.getList();
|
||||
}
|
||||
})
|
||||
.catch(() => {});
|
||||
},
|
||||
//批量不通过
|
||||
handleFailAll(){
|
||||
|
||||
console.log(this.ids)
|
||||
let param = {
|
||||
taskIdList:this.ids
|
||||
}
|
||||
this.$modal.confirm("是否确认驳回所选择的设备编码?")
|
||||
.then(function () {
|
||||
return rejectWarehouseApi(param);
|
||||
}).then((response) => {
|
||||
if(response.code==200){
|
||||
this.$modal.msgSuccess("驳回成功");
|
||||
this.getList();
|
||||
}
|
||||
})
|
||||
.catch(() => {});
|
||||
},
|
||||
handleExport() {
|
||||
// this.download(
|
||||
|
|
|
|||
Loading…
Reference in New Issue