Browse Source

生产计划修改

hella_online_20240829
陈薪名 5 months ago
parent
commit
26e2791a01
  1. 120
      src/views/wms/productionManage/productionplan/productionMain/index.vue
  2. 120
      src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue
  3. 120
      src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue
  4. 120
      src/views/wms/productionManage/productionplan/productionMainPredictSparePart/index.vue

120
src/views/wms/productionManage/productionplan/productionMain/index.vue

@ -332,29 +332,39 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.submit(row.masterId).then((res) => {
if (res.status == '6') {
//
tableObject.loading = true
// tableObject.loading = true
ProductionMainApi.generatePreparetoissue(row.number).then(() => {
// message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
//
tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
// message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
// tableObject.loading = false
// getList()
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
}).catch(err => {
tableObject.loading = false
// tableObject.loading = false
console.log(err)
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
})
}
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
// message.success(t('common.updateSuccess'))
// tableObject.loading = false
// getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -398,23 +408,33 @@ const buttonTableClick = async (val, row) => {
})
//
tableObject.loading = true
await ProductionMainApi.generatePreparetoissue(row.number).then(() => {
// message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
//
tableObject.loading = true
await ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
ProductionMainApi.generatePreparetoissue(row.number).then(() => {
// message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
// tableObject.loading = false
// getList()
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
}).catch(err => {
tableObject.loading = false
// tableObject.loading = false
console.log(err)
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
})
}
})
@ -590,25 +610,35 @@ const submitForm = async (formType, submitData) => {
tableObject.loading = true
ProductionMainApi.generatePreparetoissue(res.number).then(() => {
// message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
//
tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(res.number).then(() => {
// message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
// tableObject.loading = false
// getList()
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(res.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
}).catch(err => {
tableObject.loading = false
// tableObject.loading = false
console.log(err)
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(res.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
})
}
})
message.success(t('common.createSuccess'))
// message.success(t('common.createSuccess'))
} else {
await ProductionMainApi.updateProductionMain(data)
message.success(t('common.updateSuccess'))

120
src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue

@ -324,29 +324,39 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.submit(row.masterId).then((res) => {
if (res.status == '6') {
//
tableObject.loading = true
// tableObject.loading = true
ProductionMainApi.generatePreparetoissue(row.number).then(() => {
// message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
//
tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
// message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
// tableObject.loading = false
// getList()
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
}).catch(err => {
tableObject.loading = false
// tableObject.loading = false
console.log(err)
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
})
}
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
// message.success(t('common.updateSuccess'))
// tableObject.loading = false
// getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -390,23 +400,33 @@ const buttonTableClick = async (val, row) => {
})
//
tableObject.loading = true
await ProductionMainApi.generatePreparetoissue(row.number).then(() => {
// message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
//
tableObject.loading = true
await ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
ProductionMainApi.generatePreparetoissue(row.number).then(() => {
// message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
// tableObject.loading = false
// getList()
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
}).catch(err => {
tableObject.loading = false
// tableObject.loading = false
console.log(err)
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
})
}
})
@ -574,8 +594,42 @@ const submitForm = async (formType, submitData) => {
try {
if (formType === 'create') {
data.subList = tableData.value //
await ProductionMainApi.createProductionMain(data)
message.success(t('common.createSuccess'))
await ProductionMainApi.createProductionMain(data).then((res) => {
// console.log(565,res)
if (res.status == '6') {
//
tableObject.loading = true
ProductionMainApi.generatePreparetoissue(res.number).then(() => {
// message.success(t('common.createSuccess'))
// tableObject.loading = false
// getList()
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(res.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
}).catch(err => {
// tableObject.loading = false
console.log(err)
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(res.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
})
}
})
// message.success(t('common.createSuccess'))
} else {
await ProductionMainApi.updateProductionMain(data)
message.success(t('common.updateSuccess'))

120
src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue

@ -324,29 +324,39 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.submit(row.masterId).then((res) => {
if (res.status == '6') {
//
tableObject.loading = true
// tableObject.loading = true
ProductionMainApi.generatePreparetoissue(row.number).then(() => {
// message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
//
tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
// message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
// tableObject.loading = false
// getList()
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
}).catch(err => {
tableObject.loading = false
// tableObject.loading = false
console.log(err)
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
})
}
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
// message.success(t('common.updateSuccess'))
// tableObject.loading = false
// getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -390,23 +400,33 @@ const buttonTableClick = async (val, row) => {
})
//
tableObject.loading = true
await ProductionMainApi.generatePreparetoissue(row.number).then(() => {
// message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
//
tableObject.loading = true
await ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
ProductionMainApi.generatePreparetoissue(row.number).then(() => {
// message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
// tableObject.loading = false
// getList()
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
}).catch(err => {
tableObject.loading = false
// tableObject.loading = false
console.log(err)
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
})
}
})
@ -573,8 +593,42 @@ const submitForm = async (formType, submitData) => {
try {
if (formType === 'create') {
data.subList = tableData.value //
await ProductionMainApi.createProductionMain(data)
message.success(t('common.createSuccess'))
await ProductionMainApi.createProductionMain(data).then((res) => {
// console.log(565,res)
if (res.status == '6') {
//
tableObject.loading = true
ProductionMainApi.generatePreparetoissue(res.number).then(() => {
// message.success(t('common.createSuccess'))
// tableObject.loading = false
// getList()
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(res.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
}).catch(err => {
// tableObject.loading = false
console.log(err)
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(res.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
})
}
})
// message.success(t('common.createSuccess'))
} else {
await ProductionMainApi.updateProductionMain(data)
message.success(t('common.updateSuccess'))

120
src/views/wms/productionManage/productionplan/productionMainPredictSparePart/index.vue

@ -324,29 +324,39 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.submit(row.masterId).then((res) => {
if (res.status == '6') {
//
tableObject.loading = true
// tableObject.loading = true
ProductionMainApi.generatePreparetoissue(row.number).then(() => {
// message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
//
tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
// message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
// tableObject.loading = false
// getList()
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
}).catch(err => {
tableObject.loading = false
// tableObject.loading = false
console.log(err)
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
})
}
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
// message.success(t('common.updateSuccess'))
// tableObject.loading = false
// getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -390,23 +400,33 @@ const buttonTableClick = async (val, row) => {
})
//
tableObject.loading = true
await ProductionMainApi.generatePreparetoissue(row.number).then(() => {
// message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
//
tableObject.loading = true
await ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
ProductionMainApi.generatePreparetoissue(row.number).then(() => {
// message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
// tableObject.loading = false
// getList()
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
}).catch(err => {
tableObject.loading = false
// tableObject.loading = false
console.log(err)
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
})
}
})
@ -574,8 +594,42 @@ const submitForm = async (formType, submitData) => {
try {
if (formType === 'create') {
data.subList = tableData.value //
await ProductionMainApi.createProductionMain(data)
message.success(t('common.createSuccess'))
await ProductionMainApi.createProductionMain(data).then((res) => {
// console.log(565,res)
if (res.status == '6') {
//
tableObject.loading = true
ProductionMainApi.generatePreparetoissue(res.number).then(() => {
// message.success(t('common.createSuccess'))
// tableObject.loading = false
// getList()
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(res.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
}).catch(err => {
// tableObject.loading = false
console.log(err)
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(res.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
})
}
})
// message.success(t('common.createSuccess'))
} else {
await ProductionMainApi.updateProductionMain(data)
message.success(t('common.updateSuccess'))

Loading…
Cancel
Save