|
@ -61,6 +61,7 @@ |
|
|
:apiUpdate="WorkSchedulingDetailApi.updateWorkSchedulingDetail" |
|
|
:apiUpdate="WorkSchedulingDetailApi.updateWorkSchedulingDetail" |
|
|
:apiDelete="WorkSchedulingDetailApi.deleteWorkSchedulingDetail" |
|
|
:apiDelete="WorkSchedulingDetailApi.deleteWorkSchedulingDetail" |
|
|
:detailButtonIsShowAdd="false" |
|
|
:detailButtonIsShowAdd="false" |
|
|
|
|
|
:buttondataTable="buttondataTable" |
|
|
:detailButtonIsShowEdit="false" |
|
|
:detailButtonIsShowEdit="false" |
|
|
:detailButtonIsShowDelete="false" |
|
|
:detailButtonIsShowDelete="false" |
|
|
@handleMainFefresh="handleMainFefresh" |
|
|
@handleMainFefresh="handleMainFefresh" |
|
@ -85,6 +86,7 @@ import Detail from './components/Detail.vue' |
|
|
import Report from './components/report.vue' |
|
|
import Report from './components/report.vue' |
|
|
import Finish from './components/finish.vue' |
|
|
import Finish from './components/finish.vue' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
defineOptions({ name: 'MesWorkScheduling' }) |
|
|
defineOptions({ name: 'MesWorkScheduling' }) |
|
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
const message = useMessage() // 消息弹窗 |
|
@ -94,7 +96,21 @@ const route = useRoute() // 路由信息 |
|
|
const routeName = ref() |
|
|
const routeName = ref() |
|
|
routeName.value = route.name |
|
|
routeName.value = route.name |
|
|
const tableColumns = ref(WorkScheduling.allSchemas.tableColumns) |
|
|
const tableColumns = ref(WorkScheduling.allSchemas.tableColumns) |
|
|
|
|
|
// 详情 table 操作扩展 按钮 |
|
|
|
|
|
const buttondataTable = ref([{ |
|
|
|
|
|
label: '完工', |
|
|
|
|
|
name: 'pfinished', |
|
|
|
|
|
hide: false, |
|
|
|
|
|
type: 'primary', |
|
|
|
|
|
icon: '', |
|
|
|
|
|
color: '', |
|
|
|
|
|
hasPermi: '', |
|
|
|
|
|
link: true, // 文本展现按钮 |
|
|
|
|
|
}]) |
|
|
|
|
|
// 查看 Bom 按钮回调事件 |
|
|
|
|
|
const tableFormButton = async (val , row) => { |
|
|
|
|
|
getList() |
|
|
|
|
|
} |
|
|
// 查询页面返回 |
|
|
// 查询页面返回 |
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
@ -174,10 +190,11 @@ const butttondata=(row) =>{ return [ |
|
|
defaultButtons.mainListHandleBtn({label:"终止",name:'terminate',hide: isShowMainButton(row,['-1','0']),hasPermi:'mes:workScheduling:update'}), // |
|
|
defaultButtons.mainListHandleBtn({label:"终止",name:'terminate',hide: isShowMainButton(row,['-1','0']),hasPermi:'mes:workScheduling:update'}), // |
|
|
defaultButtons.mainListHandleBtn({label:"暂停",name:'pause',hide: isShowMainButton(row,['1']),hasPermi:'mes:workScheduling:update'}), |
|
|
defaultButtons.mainListHandleBtn({label:"暂停",name:'pause',hide: isShowMainButton(row,['1']),hasPermi:'mes:workScheduling:update'}), |
|
|
defaultButtons.mainListHandleBtn({label:"恢复",name:'resume',hide: isShowMainButton(row,['3']),hasPermi:'mes:workScheduling:update'}), |
|
|
defaultButtons.mainListHandleBtn({label:"恢复",name:'resume',hide: isShowMainButton(row,['3']),hasPermi:'mes:workScheduling:update'}), |
|
|
defaultButtons.mainListHandleBtn({label:"开工",name:'start',hide: isShowMainButton(row,['0']),hasPermi:'mes:workScheduling:update'}), |
|
|
defaultButtons.mainListHandleBtn({label:"开工",name:'start',hide: isShowMainButton(row,['-1','0']),hasPermi:'mes:workScheduling:update'}), |
|
|
defaultButtons.mainListHandleBtn({label:"报工",name:'report',hide: isShowMainButton(row,['1'] ),hasPermi:'mes:workScheduling:update'}), |
|
|
defaultButtons.mainListHandleBtn({label:"报工",name:'report',hide: isShowMainButton(row,['1'] ),hasPermi:'mes:workScheduling:update'}), |
|
|
defaultButtons.mainListHandleBtn({label:"完工",name:'finish',hide: isShowMainButton(row,['1']),hasPermi:'mes:workScheduling:update'}), |
|
|
defaultButtons.mainListHandleBtn({label:"完工",name:'finish',hide: isShowMainButton(row,['1']),hasPermi:'mes:workScheduling:update'}), |
|
|
defaultButtons.mainListHandleBtn({label:"叫料",name:'callMaterial',hide: isShowMainButton(row,['1']),hasPermi:'mes:workScheduling:update'}), |
|
|
//defaultButtons.mainListHandleBtn({label:"叫料",name:'callMaterial',hide: isShowMainButton(row,['1']),hasPermi:'mes:workScheduling:update'}), |
|
|
|
|
|
|
|
|
]} |
|
|
]} |
|
|
const reportRef=ref() |
|
|
const reportRef=ref() |
|
|
const reportFinishRef=ref() |
|
|
const reportFinishRef=ref() |
|
@ -211,6 +228,7 @@ const openForm = (type: string, row?: any) => { |
|
|
//完工报工 |
|
|
//完工报工 |
|
|
const finishReport=async(row)=>{ |
|
|
const finishReport=async(row)=>{ |
|
|
let params={ |
|
|
let params={ |
|
|
|
|
|
id:row.id, |
|
|
planDayCode:row.planMasterCode, |
|
|
planDayCode:row.planMasterCode, |
|
|
processCode:row.workingNode |
|
|
processCode:row.workingNode |
|
|
} |
|
|
} |
|
|