From b25be565b2d9b856179d207aa5099abd3ae3fa45 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期一, 13 四月 2026 17:33:22 +0800
Subject: [PATCH] Merge branch 'Dev' of http://101.37.171.70:10101/r/~jhz/STUWMS into Dev
---
pages/ZLGL/QualityReport/SB_EquipRunningStatusReport.vue | 69 ++++++++++++++++++++--------------
1 files changed, 41 insertions(+), 28 deletions(-)
diff --git a/pages/ZLGL/QualityReport/SB_EquipRunningStatusReport.vue b/pages/ZLGL/QualityReport/SB_EquipRunningStatusReport.vue
index 81d42ce..60b5cac 100644
--- a/pages/ZLGL/QualityReport/SB_EquipRunningStatusReport.vue
+++ b/pages/ZLGL/QualityReport/SB_EquipRunningStatusReport.vue
@@ -32,13 +32,13 @@
<view class="form-item">
<view class="title">{{$t("Gy.EquipNumber_Search")}}:</view>
<view class="right">
- <input type="text" :value="condition.HNumber" />
+ <input type="text" v-model="condition.HNumber" />
</view>
</view>
<view class="form-item">
<view class="title">{{$t("Gy.EquipName_Search")}}:</view>
<view class="right">
- <input type="text" :value="condition.HName" />
+ <input type="text" v-model="condition.HName" />
</view>
</view>
<view class="search-buttons">
@@ -46,11 +46,10 @@
<button class="btn-a" size="mini" type="default" @tap="clear">閲嶇疆</button>
</view>
</view>
-
+
<!-- 鏄剧ず鍒楄〃 -->
<view class="list" v-for="(item,index) in displayData" :key="index">
- <uni-card :title="item.璁惧鍚嶇О" style="margin: 10px;"
- >
+ <uni-card :title="item.璁惧鍚嶇О" style="margin: 10px;">
<view class="card-detail">
<template v-for="(HBillField, index) in CommonUtils.emptyValueFilter(item,fieldData).slice(0,10)">
<view class="detail" v-if="HBillField.ColmType == 'DateTime'">
@@ -72,10 +71,10 @@
<text>{{ HBillField.ColmCols }}锛�</text>{{ item[HBillField.ColmCols] }}
</view>
</template>
-
+
</view>
</view>
-
+
<view class="more" v-if="showDetail == index && operations != index">
<view class="part" style="border-right: 1px solid #eee;">
<uni-icons type="top" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>鏀惰捣
@@ -106,7 +105,7 @@
<view class="over" v-if="!readCompelete">姝e湪鑾峰彇鏁版嵁...</view>
<view class="over" v-if="readCompelete">娌℃湁鏇村鏁版嵁...</view>
</template>
-
+
<ba-tree-picker ref="treePicker" :multiple='false' @select-change="selectChange" title="閫夋嫨閮ㄩ棬"
:localdata="reportTreeList" valueKey="id" textKey="title" childrenKey="children" />
</view>
@@ -131,19 +130,19 @@
CommonUtils,
showDetail: -1,
operations: -1,
-
+
reportTreeList: [],
selectedList: [],
displayData: [],
fieldData: [],
-
+
readCompelete: false,
page: 1,
size: 20,
-
+
HDateMiddle: dayjs(new Date()).format("YYYY-MM-DD"),
-
-
+
+
condition: {
HDeptID: 0,
HDeptName: "",
@@ -157,10 +156,18 @@
methods: {
search() {
this.page = 1
+ this.displayData = []
this.getReport()
},
clear() {
-
+ this.page = 1
+ this.displayData = []
+ this.condition.HDeptID = 0
+ this.condition.HDeptName = ""
+ this.condition.HBeginDate = dayjs(new Date()).format("YYYY-MM-DD")
+ this.condition.HEndDate = dayjs(new Date()).format("YYYY-MM-DD")
+ this.condition.HNumber = ""
+ this.condition.HName = ""
},
showPicker() {
this.$refs.treePicker._show();
@@ -174,9 +181,9 @@
try {
let sWhere = ""
sWhere += this.combineSWhereStr(sWhere)
-
+
let res = await CommonUtils.doRequest2Async({
- url: "/SB_EquipRunningStatus/Report",
+ url: "/SB_EquipRunningStatus/ReportPage",
data: {
sWhere,
user: getUserInfo()["Czymc"],
@@ -184,23 +191,28 @@
size: this.size
}
})
-
- let {data, count, Message, list} = res.data
-
- if(count == 1) {
- if(data.length == 0) {
+
+ let {
+ data,
+ count,
+ Message,
+ list
+ } = res.data
+
+ if (count == 1) {
+ if (data.length == 0) {
// 鏁版嵁宸茬粡璇诲畬
this.page--
this.readCompelete = true
return
}
-
+
this.displayData.push(...data)
this.fieldData = CommonUtils.fieldListFilterRole({
FieldList: list,
ExcludeKeys: ["璁惧鍚嶇О"]
}).data || []
- }else {
+ } else {
CommonUtils.showTips({
title: '娓╅Θ鎻愮ず',
message: `鑾峰彇鎶ヨ〃淇℃伅澶辫触: ${Message}`
@@ -250,24 +262,25 @@
if (this.condition.HBeginDate && this.condition.HEndDate) {
sWhere +=
- ` and CONVERT(varchar(100),鎵�灞炴棩鏈�, 23) >= '${this.condition.HBeginDate}' and CONVERT(varchar(100),鎵�灞炴棩鏈�, 23) <= '${this.condition.HEndDate}'`
+ ` and CONVERT(varchar(100),鎵�灞炴棩鏈�, 23) >= '${this.condition.HBeginDate}' and CONVERT(varchar(100),鎵�灞炴棩鏈�, 23) <= '${this.condition.HEndDate}' `
}
if (this.condition.HNumber) {
- sWhere += ` and 璁惧缂栫爜 like '%${this.condition.HNumber}'%`
+ sWhere += ` and 璁惧缂栫爜 like '%${this.condition.HNumber}%' `
}
if (this.condition.HName) {
- sWhere += ` and 璁惧鍚嶇О like '%${this.condition.HName}'%`
+ sWhere += ` and 璁惧鍚嶇О like '%${this.condition.HName}%' `
}
return sWhere
}
},
onLoad() {
- this.GetReportTreeList()
+ this.GetReportTreeList();
+ this.getReport();
},
- onReachBottom(){
+ onReachBottom() {
this.page++
this.getReport()
}
--
Gitblit v1.9.1