Browse Source

更换主表id为masterId

master_hella_20240701
yufei0306 7 months ago
parent
commit
e9c3080314
  1. 16
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue
  2. 27
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

16
src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue

@ -275,25 +275,25 @@ const butttondata = (row) => {
// -
const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { //
handleClose(row.id)
handleClose(row.masterId)
} else if (val == 'mainReAdd') { //
handleReAdd(row.id)
handleReAdd(row.masterId)
} else if (val == 'mainSubmit') { //
handleSubmit(row.id)
handleSubmit(row.masterId)
} else if (val == 'mainTurnDown') { //
handleRefused(row.id)
handleRefused(row.masterId)
} else if (val == 'mainApprove') { //
handleAgree(row.id)
handleAgree(row.masterId)
} else if (val == 'mainHandle') { //
handleHandle(row.id)
handleHandle(row.masterId)
} else if (val == 'edit') { //
openForm('update', row)
} else if(val == 'ssbq'){ //
//
detatableData.params = {
masterId:row.id
masterId:row.masterId
}
genLabelId.value = row.id
genLabelId.value = row.masterId
await getDetailList()
formLabelRef.value.open('create', row, null,'createLabel')// createLabel
}else if (val == 'point') {

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

@ -444,42 +444,42 @@ const butttondata = (row) => {
const buttonTableClick = async (val, row) => {
if (val == 'mainPurPlanOpe') {
//
handleOpe(row.id)
handleOpe(row.masterId)
} else if (val == 'mainPurPlanClo') {
//
handleClo(row.id)
handleClo(row.masterId)
} else if (val == 'mainPlanUploadQualityReport') {
//
handleUploadQualityReport(row)
} else if (val == 'mainPlanSub') {
//
handleSub(row.id)
handleSub(row.masterId)
} else if (val == 'mainPlanApp') {
//
handleApp(row.id)
handleApp(row.masterId)
} else if (val == 'mainPlanTur') {
//
handleTur(row.id)
handleTur(row.masterId)
} else if (val == 'genRecords') {
//
genRecords(row.id)
genRecords(row.masterId)
} else if (val == 'edit') {
//
openForm('update', row)
} else if (val == 'delete') {
//
handleDelete(row.id)
handleDelete(row.masterId)
} else if (val == 'ssbq') {
await SupplierdeliverRequestMainApi.selfCheckReport(row.id).then(async (res) => {
await SupplierdeliverRequestMainApi.selfCheckReport(row.masterId).then(async (res) => {
if(!res){
message.warning("请先上传自检报告!")
return
}else{
//
detatableData.params = {
masterId:row.id
masterId:row.masterId
}
genLabelId.value = row.id
genLabelId.value = row.masterId
await getDetailList()
formLabelRef.value.open('create', row, null,'createLabel')// createLabel
}
@ -491,7 +491,7 @@ const buttonTableClick = async (val, row) => {
labelPrint(row)
} else if (val == 'documentPrint') {
//
handleDocumentPrint(row.id)
handleDocumentPrint(row.masterId)
}
}
@ -598,9 +598,9 @@ const handleUploadQualityReport = async (row) => {
console.log('SupplierdeliverInspectionDetail',SupplierdeliverInspectionDetail.allSchemas)
const uploadFile = SupplierdeliverInspectionDetail.allSchemas.formSchema.find(item=>item.field=='uploadFile')
if(uploadFile){
uploadFile['componentProps']['upData']['tableId'] = row.id
uploadFile['componentProps']['upData']['tableId'] = row.masterId
}
ploadQualityReportRef.value.open('create', null, {masterId:row.id},'上传质量报告')// createLabel
ploadQualityReportRef.value.open('create', null, {masterId:row.masterId},'上传质量报告')// createLabel
const tableFormKeys = {}
SupplierdeliverInspectionDetail.allSchemas.tableFormColumns.forEach((item) => {
tableFormKeys[item.field] = item.default ? item.default : ''
@ -736,6 +736,7 @@ const submitFormLabel = async (formType, data) => {
await SupplierdeliverRequestMainApi.genLabel(data)
isCreateLabel.value = true
message.success('创建标签成功')
getList()
} finally {
formLabelRef.value.formLoading = false
formLabelRef.value.dialogVisible = false

Loading…
Cancel
Save