|
@ -3,14 +3,16 @@ |
|
|
<div class="head-container"> |
|
|
<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 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-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-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-option v-for="item in typeOptions" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-input> |
|
|
</el-input> |
|
|
|
|
|
<rrOperation /> |
|
|
|
|
|
|
|
|
</div> |
|
|
</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"> --> |
|
|
<!-- <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> |
|
|
<script> |
|
|
import pagination from '@crud/Pagination' |
|
|
import pagination from '@crud/Pagination' |
|
|
import CRUD, { presenter, crud } from '@crud/crud' |
|
|
import CRUD, { presenter, crud } from '@crud/crud' |
|
|
|
|
|
import rrOperation from '@crud/RR.operation' |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'CaseLog', |
|
|
name: 'CaseLog', |
|
|
components: { pagination }, |
|
|
|
|
|
|
|
|
components: { pagination, rrOperation }, |
|
|
mixins: [presenter(), crud()], |
|
|
mixins: [presenter(), crud()], |
|
|
cruds() { |
|
|
cruds() { |
|
|
return CRUD({ |
|
|
return CRUD({ |
|
|
// title: '岗位', |
|
|
// title: '岗位', |
|
|
// url: 'api/job', |
|
|
|
|
|
|
|
|
url: 'api/case/initCaseList', |
|
|
// crudMethod: { ...crudJob }, |
|
|
// crudMethod: { ...crudJob }, |
|
|
optShow: { |
|
|
optShow: { |
|
|
add: false, |
|
|
add: false, |
|
@ -63,7 +66,25 @@ export default { |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
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() { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|