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

Loading…
Cancel
Save