Browse Source

库存转移按批次提示问题

intex_online20241228
张立 2 months ago
parent
commit
e3d71cf5a4
  1. 7
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue
  2. 7
      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] locationCode: val[0][searchField]
}).then((res) => { }).then((res) => {
toManagementPrecision.value = res[0].ManagementPrecision toManagementPrecision.value = res[0].ManagementPrecision
row.toManagementPrecision = toManagementPrecision.value
}) })
if (toManagementPrecision.value == 'BY_BATCH') { if (toManagementPrecision.value == 'BY_BATCH') {
if(row['fromBatch']==''){ if(row['fromBatch']==''){
@ -704,10 +705,10 @@ const submitForm = async (formType, submitData) => {
message.warning('从库位和到库位不能相同') message.warning('从库位和到库位不能相同')
return return
} }
let batchList = tableData.value.filter(item=>item.toBatchFormItemType&&item.toBatchFormItemType == 'FormDate') let batchList = tableData.value.filter(item=>item.fromBatchFormItemType&&item.fromBatchFormItemType == 'FormDate' && item.toManagementPrecision == 'BY_BATCH')
let noBatch = batchList.some(item => !item.toBatch) let noBatch = batchList.find(item => !item.fromBatch)
if(noBatch){ if(noBatch){
message.warning('请选择到批次') message.warning(`${noBatch.itemCode}没有填写批次,请填写`)
return return
} }
data.subList = tableData.value // data.subList = tableData.value //

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

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

Loading…
Cancel
Save