ソースを参照

报工解决问题

longfenglin 1 年間 前
親
コミット
fb8e10e45c

+ 11 - 1
api/pda/workOrder.js

@@ -788,4 +788,14 @@ export async function productReceiveCreate(param) {
 	return Promise.reject(data.message);
 }
 
-// /pda/mes/workreport/findVoucherList
+export async function getInventoryTotal(params) {
+	const data = await postJ(
+		Vue.prototype.apiUrl + `/wms/stocktwo/getInventoryTotal`, params, true,
+	);
+
+  if (data.code == 0) {
+	console.log('11111',data)
+    return data.data;
+  }
+  return Promise.reject(data.message);
+}

+ 1 - 1
pages/pda/feeding/bill/index.vue

@@ -10,7 +10,7 @@
 				<view class="card_box " v-for="(item, index) in dataList" :key="index">
 					<view class="item_box rx-bc">
 						<view class="round">{{index + 1}}</view>
-						<view class="time">投料时间:{{item.createTime}} </view>
+						<view class="time">投料时间:{{item.executorTime}} </view>
 					</view>
 					
 					<view class="item_box rx-bc">

+ 3 - 2
pages/pda/feeding/components/semiProductBom.vue

@@ -19,7 +19,7 @@
 						<view class="rx ">
 							<view class="lable rx-cc">编码</view>
 							<view class="content rx-bc">
-								<view>{{ mate.code }} </view>
+								<view>{{ mate.categoryCode }} </view>
 								<view class="tag_box"
 									v-if="Object.prototype.hasOwnProperty.call(mate, 'extInfo') && Object.prototype.hasOwnProperty.call(mate.extInfo, 'productionTimes') && Object.prototype.hasOwnProperty.call(mate.extInfo.productionTimes, item.currentTaskDiagram.taskId)">
 									{{ mate.extInfo.productionTimes[item.currentTaskDiagram.taskId] }}
@@ -36,7 +36,7 @@
 						<view class="rx ">
 							<view class="lable rx-cc">编码</view>
 							<view class="content rx-bc">
-								<view>{{ mate.code }}</view>
+								<view>{{ mate.categoryCode }}</view>
 								<view class='tag_box' v-if="mate.isCache" style="margin-right: -36rpx;">缓</view>
 							</view>
 						</view>
