Browse Source

更换主表id为masterId

master_hella_20240701
yufei0306 1 year ago
parent
commit
006420ca6b
  1. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue
  2. 16
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  3. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue
  4. 22
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
  5. 4
      src/views/wms/supplierManage/supplierinvoiceInvoiced/index.vue

2
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue

@ -218,7 +218,7 @@ const buttonTableClick = async (val, row) => {
} 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)
} }
} }

16
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -289,23 +289,23 @@ const getSearchTableData = async (number,formField,searchField)=>{
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainPurPlanOpe') { // if (val == 'mainPurPlanOpe') { //
handleOpen(row.id) handleOpen(row.masterId)
} else if (val == 'mainPurPlanClo') {// } else if (val == 'mainPurPlanClo') {//
handleClose(row.id) handleClose(row.masterId)
} else if (val == 'mainPurPlanPub') { // } else if (val == 'mainPurPlanPub') { //
handlePublish(row.id) handlePublish(row.masterId)
} else if (val == 'mainPurPlanAcc') { // } else if (val == 'mainPurPlanAcc') { //
handleAcc(row.id) handleAcc(row.masterId)
} else if (val == 'mainPurPlanRej') { // } else if (val == 'mainPurPlanRej') { //
handleRej(row.id) handleRej(row.masterId)
} else if (val == 'mainPurPlanWit') { // } else if (val == 'mainPurPlanWit') { //
handleWit(row.id) handleWit(row.masterId)
} else if(val == 'mainPurPlanMod'){ // } else if(val == 'mainPurPlanMod'){ //
handleReOpen(row.id) handleReOpen(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)
} }
} }

2
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue

@ -157,7 +157,7 @@ const buttonTableClick = async (val, row) => {
handlerCreatePurchasereceiptRequest(row.number) handlerCreatePurchasereceiptRequest(row.number)
}else if (val == 'documentPrint') { }else if (val == 'documentPrint') {
// //
handleDocumentPrint(row.id) handleDocumentPrint(row.masterId)
} }
} }

22
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -329,27 +329,27 @@ const handleImport = () => {
// - // -
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 == 'mainPlanSub') { // } else if (val == 'mainPlanSub') { //
handleSub(row.id) handleSub(row.masterId)
} else if (val == 'purchase_mainPlanSub') { // } else if (val == 'purchase_mainPlanSub') { //
handleApp(row.id) handleApp(row.masterId)
} else if (val == 'purchase_mainPlanTur') { // } else if (val == 'purchase_mainPlanTur') { //
handleTur(row.id) handleTur(row.masterId)
} else if (val == 'invoice_sent_out') { // } else if (val == 'invoice_sent_out') { //
handleInvoiceSentOut(row.id) handleInvoiceSentOut(row.masterId)
} else if(val == 'finance_mainPlanSub'){ // } else if(val == 'finance_mainPlanSub'){ //
handleFinanceApp(row.id) handleFinanceApp(row.masterId)
} else if(val == 'finance_mainPlanTur'){ // } else if(val == 'finance_mainPlanTur'){ //
handleFinaceTur(row.id) handleFinaceTur(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)
} }
} }
@ -368,7 +368,7 @@ const handleImport = () => {
const openDetail = (row : any, titleName : any, titleValue : any) => { const openDetail = (row : any, titleName : any, titleValue : any) => {
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
clicKRowId.value = row.id clicKRowId.value = row.masterId
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue)
} }

4
src/views/wms/supplierManage/supplierinvoiceInvoiced/index.vue

@ -171,9 +171,9 @@ const buttonTableClick = async (val, row) => {
if (val == 'edit') { // 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 == 'agree'){ } else if(val == 'agree'){
handleAgree(row.id) handleAgree(row.masterId)
} }
} }

Loading…
Cancel
Save