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