From 62d38b5b572540f89d0a286795454dcde3ea35e0 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期一, 07 七月 2025 08:08:56 +0800
Subject: [PATCH] 设备运行状态 模具运行状态添加下拉刷新
---
pages/mujvzhuangtai/mujvzhuangtai.vue | 35 +++++++++++++++++
pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai.vue | 34 ++++++++++++++++
manifest.json | 2
pages.json | 6 ++-
4 files changed, 72 insertions(+), 5 deletions(-)
diff --git a/manifest.json b/manifest.json
index 9529916..f5686f4 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,6 +1,6 @@
{
"name" : "鏅轰簯LMES",
- "appid" : "__UNI__B002F49",
+ "appid" : "__UNI__E5BAC6D",
"description" : "",
"versionName" : "1.0.12",
"versionCode" : 112,
diff --git a/pages.json b/pages.json
index 6216755..ab15a3f 100644
--- a/pages.json
+++ b/pages.json
@@ -268,7 +268,8 @@
{
"path" : "pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai",
"style": {
- "navigationBarTitleText": "璁惧杩愯鐘舵��"
+ "navigationBarTitleText": "璁惧杩愯鐘舵��",
+ "enablePullDownRefresh": true
}
},
{
@@ -281,7 +282,8 @@
"path" : "pages/mujvzhuangtai/mujvzhuangtai",
"style" :
{
- "navigationBarTitleText" : "妯″叿鐘舵�佸垎甯�"
+ "navigationBarTitleText" : "妯″叿鐘舵�佸垎甯�",
+ "enablePullDownRefresh": true
}
},
{
diff --git a/pages/mujvzhuangtai/mujvzhuangtai.vue b/pages/mujvzhuangtai/mujvzhuangtai.vue
index 7aac6d6..662ede0 100644
--- a/pages/mujvzhuangtai/mujvzhuangtai.vue
+++ b/pages/mujvzhuangtai/mujvzhuangtai.vue
@@ -196,7 +196,6 @@
)
},
ToDetail(item) {
- console.log(item)
uni.navigateTo({
url: `./detail?HMouldID=${item["HInterID"] || 0}&HMouldCode=${item['妯″叿缂栧彿']}`
})
@@ -204,6 +203,40 @@
},
async onLoad() {
await this.initWHSelector()
+ },
+ onPullDownRefresh() {
+ let whIndex = this.warehouseRange.indexOf(this.warehouseSelected);
+ if(whIndex != -1){
+ let id = this.warehouseIDRange[whIndex]
+ this.moulds = []
+ this.doRequest(
+ "/Web/Get_Sc_MouldStatusAnalysisList", {
+ sWhere: ` and HWHID = ${id}`,
+ user: this.userInfo.HEmpName,
+ Organization: this.organInfo.name
+ },
+ function(res) {
+ console.log(res)
+ let res1 = res.data
+ let {
+ data,
+ count
+ } = res1
+ if (count > 0) {
+ console.log(data)
+ this.moulds = data.map(item => {
+ return Object.assign(item, {
+ imgSrc: "../../static/sb.png"
+ })
+ })
+ }
+ },
+ function(err) {
+ console.error(err)
+ }
+ )
+ }
+ uni.stopPullDownRefresh()
}
}
</script>
diff --git a/pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai.vue b/pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai.vue
index 26142a3..76e5428 100644
--- a/pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai.vue
+++ b/pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai.vue
@@ -157,7 +157,6 @@
uni.hideLoading()
},
ToDetail(item) {
- console.log(item)
uni.navigateTo({
url: "./detail?HDeptID=" + (item['璁惧id'] || 0) + "&HSourceID=" + (item['HSourceID'] || 0)
})
@@ -195,6 +194,39 @@
},
async onLoad() {
await this.initDepartment()
+ },
+ onPullDownRefresh() {
+ let departIndex = this.departmentsTitles.indexOf(this.selectedDepartment)
+ if(departIndex != -1){
+ let departId = this.departmentsIdArray[departIndex]
+ // 鍚堝苟绋煎姩鐜囧拰OEE => Sc_HEquipStateDistribution/Sc_HEquipStateDistribution_Souce_MergeOEEReport
+ this.doRequest(
+ "/Sc_HEquipStateDistribution/Sc_HEquipStateDistribution_Souce", {
+ HDeptID: departId,
+ user: this.userInfo.HEmpName,
+ OrganizationID: this.organInfo.id
+ },
+ function(res) {
+ let res1 = res.data
+ let {
+ count,
+ data
+ } = res1
+ if (count > 0) {
+ this.devices = data["h_p_sc_HDeptSouceMOList"].map(item => {
+ return Object.assign(item, {
+ imgSrc: "../../static/sb.png"
+ })
+ })
+ }
+ },
+ function(err) {
+ console.error(err)
+ }
+ )
+ }
+
+ uni.stopPullDownRefresh()
}
}
</script>
--
Gitblit v1.9.1