|
|
@ -8,7 +8,7 @@ |
|
|
|
<!-- <el-select clearable size="small" class="filter-item" style="width: 100px" @change="crud.toQuery"> |
|
|
|
<el-option v-for="item in stateOptions" :key="item.key" :label="item.label" :value="item.key" /> |
|
|
|
</el-select> --> |
|
|
|
<el-input v-model="crud.query[inputSelect]" clearable size="small" placeholder="请输入关键词" style="width: 200px;" class="input-prepend filter-item" @keyup.enter.native="crud.toQuery"> |
|
|
|
<el-input v-model="crud.query[inputSelect]" clearable size="small" placeholder="请输入关键词" style="width: 200px;margin-left:10px" class="input-prepend filter-item" @keyup.enter.native="crud.toQuery"> |
|
|
|
<el-select slot="prepend" v-model="inputSelect" style="width: 80px" @change="crud.toQuery"> |
|
|
|
<el-option v-for="item in queryOptions" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
|
</el-select> |
|
|
@ -17,7 +17,7 @@ |
|
|
|
</template> |
|
|
|
<template v-slot:rightButtonGroup> |
|
|
|
<div class="archives-handler-btn"> |
|
|
|
<el-button class="packing-btn iconfont icon-weibiaoti-2" type="primary" @click="openCase(crud.selections)">拆盒</el-button> |
|
|
|
<el-button class="packing-btn iconfont icon-weibiaoti-2" type="primary" :disabled="crud.selections.length === 0" @click="openCase(crud.selections)">拆盒</el-button> |
|
|
|
<el-button class="binding-btn iconfont icon-weibiaoti-2" type="primary" :disabled="crud.selections.length !== 1" @click="bindingTag(crud.selections)">绑定标签</el-button> |
|
|
|
</div> |
|
|
|
</template> |
|
|
@ -144,11 +144,20 @@ export default { |
|
|
|
this.$refs.bindingTag.bindingVisible = true |
|
|
|
}, |
|
|
|
openCase(data) { |
|
|
|
console.log(data) |
|
|
|
const bool = data.some(item => item.depositNum === 0) |
|
|
|
if (bool) { |
|
|
|
this.$message({ |
|
|
|
message: '存在空档案盒不可拆盒!', |
|
|
|
type: 'warning' |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$refs.openCase.openCaseVisible = true |
|
|
|
this.$refs.openCase.caseData = data |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style rel="stylesheet/scss" lang="scss" scoped> |
|
|
|