Browse Source

修改库位必须校验大小写 2024/6/26 15:04:54

hella_vue3
zhang_li 3 months ago
parent
commit
82eaf91bbb
  1. 2
      src/mycomponents/scan/winCheckFgLabel.vue
  2. 4
      src/mycomponents/scan/winScanLocation.vue
  3. 4
      src/mycomponents/scan/winScanPackAndLocation.vue
  4. 4
      src/mycomponents/scan/winScanPackAndLocationNoBalance.vue
  5. 2
      src/mycomponents/scan/winScanPackJob.vue
  6. 2
      src/pages/customerReturn/job/returnDetail.vue
  7. 2
      src/pages/deliver/coms/comDeliverRequestPopup.vue
  8. 2
      src/pages/deliver/job/deliverDetail.vue
  9. 4
      src/pages/inventoryMove/coms/comMoveRecord.vue
  10. 2
      src/pages/inventoryMove/job/inventoryMoveDetail.vue
  11. 2
      src/pages/issue/coms/comIssueRequestPopup.vue
  12. 2
      src/pages/productPutaway/job/productPutawayDetail.vue
  13. 2
      src/pages/productRecycle/job/productRecycleJobDetail.vue
  14. 2
      src/pages/productionReceipt/job/productionReceiptDetail.vue
  15. 2
      src/pages/productionReturn/coms/comReturnRequestPopup.vue
  16. 2
      src/pages/purchaseReturn/job/returnDetail.vue
  17. 2
      src/pages/putaway/job/putawayDetail.vue
  18. 2
      src/pages/repleinsh/coms/comRepleinshRequestPopup.vue
  19. 2
      src/pages/stockUp/job/stockUpJobDetail.vue
  20. 2
      src/pages/transfer/job/issueDetail.vue
  21. 2
      src/pages/transfer/job/receiptDetail.vue
  22. 12
      src/pages/transfer/job/transferDetail.vue

2
src/mycomponents/scan/winCheckFgLabel.vue

@ -36,7 +36,7 @@ import winComScanCustomerLabel from '@/mycomponents/scan/winComScanCustomerLabel
import balanceSelect from '@/mycomponents/balance/balanceSelect.vue'
import { getBalanceByManagementPrecision } from '@/common/balance.js'
import { getBasicLocationByCode, getCustomerItemList } from '@/api/request2.js'
import { getCustomerItemList } from '@/api/request2.js'
import { getListLocationAreaTypeDesc, checkDirectoryItemExist, getDirectoryItemArray, getLocationAreaTypeName, getInventoryStatusDesc } from '@/common/directory.js'

4
src/mycomponents/scan/winScanLocation.vue

