|
|
@@ -21,7 +21,7 @@
|
|
|
ref='modelRef'>
|
|
|
</modelBom>
|
|
|
|
|
|
-
|
|
|
+
|
|
|
<jobBom v-if='isLoad' :item='objData' ref='jobRef' :notFormed='objData.notFormedList'
|
|
|
@penalize='penalize' @modeNum='modeNum'></jobBom>
|
|
|
|
|
|
@@ -92,6 +92,7 @@
|
|
|
|
|
|
|
|
|
<view v-if="!operateBtn" @click="removeCacheFn()">清空缓存</view>
|
|
|
+ <view v-if="!operateBtn" @click="switchOrder = true">切换工单</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
@@ -105,7 +106,6 @@
|
|
|
<SearchPopup mode="bottom" v-if='searchShow'>
|
|
|
<template v-slot:list>
|
|
|
<view class="search_list">
|
|
|
-
|
|
|
<u-form labelPosition="left" :model="formData" labelWidth="180" labelAlign="left" class="baseForm">
|
|
|
<u-form-item label="仓库:" class="required-form" borderBottom prop="warehouseId">
|
|
|
<zxz-uni-data-select :localdata="warehouseList" v-model="formData.warehouseId"
|
|
|
@@ -132,6 +132,37 @@
|
|
|
</template>
|
|
|
|
|
|
|
|
|
+ </SearchPopup>
|
|
|
+
|
|
|
+
|
|
|
+ <SearchPopup mode="center" v-if='switchOrder'>
|
|
|
+ <template v-slot:list>
|
|
|
+ <view class="search_list2">
|
|
|
+ <u-form labelPosition="left" :model="formData" labelWidth="180" labelAlign="left" class="baseForm">
|
|
|
+ <u-form-item label="工单:" class="required-form" borderBottom prop="warehouseId">
|
|
|
+ <zxz-uni-data-select :localdata="warehouseList" v-model="formData.warehouseId"
|
|
|
+ dataValue='id' dataKey="name" filterable format='{name}'></zxz-uni-data-select>
|
|
|
+ </u-form-item>
|
|
|
+
|
|
|
+
|
|
|
+ </u-form>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template v-slot:operate>
|
|
|
+ <view class="operate_box rx-bc">
|
|
|
+ <u-button size="small" class="u-reset-button" @click="switchOrder = false ">
|
|
|
+ 取消
|
|
|
+ </u-button>
|
|
|
+
|
|
|
+ <u-button type="success" size="small" class="u-reset-button">
|
|
|
+ 确定
|
|
|
+ </u-button>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+
|
|
|
|
|
|
</SearchPopup>
|
|
|
|
|
|
@@ -217,6 +248,8 @@
|
|
|
|
|
|
|
|
|
searchShow: false,
|
|
|
+ switchOrder: false,
|
|
|
+
|
|
|
|
|
|
warehouseList: [],
|
|
|
formData: {
|
|
|
@@ -413,7 +446,7 @@
|
|
|
getByIdReport(this.id, this.taskId).then(res => {
|
|
|
|
|
|
this.objData = res
|
|
|
-
|
|
|
+ console.log(res)
|
|
|
|
|
|
|
|
|
if (!this.objData.hasOwnProperty('turnover')) {
|
|
|
@@ -662,9 +695,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
if (this.objData.currentTaskDiagram.isFirstTask == 0) { // isFirstTask 1是 判断是否首工序
|
|
|
|
|
|
const isFirstTask = await this.checkFirstTask()
|
|
|
@@ -783,10 +813,11 @@
|
|
|
|
|
|
},
|
|
|
checkFirstTask() {
|
|
|
-
|
|
|
+
|
|
|
uni.hideLoading();
|
|
|
return new Promise((resolve) => {
|
|
|
- if (this.objData.formedNumLast != Number(this.objData.workReportInfo['formedNum']) + Number(this.objData.notFormedList[0].notFormedNum)) {
|
|
|
+ if (this.objData.formedNumLast != Number(this.objData.workReportInfo['formedNum']) + Number(
|
|
|
+ this.objData.notFormedList[0].notFormedNum)) {
|
|
|
|
|
|
uni.showModal({
|
|
|
title: '提示',
|
|
|
@@ -841,7 +872,7 @@
|
|
|
success: rr => {
|
|
|
if (rr.confirm) {
|
|
|
let parma = {
|
|
|
- workOrderIds:[ this.id],
|
|
|
+ workOrderIds: [this.id],
|
|
|
taskId: this.taskId,
|
|
|
type: 1
|
|
|
}
|
|
|
@@ -873,7 +904,7 @@
|
|
|
|
|
|
this.objData['product'] = res.extInfo.product
|
|
|
this.objData['workReportInfo'] = res.extInfo.workReportInfo
|
|
|
- this.objData['notFormedList'] = res.extInfo.notFormedList
|
|
|
+ this.objData['notFormedList'] = res.extInfo.notFormedList
|
|
|
this.objData['turnover'] = res.extInfo.turnover
|
|
|
this.objData['productRecycleList'] = res.extInfo.productRecycleList
|
|
|
this.objData['semiProductList'] = res.extInfo.semiProductList
|
|
|
@@ -884,7 +915,11 @@
|
|
|
},
|
|
|
|
|
|
|
|
|
- }
|
|
|
+ },
|
|
|
+
|
|
|
+ beforeDestroy() {
|
|
|
+ uni.hideLoading();
|
|
|
+ },
|
|
|
|
|
|
}
|
|
|
</script>
|
|
|
@@ -953,6 +988,11 @@
|
|
|
padding: 0 32rpx;
|
|
|
}
|
|
|
|
|
|
+ .search_list2 {
|
|
|
+ min-height: 120rpx;
|
|
|
+ padding: 0 32rpx;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
@@ -960,6 +1000,15 @@
|
|
|
position: fixed;
|
|
|
right: 0;
|
|
|
bottom: 160rpx;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
width: 40rpx;
|
|
|
height: 50rpx;
|
|
|
line-height: 66rpx;
|