|
|
@ -1,13 +1,12 @@ |
|
|
|
<template> |
|
|
|
<view class="" style="background-color: #fff;"> |
|
|
|
<view class=""> |
|
|
|
|
|
|
|
<view class="cen_card" style="padding: 20rpx;"> |
|
|
|
<view class="" > |
|
|
|
<view class="cell_box uni-flex uni-row"> |
|
|
|
<view class="cell_info"> |
|
|
|
<!-- <view class="cell_info"> |
|
|
|
<view class="text_lightblue">类型</view> |
|
|
|
<view>{{getInspectType(jobContent.inspectType)}}</view> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<view class="cell_info"> |
|
|
|
<view class="text_lightblue">收货数</view> |
|
|
|
<view>{{jobContent.receiveQty}}{{getUnitInfo(jobContent.uom)}}</view> |
|
|
@ -25,9 +24,8 @@ |
|
|
|
<view>{{jobContent.crackQty}}{{getUnitInfo(jobContent.uom)}}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<u-line /> |
|
|
|
<!-- <u-line /> --> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
<u-line /> |
|
|
|
<uni-collapse ref="collapse1" @change=""> |
|
|
@ -38,26 +36,41 @@ |
|
|
|
<view class="" style="margin-left: 20rpx; "> |
|
|
|
<batch :batch="jobContent.batch"></batch> |
|
|
|
</view> |
|
|
|
|
|
|
|
</template> |
|
|
|
<u-line /> |
|
|
|
<view class="" v-for="(item,index) in dataContent.subList"> |
|
|
|
<uni-swipe-action ref="swipeAction"> |
|
|
|
<uni-swipe-action-item @click="swipeClick($event,item,index)" |
|
|
|
:right-options="item.scaned?scanOptions:detailOptions"> |
|
|
|
<recommend :detail="item" :isShowPack="isShowPack" |
|
|
|
:isShowBatch="isShowBatch" :isShowFromLocation="isShowLocation"></recommend> |
|
|
|
<view v-if="item.failedQty>0||item.crackQty>0" :class="item.scaned?'scan_view':''" style="font-size: 32rpx;padding-left: 3rpx;"> |
|
|
|
<view class="" > |
|
|
|
不合格数量 :{{item.failedQty}} |
|
|
|
<recommend :detail="item" :isShowPack="isShowPack" :isShowBatch="isShowBatch" |
|
|
|
:isShowFromLocation="isShowLocation"></recommend> |
|
|
|
<view v-if="item.failedQty>0||item.crackQty>0" :class="item.scaned?'scan_view':''" style="font-size: 32rpx;"> |
|
|
|
<view class="cell_box uni-flex uni-row"> |
|
|
|
<view class="cell_info uni-flex uni-row"> |
|
|
|
<view class="text_lightblue"> |
|
|
|
不合格 |
|
|
|
</view> |
|
|
|
<view style="padding-left: 12rpx;color: #F56C6C;"> |
|
|
|
{{item.failedQty}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="cell_info uni-flex uni-row"> |
|
|
|
<view class="text_lightblue"> |
|
|
|
报废 |
|
|
|
</view> |
|
|
|
<view style="padding-left: 12rpx;color: #EC9C00"> |
|
|
|
{{item.crackQty}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="cell_info uni-flex uni-row"> |
|
|
|
<view class="text_lightblue"> |
|
|
|
合格 |
|
|
|
</view> |
|
|
|
<view style="padding-left: 12rpx;color: #0A84FF"> |
|
|
|
{{item.goodQty}} |
|
|
|
</view> |
|
|
|
<view class="" > |
|
|
|
报废数量 :{{item.crackQty}} |
|
|
|
</view> |
|
|
|
<view class="" > |
|
|
|
合格数量 :{{item.goodQty}} |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
</uni-swipe-action-item> |
|
|
|
</uni-swipe-action> |
|
|
@ -66,8 +79,7 @@ |
|
|
|
|
|
|
|
</uni-collapse-item> |
|
|
|
</uni-collapse> |
|
|
|
<inspectEdit ref='inspectEdit' |
|
|
|
@getInspectResult='getInspectResult'> |
|
|
|
<inspectEdit ref='inspectEdit' @getInspectResult='getInspectResult'> |
|
|
|
</inspectEdit> |
|
|
|
<job-detail-popup ref="receiptHint" :dataContent="showItem"></job-detail-popup> |
|
|
|
<com-message ref="message"></com-message> |
|
|
@ -134,9 +146,8 @@ |
|
|
|
return { |
|
|
|
option: [], |
|
|
|
showItem: {}, |
|
|
|
editItem: { |
|
|
|
}, |
|
|
|
editIndex:0, |
|
|
|
editItem: {}, |
|
|
|
editIndex: 0, |
|
|
|
detailOptions: [], |
|
|
|
scanOptions: [] |
|
|
|
} |
|
|
@ -157,20 +168,20 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
getInspectType(value){ |
|
|
|
getInspectType(value) { |
|
|
|
return getInspectType(value) |
|
|
|
}, |
|
|
|
|
|
|
|
swipeClick(e, item,index) { |
|
|
|
swipeClick(e, item, index) { |
|
|
|
if (e.content.text == "详情") { |
|
|
|
this.detail(item) |
|
|
|
} else if (e.content.text == "编辑") { |
|
|
|
this.edit(item,index) |
|
|
|
this.edit(item, index) |
|
|
|
} else if (e.content.text == "移除") { |
|
|
|
this.remove(item) |
|
|
|
} |
|
|
|
}, |
|
|
|
edit(item,index) { |
|
|
|
edit(item, index) { |
|
|
|
this.editIndex = index; |
|
|
|
this.editItem = item; |
|
|
|
this.$refs.inspectEdit.openEditPopup(this.editItem); |
|
|
@ -189,10 +200,10 @@ |
|
|
|
item.crackQty = 0; |
|
|
|
item.sampleQty = 0; |
|
|
|
item.notPassedQty = 0; |
|
|
|
item.inspectResult ="" |
|
|
|
item.failedReason ="" |
|
|
|
item.handleQty =0; |
|
|
|
item.photos ="" |
|
|
|
item.inspectResult = "" |
|
|
|
item.failedReason = "" |
|
|
|
item.handleQty = 0; |
|
|
|
item.photos = "" |
|
|
|
this.$forceUpdate() |
|
|
|
this.$emit('remove', item) |
|
|
|
} |
|
|
@ -201,14 +212,14 @@ |
|
|
|
confirm(qty) { |
|
|
|
this.$emit('updateData') |
|
|
|
}, |
|
|
|
getInspectResult(result){ |
|
|
|
this.dataContent.subList[this.editIndex]= result; |
|
|
|
getInspectResult(result) { |
|
|
|
this.dataContent.subList[this.editIndex] = result; |
|
|
|
if (this.$refs.collapse1 != undefined) { |
|
|
|
this.$nextTick(res => { |
|
|
|
this.$refs.collapse1.resize() |
|
|
|
}) |
|
|
|
} |
|
|
|
this.$emit('updateData',) |
|
|
|
this.$emit('updateData', ) |
|
|
|
}, |
|
|
|
getUnitInfo(value) { |
|
|
|
return getUnitInfo(value).label |
|
|
|