Browse Source

盒管理 档案盒记录

master
x_ying 3 years ago
parent
commit
129c04c58c
  1. 10
      src/views/archivesManage/caseManage/caseList/index.vue
  2. 35
      src/views/archivesManage/caseManage/caseLog/index.vue

10
src/views/archivesManage/caseManage/caseList/index.vue

@ -2,6 +2,7 @@
<div>
<!--工具栏-->
<div class="head-container">
<!-- <button @click="test">测试</button> -->
<crudOperation :permission="permission">
<template v-slot:right>
<!-- 搜索 v-model="query.enabled"-->
@ -30,7 +31,11 @@
<el-table ref="table" v-loading="crud.loading" :data="crud.data" style="width: 100%;" height="calc(100vh - 357px)" @selection-change="crud.selectionChangeHandler" @row-click="clickRowHandler">
<el-table-column type="selection" width="55" align="center" />
<el-table-column type="index" label="序号" width="55" align="center" />
<el-table-column prop="depositNum" label="入库" align="center" />
<el-table-column prop="depositNum" label="入库" align="center">
<!-- <template slot-scope="scope">
<span v-if="" class="clear" style="width:56px">{{ scope.row.inState }}</span>
</template> -->
</el-table-column>
<el-table-column prop="depositNum" label="已装" align="center" />
<el-table-column prop="caseName" label="盒名称" align="center" />
<el-table-column prop="tid" label="TID" align="center" />
@ -129,6 +134,9 @@ export default {
}
},
methods: {
// test() {
// console.log(this.crud.data, '---')
// },
handleConfirm() {
},
handleClose(done) {

35
src/views/archivesManage/caseManage/caseLog/index.vue

@ -3,14 +3,16 @@
<div class="head-container">
<!-- <el-button v-permission="permission.download" :loading="crud.downloadLoading" size="mini" icon="el-icon-download" @click="handleExport">导出</el-button> -->
<el-button size="mini" icon="el-icon-download">导出</el-button>
<el-select slot="prepend" v-model="caseState" class="filter-item" style="width: 130px;height:30px;margin-right:10px" @change="initData">
<el-option v-for="item in caseStateOptions" :key="item.value" :label="item.label" :value="item.value" />
<el-select slot="prepend" v-model="bindType" class="filter-item" style="width: 130px;height:30px;margin-right:10px" @change="initData">
<el-option v-for="item in bindTypeOptions" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
<el-input v-model="typeVal" clearable size="small" placeholder="请输入关键词" style="width: 200px;" class="input-prepend filter-item" @keyup.enter.native="initData">
<el-select slot="prepend" v-model="inputSelect" style="width: 80px">
<el-input v-model="keyWord" clearable size="small" placeholder="请输入关键词" style="width: 200px;" class="input-prepend filter-item" @keyup.enter.native="initData">
<el-select slot="prepend" v-model="type" style="width: 80px">
<el-option v-for="item in typeOptions" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
</el-input>
<rrOperation />
</div>
<!--表格渲染-->
<!-- <el-table ref="table" v-loading="crud.loading" :data="crud.data" style="width: 100%;" height="calc(100vh - 357px)" @selection-change="crud.selectionChangeHandler" @row-click="clickRowHandler"> -->
@ -42,15 +44,16 @@
<script>
import pagination from '@crud/Pagination'
import CRUD, { presenter, crud } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
export default {
name: 'CaseLog',
components: { pagination },
components: { pagination, rrOperation },
mixins: [presenter(), crud()],
cruds() {
return CRUD({
// title: '',
// url: 'api/job',
url: 'api/case/initCaseList',
// crudMethod: { ...crudJob },
optShow: {
add: false,
@ -63,7 +66,25 @@ export default {
},
data() {
return {
tableData: []
tableData: [],
keyWord: '',
bindType: '0',
bindTypeOptions: [
{ value: '0', label: '全部' },
{ value: '1', label: '装盒' },
{ value: '2', label: '拆盒' }
],
type: '1',
typeOptions: [
{ value: '1', label: '盒名称' },
{ value: '2', label: 'TID' },
{ value: '3', label: '条形码' }
]
}
},
methods: {
initData() {
}
}
}

Loading…
Cancel
Save