From cb59a1ff2e14d892a4b085d8dadbf564073d25a3 Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期一, 05 一月 2026 15:42:14 +0800
Subject: [PATCH] 1.生产管理、质量管理

---
 pages/scgl/scbg.vue |  172 ++++++++++++++++++++++++++++----------------------------
 1 files changed, 86 insertions(+), 86 deletions(-)

diff --git a/pages/scgl/scbg.vue b/pages/scgl/scbg.vue
index 53fa0ef..febdd71 100644
--- a/pages/scgl/scbg.vue
+++ b/pages/scgl/scbg.vue
@@ -34,7 +34,7 @@
 		</view>
 
 
-		<u-alert :title="alertTitle" type="info"></u-alert>
+		<u-alert :title="'宸ュ崟鏁伴噺锛�'+total+'锛�'" type="info"></u-alert>
 
 
 		<!-- 鎶樺彔闈㈡澘 -->
@@ -44,26 +44,26 @@
 
 		<u-collapse style="max-height: 62vh;overflow: auto;">
 			<!-- :value='parseFloat(item.ordergoodqty)+"/"+parseFloat(item.orderqty)' -->
-			<!-- 	<scroll-view scroll-y :style="{height: 590 + 'px'}" @scrolltolower="loadMore"> -->
-			<u-collapse-item style="position: relative;" :title="item.ordercode" :name='item.ordercode'
-				v-if='item.children.length!==0' :value='parseFloat(item.ordergoodqty)+"/"+parseFloat(item.orderqty)'
-				:label="item.children.length===0?'鏈淳鍙�':''" :disabled='item.children.length===0'
-				v-for="item in collapseArr" :key="item.ordercode">
+			<scroll-view scroll-y :style="{height: 590 + 'px'}" @scrolltolower="loadMore">
+				<u-collapse-item style="position: relative;" :title="item.ordercode" :name='item.ordercode'
+					v-if='item.children.length!==0' :value='parseFloat(item.ordergoodqty)+"/"+parseFloat(item.orderqty)'
+					:label="item.children.length===0?'鏈淳鍙�':''" :disabled='item.children.length===0'
+					v-for="(item,index) in collapseArr" :key="item.ordercode+index">
 
 
-				<view style="position: absolute;left: 30rpx;top:34px;font-size: 24rpx;color: #999;">
-					{{item.partname}} {{item.partspec}}
-				</view>
+					<view style="position: absolute;left: 30rpx;top:34px;font-size: 24rpx;color: #999;">
+						{{item.partname}} {{item.partspec}}
+					</view>
 
-				<!-- <view style="position: absolute;width: 26%;left: 44%;top:16px;"> -->
-				<view style="position: absolute;width: 120px;left: 44%;top:16px;color:#0659ff"
-					@click="progressClick(item.ordercode)">
-					<!-- {{item.partname}}{{item.partspec}} -->
-					<u-line-progress :percentage="parseFloat((item.ordergoodqty*100/item.orderqty).toFixed(2))"
-						inactiveColor="#d1d6f5" height="10" activeColor="#0659ff"></u-line-progress>
-				</view>
+					<!-- <view style="position: absolute;width: 26%;left: 44%;top:16px;"> -->
+					<view style="position: absolute;width: 120px;left: 44%;top:16px;color:#0659ff">
+						<!-- @click="progressClick(item.ordercode)" -->
+						<!-- {{item.partname}}{{item.partspec}} -->
+						<u-line-progress :percentage="parseFloat((item.ordergoodqty*100/item.orderqty).toFixed(2))"
+							inactiveColor="#d1d6f5" height="10" activeColor="#0659ff"></u-line-progress>
+					</view>
 
-				<!-- 			<view style="position: absolute;width: 100px;right: 33px;  top:13px; ">
+					<!-- 			<view style="position: absolute;width: 100px;right: 33px;  top:13px; ">
 					<view class="" style="display: flex;justify-content: flex-end;">
 						<view style="color: #0659ff;">
 							{{parseFloat(item.ordergoodqty)}}
@@ -76,55 +76,55 @@
  -->
 
 
