Browse Source

修改盘点2024/7/1 16:09:10

hella_vue3
zhang_li 3 months ago
parent
commit
1cdec1142b
  1. 6
      src/pages/count/job/countBlindDetail.vue
  2. 14
      src/pages/count/job/countJob.vue
  3. 832
      src/pages/count/job/countLightDetail.vue

6
src/pages/count/job/countBlindDetail.vue

@ -25,8 +25,8 @@
</view> </view>
</view> </view>
</view> </view>
<u-line color="#D8D8D8" style="margin-bottom: 15rpx"></u-line> <u-line color="#D8D8D8" style="margin-bottom: 10rpx"></u-line>
<view style="margin-top: 170rpx; margin-bottom: 50rpx"> <view style="margin-top: 160rpx; margin-bottom: 50rpx">
<u-line color="#D8D8D8" style="margin-bottom: 15rpx"></u-line> <u-line color="#D8D8D8" style="margin-bottom: 15rpx"></u-line>
<scroll-view scroll-y="true" class="" style="margin-bottom: 50px"> <scroll-view scroll-y="true" class="" style="margin-bottom: 50px">
<view class="detail-list" v-for="(item, index) in showList" :key="item.id"> <view class="detail-list" v-for="(item, index) in showList" :key="item.id">
@ -535,7 +535,9 @@ page {
.header { .header {
position: fixed; position: fixed;
/* #ifdef H5 */
top: 88rpx; top: 88rpx;
/* #endif */
left: 0; left: 0;
width: 100%; width: 100%;
background-color: #fff; background-color: #fff;

14
src/pages/count/job/countJob.vue

@ -165,17 +165,9 @@ const getList = (type) => {
}) })
} }
const openJobDetail = (item) => { const openJobDetail = (item) => {
// uni.navigateTo({
if (item.isOpenCount == 'TRUE') { url: `./countDetail?id=${item.id}&status=${item.status}`
uni.navigateTo({ })
url: `./countLightDetail?id=${item.id}&status=${item.status}`
})
} else {
//
uni.navigateTo({
url: `./countBlindDetail?id=${item.id}&status=${item.status}`
})
}
} }
const selectedItem = (item) => { const selectedItem = (item) => {
openJobDetail(item) openJobDetail(item)

832
src/pages/count/job/countLightDetail.vue

@ -8,7 +8,7 @@
<view class="cell_box uni-flex uni-row" style="font-weight: bold"> <view class="cell_box uni-flex uni-row" style="font-weight: bold">
<view class="cell_info" style="color: #000"> <view class="cell_info" style="color: #000">
<view class="text_lightblue" style="color: #000">阶段</view> <view class="text_lightblue" style="color: #000">阶段</view>
<view style="color: #000">{{ getCountStageName(jobContent.stage) }}</view> <view style="color: #000">{{ getCountStageNameValue(jobContent.stage) }}</view>
</view> </view>
<view class="cell_info"> <view class="cell_info">
<view class="text_lightblue" style="color: #000">策略</view> <view class="text_lightblue" style="color: #000">策略</view>
@ -29,8 +29,8 @@
</view> </view>
</view> </view>
</view> </view>
<u-line color="#D8D8D8" style="margin-bottom: 15rpx"></u-line> <u-line color="#D8D8D8" style="margin-bottom: 10rpx"></u-line>
<view style="margin-top: 170rpx; padding-bottom: 130rpx"> <view style="margin-top: 160rpx; padding-bottom: 130rpx">
<u-line color="#D8D8D8" style="margin-bottom: 15rpx"></u-line> <u-line color="#D8D8D8" style="margin-bottom: 15rpx"></u-line>
<scroll-view scroll-y="true" class="" style="margin-bottom: 0px"> <scroll-view scroll-y="true" class="" style="margin-bottom: 0px">
<view class="detail-list" v-for="(item, index) in showList" :key="item.id"> <view class="detail-list" v-for="(item, index) in showList" :key="item.id">
@ -59,471 +59,453 @@
<win-scan-button @goScan="openScanPopup"></win-scan-button> <win-scan-button @goScan="openScanPopup"></win-scan-button>
<win-scan-pack-and-location ref="scanPopup" :noShowBalanceMessage="true" @getCountScanResult="getScanResult"> </win-scan-pack-and-location> <win-scan-pack-and-location ref="scanPopup" :noShowBalanceMessage="true" @getCountScanResult="getScanResult"> </win-scan-pack-and-location>
<count-qty-edit ref="countQtyEdit" @confirm="editConfirm" @close="editClose" :isShowStatus="true" :allowEditStatus="editInventoryStatus" :isShowBalance="jobContent.isOpenCount == 'TRUE'"> </count-qty-edit> <count-qty-edit ref="countQtyEditRef" @confirm="editConfirm" @close="editClose" :isShowStatus="true" :allowEditStatus="editInventoryStatus" :isShowBalance="jobContent.isOpenCount == 'TRUE'"> </count-qty-edit>
<detail-info-popup ref="detailInfoPopup"></detail-info-popup> <detail-info-popup ref="detailInfoPopupRef"></detail-info-popup>
<comMessage ref="comMessage"></comMessage> <com-message ref="comMessageRef" />
</view> </view>
</template> </template>
<script> <script setup lang="ts">
import { Decimal } from 'decimal.js' // import { ref, getCurrentInstance, onMounted, nextTick, watch } from 'vue'
import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRefresh, onLoad, onBackPress } from '@dcloudio/uni-app'
import { getCountJobDetail, takeCountJob, cancleTakeCountJob, countJobSubmit } from '@/api/request2.js' import { getCountJobDetail, takeCountJob, cancleTakeCountJob, countJobSubmit } from '@/api/request2.js'
import { calc } from '@/common/calc.js'
import { goHome, navigateBack, getPackingNumberAndBatch, compare } from '@/common/basic.js' import { goHome, navigateBack, compare } from '@/common/basic.js'
import { getCountStageName } from '@/common/directory.js'
import { getDetailOption, getDetailEditRemoveOption, getClearOption } from '@/common/array.js' import { getDetailOption, getDetailEditRemoveOption } from '@/common/array.js'
import { getCountStageName } from '@/common/directory.js'
import winScanButton from '@/mycomponents/scan/winScanButton.vue' import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import winScanPack from '@/mycomponents/scan/winScanPack.vue'
import comCountDetailcards from '@/pages/count/coms/comCountDetailcards.vue' import comCountDetailcards from '@/pages/count/coms/comCountDetailcards.vue'
import winScanPackAndLocation from '@/mycomponents/scan/winScanPackAndLocation.vue' import winScanPackAndLocation from '@/mycomponents/scan/winScanPackAndLocation.vue'
import countQtyEdit from '@/mycomponents/qty/countQtyEdit.vue' import countQtyEdit from '@/mycomponents/qty/countQtyEdit.vue'
import jobTop from '@/mycomponents/job/jobTop.vue' import jobTop from '@/mycomponents/job/jobTop.vue'
import detailInfoPopup from '@/pages/count/coms/detailInfoPopup.vue' import detailInfoPopup from '@/pages/count/coms/detailInfoPopup.vue'
import { useCountStore } from '@/store'
export default { // store
name: 'receipt_detail', const store = useCountStore()
components: {
winScanButton, const { proxy } = getCurrentInstance()
winScanPack,
comCountDetailcards, const id = ref('')
winScanPackAndLocation, const fromLocationCode = ref('')
countQtyEdit, const jobContent = ref({}) //
jobTop, const editInventoryStatus = ref(false)
detailInfoPopup const currentEditItem = ref({})
}, const jobStatus = ref('')
data() { const allCount = ref(0)
return { const scanCount = ref(0)
id: '', const index = ref(0)
receiptJob: {}, const pageSize = ref(20)
fromLocationCode: '', const showList = ref([])
isShowPackingCode: true, const loadingType = ref('')
jobContent: {}, // const allDetails = ref([])
subList: [], // subList const scanOptions = ref([])
detailSource: [], // const detailOptions = ref([])
balance: {}, // const detailInfoPopupRef = ref()
editInventoryStatus: false, const showItem = ref()
package: {}, // const comMessageRef = ref()
label: {}, // const scanPopup = ref()
currentEditItem: {}, const countQtyEditRef = ref()
jobStatus: '',
allCount: 0, onLoad((option) => {
scanCount: 0, id.value = option.id
index: 0, if (id.value != undefined) {
pageSize: 20, //
showList: [], if (option.status == '1') {
loadingType: '', receive((callback) => {
allDetails: [], getDetail()
scanOptions: [], })
detailOptions: []
}
},
onLoad(option) {
this.id = option.id
if (this.id != undefined) {
//
if (option.status == '1') {
this.receive((callback) => {
this.getDetail()
})
} else {
this.getDetail()
}
}
this.detailOptions = getDetailOption()
this.scanOptions = getDetailEditRemoveOption()
},
//
onNavigationBarButtonTap(e) {
if (e.index === 0) {
goHome()
}
},
//
onBackPress(e) {
//
if (e.from === 'backbutton') {
if (this.jobStatus == '2') {
//
cancleTakeCountJob(this.id)
.then((res) => {
uni.navigateBack()
})
.catch((error) => {
uni.navigateBack()
})
} else {
uni.navigateBack()
}
return true
}
},
onPullDownRefresh() {
this.initList()
uni.stopPullDownRefresh()
},
mounted() {},
onReachBottom() {
console.log('onReachBottom')
//
if (this.loadingType == 'nomore') {
return
}
this.index++
const list = this.getDataPage(this.index, this.pageSize)
if (list.length > 0) {
// this.showList=list
this.showList = this.showList.concat(list)
} else { } else {
// getDetail()
this.loadingType = 'nomore'
} }
}, }
methods: { detailOptions.value = getDetailOption()
// scanOptions.value = getDetailEditRemoveOption()
receive(callback) { })
if (this.id != null) { //
takeCountJob(this.id) onNavigationBarButtonTap((e) => {
.then((res) => { if (e.index === 0) {
callback() goHome()
}) }
.catch((error) => { })
this.showErrorMessage(error) //
}) onBackPress((e) => {
} //
}, if (e.from === 'backbutton') {
if (jobStatus.value == '2') {
getDetail() { //
const that = this cancleTakeCountJob(id.value)
uni.showLoading({
title: '加载中....',
mask: true
})
getCountJobDetail(that.id)
.then((res) => { .then((res) => {
uni.hideLoading() uni.navigateBack()
if (res.data == null) {
that.showMessage('未获取到详情')
} else {
that.jobContent = res.data
that.jobStatus = res.data.status
that.fromLocationCode = that.jobContent.locationCode
res.data.subList.forEach((item) => {
item.recommendQty = item.qty
item.handleQty = 0
item.countTime = new Date()
item.fromLocationCode = that.fromLocationCode
})
that.allDetails = res.data.subList
that.allCount = res.data.subList.length
that.initList()
}
}) })
.catch((error) => { .catch((error) => {
uni.hideLoading() uni.navigateBack()
this.showErrorMessage(error)
}) })
}, } else {
uni.navigateBack()
initList() { }
this.index = 1 return true
this.showList = [] }
this.loadingType = '' })
this.showList = this.getDataPage(this.index, this.pageSize)
}, onPullDownRefresh(() => {
initList()
getDataPage(pageNo, pageSize) { uni.stopPullDownRefresh()
// })
const totalPages = Math.ceil(this.allCount / pageSize)
// onReachBottom(() => {
const start = (pageNo - 1) * pageSize console.log('onReachBottom')
const end = start + pageSize // //
return this.allDetails.slice(start, end) if (loadingType.value == 'nomore') {
}, return
}
swipeClick(e, item) { index.value++
if (e.content.text == '详情') { const list = getDataPage(index.value, pageSize.value)
this.detail(item) if (list.length > 0) {
} else if (e.content.text == '编辑') { showList.value = showList.value.concat(list)
this.editItem(item) } else {
} else if (e.content.text == '移除') { //
this.remove(item) loadingType.value = 'nomore'
} }
}, })
detail(item) {
this.showItem = item //
this.$refs.detailInfoPopup.openPopup(item) const receive = (callback) => {
}, if (id.value != null) {
takeCountJob(id.value)
remove(item, index) { .then((res) => {
this.$refs.comMessage.showQuestionMessage('确定移除扫描信息?', (res) => { callback()
if (res) {
item.scaned = false
item.handleQty = 0
this.$emit('removePack')
}
}) })
}, .catch((error) => {
showErrorMessage(error)
})
}
}
updateData() {}, const getDetail = () => {
uni.showLoading({
title: '加载中....',
mask: true
})
getCountJobDetail(id.value)
.then((res) => {
uni.hideLoading()
if (res.data == null) {
showMessage('未获取到详情')
} else {
jobContent.value = res.data
jobStatus.value = res.data.status
fromLocationCode.value = jobContent.value.locationCode
res.data.subList.forEach((item) => {
item.recommendQty = item.qty
item.handleQty = 0
item.countTime = new Date()
item.fromLocationCode = fromLocationCode.value
})
allDetails.value = res.data.subList
allCount.value = res.data.subList.length
initList()
}
})
.catch((error) => {
uni.hideLoading()
showErrorMessage(error)
})
}
openScanPopup() { const initList = () => {
const fromlocationList = [] index.value = 1
fromlocationList.push(this.fromLocationCode) showList.value = []
this.$refs.scanPopup.openScanPopupForJob(this.fromLocationCode, fromlocationList, this.jobContent) loadingType.value = ''
}, showList.value = getDataPage(index.value, pageSize.value)
}
closeScanPopup() { const getDataPage = (pageNo, pageSize) => {
if (this.$refs.scanPopup != undefined) { //
this.$refs.scanPopup.closeScanPopup() const totalPages = Math.ceil(allCount.value / pageSize)
} //
}, const start = (pageNo - 1) * pageSize
const end = start + pageSize //
return allDetails.value.slice(start, end)
}
scanPopupGetFocus() { const swipeClick = (e, item) => {
if (this.$refs.scanPopup != undefined) { if (e.content.text == '详情') {
this.$refs.scanPopup.packGetFocus() detail(item)
} } else if (e.content.text == '编辑') {
}, editItem(item)
} else if (e.content.text == '移除') {
remove(item)
}
}
const detail = (item) => {
showItem.value = item
detailInfoPopupRef.value.openPopup(item)
}
scanPopupLoseFocus() { const remove = (item, index) => {
if (this.$refs.scanPopup != undefined) { comMessageRef.value.showQuestionMessage('确定移除扫描信息?', (res) => {
this.$refs.scanPopup.packLoseFocus() if (res) {
} item.scaned = false
}, item.handleQty = 0
emit('removePack')
// }
getScanResult(result) { })
const { itemCode } = result.label }
const { packingNumber } = result.label
const pack = result.package const openScanPopup = () => {
const { batch } = result.label const fromlocationList = []
const inventoryStatus = result.balance ? result.balance.inventoryStatus : 'OK' fromlocationList.push(fromLocationCode.value)
const qty = result.balance ? result.balance.qty : 0 scanPopup.value.openScanPopupForJob(fromLocationCode.value, fromlocationList, jobContent.value)
}
//
const items = this.allDetails.filter((r) => r.itemCode === itemCode && r.packingNumber === packingNumber && r.batch === batch && r.inventoryStatus === inventoryStatus) const closeScanPopup = () => {
// , if (scanPopup.value != undefined) {
if (items.length == 0) { scanPopup.value.closeScanPopup()
this.$refs.comMessage.showQuestionMessage(`包装【${result.label.packingNumber}】不在任务列表中,是否要添加到列表中?`, (res) => { }
// }
if (res) {
const detail = this.createAddDetailInfo(pack, qty) const scanPopupGetFocus = () => {
detail.countTime = new Date() if (scanPopup.value != undefined) {
this.allDetails.push(detail) scanPopup.value.packGetFocus()
this.updateList() }
this.$refs.countQtyEdit.openEditPopupShowSeconds(detail, null) }
} else {
this.scanPopupGetFocus() const scanPopupLoseFocus = () => {
} if (scanPopup.value != undefined) {
}) scanPopup.value.packLoseFocus()
}
}
//
const getScanResult = (result) => {
const { itemCode } = result.label
const { packingNumber } = result.label
const pack = result.package
const { batch } = result.label
const inventoryStatus = result.balance ? result.balance.inventoryStatus : 'OK'
const qty = result.balance ? result.balance.qty : 0
//
const items = allDetails.value.filter((r) => r.itemCode === itemCode && r.packingNumber === packingNumber && r.batch === batch && r.inventoryStatus === inventoryStatus)
// ,
if (items.length == 0) {
comMessageRef.value.showQuestionMessage(`包装【${result.label.packingNumber}】不在任务列表中,是否要添加到列表中?`, (res) => {
//
if (res) {
const detail = createAddDetailInfo(pack, qty)
detail.countTime = new Date()
allDetails.value.push(detail)
updateList()
countQtyEditRef.value.openEditPopupShowSeconds(detail, null)
} else { } else {
const selectItem = items[0] scanPopupGetFocus()
//
if (selectItem.scaned) {
this.$refs.comMessage.showQuestionMessage(`包装【${result.label.packingNumber}】已经完成盘点,是否要编辑盘点结果?`, (res) => {
if (res) {
this.currentEditItem = selectItem
this.$refs.countQtyEdit.openEditPopup(selectItem, null)
} else {
this.scanPopupGetFocus()
}
})
} else {
//
selectItem.scaned = true
selectItem.handleQty = Number(qty)
selectItem.packQty = pack.packQty
selectItem.packUnit = pack.packUnit
this.$refs.countQtyEdit.openEditPopupShowSeconds(selectItem, null)
selectItem.countTime = new Date()
this.updateList()
}
}
},
editConfirm(qty, inventoryStatus, mode) {
const that = this
//
if (mode == 'edit') {
this.currentEditItem.handleQty = qty
this.currentEditItem.inventoryStatus = inventoryStatus
}
//
this.currentEditItem.countTime = new Date()
this.updateList()
this.scanPopupGetFocus()
},
updateList() {
this.allDetails.sort(compare('countTime')) //
this.initList()
this.scanPopupLoseFocus()
this.calcAllCount()
this.calcScanCount()
},
calcAllCount() {
this.allCount = this.allDetails.length
},
calcScanCount() {
this.scanCount = this.allDetails.filter((r) => r.scaned === true).length
},
editClose() {
this.scanPopupGetFocus()
},
//
createAddDetailInfo(pack, qty) {
const detail = {
id: this.jobContent.masterId, //
scaned: true,
countDetailNumber: '',
ownerCode: '',
packingNumber: pack.number,
containerNumber: '',
batch: pack.batch,
inventoryStatus: 'OK',
itemCode: pack.itemCode,
itemName: pack.itemName,
itemDesc1: pack.itemDesc1,
itemDesc2: pack.itemDesc2,
packQty: pack.packQty,
packUnit: pack.packUnit,
projectCode: '',
recommendQty: Number(qty),
qty: Number(qty),
handleQty: Number(qty),
uom: pack.uom,
number: pack.number,
remark: '',
countQty: 0,
balanceQty: Number(qty),
fromLocationCode: this.fromLocationCode,
creator: this.$store.state.user.id,
countTime: new Date()
} }
return detail })
}, } else {
const selectItem = items[0]
commit() { //
this.calcAllCount() if (selectItem.scaned) {
this.calcScanCount() comMessageRef.value.showQuestionMessage(`包装【${result.label.packingNumber}】已经完成盘点,是否要编辑盘点结果?`, (res) => {
if (res) {
if (this.scanCount == this.allCount) { currentEditItem.value = selectItem
this.submitJob() countQtyEditRef.value.openEditPopup(selectItem, null)
} else if (this.scanCount < this.allCount) {
//
if (this.jobContent.allowPartialComplete == 'TRUE') {
//
this.$refs.comMessage.showQuestionMessage(`已经扫描[${this.scanCount}]总共[${this.allCount}],是否把未扫描的盘点数量设置为0?`, (res) => {
if (res) {
this.allDetails.forEach((item) => {
if (!item.scaned) {
item.scaned = true
item.handleQty = 0
}
})
this.submitJob()
}
})
} else { } else {
// scanPopupGetFocus()
this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交<br>' + `已经扫描[${this.scanCount}]总共[${this.getTotalCount()}]`, (res) => {
if (res) {
this.openScanPopup()
}
})
} }
}
},
submitJob() {
uni.showLoading({
title: '提交中....',
mask: true
})
const params = this.setParams()
console.log('提交参数', JSON.stringify(params))
// countJobSubmit(params).then(res => {
// uni.hideLoading()
// if (res.data) {
// this.showCommitSuccessMessage("<br><br>" + res.data)
// } else {
// this.showErrorMessage("[" + res.msg + "]")
// }
// }).catch(error => {
// uni.hideLoading()
// this.showErrorMessage(error)
// })
},
setParams() {
const subList = []
const creator = this.$store.state.user.id
this.allDetails.forEach((item) => {
if (item.scaned) {
item.countQty = item.handleQty
}
subList.push(item)
}) })
} else {
//
selectItem.scaned = true
selectItem.balanceQty = Number(qty)
selectItem.handleQty = Number(qty)
selectItem.packQty = pack.packQty
selectItem.packUnit = pack.packUnit
countQtyEditRef.value.openEditPopupShowSeconds(selectItem, null)
selectItem.countTime = new Date()
updateList()
}
}
}
const editConfirm = (qty, inventoryStatus, mode) => {
//
if (mode == 'edit') {
currentEditItem.value.handleQty = qty
currentEditItem.value.inventoryStatus = inventoryStatus
}
//
currentEditItem.value.countTime = new Date()
updateList()
scanPopupGetFocus()
}
const updateList = () => {
allDetails.value.sort(compare('countTime')) //
initList()
scanPopupLoseFocus()
calcAllCount()
calcScanCount()
}
const calcAllCount = () => {
allCount.value = allDetails.value.length
}
const calcScanCount = () => {
scanCount.value = allDetails.value.filter((r) => r.scaned === true).length
}
const editClose = () => {
scanPopupGetFocus()
}
this.jobContent.subList = subList //
this.jobContent.creator = creator const createAddDetailInfo = (pack, qty) => {
return this.jobContent const detail = {
}, id: jobContent.value.masterId, //
scaned: true,
countDetailNumber: '',
ownerCode: '',
packingNumber: pack.number,
containerNumber: '',
batch: pack.batch,
inventoryStatus: 'OK',
itemCode: pack.itemCode,
itemName: pack.itemName,
itemDesc1: pack.itemDesc1,
itemDesc2: pack.itemDesc2,
packQty: pack.packQty,
packUnit: pack.packUnit,
projectCode: '',
recommendQty: Number(qty),
qty: Number(qty),
handleQty: Number(qty),
uom: pack.uom,
number: pack.number,
remark: '',
countQty: 0,
balanceQty: Number(qty),
fromLocationCode: fromLocationCode.value,
creator: store.id,
countTime: new Date()
}
return detail
}
showMessage(message) { const commit = () => {
this.$refs.comMessage.showMessage(message, (res) => { calcAllCount()
calcScanCount()
if (scanCount.value == allCount.value) {
submitJob()
} else if (scanCount.value < allCount.value) {
//
if (jobContent.value.allowPartialComplete == 'TRUE') {
//
comMessageRef.value.showQuestionMessage(`已经扫描[${scanCount.value}]总共[${allCount.value}],是否把未扫描的盘点数量设置为0?`, (res) => {
if (res) { if (res) {
this.afterCloseMessage() allDetails.value.forEach((item) => {
if (!item.scaned) {
item.scaned = true
item.handleQty = 0
}
})
submitJob()
} }
}) })
}, } else {
showErrorMessage(message) { //
this.$refs.comMessage.showErrorMessage(message, (res) => { comMessageRef.value.showErrorMessage('请完成扫描后,再进行提交<br>' + `已经扫描[${scanCount.value}]总共[${getTotalCount()}]`, (res) => {
if (res) { if (res) {
this.afterCloseMessage() openScanPopup()
} }
}) })
}, }
}
}
showScanMessage(message) { const submitJob = () => {
this.$refs.comMessage.showScanMessage(message) uni.showLoading({
}, title: '提交中....',
mask: true
})
const params = setParams()
countJobSubmit(params)
.then((res) => {
uni.hideLoading()
if (res.data) {
showCommitSuccessMessage(`提交成功<br>生成盘点记录<br>${res.data}`)
} else {
showErrorMessage(`提交失败[${res.msg}]`)
}
})
.catch((error) => {
uni.hideLoading()
showErrorMessage(error)
})
}
afterCloseMessage() { const setParams = () => {
this.scanPopupGetFocus() const subList = []
}, const creator = store.id
closeScanMessage() { allDetails.value.forEach((item) => {
this.scanPopupGetFocus() if (item.scaned) {
}, item.countQty = item.handleQty
}
subList.push(item)
})
editItem(item) { jobContent.value.subList = subList
this.currentEditItem = item jobContent.value.creator = creator
this.$refs.countQtyEdit.openEditPopup(this.currentEditItem, null) return jobContent.value
}, }
showCommitSuccessMessage(hint) { const showMessage = (message) => {
this.$refs.comMessage.showSuccessMessage(hint, (res) => { comMessageRef.value.showMessage(message, (res) => {
navigateBack(1) if (res) {
}) afterCloseMessage()
},
getCountStageName(value) {
return getCountStageName(value)
},
isOpenCount(value) {
return value == 'TRUE' ? '明盘' : '盲盘'
} }
} })
}
const showErrorMessage = (message) => {
comMessageRef.value.showErrorMessage(message, (res) => {
if (res) {
afterCloseMessage()
}
})
}
const showScanMessage = (message) => {
comMessageRef.value.showScanMessage(message)
}
const afterCloseMessage = () => {
scanPopupGetFocus()
}
const closeScanMessage = () => {
scanPopupGetFocus()
}
const editItem = (item) => {
currentEditItem.value = item
countQtyEditRef.value.openEditPopup(this.currentEditItem, null)
}
const showCommitSuccessMessage = (hint) => {
comMessageRef.value.showSuccessMessage(hint, (res) => {
navigateBack(1)
})
}
const getCountStageNameValue = (value) => {
return getCountStageName(value)
}
const isOpenCount = (value) => {
return value == 'TRUE' ? '明盘' : '盲盘'
} }
</script> </script>
@ -543,7 +525,9 @@ page {
.header { .header {
position: fixed; position: fixed;
/* #ifdef H5 */
top: 88rpx; top: 88rpx;
/* #endif */
left: 0; left: 0;
width: 100%; width: 100%;
background-color: #fff; background-color: #fff;

Loading…
Cancel
Save