Browse Source

装配计划 获取开关数据 创建提交审批发布

hella_online_20240829
陈薪名 3 months ago
parent
commit
09a78a306f
  1. 1
      src/views/wms/productionManage/productionplan/productionMain/index.vue
  2. 14
      src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue

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

@ -465,7 +465,6 @@ const getSwitch = async ()=>{
const autoCreatePlanRequest = async (row)=>{
//
try {
if(planSwitch.value) {
// /generatePreparetoissue?number
let PreparetoissueRes = await ProductionMainApi.generatePreparetoissue(row.number)

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

@ -331,6 +331,8 @@ const buttonTableClick = async (val, row) => {
console.log(err)
})
} else if (val == 'mainPlanSub') { //
//
await getSwitch()
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
await message.confirm('确认要提交审批吗?')
tableObject.loading = true
@ -384,6 +386,8 @@ const buttonTableClick = async (val, row) => {
})
//
tableObject.loading = true
//
await getSwitch()
autoCreatePlanRequest(row)
}
})
@ -541,10 +545,12 @@ const tableSelectionDelete = (selection) => {
//
const submitForm = async (formType, submitData) => {
let data = {...submitData}
if(data.masterId){
data.id = data.masterId
}
//
getSwitch()
let data = {...submitData}
if(data.masterId){
data.id = data.masterId
}
if(tableData.value.find(item => (item.planQty <= 0))) {
message.warning('数量必须大于0')
return

Loading…
Cancel
Save