This commit is contained in:
liulujia1
2020-04-16 15:16:57 +08:00
parent fca294e1f3
commit 0f223876e0
3 changed files with 12 additions and 6 deletions

View File

@@ -59,7 +59,7 @@
:label="item.label" :label="item.label"
:value="item.value"/> :value="item.value"/>
</el-select> </el-select>
<el-button type="primary" size="small" icon="el-icon-search" style="margin-left: 15px;margin-top: 5px" plain @click="pageSize=20; pageCurrent= 1;selecttable()">查询</el-button> <el-button type="primary" size="small" icon="el-icon-search" style="margin-left: 15px;margin-top: 5px" plain @click="pageSize=10; pageCurrent= 1;selecttable()">查询</el-button>
<el-tooltip :open-delay="1000" effect="dark" content="导出查询数据" placement="top"> <el-tooltip :open-delay="1000" effect="dark" content="导出查询数据" placement="top">
<el-button type="warning" size="small" icon="el-icon-download" plain style="margin-left:10px" @click="exportExcel()">导出</el-button> <el-button type="warning" size="small" icon="el-icon-download" plain style="margin-left:10px" @click="exportExcel()">导出</el-button>
</el-tooltip> </el-tooltip>
@@ -153,7 +153,7 @@
<el-table-column label="不合格数" align="center" width="120px"> <el-table-column label="不合格数" align="center" width="120px">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.edit && scope.row.是否合格 === 2"> <template v-if="scope.row.edit && scope.row.是否合格 === 2">
<el-input-number v-model="scope.row.不合格数量" :min="0" :step="1" style="width: 90%" size="mini"/> <el-input-number v-model="scope.row.不合格数量" :min="0" :max="scope.row.数量" :step="1" style="width: 90%" size="mini"/>
</template> </template>
<template v-else-if="scope.row.是否合格 === 1"> <template v-else-if="scope.row.是否合格 === 1">
{{ scope.row.不合格数量 =0 }} {{ scope.row.不合格数量 =0 }}
@@ -754,7 +754,7 @@ export default {
AddTableData_disable: false, AddTableData_disable: false,
loading: false, loading: false,
total: 0, // 总条数 total: 0, // 总条数
pageSize: 20, // 每页显示条数 pageSize: 10, // 每页显示条数
pageCurrent: 1, // 后台获取页 pageCurrent: 1, // 后台获取页
dialogmethod: false // false新增 true 编辑 dialogmethod: false // false新增 true 编辑
// total1: 0, // 总条数 // total1: 0, // 总条数

View File

@@ -172,7 +172,7 @@ export default {
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
if (this.pickListTable2.length === 0) { if (this.pickListTable2.length === 0) {
this.$message.error('空领料单,不能审批!') this.$message.error('不能审批空领料单')
return return
} }
const param = { const param = {

View File

@@ -11,7 +11,7 @@
:label="item.label" :label="item.label"
:value="item.value"/> :value="item.value"/>
</el-select> </el-select>
<el-button icon="el-icon-search" type="primary" size="small" plain @click="pageCurrent = 1;pageSize = 50;getTableData()">查询</el-button> <el-button icon="el-icon-search" type="primary" size="small" plain @click="getTableData()">查询</el-button>
<el-button type="success" class="el-icon-download" size="small" style="margin: 10px 0 0 10px" plain @click="exportExcel">导出</el-button> <el-button type="success" class="el-icon-download" size="small" style="margin: 10px 0 0 10px" plain @click="exportExcel">导出</el-button>
</div> </div>
</el-card> </el-card>
@@ -121,12 +121,18 @@ export default {
}, { }, {
value: 1, value: 1,
label: '已到' label: '已到'
}, {
value: 2,
label: '未提交'
}, {
value: 3,
label: '未外协'
}], }],
tableData: [], tableData: [],
procedure: [], procedure: [],
procedureTime: [], procedureTime: [],
pageCurrent: 1, pageCurrent: 1,
pageSize: 500, pageSize: 50,
tableData1: [] tableData1: []
} }
}, },