@@ -263,6 +263,7 @@ export default {
 			immediate: true,
 			deep: true,
 			handler(newVal) {
+				console.log('112233',newVal)
 				this.deviceList = newVal
 				this.changeHeatNumber()
 

+ 2 - 2
pages/pda/feeding/components/workOrderBom.vue

@@ -48,8 +48,8 @@
 					<view class="content">{{ item.modelType }}</view>
 				</view>
 				<view class="item">
-					<view class="lable rx-cc">生产编码</view>
-					<view class="content">{{ item.productCode }}</view>
+					<view class="lable rx-cc">生产编号</view>
+					<view class="content">{{ item.productionCodes }}</view>
 				</view>
 				<view class="item rx-sc">
 					<view class="rx ww55 ">

+ 23 - 16
pages/pda/feeding/details.vue

@@ -154,7 +154,7 @@ export default {
 			clientEnvironmentId: null,
 			operateBtn: true,
 			cloneListNum: '',
-
+			feedNeedEquipment:1,////投料是否要添加生产设备1是0否
 		}
 	},
 	onLoad(options) {
@@ -167,6 +167,7 @@ export default {
 		this.taskId = options.taskId;
 		this.taskName = options.taskName;
 		this.type = options.type;
+		this.feedNeedEquipment=options.feedNeedEquipment
 
 		console.log(this.idsList, 'onLoad');
 
@@ -319,11 +320,11 @@ export default {
 			}
 
 
-			if (this.clientEnvironmentId !== 9) {
+			if (this.clientEnvironmentId !== 9&&this.feedNeedEquipment==1) {
 				const isDevice = await this.checkdDevice()
 
 				if (!isDevice) {
-					return false
+					return
 				}
 			}
 			// item.equipmentList
@@ -402,7 +403,7 @@ export default {
 					m.workOrderId = m.id
 
 					m.instanceList = [] // 物料
-					m.equipmentList = [] // 设备
+					// m.equipmentList = [] // 设备
 					m.modelList = [] // 模具
 					m.aridRegionList = [] // 干燥区
 					m.packingList = [] // 包装
@@ -797,19 +798,25 @@ export default {
 				if (isFalse) {
 					resolve(true)
 				} else {
+					uni.showToast({
+					    title: '请添加设备',
+					    icon: 'none', // 可选值:'success', 'loading', 'none'
+					    duration: 3000 // 持续时间,单位ms
+					});
+					resolve(false)
 
-					uni.showModal({
-						title: '提示',
-						content: '没有选择设备,是否继续?',
-						confirmText: '确认', //这块是确定按钮的文字
-						success: function (res) {
-							if (res.confirm) {
-								resolve(true)
-							} else {
-								resolve(false)
-							}
-						}
-					})
+					// uni.showModal({
+					// 	title: '提示',
+					// 	content: '没有选择设备,是否继续?',
+					// 	confirmText: '确认', //这块是确定按钮的文字
+					// 	success: function (res) {
+					// 		if (res.confirm) {
+					// 			resolve(true)
+					// 		} else {
+					// 			resolve(false)
+					// 		}
+					// 	}
+					// })
 
 				}
 

+ 193 - 47
pages/pda/jobBooking/components/semiProductJobBomPL.vue

@@ -57,7 +57,7 @@
 
 
 
-				<view class="item rx-sc">
+				<!-- <view class="item rx-sc">
 					<view class="rx ww50">
 						<view class="lable lable150 rx-cc ">设备</view>
 						<view class="content rx-sc">
@@ -75,7 +75,7 @@
 
 					</view>
 
-				</view>
+				</view> -->
 
 
 				<view class="item rx-sc">
@@ -113,20 +113,21 @@
 
 				</view>
 
-
-
 			</view>
-
-
-
+			
 			<view class="content_table2">
 				<view class="head row rx-sc">
-					<view class="item ww25" style="font-size: 20rpx;">
+					<view class="item ww15" style="font-size: 20rpx;">
 						合格品数量
 					</view>
 					<view class="item ww25">报工总重量/{{it.extInfo.weightUnit}} </view>
-
-					<view class="item ww40 rx-bc">
+					<view class="item ww20" style="font-size: 20rpx;">
+						设备
+					</view>
+					<view class="item ww20" style="font-size: 20rpx;">
+						炉次号
+					</view>
+					<view class="item ww20 rx-bc">
 						<text>处置</text>
 						<image v-if='!isDetails' class="icon" @click="handAddListPL(it, idx)"
 							src="~@/static/pda/add.svg" style="width: 46rpx;height: 46rpx;margin-right: 12rpx;"></image>
@@ -139,7 +140,7 @@
 
 				<view class="table">
 					<view class="tr row rx-sc" v-for="(yy, yyIdx) in it.extInfo.batchReportInfo">
-						<view class="item ww25 content_num">
+						<view class="item ww15 content_num">
 							<view v-if='isDetails'>{{yy.allFeedQuantity }}</view>
 							<input class="uni-input" v-else v-model="yy.allFeedQuantity"
 								@input="blurNum($event,idx, yyIdx)" type='number'></input>
@@ -148,14 +149,24 @@
 							<view v-if='isDetails'>{{yy.allReportWeight }}</view>
 							<input class="uni-input" v-else v-model="yy.allReportWeight" type='digit'></input>
 						</view>
+						<view class="item ww20 content_num">
+							<view v-if='isDetails'>{{yy.deviceName }}</view>
+							<zxz-uni-data-select v-else :localdata="deviceList" v-model="yy.deviceId" dataValue='instanceId'
+									format='{name}' dataKey="instanceId" filterable
+								@change=" e => selectValBatch(e, it, idx, yyIdx)" :clear='false'></zxz-uni-data-select>
+						</view>
+						<view class="item ww20 content_num">
+							<view v-if='isDetails'>{{yy.heatNumber }}</view>
+							<input class="uni-input" v-else v-model="yy.heatNumber" type='digit'></input>
+						</view>
 
 
 
-						<view class="item ww40" v-if='isDetails'>
+						<view class="item ww20" v-if='isDetails'>
 							{{ yy.taskName}}
 						</view>
 
-						<view class="item ww40" v-else>
+						<view class="item ww20" v-else>
 							<zxz-uni-data-select :localdata="stepsList" v-model="yy.taskId" dataValue='taskId'
 								format='{taskTypeName}' dataKey="taskId" filterable
 								@change=" e => yy.taskName = e.taskTypeName" :clear='false'></zxz-uni-data-select>
@@ -179,17 +190,22 @@
 
 			<view class="content_table2">
 				<view class="head row rx-sc">
-					<view class="item ww15" style="font-size: 20rpx;">
+					<view class="item ww10" style="font-size: 20rpx;">
 						不合格数
 					</view>
 					
-					<view class="item ww15" style="font-size: 20rpx;">
+					<view class="item ww10" style="font-size: 20rpx;">
 						重量
 					</view>
 					
-					<view class="item ww25">类型</view>
-
-					<view class="item ww35 rx-bc">
+					<view class="item ww15">类型</view>
+					<view class="item ww15" style="font-size: 20rpx;">
+						设备
+					</view>
+					<view class="item ww15" style="font-size: 20rpx;">
+						炉次号
+					</view>
+					<view class="item ww25 rx-bc">
 						<text>处置/原因</text>
 						<image v-if='!isDetails' class="icon" @click="handAddListPL4(it, idx)"
 							src="~@/static/pda/add.svg" style="width: 46rpx;height: 46rpx;margin-right: 12rpx;"></image>
@@ -202,32 +218,40 @@
 
 				<view class="table">
 					<view class="tr row rx-sc" v-for="(yy, yyIdx) in it.extInfo.notBatchReportInfo" :key="'not'+ idx + yyIdx">
-						<view class="item ww15 content_num">
+						<view class="item ww10 content_num">
 							<view v-if='isDetails'>{{yy.allFeedQuantity }}</view>
 							<input class="uni-input" v-else v-model="yy.allFeedQuantity"
 								@input="blurNum2($event,idx, yyIdx)" type='number'></input>
 						</view>
 						
-						<view class="item ww15 content_num">
+						<view class="item ww10 content_num">
 							<view v-if='isDetails'>{{yy.allReportWeight }}</view>
 							<input class="uni-input" v-else v-model="yy.allReportWeight"
 								 type='number'></input>
 						</view>
 						
-						<view class="item ww25 content_num">
+						<view class="item ww15 content_num">
 							<zxz-uni-data-select :localdata="notTypeList" v-model="yy.notType" dataValue='code'
 								format='{name}' dataKey="code" filterable :disabled="isDetails" @change="handLoad()"
 								:clear='false'></zxz-uni-data-select>
 						</view>
-
-
-
-						<view class="item ww35" v-if='isDetails'>
+						
+						<view class="item ww15 content_num">
+							<view v-if='isDetails'>{{yy.deviceName }}</view>
+							<zxz-uni-data-select :localdata="deviceList" v-model="yy.deviceId" dataValue='instanceId'
+									format='{name}' dataKey="instanceId" filterable
+								@change=" e => selectValNoBatch(e, it, idx, yyIdx)" :clear='false'></zxz-uni-data-select>
+						</view>
+						<view class="item ww15 content_num">
+							<view v-if='isDetails'>{{yy.heatNumber }}</view>
+							<input class="uni-input" v-else v-model="yy.heatNumber" ></input>
+						</view>
+						
+                       <view class="item ww25" v-if='isDetails'>
 							{{ yy.notType == 5 ? yy.taskName : yy.notReason}}
 						</view>
 
-
-						<view class="item ww35 content_num" v-if="!isDetails && yy.notType == 5">
+						<view class="item ww25 content_num" v-if="!isDetails && yy.notType == 5">
 
 							<zxz-uni-data-select :localdata="stepsList" v-model="yy.taskId" dataValue='taskId'
 								format='{taskTypeName}' dataKey="taskId" filterable
@@ -235,7 +259,7 @@
 
 
 						</view>
-						<view class="item ww35 content_num" v-if="!isDetails && yy.notType != 5">
+						<view class="item ww25 content_num" v-if="!isDetails && yy.notType != 5">
 							<input class="uni-input" v-if="yy.notType != 5 " v-model="yy.notReason"></input>
 						</view>
 
@@ -300,7 +324,15 @@
 				immediate: true,
 				deep: true,
 				handler(newVal) {
-					this.deviceList = newVal
+					// this.deviceList = newVal
+					//设备下拉框数据来源
+					let newData=JSON.parse(JSON.stringify(newVal))
+					if(this.isDetails){
+						this.deviceList = newData;
+					}else{
+						this.deviceArr(newData)
+					}
+					
 					this.changeHeatNumber()
 				}
 			},
@@ -356,12 +388,26 @@
 			console.log(this.list)
 
 		},
+		mounted(){
+		    this.theFirst()
+		},
 		methods: {
-
-
-
+			theFirst(){
+				if(this.deviceList.length>0){
+				  let obj = this.deviceList[0];
+				 
+				 this.list.map((item,index)=>{
+				   this.$set(this.list[index].extInfo.batchReportInfo[0],'deviceName',obj.name)
+				   this.$set(this.list[index].extInfo.batchReportInfo[0], 'heatNumber',obj.extInfo.heatNumber)
+				   this.$set(this.list[index].extInfo.batchReportInfo[0],'deviceId',obj.instanceId)
+				   this.$set(this.list[index].extInfo.notBatchReportInfo[0],'deviceName',obj.name)
+				   this.$set(this.list[index].extInfo.notBatchReportInfo[0], 'heatNumber',obj.extInfo.heatNumber)
+				   this.$set(this.list[index].extInfo.notBatchReportInfo[0],'deviceId',obj.instanceId)
+				 
+				 })
+				}
+		  },
 			getSteps() {
-
 				getTaskInstanceList(this.item.workOrderId).then(res => {
 					if (this.item.singleReport == 1) {
 						this.stepsList = res
@@ -371,14 +417,49 @@
 
 				})
 			},
+			deviceArr(data){
+				data.forEach((o,i) => {
+					o.id=o.id ? o.id.toString()+'/'+i : '';
+					o.instanceId=o.instanceId ? o.instanceId.toString()+'/'+i : '';
+				})
+		
+				this.deviceList = data;
+				if (this.deviceList.length == 0) {
+					this.list.forEach((o,index) => {
+					  //碳谷合格分批设备炉次号
+					  o.extInfo.batchReportInfo.map((report,ridx)=>{
+						this.$set(this.list[index].extInfo.batchReportInfo[ridx],'deviceName',this.deviceList[0].name)
+						this.$set(this.list[index].extInfo.batchReportInfo[ridx],'deviceId',this.deviceList[0].id||this.deviceList[0].instanceId)
+						//炉次号
+						this.$set(this.list[index].extInfo.batchReportInfo[ridx], 'heatNumber',this.deviceList[0].extInfo.heatNumber)
+					  })
+					  o.extInfo.notBatchReportInfo.map((noReport,noidx)=>{
+						this.$set(this.list[index].extInfo.notBatchReportInfo[noidx],'deviceName',this.deviceList[0].name)
+						this.$set(this.list[index].extInfo.notBatchReportInfo[noidx],'deviceId',this.deviceList[0].id||this.deviceList[0].instanceId)
+						//炉次号
+						this.$set(this.list[index].extInfo.notBatchReportInfo[noidx], 'heatNumber',this.deviceList[0].extInfo.heatNumber)
+					  })
+					  //碳谷合格分批设备炉次号
+					  this.$forceUpdate();
+					
+					})
+				  }
+			},
 
 
 			handAddListPL(it, idx) {
+				let deviceid=''
+				if(this.deviceList.length>0){
+				    deviceid=this.deviceList[0].id||this.deviceList[0].instanceId
+				}
 				this.list[idx].extInfo.batchReportInfo.push({
 					allFeedQuantity: '',
 					allReportWeight: '',
 					taskId: '',
-					taskName: ''
+					taskName: '',
+					deviceId: deviceid?deviceid:'',
+					deviceName:this.deviceList.length>0?this.deviceList[0].deviceName:'',
+					heatNumber: this.deviceList.length>0?this.deviceList[0].extInfo.heatNumber:'',
 				})
 				this.$forceUpdate()
 			},
@@ -466,15 +547,45 @@
 					}
 				})
 			},
-
+			
+			selectValBatch(e, item, idx,bidx){
+				 let obj = this.deviceList.find((f) => f.id||f.instanceId == e.instanceId);
+				 //设备名称
+				 this.$set(this.list[idx].extInfo.batchReportInfo[bidx],'deviceName',obj.name)
+				 //炉次号
+				 this.$set(this.list[idx].extInfo.batchReportInfo[bidx], 'heatNumber',obj.extInfo.heatNumber)
+				 //设备id
+				 this.$set(this.list[idx].extInfo.batchReportInfo[bidx],'deviceId',obj.id||obj.instanceId)
+				 this.$forceUpdate();
+			},
+			selectValNoBatch(e, item, idx,bidx){
+			    let obj = this.deviceList.find((f) => f.id||f.instanceId == e.instanceId);
+			    //设备名称
+			    this.$set(this.list[idx].extInfo.notBatchReportInfo[bidx],'deviceName',obj.name)
+			    //炉次号
+			    this.$set(this.list[idx].extInfo.notBatchReportInfo[bidx], 'heatNumber',obj.extInfo.heatNumber)
+			    //设备id
+			    this.$set(this.list[idx].extInfo.notBatchReportInfo[bidx],'deviceId',obj.id||obj.instanceId)
+				console.log('456',this.list[idx].extInfo.notBatchReportInfo[bidx])
+				this.$forceUpdate();
+			},
+			
+	
 			handAddListPL4(it, idx) {
+				let deviceid=''
+				if(this.deviceList.length>0){
+				     deviceid=this.deviceList[0].id||this.deviceList[0].instanceId
+				}
 				this.list[idx].extInfo.notBatchReportInfo.push({
 					allFeedQuantity: '',
 					allReportWeight: '',
 					notType: '',
 					taskId: '',
 					taskName: '',
-					notReason: ''
+					notReason: '',
+					deviceId: deviceid?deviceid:'',
+					deviceName:this.deviceList.length>0?this.deviceList[0].deviceName:'',
+					heatNumber: this.deviceList.length>0?this.deviceList[0].extInfo.heatNumber:''
 				})
 				this.$forceUpdate()
 			},
@@ -491,17 +602,51 @@
 
 
 			changeHeatNumber() {
-				this.deviceList.forEach(f => {
-					this.list.forEach(o => {
-						if (o.deviceId && f.instanceId == o.deviceId && this.deviceList.length > 1) {
-							o.extInfo.heatNumber = f.extInfo.heatNumber
-							this.$forceUpdate()
-						} else if (this.deviceList.length == 1) {
-							o.extInfo.heatNumber = this.deviceList[0].extInfo.heatNumber
-							this.$forceUpdate()
-						}
-					})
-				})
+				this.deviceList.forEach((f) => {
+				          this.list.forEach((o,index) => {
+				            //  o.deviceId &&
+				            //   f.instanceId == o.deviceId &&
+				            if (
+				              this.deviceList.length > 1
+				            ) {
+				              // o.extInfo.heatNumber = f.extInfo.heatNumber;
+				              this.$set(this.list[index].extInfo,'heatNumber',f.extInfo.heatNumber)
+				
+				              //碳谷合格分批设备炉次号
+				              o.extInfo.batchReportInfo.map((report,ridx)=>{
+				                if(report.deviceId==f.instanceId){
+				                   this.$set(this.list[index].extInfo.batchReportInfo[ridx],'heatNumber',f.extInfo.heatNumber)
+				                }
+				              })
+				              o.extInfo.notBatchReportInfo.map((noReport,noidx)=>{
+				                if(noReport.deviceId==f.instanceId){
+				                   this.$set(this.list[index].extInfo.notBatchReportInfo[noidx],'heatNumber',f.extInfo.heatNumber)
+				                }
+				              })
+				              this.$forceUpdate();
+				              
+				            } else if (this.deviceList.length == 1) {
+				              o['deviceId'] = this.deviceList[0].id;
+				              // o.extInfo.heatNumber = this.deviceList[0].extInfo.heatNumber;
+				              this.$set(this.list[index].extInfo,'heatNumber',this.deviceList[0].extInfo.heatNumber)
+				              
+				               //碳谷合格分批设备炉次号
+				              o.extInfo.batchReportInfo.map((report,ridx)=>{
+				                this.$set(this.list[index].extInfo.batchReportInfo[ridx],'deviceId',this.deviceList[0].instanceId)
+				                this.$set(this.list[index].extInfo.batchReportInfo[ridx],'heatNumber',this.deviceList[0].extInfo.heatNumber)
+				                this.$set(this.list[index].extInfo.batchReportInfo[ridx],'deviceName',this.deviceList[0].extInfo.name)
+				              })
+				              //碳谷合格分批设备炉次号
+				              o.extInfo.notBatchReportInfo.map((noReport,noidx)=>{
+				                this.$set(this.list[index].extInfo.notBatchReportInfo[noidx],'deviceId',this.deviceList[0].instanceId)
+				                this.$set(this.list[index].extInfo.notBatchReportInfo[noidx],'heatNumber',this.deviceList[0].extInfo.heatNumber)
+				                this.$set(this.list[index].extInfo.notBatchReportInfo[noidx],'deviceName',this.deviceList[0].extInfo.name)
+				              })
+				
+				              this.$forceUpdate();
+				            }
+				          });
+				        });
 			},
 
 			toFixedFn(weight, num) {
@@ -820,4 +965,5 @@
 		margin-right: 10rpx;
 
 	}
+	
 </style>

+ 19 - 5
pages/pda/jobBooking/index/index.vue

@@ -720,8 +720,6 @@ export default {
 
 
 		async save(type) {
-
-
 			console.log(type, 'type');
 
 			// 验证判断条件
@@ -878,9 +876,25 @@ export default {
 					return false
 				}
 			}
-
-
-
+			
+			if(this.objData.semiProductList.length>0){
+				this.objData.semiProductList.map((ditem)=>{
+					if(ditem.extInfo.batchReportInfo){
+					  ditem.extInfo.batchReportInfo.map((baItem)=>{
+						 let idvalue=baItem.deviceId?baItem.deviceId.split('/'):''
+						 baItem.deviceId=idvalue?idvalue[0]:''
+					  })
+					  
+					}
+					if(ditem.extInfo.notBatchReportInfo){
+					  ditem.extInfo.notBatchReportInfo.map((noItem)=>{
+						 let idvalue=noItem.deviceId?noItem.deviceId.split('/'):''
+						 noItem.deviceId=idvalue?idvalue[0]:''
+					  })
+					}
+				})
+			}
+			
 			jobSave(this.objData).then(res => {
 
 

+ 39 - 5
pages/pda/picking/details.vue

@@ -55,14 +55,23 @@
 									<view class="lable rx-cc ww80">数量</view>
 									<view class="content content_num">
 										<input class="uni-input" v-model="mate.demandQuantity" type="digit"
-											:disabled="clientEnvironmentId == 9"></input>
+											:disabled="clientEnvironmentId == 9" @input="
+											mate.demandQuantity > mate.availableCountBase
+											  ? (mate.demandQuantity = mate.availableCountBase)
+											  : row.demandQuantity
+											"></input>
 										<view class="unit">{{ mate.unit }}</view>
 
 									</view>
 								</view>
 
 							</view>
-
+							<view class="item">
+								<view class="lable rx-cc">计量库存数量</view>
+								<view class="content pd4">
+									<view class="content">{{ mate.availableCountBase }} {{ mate.unit }}</view>
+								</view>
+							</view>
 
 							<view class="item">
 								<view class="lable rx-cc">领料仓库</view>
@@ -143,7 +152,8 @@ import {
 	workorderList,
 	listOutsourceInWarehouse,
 	listOutsource,
-	currentStockQuery
+	currentStockQuery,
+	getInventoryTotal
 } from '@/api/pda/workOrder.js'
 import {
 	VirtualPagination
@@ -443,7 +453,7 @@ export default {
 
 
 
-		getList() {
+		 getList() {
 
 			workorderList({
 
@@ -500,9 +510,33 @@ export default {
 
 
 
-
+			 this.getInventoryTotalFn()
 			})
 		},
+		//计量库存数量
+		getInventoryTotalFn() {
+		      let ids=[]
+		      this.List.map(item=>{
+		        item.bomList.map(pitem=>{
+		          ids.push(pitem.categoryCode)
+		        })
+		      })
+			  getInventoryTotal(ids).then(res => {
+				  res.map(ritem=>{
+				    this.List.map(item=>{
+				      item.bomList.map(pitem=>{
+				        if(pitem.categoryCode==ritem.code){
+				          pitem.availableCountBase=ritem.availableCountBase
+				        }
+				  		
+				      })
+				    })
+				  })
+				  
+			  })
+		      
+		        
+		    },
 
 		hendDel(type, code, list) {
 

+ 5 - 5
pages/pda/workOrder/extrusionMolding/index.vue

@@ -242,7 +242,7 @@ export default {
 
 			clientEnvironmentId: uni.getStorageSync("userInfo") && uni.getStorageSync("userInfo")
 				.clientEnvironmentId, // *1 主环境-601环境   2 soll-索尔环境    3 tg-碳谷环境
-
+			feedNeedEquipment:1,//投料是否要添加生产设备1是0否
 		}
 	},
 
@@ -343,7 +343,7 @@ export default {
 			this.existOutsource = item.existOutsource
 			this.currentType = item.type
 			this.controlReportMethod = item.controlReportMethod
-
+			this.feedNeedEquipment= item.feedNeedEquipment
 
 			this.feedStatus()
 		},
@@ -401,7 +401,7 @@ export default {
 				if (this.clientEnvironmentId == 3 || this.info.singleReport !== 1) {
 					url = '/pages/pda/feeding/details'
 					let _arr = JSON.stringify([this.info.id])
-					url += `?arr=${encodeURIComponent(_arr)}&taskId=${taskId}&taskName=${taskName}&type=${type}`
+					url += `?arr=${encodeURIComponent(_arr)}&taskId=${taskId}&taskName=${taskName}&type=${type}&feedNeedEquipment=${this.feedNeedEquipment}`
 				} else {
 					// 单个投料
 					let arr = this.stepsList.find(f => f.taskId == this.info.taskId)
@@ -411,12 +411,12 @@ export default {
 					if (arr.isFirstTask == 1) {
 						url = '/pages/pda/feeding/details'
 						let _arr = JSON.stringify([this.info.id])
-						url += `?arr=${encodeURIComponent(_arr)}&taskId=${taskId}&taskName=${taskName}&type=${type}`
+						url += `?arr=${encodeURIComponent(_arr)}&taskId=${taskId}&taskName=${taskName}&type=${type}&feedNeedEquipment=${this.feedNeedEquipment}`
 					} else {
 						// 首工序
 						url = '/pages/pda/feeding/details'
 						let _arr = JSON.stringify([this.info.id])
-						url += `?arr=${encodeURIComponent(_arr)}&taskId=${taskId}&taskName=${taskName}&type=${type}`
+						url += `?arr=${encodeURIComponent(_arr)}&taskId=${taskId}&taskName=${taskName}&type=${type}&feedNeedEquipment=${this.feedNeedEquipment}`
 
 					}
 				}

+ 1 - 1
pages/pda/workOrder/index/details.vue

@@ -10,7 +10,7 @@
 
 					<view class="rx-bc title_card">
 						<view>{{ index + 1 }}</view>
-						<view>报工时间: {{ objData.createTime }}</view>
+						<view>报工时间: {{ objData.workReportInfo.executorTime }}</view>
 					</view>
 					<workOrderBom :item='objData' v-if='objData' :isDetails='true'></workOrderBom>