Browse Source

供应商发货申请去掉箱规格和箱规格数量

intex_online20241111
zhang_li 2 weeks ago
parent
commit
c164f150bb
  1. 30
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

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

@ -271,9 +271,6 @@ const planArriveTimeStr = ref()
//
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
nextTick(() => {
console.log('type:', type)
console.log('formField:', formField)
console.log(formField, searchField, val, formRef, type, row)
if (type == 'tableForm') {
//
// row[formField] = val[0][searchField]
@ -333,7 +330,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
}
//
const onEnter = async (field, value) => {
console.log(field, value)
formRef.value.opensearchTable(
'supplierCode',
'code',
@ -402,8 +398,6 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef) => {
//
const searchTableSuccessLabel = (formField, searchField, val, formRef, type, row) => {
nextTick(() => {
console.log('formField:', formField)
console.log('val:', val)
if (type == 'tableForm') {
//
row[formField] = val[0][searchField]
@ -656,7 +650,6 @@ const buttonTableClick = async (val, row) => {
tableObject.loading = false
}
} else if (val == 'ressbq') {
console.log('重新生成标签')
// ElMessageBox.confirm(`<div style="color:red">
//
// </div>`,'',{
@ -696,7 +689,6 @@ const buttonTableClick = async (val, row) => {
}
})
.catch(() => {
console.info('操作取消')
tableObject.loading = false
})
} else if (val == 'point') {
@ -722,6 +714,7 @@ const getGenerateLabelList = async (row) => {
}
await SupplierdeliverRequestDetailApi.getGenerateLabelList(params1).then((res) => {
detatableData1.value = res
console.log(999,detatableData1.value)
detatableData1.value.forEach((item) => {
item.boxPackaging = item.boxPackaging ? item.boxPackaging : []
item.packUnitInitOptions = item.boxPackaging
@ -730,6 +723,9 @@ const getGenerateLabelList = async (row) => {
if (obj) {
item.packUnit = obj.packUnit
item.packQty = obj.packQty
} else {
item.packUnit = ''
item.packQty = ''
}
//
item.secondPackUnit = obj?.parentPackUnit
@ -938,16 +934,13 @@ const handleAddQualityReport = () => {
tableFormKeys[item.field] = item.default ? item.default : ''
})
uploadQualityReportTableData.value.push(tableFormKeys)
console.log('handleAddQualityReport')
}
const handleDeleteQualityReport = (row, index) => {
uploadQualityReportTableData.value.splice(index, 1)
console.log('handleDeleteQualityReport', row)
}
/** 上传质量报告 */
const handleUploadQualityReport = async (row) => {
console.log('SupplierdeliverInspectionDetail', SupplierdeliverInspectionDetail.allSchemas)
const uploadFile = SupplierdeliverInspectionDetail.allSchemas.formSchema.find(
(item) => item.field == 'uploadFile'
)
@ -969,7 +962,6 @@ const handleUploadQualityReport = async (row) => {
await SupplierdeliverInspectionDetailApi.getSupplierdeliverDetailInfo(row.masterId).then(
(res) => {
if (res) {
// console.log(":",res)
uploadQualityReportTableData.value = res
}
}
@ -1059,17 +1051,14 @@ const genRecords = async (id: number) => {
SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id)
.then((res) => {
message.success(t('ts.处理成功!'))
console.log('resresresresres', res)
//
getList()
console.log('刷新列表')
getLoading?.close()
//
handleDocumentPrint(res)
})
.catch((err) => {
console.log('发起处理', err)
getLoading?.close()
})
@ -1094,23 +1083,19 @@ const genRecords = async (id: number) => {
// SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id)
// .then((res) => {
// message.success(t('ts.!'))
// console.log('resresresresres', res)
// //
// getList()
// console.log('')
// getLoading?.close()
// //
// handleDocumentPrint(res)
// })
// .catch((err) => {
// console.log('', err)
// getLoading?.close()
// })
// }
// })
// .catch((err) => {
// console.log('', err)
// getLoading?.close()
// })
// }
@ -1199,7 +1184,6 @@ const printAllClick = () => {}
// --
const searchTableSuccess1 = async (formField, searchField, val, formRef, type, row) => {
console.log('批量打印', val)
// let rows:any = []
// val.forEach(item=>{
// rows = [...rows,...item.selectionRows.map(item1=>item1.number)]
@ -1212,11 +1196,9 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r
await PackageApi.batchPrintingLable(val.map((item1) => item1.number).join(','))
.then((res) => {
console.log(res)
window.open(src.value + '&asn_number=' + res)
})
.catch((err) => {
console.log(err)
message.error(t('ts.创建标签失败'))
})
}
@ -1259,7 +1241,6 @@ const submitForm = async (formType, submitData) => {
}
data.subList = tableData.value //
let isHave = data.subList.some((item) => {
console.log('CCCCC', item.expireDate)
if (item.expireDate != null) {
item.produceDate > item.expireDate
}
@ -1277,12 +1258,10 @@ const submitForm = async (formType, submitData) => {
await message
.confirm(`${t('ts.计划到货时间大于')}${planArriveTimeStr.value}${t('ts.是否继续?')}`)
.then(() => {
console.log('选择了OK')
//OK
})
.catch(() => {
//
console.log('选择了cancel')
confirmFlag = true
formRef.value.formLoading = false
return
@ -1351,7 +1330,6 @@ const getDefaultSupplier = async () => {
} else {
defaultSupplierCode.value = ''
}
console.log('defaultSupplierCode', defaultSupplierCode)
}
/** 初始化 **/

Loading…
Cancel
Save