Browse Source

库存转移按批次提示问题

intex_online20241228
张立 2 months ago
parent
commit
e3d71cf5a4
  1. 7
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue
  2. 9
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

7
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue

@ -339,6 +339,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
locationCode: val[0][searchField]
}).then((res) => {
toManagementPrecision.value = res[0].ManagementPrecision
row.toManagementPrecision = toManagementPrecision.value
})
if (toManagementPrecision.value == 'BY_BATCH') {
if(row['fromBatch']==''){
@ -704,10 +705,10 @@ const submitForm = async (formType, submitData) => {
message.warning('从库位和到库位不能相同')
return
}
let batchList = tableData.value.filter(item=>item.toBatchFormItemType&&item.toBatchFormItemType == 'FormDate')
let noBatch = batchList.some(item => !item.toBatch)
let batchList = tableData.value.filter(item=>item.fromBatchFormItemType&&item.fromBatchFormItemType == 'FormDate' && item.toManagementPrecision == 'BY_BATCH')
let noBatch = batchList.find(item => !item.fromBatch)
if(noBatch){
message.warning('请选择到批次')
message.warning(`${noBatch.itemCode}没有填写批次,请填写`)
return
}
data.subList = tableData.value //

9
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -1079,15 +1079,15 @@ const genRecords = async (id: number) => {
})
//
SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id)
.then((res) => {
.then(async (res) => {
console.log('res',res)
message.success(t('ts.处理成功!'))
//
getList()
await getList()
getLoading?.close()
//
handleDocumentPrint(res,id)
await handleDocumentPrint(res,id)
})
.catch((err) => {
getLoading?.close()
@ -1243,7 +1243,8 @@ const print = async () => {
const documentSrc = ref(BASE_URL + '/jmreport/view/1019060741381099520?token=' + getAccessToken())
//
const documentSrc2 = ref(BASE_URL + '/jmreport/view/1019406772438372352?token=' + getAccessToken())
const handleDocumentPrint = async (id,stausId) => {
const handleDocumentPrint = async (id, stausId) => {
debugger
await SupplierdeliverRequestMainApi.getItemStatus(stausId).then(async (res) => {
if (res) {
//

Loading…
Cancel
Save