|
@ -65,6 +65,29 @@ |
|
|
:detailButtonIsShowEdit="true" |
|
|
:detailButtonIsShowEdit="true" |
|
|
:detailButtonIsShowAdd="true" |
|
|
:detailButtonIsShowAdd="true" |
|
|
@searchTableSuccessDetail="searchTableSuccess" |
|
|
@searchTableSuccessDetail="searchTableSuccess" |
|
|
|
|
|
:otherHeadButttonData = "[{ |
|
|
|
|
|
label: '全部拆解', |
|
|
|
|
|
name: 'splitAll', |
|
|
|
|
|
hide: false, |
|
|
|
|
|
type: 'primary', |
|
|
|
|
|
// icon: 'ep:operation', |
|
|
|
|
|
color: '', |
|
|
|
|
|
float:'left', |
|
|
|
|
|
hasPermi: '' |
|
|
|
|
|
}]" |
|
|
|
|
|
:buttondataTable = "[{ |
|
|
|
|
|
label: '拆解', |
|
|
|
|
|
name: 'split', |
|
|
|
|
|
hide: false, |
|
|
|
|
|
type: 'primary', |
|
|
|
|
|
// icon: 'ep:operation', |
|
|
|
|
|
color: '', |
|
|
|
|
|
float:'left', |
|
|
|
|
|
link: true, // 文本展现按钮 |
|
|
|
|
|
hasPermi: '' |
|
|
|
|
|
}]" |
|
|
|
|
|
@buttonBaseClick="detailButtonBaseClick" |
|
|
|
|
|
@buttondataTable="detailButtonBaseClick" |
|
|
/> |
|
|
/> |
|
|
<!-- 导入 --> |
|
|
<!-- 导入 --> |
|
|
<ImportForm ref="importFormRef" url="/plan/mes-order-month-main/import" |
|
|
<ImportForm ref="importFormRef" url="/plan/mes-order-month-main/import" |
|
@ -83,7 +106,7 @@ import { |
|
|
MesOrderMonthSubRules |
|
|
MesOrderMonthSubRules |
|
|
} from "@/views/mes/ordermonthplan/mesOrderMonthSub.data"; |
|
|
} from "@/views/mes/ordermonthplan/mesOrderMonthSub.data"; |
|
|
import * as OrderDayApi from "@/api/mes/orderDay"; |
|
|
import * as OrderDayApi from "@/api/mes/orderDay"; |
|
|
import {MesOrderMonthSubVO} from "@/api/mes/ordermonthplan"; |
|
|
import {breakdown, MesOrderMonthSubVO} from "@/api/mes/ordermonthplan"; |
|
|
|
|
|
|
|
|
defineOptions({ name: 'MesOrderMonthMain' }) |
|
|
defineOptions({ name: 'MesOrderMonthMain' }) |
|
|
|
|
|
|
|
@ -188,7 +211,9 @@ const formsSuccess = async (formType,data) => { |
|
|
|
|
|
|
|
|
/** 详情操作 */ |
|
|
/** 详情操作 */ |
|
|
const detailRef = ref() |
|
|
const detailRef = ref() |
|
|
|
|
|
let mainPlanId |
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
|
|
|
mainPlanId = row.id |
|
|
detailRef.value.openDetail(row, titleName, titleValue, 'basicMesOrderMonthMain') |
|
|
detailRef.value.openDetail(row, titleName, titleValue, 'basicMesOrderMonthMain') |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -287,4 +312,21 @@ const updateMesOrderMonthSub = async (data: MesOrderMonthSubVO) => { |
|
|
data.productName = productName |
|
|
data.productName = productName |
|
|
return await MesOrderMonthApi.updateMesOrderMonthSub(data) |
|
|
return await MesOrderMonthApi.updateMesOrderMonthSub(data) |
|
|
} |
|
|
} |
|
|
|
|
|
// 详情--头部按钮事件 |
|
|
|
|
|
const detailButtonBaseClick = async (val, item) => { |
|
|
|
|
|
debugger |
|
|
|
|
|
try { |
|
|
|
|
|
// 二次确认 |
|
|
|
|
|
await message.confirm('确定要拆解成日计划吗?') |
|
|
|
|
|
// 发起删除 |
|
|
|
|
|
await MesOrderMonthApi.breakdown({ |
|
|
|
|
|
id : item.id, |
|
|
|
|
|
planMasterId: mainPlanId |
|
|
|
|
|
}) |
|
|
|
|
|
message.success(t('common.delSuccess')) |
|
|
|
|
|
// 刷新列表 |
|
|
|
|
|
await getList() |
|
|
|
|
|
} catch { |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
</script> |
|
|
</script> |
|
|