Browse Source

修改扫描2024/7/20 13:52:36

pull/1/head
zhang_li 5 months ago
parent
commit
7453288b2e
  1. 18
      src/pages/count/job/fuzzyCountDetail.vue
  2. 8
      src/pages/productReceipt/job/productReceiptJob.vue
  3. 12
      src/pages/repleinsh/job/repleinshJob.vue

18
src/pages/count/job/fuzzyCountDetail.vue

@ -40,8 +40,14 @@
<view class="page-footer" v-if="detailSource.length > 0">
<view class="uni-flex u-col-center space-between padding_10" style="background-color: ghostwhite; width: 100%">
<view class=""> </view>
<view class="uni-flex uni-row">
<view class="uni-flex u-col-center space-between padding_10">
<view> 已扫描: </view>
<view class="card_packing_code" style="padding: 5px; font-weight: bold; font-size: 40rpx">
{{ detailSource.length }}
</view>
<view> () </view>
</view>
<view class="uni-flex uni-row space-between">
<button class="btn_single_commit" hover-class="btn_commit_after" @click="commit">提交</button>
</view>
</view>
@ -285,13 +291,17 @@ export default {
getScanResult(result) {
const that = this
const packInfo = result.package
const detail = this.createDetailInfo(packInfo)
this.detailSource.unshift(detail)
this.scanPopupGetFocus()
return
if (this.itemRangeValue != '') {
const index = this.itemRangeValue.indexOf(packInfo.itemCode)
if (index < 0) {
this.afterScanLocation(`物料代码【${packInfo.itemCode}】,不在盘点范围【${this.itemRangeValue}】内`)
} else {
this.onScan(packInfo)
return
}
this.onScan(packInfo)
} else {
this.onScan(packInfo)
}

8
src/pages/productReceipt/job/productReceiptJob.vue

@ -65,6 +65,7 @@ const status = ref('1,2') // 待处理 、进行中
const detailOptions = ref([])
const detailGiveupOptions = ref([])
const scanMessage = ref('')
const scanMessage = ref('')
const filter = ref()
const comMessageRef = ref()
const jobInfoPopupRef = ref()
@ -163,6 +164,7 @@ const openJobDetail = (item, scanMessage = '') => {
url: `./scrapReceiptDetail?id=${item.masterId}&status=${item.status}&scanMessage=${scanMessage}&title=${title.value}`
})
}
scanMessage.value = ''
}
const showItemList = (itemList) => {
@ -319,6 +321,11 @@ const getScanResult = (result) => {
column: 'status',
action: 'in',
value: '1,2'
},
{
column: 'accept_user_id',
action: '==',
value: store.id
}
// {
// column: 'fromLocationCode',
@ -332,6 +339,7 @@ const getScanResult = (result) => {
pageSize: 100
})
.then((res) => {
scanMessage.value = result.scanMessage
const resultList = res.data.list
if (resultList.length > 0) {
resultList.forEach((item) => {

12
src/pages/repleinsh/job/repleinshJob.vue

@ -246,6 +246,11 @@ const getDataListByType = (code) => {
action: '==',
value: code
})
filters.push({
column: 'accept_user_id',
action: '==',
value: store.id
})
const params = {
filters,
pageNo: 1,
@ -258,7 +263,7 @@ const getDataListByType = (code) => {
uni.hideLoading()
if (res.data.list.length == 0) {
showMessage('未查找到' + `${code}】的补料任务`)
} else if (res.data.list.length == 1) {
} else {
openJobDetail(res.data.list[0])
}
})
@ -306,6 +311,11 @@ const getScanResult = (result) => {
column: 'itemCode',
action: '==',
value: result.label.itemCode
},
{
column: 'accept_user_id',
action: '==',
value: store.id
}
]
getRepleinshJobList({

Loading…
Cancel
Save