|
@@ -86,6 +86,18 @@
|
|
|
/>
|
|
/>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ <el-form-item label="发生时间" prop="occurTime">
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ v-model="occurTimeRange"
|
|
|
|
|
+ type="daterange"
|
|
|
|
|
+ range-separator="-"
|
|
|
|
|
+ start-placeholder="开始日期"
|
|
|
|
|
+ end-placeholder="结束日期"
|
|
|
|
|
+ value-format="YYYY-MM-DD"
|
|
|
|
|
+ style="width: 240px"
|
|
|
|
|
+ @change="handleDateChange"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<div style="float: right;">
|
|
<div style="float: right;">
|
|
|
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
|
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
|
@@ -562,10 +574,12 @@
|
|
|
<div
|
|
<div
|
|
|
v-for="item in quickFaultDescList"
|
|
v-for="item in quickFaultDescList"
|
|
|
:key="item.id"
|
|
:key="item.id"
|
|
|
- class="quick-select-item"
|
|
|
|
|
@click="handleFaultDescQuickSelect(item)">
|
|
@click="handleFaultDescQuickSelect(item)">
|
|
|
- <span class="user-name">{{ item.faultCode }}</span>
|
|
|
|
|
- <span class="user-name">{{ item.faultBarcode }}</span>
|
|
|
|
|
|
|
+<!-- <span class="user-name">{{ item.faultCode }}</span>-->
|
|
|
|
|
+<!-- <span class="user-name">{{ item.faultBarcode }}</span>-->
|
|
|
|
|
+ <div class="quick-select-item" v-if="item.faultDescription">
|
|
|
|
|
+ <span class="user-name" >{{ item.faultDescription }}</span>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="quick-select-dropdown no-data" v-show="showFaultDescQuickSelect && quickFaultDescList.length === 0 && form.faultDesc && !faultDescLoading">
|
|
<div class="quick-select-dropdown no-data" v-show="showFaultDescQuickSelect && quickFaultDescList.length === 0 && form.faultDesc && !faultDescLoading">
|
|
@@ -1313,7 +1327,7 @@ import {listAutoMisInfo, listMisInfo, listWorkPerson} from "@/api/gxt/misInfo.js
|
|
|
import {listGxtOrder} from "@/api/gxt/gxtOrder.js";
|
|
import {listGxtOrder} from "@/api/gxt/gxtOrder.js";
|
|
|
import useUserStore from '@/store/modules/user'
|
|
import useUserStore from '@/store/modules/user'
|
|
|
import { useRoute } from 'vue-router'
|
|
import { useRoute } from 'vue-router'
|
|
|
-import { watch } from 'vue'
|
|
|
|
|
|
|
+import {ref, watch} from 'vue'
|
|
|
import { decryptParams } from '@/utils/encrypt'
|
|
import { decryptParams } from '@/utils/encrypt'
|
|
|
import ResetDialog from '@/components/repairOrder/reset.vue'
|
|
import ResetDialog from '@/components/repairOrder/reset.vue'
|
|
|
import FinalizeDialog from '@/components/repairOrder/finalize.vue'
|
|
import FinalizeDialog from '@/components/repairOrder/finalize.vue'
|
|
@@ -1329,6 +1343,7 @@ const { gxt_maintenance_type, gxt_work_order_status, gxt_order_priority_type,gxt
|
|
|
|
|
|
|
|
// 数据列表相关
|
|
// 数据列表相关
|
|
|
const repairOrderList = ref([])
|
|
const repairOrderList = ref([])
|
|
|
|
|
+const occurTimeRange = ref([]) // 用于存储日期范围选择的值
|
|
|
|
|
|
|
|
const openDialog = ref(false)
|
|
const openDialog = ref(false)
|
|
|
const viewDialogVisible = ref(false)
|
|
const viewDialogVisible = ref(false)
|
|
@@ -2091,6 +2106,8 @@ const queryParams = ref({
|
|
|
reviewContent: null,
|
|
reviewContent: null,
|
|
|
maintenanceType: null,
|
|
maintenanceType: null,
|
|
|
outTimeParam: null,
|
|
outTimeParam: null,
|
|
|
|
|
+ beginOccurTime: undefined, // 添加开始时间参数
|
|
|
|
|
+ endOccurTime: undefined, // 添加结束时间参数
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
// 表单验证规则
|
|
// 表单验证规则
|
|
@@ -2708,9 +2725,21 @@ function reset() {
|
|
|
proxy.resetForm("repairOrderRef")
|
|
proxy.resetForm("repairOrderRef")
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+/** 处理日期范围变化 */
|
|
|
|
|
+function handleDateChange(val) {
|
|
|
|
|
+ if (val && val.length === 2) {
|
|
|
|
|
+ queryParams.value.beginOccurTime = val[0]
|
|
|
|
|
+ queryParams.value.endOccurTime = val[1]
|
|
|
|
|
+ } else {
|
|
|
|
|
+ queryParams.value.beginOccurTime = undefined
|
|
|
|
|
+ queryParams.value.endOccurTime = undefined
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
/** 搜索按钮操作 */
|
|
/** 搜索按钮操作 */
|
|
|
function handleQuery() {
|
|
function handleQuery() {
|
|
|
queryParams.value.pageNum = 1
|
|
queryParams.value.pageNum = 1
|
|
|
|
|
+ debugger
|
|
|
getList()
|
|
getList()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -2748,6 +2777,9 @@ function onEquipmentSelected(row) {
|
|
|
function resetQuery() {
|
|
function resetQuery() {
|
|
|
resetTimeOutOrder();
|
|
resetTimeOutOrder();
|
|
|
proxy.resetForm("queryRef")
|
|
proxy.resetForm("queryRef")
|
|
|
|
|
+ queryParams.value.beginOccurTime = undefined
|
|
|
|
|
+ queryParams.value.endOccurTime = undefined
|
|
|
|
|
+ occurTimeRange.value = []
|
|
|
handleQuery()
|
|
handleQuery()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -4111,7 +4143,7 @@ function handleAutoGenChange(){
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.quick-select-item:last-child {
|
|
.quick-select-item:last-child {
|
|
|
- border-bottom: none;
|
|
|
|
|
|
|
+ //border-bottom: none;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.mis-no {
|
|
.mis-no {
|