From 349bcef9a96391d22522a3409adf5a89e7e70a95 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 24 十月 2023 08:46:11 +0800
Subject: [PATCH] Merge branch 'dev' of http://139.186.142.91:10010/r/productDev/dmMes into dev
---
minipro_standard/pages_inspect/pages/InOperation/InOperation.vue | 71 ++++++++++++++++++++++++-----------
1 files changed, 48 insertions(+), 23 deletions(-)
diff --git a/minipro_standard/pages_inspect/pages/InOperation/InOperation.vue b/minipro_standard/pages_inspect/pages/InOperation/InOperation.vue
index fa41316..11c4c17 100644
--- a/minipro_standard/pages_inspect/pages/InOperation/InOperation.vue
+++ b/minipro_standard/pages_inspect/pages/InOperation/InOperation.vue
@@ -25,14 +25,11 @@
<span>{{item.outActnum}}{{item.unitName}}</span>
</div>
<div class="page_content_title_bottom">
- <span class="green" v-if="item.qualityType === 0">鍚堟牸 <span
- class="black">/</span> </span>
- <span class="warning" v-else-if="item.qualityType === 1">涓嶈壇 <span
- class="black">/</span> </span>
- <span class="error" v-else-if="item.qualityType === 2">鎶ュ簾 <span
- class="black">/</span> </span>
- <span v-else>- / </span>
- <span>{{item.procedureName ? item.procedureName : '-'}} / </span>
+ <span class="green" v-if="item.qualityType === 0">鍚堟牸<text class="c6" decode>{{ split}}</text></span>
+ <span class="warning" v-else-if="item.qualityType === 1">涓嶈壇<text class="c6" decode>{{ split}}</text></span>
+ <span class="error" v-else-if="item.qualityType === 2">鎶ュ簾<text class="c6" decode>{{ split}}</text></span>
+ <span v-else>-<text class="c6" decode>{{ split}}</text></span>
+ <span>{{item.procedureName ? item.procedureName : '-'}}<text class="c6" decode>{{ split}}</text></span>
<span>{{item.batch ? item.batch : '-'}}</span>
</div>
</div>
@@ -72,10 +69,10 @@
</div>
</div>
<div class="page_yxwl_list_item_sx">
- <span class="green" v-if="item.qualityType === 0">鍚堟牸 <span>/</span> </span>
- <span class="warning" v-else-if="item.qualityType === 1">涓嶈壇 <span>/</span> </span>
- <span class="red" v-else-if="item.qualityType === 2">鎶ュ簾 <span>/</span> </span>
- <span>{{item.procedureName ? item.procedureName : '-'}} <span>/</span> </span>
+ <span class="green" v-if="item.qualityType === 0">鍚堟牸<text class="c6" decode>{{ split}}</text></span>
+ <span class="warning" v-else-if="item.qualityType === 1">涓嶈壇<text class="c6" decode>{{ split}}</text></span>
+ <span class="red" v-else-if="item.qualityType === 2">鎶ュ簾<text class="c6" decode>{{ split}}</text></span>
+ <span>{{item.procedureName ? item.procedureName : '-'}}<text class="c6" decode>{{ split}}</text></span>
<span>{{item.batch ? item.batch : '-'}}</span>
</div>
<div class="page_yxwl_list_item_num">
@@ -115,10 +112,10 @@
</div>
</div>
<div class="page_yxwl_list_item_sx">
- <span class="green" v-if="item1.qualityType === 0">鍚堟牸 <span>/</span> </span>
- <span class="yellow" v-else-if="item1.qualityType === 1">涓嶈壇 <span>/</span> </span>
- <span class="red" v-else-if="item1.qualityType === 2">鎶ュ簾 <span>/</span> </span>
- <span>{{item1.procedureName ? item1.procedureName : '-'}} <span>/</span> </span>
+ <span class="green" v-if="item1.qualityType === 0">鍚堟牸<text class="c6" decode>{{ split}}</text></span>
+ <span class="yellow" v-else-if="item1.qualityType === 1">涓嶈壇<text class="c6" decode>{{ split}}</text></span>
+ <span class="red" v-else-if="item1.qualityType === 2">鎶ュ簾<text class="c6" decode>{{ split}}</text></span>
+ <span>{{item1.procedureName ? item1.procedureName : '-'}}<text class="c6" decode>{{ split}}</text></span>
<span>{{item1.batch ? item1.batch : '-'}}</span>
</div>
<div class="page_yxwl_list_item_num">
@@ -200,6 +197,7 @@
},
data() {
return {
+ split: ' / ',
type: '',
id: '',
wareHouseId: '',
@@ -301,17 +299,42 @@
},
selectMaterial(val) {
let material = JSON.parse(JSON.stringify(val))
- let tempMaterial = this.seleMateriaList.find(item => item.locationId == this.location)
- if (tempMaterial) {
- if (tempMaterial.qualityType == material.qualityType && tempMaterial.procedureId == material
- .procedureId &&
- tempMaterial.batch == material.batch && tempMaterial.materialId == material.materialId) {
- uni.$u.toast('鐩稿悓璐т綅锛屽悓涓�涓墿鏂欏彧鑳芥湁涓�涓�')
- return
+ let repetition = false
+ this.seleMateriaList.forEach(item => {
+ if (item.locationId == this.location) {
+ if (item.id == material.id) {
+ repetition = true
+ return
+ }
}
+ })
+ if (repetition) {
+ uni.$u.toast('鐩稿悓璐т綅锛屽悓涓�涓墿鏂欏彧鑳芥湁涓�涓�')
+ return
}
+ // let tempMaterial = this.seleMateriaList.find(item => item.locationId == this.location)
+ // debugger
+ // if (tempMaterial) {
+ // /*
+ // tempMaterial.qualityType == material.qualityType
+ // && tempMaterial.procedureId == material.procedureId
+ // &&tempMaterial.batch == material.batch
+ // &&tempMaterial.oldLocationId == material.locationId
+ // && tempMaterial.materialId == material.materialId
+ // */
+ // if (tempMaterial.id == material.id) {
+ // uni.$u.toast('鐩稿悓璐т綅锛屽悓涓�涓墿鏂欏彧鑳芥湁涓�涓�')
+ // return
+ // }
+ // }
+ // if (tempMaterial && tempMaterial.id == material.id) {
+ // uni.$u.toast('鐩稿悓璐т綅锛屽悓涓�涓墿鏂欏彧鑳芥湁涓�涓�')
+ // return
+ // }
let materialNum = 0
let num = 0
+ // let selectedM = this.seleMateriaList.find(item => item.id == material.id)
+ // let waitMaterial = this.MateriaList.find(item => item.id === material.id)
this.seleMateriaList.forEach(item => {
if (item.id === material.id) {
materialNum += Number(item.outActnum)
@@ -322,9 +345,11 @@
num = item.outActnum - materialNum
}
})
+
material.outActnum = num
this.seleMateriaList.push({
...material,
+ oldLocationId: material.locationId,
locationId: this.location,
locationName: this.locationName
})
--
Gitblit v1.9.3