diff --git a/src/views/archivesManage/outInStorage/inStorage/index.vue b/src/views/archivesManage/outInStorage/inStorage/index.vue index dd2a231..385aca0 100644 --- a/src/views/archivesManage/outInStorage/inStorage/index.vue +++ b/src/views/archivesManage/outInStorage/inStorage/index.vue @@ -3,7 +3,7 @@ 入库 - + 人工确认 - + + + + + +
+

当前档案盒正在入库,请勿重复操作

+
+
+ + + + +
+

入库成功

+
+
+ + + + +
+

当前档案盒状态不为“待入”,不可人工确认

+
+
@@ -84,6 +108,9 @@ export default { }, data() { return { + msgVisible: false, + msgSuccessVisible: false, + msgFailVisible: false, tableData: [], selections: [], keyWord: '', @@ -126,10 +153,31 @@ export default { // 入库 handleIn() { if (this.selections.length > 0) { - this.$refs.inDialogDom.dialogVisible = true + const bool = this.selections.some(item => item.inState === '待入') + if (bool) { // 有'待入'状态弹出提示 + this.msgVisible = true + } else { // 全部是'未入'状态弹出入库操作 + this.$refs.inDialogDom.dialogVisible = true + } } else { this.$message({ - message: '请选择要入库的档案', + message: '请选择档案', + type: 'warning' + }) + } + }, + // 人工确认 + handleManual() { + if (this.selections.length > 0) { + const bool = this.selections.every(item => item.inState === '待入') + if (bool) { // 全是'待入'状态弹出成功提示 + this.msgSuccessVisible = true + } else { // 否则提示 + this.msgFailVisible = true + } + } else { + this.$message({ + message: '请选择档案', type: 'warning' }) } @@ -141,5 +189,8 @@ export default { diff --git a/src/views/archivesManage/outInStorage/inStorage/module/inDialog.vue b/src/views/archivesManage/outInStorage/inStorage/module/inDialog.vue index 549d008..afb7f56 100644 --- a/src/views/archivesManage/outInStorage/inStorage/module/inDialog.vue +++ b/src/views/archivesManage/outInStorage/inStorage/module/inDialog.vue @@ -1,5 +1,6 @@ @@ -58,23 +99,60 @@ export default { data() { return { - dialogVisible: true, + dialogVisible: false, + cnName: '', defaultProps: { children: 'children', label: 'cnName' }, treeData: [{ cnName: '档案库', children: [ - { cnName: '密集柜' }, + { cnName: '密集架' }, { cnName: '回转柜' } ] }], - fieldNum: 0 - + // 密集柜 + fieldNum: 1, + fieldOptions: [ + { value: '选项1', label: '1' }, + { value: '选项2', label: '2' } + ], + colVal: 1, + colOptions: [ + { value: '选项1', label: '1' }, + { value: '选项2', label: '2' } + ], + sectionVal: 1, + sectionOptions: [ + { value: '选项1', label: '1' }, + { value: '选项2', label: '2' } + ], + levelVal: 1, + levelOptions: [ + { value: '选项1', label: '1' }, + { value: '选项2', label: '2' } + ], + directionVal: '右边', + directionOptions: [ + { value: '选项1', label: '左边' }, + { value: '选项2', label: '右边' } + ], + // 回转柜 + cabinetNum: 1, + cabLevel: 1, + cabLevelOptions: [ + { value: '选项1', label: '1' }, + { value: '选项2', label: '2' } + ], + cabCol: 1, + cabColOptions: [ + { value: '选项1', label: '1' }, + { value: '选项2', label: '2' } + ] } }, methods: { - // 切换菜单 + // 选中设备出现相应设置 handleNodeClick(data) { - console.log(data) + this.cnName = data.cnName } } } @@ -129,13 +207,14 @@ export default { position: relative; span{ width: 33px; - height: 32px; - line-height: 32px; + height: 36px; + line-height: 36px; text-align: right; padding-right: 5px; } .el-input{ width: 76px; + height: 36px !important; } } .item-line::before{ @@ -149,4 +228,31 @@ export default { left: -20px; } } +.el-button{ + background-color: #339CFF; + padding: 0; + width: 36px; + height: 36px; + } +::v-deep .el-icon-refresh:before{ + font-size: 18px; +} +.refresh-btn{ + display: flex; + justify-content: right; + padding-right:39px; +} +::v-deep .head-container .filter-item .el-input__inner{ + height: 36px; +} +.success-msg{ + color: #1AAF91 ; + display: flex; + align-items: center; + padding-left: 25px; + .el-icon-success{ + font-size: 20px; + margin-right: 7px; + } +}