|
|
@ -82,6 +82,7 @@ import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
|
import orderDetail from './components/orderDetail.vue' |
|
|
|
import scheduleDetail from './components/schedule.vue' |
|
|
|
import { async } from '@antv/x6/lib/registry/marker/async' |
|
|
|
|
|
|
|
defineOptions({ name: 'MesOrderDay' }) |
|
|
|
|
|
|
@ -196,8 +197,11 @@ const buttonBaseClick = (val, item) => { |
|
|
|
} |
|
|
|
} |
|
|
|
const publishClosed=()=>{ |
|
|
|
//console.log('publishClosed') |
|
|
|
getList() |
|
|
|
console.log('orderday-publishClosed-200') |
|
|
|
nextTick(() => { |
|
|
|
getList() |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
// 根据状态返回该按钮是否显示 |
|
|
|
const isShowMainButton = (row,val) => { |
|
|
@ -242,7 +246,7 @@ const butttondata = (row) => { |
|
|
|
|
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
const buttonTableClick = (val, row) => { |
|
|
|
if (val == 'edit') { // 编辑 |
|
|
|
openForm('update', row) |
|
|
|
} else if (val == 'delete') { // 删除 |
|
|
@ -252,6 +256,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
}else if(val=='stopPlan'){ //终止计划 |
|
|
|
stopPlan(row.id) |
|
|
|
} |
|
|
|
getList() |
|
|
|
} |
|
|
|
|
|
|
|
/** 添加/修改操作 */ |
|
|
@ -325,7 +330,7 @@ const handleExport = async () => { |
|
|
|
} |
|
|
|
const stopPlan = async (id) => { |
|
|
|
await OrderDayApi.stopPlan(id) |
|
|
|
getList() |
|
|
|
//getList() |
|
|
|
} |
|
|
|
/** 导入 */ |
|
|
|
const importFormRef = ref() |
|
|
|