Browse Source

报废收货--主子表合并

master_hella_20240701
yufei0306 7 months ago
parent
commit
3f564710f4
  1. 6
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue
  2. 2
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRecordMain/index.vue
  3. 18
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue

6
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue

@ -257,11 +257,11 @@ const buttonTableClick = async (val, row) => {
} }
ProductreceiptJobMainApi.executeProductreceiptMain(aaa) ProductreceiptJobMainApi.executeProductreceiptMain(aaa)
} else if (val == 'mainJobAba') { // } else if (val == 'mainJobAba') { //
ProductreceiptJobMainApi.abandonProductreceiptMain(row.id) ProductreceiptJobMainApi.abandonProductreceiptMain(row.masterId)
} else if (val == 'mainJobClo') { // } else if (val == 'mainJobClo') { //
ProductreceiptJobMainApi.closeProductreceiptMain(row.id) ProductreceiptJobMainApi.closeProductreceiptMain(row.masterId)
} else if (val == 'mainJobAcc') { // } else if (val == 'mainJobAcc') { //
ProductreceiptJobMainApi.acceptProductreceiptMain(row.id) ProductreceiptJobMainApi.acceptProductreceiptMain(row.masterId)
} }
} }
// //

2
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRecordMain/index.vue

@ -221,7 +221,7 @@ const tableFormButton = async (val , row) => {
bomModelVisible.value = true bomModelVisible.value = true
DialogTitle.value = '物料代码【' + row.itemCode + '】——Bom信息' DialogTitle.value = '物料代码【' + row.itemCode + '】——Bom信息'
detatableDataBom.params = { detatableDataBom.params = {
masterId: row.id masterId: row.masterId
} }
await getDetailListBom() await getDetailListBom()
} }

18
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue

@ -294,7 +294,7 @@ const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // if (val == 'mainClose') { //
await message.confirm('确认要关闭吗?') await message.confirm('确认要关闭吗?')
tableObject.loading = true tableObject.loading = true
ProductreceiptRequestMainApi.close(row.id).then(() => { ProductreceiptRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false tableObject.loading = false
getList() getList()
@ -305,7 +305,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainReAdd') { // } else if (val == 'mainReAdd') { //
await message.confirm('确认要重新添加吗?') await message.confirm('确认要重新添加吗?')
tableObject.loading = true tableObject.loading = true
ProductreceiptRequestMainApi.reAdd(row.id).then(() => { ProductreceiptRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false tableObject.loading = false
getList() getList()
@ -316,7 +316,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainSubmit') { // } else if (val == 'mainSubmit') { //
await message.confirm('确认要提交审批吗?') await message.confirm('确认要提交审批吗?')
tableObject.loading = true tableObject.loading = true
ProductreceiptRequestMainApi.submit(row.id).then(() => { ProductreceiptRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false tableObject.loading = false
getList() getList()
@ -327,7 +327,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainTurnDown') { // } else if (val == 'mainTurnDown') { //
await message.confirm('确认要驳回吗?') await message.confirm('确认要驳回吗?')
tableObject.loading = true tableObject.loading = true
ProductreceiptRequestMainApi.refused(row.id).then(() => { ProductreceiptRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false tableObject.loading = false
getList() getList()
@ -338,7 +338,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainApprove') { // } else if (val == 'mainApprove') { //
await message.confirm('确认要审批通过吗?') await message.confirm('确认要审批通过吗?')
tableObject.loading = true tableObject.loading = true
ProductreceiptRequestMainApi.agree(row.id).then(() => { ProductreceiptRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false tableObject.loading = false
getList() getList()
@ -362,7 +362,7 @@ const buttonTableClick = async (val, row) => {
return return
} }
detatableData.params = { detatableData.params = {
masterId:row.id masterId:row.masterId
} }
await getDetailList() await getDetailList()
// //
@ -431,7 +431,7 @@ const buttonTableClick = async (val, row) => {
return return
} }
tableObject.loading = true tableObject.loading = true
ProductreceiptRequestMainApi.handle(row.id).then(() => { ProductreceiptRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false tableObject.loading = false
getList() getList()
@ -441,7 +441,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)
} else if (val == 'point') { // } else if (val == 'point') { //
handlePoint(row) handlePoint(row)
} }
@ -613,7 +613,7 @@ const tableFormButton = async (val , row) => {
bomModelVisible.value = true bomModelVisible.value = true
DialogTitle.value = '物料代码【' + row.itemCode + '】——Bom信息' DialogTitle.value = '物料代码【' + row.itemCode + '】——Bom信息'
detatableDataBom.params = { detatableDataBom.params = {
masterId: row.id masterId: row.masterId
} }
await getDetailListBom() await getDetailListBom()
} }

Loading…
Cancel
Save