From 24404f195670ab3eb96fa2656113ed403238c5b0 Mon Sep 17 00:00:00 2001 From: qushaowei <qushaowei@163.com> Date: 星期三, 13 三月 2024 09:15:30 +0800 Subject: [PATCH] 设备管理问题项修改 --- src/views/eam/DailyInspectionOrderList.vue | 137 ++++++++++++++++++++++++++++++++------------- 1 files changed, 97 insertions(+), 40 deletions(-) diff --git a/src/views/eam/DailyInspectionOrderList.vue b/src/views/eam/DailyInspectionOrderList.vue index 2beb98a..82c5bae 100644 --- a/src/views/eam/DailyInspectionOrderList.vue +++ b/src/views/eam/DailyInspectionOrderList.vue @@ -14,44 +14,74 @@ :md="6" :sm="8" > - <a-form-item label="鐐规宸ュ崟缂栫爜"> + <a-form-item label="缁熶竴缂栧彿"> <a-input - placeholder="璇疯緭鍏ョ偣妫�宸ュ崟缂栫爜" - v-model="queryParam.num" + placeholder="璇疯緭鍏ョ粺涓�缂栧彿" + v-model="queryParam.equipmentNum" ></a-input> </a-form-item> </a-col> - <!-- <a-col - :md="6" - :sm="8" - > - <a-form-item label="鐐规鏂规硶鍚嶇О"> - <j-input - placeholder="璇疯緭鍏ョ偣妫�鏂规硶鍚嶇О" - v-model="queryParam.name" - ></j-input> - </a-form-item> - </a-col> --> <a-col :md="6" :sm="8" > - <span - style="float: left;overflow: hidden;" - class="table-page-search-submitButtons" + <a-form-item label="淇濆吇宸ュ崟缂栫爜"> + <a-input + placeholder="璇疯緭鍏ヤ繚鍏诲伐鍗曠紪鐮�" + v-model="queryParam.num" + ></a-input> + </a-form-item> + </a-col> + <a-col :span="6"> + <a-form-item + label="浣跨敤閮ㄩ棬" + :labelCol="labelCol" + :wrapperCol="wrapperCol" > - <a-button - type="primary" - @click="searchQuery" - icon="search" - >鏌ヨ</a-button> - <a-button - type="primary" - @click="searchReset" - icon="reload" - style="margin-left: 8px" - >閲嶇疆</a-button> - </span> + <j-dict-select-tag + dictCode="sys_depart,depart_name,id" + placeholder="璇疯緭鍏ヤ娇鐢ㄩ儴闂�" + v-model="queryParam.useDepartId" + /> + </a-form-item> + </a-col> + <a-col :span="6"> + <a-form-item + label="鐘舵��" + :labelCol="labelCol" + :wrapperCol="wrapperCol" + > + <j-dict-select-tag + dictCode="daily_inspection_standard_status" + placeholder="璇烽�夋嫨鐘舵��" + v-model="queryParam.status" + /> + </a-form-item> + </a-col> + </a-row> + <a-row :gutter="24"> + <a-col :span="6"> + <a-form-item + label="璐d换鐝粍" + :labelCol="labelCol" + :wrapperCol="wrapperCol" + > + <j-dict-select-tag + dictCode="mom_base_team,name,id,status='1' and del_flag='0'" + placeholder="璇烽�夋嫨璐d换鐝粍" + v-model="queryParam.teamId" + /> + </a-form-item> + </a-col> + <a-col :span="7"> + <a-form-item label="鐐规鏃堕棿"> + <a-range-picker + style="width: 100%;" + format="YYYY-MM-DD HH:mm:ss" + v-model="finishTime" + @change="timeChange" + /> + </a-form-item> </a-col> </a-row> </a-form> @@ -66,6 +96,18 @@ icon="plus" v-has="'dailyInspectionOrder:add'" >鏂板</a-button> + <a-button + type="primary" + @click="searchQuery" + icon="search" + style="margin-left: 8px" + >鏌ヨ</a-button> + <a-button + type="primary" + @click="searchReset" + icon="reload" + style="margin-left: 8px" + >閲嶇疆</a-button> <!-- <a-button type="primary" icon="download" @@ -298,6 +340,7 @@ import InspectionOrderExeModal from './modules/dailyInspectionOrder/InspectionOrderExeModal' import DailyInspectionOrderExeDrawer from './modules/dailyInspectionOrder/DailyInspectionOrderExeDrawer' import { getAction, postAction, requestPut } from '@/api/manage' +import moment from 'moment' export default { name: 'DailyInspectionOrderList', @@ -310,7 +353,8 @@ }, data() { return { - description: '鏃ュ父鐐规宸ュ崟', + description: '鑷富缁存姢鐐规宸ュ崟', + finishTime: [], // 琛ㄥご columns: [ { @@ -329,6 +373,11 @@ align: "center", dataIndex: 'num', scopedSlots: { customRender: 'num' } + }, + { + title: '缁熶竴缂栫爜', + align: "center", + dataIndex: 'equipmentNum' }, { title: '鐘舵��', @@ -363,11 +412,7 @@ // align: "center", // dataIndex: 'inspectionDeadline', // }, - { - title: '缁熶竴缂栫爜', - align: "center", - dataIndex: 'equipmentNum' - }, + { title: '璁惧鍚嶇О', align: "center", @@ -447,11 +492,11 @@ // align: "center", // dataIndex: 'createBy' // }, - { - title: '鍒涘缓鏃ユ湡', - align: "center", - dataIndex: 'createTime', - }, + // { + // title: '鍒涘缓鏃ユ湡', + // align: "center", + // dataIndex: 'createTime', + // }, { title: '鎿嶄綔', @@ -595,6 +640,18 @@ }) }, + searchReset() { + this.queryParam = {} + this.finishTime = [] + this.loadData(1); + }, + + timeChange() { + this.queryParam.inspectionStartTime = moment(this.finishTime[0]).format("YYYY-MM-DD HH:mm:ss") + this.queryParam.inspectionEndTime = moment(this.finishTime[1]).format("YYYY-MM-DD HH:mm:ss") + }, + + //棰勮棰滆壊 tableRowClass(record, index) { if (("1" == record.status || "2" == record.status) && "1鏃�" == record.inspectionCycleName) { -- Gitblit v1.9.3