guoyujia 3 月之前
父节点
当前提交
0a709bf0be
共有 4 个文件被更改,包括 81 次插入9 次删除
  1. 7 0
      api/business/auxiliaryDaywork.js
  2. 2 2
      manifest.json
  3. 71 6
      pages/queryLotInfo/index.vue
  4. 1 1
      pages/reportHistory/index.vue

+ 7 - 0
api/business/auxiliaryDaywork.js

@@ -54,6 +54,13 @@ export function finishedDaywork(data) {
 		data: data
 	})
 }
+export function getAuxiliaryDayworkItemByDayworkId(data) {
+	return req.request({
+		url: '/business/auxiliaryDaywork/getAuxiliaryDayworkItemByDayworkId',
+		method: 'POST',
+		data: data
+	})
+}
 
 export function pauseDaywork(data) {
 	return req.request({

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "(测试)德迈仕数字生产管理平台",
     "appid" : "__UNI__54D8B02",
     "description" : "",
-    "versionName" : "1.0.45",
-    "versionCode" : 145,
+    "versionName" : "1.0.46",
+    "versionCode" : 146,
     "transformPx" : false,
     /* 5+App特有相关 */
     "app-plus" : {

+ 71 - 6
pages/queryLotInfo/index.vue

@@ -3,8 +3,9 @@
 		<view :class="['tab-item', isActiveId === 1 ? 'active': '']" @click="handleClickTab(1)">批次信息</view>
 		<view :class="['tab-item', isActiveId === 2 ? 'active': '']" @click="handleClickTab(2)">领料信息</view>
 		<view :class="['tab-item', isActiveId === 3 ? 'active': '']" @click="handleClickTab(3)">历史报工</view>
-		<view :class="['tab-item', isActiveId === 4 ? 'active': '']" @click="handleClickTab(4)">检查信息</view>
-		<view :class="['tab-item', isActiveId === 5 ? 'active': '']" @click="handleClickTab(5)">分选信息</view>
+		<view :class="['tab-item', isActiveId === 4 ? 'active': '']" @click="handleClickTab(4)">辅助报工</view>
+		<view :class="['tab-item', isActiveId === 5 ? 'active': '']" @click="handleClickTab(5)">检查信息</view>
+		<view :class="['tab-item', isActiveId === 6 ? 'active': '']" @click="handleClickTab(6)">分选信息</view>
 	</view>
 	<scroll-view class="scroll-container" scroll-y scroll-with-animation :scroll-into-view="scrollToId"
 		:scroll-top="scrollTop" @scrolltoupper="handleScrollToUpper" @scrolltolower="handleScrollToLower"
@@ -179,8 +180,49 @@
 				</view>
 			</view>
 		</view>
-		<!-- 检查信息 -->
+		<!-- 辅助报工 -->
 		<view id="item4" class="scroll-item">
+			<view> <text style="font-size: 32rpx;display: flex;justify-content: center;">辅助报工</text></view>
+			<view v-if="auxiliaryData.length == 0" class="no-date">
+				<text>暂无数据</text>
+			</view>
+			<view v-for="(item, index) in auxiliaryData" :key="index" class="list-item" id="auxiliaryData">
+				<view class="item-info uni-row" style="margin-top: 16rpx;"> <text class="label ">工序:</text>
+					<text class="label right">{{ item['processAlias'] }}</text>
+				</view>
+				<view class="item-info uni-row"> <text class="label">投产量:</text>
+					<text class="label right ">{{ item['prodNum'] }}</text>
+				</view>
+				<view class="item-info uni-row">
+					<text class="label">合格数量:</text>
+					<text class="label right">{{ item['qualifiedNum']}}</text>
+				</view>
+				<view v-for="(info, index) in item.rejects" :key="index">
+					<view class="item-info uni-row">
+						<text class="label">废品信息:</text>
+						<text class="label right">{{ info['reason']!=""?info['reason']:'-'}}</text>
+					</view>
+					<view class="item-info uni-row">
+						<text class="label">废品数量:</text>
+						<text class="label right">{{ info['rejectNum']}}</text>
+					</view>
+				</view>
+				<!-- 				<view class="item-info uni-row">
+					<text class="label">设备:</text>
+					<text class="label right">{{ item['equipmentDetailCode'] ?item['equipmentDetailCode']:'-'}}</text>
+				</view> -->
+				<view class="item-info uni-row">
+					<text class="label">操作者:</text>
+					<text class="label right">{{ item['nickName']}}</text>
+				</view>
+				<view v-if="index!=auxiliaryData.length-1" class='middle'>
+					<view class='segment'></view>
+					<view class='segment'></view>
+				</view>
+			</view>
+		</view>
+		<!-- 检查信息 -->
+		<view id="item5" class="scroll-item">
 			<view> <text style="font-size: 32rpx;display: flex;justify-content: center;">检查信息</text></view>
 			<view v-if="inspectionData.length == 0" class="no-date">
 				<text>暂无数据</text>
@@ -250,7 +292,7 @@
 			</view>
 		</view>
 		<!-- 分选信息 -->
-		<view id="item5" class="scroll-item">
+		<view id="item6" class="scroll-item">
 			<view> <text style="font-size: 32rpx;display: flex;justify-content: center;">分选信息</text></view>
 			<view v-if="sortData.length == 0" class="no-date">
 				<text>暂无数据</text>
@@ -346,6 +388,9 @@
 		getDayworkItemByDayworkId,
 		getSortItemByDayworkId
 	} from '@/api/business/dayWorkItem.js'
+	import {
+		getAuxiliaryDayworkItemByDayworkId,
+	} from '@/api/business/auxiliaryDaywork.js'
 	import {
 		getProcessInspectionByDayworkId
 	} from '@/api/business/processInspection.js'
@@ -359,6 +404,7 @@
 	const lotData = ref(null) //批次信息
 	const furnaceData = ref(null) //领料信息
 	const historyData = ref([]) //历史报工
+	const auxiliaryData = ref([]) //辅助报工
 	const inspectionData = ref([]) //检查信息
 	const sortData = ref([]) //分选信息
 	const showRight = ref(null) // 抽屉
@@ -380,6 +426,8 @@
 
 	// 定义tab4的【SelectorQuery】对象
 	let item4Query = null
+	// 定义tab4的【SelectorQuery】对象
+	let item5Query = null
 
 	onLoad(() => {
 		init();
@@ -407,6 +455,11 @@
 				isActiveId.value = 4
 			}
 		})
+		item5Query = query.select("#item5").boundingClientRect((data) => {
+			if (data.top >= 32 && data.top <= 80) {
+				isActiveId.value = 5
+			}
+		})
 	})
 	//扫码
 	function handleScanCode() {
@@ -458,7 +511,7 @@
 		} else {
 			// 测试时用
 			getDayworkCarrierByCarrierCode({
-				carrierCode: '078965'
+				carrierCode: '000052'
 			}).then(res => {
 				if (res.code == 200) {
 					if (res.data.length > 0) {
@@ -484,6 +537,7 @@
 		getLotInfo()
 		getFurnaceInfo()
 		getHistoryReport()
+		getAuxiliaryHistoryReport()
 		getInspection()
 		getSortReport()
 	}
@@ -517,6 +571,16 @@
 			}
 		})
 	}
