Browse Source

编辑预生产计划无法保存,报错“生产计划主不存在”

master_hella_20240701
wangyufei 5 months ago
parent
commit
9ade868f1c
  1. 6
      src/views/wms/productionManage/productionplan/productionMain/index.vue
  2. 6
      src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue
  3. 6
      src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue
  4. 6
      src/views/wms/productionManage/productionplan/productionMainPredictSparePart/index.vue

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

@ -461,7 +461,11 @@ const tableSelectionDelete = (selection) => {
}
//
const submitForm = async (formType, data) => {
const submitForm = async (formType, submitData) => {
let data = {...submitData}
if(data.masterId){
data.id = data.masterId
}
if(tableData.value.find(item => (item.planQty <= 0))) {
message.warning('数量必须大于0')
formRef.value.formLoading = false

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

@ -448,7 +448,11 @@ const tableSelectionDelete = (selection) => {
}
//
const submitForm = async (formType, data) => {
const submitForm = async (formType, submitData) => {
let data = {...submitData}
if(data.masterId){
data.id = data.masterId
}
if(tableData.value.find(item => (item.planQty <= 0))) {
message.warning('数量必须大于0')
formRef.value.formLoading = false

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

@ -447,7 +447,11 @@ const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))
}
//
const submitForm = async (formType, data) => {
const submitForm = async (formType, submitData) => {
let data = {...submitData}
if(data.masterId){
data.id = data.masterId
}
if(tableData.value.find(item => (item.planQty <= 0))) {
message.warning('数量必须大于0')
formRef.value.formLoading = false

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

@ -448,7 +448,11 @@ const tableSelectionDelete = (selection) => {
}
//
const submitForm = async (formType, data) => {
const submitForm = async (formType, submitData) => {
let data = {...submitData}
if(data.masterId){
data.id = data.masterId
}
if(tableData.value.find(item => (item.planQty <= 0))) {
message.warning('数量必须大于0')
formRef.value.formLoading = false

Loading…
Cancel
Save