给搜索加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. 5
      src/views/authority/apiscope.vue
  4. 5
      src/views/authority/datascope.vue
  5. 3
      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. 6
      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,
dialogWidth: 880,
dialogClickModal: false,
searchEnter:true,
column: [
{
label: "字典编号",

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

@ -127,12 +127,13 @@
menuWidth: 150,
dialogClickModal: false,
searchShowBtn: false, //
refreshBtn: false, //
refreshBtn: false, //
columnBtn: false, //
gridBtn:false,
excelBtn: false, // Excel
printBtn: false, //
filterBtn: false, //
searchEnter:true,
column: [
{
label: "菜单名称",
@ -321,7 +322,7 @@
dialogWidth: 900,
dialogClickModal: false,
searchShowBtn: false, //
refreshBtn: false, //
refreshBtn: false, //
columnBtn: false, //
gridBtn:false,
excelBtn: false, // Excel

@ -131,12 +131,13 @@
menuWidth: 150,
dialogClickModal: false,
searchShowBtn: false, //
refreshBtn: false, //
refreshBtn: false, //
columnBtn: false, //
gridBtn:false,
excelBtn: false, // Excel
printBtn: false, //
filterBtn: false, //
searchEnter:true,
column: [
{
label: "菜单名称",
@ -325,7 +326,7 @@
dialogWidth: 900,
dialogClickModal: false,
searchShowBtn: false, //
refreshBtn: false, //
refreshBtn: false, //
columnBtn: false, //
gridBtn:false,
excelBtn: false, // Excel

@ -120,12 +120,13 @@
dialogWidth: 900,
dialogClickModal: false,
searchShowBtn: false, //
refreshBtn: false, //
refreshBtn: false, //
columnBtn: false, //
gridBtn:false,
excelBtn: false, // Excel
printBtn: false, //
filterBtn: false, //
searchEnter:true,
column: [
{
label: "角色名称",

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

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

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

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

@ -41,7 +41,7 @@
</avue-crud>
</basic-container>
</template>
<script>
// import {getList, remove, update, add, getNotice} from "@/api/desk/notice";
import {messTotal,getList,messOver,overAll} from '@/api/desk/message'
@ -74,6 +74,7 @@
excelBtn: true,
addBtn:false,
dialogClickModal: false,
searchEnter:true,
column: [
{
label: "单号",
@ -298,7 +299,6 @@
}
};
</script>
<style>
</style>

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

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

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

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

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

@ -32,8 +32,8 @@
:tree-options="treeOptions" :default-value="searchFrom.bigClassId.node"></SelectTree>
</template>
<template slot-scope="{row}" slot="timeRangeSearch">
<el-date-picker v-model="searchFrom.timeRange" type="daterange" range-separator="" start-placeholder="开始日期"
end-placeholder="结束日期">
<el-date-picker v-model="searchFrom.timeRange" type="daterange" value-format="yyyy-MM-dd" range-separator="" start-placeholder="开始日期"
end-placeholder="结束日期" >
</el-date-picker>
</template>
<!-- <template slot-scope="scope" slot="menuLeft">
@ -91,6 +91,7 @@
import SelectTree from '../../components/selectTree/tree.vue'
import { getReciviceList, getDetail, reciveGoods, returnGoods } from '@/api/goodsManagement/recivice'
import { mapGetters } from "vuex";
import { dateFormat } from "../../util/date";
export default {
components: {
SelectTree
@ -197,6 +198,7 @@ export default {
refreshBtn: false,
columnBtn: false,
menuWidth: 200,
searchEnter:true,
column: [
{
label: "申领单号",
@ -208,7 +210,7 @@ export default {
label: "申领人",
labelWidth: 120,
prop: "applyUser",
// search: true,
search: true,
overHidden: true,
},
//
@ -240,6 +242,7 @@ export default {
labelWidth: 120,
prop: "applyTypeNum",
overHidden: true,
},
{
label: "申领时间",
@ -247,6 +250,34 @@ export default {
prop: "applyTime",
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: "是否需要归还",
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-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)
let query = {
current: this.page.currentPage,
size: this.page.pageSize,
startTime: this.searchFrom.timeRange.length != 0 ? this.searchFrom.timeRange[0] : null,
endTime: this.searchFrom.timeRange.length != 0 ? this.searchFrom.timeRange[1] : null,
startTime: this.searchFrom.timeRange&&this.searchFrom.timeRange.length != 0 ? this.searchFrom.timeRange[0].toString()+ ' 00:00:00' : 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,
dataType:this.dataTypes
dataType:this.dataTypes,
applyUser:this.searchFrom.applyUser
}
getReciviceList(query).then(res => {
this.data = res.data.data.records

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

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

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

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

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

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

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

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

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

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

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

@ -47,7 +47,7 @@
<div class="xj_tit">信息公示</div>
<div class="xj_con">
<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_top">
<div class="tit_box">

Loading…
Cancel
Save