-				<view v-if="radiovalue==='鐢熶骇宸ュ崟'" style="margin:0 0  5px">
-					<view class="flex_column">
-						<view style="display:flex">
-							<view class="titleFont" style="font-size: 14px;">浜у搧缂栫爜锛�</view>
-							<view class="contentFont" style="font-size: 14px;">{{item.partcode}}</view>
-						</view>
-						<view style="display:flex">
-							<view class="titleFont" style="font-size: 14px;">浜у搧鍚嶇О锛�</view>
-							<view class="contentFont" style="font-size: 14px;">{{item.partname}}</view>
-						</view>
-						<view style="display:flex">
-							<view class="titleFont" style="font-size: 14px;">浜у搧瑙勬牸锛�</view>
-							<view class="contentFont" style="font-size: 14px;">{{item.partspec?item.partspec:'/'}}
+					<view v-if="radiovalue==='鐢熶骇宸ュ崟'" style="margin:0 0  5px">
+						<view class="flex_column">
+							<view style="display:flex">
+								<view class="titleFont" style="font-size: 14px;">浜у搧缂栫爜锛�</view>
+								<view class="contentFont" style="font-size: 14px;">{{item.partcode}}</view>
 							</view>
-						</view>
-					</view>
-				</view>
-
-
-				<!-- {{item.children}} -->
-				<!-- <u--text class="u-collapse-content"> -->
-				<u-steps :current="-1" inactiveColor='#0659FF' direction="column">
-					<view v-for="(it,ind) in item.children" :key="item.ordercode+it.name+ind"
-						@click="gotoPage(item.ordercode,it.code)" style="display: flex;align-items: center;">
-
-						<!-- <u-steps-item :title="it.code+'/'+it.name+it.spec"></u-steps-item> -->
-						<u-steps-item :title="it.code+'/'+it.name"></u-steps-item>
-						<view class="" style="width: 100px;">
-							<u-line-progress :percentage="parseFloat((it.goodqty*100/it.planqty).toFixed(2))"
-								inactiveColor="#d1d6f5" height="10" activeColor="#0659ff"></u-line-progress>
-						</view>
-						<view style="width: 30%;text-align: right;">
-							<view class="" style="display: flex;justify-content: flex-end;">
-								<view style="color: #0659ff;">
-									{{parseFloat(it.goodqty)}}
-								</view>
-								<view>
-									/{{ parseFloat(it.planqty)}}
+							<view style="display:flex">
+								<view class="titleFont" style="font-size: 14px;">浜у搧鍚嶇О锛�</view>
+								<view class="contentFont" style="font-size: 14px;">{{item.partname}}</view>
+							</view>
+							<view style="display:flex">
+								<view class="titleFont" style="font-size: 14px;">浜у搧瑙勬牸锛�</view>
+								<view class="contentFont" style="font-size: 14px;">{{item.partspec?item.partspec:'/'}}
 								</view>
 							</view>
 						</view>
 					</view>
 
-				</u-steps>
-				<!-- </u--text> -->
+
+					<!-- {{item.children}} -->
+					<!-- <u--text class="u-collapse-content"> -->
+					<u-steps :current="-1" inactiveColor='#0659FF' direction="column">
+						<view v-for="(it,ind) in item.children" :key="item.ordercode+it.name+ind"
+							@click="gotoPage(item.ordercode,it.code)" style="display: flex;align-items: center;">
+
+							<!-- <u-steps-item :title="it.code+'/'+it.name+it.spec"></u-steps-item> -->
+							<u-steps-item :title="it.code+'/'+it.name"></u-steps-item>
+							<view class="" style="width: 100px;">
+								<u-line-progress :percentage="parseFloat((it.goodqty*100/it.planqty).toFixed(2))"
+									inactiveColor="#d1d6f5" height="10" activeColor="#0659ff"></u-line-progress>
+							</view>
+							<view style="width: 30%;text-align: right;">
+								<view class="" style="display: flex;justify-content: flex-end;">
+									<view style="color: #0659ff;">
+										{{parseFloat(it.goodqty)}}
+									</view>
+									<view>
+										/{{ parseFloat(it.planqty)}}
+									</view>
+								</view>
+							</view>
+						</view>
+
+					</u-steps>
+					<!-- </u--text> -->
 
 
-			</u-collapse-item>
-			<!-- </scroll-view> -->
+				</u-collapse-item>
+			</scroll-view>
 		</u-collapse>
 
 
@@ -241,11 +241,8 @@
 			uni.$off('scancodedate') // 姣忔杩涙潵鍏� 绉婚櫎鍏ㄥ眬鑷畾涔変簨浠剁洃鍚櫒
 			uni.$on('scancodedate', function(content) {
 				console.log("鎵弿鍒扮殑鍐呭涓�:", content)
-				// _this.getCheckScanDeviceQrCodeData(content)
+				_this.getCheckScanDeviceQrCodeData(content)
 			})
-
-
-			console.log(option, 8)
 		},
 
 		onPullDownRefresh() {
@@ -315,7 +312,7 @@
 				], //宸查�変腑鐨勪骇鍝佹爣绛�
 				order: '', //鍗曞彿
 				placeholder2: '鐢熶骇璁㈠崟',
