Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

hella_online_20240829
wangyufei 5 months ago
parent
commit
4a3456ffd6
  1. 2
      src/views/qms/inspectionJob/addForm.vue
  2. 56
      src/views/wms/productionManage/productionplan/productionMain/index.vue
  3. 76
      src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue
  4. 76
      src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue
  5. 76
      src/views/wms/productionManage/productionplan/productionMainPredictSparePart/index.vue

2
src/views/qms/inspectionJob/addForm.vue

@ -465,7 +465,7 @@
<el-input <el-input
v-model="cur.remark" v-model="cur.remark"
placeholder="请输入备注" placeholder="请输入备注"
type="text" type="text" maxlength="200"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>

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

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

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

@ -329,29 +329,39 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.submit(row.masterId).then((res) => { await ProductionMainApi.submit(row.masterId).then((res) => {
if (res.status == '6') { if (res.status == '6') {
// //
tableObject.loading = true // tableObject.loading = true
ProductionMainApi.generatePreparetoissue(row.number).then(() => { ProductionMainApi.generatePreparetoissue(row.number).then(() => {
// message.success(t('common.createSuccess')) // message.success(t('common.createSuccess'))
// tableObject.loading = false
// getList()
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
}) })
}).catch(err => {
// tableObject.loading = false
console.log(err)
// //
tableObject.loading = true // tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
// message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
tableObject.loading = false tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
}) })
})
} }
message.success(t('common.updateSuccess')) // message.success(t('common.updateSuccess'))
tableObject.loading = false // tableObject.loading = false
getList() // getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
@ -395,24 +405,34 @@ const buttonTableClick = async (val, row) => {
}) })
// //
tableObject.loading = true tableObject.loading = true
await ProductionMainApi.generatePreparetoissue(row.number).then(() => { ProductionMainApi.generatePreparetoissue(row.number).then(() => {
// message.success(t('common.createSuccess')) // message.success(t('common.createSuccess'))
// tableObject.loading = false
// getList()
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
}) })
}).catch(err => {
// tableObject.loading = false
console.log(err)
// //
tableObject.loading = true // tableObject.loading = true
await ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
// message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
tableObject.loading = false tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
}) })
})
} }
}) })
if (!isAvailable) { if (!isAvailable) {
@ -579,8 +599,42 @@ const submitForm = async (formType, submitData) => {
try { try {
if (formType === 'create') { if (formType === 'create') {
data.subList = tableData.value // data.subList = tableData.value //
await ProductionMainApi.createProductionMain(data) 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')) 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 { } else {
await ProductionMainApi.updateProductionMain(data) await ProductionMainApi.updateProductionMain(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))

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

@ -328,29 +328,39 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.submit(row.masterId).then((res) => { await ProductionMainApi.submit(row.masterId).then((res) => {
if (res.status == '6') { if (res.status == '6') {
// //
tableObject.loading = true // tableObject.loading = true
ProductionMainApi.generatePreparetoissue(row.number).then(() => { ProductionMainApi.generatePreparetoissue(row.number).then(() => {
// message.success(t('common.createSuccess')) // message.success(t('common.createSuccess'))
// tableObject.loading = false
// getList()
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
}) })
}).catch(err => {
// tableObject.loading = false
console.log(err)
// //
tableObject.loading = true // tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
// message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
tableObject.loading = false tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
}) })
})
} }
message.success(t('common.updateSuccess')) // message.success(t('common.updateSuccess'))
tableObject.loading = false // tableObject.loading = false
getList() // getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
@ -394,24 +404,34 @@ const buttonTableClick = async (val, row) => {
}) })
// //
tableObject.loading = true tableObject.loading = true
await ProductionMainApi.generatePreparetoissue(row.number).then(() => { ProductionMainApi.generatePreparetoissue(row.number).then(() => {
// message.success(t('common.createSuccess')) // message.success(t('common.createSuccess'))
// tableObject.loading = false
// getList()
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
}) })
}).catch(err => {
// tableObject.loading = false
console.log(err)
// //
tableObject.loading = true // tableObject.loading = true
await ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
// message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
tableObject.loading = false tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
}) })
})
} }
}) })
if (!isAvailable) { if (!isAvailable) {
@ -577,8 +597,42 @@ const submitForm = async (formType, submitData) => {
try { try {
if (formType === 'create') { if (formType === 'create') {
data.subList = tableData.value // data.subList = tableData.value //
await ProductionMainApi.createProductionMain(data) 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')) 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 { } else {
await ProductionMainApi.updateProductionMain(data) await ProductionMainApi.updateProductionMain(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))

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

@ -328,29 +328,39 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.submit(row.masterId).then((res) => { await ProductionMainApi.submit(row.masterId).then((res) => {
if (res.status == '6') { if (res.status == '6') {
// //
tableObject.loading = true // tableObject.loading = true
ProductionMainApi.generatePreparetoissue(row.number).then(() => { ProductionMainApi.generatePreparetoissue(row.number).then(() => {
// message.success(t('common.createSuccess')) // message.success(t('common.createSuccess'))
// tableObject.loading = false
// getList()
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
}) })
}).catch(err => {
// tableObject.loading = false
console.log(err)
// //
tableObject.loading = true // tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
// message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
tableObject.loading = false tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
}) })
})
} }
message.success(t('common.updateSuccess')) // message.success(t('common.updateSuccess'))
tableObject.loading = false // tableObject.loading = false
getList() // getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
@ -394,24 +404,34 @@ const buttonTableClick = async (val, row) => {
}) })
// //
tableObject.loading = true tableObject.loading = true
await ProductionMainApi.generatePreparetoissue(row.number).then(() => { ProductionMainApi.generatePreparetoissue(row.number).then(() => {
// message.success(t('common.createSuccess')) // message.success(t('common.createSuccess'))
// tableObject.loading = false
// getList()
//
// tableObject.loading = true
ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
}) })
}).catch(err => {
// tableObject.loading = false
console.log(err)
// //
tableObject.loading = true // tableObject.loading = true
await ProductionMainApi.generateProductreceiptRequest(row.number).then(() => { ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
// message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
tableObject.loading = false tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
}) })
})
} }
}) })
if (!isAvailable) { if (!isAvailable) {
@ -578,8 +598,42 @@ const submitForm = async (formType, submitData) => {
try { try {
if (formType === 'create') { if (formType === 'create') {
data.subList = tableData.value // data.subList = tableData.value //
await ProductionMainApi.createProductionMain(data) 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')) 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 { } else {
await ProductionMainApi.updateProductionMain(data) await ProductionMainApi.updateProductionMain(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))

Loading…
Cancel
Save