Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

master_hella_20240701
陈薪名 9 months ago
parent
commit
d720fa28b6
  1. 8
      src/api/wms/supplierdeliverRequestMain/index.ts
  2. 12
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

8
src/api/wms/supplierdeliverRequestMain/index.ts

@ -83,10 +83,18 @@ export const appSupplierdeliverRequestMain = async (id: number) => {
export const rejSupplierdeliverRequestMain = async (id: number) => { export const rejSupplierdeliverRequestMain = async (id: number) => {
return await request.post({ url: `/wms/supplierdeliver-request-main/rej?id=` + id }) return await request.post({ url: `/wms/supplierdeliver-request-main/rej?id=` + id })
} }
// 校验是否上传自检报告
export const selfCheckReport = async (id) => {
return await request.post({ url: `/wms/supplierdeliver-request-main/selfCheckReport?id=` + id })
}
// 生成标签 // 生成标签
export const genLabel = async (id) => { export const genLabel = async (id) => {
return await request.post({ url: `/wms/supplierdeliver-request-main/genLabel?id=` + id }) return await request.post({ url: `/wms/supplierdeliver-request-main/genLabel?id=` + id })
} }
// 生成记录 // 生成记录
export const genRecordsSupplierdeliverRequestMain = async (id) => { export const genRecordsSupplierdeliverRequestMain = async (id) => {
return await request.post({ url: `/wms/supplierdeliver-request-main/genRecords?id=` + id }) return await request.post({ url: `/wms/supplierdeliver-request-main/genRecords?id=` + id })

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

@ -543,7 +543,17 @@ const genLabelId = ref()
// //
const pointRef = ref() const pointRef = ref()
const handlePoint = async (row) => { const handlePoint = async (row) => {
pointRef.value.openPoint(row.id) await SupplierdeliverRequestMainApi.selfCheckReport(row.id).then(res => {
console.log(row.id)
if(!res){
message.warning("请先上传自检报告!")
return
}else{
pointRef.value.openPoint(row.id)
}
}).catch(err => {
console.log("自检报告校验异常",err)
})
} }
// //
const labelPrint = async (row) => { const labelPrint = async (row) => {

Loading…
Cancel
Save