@ -83,6 +83,10 @@ const getScanResult = (result) => {
proxy.$modal.closeLoading()
if (res.data.total > 0) {
const result = res.data.list[0]
if (result.code != code.value) {
showErrorMessage(`未查询到库位[${code.value}]`)
return
}
const { type } = result
const { areaType } = result
const { available } = result

4
src/mycomponents/scan/winScanPackAndLocation.vue

@ -202,6 +202,10 @@ const scanLocation = (scanResult) => {
uni.hideLoading()
if (res.data.total > 0) {
const result = res.data.list[0]
if (result.code != fromLocationCode.value) {
showErrorMessage(`未查询到库位[${fromLocationCode.value}]`)
return
}
const type = result.areaType
const { available } = result
if (available == 'TRUE') {

4
src/mycomponents/scan/winScanPackAndLocationNoBalance.vue

@ -162,6 +162,10 @@ const getScanResult = (scanResult) => {
.then((res) => {
if (res.data.total > 0) {
const result = res.data.list[0]
if (result.code != fromLocationCode.value) {
showErrorMessage(`未查询到库位[${fromLocationCode.value}]`)
return
}
const { type } = result
const { available } = result
if (available == 'TRUE') {

2
src/mycomponents/scan/winScanPackJob.vue

@ -23,7 +23,7 @@ import { ref, getCurrentInstance, nextTick } from 'vue'
import winComScan from '@/mycomponents/scan/winComScan.vue'
import { getBalanceByManagementPrecision } from '@/common/balance.js'
import { getBasicLocationByCode, getPutawayJobList } from '@/api/request2.js'
import { getPutawayJobList } from '@/api/request2.js'
import { getListLocationTypeDesc, checkDirectoryItemExist, getDirectoryItemArray, getLocationTypeName, getInventoryStatusDesc } from '@/common/directory.js'

2
src/pages/customerReturn/job/returnDetail.vue

@ -35,7 +35,7 @@ import { ref, getCurrentInstance, nextTick } from 'vue'
import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
import { getManagementPrecisions } from '@/common/balance.js'
import { getCustomerReturnJobDetail, getBasicLocationByCode, takeCustomerReturnJob, cancleTakeCustomerReturnJob, customerReturnJobSubmit } from '@/api/request2.js'
import { getCustomerReturnJobDetail, takeCustomerReturnJob, cancleTakeCustomerReturnJob, customerReturnJobSubmit } from '@/api/request2.js'
import { goHome, navigateBack, getPackingNumberAndBatch, getInventoryStatusName, getDirectoryItemArray } from '@/common/basic.js'
import { getDataSource, createRecordInfo, calcHandleQty, getScanCount } from '@/common/detail.js'

2
src/pages/deliver/coms/comDeliverRequestPopup.vue

@ -61,7 +61,7 @@
<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import { getBasicLocationByCode, getBasicItemByCode, getProductionlineItem, getWorkShopLineStation, getBasicCustomerList } from '@/api/request2.js'
import { getBasicItemByCode, getProductionlineItem, getWorkShopLineStation, getBasicCustomerList } from '@/api/request2.js'
import { getLocationTypeName, getListLocationTypeDesc, checkDirectoryItemExist } from '@/common/directory.js'
import uomCom from '@/mycomponents/qty/uom.vue'
import balanceStatus from '@/mycomponents/status/balanceStatus.vue'

2
src/pages/deliver/job/deliverDetail.vue

@ -52,7 +52,7 @@
<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
import { getDeliverDetail, getBasicLocationByCode, takeDeliverJob, cancleTakeDeliverJob, deliverJobSubmit } from '@/api/request2.js'
import { getDeliverDetail, takeDeliverJob, cancleTakeDeliverJob, deliverJobSubmit } from '@/api/request2.js'
import { calc } from '@/common/calc.js'

4
src/pages/inventoryMove/coms/comMoveRecord.vue

@ -147,6 +147,10 @@ const getLocationInfo = () => {
.then((res) => {
if (res.data.total > 0) {
const result = res.data.list[0]
if (result.code != toLocationCode.value) {
showErrorMessage(`未查询到库位[${toLocationCode.value}]`)
return
}
const { type } = result
const { available } = result
if (available == 'TRUE') {

2
src/pages/inventoryMove/job/inventoryMoveDetail.vue

@ -39,7 +39,7 @@
<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
import { getInventoryMoveJobDetail, getBasicLocationByCode, takeInventoryMoveJob, cancleTakeInventoryMoveJob, inventoryMoveSubmit } from '@/api/request2.js'
import { getInventoryMoveJobDetail, takeInventoryMoveJob, cancleTakeInventoryMoveJob, inventoryMoveSubmit } from '@/api/request2.js'
import { getManagementPrecisions, getPrecisionStrategyList } from '@/common/balance.js'
import { getDataSource, getScanCount, calcHandleQty } from '@/common/detail.js'

2
src/pages/issue/coms/comIssueRequestPopup.vue

@ -71,7 +71,7 @@
<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import { getBasicLocationByCode, getBasicItemByCode, getProductionlineItem, getWorkShopLineStation, getWarehouseCodeList } from '@/api/request2.js'
import { getBasicItemByCode, getProductionlineItem, getWorkShopLineStation, getWarehouseCodeList } from '@/api/request2.js'
import { getLocationTypeName, getListLocationTypeDesc, checkDirectoryItemExist } from '@/common/directory.js'
import uomCom from '@/mycomponents/qty/uom.vue'
import packQty from '@/mycomponents/qty/packQty.vue'

2
src/pages/productPutaway/job/productPutawayDetail.vue

@ -41,7 +41,7 @@ import { ref, getCurrentInstance, nextTick } from 'vue'
import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
import { getManagementPrecisions } from '@/common/balance.js'
import { getBasicLocationByCode, getProductPutawayJobDetail, takeProductPutawayJob, cancleTakeProductPutawayJob, productPutawayJobSubmit } from '@/api/request2.js'
import { getProductPutawayJobDetail, takeProductPutawayJob, cancleTakeProductPutawayJob, productPutawayJobSubmit } from '@/api/request2.js'
import { goHome, getCurrDateTime, navigateBack, updateTitle, getPackingNumberAndBatch, getSwitchInfoByCode } from '@/common/basic.js'

2
src/pages/productRecycle/job/productRecycleJobDetail.vue

@ -36,7 +36,7 @@
<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
import { getBasicLocationByCode, getProductRecycleDetail, productRecycleJobsubmit, cancleTakeProductRecycleJob, takeProductRecycleJob } from '@/api/request2.js'
import { getProductRecycleDetail, productRecycleJobsubmit, cancleTakeProductRecycleJob, takeProductRecycleJob } from '@/api/request2.js'
import { goHome, getCurrDateTime, getPackingNumberAndBatch, navigateBack } from '@/common/basic.js'
import { getInventoryStatusName } from '@/common/directory.js'

2
src/pages/productionReceipt/job/productionReceiptDetail.vue

@ -43,7 +43,7 @@ import { ref, getCurrentInstance, nextTick } from 'vue'
import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
import { getManagementPrecisions } from '@/common/balance.js'
import { getProductionReceiptJobDetail, getBasicLocationByCode, takeProductionReceiptJob, cancleTakeProductionReceiptJob, productionReceiptJobSubmit, getSwitchByCode } from '@/api/request2.js'
import { getProductionReceiptJobDetail, takeProductionReceiptJob, cancleTakeProductionReceiptJob, productionReceiptJobSubmit, getSwitchByCode } from '@/api/request2.js'
import { goHome, navigateBack, getCurrDateTime, getPackingNumberAndBatch, getInventoryStatusName, getSwitchInfoByCode } from '@/common/basic.js'
import { getDataSource, calcHandleQty, getScanCount } from '@/common/detail.js'

2
src/pages/productionReturn/coms/comReturnRequestPopup.vue

@ -61,7 +61,7 @@
<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import { getBasicLocationByCode, getBasicItemByCode, getProductionlineItem, getWorkShopLineStation } from '@/api/request2.js'
import { getBasicItemByCode, getProductionlineItem, getWorkShopLineStation } from '@/api/request2.js'
import { getLocationTypeName, getListLocationTypeDesc, checkDirectoryItemExist } from '@/common/directory.js'
import uomCom from '@/mycomponents/qty/uom.vue'
import packQty from '@/mycomponents/qty/packQty.vue'

2
src/pages/purchaseReturn/job/returnDetail.vue

@ -38,7 +38,7 @@
<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
import { getBasicLocationByCode, getPurchasereturnJobDetail, purchaseReturnJobsubmit, cancleTakePurchasereturnJob, takePurchasereturnJob } from '@/api/request2.js'
import { getPurchasereturnJobDetail, purchaseReturnJobsubmit, cancleTakePurchasereturnJob, takePurchasereturnJob } from '@/api/request2.js'
import { goHome, getCurrDateTime, getPackingNumberAndBatch, navigateBack } from '@/common/basic.js'
import { getInventoryStatusName } from '@/common/directory.js'

2
src/pages/putaway/job/putawayDetail.vue

@ -43,7 +43,7 @@ import { ref, getCurrentInstance, nextTick } from 'vue'
import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
import { getManagementPrecisions } from '@/common/balance.js'
import { getPutawayJobDetail, getBasicLocationByCode, putawayJobSubmit, takePutawayJob, cancleTakePutawayJob, getSwitchByCode } from '@/api/request2.js'
import { getPutawayJobDetail, putawayJobSubmit, takePutawayJob, cancleTakePutawayJob, getSwitchByCode } from '@/api/request2.js'
import { goHome, getCurrDateTime, getPackingNumberAndBatch, navigateBack, compareAsc, getSwitchInfoByCode } from '@/common/basic.js'
import { getDirectoryItemArray, getInventoryStatusName } from '@/common/directory.js'

2
src/pages/repleinsh/coms/comRepleinshRequestPopup.vue

@ -62,7 +62,7 @@
<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import { getBasicLocationByCode, getBasicItemByCode, getProductionlineItem, getWorkShopLineStation } from '@/api/request2.js'
import { getBasicItemByCode, getProductionlineItem, getWorkShopLineStation } from '@/api/request2.js'
import { getLocationTypeName, getListLocationTypeDesc, checkDirectoryItemExist } from '@/common/directory.js'
import uomCom from '@/mycomponents/qty/uom.vue'
import balanceStatus from '@/mycomponents/status/balanceStatus.vue'

2
src/pages/stockUp/job/stockUpJobDetail.vue

@ -45,7 +45,7 @@
<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
import { getStockUpJobDetail, getBasicLocationByCode, takeStockUpJob, cancleTakeStockUpJob, stockUpJobsubmit } from '@/api/request2.js'
import { getStockUpJobDetail, takeStockUpJob, cancleTakeStockUpJob, stockUpJobsubmit } from '@/api/request2.js'
import { calc } from '@/common/calc.js'

2
src/pages/transfer/job/issueDetail.vue

@ -40,7 +40,7 @@
import { ref, getCurrentInstance, nextTick } from 'vue'
import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
import { getManagementPrecisions } from '@/common/balance.js'
import { getTransferIssueJobDetail, getBasicLocationByCode, takeTransferIssueJob, cancleTakeTransferIssueJob, transferIssueJobSubmit } from '@/api/request2.js'
import { getTransferIssueJobDetail, takeTransferIssueJob, cancleTakeTransferIssueJob, transferIssueJobSubmit } from '@/api/request2.js'
import { goHome, navigateBack, getPackingNumberAndBatch, getInventoryStatusName, getDirectoryItemArray } from '@/common/basic.js'
import { getDataSource, createRecordInfo, calcHandleQty, getScanCount } from '@/common/detail.js'

2
src/pages/transfer/job/receiptDetail.vue

@ -43,7 +43,7 @@
<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
import { getTransferReceiptJobDetail, getBasicLocationByCode, cancleTakeTransferReceiptJob, takeTransferReceiptJob, transferReceiptJobSubmit } from '@/api/request2.js'
import { getTransferReceiptJobDetail, cancleTakeTransferReceiptJob, takeTransferReceiptJob, transferReceiptJobSubmit } from '@/api/request2.js'
import { goHome, navigateBack, getPackingNumberAndBatch, getInventoryStatusName, getDirectoryItemArray, compareAsc } from '@/common/basic.js'
import { getManagementPrecisions } from '@/common/balance.js'

12
src/pages/transfer/job/transferDetail.vue

@ -46,9 +46,7 @@
submitPurchaseReturnJob,
getInventoryMoveJobDetail,
} from '@/api/request.js';
import {
getBasicLocationByCode
} from '@/api/request2.js';
import {
calc
@ -494,14 +492,6 @@
return params;
},
getLocationInfo(locationCode) {
getBasicLocationByCode(locationCode).then(res => {
if (res.data.list.length > 0) {
this.toLocationInfo = res.data.list[0]
}
})
},
showMessage(message) {
this.$refs.comMessage.showMessage(message, res => {
if (res) {

Loading…
Cancel
Save