+	//查询辅助报工
+	function getAuxiliaryHistoryReport() {
+		getAuxiliaryDayworkItemByDayworkId({
+			dayworkId: dayworkId.value
+		}).then(response => {
+			if (response.code == 200) {
+				auxiliaryData.value = response.data
+			}
+		})
+	}
 	//查询检查信息
 	function getInspection() {
 		getProcessInspectionByDayworkId({
@@ -612,7 +676,7 @@
 		isActiveId.value = 1
 	}
 	const handleScrollToLower = () => {
-		isActiveId.value = 5
+		isActiveId.value = 6
 	}
 	const handleScroll = () => {
 		// 在滚动时候,把scrollToId的值清空,否则,会有点击tab,页面不滚动的情况,比如:先点击了tab1,然后滚动到最低端,这时候,再点击tab1,将没反应。
@@ -623,6 +687,7 @@
 		item2Query.exec()
 		item3Query.exec()
 		item4Query.exec()
+		item5Query.exec()
 	}
 </script>
 

+ 1 - 1
pages/reportHistory/index.vue

@@ -299,7 +299,7 @@
 					var endTimeStatus = "";
 					for (var j = 0; j < listDaywork.value.length; j++) {
 						if (listDaywork.value[j].dayworkId === current.dayworkId && listDaywork.value[j]
-							.processId === current.processId) {
+							.processStepNumber === current.processStepNumber) {
 							listDaywork.value[j].qualifiedNum += current.qualifiedNum;
 							listDaywork.value[j].rejectSum += current.rejectSum;
 							if (listDaywork.value[j].equipmentDetailCode != null && listDaywork.value[j]