|
@ -1,37 +1,42 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="app-container"> |
|
|
<div class="app-container"> |
|
|
<div class="head-container" style="padding:0 0 20px 0"> |
|
|
<div class="head-container" style="padding:0 0 20px 0"> |
|
|
<el-button size="mini" class="iconfont icon-xinzengpandian-fanbai" @click="handleAdd">新增</el-button> |
|
|
|
|
|
<el-button |
|
|
|
|
|
icon="el-icon-delete" |
|
|
|
|
|
size="mini" |
|
|
|
|
|
style="margin:0 0 0 10px" |
|
|
|
|
|
:disabled="!(selections.length && selections[0].checkState === '待执行') " |
|
|
|
|
|
@click="deleteVisible = true" |
|
|
|
|
|
>删除</el-button> |
|
|
|
|
|
<el-button size="mini" icon="el-icon-tickets" :disabled="!(selections.length===1 && selections[0].checkState === '执行中') " @click="handleCalc">结算</el-button> |
|
|
|
|
|
<el-select v-model="stateVal" class="filter-item" style="width: 90px;height:30px;margin:0 10px 0 10px"> |
|
|
|
|
|
<el-option v-for="item in stateOptions" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="keyWord" |
|
|
|
|
|
size="small" |
|
|
|
|
|
clearable |
|
|
|
|
|
placeholder="请输入关键词" |
|
|
|
|
|
style="width: 300px;margin-right:10px" |
|
|
|
|
|
class="input-prepend filter-item" |
|
|
|
|
|
@keyup.enter.native="crud.toQuery" |
|
|
|
|
|
> |
|
|
|
|
|
<el-select slot="prepend" v-model="cateSearch" style="width: 100px;"> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="item in cateSearchOptions" |
|
|
|
|
|
:key="item.value" |
|
|
|
|
|
:label="item.label" |
|
|
|
|
|
:value="item.value" |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
<div> |
|
|
|
|
|
<el-button size="mini" class="iconfont icon-xinzengpandian-fanbai" @click="handleAdd">新增</el-button> |
|
|
|
|
|
<el-button |
|
|
|
|
|
icon="el-icon-delete" |
|
|
|
|
|
size="mini" |
|
|
|
|
|
style="margin:0 0 0 10px" |
|
|
|
|
|
:disabled="!(selections.length && selections[0].checkState === 0) " |
|
|
|
|
|
@click="deleteVisible = true" |
|
|
|
|
|
>删除</el-button> |
|
|
|
|
|
<el-button size="mini" icon="el-icon-tickets" :disabled="!(selections.length===1 && selections[0].checkState === 1) " @click="handleCalc">结算</el-button> |
|
|
|
|
|
<el-select v-model="stateVal" class="filter-item" style="width: 90px;height:30px;margin:0 10px 0 10px"> |
|
|
|
|
|
<el-option v-for="item in stateOptions" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-input> |
|
|
|
|
|
<rrOperation /> |
|
|
|
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="keyWord" |
|
|
|
|
|
size="small" |
|
|
|
|
|
clearable |
|
|
|
|
|
placeholder="请输入关键词" |
|
|
|
|
|
style="width: 300px;margin-right:10px" |
|
|
|
|
|
class="input-prepend filter-item" |
|
|
|
|
|
@keyup.enter.native="crud.toQuery" |
|
|
|
|
|
> |
|
|
|
|
|
<el-select slot="prepend" v-model="cateSearch" style="width: 100px;"> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="item in cateSearchOptions" |
|
|
|
|
|
:key="item.value" |
|
|
|
|
|
:label="item.label" |
|
|
|
|
|
:value="item.value" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
<rrOperation /> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<el-button size="mini" icon="el-icon-brush" @click="handleCalc">清空缓存</el-button> |
|
|
|
|
|
</div> |
|
|
<!-- <crudOperation :permission="permission" /> --> |
|
|
<!-- <crudOperation :permission="permission" /> --> |
|
|
</div> |
|
|
</div> |
|
|
<div class="container-wrap" style="min-height: calc(100vh - 242px)"> |
|
|
<div class="container-wrap" style="min-height: calc(100vh - 242px)"> |
|
@ -40,7 +45,7 @@ |
|
|
<!--表格渲染--> |
|
|
<!--表格渲染--> |
|
|
<el-table |
|
|
<el-table |
|
|
ref="table" |
|
|
ref="table" |
|
|
:data="tableData" |
|
|
|
|
|
|
|
|
:data="crud.data" |
|
|
:cell-class-name="cell" |
|
|
:cell-class-name="cell" |
|
|
style="min-width: 100%" |
|
|
style="min-width: 100%" |
|
|
height="calc(100vh - 315px)" |
|
|
height="calc(100vh - 315px)" |
|
@ -50,20 +55,26 @@ |
|
|
> |
|
|
> |
|
|
<el-table-column type="selection" width="55" /> |
|
|
<el-table-column type="selection" width="55" /> |
|
|
<el-table-column type="index" align="center" label="序号" width="55" /> |
|
|
<el-table-column type="index" align="center" label="序号" width="55" /> |
|
|
<el-table-column prop="checkNum" align="center" label="盘点单号" min-width="100" /> |
|
|
|
|
|
<el-table-column prop="containPath" align="center" label="包含位置" min-width="140" /> |
|
|
|
|
|
|
|
|
<el-table-column prop="id" align="center" label="盘点单号" min-width="100" /> |
|
|
|
|
|
<el-table-column prop="region" align="center" label="包含位置" min-width="140" /> |
|
|
<el-table-column prop="checkState" align="center" label="盘点状态" min-width="60"> |
|
|
<el-table-column prop="checkState" align="center" label="盘点状态" min-width="60"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<!-- 已执行 / 待执行/执行中 --> |
|
|
<!-- 已执行 / 待执行/执行中 --> |
|
|
<span class="clear">{{ scope.row.checkState }}</span> |
|
|
|
|
|
|
|
|
<span class="clear">{{ scope.row.checkState | checkState }}</span> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column prop="correct" align="center" label="在库档案" min-width="60" /> |
|
|
|
|
|
<el-table-column prop="checked" align="center" label="已盘档案" min-width="60" /> |
|
|
|
|
|
<el-table-column prop="abnormal" align="center" label="异常档案" min-width="60" /> |
|
|
|
|
|
<el-table-column prop="noCheck" align="center" label="未盘档案" min-width="60" /> |
|
|
|
|
|
<el-table-column prop="borrowed" align="center" label="已借档案" min-width="60" /> |
|
|
|
|
|
<el-table-column prop="dislocation" align="center" label="错位档案" min-width="60" /> |
|
|
|
|
|
<el-table-column prop="others" align="center" label="多余档案" min-width="60" /> |
|
|
|
|
|
<el-table-column prop="create_time" align="center" label="创建时间" min-width="100"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<div>{{ scope.row.create_time | parseTime }}</div> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="storeNum" align="center" label="在库档案" min-width="60" /> |
|
|
|
|
|
<el-table-column prop="CheckedNum" align="center" label="已盘档案" min-width="60" /> |
|
|
|
|
|
<el-table-column prop="noCheckNum" align="center" label="未盘档案" min-width="60" /> |
|
|
|
|
|
<el-table-column prop="haveLendNum" align="center" label="已借档案" min-width="60" /> |
|
|
|
|
|
<el-table-column prop="misplaceNum" align="center" label="错位档案" min-width="60" /> |
|
|
|
|
|
<el-table-column prop="CreateTime" align="center" label="创建时间" min-width="100" /> |
|
|
|
|
|
</el-table> |
|
|
</el-table> |
|
|
<!--分页组件--> |
|
|
<!--分页组件--> |
|
|
<pagination /> |
|
|
<pagination /> |
|
@ -99,14 +110,28 @@ import pagination from '@crud/Pagination' |
|
|
import data1 from './data1.json' |
|
|
import data1 from './data1.json' |
|
|
import addCheck from './module/addCheck.vue' |
|
|
import addCheck from './module/addCheck.vue' |
|
|
import checkDetail from './module/checkDetail.vue' |
|
|
import checkDetail from './module/checkDetail.vue' |
|
|
|
|
|
import { getArrange, getArrangeDetailes } from '@/api/archivesManage/archivesCheck' |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'ArchivesCheck', |
|
|
name: 'ArchivesCheck', |
|
|
components: { pagination, rrOperation, addCheck, checkDetail }, |
|
|
components: { pagination, rrOperation, addCheck, checkDetail }, |
|
|
|
|
|
filters: { |
|
|
|
|
|
checkState(val) { |
|
|
|
|
|
switch (val) { |
|
|
|
|
|
case 0: |
|
|
|
|
|
return '待执行' |
|
|
|
|
|
case 1: |
|
|
|
|
|
return '执行中' |
|
|
|
|
|
case 2: |
|
|
|
|
|
return '已执行' |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
mixins: [presenter()], |
|
|
mixins: [presenter()], |
|
|
cruds() { |
|
|
cruds() { |
|
|
return CRUD({ |
|
|
return CRUD({ |
|
|
url: 'api/case/initCaseList', |
|
|
|
|
|
|
|
|
url: 'api/arrange/initArrangeList', |
|
|
|
|
|
// url: 'api/case/initCaseList', |
|
|
// crudMethod: caseCrudMethod, |
|
|
// crudMethod: caseCrudMethod, |
|
|
title: '档案盒', |
|
|
title: '档案盒', |
|
|
optShow: { |
|
|
optShow: { |
|
@ -119,7 +144,6 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// dicts: ['job_status'], |
|
|
// dicts: ['job_status'], |
|
|
|
|
|
|
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
tableData: [], |
|
|
tableData: [], |
|
@ -146,7 +170,8 @@ export default { |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
getData() { |
|
|
getData() { |
|
|
this.tableData = data1.rows |
|
|
|
|
|
|
|
|
// this.tableData = data1.rows |
|
|
|
|
|
console.log(this.crud) |
|
|
}, |
|
|
}, |
|
|
handleConfirm() { |
|
|
handleConfirm() { |
|
|
this.deleteVisible = false |
|
|
this.deleteVisible = false |
|
@ -164,11 +189,11 @@ export default { |
|
|
this.deleteVisible = false |
|
|
this.deleteVisible = false |
|
|
}, |
|
|
}, |
|
|
cell({ row, columnIndex }) { |
|
|
cell({ row, columnIndex }) { |
|
|
if (row.checkState === '已执行' && columnIndex === 4) { |
|
|
|
|
|
|
|
|
if (row.checkState === 2 && columnIndex === 4) { |
|
|
return 'have-clear' |
|
|
return 'have-clear' |
|
|
} else if (row.checkState === '待执行' && columnIndex === 4) { |
|
|
|
|
|
|
|
|
} else if (row.checkState === 0 && columnIndex === 4) { |
|
|
return 'fail-clear' |
|
|
return 'fail-clear' |
|
|
} else if (row.checkState === '执行中' && columnIndex === 4) { |
|
|
|
|
|
|
|
|
} else if (row.checkState === 1 && columnIndex === 4) { |
|
|
return 'no-clear' |
|
|
return 'no-clear' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -178,21 +203,34 @@ export default { |
|
|
clickRowHandler(row) { |
|
|
clickRowHandler(row) { |
|
|
this.$refs.table.toggleRowSelection(row) |
|
|
this.$refs.table.toggleRowSelection(row) |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 双击详情 |
|
|
handleDbClick(row) { |
|
|
handleDbClick(row) { |
|
|
// this.$refs.table.clearSelection() |
|
|
// this.$refs.table.clearSelection() |
|
|
|
|
|
// console.log(row.id) |
|
|
const checkDetailDom = this.$refs.checkDetailDom |
|
|
const checkDetailDom = this.$refs.checkDetailDom |
|
|
|
|
|
const params = { |
|
|
|
|
|
orderNo: row.id |
|
|
|
|
|
} |
|
|
|
|
|
getArrange(params).then(res => { |
|
|
|
|
|
console.log(res, 'res') |
|
|
|
|
|
checkDetailDom.rowData.push(res) |
|
|
|
|
|
console.log(checkDetailDom.rowData, '.........') |
|
|
|
|
|
}) |
|
|
|
|
|
getArrangeDetailes(params).then(res => { |
|
|
|
|
|
console.log(res, 'res2') |
|
|
|
|
|
checkDetailDom.tableData = res.content |
|
|
|
|
|
}) |
|
|
checkDetailDom.detailVisible = true |
|
|
checkDetailDom.detailVisible = true |
|
|
checkDetailDom.rowData = row |
|
|
|
|
|
const arr = data1.rows.filter(item => item.checkNum === row.checkNum) |
|
|
|
|
|
checkDetailDom.tableData = arr |
|
|
|
|
|
|
|
|
// const arr = data1.rows.filter(item => item.checkNum === row.checkNum) |
|
|
|
|
|
// checkDetailDom.tableData = arr |
|
|
// 状态类名 |
|
|
// 状态类名 |
|
|
if (row.checkState === '已执行') { |
|
|
|
|
|
checkDetailDom.classLend = 'have-clear' |
|
|
|
|
|
} else if (row.checkState === '待执行') { |
|
|
|
|
|
checkDetailDom.classLend = 'fail-clear' |
|
|
|
|
|
} else if (row.checkState === '执行中') { |
|
|
|
|
|
checkDetailDom.classLend = 'no-clear' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// if (row.checkState === '已执行') { |
|
|
|
|
|
// checkDetailDom.classLend = 'have-clear' |
|
|
|
|
|
// } else if (row.checkState === '待执行') { |
|
|
|
|
|
// checkDetailDom.classLend = 'fail-clear' |
|
|
|
|
|
// } else if (row.checkState === '执行中') { |
|
|
|
|
|
// checkDetailDom.classLend = 'no-clear' |
|
|
|
|
|
// } |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
@ -205,6 +243,8 @@ export default { |
|
|
|
|
|
|
|
|
.head-container { |
|
|
.head-container { |
|
|
color: #fff; |
|
|
color: #fff; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
justify-content: space-between; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
::v-deep .el-dialog__footer { |
|
|
::v-deep .el-dialog__footer { |
|
|