修试审核
This commit is contained in:
parent
d481bb6f40
commit
3ef6e9ae58
|
|
@ -9,10 +9,11 @@ export function getListTestExamineApply(query) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 查询修试审核详细列表
|
// 查询修试审核详细列表
|
||||||
export function getAudit(id) {
|
export function getAuditInfo(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/repair_audit_details/' + id,
|
url: '/material/repair_audit_details/getRepairAuditList',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
params: query
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -338,7 +338,7 @@ export default {
|
||||||
endTime: this.queryParams.time && this.queryParams.time[1],
|
endTime: this.queryParams.time && this.queryParams.time[1],
|
||||||
pageSize: this.queryParams.pageSize,
|
pageSize: this.queryParams.pageSize,
|
||||||
pageNum: this.queryParams.pageNum,
|
pageNum: this.queryParams.pageNum,
|
||||||
taskStatus:this.queryParams.taskStatus
|
taskStatus: this.queryParams.taskStatus,
|
||||||
};
|
};
|
||||||
getListTestExamineApply(this.addDateRange(params)).then((response) => {
|
getListTestExamineApply(this.addDateRange(params)).then((response) => {
|
||||||
this.typeList = response.rows;
|
this.typeList = response.rows;
|
||||||
|
|
@ -364,7 +364,7 @@ export default {
|
||||||
},
|
},
|
||||||
/** 查看按钮操作 */
|
/** 查看按钮操作 */
|
||||||
handleView(row) {
|
handleView(row) {
|
||||||
this.$emit("queryTools", row.taskId, row.id);
|
this.$emit("queryTools", row.taskId, row.id, row);
|
||||||
},
|
},
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
|
|
@ -452,9 +452,10 @@ export default {
|
||||||
handleExport() {
|
handleExport() {
|
||||||
this.download(
|
this.download(
|
||||||
"/material/repair_audit_details/export",
|
"/material/repair_audit_details/export",
|
||||||
{ ...this.queryParams,
|
{
|
||||||
|
...this.queryParams,
|
||||||
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],
|
||||||
},
|
},
|
||||||
`修试审核_${new Date().getTime()}.xlsx`
|
`修试审核_${new Date().getTime()}.xlsx`
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,9 @@
|
||||||
:inline="true"
|
:inline="true"
|
||||||
label-width="120px"
|
label-width="120px"
|
||||||
>
|
>
|
||||||
<el-form-item label="退料单位" prop="leaseUnitId">
|
<el-form-item label="退料单位" prop="unitName">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="maForm.leaseUnitId"
|
v-model="maForm.unitName"
|
||||||
placeholder="请输入退料单位"
|
placeholder="请输入退料单位"
|
||||||
clearable
|
clearable
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
|
|
@ -19,9 +19,9 @@
|
||||||
disabled
|
disabled
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="工程名称" prop="leaseProjectId">
|
<el-form-item label="工程名称" prop="projectName">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="maForm.leaseProjectId"
|
v-model="maForm.projectName"
|
||||||
placeholder="请输入工程名称"
|
placeholder="请输入工程名称"
|
||||||
clearable
|
clearable
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
|
|
@ -30,9 +30,9 @@
|
||||||
disabled
|
disabled
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="维修单号" prop="leasePerson">
|
<el-form-item label="维修单号" prop="repairNum">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="maForm.leasePerson"
|
v-model="maForm.repairNum"
|
||||||
placeholder="请输入维修单号"
|
placeholder="请输入维修单号"
|
||||||
clearable
|
clearable
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
|
|
@ -65,7 +65,13 @@
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-table v-loading="loading" :data="equipmentList">
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
|
:data="equipmentList"
|
||||||
|
row-key="id"
|
||||||
|
@selection-change="handleSelectionChange"
|
||||||
|
>
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column label="序号" align="center" type="index" />
|
<el-table-column label="序号" align="center" type="index" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="类型名称"
|
label="类型名称"
|
||||||
|
|
@ -118,20 +124,22 @@
|
||||||
style="margin-bottom: 10px"
|
style="margin-bottom: 10px"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="handlePass(scope.row)"
|
@click="handlePass(scope.row)"
|
||||||
v-if="scope.row.status != '2'"
|
|
||||||
>通过
|
>通过
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
||||||
<el-button
|
<el-button size="mini" type="danger" @click="handleFail(scope.row)"
|
||||||
size="mini"
|
|
||||||
type="danger"
|
|
||||||
@click="handleFail(scope.row)"
|
|
||||||
v-if="scope.row.status == '0'"
|
|
||||||
>驳回
|
>驳回
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
<pagination
|
||||||
|
v-show="total > 0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="maForm.pageNum"
|
||||||
|
:limit.sync="maForm.pageSize"
|
||||||
|
@pagination="getTaskInfo"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -162,54 +170,124 @@ export default {
|
||||||
return "";
|
return "";
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
param: {
|
||||||
|
type: Object,
|
||||||
|
default: () => {
|
||||||
|
return "";
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
paramTemp: {},
|
||||||
//任务ID
|
//任务ID
|
||||||
taskId: "",
|
taskId: "",
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: true,
|
||||||
|
total: 0,
|
||||||
//租赁单位
|
//租赁单位
|
||||||
uniteList: [],
|
uniteList: [],
|
||||||
//租赁工程
|
//租赁工程
|
||||||
projectList: [],
|
projectList: [],
|
||||||
// 表格数据
|
// 表格数据
|
||||||
equipmentList: [],
|
equipmentList: [],
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
open: false,
|
open: false,
|
||||||
rowData: {},
|
rowData: {},
|
||||||
maForm: {
|
maForm: {
|
||||||
leaseUnitId: undefined,
|
pageNum: 1,
|
||||||
leaseProjectId: undefined,
|
pageSize: 10,
|
||||||
|
unitName: undefined,
|
||||||
|
projectName: undefined,
|
||||||
|
repairNum: undefined,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.taskId = this.queryTaskId;
|
this.taskId = this.queryTaskId;
|
||||||
// this.projectInfoList();
|
this.paramTemp = this.param;
|
||||||
this.getTaskInfo();
|
this.getTaskInfo();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// /** 租赁单位和工程-下拉选 */
|
// 多选框选中数据
|
||||||
// projectInfoList() {
|
handleSelectionChange(selection) {
|
||||||
// getListUnite({ id: null }).then((response) => {
|
this.ids = selection.map((item) => item.id);
|
||||||
// this.uniteList = response.data;
|
this.single = selection.length != 1;
|
||||||
// });
|
this.multiple = !selection.length;
|
||||||
// getListProject({ id: null }).then((response) => {
|
},
|
||||||
// this.projectList = response.data;
|
|
||||||
// });
|
|
||||||
// },
|
|
||||||
//获取任务详情-列表数据
|
//获取任务详情-列表数据
|
||||||
getTaskInfo() {
|
getTaskInfo() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
getAuditInfo(this.taskId).then((response) => {
|
getAuditInfo({ taskId: this.taskId }).then((response) => {
|
||||||
this.maForm = response.data.leaseApplyInfo;
|
this.maForm = this.paramTemp;
|
||||||
this.equipmentList = response.data.leaseApplyDetailsList;
|
this.equipmentList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
handlePass(row) {
|
||||||
|
this.$modal
|
||||||
|
.confirm("是否确认合格所选择的数据项?")
|
||||||
|
.then(function () {
|
||||||
|
// return applySend(row.id);
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.getTaskInfo();
|
||||||
|
this.$modal.msgSuccess("合格成功");
|
||||||
|
})
|
||||||
|
.catch(() => {});
|
||||||
|
},
|
||||||
|
handleFail(row) {
|
||||||
|
this.$modal
|
||||||
|
.confirm("是否确认驳回所选择的数据项?")
|
||||||
|
.then(function () {
|
||||||
|
// return applySend(row.id);
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.getTaskInfo();
|
||||||
|
this.$modal.msgSuccess("驳回成功");
|
||||||
|
})
|
||||||
|
.catch(() => {});
|
||||||
|
},
|
||||||
|
handlePassAll() {
|
||||||
|
if (this.ids.length == 0) {
|
||||||
|
this.$alert("请至少勾选一条审核数据", "提示", {
|
||||||
|
type: "warning",
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
// applySendAll(this.sendTemp).then((response) => {
|
||||||
|
// if (response.code == 200) {
|
||||||
|
// this.$modal.msgSuccess("合格成功");
|
||||||
|
// }
|
||||||
|
// this.getTaskInfo();
|
||||||
|
// });
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleFailAll() {
|
||||||
|
if (this.ids.length == 0) {
|
||||||
|
this.$alert("请至少勾选一条审核数据", "提示", {
|
||||||
|
type: "warning",
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
// applySendAll(this.sendTemp).then((response) => {
|
||||||
|
// if (response.code == 200) {
|
||||||
|
// this.$modal.msgSuccess("驳回成功");
|
||||||
|
// }
|
||||||
|
// this.getTaskInfo();
|
||||||
|
// });
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@
|
||||||
:editId="editId"
|
:editId="editId"
|
||||||
:queryTaskId="queryTaskId"
|
:queryTaskId="queryTaskId"
|
||||||
:queryId="queryId"
|
:queryId="queryId"
|
||||||
|
:param="param"
|
||||||
:isView="isView"
|
:isView="isView"
|
||||||
:codingTaskId="codingTaskId"
|
:codingTaskId="codingTaskId"
|
||||||
@addTools="addTools"
|
@addTools="addTools"
|
||||||
|
|
@ -44,6 +45,7 @@ export default {
|
||||||
editId: "",
|
editId: "",
|
||||||
queryId: "",
|
queryId: "",
|
||||||
queryTaskId: "",
|
queryTaskId: "",
|
||||||
|
param: {},
|
||||||
isView: false,
|
isView: false,
|
||||||
codingTaskId: "",
|
codingTaskId: "",
|
||||||
};
|
};
|
||||||
|
|
@ -71,11 +73,12 @@ export default {
|
||||||
this.isShowComponent = "AddTools";
|
this.isShowComponent = "AddTools";
|
||||||
},
|
},
|
||||||
/* 查询工机具 */
|
/* 查询工机具 */
|
||||||
queryTools(taskId, id) {
|
queryTools(taskId, id, row) {
|
||||||
this.isView = true;
|
this.isView = true;
|
||||||
this.pageContent = "详情信息";
|
this.pageContent = "详情信息";
|
||||||
this.queryTaskId = taskId;
|
this.queryTaskId = taskId;
|
||||||
this.queryId = id;
|
this.queryId = id;
|
||||||
|
this.param = row;
|
||||||
this.isShowComponent = "QueryTools";
|
this.isShowComponent = "QueryTools";
|
||||||
},
|
},
|
||||||
/* 返回按钮 */
|
/* 返回按钮 */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue