给搜索加enter回车事件

master
zhangdi 11 months ago
parent fe5b90573e
commit 0d171b5ff1
  1. 1
      src/option/system/dict.js
  2. 1
      src/option/system/dictbiz.js
  3. 1
      src/views/authority/apiscope.vue
  4. 1
      src/views/authority/datascope.vue
  5. 1
      src/views/authority/role.vue
  6. 1
      src/views/businessManagement/inspection/repair.vue
  7. 8
      src/views/businessManagement/inspection/task.vue
  8. 6
      src/views/businessManagement/ordinary.vue
  9. 1
      src/views/customerFeedback/feedback.vue
  10. 2
      src/views/desk/message.vue
  11. 1
      src/views/desk/notice.vue
  12. 1
      src/views/device/deviceSystem.vue
  13. 1
      src/views/feedback/list.vue
  14. 1
      src/views/goodsManagement/examineList.vue
  15. 1
      src/views/goodsManagement/goodsList.vue
  16. 45
      src/views/goodsManagement/reciviceList.vue
  17. 1
      src/views/goodsManagement/warehouseList.vue
  18. 1
      src/views/knowledge/list.vue
  19. 1
      src/views/labManagement/inspectionManagement.vue
  20. 1
      src/views/operation/hand.vue
  21. 1
      src/views/system/check.vue
  22. 1
      src/views/system/client.vue
  23. 1
      src/views/system/dept.vue
  24. 1
      src/views/system/menu.vue
  25. 1
      src/views/system/post.vue
  26. 1
      src/views/system/tenant.vue
  27. 1
      src/views/system/user.vue
  28. 2
      src/views/workbench/index.vue