-				total: 10,
+				total: 0,
 				currentpage: 1, //绗嚑椤�
 				pageSize: 10, //姣忛〉鏄剧ず澶氬皯鏉�
 
@@ -360,7 +357,7 @@
 
 
 				uni.navigateTo({
-					url: './scbg2?orderstep=' + orderstep
+					url: './scbg2?orderstep=' + orderstep + '&currentpage=' + this.currentpage
 				})
 			},
 
@@ -386,20 +383,20 @@
 				let ordertype = '' // SO锛氶攢鍞鍗�  MO锛氱敓浜ц鍗�  PO锛氱敓浜у伐鍗�
 				switch (this.radiovalue) {
 					case '鐢熶骇宸ュ崟':
-						this.alertTitle = '宸ュ崟鏁伴噺锛堝叡/涓級'
-						this.placeholder = '璇疯緭鍏ュ伐鍗曚俊鎭�'
+						// this.alertTitle = '宸ュ崟鏁伴噺锛堝叡/涓級'
+						// this.placeholder = '璇疯緭鍏ュ伐鍗曚俊鎭�'
 						ordertype = 'PO'
 						break
 					case '鐢熶骇璁㈠崟':
 						// this.alertTitle = '鐢熶骇璁㈠崟鏁伴噺锛堝叡/涓級'
-						this.alertTitle = '宸ュ崟鏁伴噺锛堝叡/涓級'
-						this.placeholder = '璇疯緭鍏ョ敓浜ц鍗曚俊鎭�'
+						// this.alertTitle = '宸ュ崟鏁伴噺锛堝叡/涓級'
+						// this.placeholder = '璇疯緭鍏ョ敓浜ц鍗曚俊鎭�'
 						ordertype = 'MO'
 						break
 					case '閿�鍞鍗�':
 						// this.alertTitle = '閿�鍞鍗曟暟閲忥紙鍏�/涓級'
-						this.alertTitle = '宸ュ崟鏁伴噺锛堝叡/涓級'
-						this.placeholder = '璇疯緭鍏ラ攢鍞鍗曚俊鎭�'
+						// this.alertTitle = '宸ュ崟鏁伴噺锛堝叡/涓級'
+						// this.placeholder = '璇疯緭鍏ラ攢鍞鍗曚俊鎭�'
 						ordertype = 'SO'
 						break
 				}
@@ -424,8 +421,8 @@
 
 				this.collapseArr = res.data
 				this.collapseArrAll = res.data
-				this.alertTitle = this.alertTitle.split('/')[0] + this.total + this.alertTitle.split('/')[
-					1]
+				// this.alertTitle = this.alertTitle.split('/')[0] + this.total + this.alertTitle.split('/')[
+				// 	1]
 
 			},
 			loadMore() {
@@ -434,22 +431,25 @@
 
 			//杈撳叆妗嗗洖杞︾‘璁や簨浠�
 			confirmInputBoxValue(val) {
-				this.collapseArr = this.collapseArrAll.filter((p) => {
-					return p.ordercode.indexOf(val) !== -1
-				})
+				this.order = val
+				this.currentpage = 1
+				this.getProductOrderSearch(1)
+				// this.collapseArr = this.collapseArrAll.filter((p) => {
+				// 	return p.ordercode.indexOf(val) !== -1
+				// })
 
 
-				switch (this.radiovalue) {
-					case '鐢熶骇宸ュ崟':
-						this.alertTitle = '宸ュ崟鏁伴噺锛堝叡' + this.total + '涓級'
-						break
-					case '鐢熶骇璁㈠崟':
-						this.alertTitle = '宸ュ崟鏁伴噺锛堝叡' + this.total + '涓級'
-						break
-					case '閿�鍞鍗�':
-						this.alertTitle = '宸ュ崟鏁伴噺锛堝叡' + this.total + '涓級'
-						break
-				}
+				// switch (this.radiovalue) {
+				// 	case '鐢熶骇宸ュ崟':
+				// 		this.alertTitle = '宸ュ崟鏁伴噺锛堝叡' + this.total + '涓級'
+				// 		break
+				// 	case '鐢熶骇璁㈠崟':
+				// 		this.alertTitle = '宸ュ崟鏁伴噺锛堝叡' + this.total + '涓級'
+				// 		break
+				// 	case '閿�鍞鍗�':
+				// 		this.alertTitle = '宸ュ崟鏁伴噺锛堝叡' + this.total + '涓級'
+				// 		break
+				// }
 
 
 

--
Gitblit v1.9.3