Commit 90181202 authored by 刘帅's avatar 刘帅

1.项目维修管、项目故障管理-增加批量删除功能

parent a110b7cb
...@@ -38,6 +38,17 @@ ...@@ -38,6 +38,17 @@
v-hasPermi="['business:maintainProject:add']" v-hasPermi="['business:maintainProject:add']"
>新增</el-button> >新增</el-button>
</el-col> </el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['business:maintainProject:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="warning" type="warning"
...@@ -62,7 +73,7 @@ ...@@ -62,7 +73,7 @@
</el-row> </el-row>
<el-table v-loading="loading" :data="maintainProjectList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="maintainProjectList" @selection-change="handleSelectionChange">
<!-- <el-table-column type="selection" width="55" align="center" />--> <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 label="维修项目类别" align="center" prop="typeName" /> <el-table-column label="维修项目类别" align="center" prop="typeName" />
<el-table-column label="维修项目编号" align="center" prop="projectCode" /> <el-table-column label="维修项目编号" align="center" prop="projectCode" />
...@@ -471,7 +482,7 @@ export default { ...@@ -471,7 +482,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除维修项目编号为"' + row.projectCode + '"的数据项?').then(() => { this.$modal.confirm('是否确认删除维修项目,删除后无法恢复!').then(() => {
this.loading = true; this.loading = true;
return delMaintainProject(ids); return delMaintainProject(ids);
}).then(() => { }).then(() => {
......
...@@ -34,6 +34,17 @@ ...@@ -34,6 +34,17 @@
v-hasPermi="['business:malfunctionProject:add']" v-hasPermi="['business:malfunctionProject:add']"
>新增</el-button> >新增</el-button>
</el-col> </el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['business:malfunctionProject:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="warning" type="warning"
...@@ -76,7 +87,7 @@ ...@@ -76,7 +87,7 @@
</el-row> </el-row>
<el-table v-loading="loading" :data="malfunctionProjectList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="malfunctionProjectList" @selection-change="handleSelectionChange">
<!-- <el-table-column type="selection" width="55" align="center" />--> <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 label="故障类型名称" align="center" prop="typeName" /> <el-table-column label="故障类型名称" align="center" prop="typeName" />
<el-table-column label="故障项目编号" align="center" prop="malfunctionCode" /> <el-table-column label="故障项目编号" align="center" prop="malfunctionCode" />
...@@ -431,7 +442,7 @@ export default { ...@@ -431,7 +442,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除故障项目编号为"' + row.malfunctionCode + '"的数据项?').then(() => { this.$modal.confirm('是否确认删除维修项目,删除后无法恢复!').then(() => {
this.loading = true; this.loading = true;
return delMalfunctionProject(ids); return delMalfunctionProject(ids);
}).then(() => { }).then(() => {
......
...@@ -245,14 +245,14 @@ ...@@ -245,14 +245,14 @@
<el-input-number v-model="scope.row.returnsNumber" @change="returnsNumberChange" controls-position="right" size="mini" :min="0" :precision="2" :max="parseFloat(scope.row.putawayNumber) - parseFloat(scope.row.returnedNumber) - parseFloat(scope.row.issuedNumber)" style="width: 100%" placeholder="数量"/> <el-input-number v-model="scope.row.returnsNumber" @change="returnsNumberChange" controls-position="right" size="mini" :min="0" :precision="2" :max="parseFloat(scope.row.putawayNumber) - parseFloat(scope.row.returnedNumber) - parseFloat(scope.row.issuedNumber)" style="width: 100%" placeholder="数量"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="退货单价" align="center" prop="returnsPrice" width="120px"> <el-table-column label="退货单价" align="center" prop="returnsPrice" width="160px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input-number v-model="scope.row.returnsPrice" disabled controls-position="right" size="mini" :min="1" :precision="2" style="width: 100%" placeholder="单价"/> <el-input-number v-model="scope.row.returnsPrice" disabled controls-position="right" size="mini" :precision="2" style="width: 100%" placeholder="单价"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="退货金额" align="center" prop="returnsMoney" width="120px"> <el-table-column label="退货金额" align="center" prop="returnsMoney" width="160px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input-number v-model="scope.row.returnsMoney" disabled controls-position="right" size="mini" :min="1" style="width: 100%" placeholder="金额"/> <el-input-number v-model="scope.row.returnsMoney" disabled controls-position="right" size="mini" :precision="2" style="width: 100%" placeholder="金额"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment