|
|
@@ -16,6 +16,10 @@
|
|
|
<el-option :key="item.loginId" v-for="item in userSelsctList" :label="item.deptName+'_'+item.userName" :value="item.loginId">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
+ <el-select v-model="listQuery.isRunFinish" clearable placeholder="请选择状态" class="filter-item" style="width: 200px">
|
|
|
+ <el-option :key="item.type" v-for="item in typeList" :label="item.name" :value="item.type">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
<el-button class="filter-item" type="primary" v-waves icon="el-icon-search" @click="handleFilter">查找</el-button>
|
|
|
<el-button class="filter-item" v-waves icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
|
|
<el-button class="filter-item" type="primary" @click="handleCreate" icon="el-icon-plus">添加</el-button>
|
|
|
@@ -44,11 +48,18 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" min-width="100px" label="经手人" prop="addHandlerName">
|
|
|
</el-table-column>
|
|
|
+ <el-table-column align="center" min-width="100px" label="报损状态">
|
|
|
+ <template slot-scope="props">
|
|
|
+ <span v-if="props.row.isRunFinish == '0'" style="color: #67C23A;font-weight: bold;">已报损</span>
|
|
|
+ <span v-if="props.row.isRunFinish == '1'" style="color: #E6A23C;font-weight: bold;">待报损</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column align="center" min-width="200px" label="报损原因" prop="remarks">
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="操作" width="240px" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="primary" size="small" @click="handleUpdate(scope.row)">编辑</el-button>
|
|
|
+ <el-button v-if="scope.row.isRunFinish == '1'" type="success" size="small" @click="handleExecute(scope.row)">报损</el-button>
|
|
|
+ <el-button v-if="scope.row.isRunFinish == '1'" type="primary" size="small" @click="handleUpdate(scope.row)">编辑</el-button>
|
|
|
<el-button v-if="scope.row.isRunFinish == '1'" type="danger" size="small" @click="handleDelete(scope.row)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -73,6 +84,16 @@ export default {
|
|
|
directives: { waves },
|
|
|
data() {
|
|
|
return {
|
|
|
+ typeList: [
|
|
|
+ {
|
|
|
+ type: '0',
|
|
|
+ name: "已报损",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: '1',
|
|
|
+ name: "待报损",
|
|
|
+ },
|
|
|
+ ],
|
|
|
warehouseList: [],
|
|
|
userSelsctList:[],
|
|
|
list: [
|
|
|
@@ -89,6 +110,7 @@ export default {
|
|
|
endDate: '',
|
|
|
warehouseId: '',
|
|
|
addHandlerId: '',
|
|
|
+ isRunFinish: '',
|
|
|
},
|
|
|
}
|
|
|
},
|
|
|
@@ -119,6 +141,7 @@ export default {
|
|
|
endDate: '',
|
|
|
warehouseId: '',
|
|
|
addHandlerId: '',
|
|
|
+ isRunFinish: '',
|
|
|
},
|
|
|
this.getList()
|
|
|
},
|