From 22fd33c839969a5c14de0d994701876407385d7f Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期二, 06 一月 2026 14:00:00 +0800
Subject: [PATCH] 1.页面优化
---
pages/sbgl/dqby.vue | 18 ++++++++
pages/sbgl/sbwx.vue | 7 ++-
pages/sbgl/rcdj.vue | 17 +++++++-
pages/zlgl/xjjy.vue | 2
pages/zlgl/sjjy.vue | 2
pages/zlgl/wgjy.vue | 2
pages/sbgl/wxyz.vue | 7 ++-
pages/sbgl/wxsq.vue | 19 +++++++++
pages/scgl/scbg.vue | 2
9 files changed, 62 insertions(+), 14 deletions(-)
diff --git a/pages/sbgl/dqby.vue b/pages/sbgl/dqby.vue
index bf33af3..d9c1f6d 100644
--- a/pages/sbgl/dqby.vue
+++ b/pages/sbgl/dqby.vue
@@ -54,6 +54,9 @@
</div>
</view>
+
+ <scan-code></scan-code>
+
</view>
</template>
@@ -62,8 +65,19 @@
import {
EqpPermissions
} from '../../config/api.js';
+ import scanCode from '@/components/scan-code/scan-code.vue'
export default {
- onLoad(option) {},
+ components: {
+ scanCode
+ },
+ onLoad(option) {
+ const _this = this
+ uni.$off('scancodedate') // 姣忔杩涙潵鍏� 绉婚櫎鍏ㄥ眬鑷畾涔変簨浠剁洃鍚櫒
+ uni.$on('scancodedate', function(content) {
+ console.log("鎵弿鍒扮殑鍐呭涓�:", content)
+ _this.changeInputBoxValue(content)
+ })
+ },
onPullDownRefresh() {
setTimeout(() => {
@@ -101,6 +115,8 @@
uni.stopPullDownRefresh();
},
changeInputBoxValue(val) {
+ this.inputBoxValue = val
+
this.purchorderArr = this.purchorderArrAll.filter((p) => {
return p.code.indexOf(val) !== -1
})
diff --git a/pages/sbgl/rcdj.vue b/pages/sbgl/rcdj.vue
index d63cf1f..9a8e90f 100644
--- a/pages/sbgl/rcdj.vue
+++ b/pages/sbgl/rcdj.vue
@@ -54,6 +54,8 @@
</div>
</view>
+
+ <scan-code></scan-code>
</view>
</template>
@@ -62,8 +64,19 @@
import {
EqpPermissions
} from '../../config/api.js';
+ import scanCode from '@/components/scan-code/scan-code.vue'
export default {
- onLoad(option) {},
+ components: {
+ scanCode
+ },
+ onLoad(option) {
+ const _this = this
+ uni.$off('scancodedate') // 姣忔杩涙潵鍏� 绉婚櫎鍏ㄥ眬鑷畾涔変簨浠剁洃鍚櫒
+ uni.$on('scancodedate', function(content) {
+ console.log("鎵弿鍒扮殑鍐呭涓�:", content)
+ _this.changeInputBoxValue(content)
+ })
+ },
onPullDownRefresh() {
setTimeout(() => {
@@ -101,7 +114,7 @@
uni.stopPullDownRefresh();
},
changeInputBoxValue(val) {
-
+ this.inputBoxValue = val
this.purchorderArr = this.purchorderArrAll.filter((p) => {
return p.code.indexOf(val) !== -1
})
diff --git a/pages/sbgl/sbwx.vue b/pages/sbgl/sbwx.vue
index 4b385e1..1c620b4 100644
--- a/pages/sbgl/sbwx.vue
+++ b/pages/sbgl/sbwx.vue
@@ -21,13 +21,14 @@
<view class="head_left">
<view class="head_bar"></view>
<view class="head_title">
- 鎵弿缁翠慨宸ヤ綅
+ <!-- 鎵弿缁翠慨宸ヤ綅 -->
+ 缁翠慨宸ヤ綅
</view>
</view>
-
+ <!--
<view class="marginRight20">
<u-icon name="scan" @click="topScanClick" color="red" size="28"></u-icon>
- </view>
+ </view> -->
</view>
diff --git a/pages/sbgl/wxsq.vue b/pages/sbgl/wxsq.vue
index ce7175e..d973d37 100644
--- a/pages/sbgl/wxsq.vue
+++ b/pages/sbgl/wxsq.vue
@@ -54,6 +54,9 @@
</div>
</view>
+
+ <scan-code></scan-code>
+
</view>
</template>
@@ -62,8 +65,20 @@
import {
EqpPermissions
} from '../../config/api.js';
+ import scanCode from '@/components/scan-code/scan-code.vue'
export default {
- onLoad(option) {},
+ components: {
+ scanCode
+ },
+ onLoad(option) {
+ const _this = this
+ uni.$off('scancodedate') // 姣忔杩涙潵鍏� 绉婚櫎鍏ㄥ眬鑷畾涔変簨浠剁洃鍚櫒
+ uni.$on('scancodedate', function(content) {
+ console.log("鎵弿鍒扮殑鍐呭涓�:", content)
+ _this.changeInputBoxValue(content)
+ })
+ },
+
onPullDownRefresh() {
setTimeout(() => {
@@ -101,6 +116,8 @@
uni.stopPullDownRefresh();
},
changeInputBoxValue(val) {
+ this.inputBoxValue = val
+
this.purchorderArr = this.purchorderArrAll.filter((p) => {
return p.code.indexOf(val) !== -1
})
diff --git a/pages/sbgl/wxyz.vue b/pages/sbgl/wxyz.vue
index e524936..d9f0e2d 100644
--- a/pages/sbgl/wxyz.vue
+++ b/pages/sbgl/wxyz.vue
@@ -20,13 +20,14 @@
<view class="head_left">
<view class="head_bar"></view>
<view class="head_title">
- 鎵弿缁翠慨宸ヤ綅
+ <!-- 鎵弿缁翠慨宸ヤ綅 -->
+ 缁翠慨宸ヤ綅
</view>
</view>
- <view class="marginRight20">
+ <!-- <view class="marginRight20">
<u-icon name="scan" @click="topScanClick" color="red" size="28"></u-icon>
- </view>
+ </view> -->
</view>
diff --git a/pages/scgl/scbg.vue b/pages/scgl/scbg.vue
index ce5f508..68cf44d 100644
--- a/pages/scgl/scbg.vue
+++ b/pages/scgl/scbg.vue
@@ -107,7 +107,7 @@
<u-steps-item :title="it.code+'/'+it.name"></u-steps-item>
<view class="" style="width: 100px;">
<u-line-progress
- :percentage="parseFloat((parseFloat(it.goodqty)+parseFloat(it.ngqty)+parseFloat(it.laborbadqty)+parseFloat(it.materielbadqty)*100/it.planqty).toFixed(2))"
+ :percentage="parseFloat(((parseFloat(it.goodqty)+parseFloat(it.ngqty)+parseFloat(it.laborbadqty)+parseFloat(it.materielbadqty))*100/it.planqty).toFixed(2))"
inactiveColor="#d1d6f5" height="10" activeColor="#0659ff"></u-line-progress>
</view>
<view style="width: 30%;text-align: right;">
diff --git a/pages/zlgl/sjjy.vue b/pages/zlgl/sjjy.vue
index 8d8a87f..0c592b6 100644
--- a/pages/zlgl/sjjy.vue
+++ b/pages/zlgl/sjjy.vue
@@ -107,7 +107,7 @@
<u-steps-item :title="it.code+'/'+it.name"></u-steps-item>
<view class="" style="width: 100px;">
<u-line-progress
- :percentage="parseFloat((parseFloat(it.goodqty)+parseFloat(it.ngqty)+parseFloat(it.laborbadqty)+parseFloat(it.materielbadqty)*100/it.planqty).toFixed(2))"
+ :percentage="parseFloat(((parseFloat(it.goodqty)+parseFloat(it.ngqty)+parseFloat(it.laborbadqty)+parseFloat(it.materielbadqty))*100/it.planqty).toFixed(2))"
inactiveColor="#d1d6f5" height="10" activeColor="#0659ff"></u-line-progress>
</view>
<view style="width: 30%;text-align: right;">
diff --git a/pages/zlgl/wgjy.vue b/pages/zlgl/wgjy.vue
index ce0298b..23388a0 100644
--- a/pages/zlgl/wgjy.vue
+++ b/pages/zlgl/wgjy.vue
@@ -107,7 +107,7 @@
<u-steps-item :title="it.code+'/'+it.name"></u-steps-item>
<view class="" style="width: 100px;">
<u-line-progress
- :percentage="parseFloat((parseFloat(it.goodqty)+parseFloat(it.ngqty)+parseFloat(it.laborbadqty)+parseFloat(it.materielbadqty)*100/it.planqty).toFixed(2))"
+ :percentage="parseFloat(((parseFloat(it.goodqty)+parseFloat(it.ngqty)+parseFloat(it.laborbadqty)+parseFloat(it.materielbadqty))*100/it.planqty).toFixed(2))"
inactiveColor="#d1d6f5" height="10" activeColor="#0659ff"></u-line-progress>
</view>
<view style="width: 30%;text-align: right;">
diff --git a/pages/zlgl/xjjy.vue b/pages/zlgl/xjjy.vue
index 7dbfa50..5a8aa6c 100644
--- a/pages/zlgl/xjjy.vue
+++ b/pages/zlgl/xjjy.vue
@@ -107,7 +107,7 @@
<u-steps-item :title="it.code+'/'+it.name"></u-steps-item>
<view class="" style="width: 100px;">
<u-line-progress
- :percentage="parseFloat((parseFloat(it.goodqty)+parseFloat(it.ngqty)+parseFloat(it.laborbadqty)+parseFloat(it.materielbadqty)*100/it.planqty).toFixed(2))"
+ :percentage="parseFloat(((parseFloat(it.goodqty)+parseFloat(it.ngqty)+parseFloat(it.laborbadqty)+parseFloat(it.materielbadqty))*100/it.planqty).toFixed(2))"
inactiveColor="#d1d6f5" height="10" activeColor="#0659ff"></u-line-progress>
</view>
<view style="width: 30%;text-align: right;">
--
Gitblit v1.9.3