diff --git a/src/api/mes/orderDay/index.ts b/src/api/mes/orderDay/index.ts index 0ccc0f3ee..89fafea88 100644 --- a/src/api/mes/orderDay/index.ts +++ b/src/api/mes/orderDay/index.ts @@ -18,6 +18,7 @@ export interface OrderDayVO { startTime: Date endTime: Date taskMode: string + batchCode:string } // 查询生产日计划列表 @@ -104,4 +105,4 @@ export const publishPlan = async (data: OrderDayVO) => { //终止计划 export const stopPlan = async (id) => { return await request.post({ url: `/mes/orderday/stopPlan/`+id }) -} \ No newline at end of file +} diff --git a/src/views/mes/orderDay/components/schedule.vue b/src/views/mes/orderDay/components/schedule.vue index 3a79d518e..ad4eb54f2 100644 --- a/src/views/mes/orderDay/components/schedule.vue +++ b/src/views/mes/orderDay/components/schedule.vue @@ -70,7 +70,7 @@ - + @@ -260,7 +260,14 @@ const workstationData=ref([]) const dialogVisible = ref(false) // 弹窗的是否展示 const dialogTitle = ref('') // 弹窗的标题 const graphJson =ref() -const currentNode = ref({}) +const currentNode = ref({ + attrs:{ + title:{ + text:'' + } + }, + id:'' +}) /*班组数据*/ const teamData = ref([]) /*班组弹窗搜索条件*/ @@ -283,6 +290,8 @@ const closeTeamUser = () =>{ const workerData=ref([]) /*查询班组接口参数*/ const teamParams = ref({ + workshopCode:'', + productionLineCode:'', teamGroup: '', name: '', pageNo:1, @@ -304,6 +313,8 @@ const searchTeamList = () => { } /** 打开弹窗 */ const open = async (type: string, row?: any, titleName?: any) => { + currentNode.value.attrs.title.text='' + currentNode.value.id='' //首次打开页面,将数据清空 workerData.value = [] equipmentData.value = [] @@ -424,7 +435,7 @@ const opensearchTable = ( false, //true ) - + } const publishPlan=()=>{ message.confirm("确认发布当前计划?","question").then(async () => { @@ -441,11 +452,11 @@ const publishPlan=()=>{ }).catch(() => { message.info("已取消发布") }) - - + + } const doPublishPlan= ()=>{ - + let data ={ updateId: detailData.value.id, status: detailData.value.status, @@ -464,9 +475,10 @@ const doPublishPlan= ()=>{ planDate: detailData.value.planDate, startTime: detailData.value.planDate, endTime: detailData.value.endTime, - taskMode: detailData.value.taskMode -} - + taskMode: detailData.value.taskMode, + batchCode:detailData.value.batchCode, + } + let res = OrderDayApi.publishPlan(data) console.log("---doPublishPlan-- 458--",res) if(res.code===0){ @@ -567,6 +579,8 @@ const opensearchTableUser = async ( teamParams.value.teamGroup = '' teamParams.value.name = '' teamParams.value.pageNo = 1 + teamParams.value.workshopCode = detailData.value.workroomCode + teamParams.value.productionLineCode = detailData.value.lineCode var teamList = await getTeamList(teamParams.value) teamData.value = teamList.list totalTeam.value = teamList.total diff --git a/src/views/mes/productOffline/productOffline.data.ts b/src/views/mes/productOffline/productOffline.data.ts index 95a1784df..1cc932791 100644 --- a/src/views/mes/productOffline/productOffline.data.ts +++ b/src/views/mes/productOffline/productOffline.data.ts @@ -48,8 +48,8 @@ export const ProductOffline = useCrudSchemas(reactive([ searchAllSchemas: workscheduling.allSchemas, // 查询弹窗所需类 searchPage: ProductOfflineApi.getworkSchedulingPage, // 查询弹窗所需分页方法 searchCondition: [{ - key: 'flagDo', - value: '3', + key: 'status', + value: '1', action: '==', isSearch: true, isMainValue: false