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