| | |
| | | :ajaxFun="ajaxFun" |
| | | ref="locationTable" |
| | | > |
| | | <template #toolbar></template> |
| | | <template #toolbar> |
| | | <el-button type="primary" @click="addOrUpdateHandle" |
| | | v-if="permissions.basic_location_add">新增</el-button> |
| | | </template> |
| | | </ttable> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <table-form |
| | |
| | | mulLocation: [], |
| | | uploadInfo: { |
| | | // 是否展示上传EXCEL以及对应的url |
| | | isShow: true, |
| | | isShow: false, |
| | | url: '/mes/location/upload' |
| | | }, |
| | | prelang: 'operation', |
| | |
| | | seqNo: true, |
| | | isShowHide: true, // 是否显示显影按钮 |
| | | isSearch: true, // 高级查询按钮 |
| | | isRefresh: true, // 是否显示刷新按钮 |
| | | defaultOrderBy: { column: 'createTime', direction: 'desc' } |
| | | }, |
| | | table: { |
| | |
| | | optList: () => { |
| | | return this.getWarehouseLocGroupList() |
| | | } |
| | | }, |
| | | }/* , |
| | | // ERP库位 |
| | | { |
| | | minWidth: '200', |
| | | prop: 'ifsLocation', |
| | | label: 'ERP库位', |
| | | label: 'IFS库位', |
| | | sort: true, |
| | | isTrue: false, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | } |
| | | } */ |
| | | ], |
| | | toolbar: [ |
| | | { |
| | | text: '新增', |
| | | type: 'primary', |
| | | fun: this.addOrUpdateHandle |
| | | } |
| | | ], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | |
| | | TableForm |
| | | }, |
| | | created() { |
| | | if(this.permissions.basic_location_del){ |
| | | this.table.operator = [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ] |
| | | } |
| | | this.getLocTypeCache('warehouse_type') // 获取定时任务运行时状态 |
| | | this.initWarehouseSelect() |
| | | // this.getIFSLocationCache() |
| | |
| | | }, |
| | | // 新增 / 修改 |
| | | addOrUpdateHandle(row) { |
| | | if(!this.permissions.basic_location_edit && row.id!=null){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.addOrUpdateVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.addOrUpdate.init(row == null ? null : row.id) |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | |
| | | this.$confirm('是否确认删除库位号为' + row.locNo, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |