|
|
@ -57,7 +57,7 @@ |
|
|
|
:isBusiness="false" |
|
|
|
:isSearchFilterButtonHide="true" |
|
|
|
@onChange="valueChange" |
|
|
|
|
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
@ -142,7 +142,7 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
|
if(formField=='workroomCode'){ |
|
|
|
getProductlines(val[0][searchField]) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
@ -156,9 +156,9 @@ const valueChange=(filed,cur)=>{ |
|
|
|
//item.componentProps.required = cur==='ENABLE'?false:true |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// 字段设置 更新主列表字段 |
|
|
@ -199,10 +199,12 @@ const buttonBaseClick = (val, item) => { |
|
|
|
console.log('其他按钮', item) |
|
|
|
} |
|
|
|
} |
|
|
|
const publishClosed=()=>{ |
|
|
|
//console.log('orderday-publishClosed-200') |
|
|
|
getList() |
|
|
|
|
|
|
|
const publishClosed=(val)=>{ |
|
|
|
console.log('orderday-publishClosed-200',val) |
|
|
|
nextTick?.(()=>{ |
|
|
|
getList() |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
// 根据状态返回该按钮是否显示 |
|
|
|
const isShowMainButton = (row,val) => { |
|
|
@ -227,7 +229,7 @@ const butttondata = (row) => { |
|
|
|
type: 'warning', |
|
|
|
icon: '', |
|
|
|
color: '', |
|
|
|
hasPermi: 'mes:orderDay:update'}), // |
|
|
|
hasPermi: 'mes:orderDay:update'}), // |
|
|
|
// defaultButtons.mainListHandleBtn({label: '发布', |
|
|
|
// name: 'publish', |
|
|
|
// hide: isShowMainButton(row,['2']), |
|
|
@ -268,25 +270,24 @@ const openForm = (type: string, row?: any) => { |
|
|
|
|
|
|
|
// form表单提交 |
|
|
|
const formsSuccess = async (formType,data) => { |
|
|
|
|
|
|
|
|
|
|
|
if (formType === 'create') { |
|
|
|
let ret= OrderDayApi.createOrderDay(data) |
|
|
|
if(ret===undefined || ret===null){ |
|
|
|
message.error(t('common.networkError')) |
|
|
|
}else{ |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
} |
|
|
|
|
|
|
|
await OrderDayApi.createOrderDay(data) |
|
|
|
// if(ret===undefined || ret===null){ |
|
|
|
// message.error(t('common.networkError')) |
|
|
|
// }else{ |
|
|
|
// message.success(t('common.createSuccess')) |
|
|
|
// } |
|
|
|
|
|
|
|
} else { |
|
|
|
let ret= OrderDayApi.updateOrderDay(data) |
|
|
|
if(ret.code==0){ |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
}else{ |
|
|
|
message.error(t('common.networkError')) |
|
|
|
} |
|
|
|
|
|
|
|
await OrderDayApi.updateOrderDay(data) |
|
|
|
// if(ret.code==0){ |
|
|
|
// message.success(t('common.updateSuccess')) |
|
|
|
// }else{ |
|
|
|
// message.error(t('common.networkError')) |
|
|
|
// } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
basicFormRef.value.dialogVisible = false |
|
|
|
await getList() |
|
|
|
} |
|
|
@ -301,7 +302,7 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
|
//console.log('orderDay-openDetail-303',row) |
|
|
|
sDetailRef.value.open(row, titleName) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
/** 发布操作 */ |
|
|
|
const scheduleDetailRef = ref() |
|
|
@ -336,9 +337,10 @@ const handleExport = async () => { |
|
|
|
exportLoading.value = false |
|
|
|
} |
|
|
|
} |
|
|
|
const stopPlan = (id) => { |
|
|
|
OrderDayApi.stopPlan(id) |
|
|
|
|
|
|
|
const stopPlan = async (id) => { |
|
|
|
await OrderDayApi.stopPlan(id) |
|
|
|
getList() |
|
|
|
|
|
|
|
} |
|
|
|
/** 导入 */ |
|
|
|
const importFormRef = ref() |
|
|
|