|
|
@ -199,9 +199,11 @@ const buttonBaseClick = (val, item) => { |
|
|
|
console.log('其他按钮', item) |
|
|
|
} |
|
|
|
} |
|
|
|
const publishClosed=()=>{ |
|
|
|
//console.log('orderday-publishClosed-200') |
|
|
|
const publishClosed=(val)=>{ |
|
|
|
console.log('orderday-publishClosed-200',val) |
|
|
|
nextTick?.(()=>{ |
|
|
|
getList() |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
// 根据状态返回该按钮是否显示 |
|
|
@ -270,23 +272,22 @@ const openForm = (type: string, row?: any) => { |
|
|
|
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() |
|
|
|
} |
|
|
@ -336,8 +337,9 @@ const handleExport = async () => { |
|
|
|
exportLoading.value = false |
|
|
|
} |
|
|
|
} |
|
|
|
const stopPlan = (id) => { |
|
|
|
OrderDayApi.stopPlan(id) |
|
|
|
const stopPlan = async (id) => { |
|
|
|
await OrderDayApi.stopPlan(id) |
|
|
|
getList() |
|
|
|
|
|
|
|
} |
|
|
|
/** 导入 */ |
|
|
|