@ -11,6 +11,7 @@ export const optionParent = {
menuWidth: 250, menuWidth: 250,
dialogWidth: 880, dialogWidth: 880,
dialogClickModal: false, dialogClickModal: false,
searchEnter:true,
column: [ column: [
{ {
label: "字典编号", label: "字典编号",

@ -11,6 +11,7 @@ export const optionParent = {
menuWidth: 250, menuWidth: 250,
dialogWidth: 880, dialogWidth: 880,
dialogClickModal: false, dialogClickModal: false,
searchEnter:true,
column: [ column: [
{ {
label: "字典编号", label: "字典编号",

@ -133,6 +133,7 @@
excelBtn: false, // Excel excelBtn: false, // Excel
printBtn: false, // printBtn: false, //
filterBtn: false, // filterBtn: false, //
searchEnter:true,
column: [ column: [
{ {
label: "菜单名称", label: "菜单名称",

@ -137,6 +137,7 @@
excelBtn: false, // Excel excelBtn: false, // Excel
printBtn: false, // printBtn: false, //
filterBtn: false, // filterBtn: false, //
searchEnter:true,
column: [ column: [
{ {
label: "菜单名称", label: "菜单名称",

@ -126,6 +126,7 @@
excelBtn: false, // Excel excelBtn: false, // Excel
printBtn: false, // printBtn: false, //
filterBtn: false, // filterBtn: false, //
searchEnter:true,
column: [ column: [
{ {
label: "角色名称", label: "角色名称",

@ -459,6 +459,7 @@ export default {
excelBtn: false,       // Excel excelBtn: false,       // Excel
printBtn: false,       // printBtn: false,       //
filterBtn: false,      // filterBtn: false,      //
searchEnter:true,
column: [ column: [
{ {
label: "任务单号", label: "任务单号",

@ -6,7 +6,7 @@
@current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"> @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
<template slot-scope="scope" slot="menuLeft"> <template slot-scope="scope" slot="menuLeft">
<el-button type="primary" v-show="permission.createTask" size="small" @click="createTask">生成巡检任务</el-button> <el-button type="primary" v-show="permission.createTask" size="small" @click="createTask">生成巡检任务</el-button>
<el-button type="primary" size="small" @click="allExportReport">批量导出报告</el-button> <el-button type="primary" size="small" @click="allExportReport" :loading="allExportLoading">批量导出报告</el-button>
</template> </template>
<template slot-scope="{ row }" slot="taskStatus"> <template slot-scope="{ row }" slot="taskStatus">
<!-- role_id 运维主管 1839537055389515777 维修人员 1839552581620793346 实验室管理员 1846419477876510721--> <!-- role_id 运维主管 1839537055389515777 维修人员 1839552581620793346 实验室管理员 1846419477876510721-->
@ -465,6 +465,7 @@ export default {
        excelBtn: false,       // Excel         excelBtn: false,       // Excel
        printBtn: false,       //         printBtn: false,       //
        filterBtn: false,      //         filterBtn: false,      //
searchEnter:true,
column: [ column: [
{ {
label: "任务单号", label: "任务单号",
@ -568,7 +569,8 @@ export default {
role_id: '', role_id: '',
tableData: [], tableData: [],
inspectionTable: [], inspectionTable: [],
routingFormShow: false routingFormShow: false,
allExportLoading:false,
} }
}, },
computed: { computed: {
@ -621,6 +623,7 @@ export default {
this.$message.warning('请选择状态为已完成的数据') this.$message.warning('请选择状态为已完成的数据')
} else { } else {
console.log('批量导出报告', this.selectedList) console.log('批量导出报告', this.selectedList)
this.allExportLoading = true
zipDownload('/api/lab-ops/maintenance/batch-maintenance-output-service', this.selectedList) zipDownload('/api/lab-ops/maintenance/batch-maintenance-output-service', this.selectedList)
.then((response) => { .then((response) => {
const blob = new Blob([response.data]) const blob = new Blob([response.data])
@ -637,6 +640,7 @@ export default {
} else { // IE10+ } else { // IE10+
navigator.msSaveBlob(blob, fileName) navigator.msSaveBlob(blob, fileName)
} }
this.allExportLoading = false
}) })
.catch((err) => { .catch((err) => {
console.log(err); console.log(err);

@ -34,7 +34,7 @@
<el-button type="primary" size="small" @click="handleApproval" <el-button type="primary" size="small" @click="handleApproval"
v-show="role_id == '1839600115013713921'">审批</el-button> v-show="role_id == '1839600115013713921'">审批</el-button>
<el-button type="primary" size="small" @click="allExportReport">批量导出报告</el-button> <el-button type="primary" size="small" @click="allExportReport" :loading="allExportLoading">批量导出报告</el-button>
</template> </template>
<template slot-scope="{ row }" slot="menu"> <template slot-scope="{ row }" slot="menu">
<!-- orderView() --> <!-- orderView() -->
@ -753,6 +753,7 @@ export default {
columnBtn: false, columnBtn: false,
selection: true, selection: true,
menuWidth: 350, menuWidth: 350,
searchEnter:true,
column: [ column: [
{ {
label: "提报时间", label: "提报时间",
@ -917,6 +918,7 @@ export default {
}, },
overStatusList: [], overStatusList: [],
completeImgList: [],// completeImgList: [],//
allExportLoading:false,// loading
} }
}, },
@ -1059,6 +1061,7 @@ export default {
if (tmp.length != this.selectList.length) { if (tmp.length != this.selectList.length) {
this.$message.warning('请选择状态为已完成的数据') this.$message.warning('请选择状态为已完成的数据')
} else { } else {
this.allExportLoading = true
zipDownload('/api/lab-ops/work-order/batch-report-service', this.selectList) zipDownload('/api/lab-ops/work-order/batch-report-service', this.selectList)
.then((response) => { .then((response) => {
const blob = new Blob([response.data]) const blob = new Blob([response.data])
@ -1075,6 +1078,7 @@ export default {
} else { // IE10+ } else { // IE10+
navigator.msSaveBlob(blob, fileName) navigator.msSaveBlob(blob, fileName)
} }
this.allExportLoading = false
}) })
.catch((err) => { .catch((err) => {
console.log(err); console.log(err);

@ -137,6 +137,7 @@ export default {
refreshBtn: false, refreshBtn: false,
columnBtn: false, columnBtn: false,
menuWidth: 240, menuWidth: 240,
searchEnter:true,
column: [ column: [
{ {
label: "意见单号", label: "意见单号",

@ -74,6 +74,7 @@
excelBtn: true, excelBtn: true,
addBtn:false, addBtn:false,
dialogClickModal: false, dialogClickModal: false,
searchEnter:true,
column: [ column: [
{ {
label: "单号", label: "单号",
@ -301,4 +302,3 @@
<style> <style>
</style> </style>

@ -64,6 +64,7 @@
selection: true, selection: true,
excelBtn: true, excelBtn: true,
dialogClickModal: false, dialogClickModal: false,
searchEnter:true,
column: [ column: [
{ {
label: "通知标题", label: "通知标题",

@ -355,6 +355,7 @@ export default {
index: true, index: true,
dialogType: "dialog", dialogType: "dialog",
dialogClickModal: false, dialogClickModal: false,
searchEnter:true,
addBtn: false, addBtn: false,
viewBtn: false, viewBtn: false,
editBtn: false, editBtn: false,

@ -117,6 +117,7 @@ export default {
refreshBtn: false, refreshBtn: false,
columnBtn: false, columnBtn: false,
menuWidth: 240, menuWidth: 240,
searchEnter:true,
column: [ column: [
{ {
label: "意见单号", label: "意见单号",

@ -170,6 +170,7 @@ export default {
refreshBtn: false, refreshBtn: false,
columnBtn: false, columnBtn: false,
menuWidth: 240, menuWidth: 240,
searchEnter:true,
column: [ column: [
{ {
label: "申领人", label: "申领人",

@ -348,6 +348,7 @@ export default {
refreshBtn: false, refreshBtn: false,
columnBtn: false, columnBtn: false,
menuWidth: 300, menuWidth: 300,
searchEnter:true,
column: [ column: [
{ {
label: "库存ID", label: "库存ID",

@ -32,8 +32,8 @@
:tree-options="treeOptions" :default-value="searchFrom.bigClassId.node"></SelectTree> :tree-options="treeOptions" :default-value="searchFrom.bigClassId.node"></SelectTree>
</template> </template>
<template slot-scope="{row}" slot="timeRangeSearch"> <template slot-scope="{row}" slot="timeRangeSearch">
<el-date-picker v-model="searchFrom.timeRange" type="daterange" range-separator="" start-placeholder="开始日期" <el-date-picker v-model="searchFrom.timeRange" type="daterange" value-format="yyyy-MM-dd" range-separator="" start-placeholder="开始日期"
end-placeholder="结束日期"> end-placeholder="结束日期" >
</el-date-picker> </el-date-picker>
</template> </template>
<!-- <template slot-scope="scope" slot="menuLeft"> <!-- <template slot-scope="scope" slot="menuLeft">
@ -91,6 +91,7 @@
import SelectTree from '../../components/selectTree/tree.vue' import SelectTree from '../../components/selectTree/tree.vue'
import { getReciviceList, getDetail, reciveGoods, returnGoods } from '@/api/goodsManagement/recivice' import { getReciviceList, getDetail, reciveGoods, returnGoods } from '@/api/goodsManagement/recivice'
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import { dateFormat } from "../../util/date";
export default { export default {
components: { components: {
SelectTree SelectTree
@ -197,6 +198,7 @@ export default {
refreshBtn: false, refreshBtn: false,
columnBtn: false, columnBtn: false,
menuWidth: 200, menuWidth: 200,
searchEnter:true,
column: [ column: [
{ {
label: "申领单号", label: "申领单号",
@ -208,7 +210,7 @@ export default {
label: "申领人", label: "申领人",
labelWidth: 120, labelWidth: 120,
prop: "applyUser", prop: "applyUser",
// search: true, search: true,
overHidden: true, overHidden: true,
}, },
// //
@ -240,6 +242,7 @@ export default {
labelWidth: 120, labelWidth: 120,
prop: "applyTypeNum", prop: "applyTypeNum",
overHidden: true, overHidden: true,
}, },
{ {
label: "申领时间", label: "申领时间",
@ -247,6 +250,34 @@ export default {
prop: "applyTime", prop: "applyTime",
overHidden: true, overHidden: true,
}, },
{
label: "申领时间",
prop: "timeRange",
type: "date",
format: "yyyy-MM-dd",
valueFormat: "yyyy-MM-dd",
search: true,
hide: true,
viewDisplay: false,
searchValue: dateFormat(new Date(), "yyyy-MM-dd"),
searchClearable: false,
},
{
label: "仓库编号",
labelWidth: 120,
prop: "applyUser",
search: true,
hide: true,
viewDisplay: false,
},
{
label: "物料名称",
labelWidth: 120,
prop: "applyUser",
search: true,
hide: true,
viewDisplay: false,
},
{ {
label: "是否需要归还", label: "是否需要归还",
labelWidth: 150, labelWidth: 150,
@ -537,14 +568,16 @@ export default {
// { goodsId: 'WPID-001', goodsNo: 'WL-20240820-01', goodsName: '', goodsTypeName: '', majorTypeName: '', brand: '西', model: '50mm', parameter: '', applyNumber: 30, applyTime: '2024-07-12', applyUser: '',isReturn:1, unit: '', }, // { goodsId: 'WPID-001', goodsNo: 'WL-20240820-01', goodsName: '', goodsTypeName: '', majorTypeName: '', brand: '西', model: '50mm', parameter: '', applyNumber: 30, applyTime: '2024-07-12', applyUser: '',isReturn:1, unit: '', },
// { goodsId: 'WPID-002', goodsNo: 'WL-20240820-02', goodsName: '', goodsTypeName: '', majorTypeName: '', brand: '西', model: '50mm', parameter: '', applyNumber: 60, applyTime: '2024-07-12', applyUser: '',isReturn:2, unit: '', }, // { goodsId: 'WPID-002', goodsNo: 'WL-20240820-02', goodsName: '', goodsTypeName: '', majorTypeName: '', brand: '西', model: '50mm', parameter: '', applyNumber: 60, applyTime: '2024-07-12', applyUser: '',isReturn:2, unit: '', },
// ] // ]
console.log('searchForm-------->', this.searchFrom) console.log('searchForm-------->', this.searchFrom)
let query = { let query = {
current: this.page.currentPage, current: this.page.currentPage,
size: this.page.pageSize, size: this.page.pageSize,
startTime: this.searchFrom.timeRange.length != 0 ? this.searchFrom.timeRange[0] : null, startTime: this.searchFrom.timeRange&&this.searchFrom.timeRange.length != 0 ? this.searchFrom.timeRange[0].toString()+ ' 00:00:00' : null,
endTime: this.searchFrom.timeRange.length != 0 ? this.searchFrom.timeRange[1] : null, endTime: this.searchFrom.timeRange&&this.searchFrom.timeRange.length != 0 ? this.searchFrom.timeRange[1].toString() + ' 23:59:59' : null,
isReturn: this.searchFrom.isReturn ? this.searchFrom.isReturn : null, isReturn: this.searchFrom.isReturn ? this.searchFrom.isReturn : null,
dataType:this.dataTypes dataType:this.dataTypes,
applyUser:this.searchFrom.applyUser
} }
getReciviceList(query).then(res => { getReciviceList(query).then(res => {
this.data = res.data.data.records this.data = res.data.data.records

@ -109,6 +109,7 @@ export default {
columnBtn: false, columnBtn: false,
menuWidth: 400, menuWidth: 400,
selection: true, selection: true,
searchEnter:true,
column: [ column: [
{ {
label: "仓库编码", label: "仓库编码",

@ -82,6 +82,7 @@ export default {
cancelBtn: false, cancelBtn: false,
dialogType: 'dialog', dialogType: 'dialog',
dialogClickModal: false, dialogClickModal: false,
searchEnter:true,
column: [ column: [
{ {
label: "知识类别", label: "知识类别",

@ -145,6 +145,7 @@ export default {
excelBtn: false,       // Excel excelBtn: false,       // Excel
printBtn: false,       // printBtn: false,       //
filterBtn: false,      // filterBtn: false,      //
searchEnter:true,
column: [ column: [
{ {
label: "巡检计划单号", label: "巡检计划单号",

@ -522,6 +522,7 @@ export default {
selection: true, selection: true,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,
searchEnter:true,
border: true, border: true,
index: true, index: true,
dialogType: "dialog", dialogType: "dialog",

@ -76,6 +76,7 @@ export default {
addBtn: false, addBtn: false,
menuWidth: 300, menuWidth: 300,
dialogClickModal: false, dialogClickModal: false,
searchEnter:true,
column: [ column: [
{ {
label: '账号', label: '账号',

@ -58,6 +58,7 @@
viewBtn: true, viewBtn: true,
selection: true, selection: true,
dialogClickModal: false, dialogClickModal: false,
searchEnter:true,
column: [ column: [
{ {
label: "应用id", label: "应用id",

@ -70,6 +70,7 @@ export default {
menuWidth: 300, menuWidth: 300,
addBtn: true, addBtn: true,
dialogClickModal: false, dialogClickModal: false,
searchEnter:true,
column: [ column: [
{ {
label: "机构名称", label: "机构名称",

@ -82,6 +82,7 @@
viewBtn: true, viewBtn: true,
menuWidth: 300, menuWidth: 300,
dialogClickModal: false, dialogClickModal: false,
searchEnter:true,
column: [ column: [
{ {
label: "菜单名称", label: "菜单名称",

@ -63,6 +63,7 @@
viewBtn: true, viewBtn: true,
selection: true, selection: true,
dialogClickModal: false, dialogClickModal: false,
searchEnter:true,
column: [ column: [
{ {
label: "所属租户", label: "所属租户",

@ -208,6 +208,7 @@ export default {
menuWidth: 380, menuWidth: 380,
dialogWidth: 900, dialogWidth: 900,
dialogClickModal: false, dialogClickModal: false,
searchEnter:true,
column: [ column: [
{ {
label: "租户ID", label: "租户ID",

@ -238,6 +238,7 @@ export default {
excelBtn: false, // Excel excelBtn: false, // Excel
printBtn: false, // printBtn: false, //
filterBtn: false, // filterBtn: false, //
searchEnter:true,
column: [ column: [
{ {
label: "登录账号", label: "登录账号",

@ -47,7 +47,7 @@
<div class="xj_tit">信息公示</div> <div class="xj_tit">信息公示</div>
<div class="xj_con"> <div class="xj_con">
<vueSeamless v-if="publicInfo.length >= 1" :data="publicInfo" :class-option="alarmOption" <vueSeamless v-if="publicInfo.length >= 1" :data="publicInfo" :class-option="alarmOption"
class="xj_con_box"> class="xj_con_box" ref="scrollContainer">
<div class="xj_item" v-for="item in publicInfo" :key="item.name" @click="pageType(item)"> <div class="xj_item" v-for="item in publicInfo" :key="item.name" @click="pageType(item)">
<div class="xj_top"> <div class="xj_top">
<div class="tit_box"> <div class="tit_box">

Loading…
Cancel
Save